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
|
INFO = "INFO".freeze
|
|
19
19
|
WARNING = "WARNING".freeze
|
|
20
20
|
ERROR = "ERROR".freeze
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
UNKNOWN = "$UNKNOWN".freeze
|
|
22
|
+
REDACTED = "$REDACTED".freeze
|
|
23
23
|
|
|
24
24
|
def self.all_vars
|
|
25
|
-
@all_vars ||= [INFO, WARNING, ERROR,
|
|
25
|
+
@all_vars ||= [INFO, WARNING, ERROR, 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
|
# Metadata associated with this resource.
|
|
18
|
-
class CommonV10ConfigMetadata
|
|
18
|
+
class CommonV10ConfigMetadata < ApiModelBase
|
|
19
19
|
# A globally unique identifier that represents the owner of this resource.
|
|
20
20
|
attr_accessor :owner_reference_id
|
|
21
21
|
|
|
@@ -42,9 +42,14 @@ module NutanixVolumes
|
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
+
# Returns attribute mapping this model knows about
|
|
46
|
+
def self.acceptable_attribute_map
|
|
47
|
+
attribute_map
|
|
48
|
+
end
|
|
49
|
+
|
|
45
50
|
# Returns all the JSON keys this model knows about
|
|
46
51
|
def self.acceptable_attributes
|
|
47
|
-
|
|
52
|
+
acceptable_attribute_map.values
|
|
48
53
|
end
|
|
49
54
|
|
|
50
55
|
# Attribute type mapping.
|
|
@@ -72,9 +77,10 @@ module NutanixVolumes
|
|
|
72
77
|
end
|
|
73
78
|
|
|
74
79
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
80
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
75
81
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
|
-
if (!
|
|
77
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::CommonV10ConfigMetadata`. Please check the name to make sure it's valid. List of attributes: " +
|
|
82
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::CommonV10ConfigMetadata`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
78
84
|
end
|
|
79
85
|
h[k.to_sym] = v
|
|
80
86
|
}
|
|
@@ -272,61 +278,6 @@ module NutanixVolumes
|
|
|
272
278
|
new(transformed_hash)
|
|
273
279
|
end
|
|
274
280
|
|
|
275
|
-
# Deserializes the data based on type
|
|
276
|
-
# @param string type Data type
|
|
277
|
-
# @param string value Value to be deserialized
|
|
278
|
-
# @return [Object] Deserialized data
|
|
279
|
-
def self._deserialize(type, value)
|
|
280
|
-
case type.to_sym
|
|
281
|
-
when :Time
|
|
282
|
-
Time.parse(value)
|
|
283
|
-
when :Date
|
|
284
|
-
Date.parse(value)
|
|
285
|
-
when :String
|
|
286
|
-
value.to_s
|
|
287
|
-
when :Integer
|
|
288
|
-
value.to_i
|
|
289
|
-
when :Float
|
|
290
|
-
value.to_f
|
|
291
|
-
when :Boolean
|
|
292
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
293
|
-
true
|
|
294
|
-
else
|
|
295
|
-
false
|
|
296
|
-
end
|
|
297
|
-
when :Object
|
|
298
|
-
# generic object (usually a Hash), return directly
|
|
299
|
-
value
|
|
300
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
301
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
302
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
303
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
304
|
-
k_type = Regexp.last_match[:k_type]
|
|
305
|
-
v_type = Regexp.last_match[:v_type]
|
|
306
|
-
{}.tap do |hash|
|
|
307
|
-
value.each do |k, v|
|
|
308
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
309
|
-
end
|
|
310
|
-
end
|
|
311
|
-
else # model
|
|
312
|
-
# models (e.g. Pet) or oneOf
|
|
313
|
-
klass = NutanixVolumes.const_get(type)
|
|
314
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
315
|
-
end
|
|
316
|
-
end
|
|
317
|
-
|
|
318
|
-
# Returns the string representation of the object
|
|
319
|
-
# @return [String] String presentation of the object
|
|
320
|
-
def to_s
|
|
321
|
-
to_hash.to_s
|
|
322
|
-
end
|
|
323
|
-
|
|
324
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
325
|
-
# @return [Hash] Returns the object in the form of hash
|
|
326
|
-
def to_body
|
|
327
|
-
to_hash
|
|
328
|
-
end
|
|
329
|
-
|
|
330
281
|
# Returns the object in the form of hash
|
|
331
282
|
# @return [Hash] Returns the object in the form of hash
|
|
332
283
|
def to_hash
|
|
@@ -343,24 +294,6 @@ module NutanixVolumes
|
|
|
343
294
|
hash
|
|
344
295
|
end
|
|
345
296
|
|
|
346
|
-
# Outputs non-array value in the form of hash
|
|
347
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
348
|
-
# @param [Object] value Any valid value
|
|
349
|
-
# @return [Hash] Returns the value in the form of hash
|
|
350
|
-
def _to_hash(value)
|
|
351
|
-
if value.is_a?(Array)
|
|
352
|
-
value.compact.map { |v| _to_hash(v) }
|
|
353
|
-
elsif value.is_a?(Hash)
|
|
354
|
-
{}.tap do |hash|
|
|
355
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
356
|
-
end
|
|
357
|
-
elsif value.respond_to? :to_hash
|
|
358
|
-
value.to_hash
|
|
359
|
-
else
|
|
360
|
-
value
|
|
361
|
-
end
|
|
362
|
-
end
|
|
363
|
-
|
|
364
297
|
end
|
|
365
298
|
|
|
366
299
|
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
|
# A model base class whose instances are bound to a specific tenant. This model adds a tenantId to the base model class that it extends and is automatically set by the server.
|
|
18
|
-
class CommonV10ConfigTenantAwareModel
|
|
18
|
+
class CommonV10ConfigTenantAwareModel < ApiModelBase
|
|
19
19
|
# 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).
|
|
20
20
|
attr_accessor :tenant_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::CommonV10ConfigTenantAwareModel`. 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::CommonV10ConfigTenantAwareModel`. 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
|
}
|
|
@@ -143,61 +149,6 @@ module NutanixVolumes
|
|
|
143
149
|
new(transformed_hash)
|
|
144
150
|
end
|
|
145
151
|
|
|
146
|
-
# Deserializes the data based on type
|
|
147
|
-
# @param string type Data type
|
|
148
|
-
# @param string value Value to be deserialized
|
|
149
|
-
# @return [Object] Deserialized data
|
|
150
|
-
def self._deserialize(type, value)
|
|
151
|
-
case type.to_sym
|
|
152
|
-
when :Time
|
|
153
|
-
Time.parse(value)
|
|
154
|
-
when :Date
|
|
155
|
-
Date.parse(value)
|
|
156
|
-
when :String
|
|
157
|
-
value.to_s
|
|
158
|
-
when :Integer
|
|
159
|
-
value.to_i
|
|
160
|
-
when :Float
|
|
161
|
-
value.to_f
|
|
162
|
-
when :Boolean
|
|
163
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
164
|
-
true
|
|
165
|
-
else
|
|
166
|
-
false
|
|
167
|
-
end
|
|
168
|
-
when :Object
|
|
169
|
-
# generic object (usually a Hash), return directly
|
|
170
|
-
value
|
|
171
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
172
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
173
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
174
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
175
|
-
k_type = Regexp.last_match[:k_type]
|
|
176
|
-
v_type = Regexp.last_match[:v_type]
|
|
177
|
-
{}.tap do |hash|
|
|
178
|
-
value.each do |k, v|
|
|
179
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
180
|
-
end
|
|
181
|
-
end
|
|
182
|
-
else # model
|
|
183
|
-
# models (e.g. Pet) or oneOf
|
|
184
|
-
klass = NutanixVolumes.const_get(type)
|
|
185
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
186
|
-
end
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
# Returns the string representation of the object
|
|
190
|
-
# @return [String] String presentation of the object
|
|
191
|
-
def to_s
|
|
192
|
-
to_hash.to_s
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
196
|
-
# @return [Hash] Returns the object in the form of hash
|
|
197
|
-
def to_body
|
|
198
|
-
to_hash
|
|
199
|
-
end
|
|
200
|
-
|
|
201
152
|
# Returns the object in the form of hash
|
|
202
153
|
# @return [Hash] Returns the object in the form of hash
|
|
203
154
|
def to_hash
|
|
@@ -214,24 +165,6 @@ module NutanixVolumes
|
|
|
214
165
|
hash
|
|
215
166
|
end
|
|
216
167
|
|
|
217
|
-
# Outputs non-array value in the form of hash
|
|
218
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
219
|
-
# @param [Object] value Any valid value
|
|
220
|
-
# @return [Hash] Returns the value in the form of hash
|
|
221
|
-
def _to_hash(value)
|
|
222
|
-
if value.is_a?(Array)
|
|
223
|
-
value.compact.map { |v| _to_hash(v) }
|
|
224
|
-
elsif value.is_a?(Hash)
|
|
225
|
-
{}.tap do |hash|
|
|
226
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
227
|
-
end
|
|
228
|
-
elsif value.respond_to? :to_hash
|
|
229
|
-
value.to_hash
|
|
230
|
-
else
|
|
231
|
-
value
|
|
232
|
-
end
|
|
233
|
-
end
|
|
234
|
-
|
|
235
168
|
end
|
|
236
169
|
|
|
237
170
|
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
|
# 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.
|
|
18
|
-
class CommonV10ResponseApiLink
|
|
18
|
+
class CommonV10ResponseApiLink < ApiModelBase
|
|
19
19
|
# The URL at which the entity described by the link can be accessed.
|
|
20
20
|
attr_accessor :href
|
|
21
21
|
|
|
@@ -30,9 +30,14 @@ module NutanixVolumes
|
|
|
30
30
|
}
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
+
# Returns attribute mapping this model knows about
|
|
34
|
+
def self.acceptable_attribute_map
|
|
35
|
+
attribute_map
|
|
36
|
+
end
|
|
37
|
+
|
|
33
38
|
# Returns all the JSON keys this model knows about
|
|
34
39
|
def self.acceptable_attributes
|
|
35
|
-
|
|
40
|
+
acceptable_attribute_map.values
|
|
36
41
|
end
|
|
37
42
|
|
|
38
43
|
# Attribute type mapping.
|
|
@@ -57,9 +62,10 @@ module NutanixVolumes
|
|
|
57
62
|
end
|
|
58
63
|
|
|
59
64
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
66
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
-
if (!
|
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::CommonV10ResponseApiLink`. Please check the name to make sure it's valid. List of attributes: " +
|
|
67
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::CommonV10ResponseApiLink`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
69
|
end
|
|
64
70
|
h[k.to_sym] = v
|
|
65
71
|
}
|
|
@@ -132,61 +138,6 @@ module NutanixVolumes
|
|
|
132
138
|
new(transformed_hash)
|
|
133
139
|
end
|
|
134
140
|
|
|
135
|
-
# Deserializes the data based on type
|
|
136
|
-
# @param string type Data type
|
|
137
|
-
# @param string value Value to be deserialized
|
|
138
|
-
# @return [Object] Deserialized data
|
|
139
|
-
def self._deserialize(type, value)
|
|
140
|
-
case type.to_sym
|
|
141
|
-
when :Time
|
|
142
|
-
Time.parse(value)
|
|
143
|
-
when :Date
|
|
144
|
-
Date.parse(value)
|
|
145
|
-
when :String
|
|
146
|
-
value.to_s
|
|
147
|
-
when :Integer
|
|
148
|
-
value.to_i
|
|
149
|
-
when :Float
|
|
150
|
-
value.to_f
|
|
151
|
-
when :Boolean
|
|
152
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
153
|
-
true
|
|
154
|
-
else
|
|
155
|
-
false
|
|
156
|
-
end
|
|
157
|
-
when :Object
|
|
158
|
-
# generic object (usually a Hash), return directly
|
|
159
|
-
value
|
|
160
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
161
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
162
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
163
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
164
|
-
k_type = Regexp.last_match[:k_type]
|
|
165
|
-
v_type = Regexp.last_match[:v_type]
|
|
166
|
-
{}.tap do |hash|
|
|
167
|
-
value.each do |k, v|
|
|
168
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
169
|
-
end
|
|
170
|
-
end
|
|
171
|
-
else # model
|
|
172
|
-
# models (e.g. Pet) or oneOf
|
|
173
|
-
klass = NutanixVolumes.const_get(type)
|
|
174
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
175
|
-
end
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
# Returns the string representation of the object
|
|
179
|
-
# @return [String] String presentation of the object
|
|
180
|
-
def to_s
|
|
181
|
-
to_hash.to_s
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
185
|
-
# @return [Hash] Returns the object in the form of hash
|
|
186
|
-
def to_body
|
|
187
|
-
to_hash
|
|
188
|
-
end
|
|
189
|
-
|
|
190
141
|
# Returns the object in the form of hash
|
|
191
142
|
# @return [Hash] Returns the object in the form of hash
|
|
192
143
|
def to_hash
|
|
@@ -203,24 +154,6 @@ module NutanixVolumes
|
|
|
203
154
|
hash
|
|
204
155
|
end
|
|
205
156
|
|
|
206
|
-
# Outputs non-array value in the form of hash
|
|
207
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
208
|
-
# @param [Object] value Any valid value
|
|
209
|
-
# @return [Hash] Returns the value in the form of hash
|
|
210
|
-
def _to_hash(value)
|
|
211
|
-
if value.is_a?(Array)
|
|
212
|
-
value.compact.map { |v| _to_hash(v) }
|
|
213
|
-
elsif value.is_a?(Hash)
|
|
214
|
-
{}.tap do |hash|
|
|
215
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
216
|
-
end
|
|
217
|
-
elsif value.respond_to? :to_hash
|
|
218
|
-
value.to_hash
|
|
219
|
-
else
|
|
220
|
-
value
|
|
221
|
-
end
|
|
222
|
-
end
|
|
223
|
-
|
|
224
157
|
end
|
|
225
158
|
|
|
226
159
|
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
|
# The metadata associated with an API response. This value is always present and minimally contains the self-link for the API request that produced this response. It also contains pagination data for the paginated requests.
|
|
18
|
-
class CommonV10ResponseApiResponseMetadata
|
|
18
|
+
class CommonV10ResponseApiResponseMetadata < ApiModelBase
|
|
19
19
|
# An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated.
|
|
20
20
|
attr_accessor :flags
|
|
21
21
|
|
|
@@ -42,9 +42,14 @@ module NutanixVolumes
|
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
+
# Returns attribute mapping this model knows about
|
|
46
|
+
def self.acceptable_attribute_map
|
|
47
|
+
attribute_map
|
|
48
|
+
end
|
|
49
|
+
|
|
45
50
|
# Returns all the JSON keys this model knows about
|
|
46
51
|
def self.acceptable_attributes
|
|
47
|
-
|
|
52
|
+
acceptable_attribute_map.values
|
|
48
53
|
end
|
|
49
54
|
|
|
50
55
|
# Attribute type mapping.
|
|
@@ -72,9 +77,10 @@ module NutanixVolumes
|
|
|
72
77
|
end
|
|
73
78
|
|
|
74
79
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
80
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
75
81
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
|
-
if (!
|
|
77
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::CommonV10ResponseApiResponseMetadata`. Please check the name to make sure it's valid. List of attributes: " +
|
|
82
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::CommonV10ResponseApiResponseMetadata`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
78
84
|
end
|
|
79
85
|
h[k.to_sym] = v
|
|
80
86
|
}
|
|
@@ -282,61 +288,6 @@ module NutanixVolumes
|
|
|
282
288
|
new(transformed_hash)
|
|
283
289
|
end
|
|
284
290
|
|
|
285
|
-
# Deserializes the data based on type
|
|
286
|
-
# @param string type Data type
|
|
287
|
-
# @param string value Value to be deserialized
|
|
288
|
-
# @return [Object] Deserialized data
|
|
289
|
-
def self._deserialize(type, value)
|
|
290
|
-
case type.to_sym
|
|
291
|
-
when :Time
|
|
292
|
-
Time.parse(value)
|
|
293
|
-
when :Date
|
|
294
|
-
Date.parse(value)
|
|
295
|
-
when :String
|
|
296
|
-
value.to_s
|
|
297
|
-
when :Integer
|
|
298
|
-
value.to_i
|
|
299
|
-
when :Float
|
|
300
|
-
value.to_f
|
|
301
|
-
when :Boolean
|
|
302
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
303
|
-
true
|
|
304
|
-
else
|
|
305
|
-
false
|
|
306
|
-
end
|
|
307
|
-
when :Object
|
|
308
|
-
# generic object (usually a Hash), return directly
|
|
309
|
-
value
|
|
310
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
311
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
312
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
313
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
314
|
-
k_type = Regexp.last_match[:k_type]
|
|
315
|
-
v_type = Regexp.last_match[:v_type]
|
|
316
|
-
{}.tap do |hash|
|
|
317
|
-
value.each do |k, v|
|
|
318
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
319
|
-
end
|
|
320
|
-
end
|
|
321
|
-
else # model
|
|
322
|
-
# models (e.g. Pet) or oneOf
|
|
323
|
-
klass = NutanixVolumes.const_get(type)
|
|
324
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
325
|
-
end
|
|
326
|
-
end
|
|
327
|
-
|
|
328
|
-
# Returns the string representation of the object
|
|
329
|
-
# @return [String] String presentation of the object
|
|
330
|
-
def to_s
|
|
331
|
-
to_hash.to_s
|
|
332
|
-
end
|
|
333
|
-
|
|
334
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
335
|
-
# @return [Hash] Returns the object in the form of hash
|
|
336
|
-
def to_body
|
|
337
|
-
to_hash
|
|
338
|
-
end
|
|
339
|
-
|
|
340
291
|
# Returns the object in the form of hash
|
|
341
292
|
# @return [Hash] Returns the object in the form of hash
|
|
342
293
|
def to_hash
|
|
@@ -353,24 +304,6 @@ module NutanixVolumes
|
|
|
353
304
|
hash
|
|
354
305
|
end
|
|
355
306
|
|
|
356
|
-
# Outputs non-array value in the form of hash
|
|
357
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
358
|
-
# @param [Object] value Any valid value
|
|
359
|
-
# @return [Hash] Returns the value in the form of hash
|
|
360
|
-
def _to_hash(value)
|
|
361
|
-
if value.is_a?(Array)
|
|
362
|
-
value.compact.map { |v| _to_hash(v) }
|
|
363
|
-
elsif value.is_a?(Hash)
|
|
364
|
-
{}.tap do |hash|
|
|
365
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
366
|
-
end
|
|
367
|
-
elsif value.respond_to? :to_hash
|
|
368
|
-
value.to_hash
|
|
369
|
-
else
|
|
370
|
-
value
|
|
371
|
-
end
|
|
372
|
-
end
|
|
373
|
-
|
|
374
307
|
end
|
|
375
308
|
|
|
376
309
|
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
|
# A model that represents an object instance that is accessible through an API endpoint. Instances of this type get an extId field that contains the globally unique identifier for that instance. Externally accessible instances are always tenant aware and, therefore, extend the TenantAwareModel
|
|
18
|
-
class CommonV10ResponseExternalizableAbstractModel
|
|
18
|
+
class CommonV10ResponseExternalizableAbstractModel < ApiModelBase
|
|
19
19
|
# 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).
|
|
20
20
|
attr_accessor :tenant_id
|
|
21
21
|
|
|
@@ -34,9 +34,14 @@ module NutanixVolumes
|
|
|
34
34
|
}
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
+
# Returns attribute mapping this model knows about
|
|
38
|
+
def self.acceptable_attribute_map
|
|
39
|
+
attribute_map
|
|
40
|
+
end
|
|
41
|
+
|
|
37
42
|
# Returns all the JSON keys this model knows about
|
|
38
43
|
def self.acceptable_attributes
|
|
39
|
-
|
|
44
|
+
acceptable_attribute_map.values
|
|
40
45
|
end
|
|
41
46
|
|
|
42
47
|
# Attribute type mapping.
|
|
@@ -70,9 +75,10 @@ module NutanixVolumes
|
|
|
70
75
|
end
|
|
71
76
|
|
|
72
77
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
78
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
73
79
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
74
|
-
if (!
|
|
75
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::CommonV10ResponseExternalizableAbstractModel`. Please check the name to make sure it's valid. List of attributes: " +
|
|
80
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::CommonV10ResponseExternalizableAbstractModel`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
76
82
|
end
|
|
77
83
|
h[k.to_sym] = v
|
|
78
84
|
}
|
|
@@ -218,61 +224,6 @@ module NutanixVolumes
|
|
|
218
224
|
new(transformed_hash)
|
|
219
225
|
end
|
|
220
226
|
|
|
221
|
-
# Deserializes the data based on type
|
|
222
|
-
# @param string type Data type
|
|
223
|
-
# @param string value Value to be deserialized
|
|
224
|
-
# @return [Object] Deserialized data
|
|
225
|
-
def self._deserialize(type, value)
|
|
226
|
-
case type.to_sym
|
|
227
|
-
when :Time
|
|
228
|
-
Time.parse(value)
|
|
229
|
-
when :Date
|
|
230
|
-
Date.parse(value)
|
|
231
|
-
when :String
|
|
232
|
-
value.to_s
|
|
233
|
-
when :Integer
|
|
234
|
-
value.to_i
|
|
235
|
-
when :Float
|
|
236
|
-
value.to_f
|
|
237
|
-
when :Boolean
|
|
238
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
239
|
-
true
|
|
240
|
-
else
|
|
241
|
-
false
|
|
242
|
-
end
|
|
243
|
-
when :Object
|
|
244
|
-
# generic object (usually a Hash), return directly
|
|
245
|
-
value
|
|
246
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
247
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
248
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
249
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
250
|
-
k_type = Regexp.last_match[:k_type]
|
|
251
|
-
v_type = Regexp.last_match[:v_type]
|
|
252
|
-
{}.tap do |hash|
|
|
253
|
-
value.each do |k, v|
|
|
254
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
255
|
-
end
|
|
256
|
-
end
|
|
257
|
-
else # model
|
|
258
|
-
# models (e.g. Pet) or oneOf
|
|
259
|
-
klass = NutanixVolumes.const_get(type)
|
|
260
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
261
|
-
end
|
|
262
|
-
end
|
|
263
|
-
|
|
264
|
-
# Returns the string representation of the object
|
|
265
|
-
# @return [String] String presentation of the object
|
|
266
|
-
def to_s
|
|
267
|
-
to_hash.to_s
|
|
268
|
-
end
|
|
269
|
-
|
|
270
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
271
|
-
# @return [Hash] Returns the object in the form of hash
|
|
272
|
-
def to_body
|
|
273
|
-
to_hash
|
|
274
|
-
end
|
|
275
|
-
|
|
276
227
|
# Returns the object in the form of hash
|
|
277
228
|
# @return [Hash] Returns the object in the form of hash
|
|
278
229
|
def to_hash
|
|
@@ -289,24 +240,6 @@ module NutanixVolumes
|
|
|
289
240
|
hash
|
|
290
241
|
end
|
|
291
242
|
|
|
292
|
-
# Outputs non-array value in the form of hash
|
|
293
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
294
|
-
# @param [Object] value Any valid value
|
|
295
|
-
# @return [Hash] Returns the value in the form of hash
|
|
296
|
-
def _to_hash(value)
|
|
297
|
-
if value.is_a?(Array)
|
|
298
|
-
value.compact.map { |v| _to_hash(v) }
|
|
299
|
-
elsif value.is_a?(Hash)
|
|
300
|
-
{}.tap do |hash|
|
|
301
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
302
|
-
end
|
|
303
|
-
elsif value.respond_to? :to_hash
|
|
304
|
-
value.to_hash
|
|
305
|
-
else
|
|
306
|
-
value
|
|
307
|
-
end
|
|
308
|
-
end
|
|
309
|
-
|
|
310
243
|
end
|
|
311
244
|
|
|
312
245
|
end
|