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
|
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module NutanixVolumes
|
|
17
17
|
# A model that represents an iSCSI client that can be associated with a Volume Group as an external attachment. It contains the minimal properties required for the attachment.
|
|
18
|
-
class VolumesV40ConfigIscsiClientAttachment
|
|
18
|
+
class VolumesV40ConfigIscsiClientAttachment < ApiModelBase
|
|
19
19
|
# The external identifier of an iSCSI client.
|
|
20
20
|
attr_accessor :ext_id
|
|
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::VolumesV40ConfigIscsiClientAttachment`. 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::VolumesV40ConfigIscsiClientAttachment`. 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
|
}
|
|
@@ -174,61 +180,6 @@ module NutanixVolumes
|
|
|
174
180
|
new(transformed_hash)
|
|
175
181
|
end
|
|
176
182
|
|
|
177
|
-
# Deserializes the data based on type
|
|
178
|
-
# @param string type Data type
|
|
179
|
-
# @param string value Value to be deserialized
|
|
180
|
-
# @return [Object] Deserialized data
|
|
181
|
-
def self._deserialize(type, value)
|
|
182
|
-
case type.to_sym
|
|
183
|
-
when :Time
|
|
184
|
-
Time.parse(value)
|
|
185
|
-
when :Date
|
|
186
|
-
Date.parse(value)
|
|
187
|
-
when :String
|
|
188
|
-
value.to_s
|
|
189
|
-
when :Integer
|
|
190
|
-
value.to_i
|
|
191
|
-
when :Float
|
|
192
|
-
value.to_f
|
|
193
|
-
when :Boolean
|
|
194
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
195
|
-
true
|
|
196
|
-
else
|
|
197
|
-
false
|
|
198
|
-
end
|
|
199
|
-
when :Object
|
|
200
|
-
# generic object (usually a Hash), return directly
|
|
201
|
-
value
|
|
202
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
203
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
204
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
205
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
206
|
-
k_type = Regexp.last_match[:k_type]
|
|
207
|
-
v_type = Regexp.last_match[:v_type]
|
|
208
|
-
{}.tap do |hash|
|
|
209
|
-
value.each do |k, v|
|
|
210
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
211
|
-
end
|
|
212
|
-
end
|
|
213
|
-
else # model
|
|
214
|
-
# models (e.g. Pet) or oneOf
|
|
215
|
-
klass = NutanixVolumes.const_get(type)
|
|
216
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
217
|
-
end
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
# Returns the string representation of the object
|
|
221
|
-
# @return [String] String presentation of the object
|
|
222
|
-
def to_s
|
|
223
|
-
to_hash.to_s
|
|
224
|
-
end
|
|
225
|
-
|
|
226
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
227
|
-
# @return [Hash] Returns the object in the form of hash
|
|
228
|
-
def to_body
|
|
229
|
-
to_hash
|
|
230
|
-
end
|
|
231
|
-
|
|
232
183
|
# Returns the object in the form of hash
|
|
233
184
|
# @return [Hash] Returns the object in the form of hash
|
|
234
185
|
def to_hash
|
|
@@ -245,24 +196,6 @@ module NutanixVolumes
|
|
|
245
196
|
hash
|
|
246
197
|
end
|
|
247
198
|
|
|
248
|
-
# Outputs non-array value in the form of hash
|
|
249
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
250
|
-
# @param [Object] value Any valid value
|
|
251
|
-
# @return [Hash] Returns the value in the form of hash
|
|
252
|
-
def _to_hash(value)
|
|
253
|
-
if value.is_a?(Array)
|
|
254
|
-
value.compact.map { |v| _to_hash(v) }
|
|
255
|
-
elsif value.is_a?(Hash)
|
|
256
|
-
{}.tap do |hash|
|
|
257
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
258
|
-
end
|
|
259
|
-
elsif value.respond_to? :to_hash
|
|
260
|
-
value.to_hash
|
|
261
|
-
else
|
|
262
|
-
value
|
|
263
|
-
end
|
|
264
|
-
end
|
|
265
|
-
|
|
266
199
|
end
|
|
267
200
|
|
|
268
201
|
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
|
# iSCSI specific settings for the Volume Group. This is an optional field.
|
|
18
|
-
class VolumesV40ConfigIscsiFeatures
|
|
18
|
+
class VolumesV40ConfigIscsiFeatures < ApiModelBase
|
|
19
19
|
# Target secret in case of a CHAP authentication. This field must only be provided in case the authentication type is not set to CHAP. This is an optional field and it cannot be retrieved once configured.
|
|
20
20
|
attr_accessor :target_secret
|
|
21
21
|
|
|
@@ -51,9 +51,14 @@ module NutanixVolumes
|
|
|
51
51
|
}
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
# Returns attribute mapping this model knows about
|
|
55
|
+
def self.acceptable_attribute_map
|
|
56
|
+
attribute_map
|
|
57
|
+
end
|
|
58
|
+
|
|
54
59
|
# Returns all the JSON keys this model knows about
|
|
55
60
|
def self.acceptable_attributes
|
|
56
|
-
|
|
61
|
+
acceptable_attribute_map.values
|
|
57
62
|
end
|
|
58
63
|
|
|
59
64
|
# Attribute type mapping.
|
|
@@ -78,9 +83,10 @@ module NutanixVolumes
|
|
|
78
83
|
end
|
|
79
84
|
|
|
80
85
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
86
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
81
87
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
82
|
-
if (!
|
|
83
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigIscsiFeatures`. Please check the name to make sure it's valid. List of attributes: " +
|
|
88
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
89
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigIscsiFeatures`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
84
90
|
end
|
|
85
91
|
h[k.to_sym] = v
|
|
86
92
|
}
|
|
@@ -104,7 +110,7 @@ module NutanixVolumes
|
|
|
104
110
|
end
|
|
105
111
|
|
|
106
112
|
if !@target_secret.nil? && @target_secret.to_s.length < 12
|
|
107
|
-
invalid_properties.push('invalid value for "target_secret", the character length must be
|
|
113
|
+
invalid_properties.push('invalid value for "target_secret", the character length must be greater than or equal to 12.')
|
|
108
114
|
end
|
|
109
115
|
|
|
110
116
|
invalid_properties
|
|
@@ -131,7 +137,7 @@ module NutanixVolumes
|
|
|
131
137
|
end
|
|
132
138
|
|
|
133
139
|
if target_secret.to_s.length < 12
|
|
134
|
-
fail ArgumentError, 'invalid value for "target_secret", the character length must be
|
|
140
|
+
fail ArgumentError, 'invalid value for "target_secret", the character length must be greater than or equal to 12.'
|
|
135
141
|
end
|
|
136
142
|
|
|
137
143
|
@target_secret = target_secret
|
|
@@ -181,61 +187,6 @@ module NutanixVolumes
|
|
|
181
187
|
new(transformed_hash)
|
|
182
188
|
end
|
|
183
189
|
|
|
184
|
-
# Deserializes the data based on type
|
|
185
|
-
# @param string type Data type
|
|
186
|
-
# @param string value Value to be deserialized
|
|
187
|
-
# @return [Object] Deserialized data
|
|
188
|
-
def self._deserialize(type, value)
|
|
189
|
-
case type.to_sym
|
|
190
|
-
when :Time
|
|
191
|
-
Time.parse(value)
|
|
192
|
-
when :Date
|
|
193
|
-
Date.parse(value)
|
|
194
|
-
when :String
|
|
195
|
-
value.to_s
|
|
196
|
-
when :Integer
|
|
197
|
-
value.to_i
|
|
198
|
-
when :Float
|
|
199
|
-
value.to_f
|
|
200
|
-
when :Boolean
|
|
201
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
202
|
-
true
|
|
203
|
-
else
|
|
204
|
-
false
|
|
205
|
-
end
|
|
206
|
-
when :Object
|
|
207
|
-
# generic object (usually a Hash), return directly
|
|
208
|
-
value
|
|
209
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
210
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
211
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
212
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
213
|
-
k_type = Regexp.last_match[:k_type]
|
|
214
|
-
v_type = Regexp.last_match[:v_type]
|
|
215
|
-
{}.tap do |hash|
|
|
216
|
-
value.each do |k, v|
|
|
217
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
218
|
-
end
|
|
219
|
-
end
|
|
220
|
-
else # model
|
|
221
|
-
# models (e.g. Pet) or oneOf
|
|
222
|
-
klass = NutanixVolumes.const_get(type)
|
|
223
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
224
|
-
end
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
# Returns the string representation of the object
|
|
228
|
-
# @return [String] String presentation of the object
|
|
229
|
-
def to_s
|
|
230
|
-
to_hash.to_s
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
234
|
-
# @return [Hash] Returns the object in the form of hash
|
|
235
|
-
def to_body
|
|
236
|
-
to_hash
|
|
237
|
-
end
|
|
238
|
-
|
|
239
190
|
# Returns the object in the form of hash
|
|
240
191
|
# @return [Hash] Returns the object in the form of hash
|
|
241
192
|
def to_hash
|
|
@@ -252,24 +203,6 @@ module NutanixVolumes
|
|
|
252
203
|
hash
|
|
253
204
|
end
|
|
254
205
|
|
|
255
|
-
# Outputs non-array value in the form of hash
|
|
256
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
257
|
-
# @param [Object] value Any valid value
|
|
258
|
-
# @return [Hash] Returns the value in the form of hash
|
|
259
|
-
def _to_hash(value)
|
|
260
|
-
if value.is_a?(Array)
|
|
261
|
-
value.compact.map { |v| _to_hash(v) }
|
|
262
|
-
elsif value.is_a?(Hash)
|
|
263
|
-
{}.tap do |hash|
|
|
264
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
265
|
-
end
|
|
266
|
-
elsif value.respond_to? :to_hash
|
|
267
|
-
value.to_hash
|
|
268
|
-
else
|
|
269
|
-
value
|
|
270
|
-
end
|
|
271
|
-
end
|
|
272
|
-
|
|
273
206
|
end
|
|
274
207
|
|
|
275
208
|
end
|
data/lib/nutanix_volumes/models/volumes_v40_config_list_category_associations_api_response.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module NutanixVolumes
|
|
17
17
|
# REST response for all response codes in API path /volumes/v4.0/config/volume-groups/{volumeGroupExtId}/category-associations Get operation
|
|
18
|
-
class VolumesV40ConfigListCategoryAssociationsApiResponse
|
|
18
|
+
class VolumesV40ConfigListCategoryAssociationsApiResponse < ApiModelBase
|
|
19
19
|
attr_accessor :metadata
|
|
20
20
|
|
|
21
21
|
attr_accessor :data
|
|
@@ -28,9 +28,14 @@ module NutanixVolumes
|
|
|
28
28
|
}
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
# Returns attribute mapping this model knows about
|
|
32
|
+
def self.acceptable_attribute_map
|
|
33
|
+
attribute_map
|
|
34
|
+
end
|
|
35
|
+
|
|
31
36
|
# Returns all the JSON keys this model knows about
|
|
32
37
|
def self.acceptable_attributes
|
|
33
|
-
|
|
38
|
+
acceptable_attribute_map.values
|
|
34
39
|
end
|
|
35
40
|
|
|
36
41
|
# Attribute type mapping.
|
|
@@ -55,9 +60,10 @@ module NutanixVolumes
|
|
|
55
60
|
end
|
|
56
61
|
|
|
57
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
58
64
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
59
|
-
if (!
|
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigListCategoryAssociationsApiResponse`. Please check the name to make sure it's valid. List of attributes: " +
|
|
65
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigListCategoryAssociationsApiResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
61
67
|
end
|
|
62
68
|
h[k.to_sym] = v
|
|
63
69
|
}
|
|
@@ -130,61 +136,6 @@ module NutanixVolumes
|
|
|
130
136
|
new(transformed_hash)
|
|
131
137
|
end
|
|
132
138
|
|
|
133
|
-
# Deserializes the data based on type
|
|
134
|
-
# @param string type Data type
|
|
135
|
-
# @param string value Value to be deserialized
|
|
136
|
-
# @return [Object] Deserialized data
|
|
137
|
-
def self._deserialize(type, value)
|
|
138
|
-
case type.to_sym
|
|
139
|
-
when :Time
|
|
140
|
-
Time.parse(value)
|
|
141
|
-
when :Date
|
|
142
|
-
Date.parse(value)
|
|
143
|
-
when :String
|
|
144
|
-
value.to_s
|
|
145
|
-
when :Integer
|
|
146
|
-
value.to_i
|
|
147
|
-
when :Float
|
|
148
|
-
value.to_f
|
|
149
|
-
when :Boolean
|
|
150
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
151
|
-
true
|
|
152
|
-
else
|
|
153
|
-
false
|
|
154
|
-
end
|
|
155
|
-
when :Object
|
|
156
|
-
# generic object (usually a Hash), return directly
|
|
157
|
-
value
|
|
158
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
159
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
160
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
161
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
162
|
-
k_type = Regexp.last_match[:k_type]
|
|
163
|
-
v_type = Regexp.last_match[:v_type]
|
|
164
|
-
{}.tap do |hash|
|
|
165
|
-
value.each do |k, v|
|
|
166
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
167
|
-
end
|
|
168
|
-
end
|
|
169
|
-
else # model
|
|
170
|
-
# models (e.g. Pet) or oneOf
|
|
171
|
-
klass = NutanixVolumes.const_get(type)
|
|
172
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
173
|
-
end
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
# Returns the string representation of the object
|
|
177
|
-
# @return [String] String presentation of the object
|
|
178
|
-
def to_s
|
|
179
|
-
to_hash.to_s
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
183
|
-
# @return [Hash] Returns the object in the form of hash
|
|
184
|
-
def to_body
|
|
185
|
-
to_hash
|
|
186
|
-
end
|
|
187
|
-
|
|
188
139
|
# Returns the object in the form of hash
|
|
189
140
|
# @return [Hash] Returns the object in the form of hash
|
|
190
141
|
def to_hash
|
|
@@ -201,24 +152,6 @@ module NutanixVolumes
|
|
|
201
152
|
hash
|
|
202
153
|
end
|
|
203
154
|
|
|
204
|
-
# Outputs non-array value in the form of hash
|
|
205
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
206
|
-
# @param [Object] value Any valid value
|
|
207
|
-
# @return [Hash] Returns the value in the form of hash
|
|
208
|
-
def _to_hash(value)
|
|
209
|
-
if value.is_a?(Array)
|
|
210
|
-
value.compact.map { |v| _to_hash(v) }
|
|
211
|
-
elsif value.is_a?(Hash)
|
|
212
|
-
{}.tap do |hash|
|
|
213
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
214
|
-
end
|
|
215
|
-
elsif value.respond_to? :to_hash
|
|
216
|
-
value.to_hash
|
|
217
|
-
else
|
|
218
|
-
value
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
|
|
222
155
|
end
|
|
223
156
|
|
|
224
157
|
end
|
data/lib/nutanix_volumes/models/volumes_v40_config_list_category_associations_api_response_data.rb
CHANGED
|
@@ -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"
|
data/lib/nutanix_volumes/models/volumes_v40_config_list_external_iscsi_attachments_api_response.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module NutanixVolumes
|
|
17
17
|
# REST response for all response codes in API path /volumes/v4.0/config/volume-groups/{volumeGroupExtId}/external-iscsi-attachments Get operation
|
|
18
|
-
class VolumesV40ConfigListExternalIscsiAttachmentsApiResponse
|
|
18
|
+
class VolumesV40ConfigListExternalIscsiAttachmentsApiResponse < ApiModelBase
|
|
19
19
|
attr_accessor :metadata
|
|
20
20
|
|
|
21
21
|
attr_accessor :data
|
|
@@ -28,9 +28,14 @@ module NutanixVolumes
|
|
|
28
28
|
}
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
# Returns attribute mapping this model knows about
|
|
32
|
+
def self.acceptable_attribute_map
|
|
33
|
+
attribute_map
|
|
34
|
+
end
|
|
35
|
+
|
|
31
36
|
# Returns all the JSON keys this model knows about
|
|
32
37
|
def self.acceptable_attributes
|
|
33
|
-
|
|
38
|
+
acceptable_attribute_map.values
|
|
34
39
|
end
|
|
35
40
|
|
|
36
41
|
# Attribute type mapping.
|
|
@@ -55,9 +60,10 @@ module NutanixVolumes
|
|
|
55
60
|
end
|
|
56
61
|
|
|
57
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
58
64
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
59
|
-
if (!
|
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigListExternalIscsiAttachmentsApiResponse`. Please check the name to make sure it's valid. List of attributes: " +
|
|
65
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigListExternalIscsiAttachmentsApiResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
61
67
|
end
|
|
62
68
|
h[k.to_sym] = v
|
|
63
69
|
}
|
|
@@ -130,61 +136,6 @@ module NutanixVolumes
|
|
|
130
136
|
new(transformed_hash)
|
|
131
137
|
end
|
|
132
138
|
|
|
133
|
-
# Deserializes the data based on type
|
|
134
|
-
# @param string type Data type
|
|
135
|
-
# @param string value Value to be deserialized
|
|
136
|
-
# @return [Object] Deserialized data
|
|
137
|
-
def self._deserialize(type, value)
|
|
138
|
-
case type.to_sym
|
|
139
|
-
when :Time
|
|
140
|
-
Time.parse(value)
|
|
141
|
-
when :Date
|
|
142
|
-
Date.parse(value)
|
|
143
|
-
when :String
|
|
144
|
-
value.to_s
|
|
145
|
-
when :Integer
|
|
146
|
-
value.to_i
|
|
147
|
-
when :Float
|
|
148
|
-
value.to_f
|
|
149
|
-
when :Boolean
|
|
150
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
151
|
-
true
|
|
152
|
-
else
|
|
153
|
-
false
|
|
154
|
-
end
|
|
155
|
-
when :Object
|
|
156
|
-
# generic object (usually a Hash), return directly
|
|
157
|
-
value
|
|
158
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
159
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
160
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
161
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
162
|
-
k_type = Regexp.last_match[:k_type]
|
|
163
|
-
v_type = Regexp.last_match[:v_type]
|
|
164
|
-
{}.tap do |hash|
|
|
165
|
-
value.each do |k, v|
|
|
166
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
167
|
-
end
|
|
168
|
-
end
|
|
169
|
-
else # model
|
|
170
|
-
# models (e.g. Pet) or oneOf
|
|
171
|
-
klass = NutanixVolumes.const_get(type)
|
|
172
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
173
|
-
end
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
# Returns the string representation of the object
|
|
177
|
-
# @return [String] String presentation of the object
|
|
178
|
-
def to_s
|
|
179
|
-
to_hash.to_s
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
183
|
-
# @return [Hash] Returns the object in the form of hash
|
|
184
|
-
def to_body
|
|
185
|
-
to_hash
|
|
186
|
-
end
|
|
187
|
-
|
|
188
139
|
# Returns the object in the form of hash
|
|
189
140
|
# @return [Hash] Returns the object in the form of hash
|
|
190
141
|
def to_hash
|
|
@@ -201,24 +152,6 @@ module NutanixVolumes
|
|
|
201
152
|
hash
|
|
202
153
|
end
|
|
203
154
|
|
|
204
|
-
# Outputs non-array value in the form of hash
|
|
205
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
206
|
-
# @param [Object] value Any valid value
|
|
207
|
-
# @return [Hash] Returns the value in the form of hash
|
|
208
|
-
def _to_hash(value)
|
|
209
|
-
if value.is_a?(Array)
|
|
210
|
-
value.compact.map { |v| _to_hash(v) }
|
|
211
|
-
elsif value.is_a?(Hash)
|
|
212
|
-
{}.tap do |hash|
|
|
213
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
214
|
-
end
|
|
215
|
-
elsif value.respond_to? :to_hash
|
|
216
|
-
value.to_hash
|
|
217
|
-
else
|
|
218
|
-
value
|
|
219
|
-
end
|
|
220
|
-
end
|
|
221
|
-
|
|
222
155
|
end
|
|
223
156
|
|
|
224
157
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -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"
|