nutanix_clustermgmt 0.1.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 (1387) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +11 -0
  3. data/Gemfile +9 -0
  4. data/README.md +636 -0
  5. data/Rakefile +10 -0
  6. data/docs/AddDisk202Response.md +20 -0
  7. data/docs/AddDisk4XXResponse.md +20 -0
  8. data/docs/AddSnmpTransport202Response.md +20 -0
  9. data/docs/AddSnmpTransport4XXResponse.md +20 -0
  10. data/docs/ApplyClusterProfile202Response.md +20 -0
  11. data/docs/ApplyClusterProfile4XXResponse.md +20 -0
  12. data/docs/AssociateCategoriesToCluster202Response.md +20 -0
  13. data/docs/AssociateCategoriesToCluster4XXResponse.md +20 -0
  14. data/docs/BmcApi.md +169 -0
  15. data/docs/CheckHypervisorRequirements202Response.md +20 -0
  16. data/docs/CheckHypervisorRequirements4XXResponse.md +20 -0
  17. data/docs/ClusterProfilesApi.md +575 -0
  18. data/docs/ClustermgmtV40AhvConfigListPcieDevicesApiResponse.md +20 -0
  19. data/docs/ClustermgmtV40AhvConfigListPcieDevicesApiResponseData.md +49 -0
  20. data/docs/ClustermgmtV40AhvConfigPcieDevice.md +34 -0
  21. data/docs/ClustermgmtV40AhvConfigPcieDeviceConfiguration.md +30 -0
  22. data/docs/ClustermgmtV40AhvConfigPcieDeviceState.md +15 -0
  23. data/docs/ClustermgmtV40ConfigAcropolisConnectionState.md +15 -0
  24. data/docs/ClustermgmtV40ConfigAddDiskApiResponse.md +20 -0
  25. data/docs/ClustermgmtV40ConfigAddSnmpTransportsApiResponse.md +20 -0
  26. data/docs/ClustermgmtV40ConfigAddressType.md +15 -0
  27. data/docs/ClustermgmtV40ConfigApplyClusterProfileApiResponse.md +20 -0
  28. data/docs/ClustermgmtV40ConfigAssociateCategoriesToClusterApiResponse.md +20 -0
  29. data/docs/ClustermgmtV40ConfigAssociateCategoriesToClusterApiResponseData.md +49 -0
  30. data/docs/ClustermgmtV40ConfigAttributeItem.md +20 -0
  31. data/docs/ClustermgmtV40ConfigAuthorizedPublicKey.md +20 -0
  32. data/docs/ClustermgmtV40ConfigBackplaneNetworkParams.md +24 -0
  33. data/docs/ClustermgmtV40ConfigBlockItem.md +20 -0
  34. data/docs/ClustermgmtV40ConfigBmcInfo.md +22 -0
  35. data/docs/ClustermgmtV40ConfigBuildInfo.md +18 -0
  36. data/docs/ClustermgmtV40ConfigBuildReference.md +26 -0
  37. data/docs/ClustermgmtV40ConfigBundleInfo.md +18 -0
  38. data/docs/ClustermgmtV40ConfigBundleParam.md +20 -0
  39. data/docs/ClustermgmtV40ConfigCacheDeduplication.md +15 -0
  40. data/docs/ClustermgmtV40ConfigCategoryEntityReferences.md +18 -0
  41. data/docs/ClustermgmtV40ConfigCheckHypervisorRequirementsApiResponse.md +20 -0
  42. data/docs/ClustermgmtV40ConfigCluster.md +44 -0
  43. data/docs/ClustermgmtV40ConfigClusterArchReference.md +15 -0
  44. data/docs/ClustermgmtV40ConfigClusterConfig.md +20 -0
  45. data/docs/ClustermgmtV40ConfigClusterConfigReference.md +54 -0
  46. data/docs/ClustermgmtV40ConfigClusterFaultToleranceRef.md +15 -0
  47. data/docs/ClustermgmtV40ConfigClusterFunctionRef.md +15 -0
  48. data/docs/ClustermgmtV40ConfigClusterNetwork.md +24 -0
  49. data/docs/ClustermgmtV40ConfigClusterNetworkReference.md +48 -0
  50. data/docs/ClustermgmtV40ConfigClusterProfile.md +56 -0
  51. data/docs/ClustermgmtV40ConfigClusterReference.md +20 -0
  52. data/docs/ClustermgmtV40ConfigClusterReferenceListSpec.md +18 -0
  53. data/docs/ClustermgmtV40ConfigComponentFaultTolerance.md +26 -0
  54. data/docs/ClustermgmtV40ConfigComponentType.md +15 -0
  55. data/docs/ClustermgmtV40ConfigComputeNodeItem.md +32 -0
  56. data/docs/ClustermgmtV40ConfigComputeNonMigratableVmsSpec.md +20 -0
  57. data/docs/ClustermgmtV40ConfigConfigParams.md +32 -0
  58. data/docs/ClustermgmtV40ConfigConfigType.md +15 -0
  59. data/docs/ClustermgmtV40ConfigControllerVmReference.md +28 -0
  60. data/docs/ClustermgmtV40ConfigCreateClusterApiResponse.md +20 -0
  61. data/docs/ClustermgmtV40ConfigCreateClusterProfileApiResponse.md +20 -0
  62. data/docs/ClustermgmtV40ConfigCreateRsyslogServerApiResponse.md +20 -0
  63. data/docs/ClustermgmtV40ConfigCreateSnmpTrapApiResponse.md +20 -0
  64. data/docs/ClustermgmtV40ConfigCreateSnmpUserApiResponse.md +20 -0
  65. data/docs/ClustermgmtV40ConfigCreateStorageContainerApiResponse.md +20 -0
  66. data/docs/ClustermgmtV40ConfigCredentialStatus.md +15 -0
  67. data/docs/ClustermgmtV40ConfigDataStore.md +38 -0
  68. data/docs/ClustermgmtV40ConfigDataStoreMount.md +32 -0
  69. data/docs/ClustermgmtV40ConfigDataStoreUnmount.md +26 -0
  70. data/docs/ClustermgmtV40ConfigDeleteClusterApiResponse.md +20 -0
  71. data/docs/ClustermgmtV40ConfigDeleteClusterProfileApiResponse.md +20 -0
  72. data/docs/ClustermgmtV40ConfigDeleteDiskApiResponse.md +20 -0
  73. data/docs/ClustermgmtV40ConfigDeleteRsyslogServerApiResponse.md +20 -0
  74. data/docs/ClustermgmtV40ConfigDeleteSnmpTrapApiResponse.md +20 -0
  75. data/docs/ClustermgmtV40ConfigDeleteSnmpUserApiResponse.md +20 -0
  76. data/docs/ClustermgmtV40ConfigDeleteStorageContainerApiResponse.md +20 -0
  77. data/docs/ClustermgmtV40ConfigDigitalCertificateMapReference.md +20 -0
  78. data/docs/ClustermgmtV40ConfigDisassociateCategoriesFromClusterApiResponse.md +20 -0
  79. data/docs/ClustermgmtV40ConfigDisassociateClusterFromClusterProfileApiResponse.md +20 -0
  80. data/docs/ClustermgmtV40ConfigDiscoverUnconfiguredNodesApiResponse.md +20 -0
  81. data/docs/ClustermgmtV40ConfigDisk.md +64 -0
  82. data/docs/ClustermgmtV40ConfigDiskAdditionSpec.md +20 -0
  83. data/docs/ClustermgmtV40ConfigDiskAdvanceConfig.md +48 -0
  84. data/docs/ClustermgmtV40ConfigDiskPartitionInfo.md +20 -0
  85. data/docs/ClustermgmtV40ConfigDiskReference.md +26 -0
  86. data/docs/ClustermgmtV40ConfigDiskStatus.md +15 -0
  87. data/docs/ClustermgmtV40ConfigDomainAwarenessLevel.md +15 -0
  88. data/docs/ClustermgmtV40ConfigDomainFaultTolerance.md +20 -0
  89. data/docs/ClustermgmtV40ConfigDomainType.md +15 -0
  90. data/docs/ClustermgmtV40ConfigDriveReplacementOption.md +15 -0
  91. data/docs/ClustermgmtV40ConfigEncryptionOptionInfo.md +15 -0
  92. data/docs/ClustermgmtV40ConfigEncryptionScopeInfo.md +15 -0
  93. data/docs/ClustermgmtV40ConfigEncryptionStatus.md +15 -0
  94. data/docs/ClustermgmtV40ConfigErasureCodeStatus.md +15 -0
  95. data/docs/ClustermgmtV40ConfigExpandClusterApiResponse.md +20 -0
  96. data/docs/ClustermgmtV40ConfigExpandClusterParams.md +24 -0
  97. data/docs/ClustermgmtV40ConfigFaultToleranceState.md +28 -0
  98. data/docs/ClustermgmtV40ConfigFetchNodeNetworkingDetailsApiResponse.md +20 -0
  99. data/docs/ClustermgmtV40ConfigFetchTaskApiResponse.md +20 -0
  100. data/docs/ClustermgmtV40ConfigFetchTaskApiResponseData.md +49 -0
  101. data/docs/ClustermgmtV40ConfigGetBmcInfoResponse.md +20 -0
  102. data/docs/ClustermgmtV40ConfigGetBmcInfoResponseData.md +49 -0
  103. data/docs/ClustermgmtV40ConfigGetClusterApiResponse.md +20 -0
  104. data/docs/ClustermgmtV40ConfigGetClusterApiResponseData.md +49 -0
  105. data/docs/ClustermgmtV40ConfigGetClusterProfileApiResponse.md +20 -0
  106. data/docs/ClustermgmtV40ConfigGetClusterProfileApiResponseData.md +49 -0
  107. data/docs/ClustermgmtV40ConfigGetDiskApiResponse.md +20 -0
  108. data/docs/ClustermgmtV40ConfigGetDiskApiResponseData.md +49 -0
  109. data/docs/ClustermgmtV40ConfigGetHostApiResponse.md +20 -0
  110. data/docs/ClustermgmtV40ConfigGetHostApiResponseData.md +49 -0
  111. data/docs/ClustermgmtV40ConfigGetHostNicApiResponse.md +20 -0
  112. data/docs/ClustermgmtV40ConfigGetHostNicApiResponseData.md +49 -0
  113. data/docs/ClustermgmtV40ConfigGetRackableUnitApiResponse.md +20 -0
  114. data/docs/ClustermgmtV40ConfigGetRackableUnitApiResponseData.md +49 -0
  115. data/docs/ClustermgmtV40ConfigGetRsyslogServerApiResponse.md +20 -0
  116. data/docs/ClustermgmtV40ConfigGetRsyslogServerApiResponseData.md +49 -0
  117. data/docs/ClustermgmtV40ConfigGetSnmpConfigByClusterIdApiResponse.md +20 -0
  118. data/docs/ClustermgmtV40ConfigGetSnmpConfigByClusterIdApiResponseData.md +49 -0
  119. data/docs/ClustermgmtV40ConfigGetSnmpTrapApiResponse.md +20 -0
  120. data/docs/ClustermgmtV40ConfigGetSnmpTrapApiResponseData.md +49 -0
  121. data/docs/ClustermgmtV40ConfigGetSnmpUserApiResponse.md +20 -0
  122. data/docs/ClustermgmtV40ConfigGetSnmpUserApiResponseData.md +49 -0
  123. data/docs/ClustermgmtV40ConfigGetStorageContainerApiResponse.md +20 -0
  124. data/docs/ClustermgmtV40ConfigGetStorageContainerApiResponseData.md +49 -0
  125. data/docs/ClustermgmtV40ConfigGetVcenterExtensionApiResponse.md +20 -0
  126. data/docs/ClustermgmtV40ConfigGetVcenterExtensionApiResponseData.md +49 -0
  127. data/docs/ClustermgmtV40ConfigGetVirtualNicApiResponse.md +20 -0
  128. data/docs/ClustermgmtV40ConfigGetVirtualNicApiResponseData.md +49 -0
  129. data/docs/ClustermgmtV40ConfigGpuMode.md +15 -0
  130. data/docs/ClustermgmtV40ConfigGpuType.md +15 -0
  131. data/docs/ClustermgmtV40ConfigHost.md +90 -0
  132. data/docs/ClustermgmtV40ConfigHostGpu.md +32 -0
  133. data/docs/ClustermgmtV40ConfigHostNameParam.md +18 -0
  134. data/docs/ClustermgmtV40ConfigHostNic.md +62 -0
  135. data/docs/ClustermgmtV40ConfigHostTypeEnum.md +15 -0
  136. data/docs/ClustermgmtV40ConfigHttpProxyConfig.md +28 -0
  137. data/docs/ClustermgmtV40ConfigHttpProxyType.md +15 -0
  138. data/docs/ClustermgmtV40ConfigHttpProxyWhiteListConfig.md +20 -0
  139. data/docs/ClustermgmtV40ConfigHttpProxyWhiteListTargetType.md +15 -0
  140. data/docs/ClustermgmtV40ConfigHypervCredentials.md +20 -0
  141. data/docs/ClustermgmtV40ConfigHypervisorIsoMap.md +20 -0
  142. data/docs/ClustermgmtV40ConfigHypervisorReference.md +30 -0
  143. data/docs/ClustermgmtV40ConfigHypervisorState.md +15 -0
  144. data/docs/ClustermgmtV40ConfigHypervisorType.md +15 -0
  145. data/docs/ClustermgmtV40ConfigHypervisorUploadInfo.md +20 -0
  146. data/docs/ClustermgmtV40ConfigHypervisorUploadNodeListItem.md +34 -0
  147. data/docs/ClustermgmtV40ConfigHypervisorUploadParam.md +18 -0
  148. data/docs/ClustermgmtV40ConfigIpmiReference.md +20 -0
  149. data/docs/ClustermgmtV40ConfigKeyManagementDeviceToCertStatusInfo.md +20 -0
  150. data/docs/ClustermgmtV40ConfigKeyManagementServerType.md +15 -0
  151. data/docs/ClustermgmtV40ConfigListClusterProfilesApiResponse.md +20 -0
  152. data/docs/ClustermgmtV40ConfigListClusterProfilesApiResponseData.md +49 -0
  153. data/docs/ClustermgmtV40ConfigListClustersApiResponse.md +20 -0
  154. data/docs/ClustermgmtV40ConfigListClustersApiResponseData.md +49 -0
  155. data/docs/ClustermgmtV40ConfigListDataStoresByClusterIdApiResponse.md +20 -0
  156. data/docs/ClustermgmtV40ConfigListDataStoresByClusterIdApiResponseData.md +49 -0
  157. data/docs/ClustermgmtV40ConfigListDisksApiResponse.md +20 -0
  158. data/docs/ClustermgmtV40ConfigListDisksApiResponseData.md +49 -0
  159. data/docs/ClustermgmtV40ConfigListHostNicsByHostIdApiResponse.md +20 -0
  160. data/docs/ClustermgmtV40ConfigListHostNicsByHostIdApiResponseData.md +49 -0
  161. data/docs/ClustermgmtV40ConfigListHostsApiResponse.md +20 -0
  162. data/docs/ClustermgmtV40ConfigListHostsByClusterIdApiResponse.md +20 -0
  163. data/docs/ClustermgmtV40ConfigListHostsByClusterIdApiResponseData.md +49 -0
  164. data/docs/ClustermgmtV40ConfigListPhysicalGpuProfilesApiResponse.md +20 -0
  165. data/docs/ClustermgmtV40ConfigListPhysicalGpuProfilesApiResponseData.md +49 -0
  166. data/docs/ClustermgmtV40ConfigListRackableUnitsByClusterIdApiResponse.md +20 -0
  167. data/docs/ClustermgmtV40ConfigListRackableUnitsByClusterIdApiResponseData.md +49 -0
  168. data/docs/ClustermgmtV40ConfigListRsyslogServersByClusterIdApiResponse.md +20 -0
  169. data/docs/ClustermgmtV40ConfigListRsyslogServersByClusterIdApiResponseData.md +49 -0
  170. data/docs/ClustermgmtV40ConfigListStorageContainersApiResponse.md +20 -0
  171. data/docs/ClustermgmtV40ConfigListStorageContainersApiResponseData.md +49 -0
  172. data/docs/ClustermgmtV40ConfigListVcenterExtensionsApiResponse.md +20 -0
  173. data/docs/ClustermgmtV40ConfigListVcenterExtensionsApiResponseData.md +49 -0
  174. data/docs/ClustermgmtV40ConfigListVirtualGpuProfilesApiResponse.md +20 -0
  175. data/docs/ClustermgmtV40ConfigListVirtualGpuProfilesApiResponseData.md +49 -0
  176. data/docs/ClustermgmtV40ConfigListVirtualNicsByHostIdApiResponse.md +20 -0
  177. data/docs/ClustermgmtV40ConfigListVirtualNicsByHostIdApiResponseData.md +49 -0
  178. data/docs/ClustermgmtV40ConfigManagedCluster.md +24 -0
  179. data/docs/ClustermgmtV40ConfigManagementServerRef.md +26 -0
  180. data/docs/ClustermgmtV40ConfigManagementServerType.md +15 -0
  181. data/docs/ClustermgmtV40ConfigMountStorageContainerApiResponse.md +20 -0
  182. data/docs/ClustermgmtV40ConfigMultiDomainFaultToleranceStatus.md +24 -0
  183. data/docs/ClustermgmtV40ConfigNameMacRef.md +20 -0
  184. data/docs/ClustermgmtV40ConfigNameNetworkRef.md +22 -0
  185. data/docs/ClustermgmtV40ConfigNetworkInfo.md +20 -0
  186. data/docs/ClustermgmtV40ConfigNetworkSwitchInterface.md +48 -0
  187. data/docs/ClustermgmtV40ConfigNodeDetails.md +20 -0
  188. data/docs/ClustermgmtV40ConfigNodeDiscoveryParams.md +28 -0
  189. data/docs/ClustermgmtV40ConfigNodeInfo.md +46 -0
  190. data/docs/ClustermgmtV40ConfigNodeItem.md +48 -0
  191. data/docs/ClustermgmtV40ConfigNodeListItemReference.md +22 -0
  192. data/docs/ClustermgmtV40ConfigNodeListNetworkingDetails.md +46 -0
  193. data/docs/ClustermgmtV40ConfigNodeNetworkConfig.md +18 -0
  194. data/docs/ClustermgmtV40ConfigNodeNetworkingDetails.md +22 -0
  195. data/docs/ClustermgmtV40ConfigNodeParam.md +30 -0
  196. data/docs/ClustermgmtV40ConfigNodeReference.md +20 -0
  197. data/docs/ClustermgmtV40ConfigNodeRemovalExtraParam.md +22 -0
  198. data/docs/ClustermgmtV40ConfigNodeRemovalParams.md +24 -0
  199. data/docs/ClustermgmtV40ConfigNodeResourceConfig.md +24 -0
  200. data/docs/ClustermgmtV40ConfigNodeStatus.md +15 -0
  201. data/docs/ClustermgmtV40ConfigNonCompatibleClusterReference.md +20 -0
  202. data/docs/ClustermgmtV40ConfigNonMigratableVmInfo.md +22 -0
  203. data/docs/ClustermgmtV40ConfigNonMigratableVmsResult.md +24 -0
  204. data/docs/ClustermgmtV40ConfigOnDiskDedup.md +15 -0
  205. data/docs/ClustermgmtV40ConfigOperationMode.md +15 -0
  206. data/docs/ClustermgmtV40ConfigPIIScrubbingLevel.md +15 -0
  207. data/docs/ClustermgmtV40ConfigPartitionType.md +15 -0
  208. data/docs/ClustermgmtV40ConfigPhysicalGpuConfig.md +36 -0
  209. data/docs/ClustermgmtV40ConfigPhysicalGpuProfile.md +26 -0
  210. data/docs/ClustermgmtV40ConfigPublicKey.md +20 -0
  211. data/docs/ClustermgmtV40ConfigPulseStatus.md +20 -0
  212. data/docs/ClustermgmtV40ConfigRackReference.md +20 -0
  213. data/docs/ClustermgmtV40ConfigRackableUnit.md +34 -0
  214. data/docs/ClustermgmtV40ConfigRackableUnitModel.md +15 -0
  215. data/docs/ClustermgmtV40ConfigRackableUnitNode.md +22 -0
  216. data/docs/ClustermgmtV40ConfigRedundancyStatusDetails.md +20 -0
  217. data/docs/ClustermgmtV40ConfigRegisterVcenterExtensionApiResponse.md +20 -0
  218. data/docs/ClustermgmtV40ConfigRemoveNodeApiResponse.md +20 -0
  219. data/docs/ClustermgmtV40ConfigRemoveSnmpTransportsApiResponse.md +20 -0
  220. data/docs/ClustermgmtV40ConfigRsyslogModuleItem.md +22 -0
  221. data/docs/ClustermgmtV40ConfigRsyslogModuleLogSeverityLevel.md +15 -0
  222. data/docs/ClustermgmtV40ConfigRsyslogModuleName.md +15 -0
  223. data/docs/ClustermgmtV40ConfigRsyslogNetworkProtocol.md +15 -0
  224. data/docs/ClustermgmtV40ConfigRsyslogServer.md +32 -0
  225. data/docs/ClustermgmtV40ConfigSmtpNetwork.md +24 -0
  226. data/docs/ClustermgmtV40ConfigSmtpServerRef.md +22 -0
  227. data/docs/ClustermgmtV40ConfigSmtpType.md +15 -0
  228. data/docs/ClustermgmtV40ConfigSnmpAuthType.md +15 -0
  229. data/docs/ClustermgmtV40ConfigSnmpConfig.md +30 -0
  230. data/docs/ClustermgmtV40ConfigSnmpPrivType.md +15 -0
  231. data/docs/ClustermgmtV40ConfigSnmpProtocol.md +15 -0
  232. data/docs/ClustermgmtV40ConfigSnmpStatusParam.md +18 -0
  233. data/docs/ClustermgmtV40ConfigSnmpTransport.md +20 -0
  234. data/docs/ClustermgmtV40ConfigSnmpTrap.md +40 -0
  235. data/docs/ClustermgmtV40ConfigSnmpTrapVersion.md +15 -0
  236. data/docs/ClustermgmtV40ConfigSnmpUser.md +32 -0
  237. data/docs/ClustermgmtV40ConfigSoftwareMapReference.md +20 -0
  238. data/docs/ClustermgmtV40ConfigSoftwareTypeRef.md +15 -0
  239. data/docs/ClustermgmtV40ConfigStorageContainer.md +76 -0
  240. data/docs/ClustermgmtV40ConfigStorageSummary.md +18 -0
  241. data/docs/ClustermgmtV40ConfigStorageTier.md +15 -0
  242. data/docs/ClustermgmtV40ConfigStorageTierReference.md +15 -0
  243. data/docs/ClustermgmtV40ConfigTaskResponse.md +26 -0
  244. data/docs/ClustermgmtV40ConfigTaskResponseAllOfResponse.md +55 -0
  245. data/docs/ClustermgmtV40ConfigTaskResponseType.md +15 -0
  246. data/docs/ClustermgmtV40ConfigToleranceMessage.md +20 -0
  247. data/docs/ClustermgmtV40ConfigUnconfigureNodeDetails.md +18 -0
  248. data/docs/ClustermgmtV40ConfigUnconfiguredNodeAttributeMap.md +26 -0
  249. data/docs/ClustermgmtV40ConfigUnconfiguredNodeListItem.md +58 -0
  250. data/docs/ClustermgmtV40ConfigUnmountStorageContainerApiResponse.md +20 -0
  251. data/docs/ClustermgmtV40ConfigUnregisterVcenterExtensionApiResponse.md +20 -0
  252. data/docs/ClustermgmtV40ConfigUpdateBmcInfoResponse.md +20 -0
  253. data/docs/ClustermgmtV40ConfigUpdateClusterApiResponse.md +20 -0
  254. data/docs/ClustermgmtV40ConfigUpdateClusterProfileApiResponse.md +20 -0
  255. data/docs/ClustermgmtV40ConfigUpdateRsyslogServerApiResponse.md +20 -0
  256. data/docs/ClustermgmtV40ConfigUpdateSnmpStatusApiResponse.md +20 -0
  257. data/docs/ClustermgmtV40ConfigUpdateSnmpTrapApiResponse.md +20 -0
  258. data/docs/ClustermgmtV40ConfigUpdateSnmpUserApiResponse.md +20 -0
  259. data/docs/ClustermgmtV40ConfigUpdateStorageContainerApiResponse.md +20 -0
  260. data/docs/ClustermgmtV40ConfigUpgradeStatus.md +15 -0
  261. data/docs/ClustermgmtV40ConfigUplinkInfo.md +20 -0
  262. data/docs/ClustermgmtV40ConfigUplinkNetworkItem.md +22 -0
  263. data/docs/ClustermgmtV40ConfigUplinkNode.md +22 -0
  264. data/docs/ClustermgmtV40ConfigUplinks.md +20 -0
  265. data/docs/ClustermgmtV40ConfigUplinksField.md +22 -0
  266. data/docs/ClustermgmtV40ConfigUploadInfoNodeItem.md +32 -0
  267. data/docs/ClustermgmtV40ConfigUserInfo.md +22 -0
  268. data/docs/ClustermgmtV40ConfigValidateBundleInfo.md +18 -0
  269. data/docs/ClustermgmtV40ConfigValidateNodeApiResponse.md +20 -0
  270. data/docs/ClustermgmtV40ConfigValidateNodeParam.md +18 -0
  271. data/docs/ClustermgmtV40ConfigValidateNodeParamSpec.md +49 -0
  272. data/docs/ClustermgmtV40ConfigVcenterCredentials.md +22 -0
  273. data/docs/ClustermgmtV40ConfigVcenterExtension.md +28 -0
  274. data/docs/ClustermgmtV40ConfigVcenterInfo.md +20 -0
  275. data/docs/ClustermgmtV40ConfigVirtualGpuConfig.md +46 -0
  276. data/docs/ClustermgmtV40ConfigVirtualGpuProfile.md +26 -0
  277. data/docs/ClustermgmtV40ConfigVirtualNic.md +46 -0
  278. data/docs/ClustermgmtV40ErrorAppMessage.md +28 -0
  279. data/docs/ClustermgmtV40ErrorErrorResponse.md +18 -0
  280. data/docs/ClustermgmtV40ErrorErrorResponseError.md +49 -0
  281. data/docs/ClustermgmtV40ErrorMessageSeverity.md +15 -0
  282. data/docs/ClustermgmtV40ErrorSchemaValidationError.md +26 -0
  283. data/docs/ClustermgmtV40ErrorSchemaValidationErrorMessage.md +22 -0
  284. data/docs/ClustermgmtV40OperationsEnterHostMaintenanceApiResponse.md +20 -0
  285. data/docs/ClustermgmtV40OperationsEnterHostMaintenanceSpec.md +24 -0
  286. data/docs/ClustermgmtV40OperationsExitHostMaintenanceApiResponse.md +20 -0
  287. data/docs/ClustermgmtV40OperationsHostMaintenanceCommonSpec.md +20 -0
  288. data/docs/ClustermgmtV40StatsClusterStats.md +116 -0
  289. data/docs/ClustermgmtV40StatsClusterStatsApiResponse.md +20 -0
  290. data/docs/ClustermgmtV40StatsClusterStatsApiResponseData.md +49 -0
  291. data/docs/ClustermgmtV40StatsDiskStats.md +88 -0
  292. data/docs/ClustermgmtV40StatsGetDiskStatsApiResponse.md +20 -0
  293. data/docs/ClustermgmtV40StatsGetDiskStatsApiResponseData.md +49 -0
  294. data/docs/ClustermgmtV40StatsGetStorageContainerStatsApiResponse.md +20 -0
  295. data/docs/ClustermgmtV40StatsGetStorageContainerStatsApiResponseData.md +49 -0
  296. data/docs/ClustermgmtV40StatsHostStats.md +114 -0
  297. data/docs/ClustermgmtV40StatsHostStatsApiResponse.md +20 -0
  298. data/docs/ClustermgmtV40StatsHostStatsApiResponseData.md +49 -0
  299. data/docs/ClustermgmtV40StatsStorageContainerStats.md +114 -0
  300. data/docs/ClustermgmtV40StatsTimeValuePair.md +20 -0
  301. data/docs/ClustersApi.md +3725 -0
  302. data/docs/CommonV10ConfigBasicAuth.md +20 -0
  303. data/docs/CommonV10ConfigFQDN.md +18 -0
  304. data/docs/CommonV10ConfigFlag.md +20 -0
  305. data/docs/CommonV10ConfigIPAddress.md +20 -0
  306. data/docs/CommonV10ConfigIPAddressOrFQDN.md +22 -0
  307. data/docs/CommonV10ConfigIPv4Address.md +20 -0
  308. data/docs/CommonV10ConfigIPv6Address.md +20 -0
  309. data/docs/CommonV10ConfigKVPair.md +20 -0
  310. data/docs/CommonV10ConfigKVPairValue.md +59 -0
  311. data/docs/CommonV10ConfigMapOfStringWrapper.md +18 -0
  312. data/docs/CommonV10ConfigMessage.md +24 -0
  313. data/docs/CommonV10ConfigMessageSeverity.md +15 -0
  314. data/docs/CommonV10ConfigTenantAwareModel.md +18 -0
  315. data/docs/CommonV10ResponseApiLink.md +20 -0
  316. data/docs/CommonV10ResponseApiResponseMetadata.md +26 -0
  317. data/docs/CommonV10ResponseExternalizableAbstractModel.md +22 -0
  318. data/docs/CommonV10StatsDownSamplingOperator.md +15 -0
  319. data/docs/CommonV10StatsTimeIntValuePair.md +20 -0
  320. data/docs/CreateCluster202Response.md +20 -0
  321. data/docs/CreateCluster4XXResponse.md +20 -0
  322. data/docs/CreateClusterProfile202Response.md +20 -0
  323. data/docs/CreateClusterProfile4XXResponse.md +20 -0
  324. data/docs/CreateRsyslogServer202Response.md +20 -0
  325. data/docs/CreateRsyslogServer4XXResponse.md +20 -0
  326. data/docs/CreateSnmpTrap202Response.md +20 -0
  327. data/docs/CreateSnmpTrap4XXResponse.md +20 -0
  328. data/docs/CreateSnmpUser202Response.md +20 -0
  329. data/docs/CreateSnmpUser4XXResponse.md +20 -0
  330. data/docs/CreateStorageContainer202Response.md +20 -0
  331. data/docs/CreateStorageContainer4XXResponse.md +20 -0
  332. data/docs/DeleteClusterById202Response.md +20 -0
  333. data/docs/DeleteClusterById4XXResponse.md +20 -0
  334. data/docs/DeleteClusterProfileById202Response.md +20 -0
  335. data/docs/DeleteClusterProfileById4XXResponse.md +20 -0
  336. data/docs/DeleteDiskById202Response.md +20 -0
  337. data/docs/DeleteDiskById4XXResponse.md +20 -0
  338. data/docs/DeleteRsyslogServerById202Response.md +20 -0
  339. data/docs/DeleteRsyslogServerById4XXResponse.md +20 -0
  340. data/docs/DeleteSnmpTrapById202Response.md +20 -0
  341. data/docs/DeleteSnmpTrapById4XXResponse.md +20 -0
  342. data/docs/DeleteSnmpUserById202Response.md +20 -0
  343. data/docs/DeleteSnmpUserById4XXResponse.md +20 -0
  344. data/docs/DeleteStorageContainerById202Response.md +20 -0
  345. data/docs/DeleteStorageContainerById4XXResponse.md +20 -0
  346. data/docs/DisassociateCategoriesFromCluster202Response.md +20 -0
  347. data/docs/DisassociateCategoriesFromCluster4XXResponse.md +20 -0
  348. data/docs/DisassociateClusterFromClusterProfile202Response.md +20 -0
  349. data/docs/DisassociateClusterFromClusterProfile4XXResponse.md +20 -0
  350. data/docs/DiscoverUnconfiguredNodes202Response.md +20 -0
  351. data/docs/DiscoverUnconfiguredNodes4XXResponse.md +20 -0
  352. data/docs/DisksApi.md +411 -0
  353. data/docs/EnterHostMaintenance202Response.md +20 -0
  354. data/docs/EnterHostMaintenance4XXResponse.md +20 -0
  355. data/docs/ExitHostMaintenance202Response.md +20 -0
  356. data/docs/ExitHostMaintenance4XXResponse.md +20 -0
  357. data/docs/ExpandCluster202Response.md +20 -0
  358. data/docs/ExpandCluster4XXResponse.md +20 -0
  359. data/docs/FetchNodeNetworkingDetails202Response.md +20 -0
  360. data/docs/FetchNodeNetworkingDetails4XXResponse.md +20 -0
  361. data/docs/FetchTaskResponse200Response.md +20 -0
  362. data/docs/FetchTaskResponse4XXResponse.md +20 -0
  363. data/docs/GetBmcInfo200Response.md +20 -0
  364. data/docs/GetBmcInfo4XXResponse.md +20 -0
  365. data/docs/GetClusterById200Response.md +20 -0
  366. data/docs/GetClusterById4XXResponse.md +20 -0
  367. data/docs/GetClusterProfileById200Response.md +20 -0
  368. data/docs/GetClusterProfileById4XXResponse.md +20 -0
  369. data/docs/GetClusterStats200Response.md +20 -0
  370. data/docs/GetClusterStats4XXResponse.md +20 -0
  371. data/docs/GetDiskById200Response.md +20 -0
  372. data/docs/GetDiskById4XXResponse.md +20 -0
  373. data/docs/GetDiskStats200Response.md +20 -0
  374. data/docs/GetDiskStats4XXResponse.md +20 -0
  375. data/docs/GetHostById200Response.md +20 -0
  376. data/docs/GetHostById4XXResponse.md +20 -0
  377. data/docs/GetHostNicById200Response.md +20 -0
  378. data/docs/GetHostNicById4XXResponse.md +20 -0
  379. data/docs/GetHostStats200Response.md +20 -0
  380. data/docs/GetHostStats4XXResponse.md +20 -0
  381. data/docs/GetRackableUnitById200Response.md +20 -0
  382. data/docs/GetRackableUnitById4XXResponse.md +20 -0
  383. data/docs/GetRsyslogServerById200Response.md +20 -0
  384. data/docs/GetRsyslogServerById4XXResponse.md +20 -0
  385. data/docs/GetSnmpConfigByClusterId200Response.md +20 -0
  386. data/docs/GetSnmpConfigByClusterId4XXResponse.md +20 -0
  387. data/docs/GetSnmpTrapById200Response.md +20 -0
  388. data/docs/GetSnmpTrapById4XXResponse.md +20 -0
  389. data/docs/GetSnmpUserById200Response.md +20 -0
  390. data/docs/GetSnmpUserById4XXResponse.md +20 -0
  391. data/docs/GetStorageContainerById200Response.md +20 -0
  392. data/docs/GetStorageContainerById4XXResponse.md +20 -0
  393. data/docs/GetStorageContainerStats200Response.md +20 -0
  394. data/docs/GetStorageContainerStats4XXResponse.md +20 -0
  395. data/docs/GetVcenterExtensionById200Response.md +20 -0
  396. data/docs/GetVcenterExtensionById4XXResponse.md +20 -0
  397. data/docs/GetVirtualNicById200Response.md +20 -0
  398. data/docs/GetVirtualNicById4XXResponse.md +20 -0
  399. data/docs/ListClusterProfiles200Response.md +20 -0
  400. data/docs/ListClusterProfiles4XXResponse.md +20 -0
  401. data/docs/ListClusters200Response.md +20 -0
  402. data/docs/ListClusters4XXResponse.md +20 -0
  403. data/docs/ListDataStoresByClusterId200Response.md +20 -0
  404. data/docs/ListDataStoresByClusterId4XXResponse.md +20 -0
  405. data/docs/ListDisks200Response.md +20 -0
  406. data/docs/ListDisks4XXResponse.md +20 -0
  407. data/docs/ListHostNicsByHostId200Response.md +20 -0
  408. data/docs/ListHostNicsByHostId4XXResponse.md +20 -0
  409. data/docs/ListHosts200Response.md +20 -0
  410. data/docs/ListHosts4XXResponse.md +20 -0
  411. data/docs/ListHostsByClusterId200Response.md +20 -0
  412. data/docs/ListHostsByClusterId4XXResponse.md +20 -0
  413. data/docs/ListPcieDevices200Response.md +20 -0
  414. data/docs/ListPcieDevices4XXResponse.md +20 -0
  415. data/docs/ListPhysicalGpuProfiles200Response.md +20 -0
  416. data/docs/ListPhysicalGpuProfiles4XXResponse.md +20 -0
  417. data/docs/ListRackableUnitsByClusterId200Response.md +20 -0
  418. data/docs/ListRackableUnitsByClusterId4XXResponse.md +20 -0
  419. data/docs/ListRsyslogServersByClusterId200Response.md +20 -0
  420. data/docs/ListRsyslogServersByClusterId4XXResponse.md +20 -0
  421. data/docs/ListStorageContainers200Response.md +20 -0
  422. data/docs/ListStorageContainers4XXResponse.md +20 -0
  423. data/docs/ListVcenterExtensions200Response.md +20 -0
  424. data/docs/ListVcenterExtensions4XXResponse.md +20 -0
  425. data/docs/ListVirtualGpuProfiles200Response.md +20 -0
  426. data/docs/ListVirtualGpuProfiles4XXResponse.md +20 -0
  427. data/docs/ListVirtualNicsByHostId200Response.md +20 -0
  428. data/docs/ListVirtualNicsByHostId4XXResponse.md +20 -0
  429. data/docs/MountStorageContainer202Response.md +20 -0
  430. data/docs/MountStorageContainer4XXResponse.md +20 -0
  431. data/docs/PcieDevicesApi.md +91 -0
  432. data/docs/PrismV40ConfigTaskReference.md +18 -0
  433. data/docs/RegisterVcenterExtension202Response.md +20 -0
  434. data/docs/RegisterVcenterExtension4XXResponse.md +20 -0
  435. data/docs/RemoveNode202Response.md +20 -0
  436. data/docs/RemoveNode4XXResponse.md +20 -0
  437. data/docs/RemoveSnmpTransport202Response.md +20 -0
  438. data/docs/RemoveSnmpTransport4XXResponse.md +20 -0
  439. data/docs/StorageContainersApi.md +739 -0
  440. data/docs/UnmountStorageContainer202Response.md +20 -0
  441. data/docs/UnmountStorageContainer4XXResponse.md +20 -0
  442. data/docs/UnregisterVcenterExtension202Response.md +20 -0
  443. data/docs/UnregisterVcenterExtension4XXResponse.md +20 -0
  444. data/docs/UpdateBmcInfo202Response.md +20 -0
  445. data/docs/UpdateBmcInfo4XXResponse.md +20 -0
  446. data/docs/UpdateClusterById202Response.md +20 -0
  447. data/docs/UpdateClusterById4XXResponse.md +20 -0
  448. data/docs/UpdateClusterProfileById202Response.md +20 -0
  449. data/docs/UpdateClusterProfileById4XXResponse.md +20 -0
  450. data/docs/UpdateRsyslogServerById202Response.md +20 -0
  451. data/docs/UpdateRsyslogServerById4XXResponse.md +20 -0
  452. data/docs/UpdateSnmpStatus202Response.md +20 -0
  453. data/docs/UpdateSnmpStatus4XXResponse.md +20 -0
  454. data/docs/UpdateSnmpTrapById202Response.md +20 -0
  455. data/docs/UpdateSnmpTrapById4XXResponse.md +20 -0
  456. data/docs/UpdateSnmpUserById202Response.md +20 -0
  457. data/docs/UpdateSnmpUserById4XXResponse.md +20 -0
  458. data/docs/UpdateStorageContainerById202Response.md +20 -0
  459. data/docs/UpdateStorageContainerById4XXResponse.md +20 -0
  460. data/docs/ValidateNode202Response.md +20 -0
  461. data/docs/ValidateNode4XXResponse.md +20 -0
  462. data/docs/VcenterExtensionsApi.md +327 -0
  463. data/git_push.sh +57 -0
  464. data/lib/nutanix_clustermgmt/api/bmc_api.rb +205 -0
  465. data/lib/nutanix_clustermgmt/api/cluster_profiles_api.rb +595 -0
  466. data/lib/nutanix_clustermgmt/api/clusters_api.rb +3903 -0
  467. data/lib/nutanix_clustermgmt/api/disks_api.rb +416 -0
  468. data/lib/nutanix_clustermgmt/api/pcie_devices_api.rb +103 -0
  469. data/lib/nutanix_clustermgmt/api/storage_containers_api.rb +771 -0
  470. data/lib/nutanix_clustermgmt/api/vcenter_extensions_api.rb +343 -0
  471. data/lib/nutanix_clustermgmt/api_client.rb +394 -0
  472. data/lib/nutanix_clustermgmt/api_error.rb +58 -0
  473. data/lib/nutanix_clustermgmt/configuration.rb +315 -0
  474. data/lib/nutanix_clustermgmt/models/add_disk202_response.rb +224 -0
  475. data/lib/nutanix_clustermgmt/models/add_disk4_xx_response.rb +224 -0
  476. data/lib/nutanix_clustermgmt/models/add_snmp_transport202_response.rb +224 -0
  477. data/lib/nutanix_clustermgmt/models/add_snmp_transport4_xx_response.rb +224 -0
  478. data/lib/nutanix_clustermgmt/models/apply_cluster_profile202_response.rb +224 -0
  479. data/lib/nutanix_clustermgmt/models/apply_cluster_profile4_xx_response.rb +224 -0
  480. data/lib/nutanix_clustermgmt/models/associate_categories_to_cluster202_response.rb +224 -0
  481. data/lib/nutanix_clustermgmt/models/associate_categories_to_cluster4_xx_response.rb +224 -0
  482. data/lib/nutanix_clustermgmt/models/check_hypervisor_requirements202_response.rb +224 -0
  483. data/lib/nutanix_clustermgmt/models/check_hypervisor_requirements4_xx_response.rb +224 -0
  484. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_ahv_config_list_pcie_devices_api_response.rb +224 -0
  485. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_ahv_config_list_pcie_devices_api_response_data.rb +105 -0
  486. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_ahv_config_pcie_device.rb +455 -0
  487. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_ahv_config_pcie_device_configuration.rb +276 -0
  488. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_ahv_config_pcie_device_state.rb +45 -0
  489. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_acropolis_connection_state.rb +42 -0
  490. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_add_disk_api_response.rb +224 -0
  491. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_add_snmp_transports_api_response.rb +224 -0
  492. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_address_type.rb +42 -0
  493. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_apply_cluster_profile_api_response.rb +224 -0
  494. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_associate_categories_to_cluster_api_response.rb +224 -0
  495. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_associate_categories_to_cluster_api_response_data.rb +105 -0
  496. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_attribute_item.rb +226 -0
  497. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_authorized_public_key.rb +245 -0
  498. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_backplane_network_params.rb +244 -0
  499. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_block_item.rb +245 -0
  500. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_bmc_info.rb +255 -0
  501. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_build_info.rb +216 -0
  502. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_build_reference.rb +256 -0
  503. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_bundle_info.rb +235 -0
  504. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_bundle_param.rb +269 -0
  505. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cache_deduplication.rb +43 -0
  506. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_category_entity_references.rb +253 -0
  507. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_check_hypervisor_requirements_api_response.rb +224 -0
  508. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster.rb +529 -0
  509. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_arch_reference.rb +42 -0
  510. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_config.rb +225 -0
  511. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_config_reference.rb +592 -0
  512. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_fault_tolerance_ref.rb +44 -0
  513. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_function_ref.rb +47 -0
  514. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_network.rb +326 -0
  515. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_network_reference.rb +552 -0
  516. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_profile.rb +756 -0
  517. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_reference.rb +266 -0
  518. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_reference_list_spec.rb +252 -0
  519. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_component_fault_tolerance.rb +276 -0
  520. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_component_type.rb +48 -0
  521. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_compute_node_item.rb +354 -0
  522. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_compute_non_migratable_vms_spec.rb +262 -0
  523. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_config_params.rb +285 -0
  524. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_config_type.rb +47 -0
  525. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_controller_vm_reference.rb +293 -0
  526. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_create_cluster_api_response.rb +224 -0
  527. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_create_cluster_profile_api_response.rb +224 -0
  528. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_create_rsyslog_server_api_response.rb +224 -0
  529. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_create_snmp_trap_api_response.rb +224 -0
  530. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_create_snmp_user_api_response.rb +224 -0
  531. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_create_storage_container_api_response.rb +224 -0
  532. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_credential_status.rb +43 -0
  533. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_data_store.rb +522 -0
  534. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_data_store_mount.rb +436 -0
  535. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_data_store_unmount.rb +387 -0
  536. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_delete_cluster_api_response.rb +224 -0
  537. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_delete_cluster_profile_api_response.rb +224 -0
  538. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_delete_disk_api_response.rb +224 -0
  539. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_delete_rsyslog_server_api_response.rb +224 -0
  540. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_delete_snmp_trap_api_response.rb +224 -0
  541. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_delete_snmp_user_api_response.rb +224 -0
  542. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_delete_storage_container_api_response.rb +224 -0
  543. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_digital_certificate_map_reference.rb +226 -0
  544. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disassociate_categories_from_cluster_api_response.rb +224 -0
  545. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disassociate_cluster_from_cluster_profile_api_response.rb +224 -0
  546. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_discover_unconfigured_nodes_api_response.rb +224 -0
  547. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disk.rb +815 -0
  548. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disk_addition_spec.rb +251 -0
  549. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disk_advance_config.rb +366 -0
  550. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disk_partition_info.rb +246 -0
  551. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disk_reference.rb +298 -0
  552. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disk_status.rb +44 -0
  553. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_domain_awareness_level.rb +44 -0
  554. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_domain_fault_tolerance.rb +277 -0
  555. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_domain_type.rb +46 -0
  556. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_drive_replacement_option.rb +42 -0
  557. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_encryption_option_info.rb +43 -0
  558. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_encryption_scope_info.rb +42 -0
  559. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_encryption_status.rb +42 -0
  560. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_erasure_code_status.rb +43 -0
  561. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_expand_cluster_api_response.rb +224 -0
  562. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_expand_cluster_params.rb +251 -0
  563. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_fault_tolerance_state.rb +284 -0
  564. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_fetch_node_networking_details_api_response.rb +224 -0
  565. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_fetch_task_api_response.rb +224 -0
  566. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_fetch_task_api_response_data.rb +105 -0
  567. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_bmc_info_response.rb +224 -0
  568. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_bmc_info_response_data.rb +105 -0
  569. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_cluster_api_response.rb +224 -0
  570. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_cluster_api_response_data.rb +105 -0
  571. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_cluster_profile_api_response.rb +224 -0
  572. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_cluster_profile_api_response_data.rb +105 -0
  573. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_disk_api_response.rb +224 -0
  574. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_disk_api_response_data.rb +105 -0
  575. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_host_api_response.rb +224 -0
  576. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_host_api_response_data.rb +105 -0
  577. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_host_nic_api_response.rb +224 -0
  578. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_host_nic_api_response_data.rb +105 -0
  579. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_rackable_unit_api_response.rb +224 -0
  580. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_rackable_unit_api_response_data.rb +105 -0
  581. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_rsyslog_server_api_response.rb +224 -0
  582. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_rsyslog_server_api_response_data.rb +105 -0
  583. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_snmp_config_by_cluster_id_api_response.rb +224 -0
  584. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_snmp_config_by_cluster_id_api_response_data.rb +105 -0
  585. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_snmp_trap_api_response.rb +224 -0
  586. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_snmp_trap_api_response_data.rb +105 -0
  587. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_snmp_user_api_response.rb +224 -0
  588. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_snmp_user_api_response_data.rb +105 -0
  589. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_storage_container_api_response.rb +224 -0
  590. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_storage_container_api_response_data.rb +105 -0
  591. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_vcenter_extension_api_response.rb +224 -0
  592. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_vcenter_extension_api_response_data.rb +105 -0
  593. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_virtual_nic_api_response.rb +224 -0
  594. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_virtual_nic_api_response_data.rb +105 -0
  595. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_gpu_mode.rb +43 -0
  596. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_gpu_type.rb +43 -0
  597. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb +861 -0
  598. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host_gpu.rb +381 -0
  599. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host_name_param.rb +242 -0
  600. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host_nic.rb +683 -0
  601. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host_type_enum.rb +43 -0
  602. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_http_proxy_config.rb +340 -0
  603. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_http_proxy_type.rb +43 -0
  604. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_http_proxy_white_list_config.rb +261 -0
  605. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_http_proxy_white_list_target_type.rb +45 -0
  606. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hyperv_credentials.rb +224 -0
  607. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hypervisor_iso_map.rb +268 -0
  608. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hypervisor_reference.rb +332 -0
  609. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hypervisor_state.rb +50 -0
  610. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hypervisor_type.rb +45 -0
  611. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hypervisor_upload_info.rb +256 -0
  612. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hypervisor_upload_node_list_item.rb +338 -0
  613. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hypervisor_upload_param.rb +253 -0
  614. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_ipmi_reference.rb +244 -0
  615. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_key_management_device_to_cert_status_info.rb +245 -0
  616. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_key_management_server_type.rb +43 -0
  617. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_cluster_profiles_api_response.rb +224 -0
  618. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_cluster_profiles_api_response_data.rb +105 -0
  619. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_clusters_api_response.rb +224 -0
  620. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_clusters_api_response_data.rb +105 -0
  621. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_data_stores_by_cluster_id_api_response.rb +224 -0
  622. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_data_stores_by_cluster_id_api_response_data.rb +105 -0
  623. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_disks_api_response.rb +224 -0
  624. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_disks_api_response_data.rb +105 -0
  625. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_host_nics_by_host_id_api_response.rb +224 -0
  626. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_host_nics_by_host_id_api_response_data.rb +105 -0
  627. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_hosts_api_response.rb +224 -0
  628. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_hosts_by_cluster_id_api_response.rb +224 -0
  629. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_hosts_by_cluster_id_api_response_data.rb +105 -0
  630. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_physical_gpu_profiles_api_response.rb +224 -0
  631. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_physical_gpu_profiles_api_response_data.rb +105 -0
  632. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_rackable_units_by_cluster_id_api_response.rb +224 -0
  633. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_rackable_units_by_cluster_id_api_response_data.rb +105 -0
  634. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_rsyslog_servers_by_cluster_id_api_response.rb +224 -0
  635. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_rsyslog_servers_by_cluster_id_api_response_data.rb +105 -0
  636. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_storage_containers_api_response.rb +224 -0
  637. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_storage_containers_api_response_data.rb +105 -0
  638. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_vcenter_extensions_api_response.rb +224 -0
  639. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_vcenter_extensions_api_response_data.rb +105 -0
  640. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_virtual_gpu_profiles_api_response.rb +224 -0
  641. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_virtual_gpu_profiles_api_response_data.rb +105 -0
  642. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_virtual_nics_by_host_id_api_response.rb +224 -0
  643. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_virtual_nics_by_host_id_api_response_data.rb +105 -0
  644. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_managed_cluster.rb +304 -0
  645. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_management_server_ref.rb +276 -0
  646. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_management_server_type.rb +41 -0
  647. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_mount_storage_container_api_response.rb +224 -0
  648. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_multi_domain_fault_tolerance_status.rb +351 -0
  649. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_name_mac_ref.rb +266 -0
  650. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_name_network_ref.rb +306 -0
  651. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_network_info.rb +286 -0
  652. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_network_switch_interface.rb +553 -0
  653. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_details.rb +263 -0
  654. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_discovery_params.rb +377 -0
  655. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_info.rb +444 -0
  656. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_item.rb +495 -0
  657. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_list_item_reference.rb +255 -0
  658. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_list_networking_details.rb +425 -0
  659. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_network_config.rb +215 -0
  660. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_networking_details.rb +295 -0
  661. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_param.rb +395 -0
  662. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_reference.rb +256 -0
  663. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_removal_extra_param.rb +236 -0
  664. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_removal_params.rb +282 -0
  665. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_resource_config.rb +267 -0
  666. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_status.rb +46 -0
  667. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_non_compatible_cluster_reference.rb +277 -0
  668. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_non_migratable_vm_info.rb +276 -0
  669. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_non_migratable_vms_result.rb +351 -0
  670. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_on_disk_dedup.rb +43 -0
  671. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_operation_mode.rb +45 -0
  672. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_partition_type.rb +42 -0
  673. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_physical_gpu_config.rb +354 -0
  674. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_physical_gpu_profile.rb +361 -0
  675. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_pii_scrubbing_level.rb +42 -0
  676. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_public_key.rb +259 -0
  677. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_pulse_status.rb +247 -0
  678. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rack_reference.rb +247 -0
  679. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rackable_unit.rb +441 -0
  680. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rackable_unit_model.rb +56 -0
  681. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rackable_unit_node.rb +257 -0
  682. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_redundancy_status_details.rb +226 -0
  683. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_register_vcenter_extension_api_response.rb +224 -0
  684. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_remove_node_api_response.rb +224 -0
  685. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_remove_snmp_transports_api_response.rb +224 -0
  686. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rsyslog_module_item.rb +272 -0
  687. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rsyslog_module_log_severity_level.rb +48 -0
  688. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rsyslog_module_name.rb +60 -0
  689. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rsyslog_network_protocol.rb +43 -0
  690. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rsyslog_server.rb +459 -0
  691. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_smtp_network.rb +271 -0
  692. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_smtp_server_ref.rb +291 -0
  693. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_smtp_type.rb +43 -0
  694. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_auth_type.rb +42 -0
  695. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_config.rb +442 -0
  696. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_priv_type.rb +42 -0
  697. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_protocol.rb +44 -0
  698. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_status_param.rb +223 -0
  699. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_transport.rb +261 -0
  700. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_trap.rb +494 -0
  701. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_trap_version.rb +42 -0
  702. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_user.rb +464 -0
  703. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_software_map_reference.rb +247 -0
  704. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_software_type_ref.rb +43 -0
  705. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_storage_container.rb +781 -0
  706. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_storage_summary.rb +216 -0
  707. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_storage_tier.rb +45 -0
  708. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_storage_tier_reference.rb +43 -0
  709. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_task_response.rb +351 -0
  710. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_task_response_all_of_response.rb +109 -0
  711. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_task_response_type.rb +45 -0
  712. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_tolerance_message.rb +256 -0
  713. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_unconfigure_node_details.rb +246 -0
  714. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_unconfigured_node_attribute_map.rb +256 -0
  715. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_unconfigured_node_list_item.rb +483 -0
  716. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_unmount_storage_container_api_response.rb +224 -0
  717. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_unregister_vcenter_extension_api_response.rb +224 -0
  718. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_bmc_info_response.rb +224 -0
  719. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_cluster_api_response.rb +224 -0
  720. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_cluster_profile_api_response.rb +224 -0
  721. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_rsyslog_server_api_response.rb +224 -0
  722. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_snmp_status_api_response.rb +224 -0
  723. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_snmp_trap_api_response.rb +224 -0
  724. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_snmp_user_api_response.rb +224 -0
  725. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_storage_container_api_response.rb +224 -0
  726. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_upgrade_status.rb +49 -0
  727. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_uplink_info.rb +255 -0
  728. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_uplink_network_item.rb +284 -0
  729. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_uplink_node.rb +278 -0
  730. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_uplinks.rb +286 -0
  731. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_uplinks_field.rb +276 -0
  732. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_upload_info_node_item.rb +368 -0
  733. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_user_info.rb +274 -0
  734. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_validate_bundle_info.rb +237 -0
  735. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_validate_node_api_response.rb +224 -0
  736. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_validate_node_param.rb +222 -0
  737. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_validate_node_param_spec.rb +106 -0
  738. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_vcenter_credentials.rb +271 -0
  739. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_vcenter_extension.rb +384 -0
  740. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_vcenter_info.rb +238 -0
  741. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_virtual_gpu_config.rb +463 -0
  742. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_virtual_gpu_profile.rb +361 -0
  743. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_virtual_nic.rb +583 -0
  744. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_error_app_message.rb +291 -0
  745. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_error_error_response.rb +215 -0
  746. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_error_error_response_error.rb +105 -0
  747. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_error_message_severity.rb +43 -0
  748. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_error_schema_validation_error.rb +258 -0
  749. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_error_schema_validation_error_message.rb +236 -0
  750. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_operations_enter_host_maintenance_api_response.rb +224 -0
  751. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_operations_enter_host_maintenance_spec.rb +275 -0
  752. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_operations_exit_host_maintenance_api_response.rb +224 -0
  753. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_operations_host_maintenance_common_spec.rb +244 -0
  754. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_cluster_stats.rb +876 -0
  755. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_cluster_stats_api_response.rb +224 -0
  756. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_cluster_stats_api_response_data.rb +105 -0
  757. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb +1631 -0
  758. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_get_disk_stats_api_response.rb +224 -0
  759. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_get_disk_stats_api_response_data.rb +105 -0
  760. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_get_storage_container_stats_api_response.rb +224 -0
  761. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_get_storage_container_stats_api_response_data.rb +105 -0
  762. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb +864 -0
  763. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats_api_response.rb +224 -0
  764. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats_api_response_data.rb +105 -0
  765. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb +2142 -0
  766. data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_time_value_pair.rb +226 -0
  767. data/lib/nutanix_clustermgmt/models/common_v10_config_basic_auth.rb +296 -0
  768. data/lib/nutanix_clustermgmt/models/common_v10_config_flag.rb +256 -0
  769. data/lib/nutanix_clustermgmt/models/common_v10_config_fqdn.rb +237 -0
  770. data/lib/nutanix_clustermgmt/models/common_v10_config_ip_address.rb +224 -0
  771. data/lib/nutanix_clustermgmt/models/common_v10_config_ip_address_or_fqdn.rb +233 -0
  772. data/lib/nutanix_clustermgmt/models/common_v10_config_ipv4_address.rb +284 -0
  773. data/lib/nutanix_clustermgmt/models/common_v10_config_ipv6_address.rb +284 -0
  774. data/lib/nutanix_clustermgmt/models/common_v10_config_kv_pair.rb +253 -0
  775. data/lib/nutanix_clustermgmt/models/common_v10_config_kv_pair_value.rb +111 -0
  776. data/lib/nutanix_clustermgmt/models/common_v10_config_map_of_string_wrapper.rb +218 -0
  777. data/lib/nutanix_clustermgmt/models/common_v10_config_message.rb +268 -0
  778. data/lib/nutanix_clustermgmt/models/common_v10_config_message_severity.rb +43 -0
  779. data/lib/nutanix_clustermgmt/models/common_v10_config_tenant_aware_model.rb +237 -0
  780. data/lib/nutanix_clustermgmt/models/common_v10_response_api_link.rb +226 -0
  781. data/lib/nutanix_clustermgmt/models/common_v10_response_api_response_metadata.rb +376 -0
  782. data/lib/nutanix_clustermgmt/models/common_v10_response_externalizable_abstract_model.rb +312 -0
  783. data/lib/nutanix_clustermgmt/models/common_v10_stats_down_sampling_operator.rb +46 -0
  784. data/lib/nutanix_clustermgmt/models/common_v10_stats_time_int_value_pair.rb +226 -0
  785. data/lib/nutanix_clustermgmt/models/create_cluster202_response.rb +224 -0
  786. data/lib/nutanix_clustermgmt/models/create_cluster4_xx_response.rb +224 -0
  787. data/lib/nutanix_clustermgmt/models/create_cluster_profile202_response.rb +224 -0
  788. data/lib/nutanix_clustermgmt/models/create_cluster_profile4_xx_response.rb +224 -0
  789. data/lib/nutanix_clustermgmt/models/create_rsyslog_server202_response.rb +224 -0
  790. data/lib/nutanix_clustermgmt/models/create_rsyslog_server4_xx_response.rb +224 -0
  791. data/lib/nutanix_clustermgmt/models/create_snmp_trap202_response.rb +224 -0
  792. data/lib/nutanix_clustermgmt/models/create_snmp_trap4_xx_response.rb +224 -0
  793. data/lib/nutanix_clustermgmt/models/create_snmp_user202_response.rb +224 -0
  794. data/lib/nutanix_clustermgmt/models/create_snmp_user4_xx_response.rb +224 -0
  795. data/lib/nutanix_clustermgmt/models/create_storage_container202_response.rb +224 -0
  796. data/lib/nutanix_clustermgmt/models/create_storage_container4_xx_response.rb +224 -0
  797. data/lib/nutanix_clustermgmt/models/delete_cluster_by_id202_response.rb +224 -0
  798. data/lib/nutanix_clustermgmt/models/delete_cluster_by_id4_xx_response.rb +224 -0
  799. data/lib/nutanix_clustermgmt/models/delete_cluster_profile_by_id202_response.rb +224 -0
  800. data/lib/nutanix_clustermgmt/models/delete_cluster_profile_by_id4_xx_response.rb +224 -0
  801. data/lib/nutanix_clustermgmt/models/delete_disk_by_id202_response.rb +224 -0
  802. data/lib/nutanix_clustermgmt/models/delete_disk_by_id4_xx_response.rb +224 -0
  803. data/lib/nutanix_clustermgmt/models/delete_rsyslog_server_by_id202_response.rb +224 -0
  804. data/lib/nutanix_clustermgmt/models/delete_rsyslog_server_by_id4_xx_response.rb +224 -0
  805. data/lib/nutanix_clustermgmt/models/delete_snmp_trap_by_id202_response.rb +224 -0
  806. data/lib/nutanix_clustermgmt/models/delete_snmp_trap_by_id4_xx_response.rb +224 -0
  807. data/lib/nutanix_clustermgmt/models/delete_snmp_user_by_id202_response.rb +224 -0
  808. data/lib/nutanix_clustermgmt/models/delete_snmp_user_by_id4_xx_response.rb +224 -0
  809. data/lib/nutanix_clustermgmt/models/delete_storage_container_by_id202_response.rb +224 -0
  810. data/lib/nutanix_clustermgmt/models/delete_storage_container_by_id4_xx_response.rb +224 -0
  811. data/lib/nutanix_clustermgmt/models/disassociate_categories_from_cluster202_response.rb +224 -0
  812. data/lib/nutanix_clustermgmt/models/disassociate_categories_from_cluster4_xx_response.rb +224 -0
  813. data/lib/nutanix_clustermgmt/models/disassociate_cluster_from_cluster_profile202_response.rb +224 -0
  814. data/lib/nutanix_clustermgmt/models/disassociate_cluster_from_cluster_profile4_xx_response.rb +224 -0
  815. data/lib/nutanix_clustermgmt/models/discover_unconfigured_nodes202_response.rb +224 -0
  816. data/lib/nutanix_clustermgmt/models/discover_unconfigured_nodes4_xx_response.rb +224 -0
  817. data/lib/nutanix_clustermgmt/models/enter_host_maintenance202_response.rb +224 -0
  818. data/lib/nutanix_clustermgmt/models/enter_host_maintenance4_xx_response.rb +224 -0
  819. data/lib/nutanix_clustermgmt/models/exit_host_maintenance202_response.rb +224 -0
  820. data/lib/nutanix_clustermgmt/models/exit_host_maintenance4_xx_response.rb +224 -0
  821. data/lib/nutanix_clustermgmt/models/expand_cluster202_response.rb +224 -0
  822. data/lib/nutanix_clustermgmt/models/expand_cluster4_xx_response.rb +224 -0
  823. data/lib/nutanix_clustermgmt/models/fetch_node_networking_details202_response.rb +224 -0
  824. data/lib/nutanix_clustermgmt/models/fetch_node_networking_details4_xx_response.rb +224 -0
  825. data/lib/nutanix_clustermgmt/models/fetch_task_response200_response.rb +224 -0
  826. data/lib/nutanix_clustermgmt/models/fetch_task_response4_xx_response.rb +224 -0
  827. data/lib/nutanix_clustermgmt/models/get_bmc_info200_response.rb +224 -0
  828. data/lib/nutanix_clustermgmt/models/get_bmc_info4_xx_response.rb +224 -0
  829. data/lib/nutanix_clustermgmt/models/get_cluster_by_id200_response.rb +224 -0
  830. data/lib/nutanix_clustermgmt/models/get_cluster_by_id4_xx_response.rb +224 -0
  831. data/lib/nutanix_clustermgmt/models/get_cluster_profile_by_id200_response.rb +224 -0
  832. data/lib/nutanix_clustermgmt/models/get_cluster_profile_by_id4_xx_response.rb +224 -0
  833. data/lib/nutanix_clustermgmt/models/get_cluster_stats200_response.rb +224 -0
  834. data/lib/nutanix_clustermgmt/models/get_cluster_stats4_xx_response.rb +224 -0
  835. data/lib/nutanix_clustermgmt/models/get_disk_by_id200_response.rb +224 -0
  836. data/lib/nutanix_clustermgmt/models/get_disk_by_id4_xx_response.rb +224 -0
  837. data/lib/nutanix_clustermgmt/models/get_disk_stats200_response.rb +224 -0
  838. data/lib/nutanix_clustermgmt/models/get_disk_stats4_xx_response.rb +224 -0
  839. data/lib/nutanix_clustermgmt/models/get_host_by_id200_response.rb +224 -0
  840. data/lib/nutanix_clustermgmt/models/get_host_by_id4_xx_response.rb +224 -0
  841. data/lib/nutanix_clustermgmt/models/get_host_nic_by_id200_response.rb +224 -0
  842. data/lib/nutanix_clustermgmt/models/get_host_nic_by_id4_xx_response.rb +224 -0
  843. data/lib/nutanix_clustermgmt/models/get_host_stats200_response.rb +224 -0
  844. data/lib/nutanix_clustermgmt/models/get_host_stats4_xx_response.rb +224 -0
  845. data/lib/nutanix_clustermgmt/models/get_rackable_unit_by_id200_response.rb +224 -0
  846. data/lib/nutanix_clustermgmt/models/get_rackable_unit_by_id4_xx_response.rb +224 -0
  847. data/lib/nutanix_clustermgmt/models/get_rsyslog_server_by_id200_response.rb +224 -0
  848. data/lib/nutanix_clustermgmt/models/get_rsyslog_server_by_id4_xx_response.rb +224 -0
  849. data/lib/nutanix_clustermgmt/models/get_snmp_config_by_cluster_id200_response.rb +224 -0
  850. data/lib/nutanix_clustermgmt/models/get_snmp_config_by_cluster_id4_xx_response.rb +224 -0
  851. data/lib/nutanix_clustermgmt/models/get_snmp_trap_by_id200_response.rb +224 -0
  852. data/lib/nutanix_clustermgmt/models/get_snmp_trap_by_id4_xx_response.rb +224 -0
  853. data/lib/nutanix_clustermgmt/models/get_snmp_user_by_id200_response.rb +224 -0
  854. data/lib/nutanix_clustermgmt/models/get_snmp_user_by_id4_xx_response.rb +224 -0
  855. data/lib/nutanix_clustermgmt/models/get_storage_container_by_id200_response.rb +224 -0
  856. data/lib/nutanix_clustermgmt/models/get_storage_container_by_id4_xx_response.rb +224 -0
  857. data/lib/nutanix_clustermgmt/models/get_storage_container_stats200_response.rb +224 -0
  858. data/lib/nutanix_clustermgmt/models/get_storage_container_stats4_xx_response.rb +224 -0
  859. data/lib/nutanix_clustermgmt/models/get_vcenter_extension_by_id200_response.rb +224 -0
  860. data/lib/nutanix_clustermgmt/models/get_vcenter_extension_by_id4_xx_response.rb +224 -0
  861. data/lib/nutanix_clustermgmt/models/get_virtual_nic_by_id200_response.rb +224 -0
  862. data/lib/nutanix_clustermgmt/models/get_virtual_nic_by_id4_xx_response.rb +224 -0
  863. data/lib/nutanix_clustermgmt/models/list_cluster_profiles200_response.rb +226 -0
  864. data/lib/nutanix_clustermgmt/models/list_cluster_profiles4_xx_response.rb +224 -0
  865. data/lib/nutanix_clustermgmt/models/list_clusters200_response.rb +226 -0
  866. data/lib/nutanix_clustermgmt/models/list_clusters4_xx_response.rb +224 -0
  867. data/lib/nutanix_clustermgmt/models/list_data_stores_by_cluster_id200_response.rb +254 -0
  868. data/lib/nutanix_clustermgmt/models/list_data_stores_by_cluster_id4_xx_response.rb +224 -0
  869. data/lib/nutanix_clustermgmt/models/list_disks200_response.rb +226 -0
  870. data/lib/nutanix_clustermgmt/models/list_disks4_xx_response.rb +224 -0
  871. data/lib/nutanix_clustermgmt/models/list_host_nics_by_host_id200_response.rb +226 -0
  872. data/lib/nutanix_clustermgmt/models/list_host_nics_by_host_id4_xx_response.rb +224 -0
  873. data/lib/nutanix_clustermgmt/models/list_hosts200_response.rb +226 -0
  874. data/lib/nutanix_clustermgmt/models/list_hosts4_xx_response.rb +224 -0
  875. data/lib/nutanix_clustermgmt/models/list_hosts_by_cluster_id200_response.rb +226 -0
  876. data/lib/nutanix_clustermgmt/models/list_hosts_by_cluster_id4_xx_response.rb +224 -0
  877. data/lib/nutanix_clustermgmt/models/list_pcie_devices200_response.rb +226 -0
  878. data/lib/nutanix_clustermgmt/models/list_pcie_devices4_xx_response.rb +224 -0
  879. data/lib/nutanix_clustermgmt/models/list_physical_gpu_profiles200_response.rb +226 -0
  880. data/lib/nutanix_clustermgmt/models/list_physical_gpu_profiles4_xx_response.rb +224 -0
  881. data/lib/nutanix_clustermgmt/models/list_rackable_units_by_cluster_id200_response.rb +254 -0
  882. data/lib/nutanix_clustermgmt/models/list_rackable_units_by_cluster_id4_xx_response.rb +224 -0
  883. data/lib/nutanix_clustermgmt/models/list_rsyslog_servers_by_cluster_id200_response.rb +254 -0
  884. data/lib/nutanix_clustermgmt/models/list_rsyslog_servers_by_cluster_id4_xx_response.rb +224 -0
  885. data/lib/nutanix_clustermgmt/models/list_storage_containers200_response.rb +226 -0
  886. data/lib/nutanix_clustermgmt/models/list_storage_containers4_xx_response.rb +224 -0
  887. data/lib/nutanix_clustermgmt/models/list_vcenter_extensions200_response.rb +226 -0
  888. data/lib/nutanix_clustermgmt/models/list_vcenter_extensions4_xx_response.rb +224 -0
  889. data/lib/nutanix_clustermgmt/models/list_virtual_gpu_profiles200_response.rb +226 -0
  890. data/lib/nutanix_clustermgmt/models/list_virtual_gpu_profiles4_xx_response.rb +224 -0
  891. data/lib/nutanix_clustermgmt/models/list_virtual_nics_by_host_id200_response.rb +226 -0
  892. data/lib/nutanix_clustermgmt/models/list_virtual_nics_by_host_id4_xx_response.rb +224 -0
  893. data/lib/nutanix_clustermgmt/models/mount_storage_container202_response.rb +224 -0
  894. data/lib/nutanix_clustermgmt/models/mount_storage_container4_xx_response.rb +224 -0
  895. data/lib/nutanix_clustermgmt/models/prism_v40_config_task_reference.rb +237 -0
  896. data/lib/nutanix_clustermgmt/models/register_vcenter_extension202_response.rb +224 -0
  897. data/lib/nutanix_clustermgmt/models/register_vcenter_extension4_xx_response.rb +224 -0
  898. data/lib/nutanix_clustermgmt/models/remove_node202_response.rb +224 -0
  899. data/lib/nutanix_clustermgmt/models/remove_node4_xx_response.rb +224 -0
  900. data/lib/nutanix_clustermgmt/models/remove_snmp_transport202_response.rb +224 -0
  901. data/lib/nutanix_clustermgmt/models/remove_snmp_transport4_xx_response.rb +224 -0
  902. data/lib/nutanix_clustermgmt/models/unmount_storage_container202_response.rb +224 -0
  903. data/lib/nutanix_clustermgmt/models/unmount_storage_container4_xx_response.rb +224 -0
  904. data/lib/nutanix_clustermgmt/models/unregister_vcenter_extension202_response.rb +224 -0
  905. data/lib/nutanix_clustermgmt/models/unregister_vcenter_extension4_xx_response.rb +224 -0
  906. data/lib/nutanix_clustermgmt/models/update_bmc_info202_response.rb +224 -0
  907. data/lib/nutanix_clustermgmt/models/update_bmc_info4_xx_response.rb +224 -0
  908. data/lib/nutanix_clustermgmt/models/update_cluster_by_id202_response.rb +224 -0
  909. data/lib/nutanix_clustermgmt/models/update_cluster_by_id4_xx_response.rb +224 -0
  910. data/lib/nutanix_clustermgmt/models/update_cluster_profile_by_id202_response.rb +224 -0
  911. data/lib/nutanix_clustermgmt/models/update_cluster_profile_by_id4_xx_response.rb +224 -0
  912. data/lib/nutanix_clustermgmt/models/update_rsyslog_server_by_id202_response.rb +224 -0
  913. data/lib/nutanix_clustermgmt/models/update_rsyslog_server_by_id4_xx_response.rb +224 -0
  914. data/lib/nutanix_clustermgmt/models/update_snmp_status202_response.rb +224 -0
  915. data/lib/nutanix_clustermgmt/models/update_snmp_status4_xx_response.rb +224 -0
  916. data/lib/nutanix_clustermgmt/models/update_snmp_trap_by_id202_response.rb +224 -0
  917. data/lib/nutanix_clustermgmt/models/update_snmp_trap_by_id4_xx_response.rb +224 -0
  918. data/lib/nutanix_clustermgmt/models/update_snmp_user_by_id202_response.rb +224 -0
  919. data/lib/nutanix_clustermgmt/models/update_snmp_user_by_id4_xx_response.rb +224 -0
  920. data/lib/nutanix_clustermgmt/models/update_storage_container_by_id202_response.rb +224 -0
  921. data/lib/nutanix_clustermgmt/models/update_storage_container_by_id4_xx_response.rb +224 -0
  922. data/lib/nutanix_clustermgmt/models/validate_node202_response.rb +224 -0
  923. data/lib/nutanix_clustermgmt/models/validate_node4_xx_response.rb +224 -0
  924. data/lib/nutanix_clustermgmt/version.rb +15 -0
  925. data/lib/nutanix_clustermgmt.rb +496 -0
  926. data/nutanix_clustermgmt.gemspec +39 -0
  927. data/renovate.json +5 -0
  928. data/spec/api/bmc_api_spec.rb +64 -0
  929. data/spec/api/cluster_profiles_api_spec.rb +134 -0
  930. data/spec/api/clusters_api_spec.rb +686 -0
  931. data/spec/api/disks_api_spec.rb +105 -0
  932. data/spec/api/pcie_devices_api_spec.rb +50 -0
  933. data/spec/api/storage_containers_api_spec.rb +163 -0
  934. data/spec/api/vcenter_extensions_api_spec.rb +90 -0
  935. data/spec/models/add_disk202_response_spec.rb +42 -0
  936. data/spec/models/add_disk4_xx_response_spec.rb +42 -0
  937. data/spec/models/add_snmp_transport202_response_spec.rb +42 -0
  938. data/spec/models/add_snmp_transport4_xx_response_spec.rb +42 -0
  939. data/spec/models/apply_cluster_profile202_response_spec.rb +42 -0
  940. data/spec/models/apply_cluster_profile4_xx_response_spec.rb +42 -0
  941. data/spec/models/associate_categories_to_cluster202_response_spec.rb +42 -0
  942. data/spec/models/associate_categories_to_cluster4_xx_response_spec.rb +42 -0
  943. data/spec/models/check_hypervisor_requirements202_response_spec.rb +42 -0
  944. data/spec/models/check_hypervisor_requirements4_xx_response_spec.rb +42 -0
  945. data/spec/models/clustermgmt_v40_ahv_config_list_pcie_devices_api_response_data_spec.rb +32 -0
  946. data/spec/models/clustermgmt_v40_ahv_config_list_pcie_devices_api_response_spec.rb +42 -0
  947. data/spec/models/clustermgmt_v40_ahv_config_pcie_device_configuration_spec.rb +72 -0
  948. data/spec/models/clustermgmt_v40_ahv_config_pcie_device_spec.rb +84 -0
  949. data/spec/models/clustermgmt_v40_ahv_config_pcie_device_state_spec.rb +30 -0
  950. data/spec/models/clustermgmt_v40_config_acropolis_connection_state_spec.rb +30 -0
  951. data/spec/models/clustermgmt_v40_config_add_disk_api_response_spec.rb +42 -0
  952. data/spec/models/clustermgmt_v40_config_add_snmp_transports_api_response_spec.rb +42 -0
  953. data/spec/models/clustermgmt_v40_config_address_type_spec.rb +30 -0
  954. data/spec/models/clustermgmt_v40_config_apply_cluster_profile_api_response_spec.rb +42 -0
  955. data/spec/models/clustermgmt_v40_config_associate_categories_to_cluster_api_response_data_spec.rb +32 -0
  956. data/spec/models/clustermgmt_v40_config_associate_categories_to_cluster_api_response_spec.rb +42 -0
  957. data/spec/models/clustermgmt_v40_config_attribute_item_spec.rb +42 -0
  958. data/spec/models/clustermgmt_v40_config_authorized_public_key_spec.rb +42 -0
  959. data/spec/models/clustermgmt_v40_config_backplane_network_params_spec.rb +54 -0
  960. data/spec/models/clustermgmt_v40_config_block_item_spec.rb +42 -0
  961. data/spec/models/clustermgmt_v40_config_bmc_info_spec.rb +48 -0
  962. data/spec/models/clustermgmt_v40_config_build_info_spec.rb +36 -0
  963. data/spec/models/clustermgmt_v40_config_build_reference_spec.rb +60 -0
  964. data/spec/models/clustermgmt_v40_config_bundle_info_spec.rb +36 -0
  965. data/spec/models/clustermgmt_v40_config_bundle_param_spec.rb +42 -0
  966. data/spec/models/clustermgmt_v40_config_cache_deduplication_spec.rb +30 -0
  967. data/spec/models/clustermgmt_v40_config_category_entity_references_spec.rb +36 -0
  968. data/spec/models/clustermgmt_v40_config_check_hypervisor_requirements_api_response_spec.rb +42 -0
  969. data/spec/models/clustermgmt_v40_config_cluster_arch_reference_spec.rb +30 -0
  970. data/spec/models/clustermgmt_v40_config_cluster_config_reference_spec.rb +144 -0
  971. data/spec/models/clustermgmt_v40_config_cluster_config_spec.rb +42 -0
  972. data/spec/models/clustermgmt_v40_config_cluster_fault_tolerance_ref_spec.rb +30 -0
  973. data/spec/models/clustermgmt_v40_config_cluster_function_ref_spec.rb +30 -0
  974. data/spec/models/clustermgmt_v40_config_cluster_network_reference_spec.rb +126 -0
  975. data/spec/models/clustermgmt_v40_config_cluster_network_spec.rb +54 -0
  976. data/spec/models/clustermgmt_v40_config_cluster_profile_spec.rb +150 -0
  977. data/spec/models/clustermgmt_v40_config_cluster_reference_list_spec_spec.rb +36 -0
  978. data/spec/models/clustermgmt_v40_config_cluster_reference_spec.rb +42 -0
  979. data/spec/models/clustermgmt_v40_config_cluster_spec.rb +114 -0
  980. data/spec/models/clustermgmt_v40_config_component_fault_tolerance_spec.rb +60 -0
  981. data/spec/models/clustermgmt_v40_config_component_type_spec.rb +30 -0
  982. data/spec/models/clustermgmt_v40_config_compute_node_item_spec.rb +78 -0
  983. data/spec/models/clustermgmt_v40_config_compute_non_migratable_vms_spec_spec.rb +42 -0
  984. data/spec/models/clustermgmt_v40_config_config_params_spec.rb +78 -0
  985. data/spec/models/clustermgmt_v40_config_config_type_spec.rb +30 -0
  986. data/spec/models/clustermgmt_v40_config_controller_vm_reference_spec.rb +66 -0
  987. data/spec/models/clustermgmt_v40_config_create_cluster_api_response_spec.rb +42 -0
  988. data/spec/models/clustermgmt_v40_config_create_cluster_profile_api_response_spec.rb +42 -0
  989. data/spec/models/clustermgmt_v40_config_create_rsyslog_server_api_response_spec.rb +42 -0
  990. data/spec/models/clustermgmt_v40_config_create_snmp_trap_api_response_spec.rb +42 -0
  991. data/spec/models/clustermgmt_v40_config_create_snmp_user_api_response_spec.rb +42 -0
  992. data/spec/models/clustermgmt_v40_config_create_storage_container_api_response_spec.rb +42 -0
  993. data/spec/models/clustermgmt_v40_config_credential_status_spec.rb +30 -0
  994. data/spec/models/clustermgmt_v40_config_data_store_mount_spec.rb +78 -0
  995. data/spec/models/clustermgmt_v40_config_data_store_spec.rb +96 -0
  996. data/spec/models/clustermgmt_v40_config_data_store_unmount_spec.rb +60 -0
  997. data/spec/models/clustermgmt_v40_config_delete_cluster_api_response_spec.rb +42 -0
  998. data/spec/models/clustermgmt_v40_config_delete_cluster_profile_api_response_spec.rb +42 -0
  999. data/spec/models/clustermgmt_v40_config_delete_disk_api_response_spec.rb +42 -0
  1000. data/spec/models/clustermgmt_v40_config_delete_rsyslog_server_api_response_spec.rb +42 -0
  1001. data/spec/models/clustermgmt_v40_config_delete_snmp_trap_api_response_spec.rb +42 -0
  1002. data/spec/models/clustermgmt_v40_config_delete_snmp_user_api_response_spec.rb +42 -0
  1003. data/spec/models/clustermgmt_v40_config_delete_storage_container_api_response_spec.rb +42 -0
  1004. data/spec/models/clustermgmt_v40_config_digital_certificate_map_reference_spec.rb +42 -0
  1005. data/spec/models/clustermgmt_v40_config_disassociate_categories_from_cluster_api_response_spec.rb +42 -0
  1006. data/spec/models/clustermgmt_v40_config_disassociate_cluster_from_cluster_profile_api_response_spec.rb +42 -0
  1007. data/spec/models/clustermgmt_v40_config_discover_unconfigured_nodes_api_response_spec.rb +42 -0
  1008. data/spec/models/clustermgmt_v40_config_disk_addition_spec_spec.rb +42 -0
  1009. data/spec/models/clustermgmt_v40_config_disk_advance_config_spec.rb +126 -0
  1010. data/spec/models/clustermgmt_v40_config_disk_partition_info_spec.rb +42 -0
  1011. data/spec/models/clustermgmt_v40_config_disk_reference_spec.rb +60 -0
  1012. data/spec/models/clustermgmt_v40_config_disk_spec.rb +174 -0
  1013. data/spec/models/clustermgmt_v40_config_disk_status_spec.rb +30 -0
  1014. data/spec/models/clustermgmt_v40_config_domain_awareness_level_spec.rb +30 -0
  1015. data/spec/models/clustermgmt_v40_config_domain_fault_tolerance_spec.rb +42 -0
  1016. data/spec/models/clustermgmt_v40_config_domain_type_spec.rb +30 -0
  1017. data/spec/models/clustermgmt_v40_config_drive_replacement_option_spec.rb +30 -0
  1018. data/spec/models/clustermgmt_v40_config_encryption_option_info_spec.rb +30 -0
  1019. data/spec/models/clustermgmt_v40_config_encryption_scope_info_spec.rb +30 -0
  1020. data/spec/models/clustermgmt_v40_config_encryption_status_spec.rb +30 -0
  1021. data/spec/models/clustermgmt_v40_config_erasure_code_status_spec.rb +30 -0
  1022. data/spec/models/clustermgmt_v40_config_expand_cluster_api_response_spec.rb +42 -0
  1023. data/spec/models/clustermgmt_v40_config_expand_cluster_params_spec.rb +54 -0
  1024. data/spec/models/clustermgmt_v40_config_fault_tolerance_state_spec.rb +66 -0
  1025. data/spec/models/clustermgmt_v40_config_fetch_node_networking_details_api_response_spec.rb +42 -0
  1026. data/spec/models/clustermgmt_v40_config_fetch_task_api_response_data_spec.rb +32 -0
  1027. data/spec/models/clustermgmt_v40_config_fetch_task_api_response_spec.rb +42 -0
  1028. data/spec/models/clustermgmt_v40_config_get_bmc_info_response_data_spec.rb +32 -0
  1029. data/spec/models/clustermgmt_v40_config_get_bmc_info_response_spec.rb +42 -0
  1030. data/spec/models/clustermgmt_v40_config_get_cluster_api_response_data_spec.rb +32 -0
  1031. data/spec/models/clustermgmt_v40_config_get_cluster_api_response_spec.rb +42 -0
  1032. data/spec/models/clustermgmt_v40_config_get_cluster_profile_api_response_data_spec.rb +32 -0
  1033. data/spec/models/clustermgmt_v40_config_get_cluster_profile_api_response_spec.rb +42 -0
  1034. data/spec/models/clustermgmt_v40_config_get_disk_api_response_data_spec.rb +32 -0
  1035. data/spec/models/clustermgmt_v40_config_get_disk_api_response_spec.rb +42 -0
  1036. data/spec/models/clustermgmt_v40_config_get_host_api_response_data_spec.rb +32 -0
  1037. data/spec/models/clustermgmt_v40_config_get_host_api_response_spec.rb +42 -0
  1038. data/spec/models/clustermgmt_v40_config_get_host_nic_api_response_data_spec.rb +32 -0
  1039. data/spec/models/clustermgmt_v40_config_get_host_nic_api_response_spec.rb +42 -0
  1040. data/spec/models/clustermgmt_v40_config_get_rackable_unit_api_response_data_spec.rb +32 -0
  1041. data/spec/models/clustermgmt_v40_config_get_rackable_unit_api_response_spec.rb +42 -0
  1042. data/spec/models/clustermgmt_v40_config_get_rsyslog_server_api_response_data_spec.rb +32 -0
  1043. data/spec/models/clustermgmt_v40_config_get_rsyslog_server_api_response_spec.rb +42 -0
  1044. data/spec/models/clustermgmt_v40_config_get_snmp_config_by_cluster_id_api_response_data_spec.rb +32 -0
  1045. data/spec/models/clustermgmt_v40_config_get_snmp_config_by_cluster_id_api_response_spec.rb +42 -0
  1046. data/spec/models/clustermgmt_v40_config_get_snmp_trap_api_response_data_spec.rb +32 -0
  1047. data/spec/models/clustermgmt_v40_config_get_snmp_trap_api_response_spec.rb +42 -0
  1048. data/spec/models/clustermgmt_v40_config_get_snmp_user_api_response_data_spec.rb +32 -0
  1049. data/spec/models/clustermgmt_v40_config_get_snmp_user_api_response_spec.rb +42 -0
  1050. data/spec/models/clustermgmt_v40_config_get_storage_container_api_response_data_spec.rb +32 -0
  1051. data/spec/models/clustermgmt_v40_config_get_storage_container_api_response_spec.rb +42 -0
  1052. data/spec/models/clustermgmt_v40_config_get_vcenter_extension_api_response_data_spec.rb +32 -0
  1053. data/spec/models/clustermgmt_v40_config_get_vcenter_extension_api_response_spec.rb +42 -0
  1054. data/spec/models/clustermgmt_v40_config_get_virtual_nic_api_response_data_spec.rb +32 -0
  1055. data/spec/models/clustermgmt_v40_config_get_virtual_nic_api_response_spec.rb +42 -0
  1056. data/spec/models/clustermgmt_v40_config_gpu_mode_spec.rb +30 -0
  1057. data/spec/models/clustermgmt_v40_config_gpu_type_spec.rb +30 -0
  1058. data/spec/models/clustermgmt_v40_config_host_gpu_spec.rb +78 -0
  1059. data/spec/models/clustermgmt_v40_config_host_name_param_spec.rb +36 -0
  1060. data/spec/models/clustermgmt_v40_config_host_nic_spec.rb +168 -0
  1061. data/spec/models/clustermgmt_v40_config_host_spec.rb +252 -0
  1062. data/spec/models/clustermgmt_v40_config_host_type_enum_spec.rb +30 -0
  1063. data/spec/models/clustermgmt_v40_config_http_proxy_config_spec.rb +66 -0
  1064. data/spec/models/clustermgmt_v40_config_http_proxy_type_spec.rb +30 -0
  1065. data/spec/models/clustermgmt_v40_config_http_proxy_white_list_config_spec.rb +42 -0
  1066. data/spec/models/clustermgmt_v40_config_http_proxy_white_list_target_type_spec.rb +30 -0
  1067. data/spec/models/clustermgmt_v40_config_hyperv_credentials_spec.rb +42 -0
  1068. data/spec/models/clustermgmt_v40_config_hypervisor_iso_map_spec.rb +42 -0
  1069. data/spec/models/clustermgmt_v40_config_hypervisor_reference_spec.rb +72 -0
  1070. data/spec/models/clustermgmt_v40_config_hypervisor_state_spec.rb +30 -0
  1071. data/spec/models/clustermgmt_v40_config_hypervisor_type_spec.rb +30 -0
  1072. data/spec/models/clustermgmt_v40_config_hypervisor_upload_info_spec.rb +42 -0
  1073. data/spec/models/clustermgmt_v40_config_hypervisor_upload_node_list_item_spec.rb +84 -0
  1074. data/spec/models/clustermgmt_v40_config_hypervisor_upload_param_spec.rb +36 -0
  1075. data/spec/models/clustermgmt_v40_config_ipmi_reference_spec.rb +42 -0
  1076. data/spec/models/clustermgmt_v40_config_key_management_device_to_cert_status_info_spec.rb +42 -0
  1077. data/spec/models/clustermgmt_v40_config_key_management_server_type_spec.rb +30 -0
  1078. data/spec/models/clustermgmt_v40_config_list_cluster_profiles_api_response_data_spec.rb +32 -0
  1079. data/spec/models/clustermgmt_v40_config_list_cluster_profiles_api_response_spec.rb +42 -0
  1080. data/spec/models/clustermgmt_v40_config_list_clusters_api_response_data_spec.rb +32 -0
  1081. data/spec/models/clustermgmt_v40_config_list_clusters_api_response_spec.rb +42 -0
  1082. data/spec/models/clustermgmt_v40_config_list_data_stores_by_cluster_id_api_response_data_spec.rb +32 -0
  1083. data/spec/models/clustermgmt_v40_config_list_data_stores_by_cluster_id_api_response_spec.rb +42 -0
  1084. data/spec/models/clustermgmt_v40_config_list_disks_api_response_data_spec.rb +32 -0
  1085. data/spec/models/clustermgmt_v40_config_list_disks_api_response_spec.rb +42 -0
  1086. data/spec/models/clustermgmt_v40_config_list_host_nics_by_host_id_api_response_data_spec.rb +32 -0
  1087. data/spec/models/clustermgmt_v40_config_list_host_nics_by_host_id_api_response_spec.rb +42 -0
  1088. data/spec/models/clustermgmt_v40_config_list_hosts_api_response_spec.rb +42 -0
  1089. data/spec/models/clustermgmt_v40_config_list_hosts_by_cluster_id_api_response_data_spec.rb +32 -0
  1090. data/spec/models/clustermgmt_v40_config_list_hosts_by_cluster_id_api_response_spec.rb +42 -0
  1091. data/spec/models/clustermgmt_v40_config_list_physical_gpu_profiles_api_response_data_spec.rb +32 -0
  1092. data/spec/models/clustermgmt_v40_config_list_physical_gpu_profiles_api_response_spec.rb +42 -0
  1093. data/spec/models/clustermgmt_v40_config_list_rackable_units_by_cluster_id_api_response_data_spec.rb +32 -0
  1094. data/spec/models/clustermgmt_v40_config_list_rackable_units_by_cluster_id_api_response_spec.rb +42 -0
  1095. data/spec/models/clustermgmt_v40_config_list_rsyslog_servers_by_cluster_id_api_response_data_spec.rb +32 -0
  1096. data/spec/models/clustermgmt_v40_config_list_rsyslog_servers_by_cluster_id_api_response_spec.rb +42 -0
  1097. data/spec/models/clustermgmt_v40_config_list_storage_containers_api_response_data_spec.rb +32 -0
  1098. data/spec/models/clustermgmt_v40_config_list_storage_containers_api_response_spec.rb +42 -0
  1099. data/spec/models/clustermgmt_v40_config_list_vcenter_extensions_api_response_data_spec.rb +32 -0
  1100. data/spec/models/clustermgmt_v40_config_list_vcenter_extensions_api_response_spec.rb +42 -0
  1101. data/spec/models/clustermgmt_v40_config_list_virtual_gpu_profiles_api_response_data_spec.rb +32 -0
  1102. data/spec/models/clustermgmt_v40_config_list_virtual_gpu_profiles_api_response_spec.rb +42 -0
  1103. data/spec/models/clustermgmt_v40_config_list_virtual_nics_by_host_id_api_response_data_spec.rb +32 -0
  1104. data/spec/models/clustermgmt_v40_config_list_virtual_nics_by_host_id_api_response_spec.rb +42 -0
  1105. data/spec/models/clustermgmt_v40_config_managed_cluster_spec.rb +54 -0
  1106. data/spec/models/clustermgmt_v40_config_management_server_ref_spec.rb +60 -0
  1107. data/spec/models/clustermgmt_v40_config_management_server_type_spec.rb +30 -0
  1108. data/spec/models/clustermgmt_v40_config_mount_storage_container_api_response_spec.rb +42 -0
  1109. data/spec/models/clustermgmt_v40_config_multi_domain_fault_tolerance_status_spec.rb +54 -0
  1110. data/spec/models/clustermgmt_v40_config_name_mac_ref_spec.rb +42 -0
  1111. data/spec/models/clustermgmt_v40_config_name_network_ref_spec.rb +48 -0
  1112. data/spec/models/clustermgmt_v40_config_network_info_spec.rb +42 -0
  1113. data/spec/models/clustermgmt_v40_config_network_switch_interface_spec.rb +126 -0
  1114. data/spec/models/clustermgmt_v40_config_node_details_spec.rb +42 -0
  1115. data/spec/models/clustermgmt_v40_config_node_discovery_params_spec.rb +66 -0
  1116. data/spec/models/clustermgmt_v40_config_node_info_spec.rb +120 -0
  1117. data/spec/models/clustermgmt_v40_config_node_item_spec.rb +126 -0
  1118. data/spec/models/clustermgmt_v40_config_node_list_item_reference_spec.rb +48 -0
  1119. data/spec/models/clustermgmt_v40_config_node_list_networking_details_spec.rb +120 -0
  1120. data/spec/models/clustermgmt_v40_config_node_network_config_spec.rb +36 -0
  1121. data/spec/models/clustermgmt_v40_config_node_networking_details_spec.rb +48 -0
  1122. data/spec/models/clustermgmt_v40_config_node_param_spec.rb +72 -0
  1123. data/spec/models/clustermgmt_v40_config_node_reference_spec.rb +42 -0
  1124. data/spec/models/clustermgmt_v40_config_node_removal_extra_param_spec.rb +48 -0
  1125. data/spec/models/clustermgmt_v40_config_node_removal_params_spec.rb +54 -0
  1126. data/spec/models/clustermgmt_v40_config_node_resource_config_spec.rb +54 -0
  1127. data/spec/models/clustermgmt_v40_config_node_status_spec.rb +30 -0
  1128. data/spec/models/clustermgmt_v40_config_non_compatible_cluster_reference_spec.rb +42 -0
  1129. data/spec/models/clustermgmt_v40_config_non_migratable_vm_info_spec.rb +48 -0
  1130. data/spec/models/clustermgmt_v40_config_non_migratable_vms_result_spec.rb +54 -0
  1131. data/spec/models/clustermgmt_v40_config_on_disk_dedup_spec.rb +30 -0
  1132. data/spec/models/clustermgmt_v40_config_operation_mode_spec.rb +30 -0
  1133. data/spec/models/clustermgmt_v40_config_partition_type_spec.rb +30 -0
  1134. data/spec/models/clustermgmt_v40_config_physical_gpu_config_spec.rb +90 -0
  1135. data/spec/models/clustermgmt_v40_config_physical_gpu_profile_spec.rb +60 -0
  1136. data/spec/models/clustermgmt_v40_config_pii_scrubbing_level_spec.rb +30 -0
  1137. data/spec/models/clustermgmt_v40_config_public_key_spec.rb +42 -0
  1138. data/spec/models/clustermgmt_v40_config_pulse_status_spec.rb +42 -0
  1139. data/spec/models/clustermgmt_v40_config_rack_reference_spec.rb +42 -0
  1140. data/spec/models/clustermgmt_v40_config_rackable_unit_model_spec.rb +30 -0
  1141. data/spec/models/clustermgmt_v40_config_rackable_unit_node_spec.rb +48 -0
  1142. data/spec/models/clustermgmt_v40_config_rackable_unit_spec.rb +84 -0
  1143. data/spec/models/clustermgmt_v40_config_redundancy_status_details_spec.rb +42 -0
  1144. data/spec/models/clustermgmt_v40_config_register_vcenter_extension_api_response_spec.rb +42 -0
  1145. data/spec/models/clustermgmt_v40_config_remove_node_api_response_spec.rb +42 -0
  1146. data/spec/models/clustermgmt_v40_config_remove_snmp_transports_api_response_spec.rb +42 -0
  1147. data/spec/models/clustermgmt_v40_config_rsyslog_module_item_spec.rb +48 -0
  1148. data/spec/models/clustermgmt_v40_config_rsyslog_module_log_severity_level_spec.rb +30 -0
  1149. data/spec/models/clustermgmt_v40_config_rsyslog_module_name_spec.rb +30 -0
  1150. data/spec/models/clustermgmt_v40_config_rsyslog_network_protocol_spec.rb +30 -0
  1151. data/spec/models/clustermgmt_v40_config_rsyslog_server_spec.rb +78 -0
  1152. data/spec/models/clustermgmt_v40_config_smtp_network_spec.rb +54 -0
  1153. data/spec/models/clustermgmt_v40_config_smtp_server_ref_spec.rb +48 -0
  1154. data/spec/models/clustermgmt_v40_config_smtp_type_spec.rb +30 -0
  1155. data/spec/models/clustermgmt_v40_config_snmp_auth_type_spec.rb +30 -0
  1156. data/spec/models/clustermgmt_v40_config_snmp_config_spec.rb +72 -0
  1157. data/spec/models/clustermgmt_v40_config_snmp_priv_type_spec.rb +30 -0
  1158. data/spec/models/clustermgmt_v40_config_snmp_protocol_spec.rb +30 -0
  1159. data/spec/models/clustermgmt_v40_config_snmp_status_param_spec.rb +36 -0
  1160. data/spec/models/clustermgmt_v40_config_snmp_transport_spec.rb +42 -0
  1161. data/spec/models/clustermgmt_v40_config_snmp_trap_spec.rb +102 -0
  1162. data/spec/models/clustermgmt_v40_config_snmp_trap_version_spec.rb +30 -0
  1163. data/spec/models/clustermgmt_v40_config_snmp_user_spec.rb +78 -0
  1164. data/spec/models/clustermgmt_v40_config_software_map_reference_spec.rb +42 -0
  1165. data/spec/models/clustermgmt_v40_config_software_type_ref_spec.rb +30 -0
  1166. data/spec/models/clustermgmt_v40_config_storage_container_spec.rb +210 -0
  1167. data/spec/models/clustermgmt_v40_config_storage_summary_spec.rb +36 -0
  1168. data/spec/models/clustermgmt_v40_config_storage_tier_reference_spec.rb +30 -0
  1169. data/spec/models/clustermgmt_v40_config_storage_tier_spec.rb +30 -0
  1170. data/spec/models/clustermgmt_v40_config_task_response_all_of_response_spec.rb +32 -0
  1171. data/spec/models/clustermgmt_v40_config_task_response_spec.rb +60 -0
  1172. data/spec/models/clustermgmt_v40_config_task_response_type_spec.rb +30 -0
  1173. data/spec/models/clustermgmt_v40_config_tolerance_message_spec.rb +42 -0
  1174. data/spec/models/clustermgmt_v40_config_unconfigure_node_details_spec.rb +36 -0
  1175. data/spec/models/clustermgmt_v40_config_unconfigured_node_attribute_map_spec.rb +60 -0
  1176. data/spec/models/clustermgmt_v40_config_unconfigured_node_list_item_spec.rb +156 -0
  1177. data/spec/models/clustermgmt_v40_config_unmount_storage_container_api_response_spec.rb +42 -0
  1178. data/spec/models/clustermgmt_v40_config_unregister_vcenter_extension_api_response_spec.rb +42 -0
  1179. data/spec/models/clustermgmt_v40_config_update_bmc_info_response_spec.rb +42 -0
  1180. data/spec/models/clustermgmt_v40_config_update_cluster_api_response_spec.rb +42 -0
  1181. data/spec/models/clustermgmt_v40_config_update_cluster_profile_api_response_spec.rb +42 -0
  1182. data/spec/models/clustermgmt_v40_config_update_rsyslog_server_api_response_spec.rb +42 -0
  1183. data/spec/models/clustermgmt_v40_config_update_snmp_status_api_response_spec.rb +42 -0
  1184. data/spec/models/clustermgmt_v40_config_update_snmp_trap_api_response_spec.rb +42 -0
  1185. data/spec/models/clustermgmt_v40_config_update_snmp_user_api_response_spec.rb +42 -0
  1186. data/spec/models/clustermgmt_v40_config_update_storage_container_api_response_spec.rb +42 -0
  1187. data/spec/models/clustermgmt_v40_config_upgrade_status_spec.rb +30 -0
  1188. data/spec/models/clustermgmt_v40_config_uplink_info_spec.rb +42 -0
  1189. data/spec/models/clustermgmt_v40_config_uplink_network_item_spec.rb +48 -0
  1190. data/spec/models/clustermgmt_v40_config_uplink_node_spec.rb +48 -0
  1191. data/spec/models/clustermgmt_v40_config_uplinks_field_spec.rb +48 -0
  1192. data/spec/models/clustermgmt_v40_config_uplinks_spec.rb +42 -0
  1193. data/spec/models/clustermgmt_v40_config_upload_info_node_item_spec.rb +78 -0
  1194. data/spec/models/clustermgmt_v40_config_user_info_spec.rb +48 -0
  1195. data/spec/models/clustermgmt_v40_config_validate_bundle_info_spec.rb +36 -0
  1196. data/spec/models/clustermgmt_v40_config_validate_node_api_response_spec.rb +42 -0
  1197. data/spec/models/clustermgmt_v40_config_validate_node_param_spec.rb +36 -0
  1198. data/spec/models/clustermgmt_v40_config_validate_node_param_spec_spec.rb +32 -0
  1199. data/spec/models/clustermgmt_v40_config_vcenter_credentials_spec.rb +48 -0
  1200. data/spec/models/clustermgmt_v40_config_vcenter_extension_spec.rb +66 -0
  1201. data/spec/models/clustermgmt_v40_config_vcenter_info_spec.rb +42 -0
  1202. data/spec/models/clustermgmt_v40_config_virtual_gpu_config_spec.rb +120 -0
  1203. data/spec/models/clustermgmt_v40_config_virtual_gpu_profile_spec.rb +60 -0
  1204. data/spec/models/clustermgmt_v40_config_virtual_nic_spec.rb +120 -0
  1205. data/spec/models/clustermgmt_v40_error_app_message_spec.rb +66 -0
  1206. data/spec/models/clustermgmt_v40_error_error_response_error_spec.rb +32 -0
  1207. data/spec/models/clustermgmt_v40_error_error_response_spec.rb +36 -0
  1208. data/spec/models/clustermgmt_v40_error_message_severity_spec.rb +30 -0
  1209. data/spec/models/clustermgmt_v40_error_schema_validation_error_message_spec.rb +48 -0
  1210. data/spec/models/clustermgmt_v40_error_schema_validation_error_spec.rb +60 -0
  1211. data/spec/models/clustermgmt_v40_operations_enter_host_maintenance_api_response_spec.rb +42 -0
  1212. data/spec/models/clustermgmt_v40_operations_enter_host_maintenance_spec_spec.rb +54 -0
  1213. data/spec/models/clustermgmt_v40_operations_exit_host_maintenance_api_response_spec.rb +42 -0
  1214. data/spec/models/clustermgmt_v40_operations_host_maintenance_common_spec_spec.rb +42 -0
  1215. data/spec/models/clustermgmt_v40_stats_cluster_stats_api_response_data_spec.rb +32 -0
  1216. data/spec/models/clustermgmt_v40_stats_cluster_stats_api_response_spec.rb +42 -0
  1217. data/spec/models/clustermgmt_v40_stats_cluster_stats_spec.rb +330 -0
  1218. data/spec/models/clustermgmt_v40_stats_disk_stats_spec.rb +246 -0
  1219. data/spec/models/clustermgmt_v40_stats_get_disk_stats_api_response_data_spec.rb +32 -0
  1220. data/spec/models/clustermgmt_v40_stats_get_disk_stats_api_response_spec.rb +42 -0
  1221. data/spec/models/clustermgmt_v40_stats_get_storage_container_stats_api_response_data_spec.rb +32 -0
  1222. data/spec/models/clustermgmt_v40_stats_get_storage_container_stats_api_response_spec.rb +42 -0
  1223. data/spec/models/clustermgmt_v40_stats_host_stats_api_response_data_spec.rb +32 -0
  1224. data/spec/models/clustermgmt_v40_stats_host_stats_api_response_spec.rb +42 -0
  1225. data/spec/models/clustermgmt_v40_stats_host_stats_spec.rb +324 -0
  1226. data/spec/models/clustermgmt_v40_stats_storage_container_stats_spec.rb +324 -0
  1227. data/spec/models/clustermgmt_v40_stats_time_value_pair_spec.rb +42 -0
  1228. data/spec/models/common_v10_config_basic_auth_spec.rb +42 -0
  1229. data/spec/models/common_v10_config_flag_spec.rb +42 -0
  1230. data/spec/models/common_v10_config_fqdn_spec.rb +36 -0
  1231. data/spec/models/common_v10_config_ip_address_or_fqdn_spec.rb +48 -0
  1232. data/spec/models/common_v10_config_ip_address_spec.rb +42 -0
  1233. data/spec/models/common_v10_config_ipv4_address_spec.rb +42 -0
  1234. data/spec/models/common_v10_config_ipv6_address_spec.rb +42 -0
  1235. data/spec/models/common_v10_config_kv_pair_spec.rb +42 -0
  1236. data/spec/models/common_v10_config_kv_pair_value_spec.rb +32 -0
  1237. data/spec/models/common_v10_config_map_of_string_wrapper_spec.rb +36 -0
  1238. data/spec/models/common_v10_config_message_severity_spec.rb +30 -0
  1239. data/spec/models/common_v10_config_message_spec.rb +54 -0
  1240. data/spec/models/common_v10_config_tenant_aware_model_spec.rb +36 -0
  1241. data/spec/models/common_v10_response_api_link_spec.rb +42 -0
  1242. data/spec/models/common_v10_response_api_response_metadata_spec.rb +60 -0
  1243. data/spec/models/common_v10_response_externalizable_abstract_model_spec.rb +48 -0
  1244. data/spec/models/common_v10_stats_down_sampling_operator_spec.rb +30 -0
  1245. data/spec/models/common_v10_stats_time_int_value_pair_spec.rb +42 -0
  1246. data/spec/models/create_cluster202_response_spec.rb +42 -0
  1247. data/spec/models/create_cluster4_xx_response_spec.rb +42 -0
  1248. data/spec/models/create_cluster_profile202_response_spec.rb +42 -0
  1249. data/spec/models/create_cluster_profile4_xx_response_spec.rb +42 -0
  1250. data/spec/models/create_rsyslog_server202_response_spec.rb +42 -0
  1251. data/spec/models/create_rsyslog_server4_xx_response_spec.rb +42 -0
  1252. data/spec/models/create_snmp_trap202_response_spec.rb +42 -0
  1253. data/spec/models/create_snmp_trap4_xx_response_spec.rb +42 -0
  1254. data/spec/models/create_snmp_user202_response_spec.rb +42 -0
  1255. data/spec/models/create_snmp_user4_xx_response_spec.rb +42 -0
  1256. data/spec/models/create_storage_container202_response_spec.rb +42 -0
  1257. data/spec/models/create_storage_container4_xx_response_spec.rb +42 -0
  1258. data/spec/models/delete_cluster_by_id202_response_spec.rb +42 -0
  1259. data/spec/models/delete_cluster_by_id4_xx_response_spec.rb +42 -0
  1260. data/spec/models/delete_cluster_profile_by_id202_response_spec.rb +42 -0
  1261. data/spec/models/delete_cluster_profile_by_id4_xx_response_spec.rb +42 -0
  1262. data/spec/models/delete_disk_by_id202_response_spec.rb +42 -0
  1263. data/spec/models/delete_disk_by_id4_xx_response_spec.rb +42 -0
  1264. data/spec/models/delete_rsyslog_server_by_id202_response_spec.rb +42 -0
  1265. data/spec/models/delete_rsyslog_server_by_id4_xx_response_spec.rb +42 -0
  1266. data/spec/models/delete_snmp_trap_by_id202_response_spec.rb +42 -0
  1267. data/spec/models/delete_snmp_trap_by_id4_xx_response_spec.rb +42 -0
  1268. data/spec/models/delete_snmp_user_by_id202_response_spec.rb +42 -0
  1269. data/spec/models/delete_snmp_user_by_id4_xx_response_spec.rb +42 -0
  1270. data/spec/models/delete_storage_container_by_id202_response_spec.rb +42 -0
  1271. data/spec/models/delete_storage_container_by_id4_xx_response_spec.rb +42 -0
  1272. data/spec/models/disassociate_categories_from_cluster202_response_spec.rb +42 -0
  1273. data/spec/models/disassociate_categories_from_cluster4_xx_response_spec.rb +42 -0
  1274. data/spec/models/disassociate_cluster_from_cluster_profile202_response_spec.rb +42 -0
  1275. data/spec/models/disassociate_cluster_from_cluster_profile4_xx_response_spec.rb +42 -0
  1276. data/spec/models/discover_unconfigured_nodes202_response_spec.rb +42 -0
  1277. data/spec/models/discover_unconfigured_nodes4_xx_response_spec.rb +42 -0
  1278. data/spec/models/enter_host_maintenance202_response_spec.rb +42 -0
  1279. data/spec/models/enter_host_maintenance4_xx_response_spec.rb +42 -0
  1280. data/spec/models/exit_host_maintenance202_response_spec.rb +42 -0
  1281. data/spec/models/exit_host_maintenance4_xx_response_spec.rb +42 -0
  1282. data/spec/models/expand_cluster202_response_spec.rb +42 -0
  1283. data/spec/models/expand_cluster4_xx_response_spec.rb +42 -0
  1284. data/spec/models/fetch_node_networking_details202_response_spec.rb +42 -0
  1285. data/spec/models/fetch_node_networking_details4_xx_response_spec.rb +42 -0
  1286. data/spec/models/fetch_task_response200_response_spec.rb +42 -0
  1287. data/spec/models/fetch_task_response4_xx_response_spec.rb +42 -0
  1288. data/spec/models/get_bmc_info200_response_spec.rb +42 -0
  1289. data/spec/models/get_bmc_info4_xx_response_spec.rb +42 -0
  1290. data/spec/models/get_cluster_by_id200_response_spec.rb +42 -0
  1291. data/spec/models/get_cluster_by_id4_xx_response_spec.rb +42 -0
  1292. data/spec/models/get_cluster_profile_by_id200_response_spec.rb +42 -0
  1293. data/spec/models/get_cluster_profile_by_id4_xx_response_spec.rb +42 -0
  1294. data/spec/models/get_cluster_stats200_response_spec.rb +42 -0
  1295. data/spec/models/get_cluster_stats4_xx_response_spec.rb +42 -0
  1296. data/spec/models/get_disk_by_id200_response_spec.rb +42 -0
  1297. data/spec/models/get_disk_by_id4_xx_response_spec.rb +42 -0
  1298. data/spec/models/get_disk_stats200_response_spec.rb +42 -0
  1299. data/spec/models/get_disk_stats4_xx_response_spec.rb +42 -0
  1300. data/spec/models/get_host_by_id200_response_spec.rb +42 -0
  1301. data/spec/models/get_host_by_id4_xx_response_spec.rb +42 -0
  1302. data/spec/models/get_host_nic_by_id200_response_spec.rb +42 -0
  1303. data/spec/models/get_host_nic_by_id4_xx_response_spec.rb +42 -0
  1304. data/spec/models/get_host_stats200_response_spec.rb +42 -0
  1305. data/spec/models/get_host_stats4_xx_response_spec.rb +42 -0
  1306. data/spec/models/get_rackable_unit_by_id200_response_spec.rb +42 -0
  1307. data/spec/models/get_rackable_unit_by_id4_xx_response_spec.rb +42 -0
  1308. data/spec/models/get_rsyslog_server_by_id200_response_spec.rb +42 -0
  1309. data/spec/models/get_rsyslog_server_by_id4_xx_response_spec.rb +42 -0
  1310. data/spec/models/get_snmp_config_by_cluster_id200_response_spec.rb +42 -0
  1311. data/spec/models/get_snmp_config_by_cluster_id4_xx_response_spec.rb +42 -0
  1312. data/spec/models/get_snmp_trap_by_id200_response_spec.rb +42 -0
  1313. data/spec/models/get_snmp_trap_by_id4_xx_response_spec.rb +42 -0
  1314. data/spec/models/get_snmp_user_by_id200_response_spec.rb +42 -0
  1315. data/spec/models/get_snmp_user_by_id4_xx_response_spec.rb +42 -0
  1316. data/spec/models/get_storage_container_by_id200_response_spec.rb +42 -0
  1317. data/spec/models/get_storage_container_by_id4_xx_response_spec.rb +42 -0
  1318. data/spec/models/get_storage_container_stats200_response_spec.rb +42 -0
  1319. data/spec/models/get_storage_container_stats4_xx_response_spec.rb +42 -0
  1320. data/spec/models/get_vcenter_extension_by_id200_response_spec.rb +42 -0
  1321. data/spec/models/get_vcenter_extension_by_id4_xx_response_spec.rb +42 -0
  1322. data/spec/models/get_virtual_nic_by_id200_response_spec.rb +42 -0
  1323. data/spec/models/get_virtual_nic_by_id4_xx_response_spec.rb +42 -0
  1324. data/spec/models/list_cluster_profiles200_response_spec.rb +42 -0
  1325. data/spec/models/list_cluster_profiles4_xx_response_spec.rb +42 -0
  1326. data/spec/models/list_clusters200_response_spec.rb +42 -0
  1327. data/spec/models/list_clusters4_xx_response_spec.rb +42 -0
  1328. data/spec/models/list_data_stores_by_cluster_id200_response_spec.rb +42 -0
  1329. data/spec/models/list_data_stores_by_cluster_id4_xx_response_spec.rb +42 -0
  1330. data/spec/models/list_disks200_response_spec.rb +42 -0
  1331. data/spec/models/list_disks4_xx_response_spec.rb +42 -0
  1332. data/spec/models/list_host_nics_by_host_id200_response_spec.rb +42 -0
  1333. data/spec/models/list_host_nics_by_host_id4_xx_response_spec.rb +42 -0
  1334. data/spec/models/list_hosts200_response_spec.rb +42 -0
  1335. data/spec/models/list_hosts4_xx_response_spec.rb +42 -0
  1336. data/spec/models/list_hosts_by_cluster_id200_response_spec.rb +42 -0
  1337. data/spec/models/list_hosts_by_cluster_id4_xx_response_spec.rb +42 -0
  1338. data/spec/models/list_pcie_devices200_response_spec.rb +42 -0
  1339. data/spec/models/list_pcie_devices4_xx_response_spec.rb +42 -0
  1340. data/spec/models/list_physical_gpu_profiles200_response_spec.rb +42 -0
  1341. data/spec/models/list_physical_gpu_profiles4_xx_response_spec.rb +42 -0
  1342. data/spec/models/list_rackable_units_by_cluster_id200_response_spec.rb +42 -0
  1343. data/spec/models/list_rackable_units_by_cluster_id4_xx_response_spec.rb +42 -0
  1344. data/spec/models/list_rsyslog_servers_by_cluster_id200_response_spec.rb +42 -0
  1345. data/spec/models/list_rsyslog_servers_by_cluster_id4_xx_response_spec.rb +42 -0
  1346. data/spec/models/list_storage_containers200_response_spec.rb +42 -0
  1347. data/spec/models/list_storage_containers4_xx_response_spec.rb +42 -0
  1348. data/spec/models/list_vcenter_extensions200_response_spec.rb +42 -0
  1349. data/spec/models/list_vcenter_extensions4_xx_response_spec.rb +42 -0
  1350. data/spec/models/list_virtual_gpu_profiles200_response_spec.rb +42 -0
  1351. data/spec/models/list_virtual_gpu_profiles4_xx_response_spec.rb +42 -0
  1352. data/spec/models/list_virtual_nics_by_host_id200_response_spec.rb +42 -0
  1353. data/spec/models/list_virtual_nics_by_host_id4_xx_response_spec.rb +42 -0
  1354. data/spec/models/mount_storage_container202_response_spec.rb +42 -0
  1355. data/spec/models/mount_storage_container4_xx_response_spec.rb +42 -0
  1356. data/spec/models/prism_v40_config_task_reference_spec.rb +36 -0
  1357. data/spec/models/register_vcenter_extension202_response_spec.rb +42 -0
  1358. data/spec/models/register_vcenter_extension4_xx_response_spec.rb +42 -0
  1359. data/spec/models/remove_node202_response_spec.rb +42 -0
  1360. data/spec/models/remove_node4_xx_response_spec.rb +42 -0
  1361. data/spec/models/remove_snmp_transport202_response_spec.rb +42 -0
  1362. data/spec/models/remove_snmp_transport4_xx_response_spec.rb +42 -0
  1363. data/spec/models/unmount_storage_container202_response_spec.rb +42 -0
  1364. data/spec/models/unmount_storage_container4_xx_response_spec.rb +42 -0
  1365. data/spec/models/unregister_vcenter_extension202_response_spec.rb +42 -0
  1366. data/spec/models/unregister_vcenter_extension4_xx_response_spec.rb +42 -0
  1367. data/spec/models/update_bmc_info202_response_spec.rb +42 -0
  1368. data/spec/models/update_bmc_info4_xx_response_spec.rb +42 -0
  1369. data/spec/models/update_cluster_by_id202_response_spec.rb +42 -0
  1370. data/spec/models/update_cluster_by_id4_xx_response_spec.rb +42 -0
  1371. data/spec/models/update_cluster_profile_by_id202_response_spec.rb +42 -0
  1372. data/spec/models/update_cluster_profile_by_id4_xx_response_spec.rb +42 -0
  1373. data/spec/models/update_rsyslog_server_by_id202_response_spec.rb +42 -0
  1374. data/spec/models/update_rsyslog_server_by_id4_xx_response_spec.rb +42 -0
  1375. data/spec/models/update_snmp_status202_response_spec.rb +42 -0
  1376. data/spec/models/update_snmp_status4_xx_response_spec.rb +42 -0
  1377. data/spec/models/update_snmp_trap_by_id202_response_spec.rb +42 -0
  1378. data/spec/models/update_snmp_trap_by_id4_xx_response_spec.rb +42 -0
  1379. data/spec/models/update_snmp_user_by_id202_response_spec.rb +42 -0
  1380. data/spec/models/update_snmp_user_by_id4_xx_response_spec.rb +42 -0
  1381. data/spec/models/update_storage_container_by_id202_response_spec.rb +42 -0
  1382. data/spec/models/update_storage_container_by_id4_xx_response_spec.rb +42 -0
  1383. data/spec/models/validate_node202_response_spec.rb +42 -0
  1384. data/spec/models/validate_node4_xx_response_spec.rb +42 -0
  1385. data/spec/spec_helper.rb +111 -0
  1386. data/swagger-clustermgmt-v4.0-all.yaml +25015 -0
  1387. metadata +1923 -0
@@ -0,0 +1,3903 @@
1
+ =begin
2
+ #Nutanix Cluster Management APIs
3
+
4
+ #Manage Hosts, Clusters and other Infrastructure.
5
+
6
+ The version of the OpenAPI document: 4.0.2
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.9.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module NutanixClustermgmt
16
+ class ClustersApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Add SNMP transport ports and protocol details
23
+ # Adds transport ports and protocol details to the SNMP configuration associated with the cluster identified by {clusterExtId}.
24
+ # @param cluster_ext_id [String] Cluster UUID.
25
+ # @param clustermgmt_v40_config_snmp_transport [ClustermgmtV40ConfigSnmpTransport] SNMP transports to add.
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [AddSnmpTransport202Response]
28
+ def add_snmp_transport(cluster_ext_id, clustermgmt_v40_config_snmp_transport, opts = {})
29
+ data, _status_code, _headers = add_snmp_transport_with_http_info(cluster_ext_id, clustermgmt_v40_config_snmp_transport, opts)
30
+ data
31
+ end
32
+
33
+ # Add SNMP transport ports and protocol details
34
+ # Adds transport ports and protocol details to the SNMP configuration associated with the cluster identified by {clusterExtId}.
35
+ # @param cluster_ext_id [String] Cluster UUID.
36
+ # @param clustermgmt_v40_config_snmp_transport [ClustermgmtV40ConfigSnmpTransport] SNMP transports to add.
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(AddSnmpTransport202Response, Integer, Hash)>] AddSnmpTransport202Response data, response status code and response headers
39
+ def add_snmp_transport_with_http_info(cluster_ext_id, clustermgmt_v40_config_snmp_transport, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: ClustersApi.add_snmp_transport ...'
42
+ end
43
+ # verify the required parameter 'cluster_ext_id' is set
44
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
45
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.add_snmp_transport"
46
+ end
47
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
48
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
49
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.add_snmp_transport, must conform to the pattern #{pattern}."
50
+ end
51
+
52
+ # verify the required parameter 'clustermgmt_v40_config_snmp_transport' is set
53
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_snmp_transport.nil?
54
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_snmp_transport' when calling ClustersApi.add_snmp_transport"
55
+ end
56
+ # resource path
57
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/snmp/$actions/add-transports'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
58
+
59
+ # query parameters
60
+ query_params = opts[:query_params] || {}
61
+
62
+ # header parameters
63
+ header_params = opts[:header_params] || {}
64
+ # HTTP header 'Accept' (if needed)
65
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
66
+ # HTTP header 'Content-Type'
67
+ content_type = @api_client.select_header_content_type(['application/json'])
68
+ if !content_type.nil?
69
+ header_params['Content-Type'] = content_type
70
+ end
71
+
72
+ # form parameters
73
+ form_params = opts[:form_params] || {}
74
+
75
+ # http body (model)
76
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_snmp_transport)
77
+
78
+ # return_type
79
+ return_type = opts[:debug_return_type] || 'AddSnmpTransport202Response'
80
+
81
+ # auth_names
82
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
83
+
84
+ new_options = opts.merge(
85
+ :operation => :"ClustersApi.add_snmp_transport",
86
+ :header_params => header_params,
87
+ :query_params => query_params,
88
+ :form_params => form_params,
89
+ :body => post_body,
90
+ :auth_names => auth_names,
91
+ :return_type => return_type
92
+ )
93
+
94
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug "API called: ClustersApi#add_snmp_transport\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
97
+ end
98
+ return data, status_code, headers
99
+ end
100
+
101
+ # Associate categories to the cluster
102
+ # Attach categories to the cluster identified by {clusterExtId}.
103
+ # @param cluster_ext_id [String] Cluster UUID.
104
+ # @param clustermgmt_v40_config_category_entity_references [ClustermgmtV40ConfigCategoryEntityReferences] The specifications required for updating categories to the entity.
105
+ # @param [Hash] opts the optional parameters
106
+ # @return [AssociateCategoriesToCluster202Response]
107
+ def associate_categories_to_cluster(cluster_ext_id, clustermgmt_v40_config_category_entity_references, opts = {})
108
+ data, _status_code, _headers = associate_categories_to_cluster_with_http_info(cluster_ext_id, clustermgmt_v40_config_category_entity_references, opts)
109
+ data
110
+ end
111
+
112
+ # Associate categories to the cluster
113
+ # Attach categories to the cluster identified by {clusterExtId}.
114
+ # @param cluster_ext_id [String] Cluster UUID.
115
+ # @param clustermgmt_v40_config_category_entity_references [ClustermgmtV40ConfigCategoryEntityReferences] The specifications required for updating categories to the entity.
116
+ # @param [Hash] opts the optional parameters
117
+ # @return [Array<(AssociateCategoriesToCluster202Response, Integer, Hash)>] AssociateCategoriesToCluster202Response data, response status code and response headers
118
+ def associate_categories_to_cluster_with_http_info(cluster_ext_id, clustermgmt_v40_config_category_entity_references, opts = {})
119
+ if @api_client.config.debugging
120
+ @api_client.config.logger.debug 'Calling API: ClustersApi.associate_categories_to_cluster ...'
121
+ end
122
+ # verify the required parameter 'cluster_ext_id' is set
123
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
124
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.associate_categories_to_cluster"
125
+ end
126
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
127
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
128
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.associate_categories_to_cluster, must conform to the pattern #{pattern}."
129
+ end
130
+
131
+ # verify the required parameter 'clustermgmt_v40_config_category_entity_references' is set
132
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_category_entity_references.nil?
133
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_category_entity_references' when calling ClustersApi.associate_categories_to_cluster"
134
+ end
135
+ # resource path
136
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/$actions/associate-categories'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
137
+
138
+ # query parameters
139
+ query_params = opts[:query_params] || {}
140
+
141
+ # header parameters
142
+ header_params = opts[:header_params] || {}
143
+ # HTTP header 'Accept' (if needed)
144
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
145
+ # HTTP header 'Content-Type'
146
+ content_type = @api_client.select_header_content_type(['application/json'])
147
+ if !content_type.nil?
148
+ header_params['Content-Type'] = content_type
149
+ end
150
+
151
+ # form parameters
152
+ form_params = opts[:form_params] || {}
153
+
154
+ # http body (model)
155
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_category_entity_references)
156
+
157
+ # return_type
158
+ return_type = opts[:debug_return_type] || 'AssociateCategoriesToCluster202Response'
159
+
160
+ # auth_names
161
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
162
+
163
+ new_options = opts.merge(
164
+ :operation => :"ClustersApi.associate_categories_to_cluster",
165
+ :header_params => header_params,
166
+ :query_params => query_params,
167
+ :form_params => form_params,
168
+ :body => post_body,
169
+ :auth_names => auth_names,
170
+ :return_type => return_type
171
+ )
172
+
173
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
174
+ if @api_client.config.debugging
175
+ @api_client.config.logger.debug "API called: ClustersApi#associate_categories_to_cluster\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
176
+ end
177
+ return data, status_code, headers
178
+ end
179
+
180
+ # Get hypervisor ISO upload information
181
+ # Provides information on whether hypervisor ISO upload is required or not. This API is not supported for XEN hypervisor type.
182
+ # @param cluster_ext_id [String] Cluster UUID.
183
+ # @param clustermgmt_v40_config_hypervisor_upload_param [ClustermgmtV40ConfigHypervisorUploadParam] Parameters to get information on whether hypervisor ISO upload is required or not.
184
+ # @param [Hash] opts the optional parameters
185
+ # @return [CheckHypervisorRequirements202Response]
186
+ def check_hypervisor_requirements(cluster_ext_id, clustermgmt_v40_config_hypervisor_upload_param, opts = {})
187
+ data, _status_code, _headers = check_hypervisor_requirements_with_http_info(cluster_ext_id, clustermgmt_v40_config_hypervisor_upload_param, opts)
188
+ data
189
+ end
190
+
191
+ # Get hypervisor ISO upload information
192
+ # Provides information on whether hypervisor ISO upload is required or not. This API is not supported for XEN hypervisor type.
193
+ # @param cluster_ext_id [String] Cluster UUID.
194
+ # @param clustermgmt_v40_config_hypervisor_upload_param [ClustermgmtV40ConfigHypervisorUploadParam] Parameters to get information on whether hypervisor ISO upload is required or not.
195
+ # @param [Hash] opts the optional parameters
196
+ # @return [Array<(CheckHypervisorRequirements202Response, Integer, Hash)>] CheckHypervisorRequirements202Response data, response status code and response headers
197
+ def check_hypervisor_requirements_with_http_info(cluster_ext_id, clustermgmt_v40_config_hypervisor_upload_param, opts = {})
198
+ if @api_client.config.debugging
199
+ @api_client.config.logger.debug 'Calling API: ClustersApi.check_hypervisor_requirements ...'
200
+ end
201
+ # verify the required parameter 'cluster_ext_id' is set
202
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
203
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.check_hypervisor_requirements"
204
+ end
205
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
206
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
207
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.check_hypervisor_requirements, must conform to the pattern #{pattern}."
208
+ end
209
+
210
+ # verify the required parameter 'clustermgmt_v40_config_hypervisor_upload_param' is set
211
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_hypervisor_upload_param.nil?
212
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_hypervisor_upload_param' when calling ClustersApi.check_hypervisor_requirements"
213
+ end
214
+ # resource path
215
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/$actions/check-hypervisor-requirements'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
216
+
217
+ # query parameters
218
+ query_params = opts[:query_params] || {}
219
+
220
+ # header parameters
221
+ header_params = opts[:header_params] || {}
222
+ # HTTP header 'Accept' (if needed)
223
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
224
+ # HTTP header 'Content-Type'
225
+ content_type = @api_client.select_header_content_type(['application/json'])
226
+ if !content_type.nil?
227
+ header_params['Content-Type'] = content_type
228
+ end
229
+
230
+ # form parameters
231
+ form_params = opts[:form_params] || {}
232
+
233
+ # http body (model)
234
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_hypervisor_upload_param)
235
+
236
+ # return_type
237
+ return_type = opts[:debug_return_type] || 'CheckHypervisorRequirements202Response'
238
+
239
+ # auth_names
240
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
241
+
242
+ new_options = opts.merge(
243
+ :operation => :"ClustersApi.check_hypervisor_requirements",
244
+ :header_params => header_params,
245
+ :query_params => query_params,
246
+ :form_params => form_params,
247
+ :body => post_body,
248
+ :auth_names => auth_names,
249
+ :return_type => return_type
250
+ )
251
+
252
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
253
+ if @api_client.config.debugging
254
+ @api_client.config.logger.debug "API called: ClustersApi#check_hypervisor_requirements\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
255
+ end
256
+ return data, status_code, headers
257
+ end
258
+
259
+ # Create a cluster
260
+ # Cluster create operation.
261
+ # @param ntnx_request_id [String] A unique identifier that is associated with each request. The provided value must be opaque and preferably in Universal Unique Identifier (UUID) format. This identifier is also used as an idempotence token for safely retrying requests in case of network errors. All the supported Nutanix API clients add this auto-generated request identifier to each request.
262
+ # @param clustermgmt_v40_config_cluster [ClustermgmtV40ConfigCluster] The required parameters for cluster create workflow.
263
+ # @param [Hash] opts the optional parameters
264
+ # @option opts [Boolean] :dryrun A URL query parameter that allows long running operations to execute in a dry-run mode providing ability to identify trouble spots and system failures without performing the actual operation. Additionally this mode also offers a summary snapshot of the resultant system in order to better understand how things fit together. The operation runs in dry-run mode only if the provided value is true.
265
+ # @return [CreateCluster202Response]
266
+ def create_cluster(ntnx_request_id, clustermgmt_v40_config_cluster, opts = {})
267
+ data, _status_code, _headers = create_cluster_with_http_info(ntnx_request_id, clustermgmt_v40_config_cluster, opts)
268
+ data
269
+ end
270
+
271
+ # Create a cluster
272
+ # Cluster create operation.
273
+ # @param ntnx_request_id [String] A unique identifier that is associated with each request. The provided value must be opaque and preferably in Universal Unique Identifier (UUID) format. This identifier is also used as an idempotence token for safely retrying requests in case of network errors. All the supported Nutanix API clients add this auto-generated request identifier to each request.
274
+ # @param clustermgmt_v40_config_cluster [ClustermgmtV40ConfigCluster] The required parameters for cluster create workflow.
275
+ # @param [Hash] opts the optional parameters
276
+ # @option opts [Boolean] :dryrun A URL query parameter that allows long running operations to execute in a dry-run mode providing ability to identify trouble spots and system failures without performing the actual operation. Additionally this mode also offers a summary snapshot of the resultant system in order to better understand how things fit together. The operation runs in dry-run mode only if the provided value is true.
277
+ # @return [Array<(CreateCluster202Response, Integer, Hash)>] CreateCluster202Response data, response status code and response headers
278
+ def create_cluster_with_http_info(ntnx_request_id, clustermgmt_v40_config_cluster, opts = {})
279
+ if @api_client.config.debugging
280
+ @api_client.config.logger.debug 'Calling API: ClustersApi.create_cluster ...'
281
+ end
282
+ # verify the required parameter 'ntnx_request_id' is set
283
+ if @api_client.config.client_side_validation && ntnx_request_id.nil?
284
+ fail ArgumentError, "Missing the required parameter 'ntnx_request_id' when calling ClustersApi.create_cluster"
285
+ end
286
+ # verify the required parameter 'clustermgmt_v40_config_cluster' is set
287
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_cluster.nil?
288
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_cluster' when calling ClustersApi.create_cluster"
289
+ end
290
+ # resource path
291
+ local_var_path = '/clustermgmt/v4.0/config/clusters'
292
+
293
+ # query parameters
294
+ query_params = opts[:query_params] || {}
295
+ query_params[:'$dryrun'] = opts[:'dryrun'] if !opts[:'dryrun'].nil?
296
+
297
+ # header parameters
298
+ header_params = opts[:header_params] || {}
299
+ # HTTP header 'Accept' (if needed)
300
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
301
+ # HTTP header 'Content-Type'
302
+ content_type = @api_client.select_header_content_type(['application/json'])
303
+ if !content_type.nil?
304
+ header_params['Content-Type'] = content_type
305
+ end
306
+ header_params[:'NTNX-Request-Id'] = ntnx_request_id
307
+
308
+ # form parameters
309
+ form_params = opts[:form_params] || {}
310
+
311
+ # http body (model)
312
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_cluster)
313
+
314
+ # return_type
315
+ return_type = opts[:debug_return_type] || 'CreateCluster202Response'
316
+
317
+ # auth_names
318
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
319
+
320
+ new_options = opts.merge(
321
+ :operation => :"ClustersApi.create_cluster",
322
+ :header_params => header_params,
323
+ :query_params => query_params,
324
+ :form_params => form_params,
325
+ :body => post_body,
326
+ :auth_names => auth_names,
327
+ :return_type => return_type
328
+ )
329
+
330
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
331
+ if @api_client.config.debugging
332
+ @api_client.config.logger.debug "API called: ClustersApi#create_cluster\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
333
+ end
334
+ return data, status_code, headers
335
+ end
336
+
337
+ # Add RSYSLOG server configuration
338
+ # Adds RSYSLOG server configuration to the cluster identified by {clusterExtId}.
339
+ # @param cluster_ext_id [String] Cluster UUID.
340
+ # @param clustermgmt_v40_config_rsyslog_server [ClustermgmtV40ConfigRsyslogServer] RSYSLOG server to add.
341
+ # @param [Hash] opts the optional parameters
342
+ # @return [CreateRsyslogServer202Response]
343
+ def create_rsyslog_server(cluster_ext_id, clustermgmt_v40_config_rsyslog_server, opts = {})
344
+ data, _status_code, _headers = create_rsyslog_server_with_http_info(cluster_ext_id, clustermgmt_v40_config_rsyslog_server, opts)
345
+ data
346
+ end
347
+
348
+ # Add RSYSLOG server configuration
349
+ # Adds RSYSLOG server configuration to the cluster identified by {clusterExtId}.
350
+ # @param cluster_ext_id [String] Cluster UUID.
351
+ # @param clustermgmt_v40_config_rsyslog_server [ClustermgmtV40ConfigRsyslogServer] RSYSLOG server to add.
352
+ # @param [Hash] opts the optional parameters
353
+ # @return [Array<(CreateRsyslogServer202Response, Integer, Hash)>] CreateRsyslogServer202Response data, response status code and response headers
354
+ def create_rsyslog_server_with_http_info(cluster_ext_id, clustermgmt_v40_config_rsyslog_server, opts = {})
355
+ if @api_client.config.debugging
356
+ @api_client.config.logger.debug 'Calling API: ClustersApi.create_rsyslog_server ...'
357
+ end
358
+ # verify the required parameter 'cluster_ext_id' is set
359
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
360
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.create_rsyslog_server"
361
+ end
362
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
363
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
364
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.create_rsyslog_server, must conform to the pattern #{pattern}."
365
+ end
366
+
367
+ # verify the required parameter 'clustermgmt_v40_config_rsyslog_server' is set
368
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_rsyslog_server.nil?
369
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_rsyslog_server' when calling ClustersApi.create_rsyslog_server"
370
+ end
371
+ # resource path
372
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/rsyslog-servers'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
373
+
374
+ # query parameters
375
+ query_params = opts[:query_params] || {}
376
+
377
+ # header parameters
378
+ header_params = opts[:header_params] || {}
379
+ # HTTP header 'Accept' (if needed)
380
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
381
+ # HTTP header 'Content-Type'
382
+ content_type = @api_client.select_header_content_type(['application/json'])
383
+ if !content_type.nil?
384
+ header_params['Content-Type'] = content_type
385
+ end
386
+
387
+ # form parameters
388
+ form_params = opts[:form_params] || {}
389
+
390
+ # http body (model)
391
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_rsyslog_server)
392
+
393
+ # return_type
394
+ return_type = opts[:debug_return_type] || 'CreateRsyslogServer202Response'
395
+
396
+ # auth_names
397
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
398
+
399
+ new_options = opts.merge(
400
+ :operation => :"ClustersApi.create_rsyslog_server",
401
+ :header_params => header_params,
402
+ :query_params => query_params,
403
+ :form_params => form_params,
404
+ :body => post_body,
405
+ :auth_names => auth_names,
406
+ :return_type => return_type
407
+ )
408
+
409
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
410
+ if @api_client.config.debugging
411
+ @api_client.config.logger.debug "API called: ClustersApi#create_rsyslog_server\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
412
+ end
413
+ return data, status_code, headers
414
+ end
415
+
416
+ # Add SNMP trap
417
+ # Add SNMP trap configuration associated with the cluster identified by {clusterExtId}.
418
+ # @param cluster_ext_id [String] Cluster UUID.
419
+ # @param clustermgmt_v40_config_snmp_trap [ClustermgmtV40ConfigSnmpTrap] SNMP trap to add.
420
+ # @param [Hash] opts the optional parameters
421
+ # @return [CreateSnmpTrap202Response]
422
+ def create_snmp_trap(cluster_ext_id, clustermgmt_v40_config_snmp_trap, opts = {})
423
+ data, _status_code, _headers = create_snmp_trap_with_http_info(cluster_ext_id, clustermgmt_v40_config_snmp_trap, opts)
424
+ data
425
+ end
426
+
427
+ # Add SNMP trap
428
+ # Add SNMP trap configuration associated with the cluster identified by {clusterExtId}.
429
+ # @param cluster_ext_id [String] Cluster UUID.
430
+ # @param clustermgmt_v40_config_snmp_trap [ClustermgmtV40ConfigSnmpTrap] SNMP trap to add.
431
+ # @param [Hash] opts the optional parameters
432
+ # @return [Array<(CreateSnmpTrap202Response, Integer, Hash)>] CreateSnmpTrap202Response data, response status code and response headers
433
+ def create_snmp_trap_with_http_info(cluster_ext_id, clustermgmt_v40_config_snmp_trap, opts = {})
434
+ if @api_client.config.debugging
435
+ @api_client.config.logger.debug 'Calling API: ClustersApi.create_snmp_trap ...'
436
+ end
437
+ # verify the required parameter 'cluster_ext_id' is set
438
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
439
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.create_snmp_trap"
440
+ end
441
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
442
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
443
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.create_snmp_trap, must conform to the pattern #{pattern}."
444
+ end
445
+
446
+ # verify the required parameter 'clustermgmt_v40_config_snmp_trap' is set
447
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_snmp_trap.nil?
448
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_snmp_trap' when calling ClustersApi.create_snmp_trap"
449
+ end
450
+ # resource path
451
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/snmp/traps'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
452
+
453
+ # query parameters
454
+ query_params = opts[:query_params] || {}
455
+
456
+ # header parameters
457
+ header_params = opts[:header_params] || {}
458
+ # HTTP header 'Accept' (if needed)
459
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
460
+ # HTTP header 'Content-Type'
461
+ content_type = @api_client.select_header_content_type(['application/json'])
462
+ if !content_type.nil?
463
+ header_params['Content-Type'] = content_type
464
+ end
465
+
466
+ # form parameters
467
+ form_params = opts[:form_params] || {}
468
+
469
+ # http body (model)
470
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_snmp_trap)
471
+
472
+ # return_type
473
+ return_type = opts[:debug_return_type] || 'CreateSnmpTrap202Response'
474
+
475
+ # auth_names
476
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
477
+
478
+ new_options = opts.merge(
479
+ :operation => :"ClustersApi.create_snmp_trap",
480
+ :header_params => header_params,
481
+ :query_params => query_params,
482
+ :form_params => form_params,
483
+ :body => post_body,
484
+ :auth_names => auth_names,
485
+ :return_type => return_type
486
+ )
487
+
488
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
489
+ if @api_client.config.debugging
490
+ @api_client.config.logger.debug "API called: ClustersApi#create_snmp_trap\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
491
+ end
492
+ return data, status_code, headers
493
+ end
494
+
495
+ # Add SNMP user
496
+ # Adds SNMP user configuration to the cluster identified by {clusterExtId}.
497
+ # @param cluster_ext_id [String] Cluster UUID.
498
+ # @param clustermgmt_v40_config_snmp_user [ClustermgmtV40ConfigSnmpUser] SNMP user to add.
499
+ # @param [Hash] opts the optional parameters
500
+ # @return [CreateSnmpUser202Response]
501
+ def create_snmp_user(cluster_ext_id, clustermgmt_v40_config_snmp_user, opts = {})
502
+ data, _status_code, _headers = create_snmp_user_with_http_info(cluster_ext_id, clustermgmt_v40_config_snmp_user, opts)
503
+ data
504
+ end
505
+
506
+ # Add SNMP user
507
+ # Adds SNMP user configuration to the cluster identified by {clusterExtId}.
508
+ # @param cluster_ext_id [String] Cluster UUID.
509
+ # @param clustermgmt_v40_config_snmp_user [ClustermgmtV40ConfigSnmpUser] SNMP user to add.
510
+ # @param [Hash] opts the optional parameters
511
+ # @return [Array<(CreateSnmpUser202Response, Integer, Hash)>] CreateSnmpUser202Response data, response status code and response headers
512
+ def create_snmp_user_with_http_info(cluster_ext_id, clustermgmt_v40_config_snmp_user, opts = {})
513
+ if @api_client.config.debugging
514
+ @api_client.config.logger.debug 'Calling API: ClustersApi.create_snmp_user ...'
515
+ end
516
+ # verify the required parameter 'cluster_ext_id' is set
517
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
518
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.create_snmp_user"
519
+ end
520
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
521
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
522
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.create_snmp_user, must conform to the pattern #{pattern}."
523
+ end
524
+
525
+ # verify the required parameter 'clustermgmt_v40_config_snmp_user' is set
526
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_snmp_user.nil?
527
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_snmp_user' when calling ClustersApi.create_snmp_user"
528
+ end
529
+ # resource path
530
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/snmp/users'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
531
+
532
+ # query parameters
533
+ query_params = opts[:query_params] || {}
534
+
535
+ # header parameters
536
+ header_params = opts[:header_params] || {}
537
+ # HTTP header 'Accept' (if needed)
538
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
539
+ # HTTP header 'Content-Type'
540
+ content_type = @api_client.select_header_content_type(['application/json'])
541
+ if !content_type.nil?
542
+ header_params['Content-Type'] = content_type
543
+ end
544
+
545
+ # form parameters
546
+ form_params = opts[:form_params] || {}
547
+
548
+ # http body (model)
549
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_snmp_user)
550
+
551
+ # return_type
552
+ return_type = opts[:debug_return_type] || 'CreateSnmpUser202Response'
553
+
554
+ # auth_names
555
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
556
+
557
+ new_options = opts.merge(
558
+ :operation => :"ClustersApi.create_snmp_user",
559
+ :header_params => header_params,
560
+ :query_params => query_params,
561
+ :form_params => form_params,
562
+ :body => post_body,
563
+ :auth_names => auth_names,
564
+ :return_type => return_type
565
+ )
566
+
567
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
568
+ if @api_client.config.debugging
569
+ @api_client.config.logger.debug "API called: ClustersApi#create_snmp_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
570
+ end
571
+ return data, status_code, headers
572
+ end
573
+
574
+ # Delete a cluster
575
+ # Deletes the cluster identified by {extId}.
576
+ # @param ext_id [String] Cluster UUID.
577
+ # @param ntnx_request_id [String] A unique identifier that is associated with each request. The provided value must be opaque and preferably in Universal Unique Identifier (UUID) format. This identifier is also used as an idempotence token for safely retrying requests in case of network errors. All the supported Nutanix API clients add this auto-generated request identifier to each request.
578
+ # @param [Hash] opts the optional parameters
579
+ # @option opts [Boolean] :dryrun A URL query parameter that allows long running operations to execute in a dry-run mode providing ability to identify trouble spots and system failures without performing the actual operation. Additionally this mode also offers a summary snapshot of the resultant system in order to better understand how things fit together. The operation runs in dry-run mode only if the provided value is true.
580
+ # @return [DeleteClusterById202Response]
581
+ def delete_cluster_by_id(ext_id, ntnx_request_id, opts = {})
582
+ data, _status_code, _headers = delete_cluster_by_id_with_http_info(ext_id, ntnx_request_id, opts)
583
+ data
584
+ end
585
+
586
+ # Delete a cluster
587
+ # Deletes the cluster identified by {extId}.
588
+ # @param ext_id [String] Cluster UUID.
589
+ # @param ntnx_request_id [String] A unique identifier that is associated with each request. The provided value must be opaque and preferably in Universal Unique Identifier (UUID) format. This identifier is also used as an idempotence token for safely retrying requests in case of network errors. All the supported Nutanix API clients add this auto-generated request identifier to each request.
590
+ # @param [Hash] opts the optional parameters
591
+ # @option opts [Boolean] :dryrun A URL query parameter that allows long running operations to execute in a dry-run mode providing ability to identify trouble spots and system failures without performing the actual operation. Additionally this mode also offers a summary snapshot of the resultant system in order to better understand how things fit together. The operation runs in dry-run mode only if the provided value is true.
592
+ # @return [Array<(DeleteClusterById202Response, Integer, Hash)>] DeleteClusterById202Response data, response status code and response headers
593
+ def delete_cluster_by_id_with_http_info(ext_id, ntnx_request_id, opts = {})
594
+ if @api_client.config.debugging
595
+ @api_client.config.logger.debug 'Calling API: ClustersApi.delete_cluster_by_id ...'
596
+ end
597
+ # verify the required parameter 'ext_id' is set
598
+ if @api_client.config.client_side_validation && ext_id.nil?
599
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.delete_cluster_by_id"
600
+ end
601
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
602
+ if @api_client.config.client_side_validation && ext_id !~ pattern
603
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.delete_cluster_by_id, must conform to the pattern #{pattern}."
604
+ end
605
+
606
+ # verify the required parameter 'ntnx_request_id' is set
607
+ if @api_client.config.client_side_validation && ntnx_request_id.nil?
608
+ fail ArgumentError, "Missing the required parameter 'ntnx_request_id' when calling ClustersApi.delete_cluster_by_id"
609
+ end
610
+ # resource path
611
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{extId}'.sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
612
+
613
+ # query parameters
614
+ query_params = opts[:query_params] || {}
615
+ query_params[:'$dryrun'] = opts[:'dryrun'] if !opts[:'dryrun'].nil?
616
+
617
+ # header parameters
618
+ header_params = opts[:header_params] || {}
619
+ # HTTP header 'Accept' (if needed)
620
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
621
+ header_params[:'NTNX-Request-Id'] = ntnx_request_id
622
+
623
+ # form parameters
624
+ form_params = opts[:form_params] || {}
625
+
626
+ # http body (model)
627
+ post_body = opts[:debug_body]
628
+
629
+ # return_type
630
+ return_type = opts[:debug_return_type] || 'DeleteClusterById202Response'
631
+
632
+ # auth_names
633
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
634
+
635
+ new_options = opts.merge(
636
+ :operation => :"ClustersApi.delete_cluster_by_id",
637
+ :header_params => header_params,
638
+ :query_params => query_params,
639
+ :form_params => form_params,
640
+ :body => post_body,
641
+ :auth_names => auth_names,
642
+ :return_type => return_type
643
+ )
644
+
645
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
646
+ if @api_client.config.debugging
647
+ @api_client.config.logger.debug "API called: ClustersApi#delete_cluster_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
648
+ end
649
+ return data, status_code, headers
650
+ end
651
+
652
+ # Delete RSYSLOG server configuration
653
+ # Deletes RSYSLOG server configuration identified by {extId} associated with the cluster identified by {clusterExtId}.
654
+ # @param cluster_ext_id [String] Cluster UUID.
655
+ # @param ext_id [String] RSYSLOG server UUID.
656
+ # @param [Hash] opts the optional parameters
657
+ # @return [DeleteRsyslogServerById202Response]
658
+ def delete_rsyslog_server_by_id(cluster_ext_id, ext_id, opts = {})
659
+ data, _status_code, _headers = delete_rsyslog_server_by_id_with_http_info(cluster_ext_id, ext_id, opts)
660
+ data
661
+ end
662
+
663
+ # Delete RSYSLOG server configuration
664
+ # Deletes RSYSLOG server configuration identified by {extId} associated with the cluster identified by {clusterExtId}.
665
+ # @param cluster_ext_id [String] Cluster UUID.
666
+ # @param ext_id [String] RSYSLOG server UUID.
667
+ # @param [Hash] opts the optional parameters
668
+ # @return [Array<(DeleteRsyslogServerById202Response, Integer, Hash)>] DeleteRsyslogServerById202Response data, response status code and response headers
669
+ def delete_rsyslog_server_by_id_with_http_info(cluster_ext_id, ext_id, opts = {})
670
+ if @api_client.config.debugging
671
+ @api_client.config.logger.debug 'Calling API: ClustersApi.delete_rsyslog_server_by_id ...'
672
+ end
673
+ # verify the required parameter 'cluster_ext_id' is set
674
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
675
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.delete_rsyslog_server_by_id"
676
+ end
677
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
678
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
679
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.delete_rsyslog_server_by_id, must conform to the pattern #{pattern}."
680
+ end
681
+
682
+ # verify the required parameter 'ext_id' is set
683
+ if @api_client.config.client_side_validation && ext_id.nil?
684
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.delete_rsyslog_server_by_id"
685
+ end
686
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
687
+ if @api_client.config.client_side_validation && ext_id !~ pattern
688
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.delete_rsyslog_server_by_id, must conform to the pattern #{pattern}."
689
+ end
690
+
691
+ # resource path
692
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/rsyslog-servers/{extId}'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
693
+
694
+ # query parameters
695
+ query_params = opts[:query_params] || {}
696
+
697
+ # header parameters
698
+ header_params = opts[:header_params] || {}
699
+ # HTTP header 'Accept' (if needed)
700
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
701
+
702
+ # form parameters
703
+ form_params = opts[:form_params] || {}
704
+
705
+ # http body (model)
706
+ post_body = opts[:debug_body]
707
+
708
+ # return_type
709
+ return_type = opts[:debug_return_type] || 'DeleteRsyslogServerById202Response'
710
+
711
+ # auth_names
712
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
713
+
714
+ new_options = opts.merge(
715
+ :operation => :"ClustersApi.delete_rsyslog_server_by_id",
716
+ :header_params => header_params,
717
+ :query_params => query_params,
718
+ :form_params => form_params,
719
+ :body => post_body,
720
+ :auth_names => auth_names,
721
+ :return_type => return_type
722
+ )
723
+
724
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
725
+ if @api_client.config.debugging
726
+ @api_client.config.logger.debug "API called: ClustersApi#delete_rsyslog_server_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
727
+ end
728
+ return data, status_code, headers
729
+ end
730
+
731
+ # Delete SNMP trap
732
+ # Deletes SNMP trap configuration identified by {extId} associated with the cluster identified by {clusterExtId}.
733
+ # @param cluster_ext_id [String] Cluster UUID.
734
+ # @param ext_id [String] SNMP trap UUID.
735
+ # @param [Hash] opts the optional parameters
736
+ # @return [DeleteSnmpTrapById202Response]
737
+ def delete_snmp_trap_by_id(cluster_ext_id, ext_id, opts = {})
738
+ data, _status_code, _headers = delete_snmp_trap_by_id_with_http_info(cluster_ext_id, ext_id, opts)
739
+ data
740
+ end
741
+
742
+ # Delete SNMP trap
743
+ # Deletes SNMP trap configuration identified by {extId} associated with the cluster identified by {clusterExtId}.
744
+ # @param cluster_ext_id [String] Cluster UUID.
745
+ # @param ext_id [String] SNMP trap UUID.
746
+ # @param [Hash] opts the optional parameters
747
+ # @return [Array<(DeleteSnmpTrapById202Response, Integer, Hash)>] DeleteSnmpTrapById202Response data, response status code and response headers
748
+ def delete_snmp_trap_by_id_with_http_info(cluster_ext_id, ext_id, opts = {})
749
+ if @api_client.config.debugging
750
+ @api_client.config.logger.debug 'Calling API: ClustersApi.delete_snmp_trap_by_id ...'
751
+ end
752
+ # verify the required parameter 'cluster_ext_id' is set
753
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
754
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.delete_snmp_trap_by_id"
755
+ end
756
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
757
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
758
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.delete_snmp_trap_by_id, must conform to the pattern #{pattern}."
759
+ end
760
+
761
+ # verify the required parameter 'ext_id' is set
762
+ if @api_client.config.client_side_validation && ext_id.nil?
763
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.delete_snmp_trap_by_id"
764
+ end
765
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
766
+ if @api_client.config.client_side_validation && ext_id !~ pattern
767
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.delete_snmp_trap_by_id, must conform to the pattern #{pattern}."
768
+ end
769
+
770
+ # resource path
771
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/snmp/traps/{extId}'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
772
+
773
+ # query parameters
774
+ query_params = opts[:query_params] || {}
775
+
776
+ # header parameters
777
+ header_params = opts[:header_params] || {}
778
+ # HTTP header 'Accept' (if needed)
779
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
780
+
781
+ # form parameters
782
+ form_params = opts[:form_params] || {}
783
+
784
+ # http body (model)
785
+ post_body = opts[:debug_body]
786
+
787
+ # return_type
788
+ return_type = opts[:debug_return_type] || 'DeleteSnmpTrapById202Response'
789
+
790
+ # auth_names
791
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
792
+
793
+ new_options = opts.merge(
794
+ :operation => :"ClustersApi.delete_snmp_trap_by_id",
795
+ :header_params => header_params,
796
+ :query_params => query_params,
797
+ :form_params => form_params,
798
+ :body => post_body,
799
+ :auth_names => auth_names,
800
+ :return_type => return_type
801
+ )
802
+
803
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
804
+ if @api_client.config.debugging
805
+ @api_client.config.logger.debug "API called: ClustersApi#delete_snmp_trap_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
806
+ end
807
+ return data, status_code, headers
808
+ end
809
+
810
+ # Delete SNMP user
811
+ # Deletes SNMP user configuration identified by {extId} associated with the cluster identified by {clusterExtId}.
812
+ # @param cluster_ext_id [String] Cluster UUID.
813
+ # @param ext_id [String] SNMP user UUID.
814
+ # @param [Hash] opts the optional parameters
815
+ # @return [DeleteSnmpUserById202Response]
816
+ def delete_snmp_user_by_id(cluster_ext_id, ext_id, opts = {})
817
+ data, _status_code, _headers = delete_snmp_user_by_id_with_http_info(cluster_ext_id, ext_id, opts)
818
+ data
819
+ end
820
+
821
+ # Delete SNMP user
822
+ # Deletes SNMP user configuration identified by {extId} associated with the cluster identified by {clusterExtId}.
823
+ # @param cluster_ext_id [String] Cluster UUID.
824
+ # @param ext_id [String] SNMP user UUID.
825
+ # @param [Hash] opts the optional parameters
826
+ # @return [Array<(DeleteSnmpUserById202Response, Integer, Hash)>] DeleteSnmpUserById202Response data, response status code and response headers
827
+ def delete_snmp_user_by_id_with_http_info(cluster_ext_id, ext_id, opts = {})
828
+ if @api_client.config.debugging
829
+ @api_client.config.logger.debug 'Calling API: ClustersApi.delete_snmp_user_by_id ...'
830
+ end
831
+ # verify the required parameter 'cluster_ext_id' is set
832
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
833
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.delete_snmp_user_by_id"
834
+ end
835
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
836
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
837
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.delete_snmp_user_by_id, must conform to the pattern #{pattern}."
838
+ end
839
+
840
+ # verify the required parameter 'ext_id' is set
841
+ if @api_client.config.client_side_validation && ext_id.nil?
842
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.delete_snmp_user_by_id"
843
+ end
844
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
845
+ if @api_client.config.client_side_validation && ext_id !~ pattern
846
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.delete_snmp_user_by_id, must conform to the pattern #{pattern}."
847
+ end
848
+
849
+ # resource path
850
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/snmp/users/{extId}'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
851
+
852
+ # query parameters
853
+ query_params = opts[:query_params] || {}
854
+
855
+ # header parameters
856
+ header_params = opts[:header_params] || {}
857
+ # HTTP header 'Accept' (if needed)
858
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
859
+
860
+ # form parameters
861
+ form_params = opts[:form_params] || {}
862
+
863
+ # http body (model)
864
+ post_body = opts[:debug_body]
865
+
866
+ # return_type
867
+ return_type = opts[:debug_return_type] || 'DeleteSnmpUserById202Response'
868
+
869
+ # auth_names
870
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
871
+
872
+ new_options = opts.merge(
873
+ :operation => :"ClustersApi.delete_snmp_user_by_id",
874
+ :header_params => header_params,
875
+ :query_params => query_params,
876
+ :form_params => form_params,
877
+ :body => post_body,
878
+ :auth_names => auth_names,
879
+ :return_type => return_type
880
+ )
881
+
882
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
883
+ if @api_client.config.debugging
884
+ @api_client.config.logger.debug "API called: ClustersApi#delete_snmp_user_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
885
+ end
886
+ return data, status_code, headers
887
+ end
888
+
889
+ # Disassociate categories from the cluster
890
+ # Detach categories from the cluster identified by {clusterExtId}.
891
+ # @param cluster_ext_id [String] Cluster UUID.
892
+ # @param clustermgmt_v40_config_category_entity_references [ClustermgmtV40ConfigCategoryEntityReferences] The specifications required for updating categories to the entity.
893
+ # @param [Hash] opts the optional parameters
894
+ # @return [DisassociateCategoriesFromCluster202Response]
895
+ def disassociate_categories_from_cluster(cluster_ext_id, clustermgmt_v40_config_category_entity_references, opts = {})
896
+ data, _status_code, _headers = disassociate_categories_from_cluster_with_http_info(cluster_ext_id, clustermgmt_v40_config_category_entity_references, opts)
897
+ data
898
+ end
899
+
900
+ # Disassociate categories from the cluster
901
+ # Detach categories from the cluster identified by {clusterExtId}.
902
+ # @param cluster_ext_id [String] Cluster UUID.
903
+ # @param clustermgmt_v40_config_category_entity_references [ClustermgmtV40ConfigCategoryEntityReferences] The specifications required for updating categories to the entity.
904
+ # @param [Hash] opts the optional parameters
905
+ # @return [Array<(DisassociateCategoriesFromCluster202Response, Integer, Hash)>] DisassociateCategoriesFromCluster202Response data, response status code and response headers
906
+ def disassociate_categories_from_cluster_with_http_info(cluster_ext_id, clustermgmt_v40_config_category_entity_references, opts = {})
907
+ if @api_client.config.debugging
908
+ @api_client.config.logger.debug 'Calling API: ClustersApi.disassociate_categories_from_cluster ...'
909
+ end
910
+ # verify the required parameter 'cluster_ext_id' is set
911
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
912
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.disassociate_categories_from_cluster"
913
+ end
914
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
915
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
916
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.disassociate_categories_from_cluster, must conform to the pattern #{pattern}."
917
+ end
918
+
919
+ # verify the required parameter 'clustermgmt_v40_config_category_entity_references' is set
920
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_category_entity_references.nil?
921
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_category_entity_references' when calling ClustersApi.disassociate_categories_from_cluster"
922
+ end
923
+ # resource path
924
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/$actions/disassociate-categories'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
925
+
926
+ # query parameters
927
+ query_params = opts[:query_params] || {}
928
+
929
+ # header parameters
930
+ header_params = opts[:header_params] || {}
931
+ # HTTP header 'Accept' (if needed)
932
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
933
+ # HTTP header 'Content-Type'
934
+ content_type = @api_client.select_header_content_type(['application/json'])
935
+ if !content_type.nil?
936
+ header_params['Content-Type'] = content_type
937
+ end
938
+
939
+ # form parameters
940
+ form_params = opts[:form_params] || {}
941
+
942
+ # http body (model)
943
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_category_entity_references)
944
+
945
+ # return_type
946
+ return_type = opts[:debug_return_type] || 'DisassociateCategoriesFromCluster202Response'
947
+
948
+ # auth_names
949
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
950
+
951
+ new_options = opts.merge(
952
+ :operation => :"ClustersApi.disassociate_categories_from_cluster",
953
+ :header_params => header_params,
954
+ :query_params => query_params,
955
+ :form_params => form_params,
956
+ :body => post_body,
957
+ :auth_names => auth_names,
958
+ :return_type => return_type
959
+ )
960
+
961
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
962
+ if @api_client.config.debugging
963
+ @api_client.config.logger.debug "API called: ClustersApi#disassociate_categories_from_cluster\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
964
+ end
965
+ return data, status_code, headers
966
+ end
967
+
968
+ # Discover unconfigured nodes
969
+ # Get the unconfigured node details such as node UUID, node position, node IP, foundation version and more.
970
+ # @param cluster_ext_id [String] Cluster UUID.
971
+ # @param clustermgmt_v40_config_node_discovery_params [ClustermgmtV40ConfigNodeDiscoveryParams] Discover unconfigured node details.
972
+ # @param [Hash] opts the optional parameters
973
+ # @return [DiscoverUnconfiguredNodes202Response]
974
+ def discover_unconfigured_nodes(cluster_ext_id, clustermgmt_v40_config_node_discovery_params, opts = {})
975
+ data, _status_code, _headers = discover_unconfigured_nodes_with_http_info(cluster_ext_id, clustermgmt_v40_config_node_discovery_params, opts)
976
+ data
977
+ end
978
+
979
+ # Discover unconfigured nodes
980
+ # Get the unconfigured node details such as node UUID, node position, node IP, foundation version and more.
981
+ # @param cluster_ext_id [String] Cluster UUID.
982
+ # @param clustermgmt_v40_config_node_discovery_params [ClustermgmtV40ConfigNodeDiscoveryParams] Discover unconfigured node details.
983
+ # @param [Hash] opts the optional parameters
984
+ # @return [Array<(DiscoverUnconfiguredNodes202Response, Integer, Hash)>] DiscoverUnconfiguredNodes202Response data, response status code and response headers
985
+ def discover_unconfigured_nodes_with_http_info(cluster_ext_id, clustermgmt_v40_config_node_discovery_params, opts = {})
986
+ if @api_client.config.debugging
987
+ @api_client.config.logger.debug 'Calling API: ClustersApi.discover_unconfigured_nodes ...'
988
+ end
989
+ # verify the required parameter 'cluster_ext_id' is set
990
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
991
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.discover_unconfigured_nodes"
992
+ end
993
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
994
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
995
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.discover_unconfigured_nodes, must conform to the pattern #{pattern}."
996
+ end
997
+
998
+ # verify the required parameter 'clustermgmt_v40_config_node_discovery_params' is set
999
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_node_discovery_params.nil?
1000
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_node_discovery_params' when calling ClustersApi.discover_unconfigured_nodes"
1001
+ end
1002
+ # resource path
1003
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/$actions/discover-unconfigured-nodes'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
1004
+
1005
+ # query parameters
1006
+ query_params = opts[:query_params] || {}
1007
+
1008
+ # header parameters
1009
+ header_params = opts[:header_params] || {}
1010
+ # HTTP header 'Accept' (if needed)
1011
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1012
+ # HTTP header 'Content-Type'
1013
+ content_type = @api_client.select_header_content_type(['application/json'])
1014
+ if !content_type.nil?
1015
+ header_params['Content-Type'] = content_type
1016
+ end
1017
+
1018
+ # form parameters
1019
+ form_params = opts[:form_params] || {}
1020
+
1021
+ # http body (model)
1022
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_node_discovery_params)
1023
+
1024
+ # return_type
1025
+ return_type = opts[:debug_return_type] || 'DiscoverUnconfiguredNodes202Response'
1026
+
1027
+ # auth_names
1028
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
1029
+
1030
+ new_options = opts.merge(
1031
+ :operation => :"ClustersApi.discover_unconfigured_nodes",
1032
+ :header_params => header_params,
1033
+ :query_params => query_params,
1034
+ :form_params => form_params,
1035
+ :body => post_body,
1036
+ :auth_names => auth_names,
1037
+ :return_type => return_type
1038
+ )
1039
+
1040
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1041
+ if @api_client.config.debugging
1042
+ @api_client.config.logger.debug "API called: ClustersApi#discover_unconfigured_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1043
+ end
1044
+ return data, status_code, headers
1045
+ end
1046
+
1047
+ # Enter host into maintenance mode
1048
+ # Enter host identified by {extId} into maintenance mode belonging to the cluster identified by {clusterExtId}.
1049
+ # @param cluster_ext_id [String] Cluster UUID.
1050
+ # @param ext_id [String] Host UUID.
1051
+ # @param ntnx_request_id [String] A unique identifier that is associated with each request. The provided value must be opaque and preferably in Universal Unique Identifier (UUID) format. This identifier is also used as an idempotence token for safely retrying requests in case of network errors. All the supported Nutanix API clients add this auto-generated request identifier to each request.
1052
+ # @param clustermgmt_v40_operations_enter_host_maintenance_spec [ClustermgmtV40OperationsEnterHostMaintenanceSpec] Property of the host to be put into maintenance mode.
1053
+ # @param [Hash] opts the optional parameters
1054
+ # @return [EnterHostMaintenance202Response]
1055
+ def enter_host_maintenance(cluster_ext_id, ext_id, ntnx_request_id, clustermgmt_v40_operations_enter_host_maintenance_spec, opts = {})
1056
+ data, _status_code, _headers = enter_host_maintenance_with_http_info(cluster_ext_id, ext_id, ntnx_request_id, clustermgmt_v40_operations_enter_host_maintenance_spec, opts)
1057
+ data
1058
+ end
1059
+
1060
+ # Enter host into maintenance mode
1061
+ # Enter host identified by {extId} into maintenance mode belonging to the cluster identified by {clusterExtId}.
1062
+ # @param cluster_ext_id [String] Cluster UUID.
1063
+ # @param ext_id [String] Host UUID.
1064
+ # @param ntnx_request_id [String] A unique identifier that is associated with each request. The provided value must be opaque and preferably in Universal Unique Identifier (UUID) format. This identifier is also used as an idempotence token for safely retrying requests in case of network errors. All the supported Nutanix API clients add this auto-generated request identifier to each request.
1065
+ # @param clustermgmt_v40_operations_enter_host_maintenance_spec [ClustermgmtV40OperationsEnterHostMaintenanceSpec] Property of the host to be put into maintenance mode.
1066
+ # @param [Hash] opts the optional parameters
1067
+ # @return [Array<(EnterHostMaintenance202Response, Integer, Hash)>] EnterHostMaintenance202Response data, response status code and response headers
1068
+ def enter_host_maintenance_with_http_info(cluster_ext_id, ext_id, ntnx_request_id, clustermgmt_v40_operations_enter_host_maintenance_spec, opts = {})
1069
+ if @api_client.config.debugging
1070
+ @api_client.config.logger.debug 'Calling API: ClustersApi.enter_host_maintenance ...'
1071
+ end
1072
+ # verify the required parameter 'cluster_ext_id' is set
1073
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
1074
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.enter_host_maintenance"
1075
+ end
1076
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1077
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
1078
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.enter_host_maintenance, must conform to the pattern #{pattern}."
1079
+ end
1080
+
1081
+ # verify the required parameter 'ext_id' is set
1082
+ if @api_client.config.client_side_validation && ext_id.nil?
1083
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.enter_host_maintenance"
1084
+ end
1085
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1086
+ if @api_client.config.client_side_validation && ext_id !~ pattern
1087
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.enter_host_maintenance, must conform to the pattern #{pattern}."
1088
+ end
1089
+
1090
+ # verify the required parameter 'ntnx_request_id' is set
1091
+ if @api_client.config.client_side_validation && ntnx_request_id.nil?
1092
+ fail ArgumentError, "Missing the required parameter 'ntnx_request_id' when calling ClustersApi.enter_host_maintenance"
1093
+ end
1094
+ # verify the required parameter 'clustermgmt_v40_operations_enter_host_maintenance_spec' is set
1095
+ if @api_client.config.client_side_validation && clustermgmt_v40_operations_enter_host_maintenance_spec.nil?
1096
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_operations_enter_host_maintenance_spec' when calling ClustersApi.enter_host_maintenance"
1097
+ end
1098
+ # resource path
1099
+ local_var_path = '/clustermgmt/v4.0/operations/clusters/{clusterExtId}/hosts/{extId}/$actions/enter-host-maintenance'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
1100
+
1101
+ # query parameters
1102
+ query_params = opts[:query_params] || {}
1103
+
1104
+ # header parameters
1105
+ header_params = opts[:header_params] || {}
1106
+ # HTTP header 'Accept' (if needed)
1107
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1108
+ # HTTP header 'Content-Type'
1109
+ content_type = @api_client.select_header_content_type(['application/json'])
1110
+ if !content_type.nil?
1111
+ header_params['Content-Type'] = content_type
1112
+ end
1113
+ header_params[:'NTNX-Request-Id'] = ntnx_request_id
1114
+
1115
+ # form parameters
1116
+ form_params = opts[:form_params] || {}
1117
+
1118
+ # http body (model)
1119
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_operations_enter_host_maintenance_spec)
1120
+
1121
+ # return_type
1122
+ return_type = opts[:debug_return_type] || 'EnterHostMaintenance202Response'
1123
+
1124
+ # auth_names
1125
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
1126
+
1127
+ new_options = opts.merge(
1128
+ :operation => :"ClustersApi.enter_host_maintenance",
1129
+ :header_params => header_params,
1130
+ :query_params => query_params,
1131
+ :form_params => form_params,
1132
+ :body => post_body,
1133
+ :auth_names => auth_names,
1134
+ :return_type => return_type
1135
+ )
1136
+
1137
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1138
+ if @api_client.config.debugging
1139
+ @api_client.config.logger.debug "API called: ClustersApi#enter_host_maintenance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1140
+ end
1141
+ return data, status_code, headers
1142
+ end
1143
+
1144
+ # Exit host from maintenance mode
1145
+ # Exit host identified by {extId} from maintenance mode belonging to the cluster identified by {clusterExtId}.
1146
+ # @param cluster_ext_id [String] Cluster UUID.
1147
+ # @param ext_id [String] Host UUID.
1148
+ # @param ntnx_request_id [String] A unique identifier that is associated with each request. The provided value must be opaque and preferably in Universal Unique Identifier (UUID) format. This identifier is also used as an idempotence token for safely retrying requests in case of network errors. All the supported Nutanix API clients add this auto-generated request identifier to each request.
1149
+ # @param clustermgmt_v40_operations_host_maintenance_common_spec [ClustermgmtV40OperationsHostMaintenanceCommonSpec] Property of the host to be exited from maintenance mode.
1150
+ # @param [Hash] opts the optional parameters
1151
+ # @return [ExitHostMaintenance202Response]
1152
+ def exit_host_maintenance(cluster_ext_id, ext_id, ntnx_request_id, clustermgmt_v40_operations_host_maintenance_common_spec, opts = {})
1153
+ data, _status_code, _headers = exit_host_maintenance_with_http_info(cluster_ext_id, ext_id, ntnx_request_id, clustermgmt_v40_operations_host_maintenance_common_spec, opts)
1154
+ data
1155
+ end
1156
+
1157
+ # Exit host from maintenance mode
1158
+ # Exit host identified by {extId} from maintenance mode belonging to the cluster identified by {clusterExtId}.
1159
+ # @param cluster_ext_id [String] Cluster UUID.
1160
+ # @param ext_id [String] Host UUID.
1161
+ # @param ntnx_request_id [String] A unique identifier that is associated with each request. The provided value must be opaque and preferably in Universal Unique Identifier (UUID) format. This identifier is also used as an idempotence token for safely retrying requests in case of network errors. All the supported Nutanix API clients add this auto-generated request identifier to each request.
1162
+ # @param clustermgmt_v40_operations_host_maintenance_common_spec [ClustermgmtV40OperationsHostMaintenanceCommonSpec] Property of the host to be exited from maintenance mode.
1163
+ # @param [Hash] opts the optional parameters
1164
+ # @return [Array<(ExitHostMaintenance202Response, Integer, Hash)>] ExitHostMaintenance202Response data, response status code and response headers
1165
+ def exit_host_maintenance_with_http_info(cluster_ext_id, ext_id, ntnx_request_id, clustermgmt_v40_operations_host_maintenance_common_spec, opts = {})
1166
+ if @api_client.config.debugging
1167
+ @api_client.config.logger.debug 'Calling API: ClustersApi.exit_host_maintenance ...'
1168
+ end
1169
+ # verify the required parameter 'cluster_ext_id' is set
1170
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
1171
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.exit_host_maintenance"
1172
+ end
1173
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1174
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
1175
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.exit_host_maintenance, must conform to the pattern #{pattern}."
1176
+ end
1177
+
1178
+ # verify the required parameter 'ext_id' is set
1179
+ if @api_client.config.client_side_validation && ext_id.nil?
1180
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.exit_host_maintenance"
1181
+ end
1182
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1183
+ if @api_client.config.client_side_validation && ext_id !~ pattern
1184
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.exit_host_maintenance, must conform to the pattern #{pattern}."
1185
+ end
1186
+
1187
+ # verify the required parameter 'ntnx_request_id' is set
1188
+ if @api_client.config.client_side_validation && ntnx_request_id.nil?
1189
+ fail ArgumentError, "Missing the required parameter 'ntnx_request_id' when calling ClustersApi.exit_host_maintenance"
1190
+ end
1191
+ # verify the required parameter 'clustermgmt_v40_operations_host_maintenance_common_spec' is set
1192
+ if @api_client.config.client_side_validation && clustermgmt_v40_operations_host_maintenance_common_spec.nil?
1193
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_operations_host_maintenance_common_spec' when calling ClustersApi.exit_host_maintenance"
1194
+ end
1195
+ # resource path
1196
+ local_var_path = '/clustermgmt/v4.0/operations/clusters/{clusterExtId}/hosts/{extId}/$actions/exit-host-maintenance'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
1197
+
1198
+ # query parameters
1199
+ query_params = opts[:query_params] || {}
1200
+
1201
+ # header parameters
1202
+ header_params = opts[:header_params] || {}
1203
+ # HTTP header 'Accept' (if needed)
1204
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1205
+ # HTTP header 'Content-Type'
1206
+ content_type = @api_client.select_header_content_type(['application/json'])
1207
+ if !content_type.nil?
1208
+ header_params['Content-Type'] = content_type
1209
+ end
1210
+ header_params[:'NTNX-Request-Id'] = ntnx_request_id
1211
+
1212
+ # form parameters
1213
+ form_params = opts[:form_params] || {}
1214
+
1215
+ # http body (model)
1216
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_operations_host_maintenance_common_spec)
1217
+
1218
+ # return_type
1219
+ return_type = opts[:debug_return_type] || 'ExitHostMaintenance202Response'
1220
+
1221
+ # auth_names
1222
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
1223
+
1224
+ new_options = opts.merge(
1225
+ :operation => :"ClustersApi.exit_host_maintenance",
1226
+ :header_params => header_params,
1227
+ :query_params => query_params,
1228
+ :form_params => form_params,
1229
+ :body => post_body,
1230
+ :auth_names => auth_names,
1231
+ :return_type => return_type
1232
+ )
1233
+
1234
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1235
+ if @api_client.config.debugging
1236
+ @api_client.config.logger.debug "API called: ClustersApi#exit_host_maintenance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1237
+ end
1238
+ return data, status_code, headers
1239
+ end
1240
+
1241
+ # Add node on a cluster
1242
+ # Add node on a cluster. This API is not supported for XEN hypervisor type.
1243
+ # @param cluster_ext_id [String] Cluster UUID.
1244
+ # @param ntnx_request_id [String] A unique identifier that is associated with each request. The provided value must be opaque and preferably in Universal Unique Identifier (UUID) format. This identifier is also used as an idempotence token for safely retrying requests in case of network errors. All the supported Nutanix API clients add this auto-generated request identifier to each request.
1245
+ # @param clustermgmt_v40_config_expand_cluster_params [ClustermgmtV40ConfigExpandClusterParams] Property of the node to be added.
1246
+ # @param [Hash] opts the optional parameters
1247
+ # @return [ExpandCluster202Response]
1248
+ def expand_cluster(cluster_ext_id, ntnx_request_id, clustermgmt_v40_config_expand_cluster_params, opts = {})
1249
+ data, _status_code, _headers = expand_cluster_with_http_info(cluster_ext_id, ntnx_request_id, clustermgmt_v40_config_expand_cluster_params, opts)
1250
+ data
1251
+ end
1252
+
1253
+ # Add node on a cluster
1254
+ # Add node on a cluster. This API is not supported for XEN hypervisor type.
1255
+ # @param cluster_ext_id [String] Cluster UUID.
1256
+ # @param ntnx_request_id [String] A unique identifier that is associated with each request. The provided value must be opaque and preferably in Universal Unique Identifier (UUID) format. This identifier is also used as an idempotence token for safely retrying requests in case of network errors. All the supported Nutanix API clients add this auto-generated request identifier to each request.
1257
+ # @param clustermgmt_v40_config_expand_cluster_params [ClustermgmtV40ConfigExpandClusterParams] Property of the node to be added.
1258
+ # @param [Hash] opts the optional parameters
1259
+ # @return [Array<(ExpandCluster202Response, Integer, Hash)>] ExpandCluster202Response data, response status code and response headers
1260
+ def expand_cluster_with_http_info(cluster_ext_id, ntnx_request_id, clustermgmt_v40_config_expand_cluster_params, opts = {})
1261
+ if @api_client.config.debugging
1262
+ @api_client.config.logger.debug 'Calling API: ClustersApi.expand_cluster ...'
1263
+ end
1264
+ # verify the required parameter 'cluster_ext_id' is set
1265
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
1266
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.expand_cluster"
1267
+ end
1268
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1269
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
1270
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.expand_cluster, must conform to the pattern #{pattern}."
1271
+ end
1272
+
1273
+ # verify the required parameter 'ntnx_request_id' is set
1274
+ if @api_client.config.client_side_validation && ntnx_request_id.nil?
1275
+ fail ArgumentError, "Missing the required parameter 'ntnx_request_id' when calling ClustersApi.expand_cluster"
1276
+ end
1277
+ # verify the required parameter 'clustermgmt_v40_config_expand_cluster_params' is set
1278
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_expand_cluster_params.nil?
1279
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_expand_cluster_params' when calling ClustersApi.expand_cluster"
1280
+ end
1281
+ # resource path
1282
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/$actions/expand-cluster'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
1283
+
1284
+ # query parameters
1285
+ query_params = opts[:query_params] || {}
1286
+
1287
+ # header parameters
1288
+ header_params = opts[:header_params] || {}
1289
+ # HTTP header 'Accept' (if needed)
1290
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1291
+ # HTTP header 'Content-Type'
1292
+ content_type = @api_client.select_header_content_type(['application/json'])
1293
+ if !content_type.nil?
1294
+ header_params['Content-Type'] = content_type
1295
+ end
1296
+ header_params[:'NTNX-Request-Id'] = ntnx_request_id
1297
+
1298
+ # form parameters
1299
+ form_params = opts[:form_params] || {}
1300
+
1301
+ # http body (model)
1302
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_expand_cluster_params)
1303
+
1304
+ # return_type
1305
+ return_type = opts[:debug_return_type] || 'ExpandCluster202Response'
1306
+
1307
+ # auth_names
1308
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
1309
+
1310
+ new_options = opts.merge(
1311
+ :operation => :"ClustersApi.expand_cluster",
1312
+ :header_params => header_params,
1313
+ :query_params => query_params,
1314
+ :form_params => form_params,
1315
+ :body => post_body,
1316
+ :auth_names => auth_names,
1317
+ :return_type => return_type
1318
+ )
1319
+
1320
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1321
+ if @api_client.config.debugging
1322
+ @api_client.config.logger.debug "API called: ClustersApi#expand_cluster\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1323
+ end
1324
+ return data, status_code, headers
1325
+ end
1326
+
1327
+ # Get network information of unconfigured nodes
1328
+ # Get a dictionary of cluster networks and available uplinks on the given nodes. This API is not supported for XEN hypervisor type.
1329
+ # @param cluster_ext_id [String] Cluster UUID.
1330
+ # @param clustermgmt_v40_config_node_details [ClustermgmtV40ConfigNodeDetails] Node specific details required to fetch node networking information.
1331
+ # @param [Hash] opts the optional parameters
1332
+ # @return [FetchNodeNetworkingDetails202Response]
1333
+ def fetch_node_networking_details(cluster_ext_id, clustermgmt_v40_config_node_details, opts = {})
1334
+ data, _status_code, _headers = fetch_node_networking_details_with_http_info(cluster_ext_id, clustermgmt_v40_config_node_details, opts)
1335
+ data
1336
+ end
1337
+
1338
+ # Get network information of unconfigured nodes
1339
+ # Get a dictionary of cluster networks and available uplinks on the given nodes. This API is not supported for XEN hypervisor type.
1340
+ # @param cluster_ext_id [String] Cluster UUID.
1341
+ # @param clustermgmt_v40_config_node_details [ClustermgmtV40ConfigNodeDetails] Node specific details required to fetch node networking information.
1342
+ # @param [Hash] opts the optional parameters
1343
+ # @return [Array<(FetchNodeNetworkingDetails202Response, Integer, Hash)>] FetchNodeNetworkingDetails202Response data, response status code and response headers
1344
+ def fetch_node_networking_details_with_http_info(cluster_ext_id, clustermgmt_v40_config_node_details, opts = {})
1345
+ if @api_client.config.debugging
1346
+ @api_client.config.logger.debug 'Calling API: ClustersApi.fetch_node_networking_details ...'
1347
+ end
1348
+ # verify the required parameter 'cluster_ext_id' is set
1349
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
1350
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.fetch_node_networking_details"
1351
+ end
1352
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1353
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
1354
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.fetch_node_networking_details, must conform to the pattern #{pattern}."
1355
+ end
1356
+
1357
+ # verify the required parameter 'clustermgmt_v40_config_node_details' is set
1358
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_node_details.nil?
1359
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_node_details' when calling ClustersApi.fetch_node_networking_details"
1360
+ end
1361
+ # resource path
1362
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/$actions/fetch-node-networking-details'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
1363
+
1364
+ # query parameters
1365
+ query_params = opts[:query_params] || {}
1366
+
1367
+ # header parameters
1368
+ header_params = opts[:header_params] || {}
1369
+ # HTTP header 'Accept' (if needed)
1370
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1371
+ # HTTP header 'Content-Type'
1372
+ content_type = @api_client.select_header_content_type(['application/json'])
1373
+ if !content_type.nil?
1374
+ header_params['Content-Type'] = content_type
1375
+ end
1376
+
1377
+ # form parameters
1378
+ form_params = opts[:form_params] || {}
1379
+
1380
+ # http body (model)
1381
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_node_details)
1382
+
1383
+ # return_type
1384
+ return_type = opts[:debug_return_type] || 'FetchNodeNetworkingDetails202Response'
1385
+
1386
+ # auth_names
1387
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
1388
+
1389
+ new_options = opts.merge(
1390
+ :operation => :"ClustersApi.fetch_node_networking_details",
1391
+ :header_params => header_params,
1392
+ :query_params => query_params,
1393
+ :form_params => form_params,
1394
+ :body => post_body,
1395
+ :auth_names => auth_names,
1396
+ :return_type => return_type
1397
+ )
1398
+
1399
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1400
+ if @api_client.config.debugging
1401
+ @api_client.config.logger.debug "API called: ClustersApi#fetch_node_networking_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1402
+ end
1403
+ return data, status_code, headers
1404
+ end
1405
+
1406
+ # Get task response based on the type of request
1407
+ # Get task response based on the type of request.
1408
+ # @param ext_id [String] The external identifier of the task.
1409
+ # @param task_response_type [ClustermgmtV40ConfigTaskResponseType]
1410
+ # @param [Hash] opts the optional parameters
1411
+ # @return [FetchTaskResponse200Response]
1412
+ def fetch_task_response(ext_id, task_response_type, opts = {})
1413
+ data, _status_code, _headers = fetch_task_response_with_http_info(ext_id, task_response_type, opts)
1414
+ data
1415
+ end
1416
+
1417
+ # Get task response based on the type of request
1418
+ # Get task response based on the type of request.
1419
+ # @param ext_id [String] The external identifier of the task.
1420
+ # @param task_response_type [ClustermgmtV40ConfigTaskResponseType]
1421
+ # @param [Hash] opts the optional parameters
1422
+ # @return [Array<(FetchTaskResponse200Response, Integer, Hash)>] FetchTaskResponse200Response data, response status code and response headers
1423
+ def fetch_task_response_with_http_info(ext_id, task_response_type, opts = {})
1424
+ if @api_client.config.debugging
1425
+ @api_client.config.logger.debug 'Calling API: ClustersApi.fetch_task_response ...'
1426
+ end
1427
+ # verify the required parameter 'ext_id' is set
1428
+ if @api_client.config.client_side_validation && ext_id.nil?
1429
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.fetch_task_response"
1430
+ end
1431
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1432
+ if @api_client.config.client_side_validation && ext_id !~ pattern
1433
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.fetch_task_response, must conform to the pattern #{pattern}."
1434
+ end
1435
+
1436
+ # verify the required parameter 'task_response_type' is set
1437
+ if @api_client.config.client_side_validation && task_response_type.nil?
1438
+ fail ArgumentError, "Missing the required parameter 'task_response_type' when calling ClustersApi.fetch_task_response"
1439
+ end
1440
+ # resource path
1441
+ local_var_path = '/clustermgmt/v4.0/config/task-response/{extId}'.sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
1442
+
1443
+ # query parameters
1444
+ query_params = opts[:query_params] || {}
1445
+ query_params[:'taskResponseType'] = task_response_type
1446
+
1447
+ # header parameters
1448
+ header_params = opts[:header_params] || {}
1449
+ # HTTP header 'Accept' (if needed)
1450
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1451
+
1452
+ # form parameters
1453
+ form_params = opts[:form_params] || {}
1454
+
1455
+ # http body (model)
1456
+ post_body = opts[:debug_body]
1457
+
1458
+ # return_type
1459
+ return_type = opts[:debug_return_type] || 'FetchTaskResponse200Response'
1460
+
1461
+ # auth_names
1462
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
1463
+
1464
+ new_options = opts.merge(
1465
+ :operation => :"ClustersApi.fetch_task_response",
1466
+ :header_params => header_params,
1467
+ :query_params => query_params,
1468
+ :form_params => form_params,
1469
+ :body => post_body,
1470
+ :auth_names => auth_names,
1471
+ :return_type => return_type
1472
+ )
1473
+
1474
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1475
+ if @api_client.config.debugging
1476
+ @api_client.config.logger.debug "API called: ClustersApi#fetch_task_response\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1477
+ end
1478
+ return data, status_code, headers
1479
+ end
1480
+
1481
+ # Get details of a cluster
1482
+ # Fetches the cluster entity details identified by {extId}.
1483
+ # @param ext_id [String] Cluster UUID.
1484
+ # @param [Hash] opts the optional parameters
1485
+ # @option opts [String] :expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported. - clusterProfile - storageSummary
1486
+ # @return [GetClusterById200Response]
1487
+ def get_cluster_by_id(ext_id, opts = {})
1488
+ data, _status_code, _headers = get_cluster_by_id_with_http_info(ext_id, opts)
1489
+ data
1490
+ end
1491
+
1492
+ # Get details of a cluster
1493
+ # Fetches the cluster entity details identified by {extId}.
1494
+ # @param ext_id [String] Cluster UUID.
1495
+ # @param [Hash] opts the optional parameters
1496
+ # @option opts [String] :expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported. - clusterProfile - storageSummary
1497
+ # @return [Array<(GetClusterById200Response, Integer, Hash)>] GetClusterById200Response data, response status code and response headers
1498
+ def get_cluster_by_id_with_http_info(ext_id, opts = {})
1499
+ if @api_client.config.debugging
1500
+ @api_client.config.logger.debug 'Calling API: ClustersApi.get_cluster_by_id ...'
1501
+ end
1502
+ # verify the required parameter 'ext_id' is set
1503
+ if @api_client.config.client_side_validation && ext_id.nil?
1504
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.get_cluster_by_id"
1505
+ end
1506
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1507
+ if @api_client.config.client_side_validation && ext_id !~ pattern
1508
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.get_cluster_by_id, must conform to the pattern #{pattern}."
1509
+ end
1510
+
1511
+ # resource path
1512
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{extId}'.sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
1513
+
1514
+ # query parameters
1515
+ query_params = opts[:query_params] || {}
1516
+ query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
1517
+
1518
+ # header parameters
1519
+ header_params = opts[:header_params] || {}
1520
+ # HTTP header 'Accept' (if needed)
1521
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1522
+
1523
+ # form parameters
1524
+ form_params = opts[:form_params] || {}
1525
+
1526
+ # http body (model)
1527
+ post_body = opts[:debug_body]
1528
+
1529
+ # return_type
1530
+ return_type = opts[:debug_return_type] || 'GetClusterById200Response'
1531
+
1532
+ # auth_names
1533
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
1534
+
1535
+ new_options = opts.merge(
1536
+ :operation => :"ClustersApi.get_cluster_by_id",
1537
+ :header_params => header_params,
1538
+ :query_params => query_params,
1539
+ :form_params => form_params,
1540
+ :body => post_body,
1541
+ :auth_names => auth_names,
1542
+ :return_type => return_type
1543
+ )
1544
+
1545
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1546
+ if @api_client.config.debugging
1547
+ @api_client.config.logger.debug "API called: ClustersApi#get_cluster_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1548
+ end
1549
+ return data, status_code, headers
1550
+ end
1551
+
1552
+ # Get cluster statistics
1553
+ # Get the statistics data of the cluster identified by {clusterExtId}.
1554
+ # @param ext_id [String] Cluster UUID.
1555
+ # @param start_time [Time] The start time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
1556
+ # @param end_time [Time] The end time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, end time of 2022-04-23T013:23:45.678+09:00 would consider all stats till 13:23:45 .678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
1557
+ # @param [Hash] opts the optional parameters
1558
+ # @option opts [Integer] :sampling_interval The sampling interval in seconds at which statistical data should be collected. For example, if you want performance statistics every 30 seconds, then provide the value as 30.
1559
+ # @option opts [CommonV10StatsDownSamplingOperator] :stat_type
1560
+ # @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - aggregateHypervisorMemoryUsagePpm - aggregateHypervisorMemoryUsagePpmLowerBuf - aggregateHypervisorMemoryUsagePpmUpperBuf - controllerAvgIoLatencyUsecs - controllerAvgIoLatencyUsecsLowerBuf - controllerAvgIoLatencyUsecsUpperBuf - controllerAvgReadIoLatencyUsecs - controllerAvgReadIoLatencyUsecsLowerBuf - controllerAvgReadIoLatencyUsecsUpperBuf - controllerAvgWriteIoLatencyUsecs - controllerAvgWriteIoLatencyUsecsLowerBuf - controllerAvgWriteIoLatencyUsecsUpperBuf - controllerNumIops - controllerNumIopsLowerBuf - controllerNumIopsUpperBuf - controllerNumReadIops - controllerNumReadIopsLowerBuf - controllerNumReadIopsUpperBuf - controllerNumWriteIops - controllerNumWriteIopsLowerBuf - controllerNumWriteIopsUpperBuf - controllerReadIoBandwidthKbps - controllerReadIoBandwidthKbpsLowerBuf - controllerReadIoBandwidthKbpsUpperBuf - controllerWriteIoBandwidthKbps - controllerWriteIoBandwidthKbpsLowerBuf - controllerWriteIoBandwidthKbpsUpperBuf - cpuCapacityHz - cpuUsageHz - freePhysicalStorageBytes - healthCheckScore - hypervisorCpuUsagePpm - hypervisorCpuUsagePpmLowerBuf - hypervisorCpuUsagePpmUpperBuf - ioBandwidthKbps - ioBandwidthKbpsLowerBuf - ioBandwidthKbpsUpperBuf - logicalStorageUsageBytes - memoryCapacityBytes - overallMemoryUsageBytes - overallSavingsBytes - overallSavingsRatio - powerConsumptionInstantWatt - recycleBinUsageBytes - snapshotCapacityBytes - storageCapacityBytes - storageUsageBytes
1561
+ # @return [GetClusterStats200Response]
1562
+ def get_cluster_stats(ext_id, start_time, end_time, opts = {})
1563
+ data, _status_code, _headers = get_cluster_stats_with_http_info(ext_id, start_time, end_time, opts)
1564
+ data
1565
+ end
1566
+
1567
+ # Get cluster statistics
1568
+ # Get the statistics data of the cluster identified by {clusterExtId}.
1569
+ # @param ext_id [String] Cluster UUID.
1570
+ # @param start_time [Time] The start time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
1571
+ # @param end_time [Time] The end time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, end time of 2022-04-23T013:23:45.678+09:00 would consider all stats till 13:23:45 .678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
1572
+ # @param [Hash] opts the optional parameters
1573
+ # @option opts [Integer] :sampling_interval The sampling interval in seconds at which statistical data should be collected. For example, if you want performance statistics every 30 seconds, then provide the value as 30.
1574
+ # @option opts [CommonV10StatsDownSamplingOperator] :stat_type
1575
+ # @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - aggregateHypervisorMemoryUsagePpm - aggregateHypervisorMemoryUsagePpmLowerBuf - aggregateHypervisorMemoryUsagePpmUpperBuf - controllerAvgIoLatencyUsecs - controllerAvgIoLatencyUsecsLowerBuf - controllerAvgIoLatencyUsecsUpperBuf - controllerAvgReadIoLatencyUsecs - controllerAvgReadIoLatencyUsecsLowerBuf - controllerAvgReadIoLatencyUsecsUpperBuf - controllerAvgWriteIoLatencyUsecs - controllerAvgWriteIoLatencyUsecsLowerBuf - controllerAvgWriteIoLatencyUsecsUpperBuf - controllerNumIops - controllerNumIopsLowerBuf - controllerNumIopsUpperBuf - controllerNumReadIops - controllerNumReadIopsLowerBuf - controllerNumReadIopsUpperBuf - controllerNumWriteIops - controllerNumWriteIopsLowerBuf - controllerNumWriteIopsUpperBuf - controllerReadIoBandwidthKbps - controllerReadIoBandwidthKbpsLowerBuf - controllerReadIoBandwidthKbpsUpperBuf - controllerWriteIoBandwidthKbps - controllerWriteIoBandwidthKbpsLowerBuf - controllerWriteIoBandwidthKbpsUpperBuf - cpuCapacityHz - cpuUsageHz - freePhysicalStorageBytes - healthCheckScore - hypervisorCpuUsagePpm - hypervisorCpuUsagePpmLowerBuf - hypervisorCpuUsagePpmUpperBuf - ioBandwidthKbps - ioBandwidthKbpsLowerBuf - ioBandwidthKbpsUpperBuf - logicalStorageUsageBytes - memoryCapacityBytes - overallMemoryUsageBytes - overallSavingsBytes - overallSavingsRatio - powerConsumptionInstantWatt - recycleBinUsageBytes - snapshotCapacityBytes - storageCapacityBytes - storageUsageBytes
1576
+ # @return [Array<(GetClusterStats200Response, Integer, Hash)>] GetClusterStats200Response data, response status code and response headers
1577
+ def get_cluster_stats_with_http_info(ext_id, start_time, end_time, opts = {})
1578
+ if @api_client.config.debugging
1579
+ @api_client.config.logger.debug 'Calling API: ClustersApi.get_cluster_stats ...'
1580
+ end
1581
+ # verify the required parameter 'ext_id' is set
1582
+ if @api_client.config.client_side_validation && ext_id.nil?
1583
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.get_cluster_stats"
1584
+ end
1585
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1586
+ if @api_client.config.client_side_validation && ext_id !~ pattern
1587
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.get_cluster_stats, must conform to the pattern #{pattern}."
1588
+ end
1589
+
1590
+ # verify the required parameter 'start_time' is set
1591
+ if @api_client.config.client_side_validation && start_time.nil?
1592
+ fail ArgumentError, "Missing the required parameter 'start_time' when calling ClustersApi.get_cluster_stats"
1593
+ end
1594
+ # verify the required parameter 'end_time' is set
1595
+ if @api_client.config.client_side_validation && end_time.nil?
1596
+ fail ArgumentError, "Missing the required parameter 'end_time' when calling ClustersApi.get_cluster_stats"
1597
+ end
1598
+ if @api_client.config.client_side_validation && !opts[:'sampling_interval'].nil? && opts[:'sampling_interval'] < 1
1599
+ fail ArgumentError, 'invalid value for "opts[:"sampling_interval"]" when calling ClustersApi.get_cluster_stats, must be greater than or equal to 1.'
1600
+ end
1601
+
1602
+ # resource path
1603
+ local_var_path = '/clustermgmt/v4.0/stats/clusters/{extId}'.sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
1604
+
1605
+ # query parameters
1606
+ query_params = opts[:query_params] || {}
1607
+ query_params[:'$startTime'] = start_time
1608
+ query_params[:'$endTime'] = end_time
1609
+ query_params[:'$samplingInterval'] = opts[:'sampling_interval'] if !opts[:'sampling_interval'].nil?
1610
+ query_params[:'$statType'] = opts[:'stat_type'] if !opts[:'stat_type'].nil?
1611
+ query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
1612
+
1613
+ # header parameters
1614
+ header_params = opts[:header_params] || {}
1615
+ # HTTP header 'Accept' (if needed)
1616
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1617
+
1618
+ # form parameters
1619
+ form_params = opts[:form_params] || {}
1620
+
1621
+ # http body (model)
1622
+ post_body = opts[:debug_body]
1623
+
1624
+ # return_type
1625
+ return_type = opts[:debug_return_type] || 'GetClusterStats200Response'
1626
+
1627
+ # auth_names
1628
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
1629
+
1630
+ new_options = opts.merge(
1631
+ :operation => :"ClustersApi.get_cluster_stats",
1632
+ :header_params => header_params,
1633
+ :query_params => query_params,
1634
+ :form_params => form_params,
1635
+ :body => post_body,
1636
+ :auth_names => auth_names,
1637
+ :return_type => return_type
1638
+ )
1639
+
1640
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1641
+ if @api_client.config.debugging
1642
+ @api_client.config.logger.debug "API called: ClustersApi#get_cluster_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1643
+ end
1644
+ return data, status_code, headers
1645
+ end
1646
+
1647
+ # Get the details of host associated with the cluster
1648
+ # Fetches the details of the host identified by {extId} associated with the cluster identified by {clusterExtId}.
1649
+ # @param cluster_ext_id [String] Cluster UUID.
1650
+ # @param ext_id [String] Host UUID.
1651
+ # @param [Hash] opts the optional parameters
1652
+ # @return [GetHostById200Response]
1653
+ def get_host_by_id(cluster_ext_id, ext_id, opts = {})
1654
+ data, _status_code, _headers = get_host_by_id_with_http_info(cluster_ext_id, ext_id, opts)
1655
+ data
1656
+ end
1657
+
1658
+ # Get the details of host associated with the cluster
1659
+ # Fetches the details of the host identified by {extId} associated with the cluster identified by {clusterExtId}.
1660
+ # @param cluster_ext_id [String] Cluster UUID.
1661
+ # @param ext_id [String] Host UUID.
1662
+ # @param [Hash] opts the optional parameters
1663
+ # @return [Array<(GetHostById200Response, Integer, Hash)>] GetHostById200Response data, response status code and response headers
1664
+ def get_host_by_id_with_http_info(cluster_ext_id, ext_id, opts = {})
1665
+ if @api_client.config.debugging
1666
+ @api_client.config.logger.debug 'Calling API: ClustersApi.get_host_by_id ...'
1667
+ end
1668
+ # verify the required parameter 'cluster_ext_id' is set
1669
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
1670
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.get_host_by_id"
1671
+ end
1672
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1673
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
1674
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.get_host_by_id, must conform to the pattern #{pattern}."
1675
+ end
1676
+
1677
+ # verify the required parameter 'ext_id' is set
1678
+ if @api_client.config.client_side_validation && ext_id.nil?
1679
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.get_host_by_id"
1680
+ end
1681
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1682
+ if @api_client.config.client_side_validation && ext_id !~ pattern
1683
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.get_host_by_id, must conform to the pattern #{pattern}."
1684
+ end
1685
+
1686
+ # resource path
1687
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/hosts/{extId}'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
1688
+
1689
+ # query parameters
1690
+ query_params = opts[:query_params] || {}
1691
+
1692
+ # header parameters
1693
+ header_params = opts[:header_params] || {}
1694
+ # HTTP header 'Accept' (if needed)
1695
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1696
+
1697
+ # form parameters
1698
+ form_params = opts[:form_params] || {}
1699
+
1700
+ # http body (model)
1701
+ post_body = opts[:debug_body]
1702
+
1703
+ # return_type
1704
+ return_type = opts[:debug_return_type] || 'GetHostById200Response'
1705
+
1706
+ # auth_names
1707
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
1708
+
1709
+ new_options = opts.merge(
1710
+ :operation => :"ClustersApi.get_host_by_id",
1711
+ :header_params => header_params,
1712
+ :query_params => query_params,
1713
+ :form_params => form_params,
1714
+ :body => post_body,
1715
+ :auth_names => auth_names,
1716
+ :return_type => return_type
1717
+ )
1718
+
1719
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1720
+ if @api_client.config.debugging
1721
+ @api_client.config.logger.debug "API called: ClustersApi#get_host_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1722
+ end
1723
+ return data, status_code, headers
1724
+ end
1725
+
1726
+ # Get host NIC
1727
+ # Get the host NIC entity of the host identified by {hostExtId} belonging to the cluster identified by {clusterExtId}.
1728
+ # @param cluster_ext_id [String] Cluster UUID.
1729
+ # @param host_ext_id [String] Host UUID.
1730
+ # @param ext_id [String] Host NIC UUID.
1731
+ # @param [Hash] opts the optional parameters
1732
+ # @return [GetHostNicById200Response]
1733
+ def get_host_nic_by_id(cluster_ext_id, host_ext_id, ext_id, opts = {})
1734
+ data, _status_code, _headers = get_host_nic_by_id_with_http_info(cluster_ext_id, host_ext_id, ext_id, opts)
1735
+ data
1736
+ end
1737
+
1738
+ # Get host NIC
1739
+ # Get the host NIC entity of the host identified by {hostExtId} belonging to the cluster identified by {clusterExtId}.
1740
+ # @param cluster_ext_id [String] Cluster UUID.
1741
+ # @param host_ext_id [String] Host UUID.
1742
+ # @param ext_id [String] Host NIC UUID.
1743
+ # @param [Hash] opts the optional parameters
1744
+ # @return [Array<(GetHostNicById200Response, Integer, Hash)>] GetHostNicById200Response data, response status code and response headers
1745
+ def get_host_nic_by_id_with_http_info(cluster_ext_id, host_ext_id, ext_id, opts = {})
1746
+ if @api_client.config.debugging
1747
+ @api_client.config.logger.debug 'Calling API: ClustersApi.get_host_nic_by_id ...'
1748
+ end
1749
+ # verify the required parameter 'cluster_ext_id' is set
1750
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
1751
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.get_host_nic_by_id"
1752
+ end
1753
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1754
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
1755
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.get_host_nic_by_id, must conform to the pattern #{pattern}."
1756
+ end
1757
+
1758
+ # verify the required parameter 'host_ext_id' is set
1759
+ if @api_client.config.client_side_validation && host_ext_id.nil?
1760
+ fail ArgumentError, "Missing the required parameter 'host_ext_id' when calling ClustersApi.get_host_nic_by_id"
1761
+ end
1762
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1763
+ if @api_client.config.client_side_validation && host_ext_id !~ pattern
1764
+ fail ArgumentError, "invalid value for 'host_ext_id' when calling ClustersApi.get_host_nic_by_id, must conform to the pattern #{pattern}."
1765
+ end
1766
+
1767
+ # verify the required parameter 'ext_id' is set
1768
+ if @api_client.config.client_side_validation && ext_id.nil?
1769
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.get_host_nic_by_id"
1770
+ end
1771
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1772
+ if @api_client.config.client_side_validation && ext_id !~ pattern
1773
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.get_host_nic_by_id, must conform to the pattern #{pattern}."
1774
+ end
1775
+
1776
+ # resource path
1777
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/hosts/{hostExtId}/host-nics/{extId}'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'hostExtId' + '}', CGI.escape(host_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
1778
+
1779
+ # query parameters
1780
+ query_params = opts[:query_params] || {}
1781
+
1782
+ # header parameters
1783
+ header_params = opts[:header_params] || {}
1784
+ # HTTP header 'Accept' (if needed)
1785
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1786
+
1787
+ # form parameters
1788
+ form_params = opts[:form_params] || {}
1789
+
1790
+ # http body (model)
1791
+ post_body = opts[:debug_body]
1792
+
1793
+ # return_type
1794
+ return_type = opts[:debug_return_type] || 'GetHostNicById200Response'
1795
+
1796
+ # auth_names
1797
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
1798
+
1799
+ new_options = opts.merge(
1800
+ :operation => :"ClustersApi.get_host_nic_by_id",
1801
+ :header_params => header_params,
1802
+ :query_params => query_params,
1803
+ :form_params => form_params,
1804
+ :body => post_body,
1805
+ :auth_names => auth_names,
1806
+ :return_type => return_type
1807
+ )
1808
+
1809
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1810
+ if @api_client.config.debugging
1811
+ @api_client.config.logger.debug "API called: ClustersApi#get_host_nic_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1812
+ end
1813
+ return data, status_code, headers
1814
+ end
1815
+
1816
+ # Get host statistics
1817
+ # Get the statistics data of the host identified by {hostExtId} belonging to the cluster identified by {clusterExtId}.
1818
+ # @param cluster_ext_id [String] Cluster UUID.
1819
+ # @param ext_id [String] Host UUID.
1820
+ # @param start_time [Time] The start time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
1821
+ # @param end_time [Time] The end time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, end time of 2022-04-23T013:23:45.678+09:00 would consider all stats till 13:23:45 .678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
1822
+ # @param [Hash] opts the optional parameters
1823
+ # @option opts [Integer] :sampling_interval The sampling interval in seconds at which statistical data should be collected. For example, if you want performance statistics every 30 seconds, then provide the value as 30.
1824
+ # @option opts [CommonV10StatsDownSamplingOperator] :stat_type
1825
+ # @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - aggregateHypervisorMemoryUsagePpm - aggregateHypervisorMemoryUsagePpmLowerBuf - aggregateHypervisorMemoryUsagePpmUpperBuf - controllerAvgIoLatencyUsecs - controllerAvgIoLatencyUsecsLowerBuf - controllerAvgIoLatencyUsecsUpperBuf - controllerAvgReadIoLatencyUsecs - controllerAvgReadIoLatencyUsecsLowerBuf - controllerAvgReadIoLatencyUsecsUpperBuf - controllerAvgWriteIoLatencyUsecs - controllerAvgWriteIoLatencyUsecsLowerBuf - controllerAvgWriteIoLatencyUsecsUpperBuf - controllerNumIops - controllerNumIopsLowerBuf - controllerNumIopsUpperBuf - controllerNumReadIops - controllerNumReadIopsLowerBuf - controllerNumReadIopsUpperBuf - controllerNumWriteIops - controllerNumWriteIopsLowerBuf - controllerNumWriteIopsUpperBuf - controllerReadIoBandwidthKbps - controllerReadIoBandwidthKbpsLowerBuf - controllerReadIoBandwidthKbpsUpperBuf - controllerWriteIoBandwidthKbps - controllerWriteIoBandwidthKbpsLowerBuf - controllerWriteIoBandwidthKbpsUpperBuf - cpuCapacityHz - cpuUsageHz - freePhysicalStorageBytes - healthCheckScore - hypervisorCpuUsagePpm - hypervisorCpuUsagePpmLowerBuf - hypervisorCpuUsagePpmUpperBuf - ioBandwidthKbps - ioBandwidthKbpsLowerBuf - ioBandwidthKbpsUpperBuf - logicalStorageUsageBytes - memoryCapacityBytes - overallMemoryUsageBytes - overallMemoryUsagePpm - overallMemoryUsagePpmLowerBuf - overallMemoryUsagePpmUpperBuf - powerConsumptionInstantWatt - storageCapacityBytes - storageUsageBytes
1826
+ # @return [GetHostStats200Response]
1827
+ def get_host_stats(cluster_ext_id, ext_id, start_time, end_time, opts = {})
1828
+ data, _status_code, _headers = get_host_stats_with_http_info(cluster_ext_id, ext_id, start_time, end_time, opts)
1829
+ data
1830
+ end
1831
+
1832
+ # Get host statistics
1833
+ # Get the statistics data of the host identified by {hostExtId} belonging to the cluster identified by {clusterExtId}.
1834
+ # @param cluster_ext_id [String] Cluster UUID.
1835
+ # @param ext_id [String] Host UUID.
1836
+ # @param start_time [Time] The start time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
1837
+ # @param end_time [Time] The end time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, end time of 2022-04-23T013:23:45.678+09:00 would consider all stats till 13:23:45 .678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
1838
+ # @param [Hash] opts the optional parameters
1839
+ # @option opts [Integer] :sampling_interval The sampling interval in seconds at which statistical data should be collected. For example, if you want performance statistics every 30 seconds, then provide the value as 30.
1840
+ # @option opts [CommonV10StatsDownSamplingOperator] :stat_type
1841
+ # @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - aggregateHypervisorMemoryUsagePpm - aggregateHypervisorMemoryUsagePpmLowerBuf - aggregateHypervisorMemoryUsagePpmUpperBuf - controllerAvgIoLatencyUsecs - controllerAvgIoLatencyUsecsLowerBuf - controllerAvgIoLatencyUsecsUpperBuf - controllerAvgReadIoLatencyUsecs - controllerAvgReadIoLatencyUsecsLowerBuf - controllerAvgReadIoLatencyUsecsUpperBuf - controllerAvgWriteIoLatencyUsecs - controllerAvgWriteIoLatencyUsecsLowerBuf - controllerAvgWriteIoLatencyUsecsUpperBuf - controllerNumIops - controllerNumIopsLowerBuf - controllerNumIopsUpperBuf - controllerNumReadIops - controllerNumReadIopsLowerBuf - controllerNumReadIopsUpperBuf - controllerNumWriteIops - controllerNumWriteIopsLowerBuf - controllerNumWriteIopsUpperBuf - controllerReadIoBandwidthKbps - controllerReadIoBandwidthKbpsLowerBuf - controllerReadIoBandwidthKbpsUpperBuf - controllerWriteIoBandwidthKbps - controllerWriteIoBandwidthKbpsLowerBuf - controllerWriteIoBandwidthKbpsUpperBuf - cpuCapacityHz - cpuUsageHz - freePhysicalStorageBytes - healthCheckScore - hypervisorCpuUsagePpm - hypervisorCpuUsagePpmLowerBuf - hypervisorCpuUsagePpmUpperBuf - ioBandwidthKbps - ioBandwidthKbpsLowerBuf - ioBandwidthKbpsUpperBuf - logicalStorageUsageBytes - memoryCapacityBytes - overallMemoryUsageBytes - overallMemoryUsagePpm - overallMemoryUsagePpmLowerBuf - overallMemoryUsagePpmUpperBuf - powerConsumptionInstantWatt - storageCapacityBytes - storageUsageBytes
1842
+ # @return [Array<(GetHostStats200Response, Integer, Hash)>] GetHostStats200Response data, response status code and response headers
1843
+ def get_host_stats_with_http_info(cluster_ext_id, ext_id, start_time, end_time, opts = {})
1844
+ if @api_client.config.debugging
1845
+ @api_client.config.logger.debug 'Calling API: ClustersApi.get_host_stats ...'
1846
+ end
1847
+ # verify the required parameter 'cluster_ext_id' is set
1848
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
1849
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.get_host_stats"
1850
+ end
1851
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1852
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
1853
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.get_host_stats, must conform to the pattern #{pattern}."
1854
+ end
1855
+
1856
+ # verify the required parameter 'ext_id' is set
1857
+ if @api_client.config.client_side_validation && ext_id.nil?
1858
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.get_host_stats"
1859
+ end
1860
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1861
+ if @api_client.config.client_side_validation && ext_id !~ pattern
1862
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.get_host_stats, must conform to the pattern #{pattern}."
1863
+ end
1864
+
1865
+ # verify the required parameter 'start_time' is set
1866
+ if @api_client.config.client_side_validation && start_time.nil?
1867
+ fail ArgumentError, "Missing the required parameter 'start_time' when calling ClustersApi.get_host_stats"
1868
+ end
1869
+ # verify the required parameter 'end_time' is set
1870
+ if @api_client.config.client_side_validation && end_time.nil?
1871
+ fail ArgumentError, "Missing the required parameter 'end_time' when calling ClustersApi.get_host_stats"
1872
+ end
1873
+ if @api_client.config.client_side_validation && !opts[:'sampling_interval'].nil? && opts[:'sampling_interval'] < 1
1874
+ fail ArgumentError, 'invalid value for "opts[:"sampling_interval"]" when calling ClustersApi.get_host_stats, must be greater than or equal to 1.'
1875
+ end
1876
+
1877
+ # resource path
1878
+ local_var_path = '/clustermgmt/v4.0/stats/clusters/{clusterExtId}/hosts/{extId}'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
1879
+
1880
+ # query parameters
1881
+ query_params = opts[:query_params] || {}
1882
+ query_params[:'$startTime'] = start_time
1883
+ query_params[:'$endTime'] = end_time
1884
+ query_params[:'$samplingInterval'] = opts[:'sampling_interval'] if !opts[:'sampling_interval'].nil?
1885
+ query_params[:'$statType'] = opts[:'stat_type'] if !opts[:'stat_type'].nil?
1886
+ query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
1887
+
1888
+ # header parameters
1889
+ header_params = opts[:header_params] || {}
1890
+ # HTTP header 'Accept' (if needed)
1891
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1892
+
1893
+ # form parameters
1894
+ form_params = opts[:form_params] || {}
1895
+
1896
+ # http body (model)
1897
+ post_body = opts[:debug_body]
1898
+
1899
+ # return_type
1900
+ return_type = opts[:debug_return_type] || 'GetHostStats200Response'
1901
+
1902
+ # auth_names
1903
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
1904
+
1905
+ new_options = opts.merge(
1906
+ :operation => :"ClustersApi.get_host_stats",
1907
+ :header_params => header_params,
1908
+ :query_params => query_params,
1909
+ :form_params => form_params,
1910
+ :body => post_body,
1911
+ :auth_names => auth_names,
1912
+ :return_type => return_type
1913
+ )
1914
+
1915
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1916
+ if @api_client.config.debugging
1917
+ @api_client.config.logger.debug "API called: ClustersApi#get_host_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1918
+ end
1919
+ return data, status_code, headers
1920
+ end
1921
+
1922
+ # Get the rackable unit details
1923
+ # Fetches the rackable unit entity details identified by {extId} of the cluster identified by {clusterExtId}.
1924
+ # @param cluster_ext_id [String] Cluster UUID.
1925
+ # @param ext_id [String] Rackable unit UUID.
1926
+ # @param [Hash] opts the optional parameters
1927
+ # @return [GetRackableUnitById200Response]
1928
+ def get_rackable_unit_by_id(cluster_ext_id, ext_id, opts = {})
1929
+ data, _status_code, _headers = get_rackable_unit_by_id_with_http_info(cluster_ext_id, ext_id, opts)
1930
+ data
1931
+ end
1932
+
1933
+ # Get the rackable unit details
1934
+ # Fetches the rackable unit entity details identified by {extId} of the cluster identified by {clusterExtId}.
1935
+ # @param cluster_ext_id [String] Cluster UUID.
1936
+ # @param ext_id [String] Rackable unit UUID.
1937
+ # @param [Hash] opts the optional parameters
1938
+ # @return [Array<(GetRackableUnitById200Response, Integer, Hash)>] GetRackableUnitById200Response data, response status code and response headers
1939
+ def get_rackable_unit_by_id_with_http_info(cluster_ext_id, ext_id, opts = {})
1940
+ if @api_client.config.debugging
1941
+ @api_client.config.logger.debug 'Calling API: ClustersApi.get_rackable_unit_by_id ...'
1942
+ end
1943
+ # verify the required parameter 'cluster_ext_id' is set
1944
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
1945
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.get_rackable_unit_by_id"
1946
+ end
1947
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1948
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
1949
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.get_rackable_unit_by_id, must conform to the pattern #{pattern}."
1950
+ end
1951
+
1952
+ # verify the required parameter 'ext_id' is set
1953
+ if @api_client.config.client_side_validation && ext_id.nil?
1954
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.get_rackable_unit_by_id"
1955
+ end
1956
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
1957
+ if @api_client.config.client_side_validation && ext_id !~ pattern
1958
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.get_rackable_unit_by_id, must conform to the pattern #{pattern}."
1959
+ end
1960
+
1961
+ # resource path
1962
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/rackable-units/{extId}'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
1963
+
1964
+ # query parameters
1965
+ query_params = opts[:query_params] || {}
1966
+
1967
+ # header parameters
1968
+ header_params = opts[:header_params] || {}
1969
+ # HTTP header 'Accept' (if needed)
1970
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1971
+
1972
+ # form parameters
1973
+ form_params = opts[:form_params] || {}
1974
+
1975
+ # http body (model)
1976
+ post_body = opts[:debug_body]
1977
+
1978
+ # return_type
1979
+ return_type = opts[:debug_return_type] || 'GetRackableUnitById200Response'
1980
+
1981
+ # auth_names
1982
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
1983
+
1984
+ new_options = opts.merge(
1985
+ :operation => :"ClustersApi.get_rackable_unit_by_id",
1986
+ :header_params => header_params,
1987
+ :query_params => query_params,
1988
+ :form_params => form_params,
1989
+ :body => post_body,
1990
+ :auth_names => auth_names,
1991
+ :return_type => return_type
1992
+ )
1993
+
1994
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1995
+ if @api_client.config.debugging
1996
+ @api_client.config.logger.debug "API called: ClustersApi#get_rackable_unit_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1997
+ end
1998
+ return data, status_code, headers
1999
+ end
2000
+
2001
+ # Get RSYSLOG server configuration
2002
+ # Fetches the RSYSLOG server configuration identified by {extId} associated with the cluster identified by {clusterExtId}.
2003
+ # @param cluster_ext_id [String] Cluster UUID.
2004
+ # @param ext_id [String] RSYSLOG server UUID.
2005
+ # @param [Hash] opts the optional parameters
2006
+ # @return [GetRsyslogServerById200Response]
2007
+ def get_rsyslog_server_by_id(cluster_ext_id, ext_id, opts = {})
2008
+ data, _status_code, _headers = get_rsyslog_server_by_id_with_http_info(cluster_ext_id, ext_id, opts)
2009
+ data
2010
+ end
2011
+
2012
+ # Get RSYSLOG server configuration
2013
+ # Fetches the RSYSLOG server configuration identified by {extId} associated with the cluster identified by {clusterExtId}.
2014
+ # @param cluster_ext_id [String] Cluster UUID.
2015
+ # @param ext_id [String] RSYSLOG server UUID.
2016
+ # @param [Hash] opts the optional parameters
2017
+ # @return [Array<(GetRsyslogServerById200Response, Integer, Hash)>] GetRsyslogServerById200Response data, response status code and response headers
2018
+ def get_rsyslog_server_by_id_with_http_info(cluster_ext_id, ext_id, opts = {})
2019
+ if @api_client.config.debugging
2020
+ @api_client.config.logger.debug 'Calling API: ClustersApi.get_rsyslog_server_by_id ...'
2021
+ end
2022
+ # verify the required parameter 'cluster_ext_id' is set
2023
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
2024
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.get_rsyslog_server_by_id"
2025
+ end
2026
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2027
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
2028
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.get_rsyslog_server_by_id, must conform to the pattern #{pattern}."
2029
+ end
2030
+
2031
+ # verify the required parameter 'ext_id' is set
2032
+ if @api_client.config.client_side_validation && ext_id.nil?
2033
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.get_rsyslog_server_by_id"
2034
+ end
2035
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2036
+ if @api_client.config.client_side_validation && ext_id !~ pattern
2037
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.get_rsyslog_server_by_id, must conform to the pattern #{pattern}."
2038
+ end
2039
+
2040
+ # resource path
2041
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/rsyslog-servers/{extId}'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
2042
+
2043
+ # query parameters
2044
+ query_params = opts[:query_params] || {}
2045
+
2046
+ # header parameters
2047
+ header_params = opts[:header_params] || {}
2048
+ # HTTP header 'Accept' (if needed)
2049
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2050
+
2051
+ # form parameters
2052
+ form_params = opts[:form_params] || {}
2053
+
2054
+ # http body (model)
2055
+ post_body = opts[:debug_body]
2056
+
2057
+ # return_type
2058
+ return_type = opts[:debug_return_type] || 'GetRsyslogServerById200Response'
2059
+
2060
+ # auth_names
2061
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
2062
+
2063
+ new_options = opts.merge(
2064
+ :operation => :"ClustersApi.get_rsyslog_server_by_id",
2065
+ :header_params => header_params,
2066
+ :query_params => query_params,
2067
+ :form_params => form_params,
2068
+ :body => post_body,
2069
+ :auth_names => auth_names,
2070
+ :return_type => return_type
2071
+ )
2072
+
2073
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2074
+ if @api_client.config.debugging
2075
+ @api_client.config.logger.debug "API called: ClustersApi#get_rsyslog_server_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2076
+ end
2077
+ return data, status_code, headers
2078
+ end
2079
+
2080
+ # Get SNMP config details of a cluster
2081
+ # Fetches SNMP config details of the cluster identified by {clusterExtId}.
2082
+ # @param cluster_ext_id [String] Cluster UUID.
2083
+ # @param [Hash] opts the optional parameters
2084
+ # @return [GetSnmpConfigByClusterId200Response]
2085
+ def get_snmp_config_by_cluster_id(cluster_ext_id, opts = {})
2086
+ data, _status_code, _headers = get_snmp_config_by_cluster_id_with_http_info(cluster_ext_id, opts)
2087
+ data
2088
+ end
2089
+
2090
+ # Get SNMP config details of a cluster
2091
+ # Fetches SNMP config details of the cluster identified by {clusterExtId}.
2092
+ # @param cluster_ext_id [String] Cluster UUID.
2093
+ # @param [Hash] opts the optional parameters
2094
+ # @return [Array<(GetSnmpConfigByClusterId200Response, Integer, Hash)>] GetSnmpConfigByClusterId200Response data, response status code and response headers
2095
+ def get_snmp_config_by_cluster_id_with_http_info(cluster_ext_id, opts = {})
2096
+ if @api_client.config.debugging
2097
+ @api_client.config.logger.debug 'Calling API: ClustersApi.get_snmp_config_by_cluster_id ...'
2098
+ end
2099
+ # verify the required parameter 'cluster_ext_id' is set
2100
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
2101
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.get_snmp_config_by_cluster_id"
2102
+ end
2103
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2104
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
2105
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.get_snmp_config_by_cluster_id, must conform to the pattern #{pattern}."
2106
+ end
2107
+
2108
+ # resource path
2109
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/snmp'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
2110
+
2111
+ # query parameters
2112
+ query_params = opts[:query_params] || {}
2113
+
2114
+ # header parameters
2115
+ header_params = opts[:header_params] || {}
2116
+ # HTTP header 'Accept' (if needed)
2117
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2118
+
2119
+ # form parameters
2120
+ form_params = opts[:form_params] || {}
2121
+
2122
+ # http body (model)
2123
+ post_body = opts[:debug_body]
2124
+
2125
+ # return_type
2126
+ return_type = opts[:debug_return_type] || 'GetSnmpConfigByClusterId200Response'
2127
+
2128
+ # auth_names
2129
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
2130
+
2131
+ new_options = opts.merge(
2132
+ :operation => :"ClustersApi.get_snmp_config_by_cluster_id",
2133
+ :header_params => header_params,
2134
+ :query_params => query_params,
2135
+ :form_params => form_params,
2136
+ :body => post_body,
2137
+ :auth_names => auth_names,
2138
+ :return_type => return_type
2139
+ )
2140
+
2141
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2142
+ if @api_client.config.debugging
2143
+ @api_client.config.logger.debug "API called: ClustersApi#get_snmp_config_by_cluster_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2144
+ end
2145
+ return data, status_code, headers
2146
+ end
2147
+
2148
+ # Get SNMP trap configuration details
2149
+ # Fetches SNMP trap configuration details identified by {extId} associated with the cluster identified by {clusterExtId}.
2150
+ # @param cluster_ext_id [String] Cluster UUID.
2151
+ # @param ext_id [String] SNMP trap UUID.
2152
+ # @param [Hash] opts the optional parameters
2153
+ # @return [GetSnmpTrapById200Response]
2154
+ def get_snmp_trap_by_id(cluster_ext_id, ext_id, opts = {})
2155
+ data, _status_code, _headers = get_snmp_trap_by_id_with_http_info(cluster_ext_id, ext_id, opts)
2156
+ data
2157
+ end
2158
+
2159
+ # Get SNMP trap configuration details
2160
+ # Fetches SNMP trap configuration details identified by {extId} associated with the cluster identified by {clusterExtId}.
2161
+ # @param cluster_ext_id [String] Cluster UUID.
2162
+ # @param ext_id [String] SNMP trap UUID.
2163
+ # @param [Hash] opts the optional parameters
2164
+ # @return [Array<(GetSnmpTrapById200Response, Integer, Hash)>] GetSnmpTrapById200Response data, response status code and response headers
2165
+ def get_snmp_trap_by_id_with_http_info(cluster_ext_id, ext_id, opts = {})
2166
+ if @api_client.config.debugging
2167
+ @api_client.config.logger.debug 'Calling API: ClustersApi.get_snmp_trap_by_id ...'
2168
+ end
2169
+ # verify the required parameter 'cluster_ext_id' is set
2170
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
2171
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.get_snmp_trap_by_id"
2172
+ end
2173
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2174
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
2175
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.get_snmp_trap_by_id, must conform to the pattern #{pattern}."
2176
+ end
2177
+
2178
+ # verify the required parameter 'ext_id' is set
2179
+ if @api_client.config.client_side_validation && ext_id.nil?
2180
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.get_snmp_trap_by_id"
2181
+ end
2182
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2183
+ if @api_client.config.client_side_validation && ext_id !~ pattern
2184
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.get_snmp_trap_by_id, must conform to the pattern #{pattern}."
2185
+ end
2186
+
2187
+ # resource path
2188
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/snmp/traps/{extId}'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
2189
+
2190
+ # query parameters
2191
+ query_params = opts[:query_params] || {}
2192
+
2193
+ # header parameters
2194
+ header_params = opts[:header_params] || {}
2195
+ # HTTP header 'Accept' (if needed)
2196
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2197
+
2198
+ # form parameters
2199
+ form_params = opts[:form_params] || {}
2200
+
2201
+ # http body (model)
2202
+ post_body = opts[:debug_body]
2203
+
2204
+ # return_type
2205
+ return_type = opts[:debug_return_type] || 'GetSnmpTrapById200Response'
2206
+
2207
+ # auth_names
2208
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
2209
+
2210
+ new_options = opts.merge(
2211
+ :operation => :"ClustersApi.get_snmp_trap_by_id",
2212
+ :header_params => header_params,
2213
+ :query_params => query_params,
2214
+ :form_params => form_params,
2215
+ :body => post_body,
2216
+ :auth_names => auth_names,
2217
+ :return_type => return_type
2218
+ )
2219
+
2220
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2221
+ if @api_client.config.debugging
2222
+ @api_client.config.logger.debug "API called: ClustersApi#get_snmp_trap_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2223
+ end
2224
+ return data, status_code, headers
2225
+ end
2226
+
2227
+ # Get SNMP user information
2228
+ # Fetches SNMP user configuration details identified by {extId} associated with the cluster identified by {clusterExtId}.
2229
+ # @param cluster_ext_id [String] Cluster UUID.
2230
+ # @param ext_id [String] SNMP user UUID.
2231
+ # @param [Hash] opts the optional parameters
2232
+ # @return [GetSnmpUserById200Response]
2233
+ def get_snmp_user_by_id(cluster_ext_id, ext_id, opts = {})
2234
+ data, _status_code, _headers = get_snmp_user_by_id_with_http_info(cluster_ext_id, ext_id, opts)
2235
+ data
2236
+ end
2237
+
2238
+ # Get SNMP user information
2239
+ # Fetches SNMP user configuration details identified by {extId} associated with the cluster identified by {clusterExtId}.
2240
+ # @param cluster_ext_id [String] Cluster UUID.
2241
+ # @param ext_id [String] SNMP user UUID.
2242
+ # @param [Hash] opts the optional parameters
2243
+ # @return [Array<(GetSnmpUserById200Response, Integer, Hash)>] GetSnmpUserById200Response data, response status code and response headers
2244
+ def get_snmp_user_by_id_with_http_info(cluster_ext_id, ext_id, opts = {})
2245
+ if @api_client.config.debugging
2246
+ @api_client.config.logger.debug 'Calling API: ClustersApi.get_snmp_user_by_id ...'
2247
+ end
2248
+ # verify the required parameter 'cluster_ext_id' is set
2249
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
2250
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.get_snmp_user_by_id"
2251
+ end
2252
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2253
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
2254
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.get_snmp_user_by_id, must conform to the pattern #{pattern}."
2255
+ end
2256
+
2257
+ # verify the required parameter 'ext_id' is set
2258
+ if @api_client.config.client_side_validation && ext_id.nil?
2259
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.get_snmp_user_by_id"
2260
+ end
2261
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2262
+ if @api_client.config.client_side_validation && ext_id !~ pattern
2263
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.get_snmp_user_by_id, must conform to the pattern #{pattern}."
2264
+ end
2265
+
2266
+ # resource path
2267
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/snmp/users/{extId}'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
2268
+
2269
+ # query parameters
2270
+ query_params = opts[:query_params] || {}
2271
+
2272
+ # header parameters
2273
+ header_params = opts[:header_params] || {}
2274
+ # HTTP header 'Accept' (if needed)
2275
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2276
+
2277
+ # form parameters
2278
+ form_params = opts[:form_params] || {}
2279
+
2280
+ # http body (model)
2281
+ post_body = opts[:debug_body]
2282
+
2283
+ # return_type
2284
+ return_type = opts[:debug_return_type] || 'GetSnmpUserById200Response'
2285
+
2286
+ # auth_names
2287
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
2288
+
2289
+ new_options = opts.merge(
2290
+ :operation => :"ClustersApi.get_snmp_user_by_id",
2291
+ :header_params => header_params,
2292
+ :query_params => query_params,
2293
+ :form_params => form_params,
2294
+ :body => post_body,
2295
+ :auth_names => auth_names,
2296
+ :return_type => return_type
2297
+ )
2298
+
2299
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2300
+ if @api_client.config.debugging
2301
+ @api_client.config.logger.debug "API called: ClustersApi#get_snmp_user_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2302
+ end
2303
+ return data, status_code, headers
2304
+ end
2305
+
2306
+ # Get virtual NIC
2307
+ # Get the virtual NIC entity of the host identified by {hostExtId} belonging to the cluster identified by {clusterExtId}.
2308
+ # @param cluster_ext_id [String] Cluster UUID.
2309
+ # @param host_ext_id [String] Host UUID.
2310
+ # @param ext_id [String] Virtual NIC UUID.
2311
+ # @param [Hash] opts the optional parameters
2312
+ # @return [GetVirtualNicById200Response]
2313
+ def get_virtual_nic_by_id(cluster_ext_id, host_ext_id, ext_id, opts = {})
2314
+ data, _status_code, _headers = get_virtual_nic_by_id_with_http_info(cluster_ext_id, host_ext_id, ext_id, opts)
2315
+ data
2316
+ end
2317
+
2318
+ # Get virtual NIC
2319
+ # Get the virtual NIC entity of the host identified by {hostExtId} belonging to the cluster identified by {clusterExtId}.
2320
+ # @param cluster_ext_id [String] Cluster UUID.
2321
+ # @param host_ext_id [String] Host UUID.
2322
+ # @param ext_id [String] Virtual NIC UUID.
2323
+ # @param [Hash] opts the optional parameters
2324
+ # @return [Array<(GetVirtualNicById200Response, Integer, Hash)>] GetVirtualNicById200Response data, response status code and response headers
2325
+ def get_virtual_nic_by_id_with_http_info(cluster_ext_id, host_ext_id, ext_id, opts = {})
2326
+ if @api_client.config.debugging
2327
+ @api_client.config.logger.debug 'Calling API: ClustersApi.get_virtual_nic_by_id ...'
2328
+ end
2329
+ # verify the required parameter 'cluster_ext_id' is set
2330
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
2331
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.get_virtual_nic_by_id"
2332
+ end
2333
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2334
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
2335
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.get_virtual_nic_by_id, must conform to the pattern #{pattern}."
2336
+ end
2337
+
2338
+ # verify the required parameter 'host_ext_id' is set
2339
+ if @api_client.config.client_side_validation && host_ext_id.nil?
2340
+ fail ArgumentError, "Missing the required parameter 'host_ext_id' when calling ClustersApi.get_virtual_nic_by_id"
2341
+ end
2342
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2343
+ if @api_client.config.client_side_validation && host_ext_id !~ pattern
2344
+ fail ArgumentError, "invalid value for 'host_ext_id' when calling ClustersApi.get_virtual_nic_by_id, must conform to the pattern #{pattern}."
2345
+ end
2346
+
2347
+ # verify the required parameter 'ext_id' is set
2348
+ if @api_client.config.client_side_validation && ext_id.nil?
2349
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.get_virtual_nic_by_id"
2350
+ end
2351
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2352
+ if @api_client.config.client_side_validation && ext_id !~ pattern
2353
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.get_virtual_nic_by_id, must conform to the pattern #{pattern}."
2354
+ end
2355
+
2356
+ # resource path
2357
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/hosts/{hostExtId}/virtual-nics/{extId}'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'hostExtId' + '}', CGI.escape(host_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
2358
+
2359
+ # query parameters
2360
+ query_params = opts[:query_params] || {}
2361
+
2362
+ # header parameters
2363
+ header_params = opts[:header_params] || {}
2364
+ # HTTP header 'Accept' (if needed)
2365
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2366
+
2367
+ # form parameters
2368
+ form_params = opts[:form_params] || {}
2369
+
2370
+ # http body (model)
2371
+ post_body = opts[:debug_body]
2372
+
2373
+ # return_type
2374
+ return_type = opts[:debug_return_type] || 'GetVirtualNicById200Response'
2375
+
2376
+ # auth_names
2377
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
2378
+
2379
+ new_options = opts.merge(
2380
+ :operation => :"ClustersApi.get_virtual_nic_by_id",
2381
+ :header_params => header_params,
2382
+ :query_params => query_params,
2383
+ :form_params => form_params,
2384
+ :body => post_body,
2385
+ :auth_names => auth_names,
2386
+ :return_type => return_type
2387
+ )
2388
+
2389
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2390
+ if @api_client.config.debugging
2391
+ @api_client.config.logger.debug "API called: ClustersApi#get_virtual_nic_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2392
+ end
2393
+ return data, status_code, headers
2394
+ end
2395
+
2396
+ # Get the list of clusters
2397
+ # Lists all cluster entities registered to Prism Central.
2398
+ # @param [Hash] opts the optional parameters
2399
+ # @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
2400
+ # @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
2401
+ # @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter &#39;$filter&#x3D;name eq &#39;karbon-ntnx-1.0&#39; would filter the result on cluster name &#39;karbon-ntnx1.0&#39;, filter &#39;$filter&#x3D;startswith(name, &#39;C&#39;)&#39; would filter on cluster name starting with &#39;C&#39;. The filter can be applied to the following fields: - backupEligibilityScore - clusterProfileExtId - config/buildInfo/version - config/clusterFunction - config/encryptionInTransitStatus - config/encryptionOption - config/encryptionScope - config/hypervisorTypes - config/isAvailable - extId - name - network/keyManagementServerType - upgradeStatus
2402
+ # @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, &#39;$orderby&#x3D;templateName desc&#39; would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - backupEligibilityScore - config/buildInfo/version - config/isAvailable - extId - inefficientVmCount - name - network/keyManagementServerType - nodes/numberOfNodes - upgradeStatus - vmCount
2403
+ # @option opts [String] :apply A URL query parameter that allows clients to specify a sequence of transformations to the entity set, such as groupby, filter, aggregate etc. As of now only support for groupby exists.For example &#39;$apply&#x3D;groupby((templateName))&#39; would get all templates grouped by templateName. The groupby can be applied on the following fields: - config/buildInfo/version - nodes/numberOfNodes
2404
+ # @option opts [String] :expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported. - clusterProfile - storageSummary
2405
+ # @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - backupEligibilityScore - inefficientVmCount - name - upgradeStatus - vmCount
2406
+ # @return [ListClusters200Response]
2407
+ def list_clusters(opts = {})
2408
+ data, _status_code, _headers = list_clusters_with_http_info(opts)
2409
+ data
2410
+ end
2411
+
2412
+ # Get the list of clusters
2413
+ # Lists all cluster entities registered to Prism Central.
2414
+ # @param [Hash] opts the optional parameters
2415
+ # @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
2416
+ # @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
2417
+ # @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter &#39;$filter&#x3D;name eq &#39;karbon-ntnx-1.0&#39; would filter the result on cluster name &#39;karbon-ntnx1.0&#39;, filter &#39;$filter&#x3D;startswith(name, &#39;C&#39;)&#39; would filter on cluster name starting with &#39;C&#39;. The filter can be applied to the following fields: - backupEligibilityScore - clusterProfileExtId - config/buildInfo/version - config/clusterFunction - config/encryptionInTransitStatus - config/encryptionOption - config/encryptionScope - config/hypervisorTypes - config/isAvailable - extId - name - network/keyManagementServerType - upgradeStatus
2418
+ # @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, &#39;$orderby&#x3D;templateName desc&#39; would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - backupEligibilityScore - config/buildInfo/version - config/isAvailable - extId - inefficientVmCount - name - network/keyManagementServerType - nodes/numberOfNodes - upgradeStatus - vmCount
2419
+ # @option opts [String] :apply A URL query parameter that allows clients to specify a sequence of transformations to the entity set, such as groupby, filter, aggregate etc. As of now only support for groupby exists.For example &#39;$apply&#x3D;groupby((templateName))&#39; would get all templates grouped by templateName. The groupby can be applied on the following fields: - config/buildInfo/version - nodes/numberOfNodes
2420
+ # @option opts [String] :expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported. - clusterProfile - storageSummary
2421
+ # @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - backupEligibilityScore - inefficientVmCount - name - upgradeStatus - vmCount
2422
+ # @return [Array<(ListClusters200Response, Integer, Hash)>] ListClusters200Response data, response status code and response headers
2423
+ def list_clusters_with_http_info(opts = {})
2424
+ if @api_client.config.debugging
2425
+ @api_client.config.logger.debug 'Calling API: ClustersApi.list_clusters ...'
2426
+ end
2427
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
2428
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ClustersApi.list_clusters, must be greater than or equal to 0.'
2429
+ end
2430
+
2431
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
2432
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.list_clusters, must be smaller than or equal to 100.'
2433
+ end
2434
+
2435
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2436
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.list_clusters, must be greater than or equal to 1.'
2437
+ end
2438
+
2439
+ # resource path
2440
+ local_var_path = '/clustermgmt/v4.0/config/clusters'
2441
+
2442
+ # query parameters
2443
+ query_params = opts[:query_params] || {}
2444
+ query_params[:'$page'] = opts[:'page'] if !opts[:'page'].nil?
2445
+ query_params[:'$limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2446
+ query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
2447
+ query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
2448
+ query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
2449
+ query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
2450
+ query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
2451
+
2452
+ # header parameters
2453
+ header_params = opts[:header_params] || {}
2454
+ # HTTP header 'Accept' (if needed)
2455
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2456
+
2457
+ # form parameters
2458
+ form_params = opts[:form_params] || {}
2459
+
2460
+ # http body (model)
2461
+ post_body = opts[:debug_body]
2462
+
2463
+ # return_type
2464
+ return_type = opts[:debug_return_type] || 'ListClusters200Response'
2465
+
2466
+ # auth_names
2467
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
2468
+
2469
+ new_options = opts.merge(
2470
+ :operation => :"ClustersApi.list_clusters",
2471
+ :header_params => header_params,
2472
+ :query_params => query_params,
2473
+ :form_params => form_params,
2474
+ :body => post_body,
2475
+ :auth_names => auth_names,
2476
+ :return_type => return_type
2477
+ )
2478
+
2479
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2480
+ if @api_client.config.debugging
2481
+ @api_client.config.logger.debug "API called: ClustersApi#list_clusters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2482
+ end
2483
+ return data, status_code, headers
2484
+ end
2485
+
2486
+ # Get the list of host NICs
2487
+ # Lists all host NICs for the host identified by {hostExtId} belonging to the cluster identified by {clusterExtId}.
2488
+ # @param cluster_ext_id [String] Cluster UUID.
2489
+ # @param host_ext_id [String] Host UUID.
2490
+ # @param [Hash] opts the optional parameters
2491
+ # @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
2492
+ # @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
2493
+ # @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter &#39;$filter&#x3D;name eq &#39;karbon-ntnx-1.0&#39; would filter the result on cluster name &#39;karbon-ntnx1.0&#39;, filter &#39;$filter&#x3D;startswith(name, &#39;C&#39;)&#39; would filter on cluster name starting with &#39;C&#39;. The filter can be applied to the following fields: - discoveryProtocol - extId - interfaceStatus - isDhcpEnabled - linkSpeedInKbps - macAddress - mtuInBytes - name - nodeUuid - rxRingSizeInBytes - switchDeviceId - switchMacAddress - switchPortId - switchVlanId - txRingSizeInBytes
2494
+ # @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, &#39;$orderby&#x3D;templateName desc&#39; would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - extId - name
2495
+ # @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - discoveryProtocol - hostDescription - interfaceStatus - isDhcpEnabled - linkSpeedInKbps - macAddress - mtuInBytes - name - nodeUuid - rxRingSizeInBytes - switchDeviceId - switchMacAddress - switchManagementIp - switchPortId - switchVlanId - txRingSizeInBytes
2496
+ # @return [ListHostNicsByHostId200Response]
2497
+ def list_host_nics_by_host_id(cluster_ext_id, host_ext_id, opts = {})
2498
+ data, _status_code, _headers = list_host_nics_by_host_id_with_http_info(cluster_ext_id, host_ext_id, opts)
2499
+ data
2500
+ end
2501
+
2502
+ # Get the list of host NICs
2503
+ # Lists all host NICs for the host identified by {hostExtId} belonging to the cluster identified by {clusterExtId}.
2504
+ # @param cluster_ext_id [String] Cluster UUID.
2505
+ # @param host_ext_id [String] Host UUID.
2506
+ # @param [Hash] opts the optional parameters
2507
+ # @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
2508
+ # @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
2509
+ # @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter &#39;$filter&#x3D;name eq &#39;karbon-ntnx-1.0&#39; would filter the result on cluster name &#39;karbon-ntnx1.0&#39;, filter &#39;$filter&#x3D;startswith(name, &#39;C&#39;)&#39; would filter on cluster name starting with &#39;C&#39;. The filter can be applied to the following fields: - discoveryProtocol - extId - interfaceStatus - isDhcpEnabled - linkSpeedInKbps - macAddress - mtuInBytes - name - nodeUuid - rxRingSizeInBytes - switchDeviceId - switchMacAddress - switchPortId - switchVlanId - txRingSizeInBytes
2510
+ # @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, &#39;$orderby&#x3D;templateName desc&#39; would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - extId - name
2511
+ # @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - discoveryProtocol - hostDescription - interfaceStatus - isDhcpEnabled - linkSpeedInKbps - macAddress - mtuInBytes - name - nodeUuid - rxRingSizeInBytes - switchDeviceId - switchMacAddress - switchManagementIp - switchPortId - switchVlanId - txRingSizeInBytes
2512
+ # @return [Array<(ListHostNicsByHostId200Response, Integer, Hash)>] ListHostNicsByHostId200Response data, response status code and response headers
2513
+ def list_host_nics_by_host_id_with_http_info(cluster_ext_id, host_ext_id, opts = {})
2514
+ if @api_client.config.debugging
2515
+ @api_client.config.logger.debug 'Calling API: ClustersApi.list_host_nics_by_host_id ...'
2516
+ end
2517
+ # verify the required parameter 'cluster_ext_id' is set
2518
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
2519
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.list_host_nics_by_host_id"
2520
+ end
2521
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2522
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
2523
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.list_host_nics_by_host_id, must conform to the pattern #{pattern}."
2524
+ end
2525
+
2526
+ # verify the required parameter 'host_ext_id' is set
2527
+ if @api_client.config.client_side_validation && host_ext_id.nil?
2528
+ fail ArgumentError, "Missing the required parameter 'host_ext_id' when calling ClustersApi.list_host_nics_by_host_id"
2529
+ end
2530
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2531
+ if @api_client.config.client_side_validation && host_ext_id !~ pattern
2532
+ fail ArgumentError, "invalid value for 'host_ext_id' when calling ClustersApi.list_host_nics_by_host_id, must conform to the pattern #{pattern}."
2533
+ end
2534
+
2535
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
2536
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ClustersApi.list_host_nics_by_host_id, must be greater than or equal to 0.'
2537
+ end
2538
+
2539
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
2540
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.list_host_nics_by_host_id, must be smaller than or equal to 100.'
2541
+ end
2542
+
2543
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2544
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.list_host_nics_by_host_id, must be greater than or equal to 1.'
2545
+ end
2546
+
2547
+ # resource path
2548
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/hosts/{hostExtId}/host-nics'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'hostExtId' + '}', CGI.escape(host_ext_id.to_s))
2549
+
2550
+ # query parameters
2551
+ query_params = opts[:query_params] || {}
2552
+ query_params[:'$page'] = opts[:'page'] if !opts[:'page'].nil?
2553
+ query_params[:'$limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2554
+ query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
2555
+ query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
2556
+ query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
2557
+
2558
+ # header parameters
2559
+ header_params = opts[:header_params] || {}
2560
+ # HTTP header 'Accept' (if needed)
2561
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2562
+
2563
+ # form parameters
2564
+ form_params = opts[:form_params] || {}
2565
+
2566
+ # http body (model)
2567
+ post_body = opts[:debug_body]
2568
+
2569
+ # return_type
2570
+ return_type = opts[:debug_return_type] || 'ListHostNicsByHostId200Response'
2571
+
2572
+ # auth_names
2573
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
2574
+
2575
+ new_options = opts.merge(
2576
+ :operation => :"ClustersApi.list_host_nics_by_host_id",
2577
+ :header_params => header_params,
2578
+ :query_params => query_params,
2579
+ :form_params => form_params,
2580
+ :body => post_body,
2581
+ :auth_names => auth_names,
2582
+ :return_type => return_type
2583
+ )
2584
+
2585
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2586
+ if @api_client.config.debugging
2587
+ @api_client.config.logger.debug "API called: ClustersApi#list_host_nics_by_host_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2588
+ end
2589
+ return data, status_code, headers
2590
+ end
2591
+
2592
+ # Get the list of all host entities
2593
+ # Lists all host entities across clusters registered to Prism Central.
2594
+ # @param [Hash] opts the optional parameters
2595
+ # @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
2596
+ # @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
2597
+ # @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter &#39;$filter&#x3D;name eq &#39;karbon-ntnx-1.0&#39; would filter the result on cluster name &#39;karbon-ntnx1.0&#39;, filter &#39;$filter&#x3D;startswith(name, &#39;C&#39;)&#39; would filter on cluster name starting with &#39;C&#39;. The filter can be applied to the following fields: - bootTimeUsecs - cluster/name - cluster/uuid - cpuCapacityHz - cpuFrequencyHz - cpuModel - defaultVhdContainerUuid - defaultVhdLocation - defaultVmContainerUuid - defaultVmLocation - extId - gpuDriverVersion - gpuList - hostName - hypervisor/type - memorySizeBytes - numberOfCpuCores - numberOfCpuSockets - numberOfCpuThreads
2598
+ # @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, &#39;$orderby&#x3D;templateName desc&#39; would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - cluster/name - extId - hostName - hostType - hypervisor/type - memorySizeBytes
2599
+ # @option opts [String] :apply A URL query parameter that allows clients to specify a sequence of transformations to the entity set, such as groupby, filter, aggregate etc. As of now only support for groupby exists.For example &#39;$apply&#x3D;groupby((templateName))&#39; would get all templates grouped by templateName. The groupby can be applied on the following fields: - cluster/name - hypervisor/type
2600
+ # @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - blockModel - blockSerial - bootTimeUsecs - cluster - cpuCapacityHz - cpuFrequencyHz - cpuModel - defaultVhdContainerUuid - defaultVhdLocation - defaultVmContainerUuid - defaultVmLocation - failoverClusterFqdn - failoverClusterNodeStatus - gpuDriverVersion - gpuList - hostName - hostType - isRebootPending - maintenanceState - memorySizeBytes - nodeStatus - numberOfCpuCores - numberOfCpuSockets - numberOfCpuThreads
2601
+ # @return [ListHosts200Response]
2602
+ def list_hosts(opts = {})
2603
+ data, _status_code, _headers = list_hosts_with_http_info(opts)
2604
+ data
2605
+ end
2606
+
2607
+ # Get the list of all host entities
2608
+ # Lists all host entities across clusters registered to Prism Central.
2609
+ # @param [Hash] opts the optional parameters
2610
+ # @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
2611
+ # @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
2612
+ # @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter &#39;$filter&#x3D;name eq &#39;karbon-ntnx-1.0&#39; would filter the result on cluster name &#39;karbon-ntnx1.0&#39;, filter &#39;$filter&#x3D;startswith(name, &#39;C&#39;)&#39; would filter on cluster name starting with &#39;C&#39;. The filter can be applied to the following fields: - bootTimeUsecs - cluster/name - cluster/uuid - cpuCapacityHz - cpuFrequencyHz - cpuModel - defaultVhdContainerUuid - defaultVhdLocation - defaultVmContainerUuid - defaultVmLocation - extId - gpuDriverVersion - gpuList - hostName - hypervisor/type - memorySizeBytes - numberOfCpuCores - numberOfCpuSockets - numberOfCpuThreads
2613
+ # @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, &#39;$orderby&#x3D;templateName desc&#39; would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - cluster/name - extId - hostName - hostType - hypervisor/type - memorySizeBytes
2614
+ # @option opts [String] :apply A URL query parameter that allows clients to specify a sequence of transformations to the entity set, such as groupby, filter, aggregate etc. As of now only support for groupby exists.For example &#39;$apply&#x3D;groupby((templateName))&#39; would get all templates grouped by templateName. The groupby can be applied on the following fields: - cluster/name - hypervisor/type
2615
+ # @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - blockModel - blockSerial - bootTimeUsecs - cluster - cpuCapacityHz - cpuFrequencyHz - cpuModel - defaultVhdContainerUuid - defaultVhdLocation - defaultVmContainerUuid - defaultVmLocation - failoverClusterFqdn - failoverClusterNodeStatus - gpuDriverVersion - gpuList - hostName - hostType - isRebootPending - maintenanceState - memorySizeBytes - nodeStatus - numberOfCpuCores - numberOfCpuSockets - numberOfCpuThreads
2616
+ # @return [Array<(ListHosts200Response, Integer, Hash)>] ListHosts200Response data, response status code and response headers
2617
+ def list_hosts_with_http_info(opts = {})
2618
+ if @api_client.config.debugging
2619
+ @api_client.config.logger.debug 'Calling API: ClustersApi.list_hosts ...'
2620
+ end
2621
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
2622
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ClustersApi.list_hosts, must be greater than or equal to 0.'
2623
+ end
2624
+
2625
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
2626
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.list_hosts, must be smaller than or equal to 100.'
2627
+ end
2628
+
2629
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2630
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.list_hosts, must be greater than or equal to 1.'
2631
+ end
2632
+
2633
+ # resource path
2634
+ local_var_path = '/clustermgmt/v4.0/config/hosts'
2635
+
2636
+ # query parameters
2637
+ query_params = opts[:query_params] || {}
2638
+ query_params[:'$page'] = opts[:'page'] if !opts[:'page'].nil?
2639
+ query_params[:'$limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2640
+ query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
2641
+ query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
2642
+ query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
2643
+ query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
2644
+
2645
+ # header parameters
2646
+ header_params = opts[:header_params] || {}
2647
+ # HTTP header 'Accept' (if needed)
2648
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2649
+
2650
+ # form parameters
2651
+ form_params = opts[:form_params] || {}
2652
+
2653
+ # http body (model)
2654
+ post_body = opts[:debug_body]
2655
+
2656
+ # return_type
2657
+ return_type = opts[:debug_return_type] || 'ListHosts200Response'
2658
+
2659
+ # auth_names
2660
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
2661
+
2662
+ new_options = opts.merge(
2663
+ :operation => :"ClustersApi.list_hosts",
2664
+ :header_params => header_params,
2665
+ :query_params => query_params,
2666
+ :form_params => form_params,
2667
+ :body => post_body,
2668
+ :auth_names => auth_names,
2669
+ :return_type => return_type
2670
+ )
2671
+
2672
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2673
+ if @api_client.config.debugging
2674
+ @api_client.config.logger.debug "API called: ClustersApi#list_hosts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2675
+ end
2676
+ return data, status_code, headers
2677
+ end
2678
+
2679
+ # Get the list of hosts associated with a cluster
2680
+ # Lists all the hosts associated with the cluster identified by {clusterExtId}.
2681
+ # @param cluster_ext_id [String] Cluster UUID.
2682
+ # @param [Hash] opts the optional parameters
2683
+ # @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
2684
+ # @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
2685
+ # @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter &#39;$filter&#x3D;name eq &#39;karbon-ntnx-1.0&#39; would filter the result on cluster name &#39;karbon-ntnx1.0&#39;, filter &#39;$filter&#x3D;startswith(name, &#39;C&#39;)&#39; would filter on cluster name starting with &#39;C&#39;. The filter can be applied to the following fields: - bootTimeUsecs - cluster/name - cluster/uuid - cpuCapacityHz - cpuFrequencyHz - cpuModel - defaultVhdContainerUuid - defaultVhdLocation - defaultVmContainerUuid - defaultVmLocation - extId - gpuDriverVersion - gpuList - hostName - hypervisor/type - memorySizeBytes - numberOfCpuCores - numberOfCpuSockets - numberOfCpuThreads
2686
+ # @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, &#39;$orderby&#x3D;templateName desc&#39; would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - cluster/name - extId - hostName - hostType - hypervisor/type - memorySizeBytes
2687
+ # @option opts [String] :apply A URL query parameter that allows clients to specify a sequence of transformations to the entity set, such as groupby, filter, aggregate etc. As of now only support for groupby exists.For example &#39;$apply&#x3D;groupby((templateName))&#39; would get all templates grouped by templateName. The groupby can be applied on the following fields: - cluster/name - hypervisor/type
2688
+ # @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - blockModel - blockSerial - bootTimeUsecs - cluster - cpuCapacityHz - cpuFrequencyHz - cpuModel - defaultVhdContainerUuid - defaultVhdLocation - defaultVmContainerUuid - defaultVmLocation - failoverClusterFqdn - failoverClusterNodeStatus - gpuDriverVersion - gpuList - hostName - hostType - isRebootPending - maintenanceState - memorySizeBytes - nodeStatus - numberOfCpuCores - numberOfCpuSockets - numberOfCpuThreads
2689
+ # @return [ListHostsByClusterId200Response]
2690
+ def list_hosts_by_cluster_id(cluster_ext_id, opts = {})
2691
+ data, _status_code, _headers = list_hosts_by_cluster_id_with_http_info(cluster_ext_id, opts)
2692
+ data
2693
+ end
2694
+
2695
+ # Get the list of hosts associated with a cluster
2696
+ # Lists all the hosts associated with the cluster identified by {clusterExtId}.
2697
+ # @param cluster_ext_id [String] Cluster UUID.
2698
+ # @param [Hash] opts the optional parameters
2699
+ # @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
2700
+ # @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
2701
+ # @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter &#39;$filter&#x3D;name eq &#39;karbon-ntnx-1.0&#39; would filter the result on cluster name &#39;karbon-ntnx1.0&#39;, filter &#39;$filter&#x3D;startswith(name, &#39;C&#39;)&#39; would filter on cluster name starting with &#39;C&#39;. The filter can be applied to the following fields: - bootTimeUsecs - cluster/name - cluster/uuid - cpuCapacityHz - cpuFrequencyHz - cpuModel - defaultVhdContainerUuid - defaultVhdLocation - defaultVmContainerUuid - defaultVmLocation - extId - gpuDriverVersion - gpuList - hostName - hypervisor/type - memorySizeBytes - numberOfCpuCores - numberOfCpuSockets - numberOfCpuThreads
2702
+ # @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, &#39;$orderby&#x3D;templateName desc&#39; would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - cluster/name - extId - hostName - hostType - hypervisor/type - memorySizeBytes
2703
+ # @option opts [String] :apply A URL query parameter that allows clients to specify a sequence of transformations to the entity set, such as groupby, filter, aggregate etc. As of now only support for groupby exists.For example &#39;$apply&#x3D;groupby((templateName))&#39; would get all templates grouped by templateName. The groupby can be applied on the following fields: - cluster/name - hypervisor/type
2704
+ # @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - blockModel - blockSerial - bootTimeUsecs - cluster - cpuCapacityHz - cpuFrequencyHz - cpuModel - defaultVhdContainerUuid - defaultVhdLocation - defaultVmContainerUuid - defaultVmLocation - failoverClusterFqdn - failoverClusterNodeStatus - gpuDriverVersion - gpuList - hostName - hostType - isRebootPending - maintenanceState - memorySizeBytes - nodeStatus - numberOfCpuCores - numberOfCpuSockets - numberOfCpuThreads
2705
+ # @return [Array<(ListHostsByClusterId200Response, Integer, Hash)>] ListHostsByClusterId200Response data, response status code and response headers
2706
+ def list_hosts_by_cluster_id_with_http_info(cluster_ext_id, opts = {})
2707
+ if @api_client.config.debugging
2708
+ @api_client.config.logger.debug 'Calling API: ClustersApi.list_hosts_by_cluster_id ...'
2709
+ end
2710
+ # verify the required parameter 'cluster_ext_id' is set
2711
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
2712
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.list_hosts_by_cluster_id"
2713
+ end
2714
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2715
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
2716
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.list_hosts_by_cluster_id, must conform to the pattern #{pattern}."
2717
+ end
2718
+
2719
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
2720
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ClustersApi.list_hosts_by_cluster_id, must be greater than or equal to 0.'
2721
+ end
2722
+
2723
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
2724
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.list_hosts_by_cluster_id, must be smaller than or equal to 100.'
2725
+ end
2726
+
2727
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2728
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.list_hosts_by_cluster_id, must be greater than or equal to 1.'
2729
+ end
2730
+
2731
+ # resource path
2732
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/hosts'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
2733
+
2734
+ # query parameters
2735
+ query_params = opts[:query_params] || {}
2736
+ query_params[:'$page'] = opts[:'page'] if !opts[:'page'].nil?
2737
+ query_params[:'$limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2738
+ query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
2739
+ query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
2740
+ query_params[:'$apply'] = opts[:'apply'] if !opts[:'apply'].nil?
2741
+ query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
2742
+
2743
+ # header parameters
2744
+ header_params = opts[:header_params] || {}
2745
+ # HTTP header 'Accept' (if needed)
2746
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2747
+
2748
+ # form parameters
2749
+ form_params = opts[:form_params] || {}
2750
+
2751
+ # http body (model)
2752
+ post_body = opts[:debug_body]
2753
+
2754
+ # return_type
2755
+ return_type = opts[:debug_return_type] || 'ListHostsByClusterId200Response'
2756
+
2757
+ # auth_names
2758
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
2759
+
2760
+ new_options = opts.merge(
2761
+ :operation => :"ClustersApi.list_hosts_by_cluster_id",
2762
+ :header_params => header_params,
2763
+ :query_params => query_params,
2764
+ :form_params => form_params,
2765
+ :body => post_body,
2766
+ :auth_names => auth_names,
2767
+ :return_type => return_type
2768
+ )
2769
+
2770
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2771
+ if @api_client.config.debugging
2772
+ @api_client.config.logger.debug "API called: ClustersApi#list_hosts_by_cluster_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2773
+ end
2774
+ return data, status_code, headers
2775
+ end
2776
+
2777
+ # List Physical GPU profiles.
2778
+ # List Physical GPU profiles.
2779
+ # @param cluster_ext_id [String] Cluster UUID.
2780
+ # @param [Hash] opts the optional parameters
2781
+ # @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
2782
+ # @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
2783
+ # @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter &#39;$filter&#x3D;name eq &#39;karbon-ntnx-1.0&#39; would filter the result on cluster name &#39;karbon-ntnx1.0&#39;, filter &#39;$filter&#x3D;startswith(name, &#39;C&#39;)&#39; would filter on cluster name starting with &#39;C&#39;. The filter can be applied to the following fields: - physicalGpuConfig/deviceId - physicalGpuConfig/deviceName - physicalGpuConfig/frameBufferSizeBytes - physicalGpuConfig/isInUse - physicalGpuConfig/type - physicalGpuConfig/vendorName
2784
+ # @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, &#39;$orderby&#x3D;templateName desc&#39; would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - physicalGpuConfig/deviceId - physicalGpuConfig/frameBufferSizeBytes
2785
+ # @return [ListPhysicalGpuProfiles200Response]
2786
+ def list_physical_gpu_profiles(cluster_ext_id, opts = {})
2787
+ data, _status_code, _headers = list_physical_gpu_profiles_with_http_info(cluster_ext_id, opts)
2788
+ data
2789
+ end
2790
+
2791
+ # List Physical GPU profiles.
2792
+ # List Physical GPU profiles.
2793
+ # @param cluster_ext_id [String] Cluster UUID.
2794
+ # @param [Hash] opts the optional parameters
2795
+ # @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
2796
+ # @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
2797
+ # @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter &#39;$filter&#x3D;name eq &#39;karbon-ntnx-1.0&#39; would filter the result on cluster name &#39;karbon-ntnx1.0&#39;, filter &#39;$filter&#x3D;startswith(name, &#39;C&#39;)&#39; would filter on cluster name starting with &#39;C&#39;. The filter can be applied to the following fields: - physicalGpuConfig/deviceId - physicalGpuConfig/deviceName - physicalGpuConfig/frameBufferSizeBytes - physicalGpuConfig/isInUse - physicalGpuConfig/type - physicalGpuConfig/vendorName
2798
+ # @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, &#39;$orderby&#x3D;templateName desc&#39; would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - physicalGpuConfig/deviceId - physicalGpuConfig/frameBufferSizeBytes
2799
+ # @return [Array<(ListPhysicalGpuProfiles200Response, Integer, Hash)>] ListPhysicalGpuProfiles200Response data, response status code and response headers
2800
+ def list_physical_gpu_profiles_with_http_info(cluster_ext_id, opts = {})
2801
+ if @api_client.config.debugging
2802
+ @api_client.config.logger.debug 'Calling API: ClustersApi.list_physical_gpu_profiles ...'
2803
+ end
2804
+ # verify the required parameter 'cluster_ext_id' is set
2805
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
2806
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.list_physical_gpu_profiles"
2807
+ end
2808
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2809
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
2810
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.list_physical_gpu_profiles, must conform to the pattern #{pattern}."
2811
+ end
2812
+
2813
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
2814
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ClustersApi.list_physical_gpu_profiles, must be greater than or equal to 0.'
2815
+ end
2816
+
2817
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
2818
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.list_physical_gpu_profiles, must be smaller than or equal to 100.'
2819
+ end
2820
+
2821
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2822
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.list_physical_gpu_profiles, must be greater than or equal to 1.'
2823
+ end
2824
+
2825
+ # resource path
2826
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/physical-gpu-profiles'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
2827
+
2828
+ # query parameters
2829
+ query_params = opts[:query_params] || {}
2830
+ query_params[:'$page'] = opts[:'page'] if !opts[:'page'].nil?
2831
+ query_params[:'$limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2832
+ query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
2833
+ query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
2834
+
2835
+ # header parameters
2836
+ header_params = opts[:header_params] || {}
2837
+ # HTTP header 'Accept' (if needed)
2838
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2839
+
2840
+ # form parameters
2841
+ form_params = opts[:form_params] || {}
2842
+
2843
+ # http body (model)
2844
+ post_body = opts[:debug_body]
2845
+
2846
+ # return_type
2847
+ return_type = opts[:debug_return_type] || 'ListPhysicalGpuProfiles200Response'
2848
+
2849
+ # auth_names
2850
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
2851
+
2852
+ new_options = opts.merge(
2853
+ :operation => :"ClustersApi.list_physical_gpu_profiles",
2854
+ :header_params => header_params,
2855
+ :query_params => query_params,
2856
+ :form_params => form_params,
2857
+ :body => post_body,
2858
+ :auth_names => auth_names,
2859
+ :return_type => return_type
2860
+ )
2861
+
2862
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2863
+ if @api_client.config.debugging
2864
+ @api_client.config.logger.debug "API called: ClustersApi#list_physical_gpu_profiles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2865
+ end
2866
+ return data, status_code, headers
2867
+ end
2868
+
2869
+ # Get the list of rackable units
2870
+ # Lists the rackable units of the cluster identified by {clusterExtId}.
2871
+ # @param cluster_ext_id [String] Cluster UUID.
2872
+ # @param [Hash] opts the optional parameters
2873
+ # @return [ListRackableUnitsByClusterId200Response]
2874
+ def list_rackable_units_by_cluster_id(cluster_ext_id, opts = {})
2875
+ data, _status_code, _headers = list_rackable_units_by_cluster_id_with_http_info(cluster_ext_id, opts)
2876
+ data
2877
+ end
2878
+
2879
+ # Get the list of rackable units
2880
+ # Lists the rackable units of the cluster identified by {clusterExtId}.
2881
+ # @param cluster_ext_id [String] Cluster UUID.
2882
+ # @param [Hash] opts the optional parameters
2883
+ # @return [Array<(ListRackableUnitsByClusterId200Response, Integer, Hash)>] ListRackableUnitsByClusterId200Response data, response status code and response headers
2884
+ def list_rackable_units_by_cluster_id_with_http_info(cluster_ext_id, opts = {})
2885
+ if @api_client.config.debugging
2886
+ @api_client.config.logger.debug 'Calling API: ClustersApi.list_rackable_units_by_cluster_id ...'
2887
+ end
2888
+ # verify the required parameter 'cluster_ext_id' is set
2889
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
2890
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.list_rackable_units_by_cluster_id"
2891
+ end
2892
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2893
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
2894
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.list_rackable_units_by_cluster_id, must conform to the pattern #{pattern}."
2895
+ end
2896
+
2897
+ # resource path
2898
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/rackable-units'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
2899
+
2900
+ # query parameters
2901
+ query_params = opts[:query_params] || {}
2902
+
2903
+ # header parameters
2904
+ header_params = opts[:header_params] || {}
2905
+ # HTTP header 'Accept' (if needed)
2906
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2907
+
2908
+ # form parameters
2909
+ form_params = opts[:form_params] || {}
2910
+
2911
+ # http body (model)
2912
+ post_body = opts[:debug_body]
2913
+
2914
+ # return_type
2915
+ return_type = opts[:debug_return_type] || 'ListRackableUnitsByClusterId200Response'
2916
+
2917
+ # auth_names
2918
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
2919
+
2920
+ new_options = opts.merge(
2921
+ :operation => :"ClustersApi.list_rackable_units_by_cluster_id",
2922
+ :header_params => header_params,
2923
+ :query_params => query_params,
2924
+ :form_params => form_params,
2925
+ :body => post_body,
2926
+ :auth_names => auth_names,
2927
+ :return_type => return_type
2928
+ )
2929
+
2930
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2931
+ if @api_client.config.debugging
2932
+ @api_client.config.logger.debug "API called: ClustersApi#list_rackable_units_by_cluster_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2933
+ end
2934
+ return data, status_code, headers
2935
+ end
2936
+
2937
+ # Get the list of RSYSLOG server configurations
2938
+ # Lists the RSYSLOG server configurations associated with the cluster identified by {clusterExtId}.
2939
+ # @param cluster_ext_id [String] Cluster UUID.
2940
+ # @param [Hash] opts the optional parameters
2941
+ # @return [ListRsyslogServersByClusterId200Response]
2942
+ def list_rsyslog_servers_by_cluster_id(cluster_ext_id, opts = {})
2943
+ data, _status_code, _headers = list_rsyslog_servers_by_cluster_id_with_http_info(cluster_ext_id, opts)
2944
+ data
2945
+ end
2946
+
2947
+ # Get the list of RSYSLOG server configurations
2948
+ # Lists the RSYSLOG server configurations associated with the cluster identified by {clusterExtId}.
2949
+ # @param cluster_ext_id [String] Cluster UUID.
2950
+ # @param [Hash] opts the optional parameters
2951
+ # @return [Array<(ListRsyslogServersByClusterId200Response, Integer, Hash)>] ListRsyslogServersByClusterId200Response data, response status code and response headers
2952
+ def list_rsyslog_servers_by_cluster_id_with_http_info(cluster_ext_id, opts = {})
2953
+ if @api_client.config.debugging
2954
+ @api_client.config.logger.debug 'Calling API: ClustersApi.list_rsyslog_servers_by_cluster_id ...'
2955
+ end
2956
+ # verify the required parameter 'cluster_ext_id' is set
2957
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
2958
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.list_rsyslog_servers_by_cluster_id"
2959
+ end
2960
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
2961
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
2962
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.list_rsyslog_servers_by_cluster_id, must conform to the pattern #{pattern}."
2963
+ end
2964
+
2965
+ # resource path
2966
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/rsyslog-servers'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
2967
+
2968
+ # query parameters
2969
+ query_params = opts[:query_params] || {}
2970
+
2971
+ # header parameters
2972
+ header_params = opts[:header_params] || {}
2973
+ # HTTP header 'Accept' (if needed)
2974
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2975
+
2976
+ # form parameters
2977
+ form_params = opts[:form_params] || {}
2978
+
2979
+ # http body (model)
2980
+ post_body = opts[:debug_body]
2981
+
2982
+ # return_type
2983
+ return_type = opts[:debug_return_type] || 'ListRsyslogServersByClusterId200Response'
2984
+
2985
+ # auth_names
2986
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
2987
+
2988
+ new_options = opts.merge(
2989
+ :operation => :"ClustersApi.list_rsyslog_servers_by_cluster_id",
2990
+ :header_params => header_params,
2991
+ :query_params => query_params,
2992
+ :form_params => form_params,
2993
+ :body => post_body,
2994
+ :auth_names => auth_names,
2995
+ :return_type => return_type
2996
+ )
2997
+
2998
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2999
+ if @api_client.config.debugging
3000
+ @api_client.config.logger.debug "API called: ClustersApi#list_rsyslog_servers_by_cluster_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3001
+ end
3002
+ return data, status_code, headers
3003
+ end
3004
+
3005
+ # List Virtual GPU profiles.
3006
+ # List Virtual GPU profiles.
3007
+ # @param cluster_ext_id [String] Cluster UUID.
3008
+ # @param [Hash] opts the optional parameters
3009
+ # @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
3010
+ # @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
3011
+ # @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter &#39;$filter&#x3D;name eq &#39;karbon-ntnx-1.0&#39; would filter the result on cluster name &#39;karbon-ntnx1.0&#39;, filter &#39;$filter&#x3D;startswith(name, &#39;C&#39;)&#39; would filter on cluster name starting with &#39;C&#39;. The filter can be applied to the following fields: - virtualGpuConfig/deviceId - virtualGpuConfig/deviceName - virtualGpuConfig/frameBufferSizeBytes - virtualGpuConfig/isInUse - virtualGpuConfig/maxInstancesPerVm - virtualGpuConfig/type - virtualGpuConfig/vendorName
3012
+ # @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, &#39;$orderby&#x3D;templateName desc&#39; would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - virtualGpuConfig/deviceId - virtualGpuConfig/frameBufferSizeBytes
3013
+ # @return [ListVirtualGpuProfiles200Response]
3014
+ def list_virtual_gpu_profiles(cluster_ext_id, opts = {})
3015
+ data, _status_code, _headers = list_virtual_gpu_profiles_with_http_info(cluster_ext_id, opts)
3016
+ data
3017
+ end
3018
+
3019
+ # List Virtual GPU profiles.
3020
+ # List Virtual GPU profiles.
3021
+ # @param cluster_ext_id [String] Cluster UUID.
3022
+ # @param [Hash] opts the optional parameters
3023
+ # @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
3024
+ # @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
3025
+ # @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter &#39;$filter&#x3D;name eq &#39;karbon-ntnx-1.0&#39; would filter the result on cluster name &#39;karbon-ntnx1.0&#39;, filter &#39;$filter&#x3D;startswith(name, &#39;C&#39;)&#39; would filter on cluster name starting with &#39;C&#39;. The filter can be applied to the following fields: - virtualGpuConfig/deviceId - virtualGpuConfig/deviceName - virtualGpuConfig/frameBufferSizeBytes - virtualGpuConfig/isInUse - virtualGpuConfig/maxInstancesPerVm - virtualGpuConfig/type - virtualGpuConfig/vendorName
3026
+ # @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, &#39;$orderby&#x3D;templateName desc&#39; would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - virtualGpuConfig/deviceId - virtualGpuConfig/frameBufferSizeBytes
3027
+ # @return [Array<(ListVirtualGpuProfiles200Response, Integer, Hash)>] ListVirtualGpuProfiles200Response data, response status code and response headers
3028
+ def list_virtual_gpu_profiles_with_http_info(cluster_ext_id, opts = {})
3029
+ if @api_client.config.debugging
3030
+ @api_client.config.logger.debug 'Calling API: ClustersApi.list_virtual_gpu_profiles ...'
3031
+ end
3032
+ # verify the required parameter 'cluster_ext_id' is set
3033
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
3034
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.list_virtual_gpu_profiles"
3035
+ end
3036
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
3037
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
3038
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.list_virtual_gpu_profiles, must conform to the pattern #{pattern}."
3039
+ end
3040
+
3041
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
3042
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ClustersApi.list_virtual_gpu_profiles, must be greater than or equal to 0.'
3043
+ end
3044
+
3045
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
3046
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.list_virtual_gpu_profiles, must be smaller than or equal to 100.'
3047
+ end
3048
+
3049
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
3050
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.list_virtual_gpu_profiles, must be greater than or equal to 1.'
3051
+ end
3052
+
3053
+ # resource path
3054
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/virtual-gpu-profiles'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
3055
+
3056
+ # query parameters
3057
+ query_params = opts[:query_params] || {}
3058
+ query_params[:'$page'] = opts[:'page'] if !opts[:'page'].nil?
3059
+ query_params[:'$limit'] = opts[:'limit'] if !opts[:'limit'].nil?
3060
+ query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
3061
+ query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
3062
+
3063
+ # header parameters
3064
+ header_params = opts[:header_params] || {}
3065
+ # HTTP header 'Accept' (if needed)
3066
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3067
+
3068
+ # form parameters
3069
+ form_params = opts[:form_params] || {}
3070
+
3071
+ # http body (model)
3072
+ post_body = opts[:debug_body]
3073
+
3074
+ # return_type
3075
+ return_type = opts[:debug_return_type] || 'ListVirtualGpuProfiles200Response'
3076
+
3077
+ # auth_names
3078
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
3079
+
3080
+ new_options = opts.merge(
3081
+ :operation => :"ClustersApi.list_virtual_gpu_profiles",
3082
+ :header_params => header_params,
3083
+ :query_params => query_params,
3084
+ :form_params => form_params,
3085
+ :body => post_body,
3086
+ :auth_names => auth_names,
3087
+ :return_type => return_type
3088
+ )
3089
+
3090
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3091
+ if @api_client.config.debugging
3092
+ @api_client.config.logger.debug "API called: ClustersApi#list_virtual_gpu_profiles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3093
+ end
3094
+ return data, status_code, headers
3095
+ end
3096
+
3097
+ # Get the list of virtual NICs
3098
+ # Lists all virtual NICs for the host identified by {extId} belonging to the cluster identified by {clusterExtId}.
3099
+ # @param cluster_ext_id [String] Cluster UUID.
3100
+ # @param host_ext_id [String] Host UUID.
3101
+ # @param [Hash] opts the optional parameters
3102
+ # @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
3103
+ # @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
3104
+ # @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter &#39;$filter&#x3D;name eq &#39;karbon-ntnx-1.0&#39; would filter the result on cluster name &#39;karbon-ntnx1.0&#39;, filter &#39;$filter&#x3D;startswith(name, &#39;C&#39;)&#39; would filter on cluster name starting with &#39;C&#39;. The filter can be applied to the following fields: - extId - interfaceStatus - isDhcpEnabled - linkSpeedInKbps - macAddress - mtuInBytes - name - nodeUuid - vlanId
3105
+ # @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, &#39;$orderby&#x3D;templateName desc&#39; would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - extId - name
3106
+ # @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - hostDescription - interfaceStatus - isDhcpEnabled - linkSpeedInKbps - macAddress - mtuInBytes - name - nodeUuid - vlanId
3107
+ # @return [ListVirtualNicsByHostId200Response]
3108
+ def list_virtual_nics_by_host_id(cluster_ext_id, host_ext_id, opts = {})
3109
+ data, _status_code, _headers = list_virtual_nics_by_host_id_with_http_info(cluster_ext_id, host_ext_id, opts)
3110
+ data
3111
+ end
3112
+
3113
+ # Get the list of virtual NICs
3114
+ # Lists all virtual NICs for the host identified by {extId} belonging to the cluster identified by {clusterExtId}.
3115
+ # @param cluster_ext_id [String] Cluster UUID.
3116
+ # @param host_ext_id [String] Host UUID.
3117
+ # @param [Hash] opts the optional parameters
3118
+ # @option opts [Integer] :page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. (default to 0)
3119
+ # @option opts [Integer] :limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. (default to 50)
3120
+ # @option opts [String] :filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. For example, filter &#39;$filter&#x3D;name eq &#39;karbon-ntnx-1.0&#39; would filter the result on cluster name &#39;karbon-ntnx1.0&#39;, filter &#39;$filter&#x3D;startswith(name, &#39;C&#39;)&#39; would filter on cluster name starting with &#39;C&#39;. The filter can be applied to the following fields: - extId - interfaceStatus - isDhcpEnabled - linkSpeedInKbps - macAddress - mtuInBytes - name - nodeUuid - vlanId
3121
+ # @option opts [String] :orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, &#39;$orderby&#x3D;templateName desc&#39; would get all templates sorted by templateName in descending order. The orderby can be applied to the following fields: - extId - name
3122
+ # @option opts [String] :select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. - hostDescription - interfaceStatus - isDhcpEnabled - linkSpeedInKbps - macAddress - mtuInBytes - name - nodeUuid - vlanId
3123
+ # @return [Array<(ListVirtualNicsByHostId200Response, Integer, Hash)>] ListVirtualNicsByHostId200Response data, response status code and response headers
3124
+ def list_virtual_nics_by_host_id_with_http_info(cluster_ext_id, host_ext_id, opts = {})
3125
+ if @api_client.config.debugging
3126
+ @api_client.config.logger.debug 'Calling API: ClustersApi.list_virtual_nics_by_host_id ...'
3127
+ end
3128
+ # verify the required parameter 'cluster_ext_id' is set
3129
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
3130
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.list_virtual_nics_by_host_id"
3131
+ end
3132
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
3133
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
3134
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.list_virtual_nics_by_host_id, must conform to the pattern #{pattern}."
3135
+ end
3136
+
3137
+ # verify the required parameter 'host_ext_id' is set
3138
+ if @api_client.config.client_side_validation && host_ext_id.nil?
3139
+ fail ArgumentError, "Missing the required parameter 'host_ext_id' when calling ClustersApi.list_virtual_nics_by_host_id"
3140
+ end
3141
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
3142
+ if @api_client.config.client_side_validation && host_ext_id !~ pattern
3143
+ fail ArgumentError, "invalid value for 'host_ext_id' when calling ClustersApi.list_virtual_nics_by_host_id, must conform to the pattern #{pattern}."
3144
+ end
3145
+
3146
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
3147
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ClustersApi.list_virtual_nics_by_host_id, must be greater than or equal to 0.'
3148
+ end
3149
+
3150
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
3151
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.list_virtual_nics_by_host_id, must be smaller than or equal to 100.'
3152
+ end
3153
+
3154
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
3155
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.list_virtual_nics_by_host_id, must be greater than or equal to 1.'
3156
+ end
3157
+
3158
+ # resource path
3159
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/hosts/{hostExtId}/virtual-nics'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'hostExtId' + '}', CGI.escape(host_ext_id.to_s))
3160
+
3161
+ # query parameters
3162
+ query_params = opts[:query_params] || {}
3163
+ query_params[:'$page'] = opts[:'page'] if !opts[:'page'].nil?
3164
+ query_params[:'$limit'] = opts[:'limit'] if !opts[:'limit'].nil?
3165
+ query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
3166
+ query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
3167
+ query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
3168
+
3169
+ # header parameters
3170
+ header_params = opts[:header_params] || {}
3171
+ # HTTP header 'Accept' (if needed)
3172
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3173
+
3174
+ # form parameters
3175
+ form_params = opts[:form_params] || {}
3176
+
3177
+ # http body (model)
3178
+ post_body = opts[:debug_body]
3179
+
3180
+ # return_type
3181
+ return_type = opts[:debug_return_type] || 'ListVirtualNicsByHostId200Response'
3182
+
3183
+ # auth_names
3184
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
3185
+
3186
+ new_options = opts.merge(
3187
+ :operation => :"ClustersApi.list_virtual_nics_by_host_id",
3188
+ :header_params => header_params,
3189
+ :query_params => query_params,
3190
+ :form_params => form_params,
3191
+ :body => post_body,
3192
+ :auth_names => auth_names,
3193
+ :return_type => return_type
3194
+ )
3195
+
3196
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3197
+ if @api_client.config.debugging
3198
+ @api_client.config.logger.debug "API called: ClustersApi#list_virtual_nics_by_host_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3199
+ end
3200
+ return data, status_code, headers
3201
+ end
3202
+
3203
+ # Remove nodes from the cluster
3204
+ # Removes nodes from cluster identified by {extId}.
3205
+ # @param cluster_ext_id [String] Cluster UUID.
3206
+ # @param ntnx_request_id [String] A unique identifier that is associated with each request. The provided value must be opaque and preferably in Universal Unique Identifier (UUID) format. This identifier is also used as an idempotence token for safely retrying requests in case of network errors. All the supported Nutanix API clients add this auto-generated request identifier to each request.
3207
+ # @param clustermgmt_v40_config_node_removal_params [ClustermgmtV40ConfigNodeRemovalParams] Parameters to remove nodes from cluster.
3208
+ # @param [Hash] opts the optional parameters
3209
+ # @return [RemoveNode202Response]
3210
+ def remove_node(cluster_ext_id, ntnx_request_id, clustermgmt_v40_config_node_removal_params, opts = {})
3211
+ data, _status_code, _headers = remove_node_with_http_info(cluster_ext_id, ntnx_request_id, clustermgmt_v40_config_node_removal_params, opts)
3212
+ data
3213
+ end
3214
+
3215
+ # Remove nodes from the cluster
3216
+ # Removes nodes from cluster identified by {extId}.
3217
+ # @param cluster_ext_id [String] Cluster UUID.
3218
+ # @param ntnx_request_id [String] A unique identifier that is associated with each request. The provided value must be opaque and preferably in Universal Unique Identifier (UUID) format. This identifier is also used as an idempotence token for safely retrying requests in case of network errors. All the supported Nutanix API clients add this auto-generated request identifier to each request.
3219
+ # @param clustermgmt_v40_config_node_removal_params [ClustermgmtV40ConfigNodeRemovalParams] Parameters to remove nodes from cluster.
3220
+ # @param [Hash] opts the optional parameters
3221
+ # @return [Array<(RemoveNode202Response, Integer, Hash)>] RemoveNode202Response data, response status code and response headers
3222
+ def remove_node_with_http_info(cluster_ext_id, ntnx_request_id, clustermgmt_v40_config_node_removal_params, opts = {})
3223
+ if @api_client.config.debugging
3224
+ @api_client.config.logger.debug 'Calling API: ClustersApi.remove_node ...'
3225
+ end
3226
+ # verify the required parameter 'cluster_ext_id' is set
3227
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
3228
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.remove_node"
3229
+ end
3230
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
3231
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
3232
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.remove_node, must conform to the pattern #{pattern}."
3233
+ end
3234
+
3235
+ # verify the required parameter 'ntnx_request_id' is set
3236
+ if @api_client.config.client_side_validation && ntnx_request_id.nil?
3237
+ fail ArgumentError, "Missing the required parameter 'ntnx_request_id' when calling ClustersApi.remove_node"
3238
+ end
3239
+ # verify the required parameter 'clustermgmt_v40_config_node_removal_params' is set
3240
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_node_removal_params.nil?
3241
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_node_removal_params' when calling ClustersApi.remove_node"
3242
+ end
3243
+ # resource path
3244
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/$actions/remove-node'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
3245
+
3246
+ # query parameters
3247
+ query_params = opts[:query_params] || {}
3248
+
3249
+ # header parameters
3250
+ header_params = opts[:header_params] || {}
3251
+ # HTTP header 'Accept' (if needed)
3252
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3253
+ # HTTP header 'Content-Type'
3254
+ content_type = @api_client.select_header_content_type(['application/json'])
3255
+ if !content_type.nil?
3256
+ header_params['Content-Type'] = content_type
3257
+ end
3258
+ header_params[:'NTNX-Request-Id'] = ntnx_request_id
3259
+
3260
+ # form parameters
3261
+ form_params = opts[:form_params] || {}
3262
+
3263
+ # http body (model)
3264
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_node_removal_params)
3265
+
3266
+ # return_type
3267
+ return_type = opts[:debug_return_type] || 'RemoveNode202Response'
3268
+
3269
+ # auth_names
3270
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
3271
+
3272
+ new_options = opts.merge(
3273
+ :operation => :"ClustersApi.remove_node",
3274
+ :header_params => header_params,
3275
+ :query_params => query_params,
3276
+ :form_params => form_params,
3277
+ :body => post_body,
3278
+ :auth_names => auth_names,
3279
+ :return_type => return_type
3280
+ )
3281
+
3282
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3283
+ if @api_client.config.debugging
3284
+ @api_client.config.logger.debug "API called: ClustersApi#remove_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3285
+ end
3286
+ return data, status_code, headers
3287
+ end
3288
+
3289
+ # Remove SNMP transport ports and protocol details
3290
+ # Removes transport ports and protocol detail from the SNMP configuration associated with the cluster identified by {clusterExtId}.
3291
+ # @param cluster_ext_id [String] Cluster UUID.
3292
+ # @param clustermgmt_v40_config_snmp_transport [ClustermgmtV40ConfigSnmpTransport] SNMP transports to remove.
3293
+ # @param [Hash] opts the optional parameters
3294
+ # @return [RemoveSnmpTransport202Response]
3295
+ def remove_snmp_transport(cluster_ext_id, clustermgmt_v40_config_snmp_transport, opts = {})
3296
+ data, _status_code, _headers = remove_snmp_transport_with_http_info(cluster_ext_id, clustermgmt_v40_config_snmp_transport, opts)
3297
+ data
3298
+ end
3299
+
3300
+ # Remove SNMP transport ports and protocol details
3301
+ # Removes transport ports and protocol detail from the SNMP configuration associated with the cluster identified by {clusterExtId}.
3302
+ # @param cluster_ext_id [String] Cluster UUID.
3303
+ # @param clustermgmt_v40_config_snmp_transport [ClustermgmtV40ConfigSnmpTransport] SNMP transports to remove.
3304
+ # @param [Hash] opts the optional parameters
3305
+ # @return [Array<(RemoveSnmpTransport202Response, Integer, Hash)>] RemoveSnmpTransport202Response data, response status code and response headers
3306
+ def remove_snmp_transport_with_http_info(cluster_ext_id, clustermgmt_v40_config_snmp_transport, opts = {})
3307
+ if @api_client.config.debugging
3308
+ @api_client.config.logger.debug 'Calling API: ClustersApi.remove_snmp_transport ...'
3309
+ end
3310
+ # verify the required parameter 'cluster_ext_id' is set
3311
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
3312
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.remove_snmp_transport"
3313
+ end
3314
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
3315
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
3316
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.remove_snmp_transport, must conform to the pattern #{pattern}."
3317
+ end
3318
+
3319
+ # verify the required parameter 'clustermgmt_v40_config_snmp_transport' is set
3320
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_snmp_transport.nil?
3321
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_snmp_transport' when calling ClustersApi.remove_snmp_transport"
3322
+ end
3323
+ # resource path
3324
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/snmp/$actions/remove-transports'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
3325
+
3326
+ # query parameters
3327
+ query_params = opts[:query_params] || {}
3328
+
3329
+ # header parameters
3330
+ header_params = opts[:header_params] || {}
3331
+ # HTTP header 'Accept' (if needed)
3332
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3333
+ # HTTP header 'Content-Type'
3334
+ content_type = @api_client.select_header_content_type(['application/json'])
3335
+ if !content_type.nil?
3336
+ header_params['Content-Type'] = content_type
3337
+ end
3338
+
3339
+ # form parameters
3340
+ form_params = opts[:form_params] || {}
3341
+
3342
+ # http body (model)
3343
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_snmp_transport)
3344
+
3345
+ # return_type
3346
+ return_type = opts[:debug_return_type] || 'RemoveSnmpTransport202Response'
3347
+
3348
+ # auth_names
3349
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
3350
+
3351
+ new_options = opts.merge(
3352
+ :operation => :"ClustersApi.remove_snmp_transport",
3353
+ :header_params => header_params,
3354
+ :query_params => query_params,
3355
+ :form_params => form_params,
3356
+ :body => post_body,
3357
+ :auth_names => auth_names,
3358
+ :return_type => return_type
3359
+ )
3360
+
3361
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3362
+ if @api_client.config.debugging
3363
+ @api_client.config.logger.debug "API called: ClustersApi#remove_snmp_transport\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3364
+ end
3365
+ return data, status_code, headers
3366
+ end
3367
+
3368
+ # Update cluster
3369
+ # Update cluster operation.
3370
+ # @param ext_id [String] Cluster UUID.
3371
+ # @param if_match [String] The If-Match request header makes the request conditional. When not provided, the server will respond with an HTTP-428 (Precondition Required) response code indicating that the server requires the request to be conditional. The server will allow the successful completion of PUT and PATCH operations, if the resource matches the ETag value returned to the response of a GET operation. If the conditional does not match, then an HTTP-412 (Precondition Failed) response will be returned.
3372
+ # @param clustermgmt_v40_config_cluster [ClustermgmtV40ConfigCluster] Cluster resource to update.
3373
+ # @param [Hash] opts the optional parameters
3374
+ # @return [UpdateClusterById202Response]
3375
+ def update_cluster_by_id(ext_id, if_match, clustermgmt_v40_config_cluster, opts = {})
3376
+ data, _status_code, _headers = update_cluster_by_id_with_http_info(ext_id, if_match, clustermgmt_v40_config_cluster, opts)
3377
+ data
3378
+ end
3379
+
3380
+ # Update cluster
3381
+ # Update cluster operation.
3382
+ # @param ext_id [String] Cluster UUID.
3383
+ # @param if_match [String] The If-Match request header makes the request conditional. When not provided, the server will respond with an HTTP-428 (Precondition Required) response code indicating that the server requires the request to be conditional. The server will allow the successful completion of PUT and PATCH operations, if the resource matches the ETag value returned to the response of a GET operation. If the conditional does not match, then an HTTP-412 (Precondition Failed) response will be returned.
3384
+ # @param clustermgmt_v40_config_cluster [ClustermgmtV40ConfigCluster] Cluster resource to update.
3385
+ # @param [Hash] opts the optional parameters
3386
+ # @return [Array<(UpdateClusterById202Response, Integer, Hash)>] UpdateClusterById202Response data, response status code and response headers
3387
+ def update_cluster_by_id_with_http_info(ext_id, if_match, clustermgmt_v40_config_cluster, opts = {})
3388
+ if @api_client.config.debugging
3389
+ @api_client.config.logger.debug 'Calling API: ClustersApi.update_cluster_by_id ...'
3390
+ end
3391
+ # verify the required parameter 'ext_id' is set
3392
+ if @api_client.config.client_side_validation && ext_id.nil?
3393
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.update_cluster_by_id"
3394
+ end
3395
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
3396
+ if @api_client.config.client_side_validation && ext_id !~ pattern
3397
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.update_cluster_by_id, must conform to the pattern #{pattern}."
3398
+ end
3399
+
3400
+ # verify the required parameter 'if_match' is set
3401
+ if @api_client.config.client_side_validation && if_match.nil?
3402
+ fail ArgumentError, "Missing the required parameter 'if_match' when calling ClustersApi.update_cluster_by_id"
3403
+ end
3404
+ # verify the required parameter 'clustermgmt_v40_config_cluster' is set
3405
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_cluster.nil?
3406
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_cluster' when calling ClustersApi.update_cluster_by_id"
3407
+ end
3408
+ # resource path
3409
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{extId}'.sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
3410
+
3411
+ # query parameters
3412
+ query_params = opts[:query_params] || {}
3413
+
3414
+ # header parameters
3415
+ header_params = opts[:header_params] || {}
3416
+ # HTTP header 'Accept' (if needed)
3417
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3418
+ # HTTP header 'Content-Type'
3419
+ content_type = @api_client.select_header_content_type(['application/json'])
3420
+ if !content_type.nil?
3421
+ header_params['Content-Type'] = content_type
3422
+ end
3423
+ header_params[:'If-Match'] = if_match
3424
+
3425
+ # form parameters
3426
+ form_params = opts[:form_params] || {}
3427
+
3428
+ # http body (model)
3429
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_cluster)
3430
+
3431
+ # return_type
3432
+ return_type = opts[:debug_return_type] || 'UpdateClusterById202Response'
3433
+
3434
+ # auth_names
3435
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
3436
+
3437
+ new_options = opts.merge(
3438
+ :operation => :"ClustersApi.update_cluster_by_id",
3439
+ :header_params => header_params,
3440
+ :query_params => query_params,
3441
+ :form_params => form_params,
3442
+ :body => post_body,
3443
+ :auth_names => auth_names,
3444
+ :return_type => return_type
3445
+ )
3446
+
3447
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3448
+ if @api_client.config.debugging
3449
+ @api_client.config.logger.debug "API called: ClustersApi#update_cluster_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3450
+ end
3451
+ return data, status_code, headers
3452
+ end
3453
+
3454
+ # Update RSYSLOG server configuration
3455
+ # Update RSYSLOG server configuration except RSYSLOG server name as it is a primary key of the entity.
3456
+ # @param cluster_ext_id [String] Cluster UUID.
3457
+ # @param ext_id [String] RSYSLOG server UUID.
3458
+ # @param if_match [String] The If-Match request header makes the request conditional. When not provided, the server will respond with an HTTP-428 (Precondition Required) response code indicating that the server requires the request to be conditional. The server will allow the successful completion of PUT and PATCH operations, if the resource matches the ETag value returned to the response of a GET operation. If the conditional does not match, then an HTTP-412 (Precondition Failed) response will be returned.
3459
+ # @param clustermgmt_v40_config_rsyslog_server [ClustermgmtV40ConfigRsyslogServer] RSYSLOG server to update.
3460
+ # @param [Hash] opts the optional parameters
3461
+ # @return [UpdateRsyslogServerById202Response]
3462
+ def update_rsyslog_server_by_id(cluster_ext_id, ext_id, if_match, clustermgmt_v40_config_rsyslog_server, opts = {})
3463
+ data, _status_code, _headers = update_rsyslog_server_by_id_with_http_info(cluster_ext_id, ext_id, if_match, clustermgmt_v40_config_rsyslog_server, opts)
3464
+ data
3465
+ end
3466
+
3467
+ # Update RSYSLOG server configuration
3468
+ # Update RSYSLOG server configuration except RSYSLOG server name as it is a primary key of the entity.
3469
+ # @param cluster_ext_id [String] Cluster UUID.
3470
+ # @param ext_id [String] RSYSLOG server UUID.
3471
+ # @param if_match [String] The If-Match request header makes the request conditional. When not provided, the server will respond with an HTTP-428 (Precondition Required) response code indicating that the server requires the request to be conditional. The server will allow the successful completion of PUT and PATCH operations, if the resource matches the ETag value returned to the response of a GET operation. If the conditional does not match, then an HTTP-412 (Precondition Failed) response will be returned.
3472
+ # @param clustermgmt_v40_config_rsyslog_server [ClustermgmtV40ConfigRsyslogServer] RSYSLOG server to update.
3473
+ # @param [Hash] opts the optional parameters
3474
+ # @return [Array<(UpdateRsyslogServerById202Response, Integer, Hash)>] UpdateRsyslogServerById202Response data, response status code and response headers
3475
+ def update_rsyslog_server_by_id_with_http_info(cluster_ext_id, ext_id, if_match, clustermgmt_v40_config_rsyslog_server, opts = {})
3476
+ if @api_client.config.debugging
3477
+ @api_client.config.logger.debug 'Calling API: ClustersApi.update_rsyslog_server_by_id ...'
3478
+ end
3479
+ # verify the required parameter 'cluster_ext_id' is set
3480
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
3481
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.update_rsyslog_server_by_id"
3482
+ end
3483
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
3484
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
3485
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.update_rsyslog_server_by_id, must conform to the pattern #{pattern}."
3486
+ end
3487
+
3488
+ # verify the required parameter 'ext_id' is set
3489
+ if @api_client.config.client_side_validation && ext_id.nil?
3490
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.update_rsyslog_server_by_id"
3491
+ end
3492
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
3493
+ if @api_client.config.client_side_validation && ext_id !~ pattern
3494
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.update_rsyslog_server_by_id, must conform to the pattern #{pattern}."
3495
+ end
3496
+
3497
+ # verify the required parameter 'if_match' is set
3498
+ if @api_client.config.client_side_validation && if_match.nil?
3499
+ fail ArgumentError, "Missing the required parameter 'if_match' when calling ClustersApi.update_rsyslog_server_by_id"
3500
+ end
3501
+ # verify the required parameter 'clustermgmt_v40_config_rsyslog_server' is set
3502
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_rsyslog_server.nil?
3503
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_rsyslog_server' when calling ClustersApi.update_rsyslog_server_by_id"
3504
+ end
3505
+ # resource path
3506
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/rsyslog-servers/{extId}'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
3507
+
3508
+ # query parameters
3509
+ query_params = opts[:query_params] || {}
3510
+
3511
+ # header parameters
3512
+ header_params = opts[:header_params] || {}
3513
+ # HTTP header 'Accept' (if needed)
3514
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3515
+ # HTTP header 'Content-Type'
3516
+ content_type = @api_client.select_header_content_type(['application/json'])
3517
+ if !content_type.nil?
3518
+ header_params['Content-Type'] = content_type
3519
+ end
3520
+ header_params[:'If-Match'] = if_match
3521
+
3522
+ # form parameters
3523
+ form_params = opts[:form_params] || {}
3524
+
3525
+ # http body (model)
3526
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_rsyslog_server)
3527
+
3528
+ # return_type
3529
+ return_type = opts[:debug_return_type] || 'UpdateRsyslogServerById202Response'
3530
+
3531
+ # auth_names
3532
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
3533
+
3534
+ new_options = opts.merge(
3535
+ :operation => :"ClustersApi.update_rsyslog_server_by_id",
3536
+ :header_params => header_params,
3537
+ :query_params => query_params,
3538
+ :form_params => form_params,
3539
+ :body => post_body,
3540
+ :auth_names => auth_names,
3541
+ :return_type => return_type
3542
+ )
3543
+
3544
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3545
+ if @api_client.config.debugging
3546
+ @api_client.config.logger.debug "API called: ClustersApi#update_rsyslog_server_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3547
+ end
3548
+ return data, status_code, headers
3549
+ end
3550
+
3551
+ # Update SNMP status
3552
+ # Updates the status of SNMP configuration associated with the cluster identified by {clusterExtId}.
3553
+ # @param cluster_ext_id [String] Cluster UUID.
3554
+ # @param clustermgmt_v40_config_snmp_status_param [ClustermgmtV40ConfigSnmpStatusParam] SNMP status.
3555
+ # @param [Hash] opts the optional parameters
3556
+ # @return [UpdateSnmpStatus202Response]
3557
+ def update_snmp_status(cluster_ext_id, clustermgmt_v40_config_snmp_status_param, opts = {})
3558
+ data, _status_code, _headers = update_snmp_status_with_http_info(cluster_ext_id, clustermgmt_v40_config_snmp_status_param, opts)
3559
+ data
3560
+ end
3561
+
3562
+ # Update SNMP status
3563
+ # Updates the status of SNMP configuration associated with the cluster identified by {clusterExtId}.
3564
+ # @param cluster_ext_id [String] Cluster UUID.
3565
+ # @param clustermgmt_v40_config_snmp_status_param [ClustermgmtV40ConfigSnmpStatusParam] SNMP status.
3566
+ # @param [Hash] opts the optional parameters
3567
+ # @return [Array<(UpdateSnmpStatus202Response, Integer, Hash)>] UpdateSnmpStatus202Response data, response status code and response headers
3568
+ def update_snmp_status_with_http_info(cluster_ext_id, clustermgmt_v40_config_snmp_status_param, opts = {})
3569
+ if @api_client.config.debugging
3570
+ @api_client.config.logger.debug 'Calling API: ClustersApi.update_snmp_status ...'
3571
+ end
3572
+ # verify the required parameter 'cluster_ext_id' is set
3573
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
3574
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.update_snmp_status"
3575
+ end
3576
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
3577
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
3578
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.update_snmp_status, must conform to the pattern #{pattern}."
3579
+ end
3580
+
3581
+ # verify the required parameter 'clustermgmt_v40_config_snmp_status_param' is set
3582
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_snmp_status_param.nil?
3583
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_snmp_status_param' when calling ClustersApi.update_snmp_status"
3584
+ end
3585
+ # resource path
3586
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/snmp/$actions/update-status'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
3587
+
3588
+ # query parameters
3589
+ query_params = opts[:query_params] || {}
3590
+
3591
+ # header parameters
3592
+ header_params = opts[:header_params] || {}
3593
+ # HTTP header 'Accept' (if needed)
3594
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3595
+ # HTTP header 'Content-Type'
3596
+ content_type = @api_client.select_header_content_type(['application/json'])
3597
+ if !content_type.nil?
3598
+ header_params['Content-Type'] = content_type
3599
+ end
3600
+
3601
+ # form parameters
3602
+ form_params = opts[:form_params] || {}
3603
+
3604
+ # http body (model)
3605
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_snmp_status_param)
3606
+
3607
+ # return_type
3608
+ return_type = opts[:debug_return_type] || 'UpdateSnmpStatus202Response'
3609
+
3610
+ # auth_names
3611
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
3612
+
3613
+ new_options = opts.merge(
3614
+ :operation => :"ClustersApi.update_snmp_status",
3615
+ :header_params => header_params,
3616
+ :query_params => query_params,
3617
+ :form_params => form_params,
3618
+ :body => post_body,
3619
+ :auth_names => auth_names,
3620
+ :return_type => return_type
3621
+ )
3622
+
3623
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3624
+ if @api_client.config.debugging
3625
+ @api_client.config.logger.debug "API called: ClustersApi#update_snmp_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3626
+ end
3627
+ return data, status_code, headers
3628
+ end
3629
+
3630
+ # Update SNMP trap
3631
+ # Update SNMP trap configuration identified by {extId} associated with the cluster identified by {clusterExtId}.
3632
+ # @param cluster_ext_id [String] Cluster UUID.
3633
+ # @param ext_id [String] SNMP trap UUID.
3634
+ # @param if_match [String] The If-Match request header makes the request conditional. When not provided, the server will respond with an HTTP-428 (Precondition Required) response code indicating that the server requires the request to be conditional. The server will allow the successful completion of PUT and PATCH operations, if the resource matches the ETag value returned to the response of a GET operation. If the conditional does not match, then an HTTP-412 (Precondition Failed) response will be returned.
3635
+ # @param clustermgmt_v40_config_snmp_trap [ClustermgmtV40ConfigSnmpTrap] SNMP trap to update.
3636
+ # @param [Hash] opts the optional parameters
3637
+ # @return [UpdateSnmpTrapById202Response]
3638
+ def update_snmp_trap_by_id(cluster_ext_id, ext_id, if_match, clustermgmt_v40_config_snmp_trap, opts = {})
3639
+ data, _status_code, _headers = update_snmp_trap_by_id_with_http_info(cluster_ext_id, ext_id, if_match, clustermgmt_v40_config_snmp_trap, opts)
3640
+ data
3641
+ end
3642
+
3643
+ # Update SNMP trap
3644
+ # Update SNMP trap configuration identified by {extId} associated with the cluster identified by {clusterExtId}.
3645
+ # @param cluster_ext_id [String] Cluster UUID.
3646
+ # @param ext_id [String] SNMP trap UUID.
3647
+ # @param if_match [String] The If-Match request header makes the request conditional. When not provided, the server will respond with an HTTP-428 (Precondition Required) response code indicating that the server requires the request to be conditional. The server will allow the successful completion of PUT and PATCH operations, if the resource matches the ETag value returned to the response of a GET operation. If the conditional does not match, then an HTTP-412 (Precondition Failed) response will be returned.
3648
+ # @param clustermgmt_v40_config_snmp_trap [ClustermgmtV40ConfigSnmpTrap] SNMP trap to update.
3649
+ # @param [Hash] opts the optional parameters
3650
+ # @return [Array<(UpdateSnmpTrapById202Response, Integer, Hash)>] UpdateSnmpTrapById202Response data, response status code and response headers
3651
+ def update_snmp_trap_by_id_with_http_info(cluster_ext_id, ext_id, if_match, clustermgmt_v40_config_snmp_trap, opts = {})
3652
+ if @api_client.config.debugging
3653
+ @api_client.config.logger.debug 'Calling API: ClustersApi.update_snmp_trap_by_id ...'
3654
+ end
3655
+ # verify the required parameter 'cluster_ext_id' is set
3656
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
3657
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.update_snmp_trap_by_id"
3658
+ end
3659
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
3660
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
3661
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.update_snmp_trap_by_id, must conform to the pattern #{pattern}."
3662
+ end
3663
+
3664
+ # verify the required parameter 'ext_id' is set
3665
+ if @api_client.config.client_side_validation && ext_id.nil?
3666
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.update_snmp_trap_by_id"
3667
+ end
3668
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
3669
+ if @api_client.config.client_side_validation && ext_id !~ pattern
3670
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.update_snmp_trap_by_id, must conform to the pattern #{pattern}."
3671
+ end
3672
+
3673
+ # verify the required parameter 'if_match' is set
3674
+ if @api_client.config.client_side_validation && if_match.nil?
3675
+ fail ArgumentError, "Missing the required parameter 'if_match' when calling ClustersApi.update_snmp_trap_by_id"
3676
+ end
3677
+ # verify the required parameter 'clustermgmt_v40_config_snmp_trap' is set
3678
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_snmp_trap.nil?
3679
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_snmp_trap' when calling ClustersApi.update_snmp_trap_by_id"
3680
+ end
3681
+ # resource path
3682
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/snmp/traps/{extId}'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
3683
+
3684
+ # query parameters
3685
+ query_params = opts[:query_params] || {}
3686
+
3687
+ # header parameters
3688
+ header_params = opts[:header_params] || {}
3689
+ # HTTP header 'Accept' (if needed)
3690
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3691
+ # HTTP header 'Content-Type'
3692
+ content_type = @api_client.select_header_content_type(['application/json'])
3693
+ if !content_type.nil?
3694
+ header_params['Content-Type'] = content_type
3695
+ end
3696
+ header_params[:'If-Match'] = if_match
3697
+
3698
+ # form parameters
3699
+ form_params = opts[:form_params] || {}
3700
+
3701
+ # http body (model)
3702
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_snmp_trap)
3703
+
3704
+ # return_type
3705
+ return_type = opts[:debug_return_type] || 'UpdateSnmpTrapById202Response'
3706
+
3707
+ # auth_names
3708
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
3709
+
3710
+ new_options = opts.merge(
3711
+ :operation => :"ClustersApi.update_snmp_trap_by_id",
3712
+ :header_params => header_params,
3713
+ :query_params => query_params,
3714
+ :form_params => form_params,
3715
+ :body => post_body,
3716
+ :auth_names => auth_names,
3717
+ :return_type => return_type
3718
+ )
3719
+
3720
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3721
+ if @api_client.config.debugging
3722
+ @api_client.config.logger.debug "API called: ClustersApi#update_snmp_trap_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3723
+ end
3724
+ return data, status_code, headers
3725
+ end
3726
+
3727
+ # Update SNMP user
3728
+ # Updates SNMP user configuration identified by {extId} associated with the cluster identified by {clusterExtId}.
3729
+ # @param cluster_ext_id [String] Cluster UUID.
3730
+ # @param ext_id [String] SNMP user UUID.
3731
+ # @param if_match [String] The If-Match request header makes the request conditional. When not provided, the server will respond with an HTTP-428 (Precondition Required) response code indicating that the server requires the request to be conditional. The server will allow the successful completion of PUT and PATCH operations, if the resource matches the ETag value returned to the response of a GET operation. If the conditional does not match, then an HTTP-412 (Precondition Failed) response will be returned.
3732
+ # @param clustermgmt_v40_config_snmp_user [ClustermgmtV40ConfigSnmpUser] SNMP user to update.
3733
+ # @param [Hash] opts the optional parameters
3734
+ # @return [UpdateSnmpUserById202Response]
3735
+ def update_snmp_user_by_id(cluster_ext_id, ext_id, if_match, clustermgmt_v40_config_snmp_user, opts = {})
3736
+ data, _status_code, _headers = update_snmp_user_by_id_with_http_info(cluster_ext_id, ext_id, if_match, clustermgmt_v40_config_snmp_user, opts)
3737
+ data
3738
+ end
3739
+
3740
+ # Update SNMP user
3741
+ # Updates SNMP user configuration identified by {extId} associated with the cluster identified by {clusterExtId}.
3742
+ # @param cluster_ext_id [String] Cluster UUID.
3743
+ # @param ext_id [String] SNMP user UUID.
3744
+ # @param if_match [String] The If-Match request header makes the request conditional. When not provided, the server will respond with an HTTP-428 (Precondition Required) response code indicating that the server requires the request to be conditional. The server will allow the successful completion of PUT and PATCH operations, if the resource matches the ETag value returned to the response of a GET operation. If the conditional does not match, then an HTTP-412 (Precondition Failed) response will be returned.
3745
+ # @param clustermgmt_v40_config_snmp_user [ClustermgmtV40ConfigSnmpUser] SNMP user to update.
3746
+ # @param [Hash] opts the optional parameters
3747
+ # @return [Array<(UpdateSnmpUserById202Response, Integer, Hash)>] UpdateSnmpUserById202Response data, response status code and response headers
3748
+ def update_snmp_user_by_id_with_http_info(cluster_ext_id, ext_id, if_match, clustermgmt_v40_config_snmp_user, opts = {})
3749
+ if @api_client.config.debugging
3750
+ @api_client.config.logger.debug 'Calling API: ClustersApi.update_snmp_user_by_id ...'
3751
+ end
3752
+ # verify the required parameter 'cluster_ext_id' is set
3753
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
3754
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.update_snmp_user_by_id"
3755
+ end
3756
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
3757
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
3758
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.update_snmp_user_by_id, must conform to the pattern #{pattern}."
3759
+ end
3760
+
3761
+ # verify the required parameter 'ext_id' is set
3762
+ if @api_client.config.client_side_validation && ext_id.nil?
3763
+ fail ArgumentError, "Missing the required parameter 'ext_id' when calling ClustersApi.update_snmp_user_by_id"
3764
+ end
3765
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
3766
+ if @api_client.config.client_side_validation && ext_id !~ pattern
3767
+ fail ArgumentError, "invalid value for 'ext_id' when calling ClustersApi.update_snmp_user_by_id, must conform to the pattern #{pattern}."
3768
+ end
3769
+
3770
+ # verify the required parameter 'if_match' is set
3771
+ if @api_client.config.client_side_validation && if_match.nil?
3772
+ fail ArgumentError, "Missing the required parameter 'if_match' when calling ClustersApi.update_snmp_user_by_id"
3773
+ end
3774
+ # verify the required parameter 'clustermgmt_v40_config_snmp_user' is set
3775
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_snmp_user.nil?
3776
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_snmp_user' when calling ClustersApi.update_snmp_user_by_id"
3777
+ end
3778
+ # resource path
3779
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/snmp/users/{extId}'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s)).sub('{' + 'extId' + '}', CGI.escape(ext_id.to_s))
3780
+
3781
+ # query parameters
3782
+ query_params = opts[:query_params] || {}
3783
+
3784
+ # header parameters
3785
+ header_params = opts[:header_params] || {}
3786
+ # HTTP header 'Accept' (if needed)
3787
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3788
+ # HTTP header 'Content-Type'
3789
+ content_type = @api_client.select_header_content_type(['application/json'])
3790
+ if !content_type.nil?
3791
+ header_params['Content-Type'] = content_type
3792
+ end
3793
+ header_params[:'If-Match'] = if_match
3794
+
3795
+ # form parameters
3796
+ form_params = opts[:form_params] || {}
3797
+
3798
+ # http body (model)
3799
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_snmp_user)
3800
+
3801
+ # return_type
3802
+ return_type = opts[:debug_return_type] || 'UpdateSnmpUserById202Response'
3803
+
3804
+ # auth_names
3805
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
3806
+
3807
+ new_options = opts.merge(
3808
+ :operation => :"ClustersApi.update_snmp_user_by_id",
3809
+ :header_params => header_params,
3810
+ :query_params => query_params,
3811
+ :form_params => form_params,
3812
+ :body => post_body,
3813
+ :auth_names => auth_names,
3814
+ :return_type => return_type
3815
+ )
3816
+
3817
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3818
+ if @api_client.config.debugging
3819
+ @api_client.config.logger.debug "API called: ClustersApi#update_snmp_user_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3820
+ end
3821
+ return data, status_code, headers
3822
+ end
3823
+
3824
+ # Validates hypervisor bundle and node uplinks
3825
+ # Validates hypervisor bundle and node uplinks of the node. This API is not supported for XEN hypervisor type.
3826
+ # @param cluster_ext_id [String] Cluster UUID.
3827
+ # @param clustermgmt_v40_config_validate_node_param [ClustermgmtV40ConfigValidateNodeParam] Request body for node validation. It can be OneOf between hypervisor bundle and node uplinks.
3828
+ # @param [Hash] opts the optional parameters
3829
+ # @return [ValidateNode202Response]
3830
+ def validate_node(cluster_ext_id, clustermgmt_v40_config_validate_node_param, opts = {})
3831
+ data, _status_code, _headers = validate_node_with_http_info(cluster_ext_id, clustermgmt_v40_config_validate_node_param, opts)
3832
+ data
3833
+ end
3834
+
3835
+ # Validates hypervisor bundle and node uplinks
3836
+ # Validates hypervisor bundle and node uplinks of the node. This API is not supported for XEN hypervisor type.
3837
+ # @param cluster_ext_id [String] Cluster UUID.
3838
+ # @param clustermgmt_v40_config_validate_node_param [ClustermgmtV40ConfigValidateNodeParam] Request body for node validation. It can be OneOf between hypervisor bundle and node uplinks.
3839
+ # @param [Hash] opts the optional parameters
3840
+ # @return [Array<(ValidateNode202Response, Integer, Hash)>] ValidateNode202Response data, response status code and response headers
3841
+ def validate_node_with_http_info(cluster_ext_id, clustermgmt_v40_config_validate_node_param, opts = {})
3842
+ if @api_client.config.debugging
3843
+ @api_client.config.logger.debug 'Calling API: ClustersApi.validate_node ...'
3844
+ end
3845
+ # verify the required parameter 'cluster_ext_id' is set
3846
+ if @api_client.config.client_side_validation && cluster_ext_id.nil?
3847
+ fail ArgumentError, "Missing the required parameter 'cluster_ext_id' when calling ClustersApi.validate_node"
3848
+ end
3849
+ pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
3850
+ if @api_client.config.client_side_validation && cluster_ext_id !~ pattern
3851
+ fail ArgumentError, "invalid value for 'cluster_ext_id' when calling ClustersApi.validate_node, must conform to the pattern #{pattern}."
3852
+ end
3853
+
3854
+ # verify the required parameter 'clustermgmt_v40_config_validate_node_param' is set
3855
+ if @api_client.config.client_side_validation && clustermgmt_v40_config_validate_node_param.nil?
3856
+ fail ArgumentError, "Missing the required parameter 'clustermgmt_v40_config_validate_node_param' when calling ClustersApi.validate_node"
3857
+ end
3858
+ # resource path
3859
+ local_var_path = '/clustermgmt/v4.0/config/clusters/{clusterExtId}/$actions/validate-node'.sub('{' + 'clusterExtId' + '}', CGI.escape(cluster_ext_id.to_s))
3860
+
3861
+ # query parameters
3862
+ query_params = opts[:query_params] || {}
3863
+
3864
+ # header parameters
3865
+ header_params = opts[:header_params] || {}
3866
+ # HTTP header 'Accept' (if needed)
3867
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3868
+ # HTTP header 'Content-Type'
3869
+ content_type = @api_client.select_header_content_type(['application/json'])
3870
+ if !content_type.nil?
3871
+ header_params['Content-Type'] = content_type
3872
+ end
3873
+
3874
+ # form parameters
3875
+ form_params = opts[:form_params] || {}
3876
+
3877
+ # http body (model)
3878
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(clustermgmt_v40_config_validate_node_param)
3879
+
3880
+ # return_type
3881
+ return_type = opts[:debug_return_type] || 'ValidateNode202Response'
3882
+
3883
+ # auth_names
3884
+ auth_names = opts[:debug_auth_names] || ['apiKeyAuthScheme', 'basicAuthScheme']
3885
+
3886
+ new_options = opts.merge(
3887
+ :operation => :"ClustersApi.validate_node",
3888
+ :header_params => header_params,
3889
+ :query_params => query_params,
3890
+ :form_params => form_params,
3891
+ :body => post_body,
3892
+ :auth_names => auth_names,
3893
+ :return_type => return_type
3894
+ )
3895
+
3896
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3897
+ if @api_client.config.debugging
3898
+ @api_client.config.logger.debug "API called: ClustersApi#validate_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3899
+ end
3900
+ return data, status_code, headers
3901
+ end
3902
+ end
3903
+ end