From 9c797b575352f5cd135b8a0d0e392e2709726813 Mon Sep 17 00:00:00 2001 From: Diptipowervs Date: Fri, 29 Dec 2023 15:45:37 +0530 Subject: [PATCH 1/3] image data source and documentation --- ibm/service/power/data_source_ibm_pi_image.go | 94 +++++++++--------- .../power/data_source_ibm_pi_image_test.go | 10 +- .../power/data_source_ibm_pi_images.go | 98 +++++++++---------- .../power/data_source_ibm_pi_images_test.go | 8 +- ibm/service/power/ibm_pi_constants.go | 12 +++ website/docs/d/pi_image.html.markdown | 17 ++-- website/docs/d/pi_images.html.markdown | 17 ++-- 7 files changed, 133 insertions(+), 123 deletions(-) diff --git a/ibm/service/power/data_source_ibm_pi_image.go b/ibm/service/power/data_source_ibm_pi_image.go index c88a51a55e..cd883e3c01 100644 --- a/ibm/service/power/data_source_ibm_pi_image.go +++ b/ibm/service/power/data_source_ibm_pi_image.go @@ -6,65 +6,72 @@ package power import ( "context" - "github.com/IBM-Cloud/power-go-client/helpers" + "github.com/IBM-Cloud/power-go-client/clients/instance" "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - - //"fmt" - "github.com/IBM-Cloud/power-go-client/clients/instance" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) func DataSourceIBMPIImage() *schema.Resource { - return &schema.Resource{ ReadContext: dataSourceIBMPIImagesRead, Schema: map[string]*schema.Schema{ - - helpers.PIImageName: { - Type: schema.TypeString, + // Arguments + Arg_CloudInstanceID: { + Description: "The GUID of the service instance associated with an account.", Required: true, - Description: "Imagename Name to be used for pvminstances", + Type: schema.TypeString, ValidateFunc: validation.NoZeroValues, }, - helpers.PICloudInstanceId: { - Type: schema.TypeString, + Arg_ImageName: { + Description: "The ID of the image.", Required: true, + Type: schema.TypeString, ValidateFunc: validation.NoZeroValues, }, - "state": { - Type: schema.TypeString, - Computed: true, + // Attributes + Attr_Architecture: { + Computed: true, + Description: "The CPU architecture that the image is designed for. ", + Type: schema.TypeString, }, - "size": { - Type: schema.TypeInt, - Computed: true, + Attr_Hypervisor: { + Computed: true, + Description: "Hypervision Type.", + Type: schema.TypeString, }, - "architecture": { - Type: schema.TypeString, - Computed: true, + Attr_ImageType: { + Computed: true, + Description: "The identifier of this image type.", + Type: schema.TypeString, }, + // TODO: Relabel this one "operating_system" to match catalog images "operatingsystem": { - Type: schema.TypeString, - Computed: true, + Computed: true, + Description: "The operating system that is installed with the image.", + Type: schema.TypeString, }, - "hypervisor": { - Type: schema.TypeString, - Computed: true, + Attr_Size: { + Computed: true, + Description: "The size of the image in megabytes.", + Type: schema.TypeInt, }, - "storage_type": { - Type: schema.TypeString, - Computed: true, + Attr_State: { + Computed: true, + Description: "The state for this image. ", + Type: schema.TypeString, }, - "storage_pool": { - Type: schema.TypeString, - Computed: true, + Attr_StoragePool: { + Computed: true, + Description: "Storage pool where image resides.", + Type: schema.TypeString, }, - "image_type": { - Type: schema.TypeString, - Computed: true, + Attr_StorageType: { + Computed: true, + Description: "The storage type for this image.", + Type: schema.TypeString, }, }, } @@ -76,24 +83,23 @@ func dataSourceIBMPIImagesRead(ctx context.Context, d *schema.ResourceData, meta return diag.FromErr(err) } - cloudInstanceID := d.Get(helpers.PICloudInstanceId).(string) + cloudInstanceID := d.Get(Arg_CloudInstanceID).(string) imageC := instance.NewIBMPIImageClient(ctx, sess, cloudInstanceID) - imagedata, err := imageC.Get(d.Get(helpers.PIImageName).(string)) + imagedata, err := imageC.Get(d.Get(Arg_ImageName).(string)) if err != nil { return diag.FromErr(err) } d.SetId(*imagedata.ImageID) - d.Set("state", imagedata.State) - d.Set("size", imagedata.Size) - d.Set("architecture", imagedata.Specifications.Architecture) - d.Set("hypervisor", imagedata.Specifications.HypervisorType) + d.Set(Attr_Architecture, imagedata.Specifications.Architecture) + d.Set(Attr_Hypervisor, imagedata.Specifications.HypervisorType) + d.Set(Attr_ImageType, imagedata.Specifications.ImageType) d.Set("operatingsystem", imagedata.Specifications.OperatingSystem) - d.Set("storage_type", imagedata.StorageType) - d.Set("storage_pool", imagedata.StoragePool) - d.Set("image_type", imagedata.Specifications.ImageType) + d.Set(Attr_Size, imagedata.Size) + d.Set(Attr_State, imagedata.State) + d.Set(Attr_StoragePool, imagedata.StoragePool) + d.Set(Attr_StorageType, imagedata.StorageType) return nil - } diff --git a/ibm/service/power/data_source_ibm_pi_image_test.go b/ibm/service/power/data_source_ibm_pi_image_test.go index 539aa9950e..734d3b71b7 100644 --- a/ibm/service/power/data_source_ibm_pi_image_test.go +++ b/ibm/service/power/data_source_ibm_pi_image_test.go @@ -13,7 +13,6 @@ import ( ) func TestAccIBMPIImageDataSource_basic(t *testing.T) { - resource.Test(t, resource.TestCase{ PreCheck: func() { acc.TestAccPreCheck(t) }, Providers: acc.TestAccProviders, @@ -30,9 +29,8 @@ func TestAccIBMPIImageDataSource_basic(t *testing.T) { func testAccCheckIBMPIImageDataSourceConfig() string { return fmt.Sprintf(` - data "ibm_pi_image" "testacc_ds_image" { - pi_image_name = "%s" - pi_cloud_instance_id = "%s" - }`, acc.Pi_image, acc.Pi_cloud_instance_id) - + data "ibm_pi_image" "testacc_ds_image" { + pi_image_name = "%s" + pi_cloud_instance_id = "%s" + }`, acc.Pi_image, acc.Pi_cloud_instance_id) } diff --git a/ibm/service/power/data_source_ibm_pi_images.go b/ibm/service/power/data_source_ibm_pi_images.go index 9b6782aa9f..e3a8936325 100644 --- a/ibm/service/power/data_source_ibm_pi_images.go +++ b/ibm/service/power/data_source_ibm_pi_images.go @@ -6,70 +6,72 @@ package power import ( "context" - "github.com/IBM-Cloud/power-go-client/helpers" + "github.com/IBM-Cloud/power-go-client/clients/instance" "github.com/IBM-Cloud/power-go-client/power/models" "github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns" "github.com/hashicorp/go-uuid" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" - - //"fmt" - "github.com/IBM-Cloud/power-go-client/clients/instance" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" ) -/* -Datasource to get the list of images that are available when a power instance is created -*/ +// Datasource to list images that are available when a power instance is created func DataSourceIBMPIImages() *schema.Resource { - return &schema.Resource{ ReadContext: dataSourceIBMPIImagesAllRead, Schema: map[string]*schema.Schema{ - - helpers.PICloudInstanceId: { - Type: schema.TypeString, + // Arguments + Arg_CloudInstanceID: { + Description: "The GUID of the service instance associated with an account.", Required: true, + Type: schema.TypeString, ValidateFunc: validation.NoZeroValues, }, - // Computed Attributes - - "image_info": { - Type: schema.TypeList, - Computed: true, + // Attributes + Attr_ImageInfo: { + Computed: true, + Description: "List of all supported images.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ - "id": { - Type: schema.TypeString, - Computed: true, + Attr_Href: { + Computed: true, + Description: "The hyper link of an image.", + Type: schema.TypeString, }, - "name": { - Type: schema.TypeString, - Computed: true, + Attr_ID: { + Computed: true, + Description: "The unique identifier of an image.", + Type: schema.TypeString, }, - "href": { - Type: schema.TypeString, - Computed: true, + Attr_ImageType: { + Computed: true, + Description: "The identifier of this image type.", + Type: schema.TypeString, }, - "state": { - Type: schema.TypeString, - Computed: true, + Attr_Name: { + Computed: true, + Description: "The name of an image.", + Type: schema.TypeString, }, - "storage_type": { - Type: schema.TypeString, - Computed: true, + Attr_State: { + Computed: true, + Description: "The state of an image.", + Type: schema.TypeString, }, - "storage_pool": { - Type: schema.TypeString, - Computed: true, + Attr_StoragePool: { + Computed: true, + Description: "Storage pool where image resides.", + Type: schema.TypeString, }, - "image_type": { - Type: schema.TypeString, - Computed: true, + Attr_StorageType: { + Computed: true, + Description: "The storage type of an image.", + Type: schema.TypeString, }, }, }, + Type: schema.TypeList, }, }, } @@ -81,7 +83,7 @@ func dataSourceIBMPIImagesAllRead(ctx context.Context, d *schema.ResourceData, m return diag.FromErr(err) } - cloudInstanceID := d.Get(helpers.PICloudInstanceId).(string) + cloudInstanceID := d.Get(Arg_CloudInstanceID).(string) imageC := instance.NewIBMPIImageClient(ctx, sess, cloudInstanceID) imagedata, err := imageC.GetAll() @@ -91,28 +93,24 @@ func dataSourceIBMPIImagesAllRead(ctx context.Context, d *schema.ResourceData, m var clientgenU, _ = uuid.GenerateUUID() d.SetId(clientgenU) - d.Set("image_info", flattenStockImages(imagedata.Images)) + d.Set(Attr_ImageInfo, flattenStockImages(imagedata.Images)) return nil - } func flattenStockImages(list []*models.ImageReference) []map[string]interface{} { result := make([]map[string]interface{}, 0, len(list)) for _, i := range list { - l := map[string]interface{}{ - "id": *i.ImageID, - "state": *i.State, - "href": *i.Href, - "name": *i.Name, - "storage_type": *i.StorageType, - "storage_pool": *i.StoragePool, - "image_type": i.Specifications.ImageType, + Attr_Href: *i.Href, + Attr_ID: *i.ImageID, + Attr_ImageType: i.Specifications.ImageType, + Attr_Name: *i.Name, + Attr_State: *i.State, + Attr_StoragePool: *i.StoragePool, + Attr_StorageType: *i.StorageType, } - result = append(result, l) - } return result } diff --git a/ibm/service/power/data_source_ibm_pi_images_test.go b/ibm/service/power/data_source_ibm_pi_images_test.go index 083de54094..ee670de149 100644 --- a/ibm/service/power/data_source_ibm_pi_images_test.go +++ b/ibm/service/power/data_source_ibm_pi_images_test.go @@ -13,7 +13,6 @@ import ( ) func TestAccIBMPIImagesDataSource_basic(t *testing.T) { - resource.Test(t, resource.TestCase{ PreCheck: func() { acc.TestAccPreCheck(t) }, Providers: acc.TestAccProviders, @@ -30,8 +29,7 @@ func TestAccIBMPIImagesDataSource_basic(t *testing.T) { func testAccCheckIBMPIImagesDataSourceConfig() string { return fmt.Sprintf(` - data "ibm_pi_images" "testacc_ds_image" { - pi_cloud_instance_id = "%s" - }`, acc.Pi_cloud_instance_id) - + data "ibm_pi_images" "testacc_ds_image" { + pi_cloud_instance_id = "%s" + }`, acc.Pi_cloud_instance_id) } diff --git a/ibm/service/power/ibm_pi_constants.go b/ibm/service/power/ibm_pi_constants.go index 8e66a4bd83..732c0d8626 100644 --- a/ibm/service/power/ibm_pi_constants.go +++ b/ibm/service/power/ibm_pi_constants.go @@ -15,6 +15,18 @@ const ( Attr_KeyCreationDate = "creation_date" Attr_Key = "ssh_key" Attr_KeyName = "name" + Arg_ImageName = "pi_image_name" + Attr_Architecture = "architecture" + Attr_Hypervisor = "hypervisor" + Attr_ImageType = "image_type" + Attr_Size = "size" + Attr_State = "state" + Attr_StoragePool = "storage_pool" + Attr_StorageType = "storage_type" + Attr_ImageInfo = "image_info" + Attr_Href = "href" + Attr_ID = "id" + Attr_Name = "name" // SAP Profile PISAPProfiles = "profiles" diff --git a/website/docs/d/pi_image.html.markdown b/website/docs/d/pi_image.html.markdown index fad9111aa0..6c129d73ec 100644 --- a/website/docs/d/pi_image.html.markdown +++ b/website/docs/d/pi_image.html.markdown @@ -11,7 +11,6 @@ description: |- Import the details of an existing IBM Power Virtual Server Cloud image as a read-only data source. For more information, about IBM power virtual server cloud, see [getting started with IBM Power Systems Virtual Servers](https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-getting-started). ## Example usage - ```terraform data "ibm_pi_image" "ds_image" { pi_image_name = "7200-03-03" @@ -19,14 +18,13 @@ data "ibm_pi_image" "ds_image" { } ``` - **Notes** -* Please find [supported Regions](https://cloud.ibm.com/apidocs/power-cloud#endpoint) for endpoints. -* If a Power cloud instance is provisioned at `lon04`, The provider level attributes should be as follows: - * `region` - `lon` - * `zone` - `lon04` - - Example usage: +**Notes** +- Please find [supported Regions](https://cloud.ibm.com/apidocs/power-cloud#endpoint) for endpoints. +- If a Power cloud instance is provisioned at `lon04`, The provider level attributes should be as follows: + - `region` - `lon` + - `zone` - `lon04` +Example usage: ```terraform provider "ibm" { region = "lon" @@ -44,10 +42,11 @@ Review the argument references that you can specify for your data source. In addition to all argument reference list, you can access the following attribute references after your data source is created. - `architecture` - (String) The CPU architecture that the image is designed for. +- `hypervisor` - (String) Hypervisor type. - `id` - (String) The unique identifier of the image. +- `image_type` - (String) The identifier of this image type. - `operatingsystem` - (String) The operating system that is installed with the image. - `size` - (String) The size of the image in megabytes. - `state` - (String) The state for this image. - `storage_type` - (String) The storage type for this image. - `storage_pool` - (String) Storage pool where image resides. -- `image_type` - (String) The identifier of this image type. diff --git a/website/docs/d/pi_images.html.markdown b/website/docs/d/pi_images.html.markdown index 791e2df2bf..617207e159 100644 --- a/website/docs/d/pi_images.html.markdown +++ b/website/docs/d/pi_images.html.markdown @@ -18,14 +18,13 @@ data "ibm_pi_images" "ds_images" { } ``` - **Notes:** -* Please find [supported Regions](https://cloud.ibm.com/apidocs/power-cloud#endpoint) for endpoints. -* If a Power cloud instance is provisioned at `lon04`, The provider level attributes should be as follows: - * `region` - `lon` - * `zone` - `lon04` - - Example usage: +**Notes:** +- Please find [supported Regions](https://cloud.ibm.com/apidocs/power-cloud#endpoint) for endpoints. +- If a Power cloud instance is provisioned at `lon04`, The provider level attributes should be as follows: + - `region` - `lon` + - `zone` - `lon04` +Example usage: ```terraform provider "ibm" { region = "lon" @@ -41,13 +40,13 @@ Review the argument references that you can specify for your data source. ## Attribute reference In addition to all argument reference list, you can access the following attribute references after your data source is created. -- `image_info` - List of images - A list of all supported images. +- `image_info` - (List) List of all supported images. Nested scheme for `image_info`: - `href` - (String) The hyper link of an image. - `id` - (String) The unique identifier of an image. + - `image_type` - (String) The identifier of this image type. - `name`- (String) The name of an image. - `state` - (String) The state of an image. - `storage_pool` - (String) Storage pool where image resides. - `storage_type` - (String) The storage type of an image. - - `image_type` - (String) The identifier of this image type. From 234a984f616cdfd8d1062a36ab93b53605dcf8f6 Mon Sep 17 00:00:00 2001 From: Diptipowervs Date: Fri, 5 Jan 2024 15:47:21 +0530 Subject: [PATCH 2/3] Pull ibm_ pi_constants.go from constant-refactor --- ibm/service/power/ibm_pi_constants.go | 315 ++++++++++++++++++++------ 1 file changed, 251 insertions(+), 64 deletions(-) diff --git a/ibm/service/power/ibm_pi_constants.go b/ibm/service/power/ibm_pi_constants.go index 732c0d8626..7229f23831 100644 --- a/ibm/service/power/ibm_pi_constants.go +++ b/ibm/service/power/ibm_pi_constants.go @@ -3,30 +3,238 @@ package power import "time" const ( - // used by all - Arg_CloudInstanceID = "pi_cloud_instance_id" - - // Keys - Arg_KeyName = "pi_key_name" - Arg_Key = "pi_ssh_key" - - Attr_KeyID = "key_id" - Attr_Keys = "keys" - Attr_KeyCreationDate = "creation_date" - Attr_Key = "ssh_key" - Attr_KeyName = "name" - Arg_ImageName = "pi_image_name" - Attr_Architecture = "architecture" - Attr_Hypervisor = "hypervisor" - Attr_ImageType = "image_type" - Attr_Size = "size" - Attr_State = "state" - Attr_StoragePool = "storage_pool" - Attr_StorageType = "storage_type" - Attr_ImageInfo = "image_info" - Attr_Href = "href" - Attr_ID = "id" - Attr_Name = "name" + // Arguments + Arg_CloudConnectionName = "pi_cloud_connection_name" + Arg_CloudInstanceID = "pi_cloud_instance_id" + Arg_ImageName = "pi_image_name" + Arg_InstanceName = "pi_instance_name" + Arg_Key = "pi_ssh_key" + Arg_KeyName = "pi_key_name" + Arg_NetworkName = "pi_network_name" + Arg_PlacementGroupName = "pi_placement_group_name" + Arg_SAP = "sap" + Arg_SAPProfileID = "pi_sap_profile_id" + Arg_SPPPlacementGroupID = "pi_spp_placement_group_id" + Arg_SPPPlacementGroupName = "pi_spp_placement_group_name" + Arg_SPPPlacementGroupPolicy = "pi_spp_placement_group_policy" + Arg_SharedProcessorPoolHostGroup = "pi_shared_processor_pool_host_group" + Arg_SharedProcessorPoolID = "pi_shared_processor_pool_id" + Arg_SharedProcessorPoolName = "pi_shared_processor_pool_name" + Arg_SharedProcessorPoolPlacementGroupID = "pi_shared_processor_pool_placement_group_id" + Arg_SharedProcessorPoolReservedCores = "pi_shared_processor_pool_reserved_cores" + Arg_StoragePool = "pi_storage_pool" + Arg_StorageType = "pi_storage_type" + Arg_VTL = "vtl" + Arg_VolumeGroupID = "pi_volume_group_id" + Arg_VolumeID = "pi_volume_id" + Arg_VolumeOnboardingID = "pi_volume_onboarding_id" + + // Attributes + Attr_AccessConfig = "access_config" + Attr_Action = "action" + Attr_Addresses = "addresses" + Attr_AllocatedCores = "allocated_cores" + Attr_Architecture = "architecture" + Attr_Auxiliary = "auxiliary" + Attr_AuxiliaryChangedVolumeName = "auxiliary_changed_volume_name" + Attr_AuxiliaryVolumeName = "auxiliary_volume_name" + Attr_AvailabilityZone = "availability_zone" + Attr_AvailableCores = "available_cores" + Attr_AvailableIPCount = "available_ip_count" + Attr_BootVolumeID = "boot_volume_id" + Attr_Bootable = "bootable" + Attr_CIDR = "cidr" + Attr_CPUs = "cpus" + Attr_CRN = "crn" + Attr_Capabilities = "capabilities" + Attr_Capacity = "capacity" + Attr_Certified = "certified" + Attr_ClassicEnabled = "classic_enabled" + Attr_CloudConnectionID = "cloud_connection_id" + Attr_CloudInstanceID = "cloud_instance_id" + Attr_CloudInstances = "cloud_instances" + Attr_Code = "code" + Attr_ConnectionMode = "connection_mode" + Attr_Connections = "connections" + Attr_ConsistencyGroupName = "consistency_group_name" + Attr_ConsoleLanguages = "console_languages" + Attr_ContainerFormat = "container_format" + Attr_CopyRate = "copy_rate" + Attr_CopyType = "copy_type" + Attr_CoreMemoryRatio = "core_memory_ratio" + Attr_Cores = "cores" + Attr_CreateTime = "create_time" + Attr_CreationDate = "creation_date" + Attr_CyclePeriodSeconds = "cycle_period_seconds" + Attr_CyclingMode = "cycling_mode" + Attr_DNS = "dns" + Attr_Datacenters = "datacenters" + Attr_Default = "default" + Attr_DeploymentType = "deployment_type" + Attr_Description = "description" + Attr_DisasterRecoveryLocations = "disaster_recovery_locations" + Attr_DiskFormat = "disk_format" + Attr_DiskType = "disk_type" + Attr_Enabled = "enabled" + Attr_Endianness = "endianness" + Attr_ExternalIP = "external_ip" + Attr_FailureMessage = "failure_message" + Attr_FlashCopyMappings = "flash_copy_mappings" + Attr_FlashCopyName = "flash_copy_name" + Attr_FreezeTime = "freeze_time" + Attr_Gateway = "gateway" + Attr_GlobalRouting = "global_routing" + Attr_GreDestinationAddress = "gre_destination_address" + Attr_GreSourceAddress = "gre_source_address" + Attr_GroupID = "group_id" + Attr_HealthStatus = "health_status" + Attr_HostID = "host_id" + Attr_Href = "href" + Attr_Hypervisor = "hypervisor" + Attr_HypervisorType = "hypervisor_type" + Attr_IBMIPAddress = "ibm_ip_address" + Attr_ID = "id" + Attr_IP = "ip" + Attr_IPAddress = "ipaddress" + Attr_IPOctet = "ipoctet" + Attr_ImageID = "image_id" + Attr_ImageInfo = "image_info" + Attr_ImageType = "image_type" + Attr_Images = "images" + Attr_InputVolumes = "input_volumes" + Attr_InstanceSnapshots = "instance_snapshots" + Attr_InstanceVolumes = "instance_volumes" + Attr_Instances = "instances" + Attr_IsActive = "is_active" + Attr_Jumbo = "jumbo" + Attr_Key = "key" + Attr_KeyCreationDate = "creation_date" + Attr_KeyID = "key_id" + Attr_KeyName = "name" + Attr_Keys = "keys" + Attr_Language = "language" + Attr_LastUpdateDate = "last_update_date" + Attr_LastUpdatedDate = "last_updated_date" + Attr_Leases = "leases" + Attr_LicenseRepositoryCapacity = "license_repository_capacity" + Attr_Location = "location" + Attr_MTU = "mtu" + Attr_MacAddress = "macaddress" + Attr_MasterChangedVolumeName = "master_changed_volume_name" + Attr_MasterVolumeName = "master_volume_name" + Attr_Max = "max" + Attr_MaxAllocationSize = "max_allocation_size" + Attr_MaxAvailable = "max_available" + Attr_MaxCoresAvailable = "max_cores_available" + Attr_MaxMem = "maxmem" + Attr_MaxMemoryAvailable = "max_memory_available" + Attr_MaxProc = "maxproc" + Attr_MaxVirtualCores = "max_virtual_cores" + Attr_MaximumStorageAllocation = "max_storage_allocation" + Attr_Members = "members" + Attr_Memory = "memory" + Attr_Message = "message" + Attr_Metered = "metered" + Attr_Min = "min" + Attr_MinMem = "minmem" + Attr_MinProc = "minproc" + Attr_MinVirtualCores = "min_virtual_cores" + Attr_MirroringState = "mirroring_state" + Attr_Name = "name" + Attr_NetworkID = "network_id" + Attr_NetworkName = "network_name" + Attr_NetworkPorts = "network_ports" + Attr_Networks = "networks" + Attr_NumberOfVolumes = "number_of_volumes" + Attr_Onboardings = "onboardings" + Attr_OperatingSystem = "operating_system" + Attr_PVMInstanceID = "pvm_instance_id" + Attr_PVMInstances = "pvm_instances" + Attr_PVMSnapshots = "pvm_snapshots" + Attr_PercentComplete = "percent_complete" + Attr_PinPolicy = "pin_policy" + Attr_PlacementGroupID = "placement_group_id" + Attr_PlacementGroups = "placement_groups" + Attr_Policy = "policy" + Attr_Pool = "pool" + Attr_PoolName = "pool_name" + Attr_Port = "port" + Attr_PortID = "portid" + Attr_PrimaryRole = "primary_role" + Attr_ProcType = "proctype" + Attr_Processors = "processors" + Attr_ProfileID = "profile_id" + Attr_Profiles = "profiles" + Attr_Progress = "progress" + Attr_PublicIP = "public_ip" + Attr_Region = "region" + Attr_RemoteCopyID = "remote_copy_id" + Attr_RemoteCopyRelationshipNames = "remote_copy_relationship_names" + Attr_RemoteCopyRelationships = "remote_copy_relationships" + Attr_ReplicationEnabled = "replication_enabled" + Attr_ReplicationSites = "replication_sites" + Attr_ReplicationStatus = "replication_status" + Attr_ReplicationType = "replication_type" + Attr_ReservedCores = "reserved_cores" + Attr_ResultsOnboardedVolumes = "results_onboarded_volumes" + Attr_ResultsVolumeOnboardingFailures = "results_volume_onboarding_failures" + Attr_SPPPlacementGroups = "spp_placement_groups" + Attr_SSHKey = "ssh_key" + Attr_Shareable = "shreable" + Attr_SharedCoreRatio = "shared_core_ratio" + Attr_SharedProcessorPool = "shared_processor_pool" + Attr_SharedProcessorPoolID = "shared_processor_pool_id" + Attr_SharedProcessorPoolPlacementGroups = "spp_placement_groups" + Attr_SharedProcessorPoolStatus = "status" + Attr_SharedProcessorPools = "shared_processor_pools" + Attr_Size = "size" + Attr_SourceVolumeName = "source_volume_name" + Attr_Speed = "speed" + Attr_StartTime = "start_time" + Attr_State = "state" + Attr_Status = "status" + Attr_StatusDescriptionErrors = "status_description_errors" + Attr_StatusDetail = "status_detail" + Attr_StoragePool = "storage_pool" + Attr_StoragePoolAffinity = "storage_pool_affinity" + Attr_StoragePoolsCapacity = "storage_pools_capacity" + Attr_StorageType = "storage_type" + Attr_StorageTypesCapacity = "storage_types_capacity" + Attr_Synchronized = "synchronized" + Attr_SysType = "systype" + Attr_SystemPoolName = "system_pool_name" + Attr_SystemPools = "system_pools" + Attr_Systems = "systems" + Attr_TargetVolumeName = "target_volume_name" + Attr_TenantID = "tenant_id" + Attr_TenantName = "tenant_name" + Attr_TotalCapacity = "total_capacity" + Attr_TotalInstances = "total_instances" + Attr_TotalMemoryConsumed = "total_memory_consumed" + Attr_TotalProcessorsConsumed = "total_processors_consumed" + Attr_TotalSSDStorageConsumed = "total_ssd_storage_consumed" + Attr_TotalStandardStorageConsumed = "total_standard_storage_consumed" + Attr_Type = "type" + Attr_URL = "url" + Attr_Uncapped = "uncapped" + Attr_UsedIPCount = "used_ip_count" + Attr_UsedIPPercent = "used_ip_percent" + Attr_UserIPAddress = "user_ip_address" + Attr_VCPUs = "vcpus" + Attr_VLanID = "vlan_id" + Attr_VPCCRNs = "vpc_crns" + Attr_VPCEnabled = "vpc_enabled" + Attr_VirtualCoresAssigned = "virtual_cores_assigned" + Attr_VolumeGroupName = "volume_group_name" + Attr_VolumeGroups = "volume_groups" + Attr_VolumeIDs = "volume_ids" + Attr_VolumePool = "volume_pool" + Attr_VolumeSnapshots = "volume_snapshots" + Attr_Volumes = "volumes" + Attr_WWN = "wwn" + Attr_Workspaces = "workspaces" + + // TODO: Second Half Cleanup, remove extra variables // SAP Profile PISAPProfiles = "profiles" @@ -59,10 +267,6 @@ const ( Arg_PVMInstanceActionType = "pi_action" Arg_PVMInstanceHealthStatus = "pi_health_status" - Attr_Status = "status" - Attr_Progress = "progress" - Attr_HealthStatus = "health_status" - PVMInstanceHealthOk = "OK" PVMInstanceHealthWarning = "WARNING" @@ -70,14 +274,24 @@ const ( warningTimeOut = 60 * time.Second activeTimeOut = 2 * time.Minute // power service instance capabilities - CUSTOM_VIRTUAL_CORES = "custom-virtualcores" - PIInstanceDeploymentType = "pi_deployment_type" - PIInstanceNetwork = "pi_network" - PIInstanceStoragePool = "pi_storage_pool" - PISAPInstanceProfileID = "pi_sap_profile_id" - PISAPInstanceDeploymentType = "pi_sap_deployment_type" - PIInstanceStoragePoolAffinity = "pi_storage_pool_affinity" - Arg_PIInstanceSharedProcessorPool = "pi_shared_processor_pool" + CUSTOM_VIRTUAL_CORES = "custom-virtualcores" + + //Arg_CloudInstanceID = "pi_cloud_instance_id" + PIInstanceDeploymentType = "pi_deployment_type" + PIInstanceMigratable = "pi_migratable" + PIInstanceNetwork = "pi_network" + PIInstanceLicenseRepositoryCapacity = "pi_license_repository_capacity" + PIInstanceStoragePool = "pi_storage_pool" + PIInstanceStorageType = "pi_storage_type" + PISAPInstanceProfileID = "pi_sap_profile_id" + PISAPInstanceDeploymentType = "pi_sap_deployment_type" + PIInstanceSharedProcessorPool = "pi_shared_processor_pool" + PIInstanceStorageConnection = "pi_storage_connection" + PIInstanceStoragePoolAffinity = "pi_storage_pool_affinity" + + PIInstanceUserData = "pi_user_data" + PIInstanceVolumeIds = "pi_volume_ids" + Attr_PIInstanceSharedProcessorPool = "shared_processor_pool" Attr_PIInstanceSharedProcessorPoolID = "shared_processor_pool_id" @@ -116,37 +330,10 @@ const ( // Cloud Connections PICloudConnectionTransitEnabled = "pi_cloud_connection_transit_enabled" - // Shared Processor Pool - Arg_SharedProcessorPoolName = "pi_shared_processor_pool_name" - Arg_SharedProcessorPoolHostGroup = "pi_shared_processor_pool_host_group" - Arg_SharedProcessorPoolPlacementGroupID = "pi_shared_processor_pool_placement_group_id" - Arg_SharedProcessorPoolReservedCores = "pi_shared_processor_pool_reserved_cores" - Arg_SharedProcessorPoolID = "pi_shared_processor_pool_id" - Attr_SharedProcessorPoolID = "shared_processor_pool_id" - Attr_SharedProcessorPoolName = "name" - Attr_SharedProcessorPoolReservedCores = "reserved_cores" - Attr_SharedProcessorPoolAvailableCores = "available_cores" - Attr_SharedProcessorPoolAllocatedCores = "allocated_cores" - Attr_SharedProcessorPoolHostID = "host_id" - Attr_SharedProcessorPoolStatus = "status" - Attr_SharedProcessorPoolStatusDetail = "status_detail" - Attr_SharedProcessorPoolPlacementGroups = "spp_placement_groups" - Attr_SharedProcessorPoolInstances = "instances" - Attr_SharedProcessorPoolInstanceCpus = "cpus" - Attr_SharedProcessorPoolInstanceUncapped = "uncapped" - Attr_SharedProcessorPoolInstanceAvailabilityZone = "availability_zone" - Attr_SharedProcessorPoolInstanceId = "id" - Attr_SharedProcessorPoolInstanceMemory = "memory" - Attr_SharedProcessorPoolInstanceName = "name" - Attr_SharedProcessorPoolInstanceStatus = "status" - Attr_SharedProcessorPoolInstanceVcpus = "vcpus" - // SPP Placement Group - Arg_SPPPlacementGroupName = "pi_spp_placement_group_name" - Arg_SPPPlacementGroupPolicy = "pi_spp_placement_group_policy" + Attr_SPPPlacementGroupID = "spp_placement_group_id" Attr_SPPPlacementGroupMembers = "members" - Arg_SPPPlacementGroupID = "pi_spp_placement_group_id" Attr_SPPPlacementGroupPolicy = "policy" Attr_SPPPlacementGroupName = "name" From 76164e8aad7f0632b1313fd2e0b9be85d80c9c2c Mon Sep 17 00:00:00 2001 From: Diptipowervs Date: Fri, 5 Jan 2024 16:04:10 +0530 Subject: [PATCH 3/3] Pull ibm_ pi_constants.go from constant-refactor branch --- ibm/service/power/ibm_pi_constants.go | 422 +++++++++++++------------- 1 file changed, 219 insertions(+), 203 deletions(-) diff --git a/ibm/service/power/ibm_pi_constants.go b/ibm/service/power/ibm_pi_constants.go index 7229f23831..1f745ebce5 100644 --- a/ibm/service/power/ibm_pi_constants.go +++ b/ibm/service/power/ibm_pi_constants.go @@ -30,209 +30,225 @@ const ( Arg_VolumeOnboardingID = "pi_volume_onboarding_id" // Attributes - Attr_AccessConfig = "access_config" - Attr_Action = "action" - Attr_Addresses = "addresses" - Attr_AllocatedCores = "allocated_cores" - Attr_Architecture = "architecture" - Attr_Auxiliary = "auxiliary" - Attr_AuxiliaryChangedVolumeName = "auxiliary_changed_volume_name" - Attr_AuxiliaryVolumeName = "auxiliary_volume_name" - Attr_AvailabilityZone = "availability_zone" - Attr_AvailableCores = "available_cores" - Attr_AvailableIPCount = "available_ip_count" - Attr_BootVolumeID = "boot_volume_id" - Attr_Bootable = "bootable" - Attr_CIDR = "cidr" - Attr_CPUs = "cpus" - Attr_CRN = "crn" - Attr_Capabilities = "capabilities" - Attr_Capacity = "capacity" - Attr_Certified = "certified" - Attr_ClassicEnabled = "classic_enabled" - Attr_CloudConnectionID = "cloud_connection_id" - Attr_CloudInstanceID = "cloud_instance_id" - Attr_CloudInstances = "cloud_instances" - Attr_Code = "code" - Attr_ConnectionMode = "connection_mode" - Attr_Connections = "connections" - Attr_ConsistencyGroupName = "consistency_group_name" - Attr_ConsoleLanguages = "console_languages" - Attr_ContainerFormat = "container_format" - Attr_CopyRate = "copy_rate" - Attr_CopyType = "copy_type" - Attr_CoreMemoryRatio = "core_memory_ratio" - Attr_Cores = "cores" - Attr_CreateTime = "create_time" - Attr_CreationDate = "creation_date" - Attr_CyclePeriodSeconds = "cycle_period_seconds" - Attr_CyclingMode = "cycling_mode" - Attr_DNS = "dns" - Attr_Datacenters = "datacenters" - Attr_Default = "default" - Attr_DeploymentType = "deployment_type" - Attr_Description = "description" - Attr_DisasterRecoveryLocations = "disaster_recovery_locations" - Attr_DiskFormat = "disk_format" - Attr_DiskType = "disk_type" - Attr_Enabled = "enabled" - Attr_Endianness = "endianness" - Attr_ExternalIP = "external_ip" - Attr_FailureMessage = "failure_message" - Attr_FlashCopyMappings = "flash_copy_mappings" - Attr_FlashCopyName = "flash_copy_name" - Attr_FreezeTime = "freeze_time" - Attr_Gateway = "gateway" - Attr_GlobalRouting = "global_routing" - Attr_GreDestinationAddress = "gre_destination_address" - Attr_GreSourceAddress = "gre_source_address" - Attr_GroupID = "group_id" - Attr_HealthStatus = "health_status" - Attr_HostID = "host_id" - Attr_Href = "href" - Attr_Hypervisor = "hypervisor" - Attr_HypervisorType = "hypervisor_type" - Attr_IBMIPAddress = "ibm_ip_address" - Attr_ID = "id" - Attr_IP = "ip" - Attr_IPAddress = "ipaddress" - Attr_IPOctet = "ipoctet" - Attr_ImageID = "image_id" - Attr_ImageInfo = "image_info" - Attr_ImageType = "image_type" - Attr_Images = "images" - Attr_InputVolumes = "input_volumes" - Attr_InstanceSnapshots = "instance_snapshots" - Attr_InstanceVolumes = "instance_volumes" - Attr_Instances = "instances" - Attr_IsActive = "is_active" - Attr_Jumbo = "jumbo" - Attr_Key = "key" - Attr_KeyCreationDate = "creation_date" - Attr_KeyID = "key_id" - Attr_KeyName = "name" - Attr_Keys = "keys" - Attr_Language = "language" - Attr_LastUpdateDate = "last_update_date" - Attr_LastUpdatedDate = "last_updated_date" - Attr_Leases = "leases" - Attr_LicenseRepositoryCapacity = "license_repository_capacity" - Attr_Location = "location" - Attr_MTU = "mtu" - Attr_MacAddress = "macaddress" - Attr_MasterChangedVolumeName = "master_changed_volume_name" - Attr_MasterVolumeName = "master_volume_name" - Attr_Max = "max" - Attr_MaxAllocationSize = "max_allocation_size" - Attr_MaxAvailable = "max_available" - Attr_MaxCoresAvailable = "max_cores_available" - Attr_MaxMem = "maxmem" - Attr_MaxMemoryAvailable = "max_memory_available" - Attr_MaxProc = "maxproc" - Attr_MaxVirtualCores = "max_virtual_cores" - Attr_MaximumStorageAllocation = "max_storage_allocation" - Attr_Members = "members" - Attr_Memory = "memory" - Attr_Message = "message" - Attr_Metered = "metered" - Attr_Min = "min" - Attr_MinMem = "minmem" - Attr_MinProc = "minproc" - Attr_MinVirtualCores = "min_virtual_cores" - Attr_MirroringState = "mirroring_state" - Attr_Name = "name" - Attr_NetworkID = "network_id" - Attr_NetworkName = "network_name" - Attr_NetworkPorts = "network_ports" - Attr_Networks = "networks" - Attr_NumberOfVolumes = "number_of_volumes" - Attr_Onboardings = "onboardings" - Attr_OperatingSystem = "operating_system" - Attr_PVMInstanceID = "pvm_instance_id" - Attr_PVMInstances = "pvm_instances" - Attr_PVMSnapshots = "pvm_snapshots" - Attr_PercentComplete = "percent_complete" - Attr_PinPolicy = "pin_policy" - Attr_PlacementGroupID = "placement_group_id" - Attr_PlacementGroups = "placement_groups" - Attr_Policy = "policy" - Attr_Pool = "pool" - Attr_PoolName = "pool_name" - Attr_Port = "port" - Attr_PortID = "portid" - Attr_PrimaryRole = "primary_role" - Attr_ProcType = "proctype" - Attr_Processors = "processors" - Attr_ProfileID = "profile_id" - Attr_Profiles = "profiles" - Attr_Progress = "progress" - Attr_PublicIP = "public_ip" - Attr_Region = "region" - Attr_RemoteCopyID = "remote_copy_id" - Attr_RemoteCopyRelationshipNames = "remote_copy_relationship_names" - Attr_RemoteCopyRelationships = "remote_copy_relationships" - Attr_ReplicationEnabled = "replication_enabled" - Attr_ReplicationSites = "replication_sites" - Attr_ReplicationStatus = "replication_status" - Attr_ReplicationType = "replication_type" - Attr_ReservedCores = "reserved_cores" - Attr_ResultsOnboardedVolumes = "results_onboarded_volumes" - Attr_ResultsVolumeOnboardingFailures = "results_volume_onboarding_failures" - Attr_SPPPlacementGroups = "spp_placement_groups" - Attr_SSHKey = "ssh_key" - Attr_Shareable = "shreable" - Attr_SharedCoreRatio = "shared_core_ratio" - Attr_SharedProcessorPool = "shared_processor_pool" - Attr_SharedProcessorPoolID = "shared_processor_pool_id" - Attr_SharedProcessorPoolPlacementGroups = "spp_placement_groups" - Attr_SharedProcessorPoolStatus = "status" - Attr_SharedProcessorPools = "shared_processor_pools" - Attr_Size = "size" - Attr_SourceVolumeName = "source_volume_name" - Attr_Speed = "speed" - Attr_StartTime = "start_time" - Attr_State = "state" - Attr_Status = "status" - Attr_StatusDescriptionErrors = "status_description_errors" - Attr_StatusDetail = "status_detail" - Attr_StoragePool = "storage_pool" - Attr_StoragePoolAffinity = "storage_pool_affinity" - Attr_StoragePoolsCapacity = "storage_pools_capacity" - Attr_StorageType = "storage_type" - Attr_StorageTypesCapacity = "storage_types_capacity" - Attr_Synchronized = "synchronized" - Attr_SysType = "systype" - Attr_SystemPoolName = "system_pool_name" - Attr_SystemPools = "system_pools" - Attr_Systems = "systems" - Attr_TargetVolumeName = "target_volume_name" - Attr_TenantID = "tenant_id" - Attr_TenantName = "tenant_name" - Attr_TotalCapacity = "total_capacity" - Attr_TotalInstances = "total_instances" - Attr_TotalMemoryConsumed = "total_memory_consumed" - Attr_TotalProcessorsConsumed = "total_processors_consumed" - Attr_TotalSSDStorageConsumed = "total_ssd_storage_consumed" - Attr_TotalStandardStorageConsumed = "total_standard_storage_consumed" - Attr_Type = "type" - Attr_URL = "url" - Attr_Uncapped = "uncapped" - Attr_UsedIPCount = "used_ip_count" - Attr_UsedIPPercent = "used_ip_percent" - Attr_UserIPAddress = "user_ip_address" - Attr_VCPUs = "vcpus" - Attr_VLanID = "vlan_id" - Attr_VPCCRNs = "vpc_crns" - Attr_VPCEnabled = "vpc_enabled" - Attr_VirtualCoresAssigned = "virtual_cores_assigned" - Attr_VolumeGroupName = "volume_group_name" - Attr_VolumeGroups = "volume_groups" - Attr_VolumeIDs = "volume_ids" - Attr_VolumePool = "volume_pool" - Attr_VolumeSnapshots = "volume_snapshots" - Attr_Volumes = "volumes" - Attr_WWN = "wwn" - Attr_Workspaces = "workspaces" + Attr_AccessConfig = "access_config" + Attr_Action = "action" + Attr_Addresses = "addresses" + Attr_AllocatedCores = "allocated_cores" + Attr_Architecture = "architecture" + Attr_Auxiliary = "auxiliary" + Attr_AuxiliaryChangedVolumeName = "auxiliary_changed_volume_name" + Attr_AuxiliaryVolumeName = "auxiliary_volume_name" + Attr_AvailabilityZone = "availability_zone" + Attr_AvailableCores = "available_cores" + Attr_AvailableIPCount = "available_ip_count" + Attr_BootVolumeID = "boot_volume_id" + Attr_Bootable = "bootable" + Attr_CIDR = "cidr" + Attr_CPUs = "cpus" + Attr_CRN = "crn" + Attr_Capabilities = "capabilities" + Attr_Capacity = "capacity" + Attr_Certified = "certified" + Attr_ClassicEnabled = "classic_enabled" + Attr_CloudConnectionID = "cloud_connection_id" + Attr_CloudInstanceID = "cloud_instance_id" + Attr_CloudInstances = "cloud_instances" + Attr_Code = "code" + Attr_ConnectionMode = "connection_mode" + Attr_Connections = "connections" + Attr_ConsistencyGroupName = "consistency_group_name" + Attr_ConsoleLanguages = "console_languages" + Attr_ContainerFormat = "container_format" + Attr_CopyRate = "copy_rate" + Attr_CopyType = "copy_type" + Attr_CoreMemoryRatio = "core_memory_ratio" + Attr_Cores = "cores" + Attr_CreateTime = "create_time" + Attr_CreationDate = "creation_date" + Attr_CyclePeriodSeconds = "cycle_period_seconds" + Attr_CyclingMode = "cycling_mode" + Attr_DNS = "dns" + Attr_Datacenters = "datacenters" + Attr_Default = "default" + Attr_DeploymentType = "deployment_type" + Attr_Description = "description" + Attr_DisasterRecoveryLocations = "disaster_recovery_locations" + Attr_DiskFormat = "disk_format" + Attr_DiskType = "disk_type" + Attr_Enabled = "enabled" + Attr_Endianness = "endianness" + Attr_ExternalIP = "external_ip" + Attr_FailureMessage = "failure_message" + Attr_FlashCopyMappings = "flash_copy_mappings" + Attr_FlashCopyName = "flash_copy_name" + Attr_FreezeTime = "freeze_time" + Attr_Gateway = "gateway" + Attr_GlobalRouting = "global_routing" + Attr_GreDestinationAddress = "gre_destination_address" + Attr_GreSourceAddress = "gre_source_address" + Attr_GroupID = "group_id" + Attr_HealthStatus = "health_status" + Attr_HostID = "host_id" + Attr_Href = "href" + Attr_Hypervisor = "hypervisor" + Attr_HypervisorType = "hypervisor_type" + Attr_IBMIPAddress = "ibm_ip_address" + Attr_ID = "id" + Attr_IP = "ip" + Attr_IPAddress = "ipaddress" + Attr_IPOctet = "ipoctet" + Attr_ImageID = "image_id" + Attr_ImageInfo = "image_info" + Attr_ImageType = "image_type" + Attr_Images = "images" + Attr_InputVolumes = "input_volumes" + Attr_InstanceSnapshots = "instance_snapshots" + Attr_InstanceVolumes = "instance_volumes" + Attr_Instances = "instances" + Attr_IsActive = "is_active" + Attr_Jumbo = "jumbo" + Attr_Key = "key" + Attr_KeyCreationDate = "creation_date" + Attr_KeyID = "key_id" + Attr_KeyName = "name" + Attr_Keys = "keys" + Attr_Language = "language" + Attr_LastUpdateDate = "last_update_date" + Attr_LastUpdatedDate = "last_updated_date" + Attr_Leases = "leases" + Attr_LicenseRepositoryCapacity = "license_repository_capacity" + Attr_Location = "location" + Attr_MTU = "mtu" + Attr_MacAddress = "macaddress" + Attr_MasterChangedVolumeName = "master_changed_volume_name" + Attr_MasterVolumeName = "master_volume_name" + Attr_Max = "max" + Attr_MaxAllocationSize = "max_allocation_size" + Attr_MaxAvailable = "max_available" + Attr_MaxCoresAvailable = "max_cores_available" + Attr_MaxMem = "maxmem" + Attr_MaxMemoryAvailable = "max_memory_available" + Attr_MaxProc = "maxproc" + Attr_MaxVirtualCores = "max_virtual_cores" + Attr_MaximumStorageAllocation = "max_storage_allocation" + Attr_Members = "members" + Attr_Memory = "memory" + Attr_Message = "message" + Attr_Metered = "metered" + Attr_Min = "min" + Attr_MinMem = "minmem" + Attr_MinProc = "minproc" + Attr_MinVirtualCores = "min_virtual_cores" + Attr_MirroringState = "mirroring_state" + Attr_Name = "name" + Attr_NetworkID = "network_id" + Attr_NetworkName = "network_name" + Attr_NetworkPorts = "network_ports" + Attr_Networks = "networks" + Attr_NumberOfVolumes = "number_of_volumes" + Attr_Onboardings = "onboardings" + Attr_OperatingSystem = "operating_system" + Attr_PVMInstanceID = "pvm_instance_id" + Attr_PVMInstances = "pvm_instances" + Attr_PVMSnapshots = "pvm_snapshots" + Attr_PercentComplete = "percent_complete" + Attr_PinPolicy = "pin_policy" + Attr_PlacementGroupID = "placement_group_id" + Attr_PlacementGroups = "placement_groups" + Attr_Policy = "policy" + Attr_Pool = "pool" + Attr_PoolName = "pool_name" + Attr_Port = "port" + Attr_PortID = "portid" + Attr_PrimaryRole = "primary_role" + Attr_ProcType = "proctype" + Attr_Processors = "processors" + Attr_ProfileID = "profile_id" + Attr_Profiles = "profiles" + Attr_Progress = "progress" + Attr_PublicIP = "public_ip" + Attr_Region = "region" + Attr_RemoteCopyID = "remote_copy_id" + Attr_RemoteCopyRelationshipNames = "remote_copy_relationship_names" + Attr_RemoteCopyRelationships = "remote_copy_relationships" + Attr_ReplicationEnabled = "replication_enabled" + Attr_ReplicationSites = "replication_sites" + Attr_ReplicationStatus = "replication_status" + Attr_ReplicationType = "replication_type" + Attr_ReservedCores = "reserved_cores" + Attr_ResultsOnboardedVolumes = "results_onboarded_volumes" + Attr_ResultsVolumeOnboardingFailures = "results_volume_onboarding_failures" + Attr_SPPPlacementGroups = "spp_placement_groups" + Attr_SSHKey = "ssh_key" + Attr_Shareable = "shreable" + Attr_SharedCoreRatio = "shared_core_ratio" + Attr_SharedProcessorPool = "shared_processor_pool" + Attr_SharedProcessorPoolID = "shared_processor_pool_id" + Attr_SharedProcessorPoolPlacementGroups = "spp_placement_groups" + Attr_SharedProcessorPoolStatus = "status" + Attr_SharedProcessorPools = "shared_processor_pools" + Attr_Size = "size" + Attr_SourceVolumeName = "source_volume_name" + Attr_Speed = "speed" + Attr_StartTime = "start_time" + Attr_State = "state" + Attr_Status = "status" + Attr_StatusDescriptionErrors = "status_description_errors" + Attr_StatusDetail = "status_detail" + Attr_StoragePool = "storage_pool" + Attr_StoragePoolAffinity = "storage_pool_affinity" + Attr_StoragePoolsCapacity = "storage_pools_capacity" + Attr_StorageType = "storage_type" + Attr_StorageTypesCapacity = "storage_types_capacity" + Attr_Synchronized = "synchronized" + Attr_SysType = "systype" + Attr_SystemPoolName = "system_pool_name" + Attr_SystemPools = "system_pools" + Attr_Systems = "systems" + Attr_TargetVolumeName = "target_volume_name" + Attr_TenantID = "tenant_id" + Attr_TenantName = "tenant_name" + Attr_TotalCapacity = "total_capacity" + Attr_TotalInstances = "total_instances" + Attr_TotalMemoryConsumed = "total_memory_consumed" + Attr_TotalProcessorsConsumed = "total_processors_consumed" + Attr_TotalSSDStorageConsumed = "total_ssd_storage_consumed" + Attr_TotalStandardStorageConsumed = "total_standard_storage_consumed" + Attr_Type = "type" + Attr_URL = "url" + Attr_Uncapped = "uncapped" + Attr_UsedIPCount = "used_ip_count" + Attr_UsedIPPercent = "used_ip_percent" + Attr_UserIPAddress = "user_ip_address" + Attr_VCPUs = "vcpus" + Attr_VLanID = "vlan_id" + Attr_VPCCRNs = "vpc_crns" + Attr_VPCEnabled = "vpc_enabled" + Attr_VirtualCoresAssigned = "virtual_cores_assigned" + Attr_VolumeGroupName = "volume_group_name" + Attr_VolumeGroups = "volume_groups" + Attr_VolumeIDs = "volume_ids" + Attr_VolumePool = "volume_pool" + Attr_VolumeSnapshots = "volume_snapshots" + Attr_Volumes = "volumes" + Attr_WWN = "wwn" + Attr_Workspaces = "workspaces" + Attr_SharedProcessorPoolName = "name" + Attr_SharedProcessorPoolHostID = "host_id" + Attr_SharedProcessorPoolReservedCores = "reserved_cores" + Attr_SharedProcessorPoolAvailableCores = "available_cores" + Attr_SharedProcessorPoolAllocatedCores = "allocated_cores" + Attr_SharedProcessorPoolStatusDetail = "status_detail" + Attr_SharedProcessorPoolInstances = "instances" + Attr_SharedProcessorPoolInstanceCpus = "cpus" + Attr_SharedProcessorPoolInstanceUncapped = "uncapped" + Attr_SharedProcessorPoolInstanceAvailabilityZone = "availability_zone" + Attr_SharedProcessorPoolInstanceId = "id" + Attr_SharedProcessorPoolInstanceMemory = "memory" + Attr_SharedProcessorPoolInstanceName = "name" + Attr_SharedProcessorPoolInstanceStatus = "status" + Attr_SharedProcessorPoolInstanceVcpus = "vcpus" + Arg_PIInstanceSharedProcessorPool = "pi_shared_processor_pool" // TODO: Second Half Cleanup, remove extra variables