nutanix_volumes 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/LICENSE.txt +202 -0
  4. data/README.md +5 -6
  5. data/bin/console +15 -0
  6. data/bin/openapi-generate +30 -0
  7. data/bin/openapi-generate-ruby-post-process +6 -0
  8. data/docs/VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponse.md +1 -1
  9. data/docs/VolumesV40ConfigUpdateVolumeGroupMetadataApiResponse.md +1 -1
  10. data/docs/VolumesV40ConfigUpdateVolumeGroupMetadataInfoApiResponse.md +1 -1
  11. data/lib/nutanix_volumes/api/iscsi_clients_api.rb +1 -1
  12. data/lib/nutanix_volumes/api/volume_groups_api.rb +1 -1
  13. data/lib/nutanix_volumes/api_client.rb +8 -9
  14. data/lib/nutanix_volumes/api_error.rb +1 -1
  15. data/lib/nutanix_volumes/api_model_base.rb +88 -0
  16. data/lib/nutanix_volumes/configuration.rb +1 -1
  17. data/lib/nutanix_volumes/models/associate_category202_response.rb +11 -78
  18. data/lib/nutanix_volumes/models/associate_category4_xx_response.rb +11 -78
  19. data/lib/nutanix_volumes/models/attach_iscsi_client202_response.rb +11 -78
  20. data/lib/nutanix_volumes/models/attach_iscsi_client4_xx_response.rb +11 -78
  21. data/lib/nutanix_volumes/models/attach_vm202_response.rb +11 -78
  22. data/lib/nutanix_volumes/models/attach_vm4_xx_response.rb +11 -78
  23. data/lib/nutanix_volumes/models/common_v10_config_entity_reference.rb +11 -78
  24. data/lib/nutanix_volumes/models/common_v10_config_entity_type.rb +4 -4
  25. data/lib/nutanix_volumes/models/common_v10_config_flag.rb +13 -80
  26. data/lib/nutanix_volumes/models/common_v10_config_fqdn.rb +11 -78
  27. data/lib/nutanix_volumes/models/common_v10_config_ip_address_or_fqdn.rb +11 -78
  28. data/lib/nutanix_volumes/models/common_v10_config_ipv4_address.rb +11 -78
  29. data/lib/nutanix_volumes/models/common_v10_config_ipv6_address.rb +11 -78
  30. data/lib/nutanix_volumes/models/common_v10_config_kv_pair.rb +13 -80
  31. data/lib/nutanix_volumes/models/common_v10_config_kv_pair_value.rb +3 -4
  32. data/lib/nutanix_volumes/models/common_v10_config_map_of_string_wrapper.rb +11 -78
  33. data/lib/nutanix_volumes/models/common_v10_config_message.rb +11 -78
  34. data/lib/nutanix_volumes/models/common_v10_config_message_severity.rb +4 -4
  35. data/lib/nutanix_volumes/models/common_v10_config_metadata.rb +11 -78
  36. data/lib/nutanix_volumes/models/common_v10_config_tenant_aware_model.rb +11 -78
  37. data/lib/nutanix_volumes/models/common_v10_response_api_link.rb +11 -78
  38. data/lib/nutanix_volumes/models/common_v10_response_api_response_metadata.rb +11 -78
  39. data/lib/nutanix_volumes/models/common_v10_response_externalizable_abstract_model.rb +11 -78
  40. data/lib/nutanix_volumes/models/common_v10_stats_down_sampling_operator.rb +4 -4
  41. data/lib/nutanix_volumes/models/create_volume_disk202_response.rb +11 -78
  42. data/lib/nutanix_volumes/models/create_volume_disk4_xx_response.rb +11 -78
  43. data/lib/nutanix_volumes/models/create_volume_group202_response.rb +11 -78
  44. data/lib/nutanix_volumes/models/create_volume_group4_xx_response.rb +11 -78
  45. data/lib/nutanix_volumes/models/delete_volume_disk_by_id202_response.rb +11 -78
  46. data/lib/nutanix_volumes/models/delete_volume_disk_by_id4_xx_response.rb +11 -78
  47. data/lib/nutanix_volumes/models/delete_volume_group_by_id202_response.rb +11 -78
  48. data/lib/nutanix_volumes/models/delete_volume_group_by_id4_xx_response.rb +11 -78
  49. data/lib/nutanix_volumes/models/detach_iscsi_client202_response.rb +11 -78
  50. data/lib/nutanix_volumes/models/detach_iscsi_client4_xx_response.rb +11 -78
  51. data/lib/nutanix_volumes/models/detach_vm202_response.rb +11 -78
  52. data/lib/nutanix_volumes/models/detach_vm4_xx_response.rb +11 -78
  53. data/lib/nutanix_volumes/models/disassociate_category202_response.rb +11 -78
  54. data/lib/nutanix_volumes/models/disassociate_category4_xx_response.rb +11 -78
  55. data/lib/nutanix_volumes/models/get_iscsi_client_by_id200_response.rb +11 -78
  56. data/lib/nutanix_volumes/models/get_iscsi_client_by_id4_xx_response.rb +11 -78
  57. data/lib/nutanix_volumes/models/get_volume_disk_by_id200_response.rb +11 -78
  58. data/lib/nutanix_volumes/models/get_volume_disk_by_id4_xx_response.rb +11 -78
  59. data/lib/nutanix_volumes/models/get_volume_disk_stats200_response.rb +11 -78
  60. data/lib/nutanix_volumes/models/get_volume_disk_stats4_xx_response.rb +11 -78
  61. data/lib/nutanix_volumes/models/get_volume_group_by_id200_response.rb +11 -78
  62. data/lib/nutanix_volumes/models/get_volume_group_by_id4_xx_response.rb +11 -78
  63. data/lib/nutanix_volumes/models/get_volume_group_metadata_by_id200_response.rb +11 -78
  64. data/lib/nutanix_volumes/models/get_volume_group_metadata_by_id4_xx_response.rb +11 -78
  65. data/lib/nutanix_volumes/models/get_volume_group_stats200_response.rb +11 -78
  66. data/lib/nutanix_volumes/models/get_volume_group_stats4_xx_response.rb +11 -78
  67. data/lib/nutanix_volumes/models/list_category_associations_by_volume_group_id200_response.rb +11 -78
  68. data/lib/nutanix_volumes/models/list_category_associations_by_volume_group_id4_xx_response.rb +11 -78
  69. data/lib/nutanix_volumes/models/list_external_iscsi_attachments_by_volume_group_id200_response.rb +11 -78
  70. data/lib/nutanix_volumes/models/list_external_iscsi_attachments_by_volume_group_id4_xx_response.rb +11 -78
  71. data/lib/nutanix_volumes/models/list_iscsi_clients200_response.rb +11 -78
  72. data/lib/nutanix_volumes/models/list_iscsi_clients4_xx_response.rb +11 -78
  73. data/lib/nutanix_volumes/models/list_vm_attachments_by_volume_group_id200_response.rb +11 -78
  74. data/lib/nutanix_volumes/models/list_vm_attachments_by_volume_group_id4_xx_response.rb +11 -78
  75. data/lib/nutanix_volumes/models/list_volume_disks_by_volume_group_id200_response.rb +11 -78
  76. data/lib/nutanix_volumes/models/list_volume_disks_by_volume_group_id4_xx_response.rb +11 -78
  77. data/lib/nutanix_volumes/models/list_volume_groups200_response.rb +11 -78
  78. data/lib/nutanix_volumes/models/list_volume_groups4_xx_response.rb +11 -78
  79. data/lib/nutanix_volumes/models/prism_v40_config_task_reference.rb +11 -78
  80. data/lib/nutanix_volumes/models/revert_volume_group202_response.rb +11 -78
  81. data/lib/nutanix_volumes/models/revert_volume_group4_xx_response.rb +11 -78
  82. data/lib/nutanix_volumes/models/update_iscsi_client_by_id202_response.rb +11 -78
  83. data/lib/nutanix_volumes/models/update_iscsi_client_by_id4_xx_response.rb +11 -78
  84. data/lib/nutanix_volumes/models/update_volume_disk_by_id202_response.rb +11 -78
  85. data/lib/nutanix_volumes/models/update_volume_disk_by_id4_xx_response.rb +11 -78
  86. data/lib/nutanix_volumes/models/update_volume_group_by_id202_response.rb +11 -78
  87. data/lib/nutanix_volumes/models/update_volume_group_by_id4_xx_response.rb +11 -78
  88. data/lib/nutanix_volumes/models/volumes_v40_config_associate_category_api_response.rb +11 -78
  89. data/lib/nutanix_volumes/models/volumes_v40_config_attach_iscsi_client_api_response.rb +11 -78
  90. data/lib/nutanix_volumes/models/volumes_v40_config_attach_nvmf_client_api_response.rb +11 -78
  91. data/lib/nutanix_volumes/models/volumes_v40_config_attach_vm_api_response.rb +11 -78
  92. data/lib/nutanix_volumes/models/volumes_v40_config_attachment_type.rb +4 -4
  93. data/lib/nutanix_volumes/models/volumes_v40_config_authentication_type.rb +4 -4
  94. data/lib/nutanix_volumes/models/volumes_v40_config_category_details.rb +11 -78
  95. data/lib/nutanix_volumes/models/volumes_v40_config_category_entity_references.rb +11 -78
  96. data/lib/nutanix_volumes/models/volumes_v40_config_cluster.rb +11 -78
  97. data/lib/nutanix_volumes/models/volumes_v40_config_create_volume_disk_api_response.rb +11 -78
  98. data/lib/nutanix_volumes/models/volumes_v40_config_create_volume_group_api_response.rb +11 -78
  99. data/lib/nutanix_volumes/models/volumes_v40_config_delete_volume_disk_api_response.rb +11 -78
  100. data/lib/nutanix_volumes/models/volumes_v40_config_delete_volume_group_api_response.rb +11 -78
  101. data/lib/nutanix_volumes/models/volumes_v40_config_detach_iscsi_client_api_response.rb +11 -78
  102. data/lib/nutanix_volumes/models/volumes_v40_config_detach_nvmf_client_api_response.rb +11 -78
  103. data/lib/nutanix_volumes/models/volumes_v40_config_detach_vm_api_response.rb +11 -78
  104. data/lib/nutanix_volumes/models/volumes_v40_config_disassociate_category_api_response.rb +11 -78
  105. data/lib/nutanix_volumes/models/volumes_v40_config_disk_storage_features.rb +11 -78
  106. data/lib/nutanix_volumes/models/volumes_v40_config_flash_mode.rb +11 -78
  107. data/lib/nutanix_volumes/models/volumes_v40_config_get_iscsi_client_api_response.rb +11 -78
  108. data/lib/nutanix_volumes/models/volumes_v40_config_get_iscsi_client_api_response_data.rb +3 -4
  109. data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_disk_api_response.rb +11 -78
  110. data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_disk_api_response_data.rb +3 -4
  111. data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_api_response.rb +11 -78
  112. data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_api_response_data.rb +3 -4
  113. data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_metadata_api_response.rb +11 -78
  114. data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_metadata_api_response_data.rb +3 -4
  115. data/lib/nutanix_volumes/models/volumes_v40_config_iscsi_client.rb +13 -80
  116. data/lib/nutanix_volumes/models/volumes_v40_config_iscsi_client_attachment.rb +11 -78
  117. data/lib/nutanix_volumes/models/volumes_v40_config_iscsi_features.rb +13 -80
  118. data/lib/nutanix_volumes/models/volumes_v40_config_list_category_associations_api_response.rb +11 -78
  119. data/lib/nutanix_volumes/models/volumes_v40_config_list_category_associations_api_response_data.rb +3 -4
  120. data/lib/nutanix_volumes/models/volumes_v40_config_list_external_iscsi_attachments_api_response.rb +11 -78
  121. data/lib/nutanix_volumes/models/volumes_v40_config_list_external_iscsi_attachments_api_response_data.rb +3 -4
  122. data/lib/nutanix_volumes/models/volumes_v40_config_list_iscsi_clients_api_response.rb +11 -78
  123. data/lib/nutanix_volumes/models/volumes_v40_config_list_iscsi_clients_api_response_data.rb +3 -4
  124. data/lib/nutanix_volumes/models/volumes_v40_config_list_vm_attachments_api_response.rb +11 -78
  125. data/lib/nutanix_volumes/models/volumes_v40_config_list_vm_attachments_api_response_data.rb +3 -4
  126. data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_disks_api_response.rb +11 -78
  127. data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_disks_api_response_data.rb +3 -4
  128. data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_groups_api_response.rb +11 -78
  129. data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_groups_api_response_data.rb +3 -4
  130. data/lib/nutanix_volumes/models/volumes_v40_config_migrate_volume_group_api_response.rb +11 -78
  131. data/lib/nutanix_volumes/models/volumes_v40_config_nvmf_client.rb +11 -78
  132. data/lib/nutanix_volumes/models/volumes_v40_config_nvmf_client_attachment.rb +11 -78
  133. data/lib/nutanix_volumes/models/volumes_v40_config_pause_volume_group_synchronous_replication_api_response.rb +11 -78
  134. data/lib/nutanix_volumes/models/volumes_v40_config_protocol.rb +4 -4
  135. data/lib/nutanix_volumes/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response.rb +12 -79
  136. data/lib/nutanix_volumes/models/volumes_v40_config_revert_spec.rb +11 -78
  137. data/lib/nutanix_volumes/models/volumes_v40_config_revert_volume_group_api_response.rb +11 -78
  138. data/lib/nutanix_volumes/models/volumes_v40_config_sharing_status.rb +4 -4
  139. data/lib/nutanix_volumes/models/volumes_v40_config_storage_features.rb +11 -78
  140. data/lib/nutanix_volumes/models/volumes_v40_config_target_param.rb +11 -78
  141. data/lib/nutanix_volumes/models/volumes_v40_config_update_iscsi_client_api_response.rb +11 -78
  142. data/lib/nutanix_volumes/models/volumes_v40_config_update_iscsi_client_api_response_data.rb +3 -4
  143. data/lib/nutanix_volumes/models/volumes_v40_config_update_iscsi_client_by_id_api_response.rb +11 -78
  144. data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_disk_api_response.rb +11 -78
  145. data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_disk_by_id_api_response.rb +11 -78
  146. data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_api_response.rb +11 -78
  147. data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_by_id_api_response.rb +11 -78
  148. data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_metadata_api_response.rb +12 -79
  149. data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_metadata_info_api_response.rb +12 -79
  150. data/lib/nutanix_volumes/models/volumes_v40_config_usage_type.rb +4 -4
  151. data/lib/nutanix_volumes/models/volumes_v40_config_vm_attachment.rb +11 -78
  152. data/lib/nutanix_volumes/models/volumes_v40_config_volume_disk.rb +11 -78
  153. data/lib/nutanix_volumes/models/volumes_v40_config_volume_group.rb +13 -80
  154. data/lib/nutanix_volumes/models/volumes_v40_config_volume_group_attachment_site.rb +4 -4
  155. data/lib/nutanix_volumes/models/volumes_v40_config_volume_group_metadata.rb +11 -78
  156. data/lib/nutanix_volumes/models/volumes_v40_error_app_message.rb +11 -78
  157. data/lib/nutanix_volumes/models/volumes_v40_error_error_response.rb +11 -78
  158. data/lib/nutanix_volumes/models/volumes_v40_error_error_response_error.rb +3 -4
  159. data/lib/nutanix_volumes/models/volumes_v40_error_message_severity.rb +4 -4
  160. data/lib/nutanix_volumes/models/volumes_v40_error_schema_validation_error.rb +11 -78
  161. data/lib/nutanix_volumes/models/volumes_v40_error_schema_validation_error_message.rb +11 -78
  162. data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_disk_stats_api_response.rb +11 -78
  163. data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_disk_stats_api_response_data.rb +3 -4
  164. data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_group_stats_api_response.rb +11 -78
  165. data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_group_stats_api_response_data.rb +3 -4
  166. data/lib/nutanix_volumes/models/volumes_v40_stats_time_value_pair.rb +11 -78
  167. data/lib/nutanix_volumes/models/volumes_v40_stats_volume_disk_stats.rb +11 -78
  168. data/lib/nutanix_volumes/models/volumes_v40_stats_volume_group_stats.rb +11 -78
  169. data/lib/nutanix_volumes/version.rb +2 -2
  170. data/lib/nutanix_volumes.rb +2 -2
  171. data/openapi-generator-cli-7.17.0.jar +0 -0
  172. data/pkg/nutanix_volumes-0.1.0.gem +0 -0
  173. data/pkg/nutanix_volumes-0.2.0.gem +0 -0
  174. data/renovate.json +5 -0
  175. data/spec/api/iscsi_clients_api_spec.rb +1 -1
  176. data/spec/api/volume_groups_api_spec.rb +1 -1
  177. data/spec/models/associate_category202_response_spec.rb +2 -2
  178. data/spec/models/associate_category4_xx_response_spec.rb +2 -2
  179. data/spec/models/attach_iscsi_client202_response_spec.rb +2 -2
  180. data/spec/models/attach_iscsi_client4_xx_response_spec.rb +2 -2
  181. data/spec/models/attach_vm202_response_spec.rb +2 -2
  182. data/spec/models/attach_vm4_xx_response_spec.rb +2 -2
  183. data/spec/models/common_v10_config_entity_reference_spec.rb +2 -2
  184. data/spec/models/common_v10_config_entity_type_spec.rb +2 -2
  185. data/spec/models/common_v10_config_flag_spec.rb +2 -2
  186. data/spec/models/common_v10_config_fqdn_spec.rb +2 -2
  187. data/spec/models/common_v10_config_ip_address_or_fqdn_spec.rb +2 -2
  188. data/spec/models/common_v10_config_ipv4_address_spec.rb +2 -2
  189. data/spec/models/common_v10_config_ipv6_address_spec.rb +2 -2
  190. data/spec/models/common_v10_config_kv_pair_spec.rb +2 -2
  191. data/spec/models/common_v10_config_kv_pair_value_spec.rb +1 -1
  192. data/spec/models/common_v10_config_map_of_string_wrapper_spec.rb +2 -2
  193. data/spec/models/common_v10_config_message_severity_spec.rb +2 -2
  194. data/spec/models/common_v10_config_message_spec.rb +2 -2
  195. data/spec/models/common_v10_config_metadata_spec.rb +2 -2
  196. data/spec/models/common_v10_config_tenant_aware_model_spec.rb +2 -2
  197. data/spec/models/common_v10_response_api_link_spec.rb +2 -2
  198. data/spec/models/common_v10_response_api_response_metadata_spec.rb +2 -2
  199. data/spec/models/common_v10_response_externalizable_abstract_model_spec.rb +2 -2
  200. data/spec/models/common_v10_stats_down_sampling_operator_spec.rb +2 -2
  201. data/spec/models/create_volume_disk202_response_spec.rb +2 -2
  202. data/spec/models/create_volume_disk4_xx_response_spec.rb +2 -2
  203. data/spec/models/create_volume_group202_response_spec.rb +2 -2
  204. data/spec/models/create_volume_group4_xx_response_spec.rb +2 -2
  205. data/spec/models/delete_volume_disk_by_id202_response_spec.rb +2 -2
  206. data/spec/models/delete_volume_disk_by_id4_xx_response_spec.rb +2 -2
  207. data/spec/models/delete_volume_group_by_id202_response_spec.rb +2 -2
  208. data/spec/models/delete_volume_group_by_id4_xx_response_spec.rb +2 -2
  209. data/spec/models/detach_iscsi_client202_response_spec.rb +2 -2
  210. data/spec/models/detach_iscsi_client4_xx_response_spec.rb +2 -2
  211. data/spec/models/detach_vm202_response_spec.rb +2 -2
  212. data/spec/models/detach_vm4_xx_response_spec.rb +2 -2
  213. data/spec/models/disassociate_category202_response_spec.rb +2 -2
  214. data/spec/models/disassociate_category4_xx_response_spec.rb +2 -2
  215. data/spec/models/get_iscsi_client_by_id200_response_spec.rb +2 -2
  216. data/spec/models/get_iscsi_client_by_id4_xx_response_spec.rb +2 -2
  217. data/spec/models/get_volume_disk_by_id200_response_spec.rb +2 -2
  218. data/spec/models/get_volume_disk_by_id4_xx_response_spec.rb +2 -2
  219. data/spec/models/get_volume_disk_stats200_response_spec.rb +2 -2
  220. data/spec/models/get_volume_disk_stats4_xx_response_spec.rb +2 -2
  221. data/spec/models/get_volume_group_by_id200_response_spec.rb +2 -2
  222. data/spec/models/get_volume_group_by_id4_xx_response_spec.rb +2 -2
  223. data/spec/models/get_volume_group_metadata_by_id200_response_spec.rb +2 -2
  224. data/spec/models/get_volume_group_metadata_by_id4_xx_response_spec.rb +2 -2
  225. data/spec/models/get_volume_group_stats200_response_spec.rb +2 -2
  226. data/spec/models/get_volume_group_stats4_xx_response_spec.rb +2 -2
  227. data/spec/models/list_category_associations_by_volume_group_id200_response_spec.rb +2 -2
  228. data/spec/models/list_category_associations_by_volume_group_id4_xx_response_spec.rb +2 -2
  229. data/spec/models/list_external_iscsi_attachments_by_volume_group_id200_response_spec.rb +2 -2
  230. data/spec/models/list_external_iscsi_attachments_by_volume_group_id4_xx_response_spec.rb +2 -2
  231. data/spec/models/list_iscsi_clients200_response_spec.rb +2 -2
  232. data/spec/models/list_iscsi_clients4_xx_response_spec.rb +2 -2
  233. data/spec/models/list_vm_attachments_by_volume_group_id200_response_spec.rb +2 -2
  234. data/spec/models/list_vm_attachments_by_volume_group_id4_xx_response_spec.rb +2 -2
  235. data/spec/models/list_volume_disks_by_volume_group_id200_response_spec.rb +2 -2
  236. data/spec/models/list_volume_disks_by_volume_group_id4_xx_response_spec.rb +2 -2
  237. data/spec/models/list_volume_groups200_response_spec.rb +2 -2
  238. data/spec/models/list_volume_groups4_xx_response_spec.rb +2 -2
  239. data/spec/models/prism_v40_config_task_reference_spec.rb +2 -2
  240. data/spec/models/revert_volume_group202_response_spec.rb +2 -2
  241. data/spec/models/revert_volume_group4_xx_response_spec.rb +2 -2
  242. data/spec/models/update_iscsi_client_by_id202_response_spec.rb +2 -2
  243. data/spec/models/update_iscsi_client_by_id4_xx_response_spec.rb +2 -2
  244. data/spec/models/update_volume_disk_by_id202_response_spec.rb +2 -2
  245. data/spec/models/update_volume_disk_by_id4_xx_response_spec.rb +2 -2
  246. data/spec/models/update_volume_group_by_id202_response_spec.rb +2 -2
  247. data/spec/models/update_volume_group_by_id4_xx_response_spec.rb +2 -2
  248. data/spec/models/volumes_v40_config_associate_category_api_response_spec.rb +2 -2
  249. data/spec/models/volumes_v40_config_attach_iscsi_client_api_response_spec.rb +2 -2
  250. data/spec/models/volumes_v40_config_attach_nvmf_client_api_response_spec.rb +2 -2
  251. data/spec/models/volumes_v40_config_attach_vm_api_response_spec.rb +2 -2
  252. data/spec/models/volumes_v40_config_attachment_type_spec.rb +2 -2
  253. data/spec/models/volumes_v40_config_authentication_type_spec.rb +2 -2
  254. data/spec/models/volumes_v40_config_category_details_spec.rb +2 -2
  255. data/spec/models/volumes_v40_config_category_entity_references_spec.rb +2 -2
  256. data/spec/models/volumes_v40_config_cluster_spec.rb +2 -2
  257. data/spec/models/volumes_v40_config_create_volume_disk_api_response_spec.rb +2 -2
  258. data/spec/models/volumes_v40_config_create_volume_group_api_response_spec.rb +2 -2
  259. data/spec/models/volumes_v40_config_delete_volume_disk_api_response_spec.rb +2 -2
  260. data/spec/models/volumes_v40_config_delete_volume_group_api_response_spec.rb +2 -2
  261. data/spec/models/volumes_v40_config_detach_iscsi_client_api_response_spec.rb +2 -2
  262. data/spec/models/volumes_v40_config_detach_nvmf_client_api_response_spec.rb +2 -2
  263. data/spec/models/volumes_v40_config_detach_vm_api_response_spec.rb +2 -2
  264. data/spec/models/volumes_v40_config_disassociate_category_api_response_spec.rb +2 -2
  265. data/spec/models/volumes_v40_config_disk_storage_features_spec.rb +2 -2
  266. data/spec/models/volumes_v40_config_flash_mode_spec.rb +2 -2
  267. data/spec/models/volumes_v40_config_get_iscsi_client_api_response_data_spec.rb +1 -1
  268. data/spec/models/volumes_v40_config_get_iscsi_client_api_response_spec.rb +2 -2
  269. data/spec/models/volumes_v40_config_get_volume_disk_api_response_data_spec.rb +1 -1
  270. data/spec/models/volumes_v40_config_get_volume_disk_api_response_spec.rb +2 -2
  271. data/spec/models/volumes_v40_config_get_volume_group_api_response_data_spec.rb +1 -1
  272. data/spec/models/volumes_v40_config_get_volume_group_api_response_spec.rb +2 -2
  273. data/spec/models/volumes_v40_config_get_volume_group_metadata_api_response_data_spec.rb +1 -1
  274. data/spec/models/volumes_v40_config_get_volume_group_metadata_api_response_spec.rb +2 -2
  275. data/spec/models/volumes_v40_config_iscsi_client_attachment_spec.rb +2 -2
  276. data/spec/models/volumes_v40_config_iscsi_client_spec.rb +2 -2
  277. data/spec/models/volumes_v40_config_iscsi_features_spec.rb +2 -2
  278. data/spec/models/volumes_v40_config_list_category_associations_api_response_data_spec.rb +1 -1
  279. data/spec/models/volumes_v40_config_list_category_associations_api_response_spec.rb +2 -2
  280. data/spec/models/volumes_v40_config_list_external_iscsi_attachments_api_response_data_spec.rb +1 -1
  281. data/spec/models/volumes_v40_config_list_external_iscsi_attachments_api_response_spec.rb +2 -2
  282. data/spec/models/volumes_v40_config_list_iscsi_clients_api_response_data_spec.rb +1 -1
  283. data/spec/models/volumes_v40_config_list_iscsi_clients_api_response_spec.rb +2 -2
  284. data/spec/models/volumes_v40_config_list_vm_attachments_api_response_data_spec.rb +1 -1
  285. data/spec/models/volumes_v40_config_list_vm_attachments_api_response_spec.rb +2 -2
  286. data/spec/models/volumes_v40_config_list_volume_disks_api_response_data_spec.rb +1 -1
  287. data/spec/models/volumes_v40_config_list_volume_disks_api_response_spec.rb +2 -2
  288. data/spec/models/volumes_v40_config_list_volume_groups_api_response_data_spec.rb +1 -1
  289. data/spec/models/volumes_v40_config_list_volume_groups_api_response_spec.rb +2 -2
  290. data/spec/models/volumes_v40_config_migrate_volume_group_api_response_spec.rb +2 -2
  291. data/spec/models/volumes_v40_config_nvmf_client_attachment_spec.rb +2 -2
  292. data/spec/models/volumes_v40_config_nvmf_client_spec.rb +2 -2
  293. data/spec/models/volumes_v40_config_pause_volume_group_synchronous_replication_api_response_spec.rb +2 -2
  294. data/spec/models/volumes_v40_config_protocol_spec.rb +2 -2
  295. data/spec/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_spec.rb +2 -2
  296. data/spec/models/volumes_v40_config_revert_spec_spec.rb +2 -2
  297. data/spec/models/volumes_v40_config_revert_volume_group_api_response_spec.rb +2 -2
  298. data/spec/models/volumes_v40_config_sharing_status_spec.rb +2 -2
  299. data/spec/models/volumes_v40_config_storage_features_spec.rb +2 -2
  300. data/spec/models/volumes_v40_config_target_param_spec.rb +2 -2
  301. data/spec/models/volumes_v40_config_update_iscsi_client_api_response_data_spec.rb +1 -1
  302. data/spec/models/volumes_v40_config_update_iscsi_client_api_response_spec.rb +2 -2
  303. data/spec/models/volumes_v40_config_update_iscsi_client_by_id_api_response_spec.rb +2 -2
  304. data/spec/models/volumes_v40_config_update_volume_disk_api_response_spec.rb +2 -2
  305. data/spec/models/volumes_v40_config_update_volume_disk_by_id_api_response_spec.rb +2 -2
  306. data/spec/models/volumes_v40_config_update_volume_group_api_response_spec.rb +2 -2
  307. data/spec/models/volumes_v40_config_update_volume_group_by_id_api_response_spec.rb +2 -2
  308. data/spec/models/volumes_v40_config_update_volume_group_metadata_api_response_spec.rb +2 -2
  309. data/spec/models/volumes_v40_config_update_volume_group_metadata_info_api_response_spec.rb +2 -2
  310. data/spec/models/volumes_v40_config_usage_type_spec.rb +2 -2
  311. data/spec/models/volumes_v40_config_vm_attachment_spec.rb +2 -2
  312. data/spec/models/volumes_v40_config_volume_disk_spec.rb +2 -2
  313. data/spec/models/volumes_v40_config_volume_group_attachment_site_spec.rb +2 -2
  314. data/spec/models/volumes_v40_config_volume_group_metadata_spec.rb +2 -2
  315. data/spec/models/volumes_v40_config_volume_group_spec.rb +2 -2
  316. data/spec/models/volumes_v40_error_app_message_spec.rb +2 -2
  317. data/spec/models/volumes_v40_error_error_response_error_spec.rb +1 -1
  318. data/spec/models/volumes_v40_error_error_response_spec.rb +2 -2
  319. data/spec/models/volumes_v40_error_message_severity_spec.rb +2 -2
  320. data/spec/models/volumes_v40_error_schema_validation_error_message_spec.rb +2 -2
  321. data/spec/models/volumes_v40_error_schema_validation_error_spec.rb +2 -2
  322. data/spec/models/volumes_v40_stats_get_volume_disk_stats_api_response_data_spec.rb +1 -1
  323. data/spec/models/volumes_v40_stats_get_volume_disk_stats_api_response_spec.rb +2 -2
  324. data/spec/models/volumes_v40_stats_get_volume_group_stats_api_response_data_spec.rb +1 -1
  325. data/spec/models/volumes_v40_stats_get_volume_group_stats_api_response_spec.rb +2 -2
  326. data/spec/models/volumes_v40_stats_time_value_pair_spec.rb +2 -2
  327. data/spec/models/volumes_v40_stats_volume_disk_stats_spec.rb +2 -2
  328. data/spec/models/volumes_v40_stats_volume_group_stats_spec.rb +2 -2
  329. data/spec/spec_helper.rb +1 -1
  330. metadata +10 -6
  331. data/docs/VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData.md +0 -47
  332. data/lib/nutanix_volumes/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_data.rb +0 -104
  333. data/spec/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_data_spec.rb +0 -32
  334. 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.0
9
+ Generator version: 7.17.0
10
10
 
11
11
  =end
12
12
 
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module NutanixVolumes
17
17
  # REST response for all response codes in API path /volumes/v4.0/config/volume-groups/{extId}/$actions/attach-vm Post operation
18
- class VolumesV40ConfigAttachVmApiResponse
18
+ class VolumesV40ConfigAttachVmApiResponse < 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
- attribute_map.values
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 (!self.class.attribute_map.key?(k.to_sym))
60
- fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigAttachVmApiResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
+ if (!acceptable_attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigAttachVmApiResponse`. 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.0
9
+ Generator version: 7.17.0
10
10
 
11
11
  =end
12
12
 
@@ -18,11 +18,11 @@ module NutanixVolumes
18
18
  NONE = "NONE".freeze
19
19
  DIRECT = "DIRECT".freeze
20
20
  EXTERNAL = "EXTERNAL".freeze
21
- _UNKNOWN = "$UNKNOWN".freeze
22
- _REDACTED = "$REDACTED".freeze
21
+ UNKNOWN = "$UNKNOWN".freeze
22
+ REDACTED = "$REDACTED".freeze
23
23
 
24
24
  def self.all_vars
25
- @all_vars ||= [NONE, DIRECT, EXTERNAL, _UNKNOWN, _REDACTED].freeze
25
+ @all_vars ||= [NONE, DIRECT, EXTERNAL, UNKNOWN, REDACTED].freeze
26
26
  end
27
27
 
28
28
  # Builds the enum from string
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: 7.17.0
10
10
 
11
11
  =end
12
12
 
@@ -17,11 +17,11 @@ module NutanixVolumes
17
17
  class VolumesV40ConfigAuthenticationType
18
18
  CHAP = "CHAP".freeze
19
19
  NONE = "NONE".freeze
20
- _UNKNOWN = "$UNKNOWN".freeze
21
- _REDACTED = "$REDACTED".freeze
20
+ UNKNOWN = "$UNKNOWN".freeze
21
+ REDACTED = "$REDACTED".freeze
22
22
 
23
23
  def self.all_vars
24
- @all_vars ||= [CHAP, NONE, _UNKNOWN, _REDACTED].freeze
24
+ @all_vars ||= [CHAP, NONE, UNKNOWN, REDACTED].freeze
25
25
  end
26
26
 
27
27
  # Builds the enum from string
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
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 existing category detail associated with the Volume Group.
18
- class VolumesV40ConfigCategoryDetails
18
+ class VolumesV40ConfigCategoryDetails < ApiModelBase
19
19
  # A globally unique identifier of an instance that is suitable for external consumption.
20
20
  attr_accessor :ext_id
21
21
 
@@ -59,9 +59,14 @@ module NutanixVolumes
59
59
  }
60
60
  end
61
61
 
62
+ # Returns attribute mapping this model knows about
63
+ def self.acceptable_attribute_map
64
+ attribute_map
65
+ end
66
+
62
67
  # Returns all the JSON keys this model knows about
63
68
  def self.acceptable_attributes
64
- attribute_map.values
69
+ acceptable_attribute_map.values
65
70
  end
66
71
 
67
72
  # Attribute type mapping.
@@ -95,9 +100,10 @@ module NutanixVolumes
95
100
  end
96
101
 
97
102
  # check to see if the attribute exists and convert string to symbol for hash key
103
+ acceptable_attribute_map = self.class.acceptable_attribute_map
98
104
  attributes = attributes.each_with_object({}) { |(k, v), h|
99
- if (!self.class.attribute_map.key?(k.to_sym))
100
- fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigCategoryDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
105
+ if (!acceptable_attribute_map.key?(k.to_sym))
106
+ fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigCategoryDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
101
107
  end
102
108
  h[k.to_sym] = v
103
109
  }
@@ -250,61 +256,6 @@ module NutanixVolumes
250
256
  new(transformed_hash)
251
257
  end
252
258
 
253
- # Deserializes the data based on type
254
- # @param string type Data type
255
- # @param string value Value to be deserialized
256
- # @return [Object] Deserialized data
257
- def self._deserialize(type, value)
258
- case type.to_sym
259
- when :Time
260
- Time.parse(value)
261
- when :Date
262
- Date.parse(value)
263
- when :String
264
- value.to_s
265
- when :Integer
266
- value.to_i
267
- when :Float
268
- value.to_f
269
- when :Boolean
270
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
271
- true
272
- else
273
- false
274
- end
275
- when :Object
276
- # generic object (usually a Hash), return directly
277
- value
278
- when /\AArray<(?<inner_type>.+)>\z/
279
- inner_type = Regexp.last_match[:inner_type]
280
- value.map { |v| _deserialize(inner_type, v) }
281
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
282
- k_type = Regexp.last_match[:k_type]
283
- v_type = Regexp.last_match[:v_type]
284
- {}.tap do |hash|
285
- value.each do |k, v|
286
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
287
- end
288
- end
289
- else # model
290
- # models (e.g. Pet) or oneOf
291
- klass = NutanixVolumes.const_get(type)
292
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
293
- end
294
- end
295
-
296
- # Returns the string representation of the object
297
- # @return [String] String presentation of the object
298
- def to_s
299
- to_hash.to_s
300
- end
301
-
302
- # to_body is an alias to to_hash (backward compatibility)
303
- # @return [Hash] Returns the object in the form of hash
304
- def to_body
305
- to_hash
306
- end
307
-
308
259
  # Returns the object in the form of hash
309
260
  # @return [Hash] Returns the object in the form of hash
310
261
  def to_hash
@@ -321,24 +272,6 @@ module NutanixVolumes
321
272
  hash
322
273
  end
323
274
 
324
- # Outputs non-array value in the form of hash
325
- # For object, use to_hash. Otherwise, just return the value
326
- # @param [Object] value Any valid value
327
- # @return [Hash] Returns the value in the form of hash
328
- def _to_hash(value)
329
- if value.is_a?(Array)
330
- value.compact.map { |v| _to_hash(v) }
331
- elsif value.is_a?(Hash)
332
- {}.tap do |hash|
333
- value.each { |k, v| hash[k] = _to_hash(v) }
334
- end
335
- elsif value.respond_to? :to_hash
336
- value.to_hash
337
- else
338
- value
339
- end
340
- end
341
-
342
275
  end
343
276
 
344
277
  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.0
9
+ Generator version: 7.17.0
10
10
 
11
11
  =end
12
12
 
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module NutanixVolumes
17
17
  # The list of categories to be associated/disassociated with the Volume Group. This is a mandatory field.
18
- class VolumesV40ConfigCategoryEntityReferences
18
+ class VolumesV40ConfigCategoryEntityReferences < ApiModelBase
19
19
  # The category to be associated/disassociated with the Volume Group. This is a mandatory field.
20
20
  attr_accessor :categories
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
- attribute_map.values
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 (!self.class.attribute_map.key?(k.to_sym))
57
- fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigCategoryEntityReferences`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ if (!acceptable_attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigCategoryEntityReferences`. 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
  }
@@ -152,61 +158,6 @@ module NutanixVolumes
152
158
  new(transformed_hash)
153
159
  end
154
160
 
155
- # Deserializes the data based on type
156
- # @param string type Data type
157
- # @param string value Value to be deserialized
158
- # @return [Object] Deserialized data
159
- def self._deserialize(type, value)
160
- case type.to_sym
161
- when :Time
162
- Time.parse(value)
163
- when :Date
164
- Date.parse(value)
165
- when :String
166
- value.to_s
167
- when :Integer
168
- value.to_i
169
- when :Float
170
- value.to_f
171
- when :Boolean
172
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
173
- true
174
- else
175
- false
176
- end
177
- when :Object
178
- # generic object (usually a Hash), return directly
179
- value
180
- when /\AArray<(?<inner_type>.+)>\z/
181
- inner_type = Regexp.last_match[:inner_type]
182
- value.map { |v| _deserialize(inner_type, v) }
183
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
184
- k_type = Regexp.last_match[:k_type]
185
- v_type = Regexp.last_match[:v_type]
186
- {}.tap do |hash|
187
- value.each do |k, v|
188
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
189
- end
190
- end
191
- else # model
192
- # models (e.g. Pet) or oneOf
193
- klass = NutanixVolumes.const_get(type)
194
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
195
- end
196
- end
197
-
198
- # Returns the string representation of the object
199
- # @return [String] String presentation of the object
200
- def to_s
201
- to_hash.to_s
202
- end
203
-
204
- # to_body is an alias to to_hash (backward compatibility)
205
- # @return [Hash] Returns the object in the form of hash
206
- def to_body
207
- to_hash
208
- end
209
-
210
161
  # Returns the object in the form of hash
211
162
  # @return [Hash] Returns the object in the form of hash
212
163
  def to_hash
@@ -223,24 +174,6 @@ module NutanixVolumes
223
174
  hash
224
175
  end
225
176
 
226
- # Outputs non-array value in the form of hash
227
- # For object, use to_hash. Otherwise, just return the value
228
- # @param [Object] value Any valid value
229
- # @return [Hash] Returns the value in the form of hash
230
- def _to_hash(value)
231
- if value.is_a?(Array)
232
- value.compact.map { |v| _to_hash(v) }
233
- elsif value.is_a?(Hash)
234
- {}.tap do |hash|
235
- value.each { |k, v| hash[k] = _to_hash(v) }
236
- end
237
- elsif value.respond_to? :to_hash
238
- value.to_hash
239
- else
240
- value
241
- end
242
- end
243
-
244
177
  end
245
178
 
246
179
  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.0
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 VolumesV40ConfigCluster
17
+ class VolumesV40ConfigCluster < ApiModelBase
18
18
  # Cluster Uuid.
19
19
  attr_accessor :cluster_ext_id
20
20
 
@@ -29,9 +29,14 @@ module NutanixVolumes
29
29
  }
30
30
  end
31
31
 
32
+ # Returns attribute mapping this model knows about
33
+ def self.acceptable_attribute_map
34
+ attribute_map
35
+ end
36
+
32
37
  # Returns all the JSON keys this model knows about
33
38
  def self.acceptable_attributes
34
- attribute_map.values
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 (!self.class.attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigCluster`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ if (!acceptable_attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixVolumes::VolumesV40ConfigCluster`. 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
  }
@@ -171,61 +177,6 @@ module NutanixVolumes
171
177
  new(transformed_hash)
172
178
  end
173
179
 
174
- # Deserializes the data based on type
175
- # @param string type Data type
176
- # @param string value Value to be deserialized
177
- # @return [Object] Deserialized data
178
- def self._deserialize(type, value)
179
- case type.to_sym
180
- when :Time
181
- Time.parse(value)
182
- when :Date
183
- Date.parse(value)
184
- when :String
185
- value.to_s
186
- when :Integer
187
- value.to_i
188
- when :Float
189
- value.to_f
190
- when :Boolean
191
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
192
- true
193
- else
194
- false
195
- end
196
- when :Object
197
- # generic object (usually a Hash), return directly
198
- value
199
- when /\AArray<(?<inner_type>.+)>\z/
200
- inner_type = Regexp.last_match[:inner_type]
201
- value.map { |v| _deserialize(inner_type, v) }
202
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
203
- k_type = Regexp.last_match[:k_type]
204
- v_type = Regexp.last_match[:v_type]
205
- {}.tap do |hash|
206
- value.each do |k, v|
207
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
208
- end
209
- end
210
- else # model
211
- # models (e.g. Pet) or oneOf
212
- klass = NutanixVolumes.const_get(type)
213
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
214
- end
215
- end
216
-
217
- # Returns the string representation of the object
218
- # @return [String] String presentation of the object
219
- def to_s
220
- to_hash.to_s
221
- end
222
-
223
- # to_body is an alias to to_hash (backward compatibility)
224
- # @return [Hash] Returns the object in the form of hash
225
- def to_body
226
- to_hash
227
- end
228
-
229
180
  # Returns the object in the form of hash
230
181
  # @return [Hash] Returns the object in the form of hash
231
182
  def to_hash
@@ -242,24 +193,6 @@ module NutanixVolumes
242
193
  hash
243
194
  end
244
195
 
245
- # Outputs non-array value in the form of hash
246
- # For object, use to_hash. Otherwise, just return the value
247
- # @param [Object] value Any valid value
248
- # @return [Hash] Returns the value in the form of hash
249
- def _to_hash(value)
250
- if value.is_a?(Array)
251
- value.compact.map { |v| _to_hash(v) }
252
- elsif value.is_a?(Hash)
253
- {}.tap do |hash|
254
- value.each { |k, v| hash[k] = _to_hash(v) }
255
- end
256
- elsif value.respond_to? :to_hash
257
- value.to_hash
258
- else
259
- value
260
- end
261
- end
262
-
263
196
  end
264
197
 
265
198
  end