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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc6b3cf05ac5531a3f6dda7171e1e30d45b5a48de9f63cb0413a2640ca8da825
4
- data.tar.gz: a2d456e27dc306e562527bd8c18c089b5688be0fc45611be253f94fc744fab83
3
+ metadata.gz: da1022e620677c242631d74f4ed9b9f80423dc8610245dd70305872c9c218f8d
4
+ data.tar.gz: 5057340a056c3be1a1ebe81bdbce30354e826a52e4fd81f91372e50bea89b3ba
5
5
  SHA512:
6
- metadata.gz: ee172b24d3dd5e43fd0a17bb4a4df3ff9da7fb86b331b2792a2aea561ad4fe77f9c08fd64b41a3802dfb93fc0e65e25842139dd9e23f0c7c610abb5346626006
7
- data.tar.gz: 0fe8c32e064aefbe9b06cb86cdd064d2f13e6b409174e1a86e2d7a2eb6acd3b29d70703ce90f3ecc8856810c563b7b40980d043fd3788621e7e1b92d10298ad4
6
+ metadata.gz: 5197cefb8d14ac1affdc472db0528d725ad29c1c7830bc4a54f76f32692b0f26749a6e2bde82b421527b54484b830b7a783a2420cb6a855625ab0ab7a0ac7e15
7
+ data.tar.gz: 9658673e10aba30839c72cff64638b876094df6f93cff18796d8489fc6d049dc5accb723c9933e46c6530ebe3df713afa892a9d9bfd7c4be3268f6739b21f69f
data/CHANGELOG.md CHANGED
@@ -4,8 +4,20 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.2.0] - 2025-11-24
8
+ ### Added
9
+ - Add License ([#7](https://github.com/ManageIQ/nutanix_volumes-sdk-ruby/pull/7))
10
+ - Add GitHub Action to autogenerate from the openapi spec ([#10](https://github.com/ManageIQ/nutanix_volumes-sdk-ruby/pull/10))
11
+ - Add ability to one off ci jobs. ([#12](https://github.com/ManageIQ/nutanix_volumes-sdk-ruby/pull/12))
12
+
13
+ ### Updated
14
+ - Update actions/checkout action to v5 ([#9](https://github.com/ManageIQ/nutanix_volumes-sdk-ruby/pull/9))
15
+ - Update nutanix_volumes gem ([#11](https://github.com/ManageIQ/nutanix_volumes-sdk-ruby/pull/11))
16
+ - Update openapi generator to `v7.17.0` to use `api_model_base` ([#13](https://github.com/ManageIQ/nutanix_volumes-sdk-ruby/pull/13))
17
+
7
18
  ## [0.1.0] - 2025-06-11
8
19
  ### Added
9
20
  - Initial release
10
21
 
22
+ [0.2.0]: https://github.com/ManageIQ/nutanix_volumes-sdk-ruby/compare/v0.1.0...v0.2.0
11
23
  [0.1.0]: https://github.com/ManageIQ/nutanix_volumes-sdk-ruby/tree/v0.1.0
data/LICENSE.txt ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/README.md CHANGED
@@ -8,7 +8,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
8
8
 
9
9
  - API version: 4.0
10
10
  - Package version: 1.0.0
11
- - Generator version: 7.9.0
11
+ - Generator version: 7.17.0
12
12
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
13
 
14
14
  ## Installation
@@ -237,7 +237,6 @@ Class | Method | HTTP request | Description
237
237
  - [NutanixVolumes::VolumesV40ConfigPauseVolumeGroupSynchronousReplicationApiResponse](docs/VolumesV40ConfigPauseVolumeGroupSynchronousReplicationApiResponse.md)
238
238
  - [NutanixVolumes::VolumesV40ConfigProtocol](docs/VolumesV40ConfigProtocol.md)
239
239
  - [NutanixVolumes::VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponse](docs/VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponse.md)
240
- - [NutanixVolumes::VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData](docs/VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData.md)
241
240
  - [NutanixVolumes::VolumesV40ConfigRevertSpec](docs/VolumesV40ConfigRevertSpec.md)
242
241
  - [NutanixVolumes::VolumesV40ConfigRevertVolumeGroupApiResponse](docs/VolumesV40ConfigRevertVolumeGroupApiResponse.md)
243
242
  - [NutanixVolumes::VolumesV40ConfigSharingStatus](docs/VolumesV40ConfigSharingStatus.md)
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "nutanix_volumes"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
@@ -0,0 +1,26 @@
1
+ #!/bin/bash
2
+
3
+ if [ -z "$INPUT_SPEC_VERSION" ]; then
4
+ echo "ERROR: INPUT_SPEC_VERSION must be set"
5
+ exit 1
6
+ fi
7
+
8
+ if [ -z "$OPENAPI_GENERATOR_JAR" ]; then
9
+ # Detect the latest version of the openapi-generator-cli package
10
+ version=`wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/maven-metadata.xml -O - 2>/dev/null | xq -x "//metadata/versioning/latest"`
11
+ OPENAPI_GENERATOR_JAR=openapi-generator-cli-$version.jar
12
+
13
+ # Download the openapi-generator-cli jar if we don't already have it locally
14
+ if [ ! -f "$OPENAPI_GENERATOR_JAR" ]; then
15
+ echo "Downloading '$OPENAPI_GENERATOR_JAR'..."
16
+ wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/$version/$OPENAPI_GENERATOR_JAR
17
+ fi
18
+ fi
19
+
20
+ # Clear out any existing files in paths that are autogenerated to prevent deleted files
21
+ # from remaining after running the generate
22
+ rm -rf ./docs ./lib ./spec
23
+
24
+ # Generate the gem from the current openapi-spec
25
+ input_spec=https://developers.nutanix.com/api/v1/namespaces/volumes/versions/$INPUT_SPEC_VERSION/yaml
26
+ java -jar $OPENAPI_GENERATOR_JAR generate --input-spec $input_spec --skip-validate-spec --generator-name ruby --config .openapi-config.json
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **metadata** | [**CommonV10ResponseApiResponseMetadata**](CommonV10ResponseApiResponseMetadata.md) | | [optional] |
8
- | **data** | [**VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData**](VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData.md) | | [optional] |
8
+ | **data** | [**VolumesV40ErrorErrorResponse**](VolumesV40ErrorErrorResponse.md) | | [optional] |
9
9
 
10
10
  ## Example
11
11
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **metadata** | [**CommonV10ResponseApiResponseMetadata**](CommonV10ResponseApiResponseMetadata.md) | | [optional] |
8
- | **data** | [**VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData**](VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData.md) | | [optional] |
8
+ | **data** | [**VolumesV40ErrorErrorResponse**](VolumesV40ErrorErrorResponse.md) | | [optional] |
9
9
 
10
10
  ## Example
11
11
 
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **metadata** | [**CommonV10ResponseApiResponseMetadata**](CommonV10ResponseApiResponseMetadata.md) | | [optional] |
8
- | **data** | [**VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData**](VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData.md) | | [optional] |
8
+ | **data** | [**VolumesV40ErrorErrorResponse**](VolumesV40ErrorErrorResponse.md) | | [optional] |
9
9
 
10
10
  ## Example
11
11
 
@@ -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
 
@@ -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
 
@@ -49,7 +49,8 @@ module NutanixVolumes
49
49
  # the data deserialized from response body (may be a Tempfile or nil), response status code and response headers.
50
50
  def call_api(http_method, path, opts = {})
51
51
  request = build_request(http_method, path, opts)
52
- tempfile = download_file(request) if opts[:return_type] == 'File'
52
+ tempfile = nil
53
+ (download_file(request) { tempfile = _1 }) if opts[:return_type] == 'File'
53
54
  response = request.run
54
55
 
55
56
  if @config.debugging
@@ -188,19 +189,17 @@ module NutanixVolumes
188
189
  chunk.force_encoding(encoding)
189
190
  tempfile.write(chunk)
190
191
  end
191
- # run the request to ensure the tempfile is created successfully before returning it
192
- request.run
193
- if tempfile
192
+ request.on_complete do
193
+ if !tempfile
194
+ fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
195
+ end
194
196
  tempfile.close
195
197
  @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
196
198
  "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
197
199
  "will be deleted automatically with GC. It's also recommended to delete the temp file "\
198
200
  "explicitly with `tempfile.delete`"
199
- else
200
- fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
201
+ yield tempfile if block_given?
201
202
  end
202
-
203
- tempfile
204
203
  end
205
204
 
206
205
  # Check if the given MIME is a JSON MIME.
@@ -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
 
@@ -0,0 +1,88 @@
1
+ =begin
2
+ #Nutanix Volumes APIs
3
+
4
+ #Configure volumes.
5
+
6
+ The version of the OpenAPI document: 4.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.17.0
10
+
11
+ =end
12
+
13
+ module NutanixVolumes
14
+ class ApiModelBase
15
+ # Deserializes the data based on type
16
+ # @param string type Data type
17
+ # @param string value Value to be deserialized
18
+ # @return [Object] Deserialized data
19
+ def self._deserialize(type, value)
20
+ case type.to_sym
21
+ when :Time
22
+ Time.parse(value)
23
+ when :Date
24
+ Date.parse(value)
25
+ when :String
26
+ value.to_s
27
+ when :Integer
28
+ value.to_i
29
+ when :Float
30
+ value.to_f
31
+ when :Boolean
32
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
33
+ true
34
+ else
35
+ false
36
+ end
37
+ when :Object
38
+ # generic object (usually a Hash), return directly
39
+ value
40
+ when /\AArray<(?<inner_type>.+)>\z/
41
+ inner_type = Regexp.last_match[:inner_type]
42
+ value.map { |v| _deserialize(inner_type, v) }
43
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
44
+ k_type = Regexp.last_match[:k_type]
45
+ v_type = Regexp.last_match[:v_type]
46
+ {}.tap do |hash|
47
+ value.each do |k, v|
48
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
49
+ end
50
+ end
51
+ else # model
52
+ # models (e.g. Pet) or oneOf
53
+ klass = NutanixVolumes.const_get(type)
54
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
55
+ end
56
+ end
57
+
58
+ # Returns the string representation of the object
59
+ # @return [String] String presentation of the object
60
+ def to_s
61
+ to_hash.to_s
62
+ end
63
+
64
+ # to_body is an alias to to_hash (backward compatibility)
65
+ # @return [Hash] Returns the object in the form of hash
66
+ def to_body
67
+ to_hash
68
+ end
69
+
70
+ # Outputs non-array value in the form of hash
71
+ # For object, use to_hash. Otherwise, just return the value
72
+ # @param [Object] value Any valid value
73
+ # @return [Hash] Returns the value in the form of hash
74
+ def _to_hash(value)
75
+ if value.is_a?(Array)
76
+ value.compact.map { |v| _to_hash(v) }
77
+ elsif value.is_a?(Hash)
78
+ {}.tap do |hash|
79
+ value.each { |k, v| hash[k] = _to_hash(v) }
80
+ end
81
+ elsif value.respond_to? :to_hash
82
+ value.to_hash
83
+ else
84
+ value
85
+ end
86
+ end
87
+ end
88
+ 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
  # REST response for all response codes in API path /volumes/v4.0/config/volume-groups/{extId}/$actions/associate-category Post operation
18
- class AssociateCategory202Response
18
+ class AssociateCategory202Response < 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::AssociateCategory202Response`. 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::AssociateCategory202Response`. 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