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