Skip to content

Commit

Permalink
Backup Target CRUD Development
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon-Dweikat-Ntx committed Dec 11, 2024
1 parent 11791cd commit 168d853
Show file tree
Hide file tree
Showing 3 changed files with 600 additions and 6 deletions.
1 change: 1 addition & 0 deletions nutanix/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ func Provider() *schema.Provider {
"nutanix_category_v2": prismv2.ResourceNutanixCategoriesV2(),
"nutanix_deploy_pc_v2": prismv2.ResourceNutanixDeployPcV2(),
"nutanix_unregister_cluster_v2": prismv2.ResourceNutanixUnregisterClusterV2(),
"nutanix_backup_target_v2": prismv2.ResourceNutanixBackupTargetV2(),
"nutanix_volume_group_v2": volumesv2.ResourceNutanixVolumeGroupV2(),
"nutanix_volume_group_disk_v2": volumesv2.ResourceNutanixVolumeGroupDiskV2(),
"nutanix_volume_group_iscsi_client_v2": volumesv2.ResourceNutanixVolumeGroupIscsiClientV2(),
Expand Down
14 changes: 8 additions & 6 deletions nutanix/sdks/v4/prism/prism.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
)

type Client struct {
TaskRefAPI *api.TasksApi
CategoriesAPIInstance *api.CategoriesApi
DomainManagerAPIInstance *api.DomainManagerApi
TaskRefAPI *api.TasksApi
CategoriesAPIInstance *api.CategoriesApi
DomainManagerAPIInstance *api.DomainManagerApi
DomainManagerBackupsAPIInstance *api.DomainManagerBackupsApi
}

func NewPrismClient(credentials client.Credentials) (*Client, error) {
Expand All @@ -29,9 +30,10 @@ func NewPrismClient(credentials client.Credentials) (*Client, error) {
}

f := &Client{
TaskRefAPI: api.NewTasksApi(baseClient),
CategoriesAPIInstance: api.NewCategoriesApi(baseClient),
DomainManagerAPIInstance: api.NewDomainManagerApi(baseClient),
TaskRefAPI: api.NewTasksApi(baseClient),
CategoriesAPIInstance: api.NewCategoriesApi(baseClient),
DomainManagerAPIInstance: api.NewDomainManagerApi(baseClient),
DomainManagerBackupsAPIInstance: api.NewDomainManagerBackupsApi(baseClient),
}

return f, nil
Expand Down
Loading

0 comments on commit 168d853

Please sign in to comment.