nutanix_volumes 0.1.0 → 0.2.1
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 +4 -4
- data/CHANGELOG.md +20 -0
- data/LICENSE.txt +202 -0
- data/README.md +5 -6
- data/bin/console +15 -0
- data/bin/openapi-generate +30 -0
- data/bin/openapi-generate-ruby-post-process +6 -0
- data/docs/VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponse.md +1 -1
- data/docs/VolumesV40ConfigUpdateVolumeGroupMetadataApiResponse.md +1 -1
- data/docs/VolumesV40ConfigUpdateVolumeGroupMetadataInfoApiResponse.md +1 -1
- data/lib/nutanix_volumes/api/iscsi_clients_api.rb +1 -1
- data/lib/nutanix_volumes/api/volume_groups_api.rb +1 -1
- data/lib/nutanix_volumes/api_client.rb +8 -9
- data/lib/nutanix_volumes/api_error.rb +1 -1
- data/lib/nutanix_volumes/api_model_base.rb +88 -0
- data/lib/nutanix_volumes/configuration.rb +1 -1
- data/lib/nutanix_volumes/models/associate_category202_response.rb +11 -78
- data/lib/nutanix_volumes/models/associate_category4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/attach_iscsi_client202_response.rb +11 -78
- data/lib/nutanix_volumes/models/attach_iscsi_client4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/attach_vm202_response.rb +11 -78
- data/lib/nutanix_volumes/models/attach_vm4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/common_v10_config_entity_reference.rb +11 -78
- data/lib/nutanix_volumes/models/common_v10_config_entity_type.rb +4 -4
- data/lib/nutanix_volumes/models/common_v10_config_flag.rb +13 -80
- data/lib/nutanix_volumes/models/common_v10_config_fqdn.rb +11 -78
- data/lib/nutanix_volumes/models/common_v10_config_ip_address_or_fqdn.rb +11 -78
- data/lib/nutanix_volumes/models/common_v10_config_ipv4_address.rb +11 -78
- data/lib/nutanix_volumes/models/common_v10_config_ipv6_address.rb +11 -78
- data/lib/nutanix_volumes/models/common_v10_config_kv_pair.rb +13 -80
- data/lib/nutanix_volumes/models/common_v10_config_kv_pair_value.rb +3 -4
- data/lib/nutanix_volumes/models/common_v10_config_map_of_string_wrapper.rb +11 -78
- data/lib/nutanix_volumes/models/common_v10_config_message.rb +11 -78
- data/lib/nutanix_volumes/models/common_v10_config_message_severity.rb +4 -4
- data/lib/nutanix_volumes/models/common_v10_config_metadata.rb +11 -78
- data/lib/nutanix_volumes/models/common_v10_config_tenant_aware_model.rb +11 -78
- data/lib/nutanix_volumes/models/common_v10_response_api_link.rb +11 -78
- data/lib/nutanix_volumes/models/common_v10_response_api_response_metadata.rb +11 -78
- data/lib/nutanix_volumes/models/common_v10_response_externalizable_abstract_model.rb +11 -78
- data/lib/nutanix_volumes/models/common_v10_stats_down_sampling_operator.rb +4 -4
- data/lib/nutanix_volumes/models/create_volume_disk202_response.rb +11 -78
- data/lib/nutanix_volumes/models/create_volume_disk4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/create_volume_group202_response.rb +11 -78
- data/lib/nutanix_volumes/models/create_volume_group4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/delete_volume_disk_by_id202_response.rb +11 -78
- data/lib/nutanix_volumes/models/delete_volume_disk_by_id4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/delete_volume_group_by_id202_response.rb +11 -78
- data/lib/nutanix_volumes/models/delete_volume_group_by_id4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/detach_iscsi_client202_response.rb +11 -78
- data/lib/nutanix_volumes/models/detach_iscsi_client4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/detach_vm202_response.rb +11 -78
- data/lib/nutanix_volumes/models/detach_vm4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/disassociate_category202_response.rb +11 -78
- data/lib/nutanix_volumes/models/disassociate_category4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/get_iscsi_client_by_id200_response.rb +11 -78
- data/lib/nutanix_volumes/models/get_iscsi_client_by_id4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/get_volume_disk_by_id200_response.rb +11 -78
- data/lib/nutanix_volumes/models/get_volume_disk_by_id4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/get_volume_disk_stats200_response.rb +11 -78
- data/lib/nutanix_volumes/models/get_volume_disk_stats4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/get_volume_group_by_id200_response.rb +11 -78
- data/lib/nutanix_volumes/models/get_volume_group_by_id4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/get_volume_group_metadata_by_id200_response.rb +11 -78
- data/lib/nutanix_volumes/models/get_volume_group_metadata_by_id4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/get_volume_group_stats200_response.rb +11 -78
- data/lib/nutanix_volumes/models/get_volume_group_stats4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/list_category_associations_by_volume_group_id200_response.rb +11 -78
- data/lib/nutanix_volumes/models/list_category_associations_by_volume_group_id4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/list_external_iscsi_attachments_by_volume_group_id200_response.rb +11 -78
- data/lib/nutanix_volumes/models/list_external_iscsi_attachments_by_volume_group_id4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/list_iscsi_clients200_response.rb +11 -78
- data/lib/nutanix_volumes/models/list_iscsi_clients4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/list_vm_attachments_by_volume_group_id200_response.rb +11 -78
- data/lib/nutanix_volumes/models/list_vm_attachments_by_volume_group_id4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/list_volume_disks_by_volume_group_id200_response.rb +11 -78
- data/lib/nutanix_volumes/models/list_volume_disks_by_volume_group_id4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/list_volume_groups200_response.rb +11 -78
- data/lib/nutanix_volumes/models/list_volume_groups4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/prism_v40_config_task_reference.rb +11 -78
- data/lib/nutanix_volumes/models/revert_volume_group202_response.rb +11 -78
- data/lib/nutanix_volumes/models/revert_volume_group4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/update_iscsi_client_by_id202_response.rb +11 -78
- data/lib/nutanix_volumes/models/update_iscsi_client_by_id4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/update_volume_disk_by_id202_response.rb +11 -78
- data/lib/nutanix_volumes/models/update_volume_disk_by_id4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/update_volume_group_by_id202_response.rb +11 -78
- data/lib/nutanix_volumes/models/update_volume_group_by_id4_xx_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_associate_category_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_attach_iscsi_client_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_attach_nvmf_client_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_attach_vm_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_attachment_type.rb +4 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_authentication_type.rb +4 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_category_details.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_category_entity_references.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_cluster.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_create_volume_disk_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_create_volume_group_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_delete_volume_disk_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_delete_volume_group_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_detach_iscsi_client_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_detach_nvmf_client_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_detach_vm_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_disassociate_category_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_disk_storage_features.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_flash_mode.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_get_iscsi_client_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_get_iscsi_client_api_response_data.rb +3 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_disk_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_disk_api_response_data.rb +3 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_api_response_data.rb +3 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_metadata_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_metadata_api_response_data.rb +3 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_iscsi_client.rb +13 -80
- data/lib/nutanix_volumes/models/volumes_v40_config_iscsi_client_attachment.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_iscsi_features.rb +13 -80
- data/lib/nutanix_volumes/models/volumes_v40_config_list_category_associations_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_list_category_associations_api_response_data.rb +3 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_list_external_iscsi_attachments_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_list_external_iscsi_attachments_api_response_data.rb +3 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_list_iscsi_clients_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_list_iscsi_clients_api_response_data.rb +3 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_list_vm_attachments_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_list_vm_attachments_api_response_data.rb +3 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_disks_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_disks_api_response_data.rb +3 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_groups_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_groups_api_response_data.rb +3 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_migrate_volume_group_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_nvmf_client.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_nvmf_client_attachment.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_pause_volume_group_synchronous_replication_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_protocol.rb +4 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response.rb +12 -79
- data/lib/nutanix_volumes/models/volumes_v40_config_revert_spec.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_revert_volume_group_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_sharing_status.rb +4 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_storage_features.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_target_param.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_update_iscsi_client_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_update_iscsi_client_api_response_data.rb +3 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_update_iscsi_client_by_id_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_disk_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_disk_by_id_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_by_id_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_metadata_api_response.rb +12 -79
- data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_metadata_info_api_response.rb +12 -79
- data/lib/nutanix_volumes/models/volumes_v40_config_usage_type.rb +4 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_vm_attachment.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_volume_disk.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_config_volume_group.rb +13 -80
- data/lib/nutanix_volumes/models/volumes_v40_config_volume_group_attachment_site.rb +4 -4
- data/lib/nutanix_volumes/models/volumes_v40_config_volume_group_metadata.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_error_app_message.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_error_error_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_error_error_response_error.rb +3 -4
- data/lib/nutanix_volumes/models/volumes_v40_error_message_severity.rb +4 -4
- data/lib/nutanix_volumes/models/volumes_v40_error_schema_validation_error.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_error_schema_validation_error_message.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_disk_stats_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_disk_stats_api_response_data.rb +3 -4
- data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_group_stats_api_response.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_group_stats_api_response_data.rb +3 -4
- data/lib/nutanix_volumes/models/volumes_v40_stats_time_value_pair.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_stats_volume_disk_stats.rb +11 -78
- data/lib/nutanix_volumes/models/volumes_v40_stats_volume_group_stats.rb +11 -78
- data/lib/nutanix_volumes/version.rb +2 -2
- data/lib/nutanix_volumes.rb +2 -2
- data/openapi-generator-cli-7.17.0.jar +0 -0
- data/pkg/nutanix_volumes-0.1.0.gem +0 -0
- data/pkg/nutanix_volumes-0.2.0.gem +0 -0
- data/renovate.json +5 -0
- data/spec/api/iscsi_clients_api_spec.rb +1 -1
- data/spec/api/volume_groups_api_spec.rb +1 -1
- data/spec/models/associate_category202_response_spec.rb +2 -2
- data/spec/models/associate_category4_xx_response_spec.rb +2 -2
- data/spec/models/attach_iscsi_client202_response_spec.rb +2 -2
- data/spec/models/attach_iscsi_client4_xx_response_spec.rb +2 -2
- data/spec/models/attach_vm202_response_spec.rb +2 -2
- data/spec/models/attach_vm4_xx_response_spec.rb +2 -2
- data/spec/models/common_v10_config_entity_reference_spec.rb +2 -2
- data/spec/models/common_v10_config_entity_type_spec.rb +2 -2
- data/spec/models/common_v10_config_flag_spec.rb +2 -2
- data/spec/models/common_v10_config_fqdn_spec.rb +2 -2
- data/spec/models/common_v10_config_ip_address_or_fqdn_spec.rb +2 -2
- data/spec/models/common_v10_config_ipv4_address_spec.rb +2 -2
- data/spec/models/common_v10_config_ipv6_address_spec.rb +2 -2
- data/spec/models/common_v10_config_kv_pair_spec.rb +2 -2
- data/spec/models/common_v10_config_kv_pair_value_spec.rb +1 -1
- data/spec/models/common_v10_config_map_of_string_wrapper_spec.rb +2 -2
- data/spec/models/common_v10_config_message_severity_spec.rb +2 -2
- data/spec/models/common_v10_config_message_spec.rb +2 -2
- data/spec/models/common_v10_config_metadata_spec.rb +2 -2
- data/spec/models/common_v10_config_tenant_aware_model_spec.rb +2 -2
- data/spec/models/common_v10_response_api_link_spec.rb +2 -2
- data/spec/models/common_v10_response_api_response_metadata_spec.rb +2 -2
- data/spec/models/common_v10_response_externalizable_abstract_model_spec.rb +2 -2
- data/spec/models/common_v10_stats_down_sampling_operator_spec.rb +2 -2
- data/spec/models/create_volume_disk202_response_spec.rb +2 -2
- data/spec/models/create_volume_disk4_xx_response_spec.rb +2 -2
- data/spec/models/create_volume_group202_response_spec.rb +2 -2
- data/spec/models/create_volume_group4_xx_response_spec.rb +2 -2
- data/spec/models/delete_volume_disk_by_id202_response_spec.rb +2 -2
- data/spec/models/delete_volume_disk_by_id4_xx_response_spec.rb +2 -2
- data/spec/models/delete_volume_group_by_id202_response_spec.rb +2 -2
- data/spec/models/delete_volume_group_by_id4_xx_response_spec.rb +2 -2
- data/spec/models/detach_iscsi_client202_response_spec.rb +2 -2
- data/spec/models/detach_iscsi_client4_xx_response_spec.rb +2 -2
- data/spec/models/detach_vm202_response_spec.rb +2 -2
- data/spec/models/detach_vm4_xx_response_spec.rb +2 -2
- data/spec/models/disassociate_category202_response_spec.rb +2 -2
- data/spec/models/disassociate_category4_xx_response_spec.rb +2 -2
- data/spec/models/get_iscsi_client_by_id200_response_spec.rb +2 -2
- data/spec/models/get_iscsi_client_by_id4_xx_response_spec.rb +2 -2
- data/spec/models/get_volume_disk_by_id200_response_spec.rb +2 -2
- data/spec/models/get_volume_disk_by_id4_xx_response_spec.rb +2 -2
- data/spec/models/get_volume_disk_stats200_response_spec.rb +2 -2
- data/spec/models/get_volume_disk_stats4_xx_response_spec.rb +2 -2
- data/spec/models/get_volume_group_by_id200_response_spec.rb +2 -2
- data/spec/models/get_volume_group_by_id4_xx_response_spec.rb +2 -2
- data/spec/models/get_volume_group_metadata_by_id200_response_spec.rb +2 -2
- data/spec/models/get_volume_group_metadata_by_id4_xx_response_spec.rb +2 -2
- data/spec/models/get_volume_group_stats200_response_spec.rb +2 -2
- data/spec/models/get_volume_group_stats4_xx_response_spec.rb +2 -2
- data/spec/models/list_category_associations_by_volume_group_id200_response_spec.rb +2 -2
- data/spec/models/list_category_associations_by_volume_group_id4_xx_response_spec.rb +2 -2
- data/spec/models/list_external_iscsi_attachments_by_volume_group_id200_response_spec.rb +2 -2
- data/spec/models/list_external_iscsi_attachments_by_volume_group_id4_xx_response_spec.rb +2 -2
- data/spec/models/list_iscsi_clients200_response_spec.rb +2 -2
- data/spec/models/list_iscsi_clients4_xx_response_spec.rb +2 -2
- data/spec/models/list_vm_attachments_by_volume_group_id200_response_spec.rb +2 -2
- data/spec/models/list_vm_attachments_by_volume_group_id4_xx_response_spec.rb +2 -2
- data/spec/models/list_volume_disks_by_volume_group_id200_response_spec.rb +2 -2
- data/spec/models/list_volume_disks_by_volume_group_id4_xx_response_spec.rb +2 -2
- data/spec/models/list_volume_groups200_response_spec.rb +2 -2
- data/spec/models/list_volume_groups4_xx_response_spec.rb +2 -2
- data/spec/models/prism_v40_config_task_reference_spec.rb +2 -2
- data/spec/models/revert_volume_group202_response_spec.rb +2 -2
- data/spec/models/revert_volume_group4_xx_response_spec.rb +2 -2
- data/spec/models/update_iscsi_client_by_id202_response_spec.rb +2 -2
- data/spec/models/update_iscsi_client_by_id4_xx_response_spec.rb +2 -2
- data/spec/models/update_volume_disk_by_id202_response_spec.rb +2 -2
- data/spec/models/update_volume_disk_by_id4_xx_response_spec.rb +2 -2
- data/spec/models/update_volume_group_by_id202_response_spec.rb +2 -2
- data/spec/models/update_volume_group_by_id4_xx_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_associate_category_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_attach_iscsi_client_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_attach_nvmf_client_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_attach_vm_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_attachment_type_spec.rb +2 -2
- data/spec/models/volumes_v40_config_authentication_type_spec.rb +2 -2
- data/spec/models/volumes_v40_config_category_details_spec.rb +2 -2
- data/spec/models/volumes_v40_config_category_entity_references_spec.rb +2 -2
- data/spec/models/volumes_v40_config_cluster_spec.rb +2 -2
- data/spec/models/volumes_v40_config_create_volume_disk_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_create_volume_group_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_delete_volume_disk_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_delete_volume_group_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_detach_iscsi_client_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_detach_nvmf_client_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_detach_vm_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_disassociate_category_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_disk_storage_features_spec.rb +2 -2
- data/spec/models/volumes_v40_config_flash_mode_spec.rb +2 -2
- data/spec/models/volumes_v40_config_get_iscsi_client_api_response_data_spec.rb +1 -1
- data/spec/models/volumes_v40_config_get_iscsi_client_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_get_volume_disk_api_response_data_spec.rb +1 -1
- data/spec/models/volumes_v40_config_get_volume_disk_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_get_volume_group_api_response_data_spec.rb +1 -1
- data/spec/models/volumes_v40_config_get_volume_group_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_get_volume_group_metadata_api_response_data_spec.rb +1 -1
- data/spec/models/volumes_v40_config_get_volume_group_metadata_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_iscsi_client_attachment_spec.rb +2 -2
- data/spec/models/volumes_v40_config_iscsi_client_spec.rb +2 -2
- data/spec/models/volumes_v40_config_iscsi_features_spec.rb +2 -2
- data/spec/models/volumes_v40_config_list_category_associations_api_response_data_spec.rb +1 -1
- data/spec/models/volumes_v40_config_list_category_associations_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_list_external_iscsi_attachments_api_response_data_spec.rb +1 -1
- data/spec/models/volumes_v40_config_list_external_iscsi_attachments_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_list_iscsi_clients_api_response_data_spec.rb +1 -1
- data/spec/models/volumes_v40_config_list_iscsi_clients_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_list_vm_attachments_api_response_data_spec.rb +1 -1
- data/spec/models/volumes_v40_config_list_vm_attachments_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_list_volume_disks_api_response_data_spec.rb +1 -1
- data/spec/models/volumes_v40_config_list_volume_disks_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_list_volume_groups_api_response_data_spec.rb +1 -1
- data/spec/models/volumes_v40_config_list_volume_groups_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_migrate_volume_group_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_nvmf_client_attachment_spec.rb +2 -2
- data/spec/models/volumes_v40_config_nvmf_client_spec.rb +2 -2
- data/spec/models/volumes_v40_config_pause_volume_group_synchronous_replication_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_protocol_spec.rb +2 -2
- data/spec/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_revert_spec_spec.rb +2 -2
- data/spec/models/volumes_v40_config_revert_volume_group_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_sharing_status_spec.rb +2 -2
- data/spec/models/volumes_v40_config_storage_features_spec.rb +2 -2
- data/spec/models/volumes_v40_config_target_param_spec.rb +2 -2
- data/spec/models/volumes_v40_config_update_iscsi_client_api_response_data_spec.rb +1 -1
- data/spec/models/volumes_v40_config_update_iscsi_client_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_update_iscsi_client_by_id_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_update_volume_disk_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_update_volume_disk_by_id_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_update_volume_group_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_update_volume_group_by_id_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_update_volume_group_metadata_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_update_volume_group_metadata_info_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_config_usage_type_spec.rb +2 -2
- data/spec/models/volumes_v40_config_vm_attachment_spec.rb +2 -2
- data/spec/models/volumes_v40_config_volume_disk_spec.rb +2 -2
- data/spec/models/volumes_v40_config_volume_group_attachment_site_spec.rb +2 -2
- data/spec/models/volumes_v40_config_volume_group_metadata_spec.rb +2 -2
- data/spec/models/volumes_v40_config_volume_group_spec.rb +2 -2
- data/spec/models/volumes_v40_error_app_message_spec.rb +2 -2
- data/spec/models/volumes_v40_error_error_response_error_spec.rb +1 -1
- data/spec/models/volumes_v40_error_error_response_spec.rb +2 -2
- data/spec/models/volumes_v40_error_message_severity_spec.rb +2 -2
- data/spec/models/volumes_v40_error_schema_validation_error_message_spec.rb +2 -2
- data/spec/models/volumes_v40_error_schema_validation_error_spec.rb +2 -2
- data/spec/models/volumes_v40_stats_get_volume_disk_stats_api_response_data_spec.rb +1 -1
- data/spec/models/volumes_v40_stats_get_volume_disk_stats_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_stats_get_volume_group_stats_api_response_data_spec.rb +1 -1
- data/spec/models/volumes_v40_stats_get_volume_group_stats_api_response_spec.rb +2 -2
- data/spec/models/volumes_v40_stats_time_value_pair_spec.rb +2 -2
- data/spec/models/volumes_v40_stats_volume_disk_stats_spec.rb +2 -2
- data/spec/models/volumes_v40_stats_volume_group_stats_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- metadata +10 -6
- data/docs/VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData.md +0 -47
- data/lib/nutanix_volumes/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_data.rb +0 -104
- data/spec/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_data_spec.rb +0 -32
- data/swagger-volumes-v4.0-all.yaml +0 -8140
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,11 +18,11 @@ module NutanixVolumes
|
|
|
18
18
|
NOT_ASSIGNED = "NOT_ASSIGNED".freeze
|
|
19
19
|
ISCSI = "ISCSI".freeze
|
|
20
20
|
NVMF = "NVMF".freeze
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
UNKNOWN = "$UNKNOWN".freeze
|
|
22
|
+
REDACTED = "$REDACTED".freeze
|
|
23
23
|
|
|
24
24
|
def self.all_vars
|
|
25
|
-
@all_vars ||= [NOT_ASSIGNED, ISCSI, NVMF,
|
|
25
|
+
@all_vars ||= [NOT_ASSIGNED, ISCSI, NVMF, UNKNOWN, REDACTED].freeze
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
# Builds the enum from string
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module NutanixVolumes
|
|
17
17
|
# REST response for all response codes in API path /volumes/v4.0/config/volume-groups/{extId}/$actions/resume-synchronous-replication Post operation
|
|
18
|
-
class VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponse
|
|
18
|
+
class VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponse < ApiModelBase
|
|
19
19
|
attr_accessor :metadata
|
|
20
20
|
|
|
21
21
|
attr_accessor :data
|
|
@@ -28,16 +28,21 @@ module NutanixVolumes
|
|
|
28
28
|
}
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
# Returns attribute mapping this model knows about
|
|
32
|
+
def self.acceptable_attribute_map
|
|
33
|
+
attribute_map
|
|
34
|
+
end
|
|
35
|
+
|
|
31
36
|
# Returns all the JSON keys this model knows about
|
|
32
37
|
def self.acceptable_attributes
|
|
33
|
-
|
|
38
|
+
acceptable_attribute_map.values
|
|
34
39
|
end
|
|
35
40
|
|
|
36
41
|
# Attribute type mapping.
|
|
37
42
|
def self.openapi_types
|
|
38
43
|
{
|
|
39
44
|
:'metadata' => :'CommonV10ResponseApiResponseMetadata',
|
|
40
|
-
:'data' => :'
|
|
45
|
+
:'data' => :'VolumesV40ErrorErrorResponse'
|
|
41
46
|
}
|
|
42
47
|
end
|
|
43
48
|
|
|
@@ -55,9 +60,10 @@ module NutanixVolumes
|
|
|
55
60
|
end
|
|
56
61
|
|
|
57
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
58
64
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
59
|
-
if (!
|
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponse`. Please check the name to make sure it's valid. List of attributes: " +
|
|
65
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
61
67
|
end
|
|
62
68
|
h[k.to_sym] = v
|
|
63
69
|
}
|
|
@@ -130,61 +136,6 @@ module NutanixVolumes
|
|
|
130
136
|
new(transformed_hash)
|
|
131
137
|
end
|
|
132
138
|
|
|
133
|
-
# Deserializes the data based on type
|
|
134
|
-
# @param string type Data type
|
|
135
|
-
# @param string value Value to be deserialized
|
|
136
|
-
# @return [Object] Deserialized data
|
|
137
|
-
def self._deserialize(type, value)
|
|
138
|
-
case type.to_sym
|
|
139
|
-
when :Time
|
|
140
|
-
Time.parse(value)
|
|
141
|
-
when :Date
|
|
142
|
-
Date.parse(value)
|
|
143
|
-
when :String
|
|
144
|
-
value.to_s
|
|
145
|
-
when :Integer
|
|
146
|
-
value.to_i
|
|
147
|
-
when :Float
|
|
148
|
-
value.to_f
|
|
149
|
-
when :Boolean
|
|
150
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
151
|
-
true
|
|
152
|
-
else
|
|
153
|
-
false
|
|
154
|
-
end
|
|
155
|
-
when :Object
|
|
156
|
-
# generic object (usually a Hash), return directly
|
|
157
|
-
value
|
|
158
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
159
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
160
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
161
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
162
|
-
k_type = Regexp.last_match[:k_type]
|
|
163
|
-
v_type = Regexp.last_match[:v_type]
|
|
164
|
-
{}.tap do |hash|
|
|
165
|
-
value.each do |k, v|
|
|
166
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
167
|
-
end
|
|
168
|
-
end
|
|
169
|
-
else # model
|
|
170
|
-
# models (e.g. Pet) or oneOf
|
|
171
|
-
klass = NutanixVolumes.const_get(type)
|
|
172
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
173
|
-
end
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
# Returns the string representation of the object
|
|
177
|
-
# @return [String] String presentation of the object
|
|
178
|
-
def to_s
|
|
179
|
-
to_hash.to_s
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
183
|
-
# @return [Hash] Returns the object in the form of hash
|
|
184
|
-
def to_body
|
|
185
|
-
to_hash
|
|
186
|
-
end
|
|
187
|
-
|
|
188
139
|
# Returns the object in the form of hash
|
|
189
140
|
# @return [Hash] Returns the object in the form of hash
|
|
190
141
|
def to_hash
|
|
@@ -201,24 +152,6 @@ module NutanixVolumes
|
|
|
201
152
|
hash
|
|
202
153
|
end
|
|
203
154
|
|
|
204
|
-
# Outputs non-array value in the form of hash
|
|
205
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
206
|
-
# @param [Object] value Any valid value
|
|
207
|
-
# @return [Hash] Returns the value in the form of hash
|
|
208
|
-
def _to_hash(value)
|
|
209
|
-
if value.is_a?(Array)
|
|
210
|
-
value.compact.map { |v| _to_hash(v) }
|
|
211
|
-
elsif value.is_a?(Hash)
|
|
212
|
-
{}.tap do |hash|
|
|
213
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
214
|
-
end
|
|
215
|
-
elsif value.respond_to? :to_hash
|
|
216
|
-
value.to_hash
|
|
217
|
-
else
|
|
218
|
-
value
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
|
|
222
155
|
end
|
|
223
156
|
|
|
224
157
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module NutanixVolumes
|
|
17
17
|
# Specify the Volume Group recovery point ID to which the Volume Group would be reverted.
|
|
18
|
-
class VolumesV40ConfigRevertSpec
|
|
18
|
+
class VolumesV40ConfigRevertSpec < ApiModelBase
|
|
19
19
|
# The external identifier of the Volume Group recovery point. This is a mandatory field.
|
|
20
20
|
attr_accessor :volume_group_recovery_point_ext_id
|
|
21
21
|
|
|
@@ -26,9 +26,14 @@ module NutanixVolumes
|
|
|
26
26
|
}
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
+
# Returns attribute mapping this model knows about
|
|
30
|
+
def self.acceptable_attribute_map
|
|
31
|
+
attribute_map
|
|
32
|
+
end
|
|
33
|
+
|
|
29
34
|
# Returns all the JSON keys this model knows about
|
|
30
35
|
def self.acceptable_attributes
|
|
31
|
-
|
|
36
|
+
acceptable_attribute_map.values
|
|
32
37
|
end
|
|
33
38
|
|
|
34
39
|
# Attribute type mapping.
|
|
@@ -52,9 +57,10 @@ module NutanixVolumes
|
|
|
52
57
|
end
|
|
53
58
|
|
|
54
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
55
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
-
if (!
|
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigRevertSpec`. Please check the name to make sure it's valid. List of attributes: " +
|
|
62
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigRevertSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
58
64
|
end
|
|
59
65
|
h[k.to_sym] = v
|
|
60
66
|
}
|
|
@@ -150,61 +156,6 @@ module NutanixVolumes
|
|
|
150
156
|
new(transformed_hash)
|
|
151
157
|
end
|
|
152
158
|
|
|
153
|
-
# Deserializes the data based on type
|
|
154
|
-
# @param string type Data type
|
|
155
|
-
# @param string value Value to be deserialized
|
|
156
|
-
# @return [Object] Deserialized data
|
|
157
|
-
def self._deserialize(type, value)
|
|
158
|
-
case type.to_sym
|
|
159
|
-
when :Time
|
|
160
|
-
Time.parse(value)
|
|
161
|
-
when :Date
|
|
162
|
-
Date.parse(value)
|
|
163
|
-
when :String
|
|
164
|
-
value.to_s
|
|
165
|
-
when :Integer
|
|
166
|
-
value.to_i
|
|
167
|
-
when :Float
|
|
168
|
-
value.to_f
|
|
169
|
-
when :Boolean
|
|
170
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
171
|
-
true
|
|
172
|
-
else
|
|
173
|
-
false
|
|
174
|
-
end
|
|
175
|
-
when :Object
|
|
176
|
-
# generic object (usually a Hash), return directly
|
|
177
|
-
value
|
|
178
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
179
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
180
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
181
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
182
|
-
k_type = Regexp.last_match[:k_type]
|
|
183
|
-
v_type = Regexp.last_match[:v_type]
|
|
184
|
-
{}.tap do |hash|
|
|
185
|
-
value.each do |k, v|
|
|
186
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
187
|
-
end
|
|
188
|
-
end
|
|
189
|
-
else # model
|
|
190
|
-
# models (e.g. Pet) or oneOf
|
|
191
|
-
klass = NutanixVolumes.const_get(type)
|
|
192
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
193
|
-
end
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
# Returns the string representation of the object
|
|
197
|
-
# @return [String] String presentation of the object
|
|
198
|
-
def to_s
|
|
199
|
-
to_hash.to_s
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
203
|
-
# @return [Hash] Returns the object in the form of hash
|
|
204
|
-
def to_body
|
|
205
|
-
to_hash
|
|
206
|
-
end
|
|
207
|
-
|
|
208
159
|
# Returns the object in the form of hash
|
|
209
160
|
# @return [Hash] Returns the object in the form of hash
|
|
210
161
|
def to_hash
|
|
@@ -221,24 +172,6 @@ module NutanixVolumes
|
|
|
221
172
|
hash
|
|
222
173
|
end
|
|
223
174
|
|
|
224
|
-
# Outputs non-array value in the form of hash
|
|
225
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
226
|
-
# @param [Object] value Any valid value
|
|
227
|
-
# @return [Hash] Returns the value in the form of hash
|
|
228
|
-
def _to_hash(value)
|
|
229
|
-
if value.is_a?(Array)
|
|
230
|
-
value.compact.map { |v| _to_hash(v) }
|
|
231
|
-
elsif value.is_a?(Hash)
|
|
232
|
-
{}.tap do |hash|
|
|
233
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
234
|
-
end
|
|
235
|
-
elsif value.respond_to? :to_hash
|
|
236
|
-
value.to_hash
|
|
237
|
-
else
|
|
238
|
-
value
|
|
239
|
-
end
|
|
240
|
-
end
|
|
241
|
-
|
|
242
175
|
end
|
|
243
176
|
|
|
244
177
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module NutanixVolumes
|
|
17
17
|
# REST response for all response codes in API path /volumes/v4.0/config/volume-groups/{extId}/$actions/revert Post operation
|
|
18
|
-
class VolumesV40ConfigRevertVolumeGroupApiResponse
|
|
18
|
+
class VolumesV40ConfigRevertVolumeGroupApiResponse < ApiModelBase
|
|
19
19
|
attr_accessor :metadata
|
|
20
20
|
|
|
21
21
|
attr_accessor :data
|
|
@@ -28,9 +28,14 @@ module NutanixVolumes
|
|
|
28
28
|
}
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
# Returns attribute mapping this model knows about
|
|
32
|
+
def self.acceptable_attribute_map
|
|
33
|
+
attribute_map
|
|
34
|
+
end
|
|
35
|
+
|
|
31
36
|
# Returns all the JSON keys this model knows about
|
|
32
37
|
def self.acceptable_attributes
|
|
33
|
-
|
|
38
|
+
acceptable_attribute_map.values
|
|
34
39
|
end
|
|
35
40
|
|
|
36
41
|
# Attribute type mapping.
|
|
@@ -55,9 +60,10 @@ module NutanixVolumes
|
|
|
55
60
|
end
|
|
56
61
|
|
|
57
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
58
64
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
59
|
-
if (!
|
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigRevertVolumeGroupApiResponse`. Please check the name to make sure it's valid. List of attributes: " +
|
|
65
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigRevertVolumeGroupApiResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
61
67
|
end
|
|
62
68
|
h[k.to_sym] = v
|
|
63
69
|
}
|
|
@@ -130,61 +136,6 @@ module NutanixVolumes
|
|
|
130
136
|
new(transformed_hash)
|
|
131
137
|
end
|
|
132
138
|
|
|
133
|
-
# Deserializes the data based on type
|
|
134
|
-
# @param string type Data type
|
|
135
|
-
# @param string value Value to be deserialized
|
|
136
|
-
# @return [Object] Deserialized data
|
|
137
|
-
def self._deserialize(type, value)
|
|
138
|
-
case type.to_sym
|
|
139
|
-
when :Time
|
|
140
|
-
Time.parse(value)
|
|
141
|
-
when :Date
|
|
142
|
-
Date.parse(value)
|
|
143
|
-
when :String
|
|
144
|
-
value.to_s
|
|
145
|
-
when :Integer
|
|
146
|
-
value.to_i
|
|
147
|
-
when :Float
|
|
148
|
-
value.to_f
|
|
149
|
-
when :Boolean
|
|
150
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
151
|
-
true
|
|
152
|
-
else
|
|
153
|
-
false
|
|
154
|
-
end
|
|
155
|
-
when :Object
|
|
156
|
-
# generic object (usually a Hash), return directly
|
|
157
|
-
value
|
|
158
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
159
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
160
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
161
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
162
|
-
k_type = Regexp.last_match[:k_type]
|
|
163
|
-
v_type = Regexp.last_match[:v_type]
|
|
164
|
-
{}.tap do |hash|
|
|
165
|
-
value.each do |k, v|
|
|
166
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
167
|
-
end
|
|
168
|
-
end
|
|
169
|
-
else # model
|
|
170
|
-
# models (e.g. Pet) or oneOf
|
|
171
|
-
klass = NutanixVolumes.const_get(type)
|
|
172
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
173
|
-
end
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
# Returns the string representation of the object
|
|
177
|
-
# @return [String] String presentation of the object
|
|
178
|
-
def to_s
|
|
179
|
-
to_hash.to_s
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
183
|
-
# @return [Hash] Returns the object in the form of hash
|
|
184
|
-
def to_body
|
|
185
|
-
to_hash
|
|
186
|
-
end
|
|
187
|
-
|
|
188
139
|
# Returns the object in the form of hash
|
|
189
140
|
# @return [Hash] Returns the object in the form of hash
|
|
190
141
|
def to_hash
|
|
@@ -201,24 +152,6 @@ module NutanixVolumes
|
|
|
201
152
|
hash
|
|
202
153
|
end
|
|
203
154
|
|
|
204
|
-
# Outputs non-array value in the form of hash
|
|
205
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
206
|
-
# @param [Object] value Any valid value
|
|
207
|
-
# @return [Hash] Returns the value in the form of hash
|
|
208
|
-
def _to_hash(value)
|
|
209
|
-
if value.is_a?(Array)
|
|
210
|
-
value.compact.map { |v| _to_hash(v) }
|
|
211
|
-
elsif value.is_a?(Hash)
|
|
212
|
-
{}.tap do |hash|
|
|
213
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
214
|
-
end
|
|
215
|
-
elsif value.respond_to? :to_hash
|
|
216
|
-
value.to_hash
|
|
217
|
-
else
|
|
218
|
-
value
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
|
|
222
155
|
end
|
|
223
156
|
|
|
224
157
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -17,11 +17,11 @@ module NutanixVolumes
|
|
|
17
17
|
class VolumesV40ConfigSharingStatus
|
|
18
18
|
SHARED = "SHARED".freeze
|
|
19
19
|
NOT_SHARED = "NOT_SHARED".freeze
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
UNKNOWN = "$UNKNOWN".freeze
|
|
21
|
+
REDACTED = "$REDACTED".freeze
|
|
22
22
|
|
|
23
23
|
def self.all_vars
|
|
24
|
-
@all_vars ||= [SHARED, NOT_SHARED,
|
|
24
|
+
@all_vars ||= [SHARED, NOT_SHARED, UNKNOWN, REDACTED].freeze
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
# Builds the enum from string
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module NutanixVolumes
|
|
17
17
|
# Storage optimization features which must be enabled on the Volume Group. This is an optional field.
|
|
18
|
-
class VolumesV40ConfigStorageFeatures
|
|
18
|
+
class VolumesV40ConfigStorageFeatures < ApiModelBase
|
|
19
19
|
attr_accessor :flash_mode
|
|
20
20
|
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -25,9 +25,14 @@ module NutanixVolumes
|
|
|
25
25
|
}
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
+
# Returns attribute mapping this model knows about
|
|
29
|
+
def self.acceptable_attribute_map
|
|
30
|
+
attribute_map
|
|
31
|
+
end
|
|
32
|
+
|
|
28
33
|
# Returns all the JSON keys this model knows about
|
|
29
34
|
def self.acceptable_attributes
|
|
30
|
-
|
|
35
|
+
acceptable_attribute_map.values
|
|
31
36
|
end
|
|
32
37
|
|
|
33
38
|
# Attribute type mapping.
|
|
@@ -51,9 +56,10 @@ module NutanixVolumes
|
|
|
51
56
|
end
|
|
52
57
|
|
|
53
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
54
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
|
-
if (!
|
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigStorageFeatures`. Please check the name to make sure it's valid. List of attributes: " +
|
|
61
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigStorageFeatures`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
57
63
|
end
|
|
58
64
|
h[k.to_sym] = v
|
|
59
65
|
}
|
|
@@ -121,61 +127,6 @@ module NutanixVolumes
|
|
|
121
127
|
new(transformed_hash)
|
|
122
128
|
end
|
|
123
129
|
|
|
124
|
-
# Deserializes the data based on type
|
|
125
|
-
# @param string type Data type
|
|
126
|
-
# @param string value Value to be deserialized
|
|
127
|
-
# @return [Object] Deserialized data
|
|
128
|
-
def self._deserialize(type, value)
|
|
129
|
-
case type.to_sym
|
|
130
|
-
when :Time
|
|
131
|
-
Time.parse(value)
|
|
132
|
-
when :Date
|
|
133
|
-
Date.parse(value)
|
|
134
|
-
when :String
|
|
135
|
-
value.to_s
|
|
136
|
-
when :Integer
|
|
137
|
-
value.to_i
|
|
138
|
-
when :Float
|
|
139
|
-
value.to_f
|
|
140
|
-
when :Boolean
|
|
141
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
142
|
-
true
|
|
143
|
-
else
|
|
144
|
-
false
|
|
145
|
-
end
|
|
146
|
-
when :Object
|
|
147
|
-
# generic object (usually a Hash), return directly
|
|
148
|
-
value
|
|
149
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
150
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
151
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
152
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
153
|
-
k_type = Regexp.last_match[:k_type]
|
|
154
|
-
v_type = Regexp.last_match[:v_type]
|
|
155
|
-
{}.tap do |hash|
|
|
156
|
-
value.each do |k, v|
|
|
157
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
158
|
-
end
|
|
159
|
-
end
|
|
160
|
-
else # model
|
|
161
|
-
# models (e.g. Pet) or oneOf
|
|
162
|
-
klass = NutanixVolumes.const_get(type)
|
|
163
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
164
|
-
end
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
# Returns the string representation of the object
|
|
168
|
-
# @return [String] String presentation of the object
|
|
169
|
-
def to_s
|
|
170
|
-
to_hash.to_s
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
174
|
-
# @return [Hash] Returns the object in the form of hash
|
|
175
|
-
def to_body
|
|
176
|
-
to_hash
|
|
177
|
-
end
|
|
178
|
-
|
|
179
130
|
# Returns the object in the form of hash
|
|
180
131
|
# @return [Hash] Returns the object in the form of hash
|
|
181
132
|
def to_hash
|
|
@@ -192,24 +143,6 @@ module NutanixVolumes
|
|
|
192
143
|
hash
|
|
193
144
|
end
|
|
194
145
|
|
|
195
|
-
# Outputs non-array value in the form of hash
|
|
196
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
197
|
-
# @param [Object] value Any valid value
|
|
198
|
-
# @return [Hash] Returns the value in the form of hash
|
|
199
|
-
def _to_hash(value)
|
|
200
|
-
if value.is_a?(Array)
|
|
201
|
-
value.compact.map { |v| _to_hash(v) }
|
|
202
|
-
elsif value.is_a?(Hash)
|
|
203
|
-
{}.tap do |hash|
|
|
204
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
205
|
-
end
|
|
206
|
-
elsif value.respond_to? :to_hash
|
|
207
|
-
value.to_hash
|
|
208
|
-
else
|
|
209
|
-
value
|
|
210
|
-
end
|
|
211
|
-
end
|
|
212
|
-
|
|
213
146
|
end
|
|
214
147
|
|
|
215
148
|
end
|