nutanix_volumes 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/LICENSE.txt +202 -0
- data/README.md +1 -2
- data/bin/console +15 -0
- data/bin/openapi-generate +26 -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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- data/lib/nutanix_volumes/models/volumes_v40_config_authentication_type.rb +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/pkg/nutanix_volumes-0.1.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 +7 -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
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module NutanixVolumes
|
|
17
|
-
class VolumesV40ConfigVolumeGroupMetadata
|
|
17
|
+
class VolumesV40ConfigVolumeGroupMetadata < ApiModelBase
|
|
18
18
|
# Owner reference information of a Volume Group. This is read-only and is automatically populated using the authentication context provided during the VG creation.
|
|
19
19
|
attr_accessor :owner_reference
|
|
20
20
|
|
|
@@ -29,9 +29,14 @@ module NutanixVolumes
|
|
|
29
29
|
}
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
+
# Returns attribute mapping this model knows about
|
|
33
|
+
def self.acceptable_attribute_map
|
|
34
|
+
attribute_map
|
|
35
|
+
end
|
|
36
|
+
|
|
32
37
|
# Returns all the JSON keys this model knows about
|
|
33
38
|
def self.acceptable_attributes
|
|
34
|
-
|
|
39
|
+
acceptable_attribute_map.values
|
|
35
40
|
end
|
|
36
41
|
|
|
37
42
|
# Attribute type mapping.
|
|
@@ -56,9 +61,10 @@ module NutanixVolumes
|
|
|
56
61
|
end
|
|
57
62
|
|
|
58
63
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
64
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
65
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
-
if (!
|
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigVolumeGroupMetadata`. Please check the name to make sure it's valid. List of attributes: " +
|
|
66
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigVolumeGroupMetadata`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
68
|
end
|
|
63
69
|
h[k.to_sym] = v
|
|
64
70
|
}
|
|
@@ -161,61 +167,6 @@ module NutanixVolumes
|
|
|
161
167
|
new(transformed_hash)
|
|
162
168
|
end
|
|
163
169
|
|
|
164
|
-
# Deserializes the data based on type
|
|
165
|
-
# @param string type Data type
|
|
166
|
-
# @param string value Value to be deserialized
|
|
167
|
-
# @return [Object] Deserialized data
|
|
168
|
-
def self._deserialize(type, value)
|
|
169
|
-
case type.to_sym
|
|
170
|
-
when :Time
|
|
171
|
-
Time.parse(value)
|
|
172
|
-
when :Date
|
|
173
|
-
Date.parse(value)
|
|
174
|
-
when :String
|
|
175
|
-
value.to_s
|
|
176
|
-
when :Integer
|
|
177
|
-
value.to_i
|
|
178
|
-
when :Float
|
|
179
|
-
value.to_f
|
|
180
|
-
when :Boolean
|
|
181
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
182
|
-
true
|
|
183
|
-
else
|
|
184
|
-
false
|
|
185
|
-
end
|
|
186
|
-
when :Object
|
|
187
|
-
# generic object (usually a Hash), return directly
|
|
188
|
-
value
|
|
189
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
190
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
191
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
192
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
193
|
-
k_type = Regexp.last_match[:k_type]
|
|
194
|
-
v_type = Regexp.last_match[:v_type]
|
|
195
|
-
{}.tap do |hash|
|
|
196
|
-
value.each do |k, v|
|
|
197
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
198
|
-
end
|
|
199
|
-
end
|
|
200
|
-
else # model
|
|
201
|
-
# models (e.g. Pet) or oneOf
|
|
202
|
-
klass = NutanixVolumes.const_get(type)
|
|
203
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
204
|
-
end
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
# Returns the string representation of the object
|
|
208
|
-
# @return [String] String presentation of the object
|
|
209
|
-
def to_s
|
|
210
|
-
to_hash.to_s
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
214
|
-
# @return [Hash] Returns the object in the form of hash
|
|
215
|
-
def to_body
|
|
216
|
-
to_hash
|
|
217
|
-
end
|
|
218
|
-
|
|
219
170
|
# Returns the object in the form of hash
|
|
220
171
|
# @return [Hash] Returns the object in the form of hash
|
|
221
172
|
def to_hash
|
|
@@ -232,24 +183,6 @@ module NutanixVolumes
|
|
|
232
183
|
hash
|
|
233
184
|
end
|
|
234
185
|
|
|
235
|
-
# Outputs non-array value in the form of hash
|
|
236
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
237
|
-
# @param [Object] value Any valid value
|
|
238
|
-
# @return [Hash] Returns the value in the form of hash
|
|
239
|
-
def _to_hash(value)
|
|
240
|
-
if value.is_a?(Array)
|
|
241
|
-
value.compact.map { |v| _to_hash(v) }
|
|
242
|
-
elsif value.is_a?(Hash)
|
|
243
|
-
{}.tap do |hash|
|
|
244
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
245
|
-
end
|
|
246
|
-
elsif value.respond_to? :to_hash
|
|
247
|
-
value.to_hash
|
|
248
|
-
else
|
|
249
|
-
value
|
|
250
|
-
end
|
|
251
|
-
end
|
|
252
|
-
|
|
253
186
|
end
|
|
254
187
|
|
|
255
188
|
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
|
# Message with associated severity describing status of the current operation.
|
|
18
|
-
class VolumesV40ErrorAppMessage
|
|
18
|
+
class VolumesV40ErrorAppMessage < ApiModelBase
|
|
19
19
|
# The message string.
|
|
20
20
|
attr_accessor :message
|
|
21
21
|
|
|
@@ -67,9 +67,14 @@ module NutanixVolumes
|
|
|
67
67
|
}
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
+
# Returns attribute mapping this model knows about
|
|
71
|
+
def self.acceptable_attribute_map
|
|
72
|
+
attribute_map
|
|
73
|
+
end
|
|
74
|
+
|
|
70
75
|
# Returns all the JSON keys this model knows about
|
|
71
76
|
def self.acceptable_attributes
|
|
72
|
-
|
|
77
|
+
acceptable_attribute_map.values
|
|
73
78
|
end
|
|
74
79
|
|
|
75
80
|
# Attribute type mapping.
|
|
@@ -98,9 +103,10 @@ module NutanixVolumes
|
|
|
98
103
|
end
|
|
99
104
|
|
|
100
105
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
106
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
101
107
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
102
|
-
if (!
|
|
103
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ErrorAppMessage`. Please check the name to make sure it's valid. List of attributes: " +
|
|
108
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
109
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ErrorAppMessage`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
104
110
|
end
|
|
105
111
|
h[k.to_sym] = v
|
|
106
112
|
}
|
|
@@ -197,61 +203,6 @@ module NutanixVolumes
|
|
|
197
203
|
new(transformed_hash)
|
|
198
204
|
end
|
|
199
205
|
|
|
200
|
-
# Deserializes the data based on type
|
|
201
|
-
# @param string type Data type
|
|
202
|
-
# @param string value Value to be deserialized
|
|
203
|
-
# @return [Object] Deserialized data
|
|
204
|
-
def self._deserialize(type, value)
|
|
205
|
-
case type.to_sym
|
|
206
|
-
when :Time
|
|
207
|
-
Time.parse(value)
|
|
208
|
-
when :Date
|
|
209
|
-
Date.parse(value)
|
|
210
|
-
when :String
|
|
211
|
-
value.to_s
|
|
212
|
-
when :Integer
|
|
213
|
-
value.to_i
|
|
214
|
-
when :Float
|
|
215
|
-
value.to_f
|
|
216
|
-
when :Boolean
|
|
217
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
218
|
-
true
|
|
219
|
-
else
|
|
220
|
-
false
|
|
221
|
-
end
|
|
222
|
-
when :Object
|
|
223
|
-
# generic object (usually a Hash), return directly
|
|
224
|
-
value
|
|
225
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
226
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
227
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
228
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
229
|
-
k_type = Regexp.last_match[:k_type]
|
|
230
|
-
v_type = Regexp.last_match[:v_type]
|
|
231
|
-
{}.tap do |hash|
|
|
232
|
-
value.each do |k, v|
|
|
233
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
234
|
-
end
|
|
235
|
-
end
|
|
236
|
-
else # model
|
|
237
|
-
# models (e.g. Pet) or oneOf
|
|
238
|
-
klass = NutanixVolumes.const_get(type)
|
|
239
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
240
|
-
end
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
# Returns the string representation of the object
|
|
244
|
-
# @return [String] String presentation of the object
|
|
245
|
-
def to_s
|
|
246
|
-
to_hash.to_s
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
250
|
-
# @return [Hash] Returns the object in the form of hash
|
|
251
|
-
def to_body
|
|
252
|
-
to_hash
|
|
253
|
-
end
|
|
254
|
-
|
|
255
206
|
# Returns the object in the form of hash
|
|
256
207
|
# @return [Hash] Returns the object in the form of hash
|
|
257
208
|
def to_hash
|
|
@@ -268,24 +219,6 @@ module NutanixVolumes
|
|
|
268
219
|
hash
|
|
269
220
|
end
|
|
270
221
|
|
|
271
|
-
# Outputs non-array value in the form of hash
|
|
272
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
273
|
-
# @param [Object] value Any valid value
|
|
274
|
-
# @return [Hash] Returns the value in the form of hash
|
|
275
|
-
def _to_hash(value)
|
|
276
|
-
if value.is_a?(Array)
|
|
277
|
-
value.compact.map { |v| _to_hash(v) }
|
|
278
|
-
elsif value.is_a?(Hash)
|
|
279
|
-
{}.tap do |hash|
|
|
280
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
281
|
-
end
|
|
282
|
-
elsif value.respond_to? :to_hash
|
|
283
|
-
value.to_hash
|
|
284
|
-
else
|
|
285
|
-
value
|
|
286
|
-
end
|
|
287
|
-
end
|
|
288
|
-
|
|
289
222
|
end
|
|
290
223
|
|
|
291
224
|
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
|
# An error response indicates that the operation has failed either due to a client error(4XX) or server error(5XX). Please look at the HTTP status code and namespace specific error code and error message for further details.
|
|
18
|
-
class VolumesV40ErrorErrorResponse
|
|
18
|
+
class VolumesV40ErrorErrorResponse < ApiModelBase
|
|
19
19
|
attr_accessor :error
|
|
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::VolumesV40ErrorErrorResponse`. 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::VolumesV40ErrorErrorResponse`. 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
|
|
@@ -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
|
|
|
@@ -38,8 +38,7 @@ module NutanixVolumes
|
|
|
38
38
|
openapi_one_of.each do |klass|
|
|
39
39
|
begin
|
|
40
40
|
next if klass == :AnyType # "nullable: true"
|
|
41
|
-
|
|
42
|
-
return typed_data if typed_data
|
|
41
|
+
return find_and_cast_into_type(klass, data)
|
|
43
42
|
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
|
44
43
|
end
|
|
45
44
|
end
|
|
@@ -65,7 +64,7 @@ module NutanixVolumes
|
|
|
65
64
|
when 'Time'
|
|
66
65
|
return Time.parse(data)
|
|
67
66
|
when 'Date'
|
|
68
|
-
return Date.
|
|
67
|
+
return Date.iso8601(data)
|
|
69
68
|
when 'String'
|
|
70
69
|
return data if data.instance_of?(String)
|
|
71
70
|
when 'Object' # "type: object"
|
|
@@ -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
|
# This schema is generated from SchemaValidationError.java
|
|
18
|
-
class VolumesV40ErrorSchemaValidationError
|
|
18
|
+
class VolumesV40ErrorSchemaValidationError < ApiModelBase
|
|
19
19
|
# Timestamp of the response.
|
|
20
20
|
attr_accessor :timestamp
|
|
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::VolumesV40ErrorSchemaValidationError`. 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::VolumesV40ErrorSchemaValidationError`. 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
|
}
|
|
@@ -164,61 +170,6 @@ module NutanixVolumes
|
|
|
164
170
|
new(transformed_hash)
|
|
165
171
|
end
|
|
166
172
|
|
|
167
|
-
# Deserializes the data based on type
|
|
168
|
-
# @param string type Data type
|
|
169
|
-
# @param string value Value to be deserialized
|
|
170
|
-
# @return [Object] Deserialized data
|
|
171
|
-
def self._deserialize(type, value)
|
|
172
|
-
case type.to_sym
|
|
173
|
-
when :Time
|
|
174
|
-
Time.parse(value)
|
|
175
|
-
when :Date
|
|
176
|
-
Date.parse(value)
|
|
177
|
-
when :String
|
|
178
|
-
value.to_s
|
|
179
|
-
when :Integer
|
|
180
|
-
value.to_i
|
|
181
|
-
when :Float
|
|
182
|
-
value.to_f
|
|
183
|
-
when :Boolean
|
|
184
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
185
|
-
true
|
|
186
|
-
else
|
|
187
|
-
false
|
|
188
|
-
end
|
|
189
|
-
when :Object
|
|
190
|
-
# generic object (usually a Hash), return directly
|
|
191
|
-
value
|
|
192
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
193
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
194
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
195
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
196
|
-
k_type = Regexp.last_match[:k_type]
|
|
197
|
-
v_type = Regexp.last_match[:v_type]
|
|
198
|
-
{}.tap do |hash|
|
|
199
|
-
value.each do |k, v|
|
|
200
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
201
|
-
end
|
|
202
|
-
end
|
|
203
|
-
else # model
|
|
204
|
-
# models (e.g. Pet) or oneOf
|
|
205
|
-
klass = NutanixVolumes.const_get(type)
|
|
206
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
207
|
-
end
|
|
208
|
-
end
|
|
209
|
-
|
|
210
|
-
# Returns the string representation of the object
|
|
211
|
-
# @return [String] String presentation of the object
|
|
212
|
-
def to_s
|
|
213
|
-
to_hash.to_s
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
217
|
-
# @return [Hash] Returns the object in the form of hash
|
|
218
|
-
def to_body
|
|
219
|
-
to_hash
|
|
220
|
-
end
|
|
221
|
-
|
|
222
173
|
# Returns the object in the form of hash
|
|
223
174
|
# @return [Hash] Returns the object in the form of hash
|
|
224
175
|
def to_hash
|
|
@@ -235,24 +186,6 @@ module NutanixVolumes
|
|
|
235
186
|
hash
|
|
236
187
|
end
|
|
237
188
|
|
|
238
|
-
# Outputs non-array value in the form of hash
|
|
239
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
240
|
-
# @param [Object] value Any valid value
|
|
241
|
-
# @return [Hash] Returns the value in the form of hash
|
|
242
|
-
def _to_hash(value)
|
|
243
|
-
if value.is_a?(Array)
|
|
244
|
-
value.compact.map { |v| _to_hash(v) }
|
|
245
|
-
elsif value.is_a?(Hash)
|
|
246
|
-
{}.tap do |hash|
|
|
247
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
248
|
-
end
|
|
249
|
-
elsif value.respond_to? :to_hash
|
|
250
|
-
value.to_hash
|
|
251
|
-
else
|
|
252
|
-
value
|
|
253
|
-
end
|
|
254
|
-
end
|
|
255
|
-
|
|
256
189
|
end
|
|
257
190
|
|
|
258
191
|
end
|