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
|
# An unique address that identifies a device on the internet or a local network in IPv6 format.
|
|
18
|
-
class CommonV10ConfigIPv6Address
|
|
18
|
+
class CommonV10ConfigIPv6Address < ApiModelBase
|
|
19
19
|
# The IPv6 address of the host.
|
|
20
20
|
attr_accessor :value
|
|
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::CommonV10ConfigIPv6Address`. 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::CommonV10ConfigIPv6Address`. 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
|
}
|
|
@@ -190,61 +196,6 @@ module NutanixVolumes
|
|
|
190
196
|
new(transformed_hash)
|
|
191
197
|
end
|
|
192
198
|
|
|
193
|
-
# Deserializes the data based on type
|
|
194
|
-
# @param string type Data type
|
|
195
|
-
# @param string value Value to be deserialized
|
|
196
|
-
# @return [Object] Deserialized data
|
|
197
|
-
def self._deserialize(type, value)
|
|
198
|
-
case type.to_sym
|
|
199
|
-
when :Time
|
|
200
|
-
Time.parse(value)
|
|
201
|
-
when :Date
|
|
202
|
-
Date.parse(value)
|
|
203
|
-
when :String
|
|
204
|
-
value.to_s
|
|
205
|
-
when :Integer
|
|
206
|
-
value.to_i
|
|
207
|
-
when :Float
|
|
208
|
-
value.to_f
|
|
209
|
-
when :Boolean
|
|
210
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
211
|
-
true
|
|
212
|
-
else
|
|
213
|
-
false
|
|
214
|
-
end
|
|
215
|
-
when :Object
|
|
216
|
-
# generic object (usually a Hash), return directly
|
|
217
|
-
value
|
|
218
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
219
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
220
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
221
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
222
|
-
k_type = Regexp.last_match[:k_type]
|
|
223
|
-
v_type = Regexp.last_match[:v_type]
|
|
224
|
-
{}.tap do |hash|
|
|
225
|
-
value.each do |k, v|
|
|
226
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
227
|
-
end
|
|
228
|
-
end
|
|
229
|
-
else # model
|
|
230
|
-
# models (e.g. Pet) or oneOf
|
|
231
|
-
klass = NutanixVolumes.const_get(type)
|
|
232
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
# Returns the string representation of the object
|
|
237
|
-
# @return [String] String presentation of the object
|
|
238
|
-
def to_s
|
|
239
|
-
to_hash.to_s
|
|
240
|
-
end
|
|
241
|
-
|
|
242
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
243
|
-
# @return [Hash] Returns the object in the form of hash
|
|
244
|
-
def to_body
|
|
245
|
-
to_hash
|
|
246
|
-
end
|
|
247
|
-
|
|
248
199
|
# Returns the object in the form of hash
|
|
249
200
|
# @return [Hash] Returns the object in the form of hash
|
|
250
201
|
def to_hash
|
|
@@ -261,24 +212,6 @@ module NutanixVolumes
|
|
|
261
212
|
hash
|
|
262
213
|
end
|
|
263
214
|
|
|
264
|
-
# Outputs non-array value in the form of hash
|
|
265
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
266
|
-
# @param [Object] value Any valid value
|
|
267
|
-
# @return [Hash] Returns the value in the form of hash
|
|
268
|
-
def _to_hash(value)
|
|
269
|
-
if value.is_a?(Array)
|
|
270
|
-
value.compact.map { |v| _to_hash(v) }
|
|
271
|
-
elsif value.is_a?(Hash)
|
|
272
|
-
{}.tap do |hash|
|
|
273
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
274
|
-
end
|
|
275
|
-
elsif value.respond_to? :to_hash
|
|
276
|
-
value.to_hash
|
|
277
|
-
else
|
|
278
|
-
value
|
|
279
|
-
end
|
|
280
|
-
end
|
|
281
|
-
|
|
282
215
|
end
|
|
283
216
|
|
|
284
217
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module NutanixVolumes
|
|
17
17
|
# A map describing a set of keys and their corresponding values.
|
|
18
|
-
class CommonV10ConfigKVPair
|
|
18
|
+
class CommonV10ConfigKVPair < ApiModelBase
|
|
19
19
|
# The key of the key-value pair.
|
|
20
20
|
attr_accessor :name
|
|
21
21
|
|
|
@@ -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::CommonV10ConfigKVPair`. 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::CommonV10ConfigKVPair`. 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
|
}
|
|
@@ -82,7 +88,7 @@ module NutanixVolumes
|
|
|
82
88
|
end
|
|
83
89
|
|
|
84
90
|
if !@name.nil? && @name.to_s.length < 3
|
|
85
|
-
invalid_properties.push('invalid value for "name", the character length must be
|
|
91
|
+
invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 3.')
|
|
86
92
|
end
|
|
87
93
|
|
|
88
94
|
invalid_properties
|
|
@@ -109,7 +115,7 @@ module NutanixVolumes
|
|
|
109
115
|
end
|
|
110
116
|
|
|
111
117
|
if name.to_s.length < 3
|
|
112
|
-
fail ArgumentError, 'invalid value for "name", the character length must be
|
|
118
|
+
fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 3.'
|
|
113
119
|
end
|
|
114
120
|
|
|
115
121
|
@name = name
|
|
@@ -159,61 +165,6 @@ module NutanixVolumes
|
|
|
159
165
|
new(transformed_hash)
|
|
160
166
|
end
|
|
161
167
|
|
|
162
|
-
# Deserializes the data based on type
|
|
163
|
-
# @param string type Data type
|
|
164
|
-
# @param string value Value to be deserialized
|
|
165
|
-
# @return [Object] Deserialized data
|
|
166
|
-
def self._deserialize(type, value)
|
|
167
|
-
case type.to_sym
|
|
168
|
-
when :Time
|
|
169
|
-
Time.parse(value)
|
|
170
|
-
when :Date
|
|
171
|
-
Date.parse(value)
|
|
172
|
-
when :String
|
|
173
|
-
value.to_s
|
|
174
|
-
when :Integer
|
|
175
|
-
value.to_i
|
|
176
|
-
when :Float
|
|
177
|
-
value.to_f
|
|
178
|
-
when :Boolean
|
|
179
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
180
|
-
true
|
|
181
|
-
else
|
|
182
|
-
false
|
|
183
|
-
end
|
|
184
|
-
when :Object
|
|
185
|
-
# generic object (usually a Hash), return directly
|
|
186
|
-
value
|
|
187
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
188
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
189
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
190
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
191
|
-
k_type = Regexp.last_match[:k_type]
|
|
192
|
-
v_type = Regexp.last_match[:v_type]
|
|
193
|
-
{}.tap do |hash|
|
|
194
|
-
value.each do |k, v|
|
|
195
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
196
|
-
end
|
|
197
|
-
end
|
|
198
|
-
else # model
|
|
199
|
-
# models (e.g. Pet) or oneOf
|
|
200
|
-
klass = NutanixVolumes.const_get(type)
|
|
201
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
202
|
-
end
|
|
203
|
-
end
|
|
204
|
-
|
|
205
|
-
# Returns the string representation of the object
|
|
206
|
-
# @return [String] String presentation of the object
|
|
207
|
-
def to_s
|
|
208
|
-
to_hash.to_s
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
212
|
-
# @return [Hash] Returns the object in the form of hash
|
|
213
|
-
def to_body
|
|
214
|
-
to_hash
|
|
215
|
-
end
|
|
216
|
-
|
|
217
168
|
# Returns the object in the form of hash
|
|
218
169
|
# @return [Hash] Returns the object in the form of hash
|
|
219
170
|
def to_hash
|
|
@@ -230,24 +181,6 @@ module NutanixVolumes
|
|
|
230
181
|
hash
|
|
231
182
|
end
|
|
232
183
|
|
|
233
|
-
# Outputs non-array value in the form of hash
|
|
234
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
235
|
-
# @param [Object] value Any valid value
|
|
236
|
-
# @return [Hash] Returns the value in the form of hash
|
|
237
|
-
def _to_hash(value)
|
|
238
|
-
if value.is_a?(Array)
|
|
239
|
-
value.compact.map { |v| _to_hash(v) }
|
|
240
|
-
elsif value.is_a?(Hash)
|
|
241
|
-
{}.tap do |hash|
|
|
242
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
243
|
-
end
|
|
244
|
-
elsif value.respond_to? :to_hash
|
|
245
|
-
value.to_hash
|
|
246
|
-
else
|
|
247
|
-
value
|
|
248
|
-
end
|
|
249
|
-
end
|
|
250
|
-
|
|
251
184
|
end
|
|
252
185
|
|
|
253
186
|
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
|
|
|
@@ -44,8 +44,7 @@ module NutanixVolumes
|
|
|
44
44
|
openapi_one_of.each do |klass|
|
|
45
45
|
begin
|
|
46
46
|
next if klass == :AnyType # "nullable: true"
|
|
47
|
-
|
|
48
|
-
return typed_data if typed_data
|
|
47
|
+
return find_and_cast_into_type(klass, data)
|
|
49
48
|
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
|
50
49
|
end
|
|
51
50
|
end
|
|
@@ -71,7 +70,7 @@ module NutanixVolumes
|
|
|
71
70
|
when 'Time'
|
|
72
71
|
return Time.parse(data)
|
|
73
72
|
when 'Date'
|
|
74
|
-
return Date.
|
|
73
|
+
return Date.iso8601(data)
|
|
75
74
|
when 'String'
|
|
76
75
|
return data if data.instance_of?(String)
|
|
77
76
|
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
|
# A wrapper schema containing a map with string keys and values.
|
|
18
|
-
class CommonV10ConfigMapOfStringWrapper
|
|
18
|
+
class CommonV10ConfigMapOfStringWrapper < ApiModelBase
|
|
19
19
|
# A map with string keys and values.
|
|
20
20
|
attr_accessor :map
|
|
21
21
|
|
|
@@ -26,9 +26,14 @@ module NutanixVolumes
|
|
|
26
26
|
}
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
+
# Returns attribute mapping this model knows about
|
|
30
|
+
def self.acceptable_attribute_map
|
|
31
|
+
attribute_map
|
|
32
|
+
end
|
|
33
|
+
|
|
29
34
|
# Returns all the JSON keys this model knows about
|
|
30
35
|
def self.acceptable_attributes
|
|
31
|
-
|
|
36
|
+
acceptable_attribute_map.values
|
|
32
37
|
end
|
|
33
38
|
|
|
34
39
|
# Attribute type mapping.
|
|
@@ -52,9 +57,10 @@ module NutanixVolumes
|
|
|
52
57
|
end
|
|
53
58
|
|
|
54
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
55
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
56
|
-
if (!
|
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::CommonV10ConfigMapOfStringWrapper`. Please check the name to make sure it's valid. List of attributes: " +
|
|
62
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::CommonV10ConfigMapOfStringWrapper`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
58
64
|
end
|
|
59
65
|
h[k.to_sym] = v
|
|
60
66
|
}
|
|
@@ -124,61 +130,6 @@ module NutanixVolumes
|
|
|
124
130
|
new(transformed_hash)
|
|
125
131
|
end
|
|
126
132
|
|
|
127
|
-
# Deserializes the data based on type
|
|
128
|
-
# @param string type Data type
|
|
129
|
-
# @param string value Value to be deserialized
|
|
130
|
-
# @return [Object] Deserialized data
|
|
131
|
-
def self._deserialize(type, value)
|
|
132
|
-
case type.to_sym
|
|
133
|
-
when :Time
|
|
134
|
-
Time.parse(value)
|
|
135
|
-
when :Date
|
|
136
|
-
Date.parse(value)
|
|
137
|
-
when :String
|
|
138
|
-
value.to_s
|
|
139
|
-
when :Integer
|
|
140
|
-
value.to_i
|
|
141
|
-
when :Float
|
|
142
|
-
value.to_f
|
|
143
|
-
when :Boolean
|
|
144
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
145
|
-
true
|
|
146
|
-
else
|
|
147
|
-
false
|
|
148
|
-
end
|
|
149
|
-
when :Object
|
|
150
|
-
# generic object (usually a Hash), return directly
|
|
151
|
-
value
|
|
152
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
153
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
154
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
155
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
156
|
-
k_type = Regexp.last_match[:k_type]
|
|
157
|
-
v_type = Regexp.last_match[:v_type]
|
|
158
|
-
{}.tap do |hash|
|
|
159
|
-
value.each do |k, v|
|
|
160
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
161
|
-
end
|
|
162
|
-
end
|
|
163
|
-
else # model
|
|
164
|
-
# models (e.g. Pet) or oneOf
|
|
165
|
-
klass = NutanixVolumes.const_get(type)
|
|
166
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
167
|
-
end
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
# Returns the string representation of the object
|
|
171
|
-
# @return [String] String presentation of the object
|
|
172
|
-
def to_s
|
|
173
|
-
to_hash.to_s
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
177
|
-
# @return [Hash] Returns the object in the form of hash
|
|
178
|
-
def to_body
|
|
179
|
-
to_hash
|
|
180
|
-
end
|
|
181
|
-
|
|
182
133
|
# Returns the object in the form of hash
|
|
183
134
|
# @return [Hash] Returns the object in the form of hash
|
|
184
135
|
def to_hash
|
|
@@ -195,24 +146,6 @@ module NutanixVolumes
|
|
|
195
146
|
hash
|
|
196
147
|
end
|
|
197
148
|
|
|
198
|
-
# Outputs non-array value in the form of hash
|
|
199
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
200
|
-
# @param [Object] value Any valid value
|
|
201
|
-
# @return [Hash] Returns the value in the form of hash
|
|
202
|
-
def _to_hash(value)
|
|
203
|
-
if value.is_a?(Array)
|
|
204
|
-
value.compact.map { |v| _to_hash(v) }
|
|
205
|
-
elsif value.is_a?(Hash)
|
|
206
|
-
{}.tap do |hash|
|
|
207
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
208
|
-
end
|
|
209
|
-
elsif value.respond_to? :to_hash
|
|
210
|
-
value.to_hash
|
|
211
|
-
else
|
|
212
|
-
value
|
|
213
|
-
end
|
|
214
|
-
end
|
|
215
|
-
|
|
216
149
|
end
|
|
217
150
|
|
|
218
151
|
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
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module NutanixVolumes
|
|
17
|
-
class CommonV10ConfigMessage
|
|
17
|
+
class CommonV10ConfigMessage < ApiModelBase
|
|
18
18
|
# A code that uniquely identifies a message.
|
|
19
19
|
attr_accessor :code
|
|
20
20
|
|
|
@@ -58,9 +58,14 @@ module NutanixVolumes
|
|
|
58
58
|
}
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
+
# Returns attribute mapping this model knows about
|
|
62
|
+
def self.acceptable_attribute_map
|
|
63
|
+
attribute_map
|
|
64
|
+
end
|
|
65
|
+
|
|
61
66
|
# Returns all the JSON keys this model knows about
|
|
62
67
|
def self.acceptable_attributes
|
|
63
|
-
|
|
68
|
+
acceptable_attribute_map.values
|
|
64
69
|
end
|
|
65
70
|
|
|
66
71
|
# Attribute type mapping.
|
|
@@ -87,9 +92,10 @@ module NutanixVolumes
|
|
|
87
92
|
end
|
|
88
93
|
|
|
89
94
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
95
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
90
96
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
91
|
-
if (!
|
|
92
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::CommonV10ConfigMessage`. Please check the name to make sure it's valid. List of attributes: " +
|
|
97
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
98
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::CommonV10ConfigMessage`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
93
99
|
end
|
|
94
100
|
h[k.to_sym] = v
|
|
95
101
|
}
|
|
@@ -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
|