nutanix_volumes 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/LICENSE.txt +202 -0
  4. data/README.md +5 -6
  5. data/bin/console +15 -0
  6. data/bin/openapi-generate +30 -0
  7. data/bin/openapi-generate-ruby-post-process +6 -0
  8. data/docs/VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponse.md +1 -1
  9. data/docs/VolumesV40ConfigUpdateVolumeGroupMetadataApiResponse.md +1 -1
  10. data/docs/VolumesV40ConfigUpdateVolumeGroupMetadataInfoApiResponse.md +1 -1
  11. data/lib/nutanix_volumes/api/iscsi_clients_api.rb +1 -1
  12. data/lib/nutanix_volumes/api/volume_groups_api.rb +1 -1
  13. data/lib/nutanix_volumes/api_client.rb +8 -9
  14. data/lib/nutanix_volumes/api_error.rb +1 -1
  15. data/lib/nutanix_volumes/api_model_base.rb +88 -0
  16. data/lib/nutanix_volumes/configuration.rb +1 -1
  17. data/lib/nutanix_volumes/models/associate_category202_response.rb +11 -78
  18. data/lib/nutanix_volumes/models/associate_category4_xx_response.rb +11 -78
  19. data/lib/nutanix_volumes/models/attach_iscsi_client202_response.rb +11 -78
  20. data/lib/nutanix_volumes/models/attach_iscsi_client4_xx_response.rb +11 -78
  21. data/lib/nutanix_volumes/models/attach_vm202_response.rb +11 -78
  22. data/lib/nutanix_volumes/models/attach_vm4_xx_response.rb +11 -78
  23. data/lib/nutanix_volumes/models/common_v10_config_entity_reference.rb +11 -78
  24. data/lib/nutanix_volumes/models/common_v10_config_entity_type.rb +4 -4
  25. data/lib/nutanix_volumes/models/common_v10_config_flag.rb +13 -80
  26. data/lib/nutanix_volumes/models/common_v10_config_fqdn.rb +11 -78
  27. data/lib/nutanix_volumes/models/common_v10_config_ip_address_or_fqdn.rb +11 -78
  28. data/lib/nutanix_volumes/models/common_v10_config_ipv4_address.rb +11 -78
  29. data/lib/nutanix_volumes/models/common_v10_config_ipv6_address.rb +11 -78
  30. data/lib/nutanix_volumes/models/common_v10_config_kv_pair.rb +13 -80
  31. data/lib/nutanix_volumes/models/common_v10_config_kv_pair_value.rb +3 -4
  32. data/lib/nutanix_volumes/models/common_v10_config_map_of_string_wrapper.rb +11 -78
  33. data/lib/nutanix_volumes/models/common_v10_config_message.rb +11 -78
  34. data/lib/nutanix_volumes/models/common_v10_config_message_severity.rb +4 -4
  35. data/lib/nutanix_volumes/models/common_v10_config_metadata.rb +11 -78
  36. data/lib/nutanix_volumes/models/common_v10_config_tenant_aware_model.rb +11 -78
  37. data/lib/nutanix_volumes/models/common_v10_response_api_link.rb +11 -78
  38. data/lib/nutanix_volumes/models/common_v10_response_api_response_metadata.rb +11 -78
  39. data/lib/nutanix_volumes/models/common_v10_response_externalizable_abstract_model.rb +11 -78
  40. data/lib/nutanix_volumes/models/common_v10_stats_down_sampling_operator.rb +4 -4
  41. data/lib/nutanix_volumes/models/create_volume_disk202_response.rb +11 -78
  42. data/lib/nutanix_volumes/models/create_volume_disk4_xx_response.rb +11 -78
  43. data/lib/nutanix_volumes/models/create_volume_group202_response.rb +11 -78
  44. data/lib/nutanix_volumes/models/create_volume_group4_xx_response.rb +11 -78
  45. data/lib/nutanix_volumes/models/delete_volume_disk_by_id202_response.rb +11 -78
  46. data/lib/nutanix_volumes/models/delete_volume_disk_by_id4_xx_response.rb +11 -78
  47. data/lib/nutanix_volumes/models/delete_volume_group_by_id202_response.rb +11 -78
  48. data/lib/nutanix_volumes/models/delete_volume_group_by_id4_xx_response.rb +11 -78
  49. data/lib/nutanix_volumes/models/detach_iscsi_client202_response.rb +11 -78
  50. data/lib/nutanix_volumes/models/detach_iscsi_client4_xx_response.rb +11 -78
  51. data/lib/nutanix_volumes/models/detach_vm202_response.rb +11 -78
  52. data/lib/nutanix_volumes/models/detach_vm4_xx_response.rb +11 -78
  53. data/lib/nutanix_volumes/models/disassociate_category202_response.rb +11 -78
  54. data/lib/nutanix_volumes/models/disassociate_category4_xx_response.rb +11 -78
  55. data/lib/nutanix_volumes/models/get_iscsi_client_by_id200_response.rb +11 -78
  56. data/lib/nutanix_volumes/models/get_iscsi_client_by_id4_xx_response.rb +11 -78
  57. data/lib/nutanix_volumes/models/get_volume_disk_by_id200_response.rb +11 -78
  58. data/lib/nutanix_volumes/models/get_volume_disk_by_id4_xx_response.rb +11 -78
  59. data/lib/nutanix_volumes/models/get_volume_disk_stats200_response.rb +11 -78
  60. data/lib/nutanix_volumes/models/get_volume_disk_stats4_xx_response.rb +11 -78
  61. data/lib/nutanix_volumes/models/get_volume_group_by_id200_response.rb +11 -78
  62. data/lib/nutanix_volumes/models/get_volume_group_by_id4_xx_response.rb +11 -78
  63. data/lib/nutanix_volumes/models/get_volume_group_metadata_by_id200_response.rb +11 -78
  64. data/lib/nutanix_volumes/models/get_volume_group_metadata_by_id4_xx_response.rb +11 -78
  65. data/lib/nutanix_volumes/models/get_volume_group_stats200_response.rb +11 -78
  66. data/lib/nutanix_volumes/models/get_volume_group_stats4_xx_response.rb +11 -78
  67. data/lib/nutanix_volumes/models/list_category_associations_by_volume_group_id200_response.rb +11 -78
  68. data/lib/nutanix_volumes/models/list_category_associations_by_volume_group_id4_xx_response.rb +11 -78
  69. data/lib/nutanix_volumes/models/list_external_iscsi_attachments_by_volume_group_id200_response.rb +11 -78
  70. data/lib/nutanix_volumes/models/list_external_iscsi_attachments_by_volume_group_id4_xx_response.rb +11 -78
  71. data/lib/nutanix_volumes/models/list_iscsi_clients200_response.rb +11 -78
  72. data/lib/nutanix_volumes/models/list_iscsi_clients4_xx_response.rb +11 -78
  73. data/lib/nutanix_volumes/models/list_vm_attachments_by_volume_group_id200_response.rb +11 -78
  74. data/lib/nutanix_volumes/models/list_vm_attachments_by_volume_group_id4_xx_response.rb +11 -78
  75. data/lib/nutanix_volumes/models/list_volume_disks_by_volume_group_id200_response.rb +11 -78
  76. data/lib/nutanix_volumes/models/list_volume_disks_by_volume_group_id4_xx_response.rb +11 -78
  77. data/lib/nutanix_volumes/models/list_volume_groups200_response.rb +11 -78
  78. data/lib/nutanix_volumes/models/list_volume_groups4_xx_response.rb +11 -78
  79. data/lib/nutanix_volumes/models/prism_v40_config_task_reference.rb +11 -78
  80. data/lib/nutanix_volumes/models/revert_volume_group202_response.rb +11 -78
  81. data/lib/nutanix_volumes/models/revert_volume_group4_xx_response.rb +11 -78
  82. data/lib/nutanix_volumes/models/update_iscsi_client_by_id202_response.rb +11 -78
  83. data/lib/nutanix_volumes/models/update_iscsi_client_by_id4_xx_response.rb +11 -78
  84. data/lib/nutanix_volumes/models/update_volume_disk_by_id202_response.rb +11 -78
  85. data/lib/nutanix_volumes/models/update_volume_disk_by_id4_xx_response.rb +11 -78
  86. data/lib/nutanix_volumes/models/update_volume_group_by_id202_response.rb +11 -78
  87. data/lib/nutanix_volumes/models/update_volume_group_by_id4_xx_response.rb +11 -78
  88. data/lib/nutanix_volumes/models/volumes_v40_config_associate_category_api_response.rb +11 -78
  89. data/lib/nutanix_volumes/models/volumes_v40_config_attach_iscsi_client_api_response.rb +11 -78
  90. data/lib/nutanix_volumes/models/volumes_v40_config_attach_nvmf_client_api_response.rb +11 -78
  91. data/lib/nutanix_volumes/models/volumes_v40_config_attach_vm_api_response.rb +11 -78
  92. data/lib/nutanix_volumes/models/volumes_v40_config_attachment_type.rb +4 -4
  93. data/lib/nutanix_volumes/models/volumes_v40_config_authentication_type.rb +4 -4
  94. data/lib/nutanix_volumes/models/volumes_v40_config_category_details.rb +11 -78
  95. data/lib/nutanix_volumes/models/volumes_v40_config_category_entity_references.rb +11 -78
  96. data/lib/nutanix_volumes/models/volumes_v40_config_cluster.rb +11 -78
  97. data/lib/nutanix_volumes/models/volumes_v40_config_create_volume_disk_api_response.rb +11 -78
  98. data/lib/nutanix_volumes/models/volumes_v40_config_create_volume_group_api_response.rb +11 -78
  99. data/lib/nutanix_volumes/models/volumes_v40_config_delete_volume_disk_api_response.rb +11 -78
  100. data/lib/nutanix_volumes/models/volumes_v40_config_delete_volume_group_api_response.rb +11 -78
  101. data/lib/nutanix_volumes/models/volumes_v40_config_detach_iscsi_client_api_response.rb +11 -78
  102. data/lib/nutanix_volumes/models/volumes_v40_config_detach_nvmf_client_api_response.rb +11 -78
  103. data/lib/nutanix_volumes/models/volumes_v40_config_detach_vm_api_response.rb +11 -78
  104. data/lib/nutanix_volumes/models/volumes_v40_config_disassociate_category_api_response.rb +11 -78
  105. data/lib/nutanix_volumes/models/volumes_v40_config_disk_storage_features.rb +11 -78
  106. data/lib/nutanix_volumes/models/volumes_v40_config_flash_mode.rb +11 -78
  107. data/lib/nutanix_volumes/models/volumes_v40_config_get_iscsi_client_api_response.rb +11 -78
  108. data/lib/nutanix_volumes/models/volumes_v40_config_get_iscsi_client_api_response_data.rb +3 -4
  109. data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_disk_api_response.rb +11 -78
  110. data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_disk_api_response_data.rb +3 -4
  111. data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_api_response.rb +11 -78
  112. data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_api_response_data.rb +3 -4
  113. data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_metadata_api_response.rb +11 -78
  114. data/lib/nutanix_volumes/models/volumes_v40_config_get_volume_group_metadata_api_response_data.rb +3 -4
  115. data/lib/nutanix_volumes/models/volumes_v40_config_iscsi_client.rb +13 -80
  116. data/lib/nutanix_volumes/models/volumes_v40_config_iscsi_client_attachment.rb +11 -78
  117. data/lib/nutanix_volumes/models/volumes_v40_config_iscsi_features.rb +13 -80
  118. data/lib/nutanix_volumes/models/volumes_v40_config_list_category_associations_api_response.rb +11 -78
  119. data/lib/nutanix_volumes/models/volumes_v40_config_list_category_associations_api_response_data.rb +3 -4
  120. data/lib/nutanix_volumes/models/volumes_v40_config_list_external_iscsi_attachments_api_response.rb +11 -78
  121. data/lib/nutanix_volumes/models/volumes_v40_config_list_external_iscsi_attachments_api_response_data.rb +3 -4
  122. data/lib/nutanix_volumes/models/volumes_v40_config_list_iscsi_clients_api_response.rb +11 -78
  123. data/lib/nutanix_volumes/models/volumes_v40_config_list_iscsi_clients_api_response_data.rb +3 -4
  124. data/lib/nutanix_volumes/models/volumes_v40_config_list_vm_attachments_api_response.rb +11 -78
  125. data/lib/nutanix_volumes/models/volumes_v40_config_list_vm_attachments_api_response_data.rb +3 -4
  126. data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_disks_api_response.rb +11 -78
  127. data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_disks_api_response_data.rb +3 -4
  128. data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_groups_api_response.rb +11 -78
  129. data/lib/nutanix_volumes/models/volumes_v40_config_list_volume_groups_api_response_data.rb +3 -4
  130. data/lib/nutanix_volumes/models/volumes_v40_config_migrate_volume_group_api_response.rb +11 -78
  131. data/lib/nutanix_volumes/models/volumes_v40_config_nvmf_client.rb +11 -78
  132. data/lib/nutanix_volumes/models/volumes_v40_config_nvmf_client_attachment.rb +11 -78
  133. data/lib/nutanix_volumes/models/volumes_v40_config_pause_volume_group_synchronous_replication_api_response.rb +11 -78
  134. data/lib/nutanix_volumes/models/volumes_v40_config_protocol.rb +4 -4
  135. data/lib/nutanix_volumes/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response.rb +12 -79
  136. data/lib/nutanix_volumes/models/volumes_v40_config_revert_spec.rb +11 -78
  137. data/lib/nutanix_volumes/models/volumes_v40_config_revert_volume_group_api_response.rb +11 -78
  138. data/lib/nutanix_volumes/models/volumes_v40_config_sharing_status.rb +4 -4
  139. data/lib/nutanix_volumes/models/volumes_v40_config_storage_features.rb +11 -78
  140. data/lib/nutanix_volumes/models/volumes_v40_config_target_param.rb +11 -78
  141. data/lib/nutanix_volumes/models/volumes_v40_config_update_iscsi_client_api_response.rb +11 -78
  142. data/lib/nutanix_volumes/models/volumes_v40_config_update_iscsi_client_api_response_data.rb +3 -4
  143. data/lib/nutanix_volumes/models/volumes_v40_config_update_iscsi_client_by_id_api_response.rb +11 -78
  144. data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_disk_api_response.rb +11 -78
  145. data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_disk_by_id_api_response.rb +11 -78
  146. data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_api_response.rb +11 -78
  147. data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_by_id_api_response.rb +11 -78
  148. data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_metadata_api_response.rb +12 -79
  149. data/lib/nutanix_volumes/models/volumes_v40_config_update_volume_group_metadata_info_api_response.rb +12 -79
  150. data/lib/nutanix_volumes/models/volumes_v40_config_usage_type.rb +4 -4
  151. data/lib/nutanix_volumes/models/volumes_v40_config_vm_attachment.rb +11 -78
  152. data/lib/nutanix_volumes/models/volumes_v40_config_volume_disk.rb +11 -78
  153. data/lib/nutanix_volumes/models/volumes_v40_config_volume_group.rb +13 -80
  154. data/lib/nutanix_volumes/models/volumes_v40_config_volume_group_attachment_site.rb +4 -4
  155. data/lib/nutanix_volumes/models/volumes_v40_config_volume_group_metadata.rb +11 -78
  156. data/lib/nutanix_volumes/models/volumes_v40_error_app_message.rb +11 -78
  157. data/lib/nutanix_volumes/models/volumes_v40_error_error_response.rb +11 -78
  158. data/lib/nutanix_volumes/models/volumes_v40_error_error_response_error.rb +3 -4
  159. data/lib/nutanix_volumes/models/volumes_v40_error_message_severity.rb +4 -4
  160. data/lib/nutanix_volumes/models/volumes_v40_error_schema_validation_error.rb +11 -78
  161. data/lib/nutanix_volumes/models/volumes_v40_error_schema_validation_error_message.rb +11 -78
  162. data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_disk_stats_api_response.rb +11 -78
  163. data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_disk_stats_api_response_data.rb +3 -4
  164. data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_group_stats_api_response.rb +11 -78
  165. data/lib/nutanix_volumes/models/volumes_v40_stats_get_volume_group_stats_api_response_data.rb +3 -4
  166. data/lib/nutanix_volumes/models/volumes_v40_stats_time_value_pair.rb +11 -78
  167. data/lib/nutanix_volumes/models/volumes_v40_stats_volume_disk_stats.rb +11 -78
  168. data/lib/nutanix_volumes/models/volumes_v40_stats_volume_group_stats.rb +11 -78
  169. data/lib/nutanix_volumes/version.rb +2 -2
  170. data/lib/nutanix_volumes.rb +2 -2
  171. data/openapi-generator-cli-7.17.0.jar +0 -0
  172. data/pkg/nutanix_volumes-0.1.0.gem +0 -0
  173. data/pkg/nutanix_volumes-0.2.0.gem +0 -0
  174. data/renovate.json +5 -0
  175. data/spec/api/iscsi_clients_api_spec.rb +1 -1
  176. data/spec/api/volume_groups_api_spec.rb +1 -1
  177. data/spec/models/associate_category202_response_spec.rb +2 -2
  178. data/spec/models/associate_category4_xx_response_spec.rb +2 -2
  179. data/spec/models/attach_iscsi_client202_response_spec.rb +2 -2
  180. data/spec/models/attach_iscsi_client4_xx_response_spec.rb +2 -2
  181. data/spec/models/attach_vm202_response_spec.rb +2 -2
  182. data/spec/models/attach_vm4_xx_response_spec.rb +2 -2
  183. data/spec/models/common_v10_config_entity_reference_spec.rb +2 -2
  184. data/spec/models/common_v10_config_entity_type_spec.rb +2 -2
  185. data/spec/models/common_v10_config_flag_spec.rb +2 -2
  186. data/spec/models/common_v10_config_fqdn_spec.rb +2 -2
  187. data/spec/models/common_v10_config_ip_address_or_fqdn_spec.rb +2 -2
  188. data/spec/models/common_v10_config_ipv4_address_spec.rb +2 -2
  189. data/spec/models/common_v10_config_ipv6_address_spec.rb +2 -2
  190. data/spec/models/common_v10_config_kv_pair_spec.rb +2 -2
  191. data/spec/models/common_v10_config_kv_pair_value_spec.rb +1 -1
  192. data/spec/models/common_v10_config_map_of_string_wrapper_spec.rb +2 -2
  193. data/spec/models/common_v10_config_message_severity_spec.rb +2 -2
  194. data/spec/models/common_v10_config_message_spec.rb +2 -2
  195. data/spec/models/common_v10_config_metadata_spec.rb +2 -2
  196. data/spec/models/common_v10_config_tenant_aware_model_spec.rb +2 -2
  197. data/spec/models/common_v10_response_api_link_spec.rb +2 -2
  198. data/spec/models/common_v10_response_api_response_metadata_spec.rb +2 -2
  199. data/spec/models/common_v10_response_externalizable_abstract_model_spec.rb +2 -2
  200. data/spec/models/common_v10_stats_down_sampling_operator_spec.rb +2 -2
  201. data/spec/models/create_volume_disk202_response_spec.rb +2 -2
  202. data/spec/models/create_volume_disk4_xx_response_spec.rb +2 -2
  203. data/spec/models/create_volume_group202_response_spec.rb +2 -2
  204. data/spec/models/create_volume_group4_xx_response_spec.rb +2 -2
  205. data/spec/models/delete_volume_disk_by_id202_response_spec.rb +2 -2
  206. data/spec/models/delete_volume_disk_by_id4_xx_response_spec.rb +2 -2
  207. data/spec/models/delete_volume_group_by_id202_response_spec.rb +2 -2
  208. data/spec/models/delete_volume_group_by_id4_xx_response_spec.rb +2 -2
  209. data/spec/models/detach_iscsi_client202_response_spec.rb +2 -2
  210. data/spec/models/detach_iscsi_client4_xx_response_spec.rb +2 -2
  211. data/spec/models/detach_vm202_response_spec.rb +2 -2
  212. data/spec/models/detach_vm4_xx_response_spec.rb +2 -2
  213. data/spec/models/disassociate_category202_response_spec.rb +2 -2
  214. data/spec/models/disassociate_category4_xx_response_spec.rb +2 -2
  215. data/spec/models/get_iscsi_client_by_id200_response_spec.rb +2 -2
  216. data/spec/models/get_iscsi_client_by_id4_xx_response_spec.rb +2 -2
  217. data/spec/models/get_volume_disk_by_id200_response_spec.rb +2 -2
  218. data/spec/models/get_volume_disk_by_id4_xx_response_spec.rb +2 -2
  219. data/spec/models/get_volume_disk_stats200_response_spec.rb +2 -2
  220. data/spec/models/get_volume_disk_stats4_xx_response_spec.rb +2 -2
  221. data/spec/models/get_volume_group_by_id200_response_spec.rb +2 -2
  222. data/spec/models/get_volume_group_by_id4_xx_response_spec.rb +2 -2
  223. data/spec/models/get_volume_group_metadata_by_id200_response_spec.rb +2 -2
  224. data/spec/models/get_volume_group_metadata_by_id4_xx_response_spec.rb +2 -2
  225. data/spec/models/get_volume_group_stats200_response_spec.rb +2 -2
  226. data/spec/models/get_volume_group_stats4_xx_response_spec.rb +2 -2
  227. data/spec/models/list_category_associations_by_volume_group_id200_response_spec.rb +2 -2
  228. data/spec/models/list_category_associations_by_volume_group_id4_xx_response_spec.rb +2 -2
  229. data/spec/models/list_external_iscsi_attachments_by_volume_group_id200_response_spec.rb +2 -2
  230. data/spec/models/list_external_iscsi_attachments_by_volume_group_id4_xx_response_spec.rb +2 -2
  231. data/spec/models/list_iscsi_clients200_response_spec.rb +2 -2
  232. data/spec/models/list_iscsi_clients4_xx_response_spec.rb +2 -2
  233. data/spec/models/list_vm_attachments_by_volume_group_id200_response_spec.rb +2 -2
  234. data/spec/models/list_vm_attachments_by_volume_group_id4_xx_response_spec.rb +2 -2
  235. data/spec/models/list_volume_disks_by_volume_group_id200_response_spec.rb +2 -2
  236. data/spec/models/list_volume_disks_by_volume_group_id4_xx_response_spec.rb +2 -2
  237. data/spec/models/list_volume_groups200_response_spec.rb +2 -2
  238. data/spec/models/list_volume_groups4_xx_response_spec.rb +2 -2
  239. data/spec/models/prism_v40_config_task_reference_spec.rb +2 -2
  240. data/spec/models/revert_volume_group202_response_spec.rb +2 -2
  241. data/spec/models/revert_volume_group4_xx_response_spec.rb +2 -2
  242. data/spec/models/update_iscsi_client_by_id202_response_spec.rb +2 -2
  243. data/spec/models/update_iscsi_client_by_id4_xx_response_spec.rb +2 -2
  244. data/spec/models/update_volume_disk_by_id202_response_spec.rb +2 -2
  245. data/spec/models/update_volume_disk_by_id4_xx_response_spec.rb +2 -2
  246. data/spec/models/update_volume_group_by_id202_response_spec.rb +2 -2
  247. data/spec/models/update_volume_group_by_id4_xx_response_spec.rb +2 -2
  248. data/spec/models/volumes_v40_config_associate_category_api_response_spec.rb +2 -2
  249. data/spec/models/volumes_v40_config_attach_iscsi_client_api_response_spec.rb +2 -2
  250. data/spec/models/volumes_v40_config_attach_nvmf_client_api_response_spec.rb +2 -2
  251. data/spec/models/volumes_v40_config_attach_vm_api_response_spec.rb +2 -2
  252. data/spec/models/volumes_v40_config_attachment_type_spec.rb +2 -2
  253. data/spec/models/volumes_v40_config_authentication_type_spec.rb +2 -2
  254. data/spec/models/volumes_v40_config_category_details_spec.rb +2 -2
  255. data/spec/models/volumes_v40_config_category_entity_references_spec.rb +2 -2
  256. data/spec/models/volumes_v40_config_cluster_spec.rb +2 -2
  257. data/spec/models/volumes_v40_config_create_volume_disk_api_response_spec.rb +2 -2
  258. data/spec/models/volumes_v40_config_create_volume_group_api_response_spec.rb +2 -2
  259. data/spec/models/volumes_v40_config_delete_volume_disk_api_response_spec.rb +2 -2
  260. data/spec/models/volumes_v40_config_delete_volume_group_api_response_spec.rb +2 -2
  261. data/spec/models/volumes_v40_config_detach_iscsi_client_api_response_spec.rb +2 -2
  262. data/spec/models/volumes_v40_config_detach_nvmf_client_api_response_spec.rb +2 -2
  263. data/spec/models/volumes_v40_config_detach_vm_api_response_spec.rb +2 -2
  264. data/spec/models/volumes_v40_config_disassociate_category_api_response_spec.rb +2 -2
  265. data/spec/models/volumes_v40_config_disk_storage_features_spec.rb +2 -2
  266. data/spec/models/volumes_v40_config_flash_mode_spec.rb +2 -2
  267. data/spec/models/volumes_v40_config_get_iscsi_client_api_response_data_spec.rb +1 -1
  268. data/spec/models/volumes_v40_config_get_iscsi_client_api_response_spec.rb +2 -2
  269. data/spec/models/volumes_v40_config_get_volume_disk_api_response_data_spec.rb +1 -1
  270. data/spec/models/volumes_v40_config_get_volume_disk_api_response_spec.rb +2 -2
  271. data/spec/models/volumes_v40_config_get_volume_group_api_response_data_spec.rb +1 -1
  272. data/spec/models/volumes_v40_config_get_volume_group_api_response_spec.rb +2 -2
  273. data/spec/models/volumes_v40_config_get_volume_group_metadata_api_response_data_spec.rb +1 -1
  274. data/spec/models/volumes_v40_config_get_volume_group_metadata_api_response_spec.rb +2 -2
  275. data/spec/models/volumes_v40_config_iscsi_client_attachment_spec.rb +2 -2
  276. data/spec/models/volumes_v40_config_iscsi_client_spec.rb +2 -2
  277. data/spec/models/volumes_v40_config_iscsi_features_spec.rb +2 -2
  278. data/spec/models/volumes_v40_config_list_category_associations_api_response_data_spec.rb +1 -1
  279. data/spec/models/volumes_v40_config_list_category_associations_api_response_spec.rb +2 -2
  280. data/spec/models/volumes_v40_config_list_external_iscsi_attachments_api_response_data_spec.rb +1 -1
  281. data/spec/models/volumes_v40_config_list_external_iscsi_attachments_api_response_spec.rb +2 -2
  282. data/spec/models/volumes_v40_config_list_iscsi_clients_api_response_data_spec.rb +1 -1
  283. data/spec/models/volumes_v40_config_list_iscsi_clients_api_response_spec.rb +2 -2
  284. data/spec/models/volumes_v40_config_list_vm_attachments_api_response_data_spec.rb +1 -1
  285. data/spec/models/volumes_v40_config_list_vm_attachments_api_response_spec.rb +2 -2
  286. data/spec/models/volumes_v40_config_list_volume_disks_api_response_data_spec.rb +1 -1
  287. data/spec/models/volumes_v40_config_list_volume_disks_api_response_spec.rb +2 -2
  288. data/spec/models/volumes_v40_config_list_volume_groups_api_response_data_spec.rb +1 -1
  289. data/spec/models/volumes_v40_config_list_volume_groups_api_response_spec.rb +2 -2
  290. data/spec/models/volumes_v40_config_migrate_volume_group_api_response_spec.rb +2 -2
  291. data/spec/models/volumes_v40_config_nvmf_client_attachment_spec.rb +2 -2
  292. data/spec/models/volumes_v40_config_nvmf_client_spec.rb +2 -2
  293. data/spec/models/volumes_v40_config_pause_volume_group_synchronous_replication_api_response_spec.rb +2 -2
  294. data/spec/models/volumes_v40_config_protocol_spec.rb +2 -2
  295. data/spec/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_spec.rb +2 -2
  296. data/spec/models/volumes_v40_config_revert_spec_spec.rb +2 -2
  297. data/spec/models/volumes_v40_config_revert_volume_group_api_response_spec.rb +2 -2
  298. data/spec/models/volumes_v40_config_sharing_status_spec.rb +2 -2
  299. data/spec/models/volumes_v40_config_storage_features_spec.rb +2 -2
  300. data/spec/models/volumes_v40_config_target_param_spec.rb +2 -2
  301. data/spec/models/volumes_v40_config_update_iscsi_client_api_response_data_spec.rb +1 -1
  302. data/spec/models/volumes_v40_config_update_iscsi_client_api_response_spec.rb +2 -2
  303. data/spec/models/volumes_v40_config_update_iscsi_client_by_id_api_response_spec.rb +2 -2
  304. data/spec/models/volumes_v40_config_update_volume_disk_api_response_spec.rb +2 -2
  305. data/spec/models/volumes_v40_config_update_volume_disk_by_id_api_response_spec.rb +2 -2
  306. data/spec/models/volumes_v40_config_update_volume_group_api_response_spec.rb +2 -2
  307. data/spec/models/volumes_v40_config_update_volume_group_by_id_api_response_spec.rb +2 -2
  308. data/spec/models/volumes_v40_config_update_volume_group_metadata_api_response_spec.rb +2 -2
  309. data/spec/models/volumes_v40_config_update_volume_group_metadata_info_api_response_spec.rb +2 -2
  310. data/spec/models/volumes_v40_config_usage_type_spec.rb +2 -2
  311. data/spec/models/volumes_v40_config_vm_attachment_spec.rb +2 -2
  312. data/spec/models/volumes_v40_config_volume_disk_spec.rb +2 -2
  313. data/spec/models/volumes_v40_config_volume_group_attachment_site_spec.rb +2 -2
  314. data/spec/models/volumes_v40_config_volume_group_metadata_spec.rb +2 -2
  315. data/spec/models/volumes_v40_config_volume_group_spec.rb +2 -2
  316. data/spec/models/volumes_v40_error_app_message_spec.rb +2 -2
  317. data/spec/models/volumes_v40_error_error_response_error_spec.rb +1 -1
  318. data/spec/models/volumes_v40_error_error_response_spec.rb +2 -2
  319. data/spec/models/volumes_v40_error_message_severity_spec.rb +2 -2
  320. data/spec/models/volumes_v40_error_schema_validation_error_message_spec.rb +2 -2
  321. data/spec/models/volumes_v40_error_schema_validation_error_spec.rb +2 -2
  322. data/spec/models/volumes_v40_stats_get_volume_disk_stats_api_response_data_spec.rb +1 -1
  323. data/spec/models/volumes_v40_stats_get_volume_disk_stats_api_response_spec.rb +2 -2
  324. data/spec/models/volumes_v40_stats_get_volume_group_stats_api_response_data_spec.rb +1 -1
  325. data/spec/models/volumes_v40_stats_get_volume_group_stats_api_response_spec.rb +2 -2
  326. data/spec/models/volumes_v40_stats_time_value_pair_spec.rb +2 -2
  327. data/spec/models/volumes_v40_stats_volume_disk_stats_spec.rb +2 -2
  328. data/spec/models/volumes_v40_stats_volume_group_stats_spec.rb +2 -2
  329. data/spec/spec_helper.rb +1 -1
  330. metadata +10 -6
  331. data/docs/VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData.md +0 -47
  332. data/lib/nutanix_volumes/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_data.rb +0 -104
  333. data/spec/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_data_spec.rb +0 -32
  334. data/swagger-volumes-v4.0-all.yaml +0 -8140
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nutanix_volumes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
@@ -58,8 +58,12 @@ extra_rdoc_files: []
58
58
  files:
59
59
  - CHANGELOG.md
60
60
  - Gemfile
61
+ - LICENSE.txt
61
62
  - README.md
62
63
  - Rakefile
64
+ - bin/console
65
+ - bin/openapi-generate
66
+ - bin/openapi-generate-ruby-post-process
63
67
  - docs/AssociateCategory202Response.md
64
68
  - docs/AssociateCategory4XXResponse.md
65
69
  - docs/AttachIscsiClient202Response.md
@@ -181,7 +185,6 @@ files:
181
185
  - docs/VolumesV40ConfigPauseVolumeGroupSynchronousReplicationApiResponse.md
182
186
  - docs/VolumesV40ConfigProtocol.md
183
187
  - docs/VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponse.md
184
- - docs/VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData.md
185
188
  - docs/VolumesV40ConfigRevertSpec.md
186
189
  - docs/VolumesV40ConfigRevertVolumeGroupApiResponse.md
187
190
  - docs/VolumesV40ConfigSharingStatus.md
@@ -221,6 +224,7 @@ files:
221
224
  - lib/nutanix_volumes/api/volume_groups_api.rb
222
225
  - lib/nutanix_volumes/api_client.rb
223
226
  - lib/nutanix_volumes/api_error.rb
227
+ - lib/nutanix_volumes/api_model_base.rb
224
228
  - lib/nutanix_volumes/configuration.rb
225
229
  - lib/nutanix_volumes/models/associate_category202_response.rb
226
230
  - lib/nutanix_volumes/models/associate_category4_xx_response.rb
@@ -341,7 +345,6 @@ files:
341
345
  - lib/nutanix_volumes/models/volumes_v40_config_pause_volume_group_synchronous_replication_api_response.rb
342
346
  - lib/nutanix_volumes/models/volumes_v40_config_protocol.rb
343
347
  - lib/nutanix_volumes/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response.rb
344
- - lib/nutanix_volumes/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_data.rb
345
348
  - lib/nutanix_volumes/models/volumes_v40_config_revert_spec.rb
346
349
  - lib/nutanix_volumes/models/volumes_v40_config_revert_volume_group_api_response.rb
347
350
  - lib/nutanix_volumes/models/volumes_v40_config_sharing_status.rb
@@ -377,6 +380,10 @@ files:
377
380
  - lib/nutanix_volumes/models/volumes_v40_stats_volume_group_stats.rb
378
381
  - lib/nutanix_volumes/version.rb
379
382
  - nutanix_volumes.gemspec
383
+ - openapi-generator-cli-7.17.0.jar
384
+ - pkg/nutanix_volumes-0.1.0.gem
385
+ - pkg/nutanix_volumes-0.2.0.gem
386
+ - renovate.json
380
387
  - spec/api/iscsi_clients_api_spec.rb
381
388
  - spec/api/volume_groups_api_spec.rb
382
389
  - spec/models/associate_category202_response_spec.rb
@@ -497,7 +504,6 @@ files:
497
504
  - spec/models/volumes_v40_config_nvmf_client_spec.rb
498
505
  - spec/models/volumes_v40_config_pause_volume_group_synchronous_replication_api_response_spec.rb
499
506
  - spec/models/volumes_v40_config_protocol_spec.rb
500
- - spec/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_data_spec.rb
501
507
  - spec/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_spec.rb
502
508
  - spec/models/volumes_v40_config_revert_spec_spec.rb
503
509
  - spec/models/volumes_v40_config_revert_volume_group_api_response_spec.rb
@@ -533,7 +539,6 @@ files:
533
539
  - spec/models/volumes_v40_stats_volume_disk_stats_spec.rb
534
540
  - spec/models/volumes_v40_stats_volume_group_stats_spec.rb
535
541
  - spec/spec_helper.rb
536
- - swagger-volumes-v4.0-all.yaml
537
542
  homepage: https://openapi-generator.tech
538
543
  licenses:
539
544
  - Apache-2.0
@@ -676,7 +681,6 @@ test_files:
676
681
  - spec/models/volumes_v40_config_nvmf_client_spec.rb
677
682
  - spec/models/volumes_v40_config_pause_volume_group_synchronous_replication_api_response_spec.rb
678
683
  - spec/models/volumes_v40_config_protocol_spec.rb
679
- - spec/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_data_spec.rb
680
684
  - spec/models/volumes_v40_config_resume_volume_group_synchronous_replication_api_response_spec.rb
681
685
  - spec/models/volumes_v40_config_revert_spec_spec.rb
682
686
  - spec/models/volumes_v40_config_revert_volume_group_api_response_spec.rb
@@ -1,47 +0,0 @@
1
- # NutanixVolumes::VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData
2
-
3
- ## Class instance methods
4
-
5
- ### `openapi_one_of`
6
-
7
- Returns the list of classes defined in oneOf.
8
-
9
- #### Example
10
-
11
- ```ruby
12
- require 'nutanix_volumes'
13
-
14
- NutanixVolumes::VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData.openapi_one_of
15
- # =>
16
- # [
17
- # :'VolumesV40ErrorErrorResponse'
18
- # ]
19
- ```
20
-
21
- ### build
22
-
23
- Find the appropriate object from the `openapi_one_of` list and casts the data into it.
24
-
25
- #### Example
26
-
27
- ```ruby
28
- require 'nutanix_volumes'
29
-
30
- NutanixVolumes::VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData.build(data)
31
- # => #<VolumesV40ErrorErrorResponse:0x00007fdd4aab02a0>
32
-
33
- NutanixVolumes::VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData.build(data_that_doesnt_match)
34
- # => nil
35
- ```
36
-
37
- #### Parameters
38
-
39
- | Name | Type | Description |
40
- | ---- | ---- | ----------- |
41
- | **data** | **Mixed** | data to be matched against the list of oneOf items |
42
-
43
- #### Return type
44
-
45
- - `VolumesV40ErrorErrorResponse`
46
- - `nil` (if no type matches)
47
-
@@ -1,104 +0,0 @@
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.9.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module NutanixVolumes
17
- module VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData
18
- class << self
19
- # List of class defined in oneOf (OpenAPI v3)
20
- def openapi_one_of
21
- [
22
- :'VolumesV40ErrorErrorResponse'
23
- ]
24
- end
25
-
26
- # Builds the object
27
- # @param [Mixed] Data to be matched against the list of oneOf items
28
- # @return [Object] Returns the model or the data itself
29
- def build(data)
30
- # Go through the list of oneOf items and attempt to identify the appropriate one.
31
- # Note:
32
- # - We do not attempt to check whether exactly one item matches.
33
- # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
34
- # due to the way the deserialization is made in the base_object template (it just casts without verifying).
35
- # - TODO: scalar values are de facto behaving as if they were nullable.
36
- # - TODO: logging when debugging is set.
37
- openapi_one_of.each do |klass|
38
- begin
39
- next if klass == :AnyType # "nullable: true"
40
- typed_data = find_and_cast_into_type(klass, data)
41
- return typed_data if typed_data
42
- rescue # rescue all errors so we keep iterating even if the current item lookup raises
43
- end
44
- end
45
-
46
- openapi_one_of.include?(:AnyType) ? data : nil
47
- end
48
-
49
- private
50
-
51
- SchemaMismatchError = Class.new(StandardError)
52
-
53
- # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
54
- def find_and_cast_into_type(klass, data)
55
- return if data.nil?
56
-
57
- case klass.to_s
58
- when 'Boolean'
59
- return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
60
- when 'Float'
61
- return data if data.instance_of?(Float)
62
- when 'Integer'
63
- return data if data.instance_of?(Integer)
64
- when 'Time'
65
- return Time.parse(data)
66
- when 'Date'
67
- return Date.parse(data)
68
- when 'String'
69
- return data if data.instance_of?(String)
70
- when 'Object' # "type: object"
71
- return data if data.instance_of?(Hash)
72
- when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
73
- if data.instance_of?(Array)
74
- sub_type = Regexp.last_match[:sub_type]
75
- return data.map { |item| find_and_cast_into_type(sub_type, item) }
76
- end
77
- when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
78
- if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
79
- sub_type = Regexp.last_match[:sub_type]
80
- return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
81
- end
82
- else # model
83
- const = NutanixVolumes.const_get(klass)
84
- if const
85
- if const.respond_to?(:openapi_one_of) # nested oneOf model
86
- model = const.build(data)
87
- return model if model
88
- else
89
- # raise if data contains keys that are not known to the model
90
- raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
91
- model = const.build_from_hash(data)
92
- return model if model
93
- end
94
- end
95
- end
96
-
97
- raise # if no match by now, raise
98
- rescue
99
- raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
100
- end
101
- end
102
- end
103
-
104
- end
@@ -1,32 +0,0 @@
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.9.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for NutanixVolumes::VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe NutanixVolumes::VolumesV40ConfigResumeVolumeGroupSynchronousReplicationApiResponseData do
21
- describe '.openapi_one_of' do
22
- it 'lists the items referenced in the oneOf array' do
23
- expect(described_class.openapi_one_of).to_not be_empty
24
- end
25
- end
26
-
27
- describe '.build' do
28
- it 'returns the correct model' do
29
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
30
- end
31
- end
32
- end