nutanix_volumes 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +11 -0
- data/Gemfile +9 -0
- data/README.md +290 -0
- data/Rakefile +10 -0
- data/docs/AssociateCategory202Response.md +20 -0
- data/docs/AssociateCategory4XXResponse.md +20 -0
- data/docs/AttachIscsiClient202Response.md +20 -0
- data/docs/AttachIscsiClient4XXResponse.md +20 -0
- data/docs/AttachVm202Response.md +20 -0
- data/docs/AttachVm4XXResponse.md +20 -0
- data/docs/CommonV10ConfigEntityReference.md +24 -0
- data/docs/CommonV10ConfigEntityType.md +15 -0
- data/docs/CommonV10ConfigFQDN.md +18 -0
- data/docs/CommonV10ConfigFlag.md +20 -0
- data/docs/CommonV10ConfigIPAddressOrFQDN.md +22 -0
- data/docs/CommonV10ConfigIPv4Address.md +20 -0
- data/docs/CommonV10ConfigIPv6Address.md +20 -0
- data/docs/CommonV10ConfigKVPair.md +20 -0
- data/docs/CommonV10ConfigKVPairValue.md +59 -0
- data/docs/CommonV10ConfigMapOfStringWrapper.md +18 -0
- data/docs/CommonV10ConfigMessage.md +24 -0
- data/docs/CommonV10ConfigMessageSeverity.md +15 -0
- data/docs/CommonV10ConfigMetadata.md +26 -0
- data/docs/CommonV10ConfigTenantAwareModel.md +18 -0
- data/docs/CommonV10ResponseApiLink.md +20 -0
- data/docs/CommonV10ResponseApiResponseMetadata.md +26 -0
- data/docs/CommonV10ResponseExternalizableAbstractModel.md +22 -0
- data/docs/CommonV10StatsDownSamplingOperator.md +15 -0
- data/docs/CreateVolumeDisk202Response.md +20 -0
- data/docs/CreateVolumeDisk4XXResponse.md +20 -0
- data/docs/CreateVolumeGroup202Response.md +20 -0
- data/docs/CreateVolumeGroup4XXResponse.md +20 -0
- data/docs/DeleteVolumeDiskById202Response.md +20 -0
- data/docs/DeleteVolumeDiskById4XXResponse.md +20 -0
- data/docs/DeleteVolumeGroupById202Response.md +20 -0
- data/docs/DeleteVolumeGroupById4XXResponse.md +20 -0
- data/docs/DetachIscsiClient202Response.md +20 -0
- data/docs/DetachIscsiClient4XXResponse.md +20 -0
- data/docs/DetachVm202Response.md +20 -0
- data/docs/DetachVm4XXResponse.md +20 -0
- data/docs/DisassociateCategory202Response.md +20 -0
- data/docs/DisassociateCategory4XXResponse.md +20 -0
- data/docs/GetIscsiClientById200Response.md +20 -0
- data/docs/GetIscsiClientById4XXResponse.md +20 -0
- data/docs/GetVolumeDiskById200Response.md +20 -0
- data/docs/GetVolumeDiskById4XXResponse.md +20 -0
- data/docs/GetVolumeDiskStats200Response.md +20 -0
- data/docs/GetVolumeDiskStats4XXResponse.md +20 -0
- data/docs/GetVolumeGroupById200Response.md +20 -0
- data/docs/GetVolumeGroupById4XXResponse.md +20 -0
- data/docs/GetVolumeGroupMetadataById200Response.md +20 -0
- data/docs/GetVolumeGroupMetadataById4XXResponse.md +20 -0
- data/docs/GetVolumeGroupStats200Response.md +20 -0
- data/docs/GetVolumeGroupStats4XXResponse.md +20 -0
- data/docs/IscsiClientsApi.md +253 -0
- data/docs/ListCategoryAssociationsByVolumeGroupId200Response.md +20 -0
- data/docs/ListCategoryAssociationsByVolumeGroupId4XXResponse.md +20 -0
- data/docs/ListExternalIscsiAttachmentsByVolumeGroupId200Response.md +20 -0
- data/docs/ListExternalIscsiAttachmentsByVolumeGroupId4XXResponse.md +20 -0
- data/docs/ListIscsiClients200Response.md +20 -0
- data/docs/ListIscsiClients4XXResponse.md +20 -0
- data/docs/ListVmAttachmentsByVolumeGroupId200Response.md +20 -0
- data/docs/ListVmAttachmentsByVolumeGroupId4XXResponse.md +20 -0
- data/docs/ListVolumeDisksByVolumeGroupId200Response.md +20 -0
- data/docs/ListVolumeDisksByVolumeGroupId4XXResponse.md +20 -0
- data/docs/ListVolumeGroups200Response.md +20 -0
- data/docs/ListVolumeGroups4XXResponse.md +20 -0
- data/docs/PrismV40ConfigTaskReference.md +18 -0
- data/docs/RevertVolumeGroup202Response.md +20 -0
- data/docs/RevertVolumeGroup4XXResponse.md +20 -0
- data/docs/UpdateIscsiClientById202Response.md +20 -0
- data/docs/UpdateIscsiClientById4XXResponse.md +20 -0
- data/docs/UpdateVolumeDiskById202Response.md +20 -0
- data/docs/UpdateVolumeDiskById4XXResponse.md +20 -0
- data/docs/UpdateVolumeGroupById202Response.md +20 -0
- data/docs/UpdateVolumeGroupById4XXResponse.md +20 -0
- data/docs/VolumeGroupsApi.md +1887 -0
- data/docs/VolumesV40ConfigAssociateCategoryApiResponse.md +20 -0
- data/docs/VolumesV40ConfigAttachIscsiClientApiResponse.md +20 -0
- data/docs/VolumesV40ConfigAttachNvmfClientApiResponse.md +20 -0
- data/docs/VolumesV40ConfigAttachVmApiResponse.md +20 -0
- data/docs/VolumesV40ConfigAttachmentType.md +15 -0
- data/docs/VolumesV40ConfigAuthenticationType.md +15 -0
- data/docs/VolumesV40ConfigCategoryDetails.md +24 -0
- data/docs/VolumesV40ConfigCategoryEntityReferences.md +18 -0
- data/docs/VolumesV40ConfigCluster.md +20 -0
- data/docs/VolumesV40ConfigCreateVolumeDiskApiResponse.md +20 -0
- data/docs/VolumesV40ConfigCreateVolumeGroupApiResponse.md +20 -0
- data/docs/VolumesV40ConfigDeleteVolumeDiskApiResponse.md +20 -0
- data/docs/VolumesV40ConfigDeleteVolumeGroupApiResponse.md +20 -0
- data/docs/VolumesV40ConfigDetachIscsiClientApiResponse.md +20 -0
- data/docs/VolumesV40ConfigDetachNvmfClientApiResponse.md +20 -0
- data/docs/VolumesV40ConfigDetachVmApiResponse.md +20 -0
- data/docs/VolumesV40ConfigDisassociateCategoryApiResponse.md +20 -0
- data/docs/VolumesV40ConfigDiskStorageFeatures.md +18 -0
- data/docs/VolumesV40ConfigFlashMode.md +18 -0
- data/docs/VolumesV40ConfigGetIscsiClientApiResponse.md +20 -0
- data/docs/VolumesV40ConfigGetIscsiClientApiResponseData.md +49 -0
- data/docs/VolumesV40ConfigGetVolumeDiskApiResponse.md +20 -0
- data/docs/VolumesV40ConfigGetVolumeDiskApiResponseData.md +49 -0
- data/docs/VolumesV40ConfigGetVolumeGroupApiResponse.md +20 -0
- data/docs/VolumesV40ConfigGetVolumeGroupApiResponseData.md +49 -0
- data/docs/VolumesV40ConfigGetVolumeGroupMetadataApiResponse.md +20 -0
- data/docs/VolumesV40ConfigGetVolumeGroupMetadataApiResponseData.md +49 -0
- data/docs/VolumesV40ConfigIscsiClient.md +38 -0
- data/docs/VolumesV40ConfigIscsiClientAttachment.md +20 -0
- data/docs/VolumesV40ConfigIscsiFeatures.md +20 -0
- data/docs/VolumesV40ConfigListCategoryAssociationsApiResponse.md +20 -0
- data/docs/VolumesV40ConfigListCategoryAssociationsApiResponseData.md +49 -0
- data/docs/VolumesV40ConfigListExternalIscsiAttachmentsApiResponse.md +20 -0
- data/docs/VolumesV40ConfigListExternalIscsiAttachmentsApiResponseData.md +49 -0
- data/docs/VolumesV40ConfigListIscsiClientsApiResponse.md +20 -0
- data/docs/VolumesV40ConfigListIscsiClientsApiResponseData.md +49 -0
- data/docs/VolumesV40ConfigListVmAttachmentsApiResponse.md +20 -0
- data/docs/VolumesV40ConfigListVmAttachmentsApiResponseData.md +49 -0
- data/docs/VolumesV40ConfigListVolumeDisksApiResponse.md +20 -0
- data/docs/VolumesV40ConfigListVolumeDisksApiResponseData.md +49 -0
- data/docs/VolumesV40ConfigListVolumeGroupsApiResponse.md +20 -0
- data/docs/VolumesV40ConfigListVolumeGroupsApiResponseData.md +49 -0
- data/docs/VolumesV40ConfigMigrateVolumeGroupApiResponse.md +20 -0
- data/docs/VolumesV40ConfigNvmfClient.md +28 -0
- data/docs/VolumesV40ConfigNvmfClientAttachment.md +24 -0
- data/docs/VolumesV40ConfigPauseVolumeGroupSynchronousReplicationApiResponse.md +20 -0
- data/docs/VolumesV40ConfigProtocol.md +15 -0
- data/docs/VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponse.md +20 -0
- data/docs/VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData.md +47 -0
- data/docs/VolumesV40ConfigRevertSpec.md +18 -0
- data/docs/VolumesV40ConfigRevertVolumeGroupApiResponse.md +20 -0
- data/docs/VolumesV40ConfigSharingStatus.md +15 -0
- data/docs/VolumesV40ConfigStorageFeatures.md +18 -0
- data/docs/VolumesV40ConfigTargetParam.md +20 -0
- data/docs/VolumesV40ConfigUpdateIscsiClientApiResponse.md +20 -0
- data/docs/VolumesV40ConfigUpdateIscsiClientApiResponseData.md +49 -0
- data/docs/VolumesV40ConfigUpdateIscsiClientByIdApiResponse.md +20 -0
- data/docs/VolumesV40ConfigUpdateVolumeDiskApiResponse.md +20 -0
- data/docs/VolumesV40ConfigUpdateVolumeDiskByIdApiResponse.md +20 -0
- data/docs/VolumesV40ConfigUpdateVolumeGroupApiResponse.md +20 -0
- data/docs/VolumesV40ConfigUpdateVolumeGroupByIdApiResponse.md +20 -0
- data/docs/VolumesV40ConfigUpdateVolumeGroupMetadataApiResponse.md +20 -0
- data/docs/VolumesV40ConfigUpdateVolumeGroupMetadataInfoApiResponse.md +20 -0
- data/docs/VolumesV40ConfigUsageType.md +15 -0
- data/docs/VolumesV40ConfigVmAttachment.md +20 -0
- data/docs/VolumesV40ConfigVolumeDisk.md +34 -0
- data/docs/VolumesV40ConfigVolumeGroup.md +54 -0
- data/docs/VolumesV40ConfigVolumeGroupAttachmentSite.md +15 -0
- data/docs/VolumesV40ConfigVolumeGroupMetadata.md +20 -0
- data/docs/VolumesV40ErrorAppMessage.md +28 -0
- data/docs/VolumesV40ErrorErrorResponse.md +18 -0
- data/docs/VolumesV40ErrorErrorResponseError.md +49 -0
- data/docs/VolumesV40ErrorMessageSeverity.md +15 -0
- data/docs/VolumesV40ErrorSchemaValidationError.md +26 -0
- data/docs/VolumesV40ErrorSchemaValidationErrorMessage.md +22 -0
- data/docs/VolumesV40StatsGetVolumeDiskStatsApiResponse.md +20 -0
- data/docs/VolumesV40StatsGetVolumeDiskStatsApiResponseData.md +49 -0
- data/docs/VolumesV40StatsGetVolumeGroupStatsApiResponse.md +20 -0
- data/docs/VolumesV40StatsGetVolumeGroupStatsApiResponseData.md +49 -0
- data/docs/VolumesV40StatsTimeValuePair.md +20 -0
- data/docs/VolumesV40StatsVolumeDiskStats.md +44 -0
- data/docs/VolumesV40StatsVolumeGroupStats.md +44 -0
- data/git_push.sh +57 -0
- data/lib/nutanix_volumes/api/iscsi_clients_api.rb +270 -0
- data/lib/nutanix_volumes/api/volume_groups_api.rb +2003 -0
- data/lib/nutanix_volumes/api_client.rb +394 -0
- data/lib/nutanix_volumes/api_error.rb +58 -0
- data/lib/nutanix_volumes/configuration.rb +315 -0
- data/lib/nutanix_volumes/models/associate_category202_response.rb +224 -0
- data/lib/nutanix_volumes/models/associate_category4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/attach_iscsi_client202_response.rb +224 -0
- data/lib/nutanix_volumes/models/attach_iscsi_client4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/attach_vm202_response.rb +224 -0
- data/lib/nutanix_volumes/models/attach_vm4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/common_v10_config_entity_reference.rb +336 -0
- data/lib/nutanix_volumes/models/common_v10_config_entity_type.rb +68 -0
- data/lib/nutanix_volumes/models/common_v10_config_flag.rb +256 -0
- data/lib/nutanix_volumes/models/common_v10_config_fqdn.rb +237 -0
- data/lib/nutanix_volumes/models/common_v10_config_ip_address_or_fqdn.rb +233 -0
- data/lib/nutanix_volumes/models/common_v10_config_ipv4_address.rb +284 -0
- data/lib/nutanix_volumes/models/common_v10_config_ipv6_address.rb +284 -0
- data/lib/nutanix_volumes/models/common_v10_config_kv_pair.rb +253 -0
- data/lib/nutanix_volumes/models/common_v10_config_kv_pair_value.rb +111 -0
- data/lib/nutanix_volumes/models/common_v10_config_map_of_string_wrapper.rb +218 -0
- data/lib/nutanix_volumes/models/common_v10_config_message.rb +268 -0
- data/lib/nutanix_volumes/models/common_v10_config_message_severity.rb +43 -0
- data/lib/nutanix_volumes/models/common_v10_config_metadata.rb +366 -0
- data/lib/nutanix_volumes/models/common_v10_config_tenant_aware_model.rb +237 -0
- data/lib/nutanix_volumes/models/common_v10_response_api_link.rb +226 -0
- data/lib/nutanix_volumes/models/common_v10_response_api_response_metadata.rb +376 -0
- data/lib/nutanix_volumes/models/common_v10_response_externalizable_abstract_model.rb +312 -0
- data/lib/nutanix_volumes/models/common_v10_stats_down_sampling_operator.rb +46 -0
- data/lib/nutanix_volumes/models/create_volume_disk202_response.rb +224 -0
- data/lib/nutanix_volumes/models/create_volume_disk4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/create_volume_group202_response.rb +224 -0
- data/lib/nutanix_volumes/models/create_volume_group4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/delete_volume_disk_by_id202_response.rb +224 -0
- data/lib/nutanix_volumes/models/delete_volume_disk_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/delete_volume_group_by_id202_response.rb +224 -0
- data/lib/nutanix_volumes/models/delete_volume_group_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/detach_iscsi_client202_response.rb +224 -0
- data/lib/nutanix_volumes/models/detach_iscsi_client4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/detach_vm202_response.rb +224 -0
- data/lib/nutanix_volumes/models/detach_vm4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/disassociate_category202_response.rb +224 -0
- data/lib/nutanix_volumes/models/disassociate_category4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/get_iscsi_client_by_id200_response.rb +224 -0
- data/lib/nutanix_volumes/models/get_iscsi_client_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/get_volume_disk_by_id200_response.rb +224 -0
- data/lib/nutanix_volumes/models/get_volume_disk_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/get_volume_disk_stats200_response.rb +224 -0
- data/lib/nutanix_volumes/models/get_volume_disk_stats4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/get_volume_group_by_id200_response.rb +224 -0
- data/lib/nutanix_volumes/models/get_volume_group_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/get_volume_group_metadata_by_id200_response.rb +224 -0
- data/lib/nutanix_volumes/models/get_volume_group_metadata_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/get_volume_group_stats200_response.rb +224 -0
- data/lib/nutanix_volumes/models/get_volume_group_stats4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/list_category_associations_by_volume_group_id200_response.rb +226 -0
- data/lib/nutanix_volumes/models/list_category_associations_by_volume_group_id4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/list_external_iscsi_attachments_by_volume_group_id200_response.rb +226 -0
- data/lib/nutanix_volumes/models/list_external_iscsi_attachments_by_volume_group_id4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/list_iscsi_clients200_response.rb +226 -0
- data/lib/nutanix_volumes/models/list_iscsi_clients4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/list_vm_attachments_by_volume_group_id200_response.rb +226 -0
- data/lib/nutanix_volumes/models/list_vm_attachments_by_volume_group_id4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/list_volume_disks_by_volume_group_id200_response.rb +226 -0
- data/lib/nutanix_volumes/models/list_volume_disks_by_volume_group_id4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/list_volume_groups200_response.rb +226 -0
- data/lib/nutanix_volumes/models/list_volume_groups4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/prism_v40_config_task_reference.rb +237 -0
- data/lib/nutanix_volumes/models/revert_volume_group202_response.rb +224 -0
- data/lib/nutanix_volumes/models/revert_volume_group4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/update_iscsi_client_by_id202_response.rb +224 -0
- data/lib/nutanix_volumes/models/update_iscsi_client_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/update_volume_disk_by_id202_response.rb +224 -0
- data/lib/nutanix_volumes/models/update_volume_disk_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/update_volume_group_by_id202_response.rb +224 -0
- data/lib/nutanix_volumes/models/update_volume_group_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_associate_category_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_attach_iscsi_client_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_attach_nvmf_client_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_attach_vm_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_attachment_type.rb +43 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_authentication_type.rb +42 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_category_details.rb +344 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_category_entity_references.rb +246 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_cluster.rb +265 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_create_volume_disk_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_create_volume_group_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_delete_volume_disk_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_delete_volume_group_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_detach_iscsi_client_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_detach_nvmf_client_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_detach_vm_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_disassociate_category_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_disk_storage_features.rb +215 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_flash_mode.rb +218 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_get_iscsi_client_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_get_iscsi_client_api_response_data.rb +105 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_disk_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_disk_api_response_data.rb +105 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_api_response_data.rb +105 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_metadata_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_metadata_api_response_data.rb +105 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_iscsi_client.rb +508 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_iscsi_client_attachment.rb +268 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_iscsi_features.rb +275 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_list_category_associations_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_list_category_associations_api_response_data.rb +105 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_list_external_iscsi_attachments_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_list_external_iscsi_attachments_api_response_data.rb +105 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_list_iscsi_clients_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_list_iscsi_clients_api_response_data.rb +105 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_list_vm_attachments_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_list_vm_attachments_api_response_data.rb +105 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_disks_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_disks_api_response_data.rb +105 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_groups_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_groups_api_response_data.rb +105 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_migrate_volume_group_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_nvmf_client.rb +412 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_nvmf_client_attachment.rb +343 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_pause_volume_group_synchronous_replication_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_protocol.rb +43 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_data.rb +104 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_revert_spec.rb +244 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_revert_volume_group_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_sharing_status.rb +42 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_storage_features.rb +215 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_target_param.rb +273 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_update_iscsi_client_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_update_iscsi_client_api_response_data.rb +105 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_update_iscsi_client_by_id_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_disk_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_disk_by_id_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_by_id_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_metadata_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_metadata_info_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_usage_type.rb +44 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_vm_attachment.rb +254 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_volume_disk.rb +466 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_volume_group.rb +657 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_volume_group_attachment_site.rb +42 -0
- data/lib/nutanix_volumes/models/volumes_v40_config_volume_group_metadata.rb +255 -0
- data/lib/nutanix_volumes/models/volumes_v40_error_app_message.rb +291 -0
- data/lib/nutanix_volumes/models/volumes_v40_error_error_response.rb +215 -0
- data/lib/nutanix_volumes/models/volumes_v40_error_error_response_error.rb +105 -0
- data/lib/nutanix_volumes/models/volumes_v40_error_message_severity.rb +43 -0
- data/lib/nutanix_volumes/models/volumes_v40_error_schema_validation_error.rb +258 -0
- data/lib/nutanix_volumes/models/volumes_v40_error_schema_validation_error_message.rb +236 -0
- data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_disk_stats_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_disk_stats_api_response_data.rb +105 -0
- data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_group_stats_api_response.rb +224 -0
- data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_group_stats_api_response_data.rb +105 -0
- data/lib/nutanix_volumes/models/volumes_v40_stats_time_value_pair.rb +225 -0
- data/lib/nutanix_volumes/models/volumes_v40_stats_volume_disk_stats.rb +743 -0
- data/lib/nutanix_volumes/models/volumes_v40_stats_volume_group_stats.rb +743 -0
- data/lib/nutanix_volumes/version.rb +15 -0
- data/lib/nutanix_volumes.rb +194 -0
- data/nutanix_volumes.gemspec +39 -0
- data/spec/api/iscsi_clients_api_spec.rb +79 -0
- data/spec/api/volume_groups_api_spec.rb +370 -0
- data/spec/models/associate_category202_response_spec.rb +42 -0
- data/spec/models/associate_category4_xx_response_spec.rb +42 -0
- data/spec/models/attach_iscsi_client202_response_spec.rb +42 -0
- data/spec/models/attach_iscsi_client4_xx_response_spec.rb +42 -0
- data/spec/models/attach_vm202_response_spec.rb +42 -0
- data/spec/models/attach_vm4_xx_response_spec.rb +42 -0
- data/spec/models/common_v10_config_entity_reference_spec.rb +54 -0
- data/spec/models/common_v10_config_entity_type_spec.rb +30 -0
- data/spec/models/common_v10_config_flag_spec.rb +42 -0
- data/spec/models/common_v10_config_fqdn_spec.rb +36 -0
- data/spec/models/common_v10_config_ip_address_or_fqdn_spec.rb +48 -0
- data/spec/models/common_v10_config_ipv4_address_spec.rb +42 -0
- data/spec/models/common_v10_config_ipv6_address_spec.rb +42 -0
- data/spec/models/common_v10_config_kv_pair_spec.rb +42 -0
- data/spec/models/common_v10_config_kv_pair_value_spec.rb +32 -0
- data/spec/models/common_v10_config_map_of_string_wrapper_spec.rb +36 -0
- data/spec/models/common_v10_config_message_severity_spec.rb +30 -0
- data/spec/models/common_v10_config_message_spec.rb +54 -0
- data/spec/models/common_v10_config_metadata_spec.rb +60 -0
- data/spec/models/common_v10_config_tenant_aware_model_spec.rb +36 -0
- data/spec/models/common_v10_response_api_link_spec.rb +42 -0
- data/spec/models/common_v10_response_api_response_metadata_spec.rb +60 -0
- data/spec/models/common_v10_response_externalizable_abstract_model_spec.rb +48 -0
- data/spec/models/common_v10_stats_down_sampling_operator_spec.rb +30 -0
- data/spec/models/create_volume_disk202_response_spec.rb +42 -0
- data/spec/models/create_volume_disk4_xx_response_spec.rb +42 -0
- data/spec/models/create_volume_group202_response_spec.rb +42 -0
- data/spec/models/create_volume_group4_xx_response_spec.rb +42 -0
- data/spec/models/delete_volume_disk_by_id202_response_spec.rb +42 -0
- data/spec/models/delete_volume_disk_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/delete_volume_group_by_id202_response_spec.rb +42 -0
- data/spec/models/delete_volume_group_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/detach_iscsi_client202_response_spec.rb +42 -0
- data/spec/models/detach_iscsi_client4_xx_response_spec.rb +42 -0
- data/spec/models/detach_vm202_response_spec.rb +42 -0
- data/spec/models/detach_vm4_xx_response_spec.rb +42 -0
- data/spec/models/disassociate_category202_response_spec.rb +42 -0
- data/spec/models/disassociate_category4_xx_response_spec.rb +42 -0
- data/spec/models/get_iscsi_client_by_id200_response_spec.rb +42 -0
- data/spec/models/get_iscsi_client_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_volume_disk_by_id200_response_spec.rb +42 -0
- data/spec/models/get_volume_disk_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_volume_disk_stats200_response_spec.rb +42 -0
- data/spec/models/get_volume_disk_stats4_xx_response_spec.rb +42 -0
- data/spec/models/get_volume_group_by_id200_response_spec.rb +42 -0
- data/spec/models/get_volume_group_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_volume_group_metadata_by_id200_response_spec.rb +42 -0
- data/spec/models/get_volume_group_metadata_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_volume_group_stats200_response_spec.rb +42 -0
- data/spec/models/get_volume_group_stats4_xx_response_spec.rb +42 -0
- data/spec/models/list_category_associations_by_volume_group_id200_response_spec.rb +42 -0
- data/spec/models/list_category_associations_by_volume_group_id4_xx_response_spec.rb +42 -0
- data/spec/models/list_external_iscsi_attachments_by_volume_group_id200_response_spec.rb +42 -0
- data/spec/models/list_external_iscsi_attachments_by_volume_group_id4_xx_response_spec.rb +42 -0
- data/spec/models/list_iscsi_clients200_response_spec.rb +42 -0
- data/spec/models/list_iscsi_clients4_xx_response_spec.rb +42 -0
- data/spec/models/list_vm_attachments_by_volume_group_id200_response_spec.rb +42 -0
- data/spec/models/list_vm_attachments_by_volume_group_id4_xx_response_spec.rb +42 -0
- data/spec/models/list_volume_disks_by_volume_group_id200_response_spec.rb +42 -0
- data/spec/models/list_volume_disks_by_volume_group_id4_xx_response_spec.rb +42 -0
- data/spec/models/list_volume_groups200_response_spec.rb +42 -0
- data/spec/models/list_volume_groups4_xx_response_spec.rb +42 -0
- data/spec/models/prism_v40_config_task_reference_spec.rb +36 -0
- data/spec/models/revert_volume_group202_response_spec.rb +42 -0
- data/spec/models/revert_volume_group4_xx_response_spec.rb +42 -0
- data/spec/models/update_iscsi_client_by_id202_response_spec.rb +42 -0
- data/spec/models/update_iscsi_client_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/update_volume_disk_by_id202_response_spec.rb +42 -0
- data/spec/models/update_volume_disk_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/update_volume_group_by_id202_response_spec.rb +42 -0
- data/spec/models/update_volume_group_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_associate_category_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_attach_iscsi_client_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_attach_nvmf_client_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_attach_vm_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_attachment_type_spec.rb +30 -0
- data/spec/models/volumes_v40_config_authentication_type_spec.rb +30 -0
- data/spec/models/volumes_v40_config_category_details_spec.rb +54 -0
- data/spec/models/volumes_v40_config_category_entity_references_spec.rb +36 -0
- data/spec/models/volumes_v40_config_cluster_spec.rb +42 -0
- data/spec/models/volumes_v40_config_create_volume_disk_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_create_volume_group_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_delete_volume_disk_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_delete_volume_group_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_detach_iscsi_client_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_detach_nvmf_client_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_detach_vm_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_disassociate_category_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_disk_storage_features_spec.rb +36 -0
- data/spec/models/volumes_v40_config_flash_mode_spec.rb +36 -0
- data/spec/models/volumes_v40_config_get_iscsi_client_api_response_data_spec.rb +32 -0
- data/spec/models/volumes_v40_config_get_iscsi_client_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_get_volume_disk_api_response_data_spec.rb +32 -0
- data/spec/models/volumes_v40_config_get_volume_disk_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_get_volume_group_api_response_data_spec.rb +32 -0
- data/spec/models/volumes_v40_config_get_volume_group_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_get_volume_group_metadata_api_response_data_spec.rb +32 -0
- data/spec/models/volumes_v40_config_get_volume_group_metadata_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_iscsi_client_attachment_spec.rb +42 -0
- data/spec/models/volumes_v40_config_iscsi_client_spec.rb +96 -0
- data/spec/models/volumes_v40_config_iscsi_features_spec.rb +42 -0
- data/spec/models/volumes_v40_config_list_category_associations_api_response_data_spec.rb +32 -0
- data/spec/models/volumes_v40_config_list_category_associations_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_list_external_iscsi_attachments_api_response_data_spec.rb +32 -0
- data/spec/models/volumes_v40_config_list_external_iscsi_attachments_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_list_iscsi_clients_api_response_data_spec.rb +32 -0
- data/spec/models/volumes_v40_config_list_iscsi_clients_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_list_vm_attachments_api_response_data_spec.rb +32 -0
- data/spec/models/volumes_v40_config_list_vm_attachments_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_list_volume_disks_api_response_data_spec.rb +32 -0
- data/spec/models/volumes_v40_config_list_volume_disks_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_list_volume_groups_api_response_data_spec.rb +32 -0
- data/spec/models/volumes_v40_config_list_volume_groups_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_migrate_volume_group_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_nvmf_client_attachment_spec.rb +54 -0
- data/spec/models/volumes_v40_config_nvmf_client_spec.rb +66 -0
- data/spec/models/volumes_v40_config_pause_volume_group_synchronous_replication_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_protocol_spec.rb +30 -0
- data/spec/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_data_spec.rb +32 -0
- data/spec/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_revert_spec_spec.rb +36 -0
- data/spec/models/volumes_v40_config_revert_volume_group_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_sharing_status_spec.rb +30 -0
- data/spec/models/volumes_v40_config_storage_features_spec.rb +36 -0
- data/spec/models/volumes_v40_config_target_param_spec.rb +42 -0
- data/spec/models/volumes_v40_config_update_iscsi_client_api_response_data_spec.rb +32 -0
- data/spec/models/volumes_v40_config_update_iscsi_client_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_update_iscsi_client_by_id_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_update_volume_disk_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_update_volume_disk_by_id_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_update_volume_group_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_update_volume_group_by_id_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_update_volume_group_metadata_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_update_volume_group_metadata_info_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_config_usage_type_spec.rb +30 -0
- data/spec/models/volumes_v40_config_vm_attachment_spec.rb +42 -0
- data/spec/models/volumes_v40_config_volume_disk_spec.rb +84 -0
- data/spec/models/volumes_v40_config_volume_group_attachment_site_spec.rb +30 -0
- data/spec/models/volumes_v40_config_volume_group_metadata_spec.rb +42 -0
- data/spec/models/volumes_v40_config_volume_group_spec.rb +144 -0
- data/spec/models/volumes_v40_error_app_message_spec.rb +66 -0
- data/spec/models/volumes_v40_error_error_response_error_spec.rb +32 -0
- data/spec/models/volumes_v40_error_error_response_spec.rb +36 -0
- data/spec/models/volumes_v40_error_message_severity_spec.rb +30 -0
- data/spec/models/volumes_v40_error_schema_validation_error_message_spec.rb +48 -0
- data/spec/models/volumes_v40_error_schema_validation_error_spec.rb +60 -0
- data/spec/models/volumes_v40_stats_get_volume_disk_stats_api_response_data_spec.rb +32 -0
- data/spec/models/volumes_v40_stats_get_volume_disk_stats_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_stats_get_volume_group_stats_api_response_data_spec.rb +32 -0
- data/spec/models/volumes_v40_stats_get_volume_group_stats_api_response_spec.rb +42 -0
- data/spec/models/volumes_v40_stats_time_value_pair_spec.rb +42 -0
- data/spec/models/volumes_v40_stats_volume_disk_stats_spec.rb +114 -0
- data/spec/models/volumes_v40_stats_volume_group_stats_spec.rb +114 -0
- data/spec/spec_helper.rb +111 -0
- data/swagger-volumes-v4.0-all.yaml +8140 -0
- metadata +714 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# NutanixVolumes::VolumesV40ErrorSchemaValidationErrorMessage
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **location** | **String** | The part of the request that failed validation. Validation can fail for path, query parameters, and request body. | [optional] |
|
|
8
|
+
| **message** | **String** | The detailed message for the validation error. | [optional] |
|
|
9
|
+
| **attribute_path** | **String** | The path of the attribute that failed validation in the schema. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'nutanix_volumes'
|
|
15
|
+
|
|
16
|
+
instance = NutanixVolumes::VolumesV40ErrorSchemaValidationErrorMessage.new(
|
|
17
|
+
location: null,
|
|
18
|
+
message: null,
|
|
19
|
+
attribute_path: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# NutanixVolumes::VolumesV40StatsGetVolumeDiskStatsApiResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **metadata** | [**CommonV10ResponseApiResponseMetadata**](CommonV10ResponseApiResponseMetadata.md) | | [optional] |
|
|
8
|
+
| **data** | [**VolumesV40StatsGetVolumeDiskStatsApiResponseData**](VolumesV40StatsGetVolumeDiskStatsApiResponseData.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'nutanix_volumes'
|
|
14
|
+
|
|
15
|
+
instance = NutanixVolumes::VolumesV40StatsGetVolumeDiskStatsApiResponse.new(
|
|
16
|
+
metadata: null,
|
|
17
|
+
data: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# NutanixVolumes::VolumesV40StatsGetVolumeDiskStatsApiResponseData
|
|
2
|
+
|
|
3
|
+
## Class instance methods
|
|
4
|
+
|
|
5
|
+
### `openapi_one_of`
|
|
6
|
+
|
|
7
|
+
Returns the list of classes defined in oneOf.
|
|
8
|
+
|
|
9
|
+
#### Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'nutanix_volumes'
|
|
13
|
+
|
|
14
|
+
NutanixVolumes::VolumesV40StatsGetVolumeDiskStatsApiResponseData.openapi_one_of
|
|
15
|
+
# =>
|
|
16
|
+
# [
|
|
17
|
+
# :'VolumesV40ErrorErrorResponse',
|
|
18
|
+
# :'VolumesV40StatsVolumeDiskStats'
|
|
19
|
+
# ]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### build
|
|
23
|
+
|
|
24
|
+
Find the appropriate object from the `openapi_one_of` list and casts the data into it.
|
|
25
|
+
|
|
26
|
+
#### Example
|
|
27
|
+
|
|
28
|
+
```ruby
|
|
29
|
+
require 'nutanix_volumes'
|
|
30
|
+
|
|
31
|
+
NutanixVolumes::VolumesV40StatsGetVolumeDiskStatsApiResponseData.build(data)
|
|
32
|
+
# => #<VolumesV40ErrorErrorResponse:0x00007fdd4aab02a0>
|
|
33
|
+
|
|
34
|
+
NutanixVolumes::VolumesV40StatsGetVolumeDiskStatsApiResponseData.build(data_that_doesnt_match)
|
|
35
|
+
# => nil
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
#### Parameters
|
|
39
|
+
|
|
40
|
+
| Name | Type | Description |
|
|
41
|
+
| ---- | ---- | ----------- |
|
|
42
|
+
| **data** | **Mixed** | data to be matched against the list of oneOf items |
|
|
43
|
+
|
|
44
|
+
#### Return type
|
|
45
|
+
|
|
46
|
+
- `VolumesV40ErrorErrorResponse`
|
|
47
|
+
- `VolumesV40StatsVolumeDiskStats`
|
|
48
|
+
- `nil` (if no type matches)
|
|
49
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# NutanixVolumes::VolumesV40StatsGetVolumeGroupStatsApiResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **metadata** | [**CommonV10ResponseApiResponseMetadata**](CommonV10ResponseApiResponseMetadata.md) | | [optional] |
|
|
8
|
+
| **data** | [**VolumesV40StatsGetVolumeGroupStatsApiResponseData**](VolumesV40StatsGetVolumeGroupStatsApiResponseData.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'nutanix_volumes'
|
|
14
|
+
|
|
15
|
+
instance = NutanixVolumes::VolumesV40StatsGetVolumeGroupStatsApiResponse.new(
|
|
16
|
+
metadata: null,
|
|
17
|
+
data: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# NutanixVolumes::VolumesV40StatsGetVolumeGroupStatsApiResponseData
|
|
2
|
+
|
|
3
|
+
## Class instance methods
|
|
4
|
+
|
|
5
|
+
### `openapi_one_of`
|
|
6
|
+
|
|
7
|
+
Returns the list of classes defined in oneOf.
|
|
8
|
+
|
|
9
|
+
#### Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'nutanix_volumes'
|
|
13
|
+
|
|
14
|
+
NutanixVolumes::VolumesV40StatsGetVolumeGroupStatsApiResponseData.openapi_one_of
|
|
15
|
+
# =>
|
|
16
|
+
# [
|
|
17
|
+
# :'VolumesV40ErrorErrorResponse',
|
|
18
|
+
# :'VolumesV40StatsVolumeGroupStats'
|
|
19
|
+
# ]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### build
|
|
23
|
+
|
|
24
|
+
Find the appropriate object from the `openapi_one_of` list and casts the data into it.
|
|
25
|
+
|
|
26
|
+
#### Example
|
|
27
|
+
|
|
28
|
+
```ruby
|
|
29
|
+
require 'nutanix_volumes'
|
|
30
|
+
|
|
31
|
+
NutanixVolumes::VolumesV40StatsGetVolumeGroupStatsApiResponseData.build(data)
|
|
32
|
+
# => #<VolumesV40ErrorErrorResponse:0x00007fdd4aab02a0>
|
|
33
|
+
|
|
34
|
+
NutanixVolumes::VolumesV40StatsGetVolumeGroupStatsApiResponseData.build(data_that_doesnt_match)
|
|
35
|
+
# => nil
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
#### Parameters
|
|
39
|
+
|
|
40
|
+
| Name | Type | Description |
|
|
41
|
+
| ---- | ---- | ----------- |
|
|
42
|
+
| **data** | **Mixed** | data to be matched against the list of oneOf items |
|
|
43
|
+
|
|
44
|
+
#### Return type
|
|
45
|
+
|
|
46
|
+
- `VolumesV40ErrorErrorResponse`
|
|
47
|
+
- `VolumesV40StatsVolumeGroupStats`
|
|
48
|
+
- `nil` (if no type matches)
|
|
49
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# NutanixVolumes::VolumesV40StatsTimeValuePair
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **timestamp** | **Time** | Timestamp is returned in Epoch format. | [optional] |
|
|
8
|
+
| **value** | **Integer** | Value of the stat at the corresponding timestamp value represented in Int64 format. | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'nutanix_volumes'
|
|
14
|
+
|
|
15
|
+
instance = NutanixVolumes::VolumesV40StatsTimeValuePair.new(
|
|
16
|
+
timestamp: 2009-09-23T14:30-07:00,
|
|
17
|
+
value: 49
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# NutanixVolumes::VolumesV40StatsVolumeDiskStats
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **tenant_id** | **String** | A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). | [optional][readonly] |
|
|
8
|
+
| **ext_id** | **String** | A globally unique identifier of an instance that is suitable for external consumption. | [optional][readonly] |
|
|
9
|
+
| **links** | [**Array<CommonV10ResponseApiLink>**](CommonV10ResponseApiLink.md) | A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. | [optional][readonly] |
|
|
10
|
+
| **volume_disk_ext_id** | **String** | Uuid of the Volume Disk. | [optional] |
|
|
11
|
+
| **controller_user_bytes** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller user bytes. | [optional][readonly] |
|
|
12
|
+
| **controller_num_iops** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller I/O rate measured in iops. | [optional][readonly] |
|
|
13
|
+
| **controller_num_read_iops** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller read I/O measured in iops. | [optional][readonly] |
|
|
14
|
+
| **controller_num_write_iops** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller write I/O measured in iops. | [optional][readonly] |
|
|
15
|
+
| **controller_io_bandwidth_k_bps** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller I/O bandwidth measured in Kbps. | [optional][readonly] |
|
|
16
|
+
| **controller_read_io_bandwidth_k_bps** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller read I/O bandwidth measured in Kbps. | [optional][readonly] |
|
|
17
|
+
| **controller_write_io_bandwidth_k_bps** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller write I/O bandwidth measured in Kbps. | [optional][readonly] |
|
|
18
|
+
| **controller_avg_io_latency_usecs** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller average I/O latency measured in microseconds. | [optional][readonly] |
|
|
19
|
+
| **controller_avg_read_io_latency_usecs** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller average read I/O latency measured in microseconds. | [optional][readonly] |
|
|
20
|
+
| **controller_avg_write_io_latency_usecs** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller average write I/O latency measured in microseconds. | [optional][readonly] |
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require 'nutanix_volumes'
|
|
26
|
+
|
|
27
|
+
instance = NutanixVolumes::VolumesV40StatsVolumeDiskStats.new(
|
|
28
|
+
tenant_id: d92bfbe7-1b58-4493-ba79-3cf2a204bdca,
|
|
29
|
+
ext_id: d4e34a80-abc5-46ca-8fcd-af3f00f2930a,
|
|
30
|
+
links: null,
|
|
31
|
+
volume_disk_ext_id: 65fc7d80-f563-4929-97d6-860ba58edf37,
|
|
32
|
+
controller_user_bytes: null,
|
|
33
|
+
controller_num_iops: null,
|
|
34
|
+
controller_num_read_iops: null,
|
|
35
|
+
controller_num_write_iops: null,
|
|
36
|
+
controller_io_bandwidth_k_bps: null,
|
|
37
|
+
controller_read_io_bandwidth_k_bps: null,
|
|
38
|
+
controller_write_io_bandwidth_k_bps: null,
|
|
39
|
+
controller_avg_io_latency_usecs: null,
|
|
40
|
+
controller_avg_read_io_latency_usecs: null,
|
|
41
|
+
controller_avg_write_io_latency_usecs: null
|
|
42
|
+
)
|
|
43
|
+
```
|
|
44
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# NutanixVolumes::VolumesV40StatsVolumeGroupStats
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **tenant_id** | **String** | A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). | [optional][readonly] |
|
|
8
|
+
| **ext_id** | **String** | A globally unique identifier of an instance that is suitable for external consumption. | [optional][readonly] |
|
|
9
|
+
| **links** | [**Array<CommonV10ResponseApiLink>**](CommonV10ResponseApiLink.md) | A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. | [optional][readonly] |
|
|
10
|
+
| **volume_group_ext_id** | **String** | Uuid of the Volume Group. | [optional] |
|
|
11
|
+
| **controller_user_bytes** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller user bytes. | [optional][readonly] |
|
|
12
|
+
| **controller_num_iops** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller I/O rate measured in iops. | [optional][readonly] |
|
|
13
|
+
| **controller_num_read_iops** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller read I/O measured in iops. | [optional][readonly] |
|
|
14
|
+
| **controller_num_write_iops** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller write I/O measured in iops. | [optional][readonly] |
|
|
15
|
+
| **controller_io_bandwidth_k_bps** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller I/O bandwidth measured in Kbps. | [optional][readonly] |
|
|
16
|
+
| **controller_read_io_bandwidth_k_bps** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller read I/O bandwidth measured in Kbps. | [optional][readonly] |
|
|
17
|
+
| **controller_write_io_bandwidth_k_bps** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller write I/O bandwidth measured in Kbps. | [optional][readonly] |
|
|
18
|
+
| **controller_avg_io_latency_usecs** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller average I/O latency measured in microseconds. | [optional][readonly] |
|
|
19
|
+
| **controller_avg_read_io_latency_usecs** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller average read I/O latency measured in microseconds. | [optional][readonly] |
|
|
20
|
+
| **controller_avg_write_io_latency_usecs** | [**Array<VolumesV40StatsTimeValuePair>**](VolumesV40StatsTimeValuePair.md) | Controller average write I/O latency measured in microseconds. | [optional][readonly] |
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require 'nutanix_volumes'
|
|
26
|
+
|
|
27
|
+
instance = NutanixVolumes::VolumesV40StatsVolumeGroupStats.new(
|
|
28
|
+
tenant_id: d92bfbe7-1b58-4493-ba79-3cf2a204bdca,
|
|
29
|
+
ext_id: d4e34a80-abc5-46ca-8fcd-af3f00f2930a,
|
|
30
|
+
links: null,
|
|
31
|
+
volume_group_ext_id: 667760dd-4cbf-41a7-846b-04514441b77c,
|
|
32
|
+
controller_user_bytes: null,
|
|
33
|
+
controller_num_iops: null,
|
|
34
|
+
controller_num_read_iops: null,
|
|
35
|
+
controller_num_write_iops: null,
|
|
36
|
+
controller_io_bandwidth_k_bps: null,
|
|
37
|
+
controller_read_io_bandwidth_k_bps: null,
|
|
38
|
+
controller_write_io_bandwidth_k_bps: null,
|
|
39
|
+
controller_avg_io_latency_usecs: null,
|
|
40
|
+
controller_avg_read_io_latency_usecs: null,
|
|
41
|
+
controller_avg_write_io_latency_usecs: null
|
|
42
|
+
)
|
|
43
|
+
```
|
|
44
|
+
|
data/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="GIT_USER_ID"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Nutanix Volumes APIs
|
|
3
|
+
|
|
4
|
+
#Configure volumes.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 4.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.9.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module NutanixVolumes
|
|
16
|
+
class IscsiClientsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Fetch an iSCSI client details
|
|
23
|
+
# Fetches the iSCSI client details identified by {extId}.
|
|
24
|
+
# @param ext_id [String] The external identifier of an iSCSI client.
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [GetIscsiClientById200Response]
|
|
27
|
+
def get_iscsi_client_by_id(ext_id, opts = {})
|
|
28
|
+
data, _status_code, _headers = get_iscsi_client_by_id_with_http_info(ext_id, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Fetch an iSCSI client details
|
|
33
|
+
# Fetches the iSCSI client details identified by {extId}.
|
|
34
|
+
# @param ext_id [String] The external identifier of an iSCSI client.
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(GetIscsiClientById200Response, Integer, Hash)>] GetIscsiClientById200Response data, response status code and response headers
|
|
37
|
+
def get_iscsi_client_by_id_with_http_info(ext_id, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: IscsiClientsApi.get_iscsi_client_by_id ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'ext_id' is set
|
|
42
|
+
if @api_client.config.client_side_validation && ext_id.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'ext_id' when calling IscsiClientsApi.get_iscsi_client_by_id"
|
|
44
|
+
end
|
|
45
|
+
pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
|
|
46
|
+
if @api_client.config.client_side_validation && ext_id !~ pattern
|
|
47
|
+
fail ArgumentError, "invalid value for 'ext_id' when calling IscsiClientsApi.get_iscsi_client_by_id, must conform to the pattern #{pattern}."
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# resource path
|
|
51
|
+
local_var_path = '/volumes/v4.0/config/iscsi-clients/{extId}'.sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
|
|
52
|
+
|
|
53
|
+
# query parameters
|
|
54
|
+
query_params = opts[:query_params] || {}
|
|
55
|
+
|
|
56
|
+
# header parameters
|
|
57
|
+
header_params = opts[:header_params] || {}
|
|
58
|
+
# HTTP header 'Accept' (if needed)
|
|
59
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
60
|
+
|
|
61
|
+
# form parameters
|
|
62
|
+
form_params = opts[:form_params] || {}
|
|
63
|
+
|
|
64
|
+
# http body (model)
|
|
65
|
+
post_body = opts[:debug_body]
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type] || 'GetIscsiClientById200Response'
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"IscsiClientsApi.get_iscsi_client_by_id",
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: IscsiClientsApi#get_iscsi_client_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# List all the iSCSI clients
|
|
91
|
+
# Fetches the list of iSCSI clients.
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
|
|
94
|
+
# @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
|
|
95
|
+
# @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. The filter can be applied to the following fields: - clusterReference - extId
|
|
96
|
+
# @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - clusterReference - extId
|
|
97
|
+
# @option opts [String] :expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported. - cluster
|
|
98
|
+
# @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - clusterReference - extId
|
|
99
|
+
# @return [ListIscsiClients200Response]
|
|
100
|
+
def list_iscsi_clients(opts = {})
|
|
101
|
+
data, _status_code, _headers = list_iscsi_clients_with_http_info(opts)
|
|
102
|
+
data
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# List all the iSCSI clients
|
|
106
|
+
# Fetches the list of iSCSI clients.
|
|
107
|
+
# @param [Hash] opts the optional parameters
|
|
108
|
+
# @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
|
|
109
|
+
# @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
|
|
110
|
+
# @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. The filter can be applied to the following fields: - clusterReference - extId
|
|
111
|
+
# @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - clusterReference - extId
|
|
112
|
+
# @option opts [String] :expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported. - cluster
|
|
113
|
+
# @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - clusterReference - extId
|
|
114
|
+
# @return [Array<(ListIscsiClients200Response, Integer, Hash)>] ListIscsiClients200Response data, response status code and response headers
|
|
115
|
+
def list_iscsi_clients_with_http_info(opts = {})
|
|
116
|
+
if @api_client.config.debugging
|
|
117
|
+
@api_client.config.logger.debug 'Calling API: IscsiClientsApi.list_iscsi_clients ...'
|
|
118
|
+
end
|
|
119
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
|
|
120
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling IscsiClientsApi.list_iscsi_clients, must be greater than or equal to 0.'
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
124
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling IscsiClientsApi.list_iscsi_clients, must be smaller than or equal to 100.'
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
128
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling IscsiClientsApi.list_iscsi_clients, must be greater than or equal to 1.'
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# resource path
|
|
132
|
+
local_var_path = '/volumes/v4.0/config/iscsi-clients'
|
|
133
|
+
|
|
134
|
+
# query parameters
|
|
135
|
+
query_params = opts[:query_params] || {}
|
|
136
|
+
query_params[:'$page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
137
|
+
query_params[:'$limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
138
|
+
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
139
|
+
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
|
140
|
+
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
141
|
+
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
|
|
142
|
+
|
|
143
|
+
# header parameters
|
|
144
|
+
header_params = opts[:header_params] || {}
|
|
145
|
+
# HTTP header 'Accept' (if needed)
|
|
146
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
147
|
+
|
|
148
|
+
# form parameters
|
|
149
|
+
form_params = opts[:form_params] || {}
|
|
150
|
+
|
|
151
|
+
# http body (model)
|
|
152
|
+
post_body = opts[:debug_body]
|
|
153
|
+
|
|
154
|
+
# return_type
|
|
155
|
+
return_type = opts[:debug_return_type] || 'ListIscsiClients200Response'
|
|
156
|
+
|
|
157
|
+
# auth_names
|
|
158
|
+
auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
|
|
159
|
+
|
|
160
|
+
new_options = opts.merge(
|
|
161
|
+
:operation => :"IscsiClientsApi.list_iscsi_clients",
|
|
162
|
+
:header_params => header_params,
|
|
163
|
+
:query_params => query_params,
|
|
164
|
+
:form_params => form_params,
|
|
165
|
+
:body => post_body,
|
|
166
|
+
:auth_names => auth_names,
|
|
167
|
+
:return_type => return_type
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
171
|
+
if @api_client.config.debugging
|
|
172
|
+
@api_client.config.logger.debug "API called: IscsiClientsApi#list_iscsi_clients\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
173
|
+
end
|
|
174
|
+
return data, status_code, headers
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Update an iSCSI client
|
|
178
|
+
# Modifies the details of an existing iSCSI client configuration identified by {extId}.
|
|
179
|
+
# @param ext_id [String] The external identifier of an iSCSI client.
|
|
180
|
+
# @param if_match [String] The If-Match request header makes the request conditional. When not provided, the server will respond with an HTTP-428 (Precondition Required) response code indicating that the server requires the request to be conditional. The server will allow the successful completion of PUT and PATCH operations, if the resource matches the ETag value returned to the response of a GET operation. If the conditional does not match, then an HTTP-412 (Precondition Failed) response will be returned.
|
|
181
|
+
# @param ntnx_request_id [String] A unique identifier that is associated with each request. The provided value must be opaque and preferably in Universal Unique Identifier (UUID) format. This identifier is also used as an idempotence token for safely retrying requests in case of network errors. All the supported Nutanix API clients add this auto-generated request identifier to each request.
|
|
182
|
+
# @param volumes_v40_config_iscsi_client [VolumesV40ConfigIscsiClient] A model that represents an iSCSI client that can be associated with a Volume Group as an external attachment.
|
|
183
|
+
# @param [Hash] opts the optional parameters
|
|
184
|
+
# @return [UpdateIscsiClientById202Response]
|
|
185
|
+
def update_iscsi_client_by_id(ext_id, if_match, ntnx_request_id, volumes_v40_config_iscsi_client, opts = {})
|
|
186
|
+
data, _status_code, _headers = update_iscsi_client_by_id_with_http_info(ext_id, if_match, ntnx_request_id, volumes_v40_config_iscsi_client, opts)
|
|
187
|
+
data
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Update an iSCSI client
|
|
191
|
+
# Modifies the details of an existing iSCSI client configuration identified by {extId}.
|
|
192
|
+
# @param ext_id [String] The external identifier of an iSCSI client.
|
|
193
|
+
# @param if_match [String] The If-Match request header makes the request conditional. When not provided, the server will respond with an HTTP-428 (Precondition Required) response code indicating that the server requires the request to be conditional. The server will allow the successful completion of PUT and PATCH operations, if the resource matches the ETag value returned to the response of a GET operation. If the conditional does not match, then an HTTP-412 (Precondition Failed) response will be returned.
|
|
194
|
+
# @param ntnx_request_id [String] A unique identifier that is associated with each request. The provided value must be opaque and preferably in Universal Unique Identifier (UUID) format. This identifier is also used as an idempotence token for safely retrying requests in case of network errors. All the supported Nutanix API clients add this auto-generated request identifier to each request.
|
|
195
|
+
# @param volumes_v40_config_iscsi_client [VolumesV40ConfigIscsiClient] A model that represents an iSCSI client that can be associated with a Volume Group as an external attachment.
|
|
196
|
+
# @param [Hash] opts the optional parameters
|
|
197
|
+
# @return [Array<(UpdateIscsiClientById202Response, Integer, Hash)>] UpdateIscsiClientById202Response data, response status code and response headers
|
|
198
|
+
def update_iscsi_client_by_id_with_http_info(ext_id, if_match, ntnx_request_id, volumes_v40_config_iscsi_client, opts = {})
|
|
199
|
+
if @api_client.config.debugging
|
|
200
|
+
@api_client.config.logger.debug 'Calling API: IscsiClientsApi.update_iscsi_client_by_id ...'
|
|
201
|
+
end
|
|
202
|
+
# verify the required parameter 'ext_id' is set
|
|
203
|
+
if @api_client.config.client_side_validation && ext_id.nil?
|
|
204
|
+
fail ArgumentError, "Missing the required parameter 'ext_id' when calling IscsiClientsApi.update_iscsi_client_by_id"
|
|
205
|
+
end
|
|
206
|
+
pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
|
|
207
|
+
if @api_client.config.client_side_validation && ext_id !~ pattern
|
|
208
|
+
fail ArgumentError, "invalid value for 'ext_id' when calling IscsiClientsApi.update_iscsi_client_by_id, must conform to the pattern #{pattern}."
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# verify the required parameter 'if_match' is set
|
|
212
|
+
if @api_client.config.client_side_validation && if_match.nil?
|
|
213
|
+
fail ArgumentError, "Missing the required parameter 'if_match' when calling IscsiClientsApi.update_iscsi_client_by_id"
|
|
214
|
+
end
|
|
215
|
+
# verify the required parameter 'ntnx_request_id' is set
|
|
216
|
+
if @api_client.config.client_side_validation && ntnx_request_id.nil?
|
|
217
|
+
fail ArgumentError, "Missing the required parameter 'ntnx_request_id' when calling IscsiClientsApi.update_iscsi_client_by_id"
|
|
218
|
+
end
|
|
219
|
+
# verify the required parameter 'volumes_v40_config_iscsi_client' is set
|
|
220
|
+
if @api_client.config.client_side_validation && volumes_v40_config_iscsi_client.nil?
|
|
221
|
+
fail ArgumentError, "Missing the required parameter 'volumes_v40_config_iscsi_client' when calling IscsiClientsApi.update_iscsi_client_by_id"
|
|
222
|
+
end
|
|
223
|
+
# resource path
|
|
224
|
+
local_var_path = '/volumes/v4.0/config/iscsi-clients/{extId}'.sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
|
|
225
|
+
|
|
226
|
+
# query parameters
|
|
227
|
+
query_params = opts[:query_params] || {}
|
|
228
|
+
|
|
229
|
+
# header parameters
|
|
230
|
+
header_params = opts[:header_params] || {}
|
|
231
|
+
# HTTP header 'Accept' (if needed)
|
|
232
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
233
|
+
# HTTP header 'Content-Type'
|
|
234
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
235
|
+
if !content_type.nil?
|
|
236
|
+
header_params['Content-Type'] = content_type
|
|
237
|
+
end
|
|
238
|
+
header_params[:'If-Match'] = if_match
|
|
239
|
+
header_params[:'NTNX-Request-Id'] = ntnx_request_id
|
|
240
|
+
|
|
241
|
+
# form parameters
|
|
242
|
+
form_params = opts[:form_params] || {}
|
|
243
|
+
|
|
244
|
+
# http body (model)
|
|
245
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(volumes_v40_config_iscsi_client)
|
|
246
|
+
|
|
247
|
+
# return_type
|
|
248
|
+
return_type = opts[:debug_return_type] || 'UpdateIscsiClientById202Response'
|
|
249
|
+
|
|
250
|
+
# auth_names
|
|
251
|
+
auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
|
|
252
|
+
|
|
253
|
+
new_options = opts.merge(
|
|
254
|
+
:operation => :"IscsiClientsApi.update_iscsi_client_by_id",
|
|
255
|
+
:header_params => header_params,
|
|
256
|
+
:query_params => query_params,
|
|
257
|
+
:form_params => form_params,
|
|
258
|
+
:body => post_body,
|
|
259
|
+
:auth_names => auth_names,
|
|
260
|
+
:return_type => return_type
|
|
261
|
+
)
|
|
262
|
+
|
|
263
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
264
|
+
if @api_client.config.debugging
|
|
265
|
+
@api_client.config.logger.debug "API called: IscsiClientsApi#update_iscsi_client_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
266
|
+
end
|
|
267
|
+
return data, status_code, headers
|
|
268
|
+
end
|
|
269
|
+
end
|
|
270
|
+
end
|