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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +11 -0
- data/Gemfile +9 -0
- data/README.md +636 -0
- data/Rakefile +10 -0
- data/docs/AddDisk202Response.md +20 -0
- data/docs/AddDisk4XXResponse.md +20 -0
- data/docs/AddSnmpTransport202Response.md +20 -0
- data/docs/AddSnmpTransport4XXResponse.md +20 -0
- data/docs/ApplyClusterProfile202Response.md +20 -0
- data/docs/ApplyClusterProfile4XXResponse.md +20 -0
- data/docs/AssociateCategoriesToCluster202Response.md +20 -0
- data/docs/AssociateCategoriesToCluster4XXResponse.md +20 -0
- data/docs/BmcApi.md +169 -0
- data/docs/CheckHypervisorRequirements202Response.md +20 -0
- data/docs/CheckHypervisorRequirements4XXResponse.md +20 -0
- data/docs/ClusterProfilesApi.md +575 -0
- data/docs/ClustermgmtV40AhvConfigListPcieDevicesApiResponse.md +20 -0
- data/docs/ClustermgmtV40AhvConfigListPcieDevicesApiResponseData.md +49 -0
- data/docs/ClustermgmtV40AhvConfigPcieDevice.md +34 -0
- data/docs/ClustermgmtV40AhvConfigPcieDeviceConfiguration.md +30 -0
- data/docs/ClustermgmtV40AhvConfigPcieDeviceState.md +15 -0
- data/docs/ClustermgmtV40ConfigAcropolisConnectionState.md +15 -0
- data/docs/ClustermgmtV40ConfigAddDiskApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigAddSnmpTransportsApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigAddressType.md +15 -0
- data/docs/ClustermgmtV40ConfigApplyClusterProfileApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigAssociateCategoriesToClusterApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigAssociateCategoriesToClusterApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigAttributeItem.md +20 -0
- data/docs/ClustermgmtV40ConfigAuthorizedPublicKey.md +20 -0
- data/docs/ClustermgmtV40ConfigBackplaneNetworkParams.md +24 -0
- data/docs/ClustermgmtV40ConfigBlockItem.md +20 -0
- data/docs/ClustermgmtV40ConfigBmcInfo.md +22 -0
- data/docs/ClustermgmtV40ConfigBuildInfo.md +18 -0
- data/docs/ClustermgmtV40ConfigBuildReference.md +26 -0
- data/docs/ClustermgmtV40ConfigBundleInfo.md +18 -0
- data/docs/ClustermgmtV40ConfigBundleParam.md +20 -0
- data/docs/ClustermgmtV40ConfigCacheDeduplication.md +15 -0
- data/docs/ClustermgmtV40ConfigCategoryEntityReferences.md +18 -0
- data/docs/ClustermgmtV40ConfigCheckHypervisorRequirementsApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigCluster.md +44 -0
- data/docs/ClustermgmtV40ConfigClusterArchReference.md +15 -0
- data/docs/ClustermgmtV40ConfigClusterConfig.md +20 -0
- data/docs/ClustermgmtV40ConfigClusterConfigReference.md +54 -0
- data/docs/ClustermgmtV40ConfigClusterFaultToleranceRef.md +15 -0
- data/docs/ClustermgmtV40ConfigClusterFunctionRef.md +15 -0
- data/docs/ClustermgmtV40ConfigClusterNetwork.md +24 -0
- data/docs/ClustermgmtV40ConfigClusterNetworkReference.md +48 -0
- data/docs/ClustermgmtV40ConfigClusterProfile.md +56 -0
- data/docs/ClustermgmtV40ConfigClusterReference.md +20 -0
- data/docs/ClustermgmtV40ConfigClusterReferenceListSpec.md +18 -0
- data/docs/ClustermgmtV40ConfigComponentFaultTolerance.md +26 -0
- data/docs/ClustermgmtV40ConfigComponentType.md +15 -0
- data/docs/ClustermgmtV40ConfigComputeNodeItem.md +32 -0
- data/docs/ClustermgmtV40ConfigComputeNonMigratableVmsSpec.md +20 -0
- data/docs/ClustermgmtV40ConfigConfigParams.md +32 -0
- data/docs/ClustermgmtV40ConfigConfigType.md +15 -0
- data/docs/ClustermgmtV40ConfigControllerVmReference.md +28 -0
- data/docs/ClustermgmtV40ConfigCreateClusterApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigCreateClusterProfileApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigCreateRsyslogServerApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigCreateSnmpTrapApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigCreateSnmpUserApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigCreateStorageContainerApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigCredentialStatus.md +15 -0
- data/docs/ClustermgmtV40ConfigDataStore.md +38 -0
- data/docs/ClustermgmtV40ConfigDataStoreMount.md +32 -0
- data/docs/ClustermgmtV40ConfigDataStoreUnmount.md +26 -0
- data/docs/ClustermgmtV40ConfigDeleteClusterApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigDeleteClusterProfileApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigDeleteDiskApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigDeleteRsyslogServerApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigDeleteSnmpTrapApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigDeleteSnmpUserApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigDeleteStorageContainerApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigDigitalCertificateMapReference.md +20 -0
- data/docs/ClustermgmtV40ConfigDisassociateCategoriesFromClusterApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigDisassociateClusterFromClusterProfileApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigDiscoverUnconfiguredNodesApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigDisk.md +64 -0
- data/docs/ClustermgmtV40ConfigDiskAdditionSpec.md +20 -0
- data/docs/ClustermgmtV40ConfigDiskAdvanceConfig.md +48 -0
- data/docs/ClustermgmtV40ConfigDiskPartitionInfo.md +20 -0
- data/docs/ClustermgmtV40ConfigDiskReference.md +26 -0
- data/docs/ClustermgmtV40ConfigDiskStatus.md +15 -0
- data/docs/ClustermgmtV40ConfigDomainAwarenessLevel.md +15 -0
- data/docs/ClustermgmtV40ConfigDomainFaultTolerance.md +20 -0
- data/docs/ClustermgmtV40ConfigDomainType.md +15 -0
- data/docs/ClustermgmtV40ConfigDriveReplacementOption.md +15 -0
- data/docs/ClustermgmtV40ConfigEncryptionOptionInfo.md +15 -0
- data/docs/ClustermgmtV40ConfigEncryptionScopeInfo.md +15 -0
- data/docs/ClustermgmtV40ConfigEncryptionStatus.md +15 -0
- data/docs/ClustermgmtV40ConfigErasureCodeStatus.md +15 -0
- data/docs/ClustermgmtV40ConfigExpandClusterApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigExpandClusterParams.md +24 -0
- data/docs/ClustermgmtV40ConfigFaultToleranceState.md +28 -0
- data/docs/ClustermgmtV40ConfigFetchNodeNetworkingDetailsApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigFetchTaskApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigFetchTaskApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigGetBmcInfoResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigGetBmcInfoResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigGetClusterApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigGetClusterApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigGetClusterProfileApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigGetClusterProfileApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigGetDiskApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigGetDiskApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigGetHostApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigGetHostApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigGetHostNicApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigGetHostNicApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigGetRackableUnitApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigGetRackableUnitApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigGetRsyslogServerApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigGetRsyslogServerApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigGetSnmpConfigByClusterIdApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigGetSnmpConfigByClusterIdApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigGetSnmpTrapApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigGetSnmpTrapApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigGetSnmpUserApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigGetSnmpUserApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigGetStorageContainerApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigGetStorageContainerApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigGetVcenterExtensionApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigGetVcenterExtensionApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigGetVirtualNicApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigGetVirtualNicApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigGpuMode.md +15 -0
- data/docs/ClustermgmtV40ConfigGpuType.md +15 -0
- data/docs/ClustermgmtV40ConfigHost.md +90 -0
- data/docs/ClustermgmtV40ConfigHostGpu.md +32 -0
- data/docs/ClustermgmtV40ConfigHostNameParam.md +18 -0
- data/docs/ClustermgmtV40ConfigHostNic.md +62 -0
- data/docs/ClustermgmtV40ConfigHostTypeEnum.md +15 -0
- data/docs/ClustermgmtV40ConfigHttpProxyConfig.md +28 -0
- data/docs/ClustermgmtV40ConfigHttpProxyType.md +15 -0
- data/docs/ClustermgmtV40ConfigHttpProxyWhiteListConfig.md +20 -0
- data/docs/ClustermgmtV40ConfigHttpProxyWhiteListTargetType.md +15 -0
- data/docs/ClustermgmtV40ConfigHypervCredentials.md +20 -0
- data/docs/ClustermgmtV40ConfigHypervisorIsoMap.md +20 -0
- data/docs/ClustermgmtV40ConfigHypervisorReference.md +30 -0
- data/docs/ClustermgmtV40ConfigHypervisorState.md +15 -0
- data/docs/ClustermgmtV40ConfigHypervisorType.md +15 -0
- data/docs/ClustermgmtV40ConfigHypervisorUploadInfo.md +20 -0
- data/docs/ClustermgmtV40ConfigHypervisorUploadNodeListItem.md +34 -0
- data/docs/ClustermgmtV40ConfigHypervisorUploadParam.md +18 -0
- data/docs/ClustermgmtV40ConfigIpmiReference.md +20 -0
- data/docs/ClustermgmtV40ConfigKeyManagementDeviceToCertStatusInfo.md +20 -0
- data/docs/ClustermgmtV40ConfigKeyManagementServerType.md +15 -0
- data/docs/ClustermgmtV40ConfigListClusterProfilesApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigListClusterProfilesApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigListClustersApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigListClustersApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigListDataStoresByClusterIdApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigListDataStoresByClusterIdApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigListDisksApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigListDisksApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigListHostNicsByHostIdApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigListHostNicsByHostIdApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigListHostsApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigListHostsByClusterIdApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigListHostsByClusterIdApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigListPhysicalGpuProfilesApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigListPhysicalGpuProfilesApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigListRackableUnitsByClusterIdApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigListRackableUnitsByClusterIdApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigListRsyslogServersByClusterIdApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigListRsyslogServersByClusterIdApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigListStorageContainersApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigListStorageContainersApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigListVcenterExtensionsApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigListVcenterExtensionsApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigListVirtualGpuProfilesApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigListVirtualGpuProfilesApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigListVirtualNicsByHostIdApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigListVirtualNicsByHostIdApiResponseData.md +49 -0
- data/docs/ClustermgmtV40ConfigManagedCluster.md +24 -0
- data/docs/ClustermgmtV40ConfigManagementServerRef.md +26 -0
- data/docs/ClustermgmtV40ConfigManagementServerType.md +15 -0
- data/docs/ClustermgmtV40ConfigMountStorageContainerApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigMultiDomainFaultToleranceStatus.md +24 -0
- data/docs/ClustermgmtV40ConfigNameMacRef.md +20 -0
- data/docs/ClustermgmtV40ConfigNameNetworkRef.md +22 -0
- data/docs/ClustermgmtV40ConfigNetworkInfo.md +20 -0
- data/docs/ClustermgmtV40ConfigNetworkSwitchInterface.md +48 -0
- data/docs/ClustermgmtV40ConfigNodeDetails.md +20 -0
- data/docs/ClustermgmtV40ConfigNodeDiscoveryParams.md +28 -0
- data/docs/ClustermgmtV40ConfigNodeInfo.md +46 -0
- data/docs/ClustermgmtV40ConfigNodeItem.md +48 -0
- data/docs/ClustermgmtV40ConfigNodeListItemReference.md +22 -0
- data/docs/ClustermgmtV40ConfigNodeListNetworkingDetails.md +46 -0
- data/docs/ClustermgmtV40ConfigNodeNetworkConfig.md +18 -0
- data/docs/ClustermgmtV40ConfigNodeNetworkingDetails.md +22 -0
- data/docs/ClustermgmtV40ConfigNodeParam.md +30 -0
- data/docs/ClustermgmtV40ConfigNodeReference.md +20 -0
- data/docs/ClustermgmtV40ConfigNodeRemovalExtraParam.md +22 -0
- data/docs/ClustermgmtV40ConfigNodeRemovalParams.md +24 -0
- data/docs/ClustermgmtV40ConfigNodeResourceConfig.md +24 -0
- data/docs/ClustermgmtV40ConfigNodeStatus.md +15 -0
- data/docs/ClustermgmtV40ConfigNonCompatibleClusterReference.md +20 -0
- data/docs/ClustermgmtV40ConfigNonMigratableVmInfo.md +22 -0
- data/docs/ClustermgmtV40ConfigNonMigratableVmsResult.md +24 -0
- data/docs/ClustermgmtV40ConfigOnDiskDedup.md +15 -0
- data/docs/ClustermgmtV40ConfigOperationMode.md +15 -0
- data/docs/ClustermgmtV40ConfigPIIScrubbingLevel.md +15 -0
- data/docs/ClustermgmtV40ConfigPartitionType.md +15 -0
- data/docs/ClustermgmtV40ConfigPhysicalGpuConfig.md +36 -0
- data/docs/ClustermgmtV40ConfigPhysicalGpuProfile.md +26 -0
- data/docs/ClustermgmtV40ConfigPublicKey.md +20 -0
- data/docs/ClustermgmtV40ConfigPulseStatus.md +20 -0
- data/docs/ClustermgmtV40ConfigRackReference.md +20 -0
- data/docs/ClustermgmtV40ConfigRackableUnit.md +34 -0
- data/docs/ClustermgmtV40ConfigRackableUnitModel.md +15 -0
- data/docs/ClustermgmtV40ConfigRackableUnitNode.md +22 -0
- data/docs/ClustermgmtV40ConfigRedundancyStatusDetails.md +20 -0
- data/docs/ClustermgmtV40ConfigRegisterVcenterExtensionApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigRemoveNodeApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigRemoveSnmpTransportsApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigRsyslogModuleItem.md +22 -0
- data/docs/ClustermgmtV40ConfigRsyslogModuleLogSeverityLevel.md +15 -0
- data/docs/ClustermgmtV40ConfigRsyslogModuleName.md +15 -0
- data/docs/ClustermgmtV40ConfigRsyslogNetworkProtocol.md +15 -0
- data/docs/ClustermgmtV40ConfigRsyslogServer.md +32 -0
- data/docs/ClustermgmtV40ConfigSmtpNetwork.md +24 -0
- data/docs/ClustermgmtV40ConfigSmtpServerRef.md +22 -0
- data/docs/ClustermgmtV40ConfigSmtpType.md +15 -0
- data/docs/ClustermgmtV40ConfigSnmpAuthType.md +15 -0
- data/docs/ClustermgmtV40ConfigSnmpConfig.md +30 -0
- data/docs/ClustermgmtV40ConfigSnmpPrivType.md +15 -0
- data/docs/ClustermgmtV40ConfigSnmpProtocol.md +15 -0
- data/docs/ClustermgmtV40ConfigSnmpStatusParam.md +18 -0
- data/docs/ClustermgmtV40ConfigSnmpTransport.md +20 -0
- data/docs/ClustermgmtV40ConfigSnmpTrap.md +40 -0
- data/docs/ClustermgmtV40ConfigSnmpTrapVersion.md +15 -0
- data/docs/ClustermgmtV40ConfigSnmpUser.md +32 -0
- data/docs/ClustermgmtV40ConfigSoftwareMapReference.md +20 -0
- data/docs/ClustermgmtV40ConfigSoftwareTypeRef.md +15 -0
- data/docs/ClustermgmtV40ConfigStorageContainer.md +76 -0
- data/docs/ClustermgmtV40ConfigStorageSummary.md +18 -0
- data/docs/ClustermgmtV40ConfigStorageTier.md +15 -0
- data/docs/ClustermgmtV40ConfigStorageTierReference.md +15 -0
- data/docs/ClustermgmtV40ConfigTaskResponse.md +26 -0
- data/docs/ClustermgmtV40ConfigTaskResponseAllOfResponse.md +55 -0
- data/docs/ClustermgmtV40ConfigTaskResponseType.md +15 -0
- data/docs/ClustermgmtV40ConfigToleranceMessage.md +20 -0
- data/docs/ClustermgmtV40ConfigUnconfigureNodeDetails.md +18 -0
- data/docs/ClustermgmtV40ConfigUnconfiguredNodeAttributeMap.md +26 -0
- data/docs/ClustermgmtV40ConfigUnconfiguredNodeListItem.md +58 -0
- data/docs/ClustermgmtV40ConfigUnmountStorageContainerApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigUnregisterVcenterExtensionApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigUpdateBmcInfoResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigUpdateClusterApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigUpdateClusterProfileApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigUpdateRsyslogServerApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigUpdateSnmpStatusApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigUpdateSnmpTrapApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigUpdateSnmpUserApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigUpdateStorageContainerApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigUpgradeStatus.md +15 -0
- data/docs/ClustermgmtV40ConfigUplinkInfo.md +20 -0
- data/docs/ClustermgmtV40ConfigUplinkNetworkItem.md +22 -0
- data/docs/ClustermgmtV40ConfigUplinkNode.md +22 -0
- data/docs/ClustermgmtV40ConfigUplinks.md +20 -0
- data/docs/ClustermgmtV40ConfigUplinksField.md +22 -0
- data/docs/ClustermgmtV40ConfigUploadInfoNodeItem.md +32 -0
- data/docs/ClustermgmtV40ConfigUserInfo.md +22 -0
- data/docs/ClustermgmtV40ConfigValidateBundleInfo.md +18 -0
- data/docs/ClustermgmtV40ConfigValidateNodeApiResponse.md +20 -0
- data/docs/ClustermgmtV40ConfigValidateNodeParam.md +18 -0
- data/docs/ClustermgmtV40ConfigValidateNodeParamSpec.md +49 -0
- data/docs/ClustermgmtV40ConfigVcenterCredentials.md +22 -0
- data/docs/ClustermgmtV40ConfigVcenterExtension.md +28 -0
- data/docs/ClustermgmtV40ConfigVcenterInfo.md +20 -0
- data/docs/ClustermgmtV40ConfigVirtualGpuConfig.md +46 -0
- data/docs/ClustermgmtV40ConfigVirtualGpuProfile.md +26 -0
- data/docs/ClustermgmtV40ConfigVirtualNic.md +46 -0
- data/docs/ClustermgmtV40ErrorAppMessage.md +28 -0
- data/docs/ClustermgmtV40ErrorErrorResponse.md +18 -0
- data/docs/ClustermgmtV40ErrorErrorResponseError.md +49 -0
- data/docs/ClustermgmtV40ErrorMessageSeverity.md +15 -0
- data/docs/ClustermgmtV40ErrorSchemaValidationError.md +26 -0
- data/docs/ClustermgmtV40ErrorSchemaValidationErrorMessage.md +22 -0
- data/docs/ClustermgmtV40OperationsEnterHostMaintenanceApiResponse.md +20 -0
- data/docs/ClustermgmtV40OperationsEnterHostMaintenanceSpec.md +24 -0
- data/docs/ClustermgmtV40OperationsExitHostMaintenanceApiResponse.md +20 -0
- data/docs/ClustermgmtV40OperationsHostMaintenanceCommonSpec.md +20 -0
- data/docs/ClustermgmtV40StatsClusterStats.md +116 -0
- data/docs/ClustermgmtV40StatsClusterStatsApiResponse.md +20 -0
- data/docs/ClustermgmtV40StatsClusterStatsApiResponseData.md +49 -0
- data/docs/ClustermgmtV40StatsDiskStats.md +88 -0
- data/docs/ClustermgmtV40StatsGetDiskStatsApiResponse.md +20 -0
- data/docs/ClustermgmtV40StatsGetDiskStatsApiResponseData.md +49 -0
- data/docs/ClustermgmtV40StatsGetStorageContainerStatsApiResponse.md +20 -0
- data/docs/ClustermgmtV40StatsGetStorageContainerStatsApiResponseData.md +49 -0
- data/docs/ClustermgmtV40StatsHostStats.md +114 -0
- data/docs/ClustermgmtV40StatsHostStatsApiResponse.md +20 -0
- data/docs/ClustermgmtV40StatsHostStatsApiResponseData.md +49 -0
- data/docs/ClustermgmtV40StatsStorageContainerStats.md +114 -0
- data/docs/ClustermgmtV40StatsTimeValuePair.md +20 -0
- data/docs/ClustersApi.md +3725 -0
- data/docs/CommonV10ConfigBasicAuth.md +20 -0
- data/docs/CommonV10ConfigFQDN.md +18 -0
- data/docs/CommonV10ConfigFlag.md +20 -0
- data/docs/CommonV10ConfigIPAddress.md +20 -0
- data/docs/CommonV10ConfigIPAddressOrFQDN.md +22 -0
- data/docs/CommonV10ConfigIPv4Address.md +20 -0
- data/docs/CommonV10ConfigIPv6Address.md +20 -0
- data/docs/CommonV10ConfigKVPair.md +20 -0
- data/docs/CommonV10ConfigKVPairValue.md +59 -0
- data/docs/CommonV10ConfigMapOfStringWrapper.md +18 -0
- data/docs/CommonV10ConfigMessage.md +24 -0
- data/docs/CommonV10ConfigMessageSeverity.md +15 -0
- data/docs/CommonV10ConfigTenantAwareModel.md +18 -0
- data/docs/CommonV10ResponseApiLink.md +20 -0
- data/docs/CommonV10ResponseApiResponseMetadata.md +26 -0
- data/docs/CommonV10ResponseExternalizableAbstractModel.md +22 -0
- data/docs/CommonV10StatsDownSamplingOperator.md +15 -0
- data/docs/CommonV10StatsTimeIntValuePair.md +20 -0
- data/docs/CreateCluster202Response.md +20 -0
- data/docs/CreateCluster4XXResponse.md +20 -0
- data/docs/CreateClusterProfile202Response.md +20 -0
- data/docs/CreateClusterProfile4XXResponse.md +20 -0
- data/docs/CreateRsyslogServer202Response.md +20 -0
- data/docs/CreateRsyslogServer4XXResponse.md +20 -0
- data/docs/CreateSnmpTrap202Response.md +20 -0
- data/docs/CreateSnmpTrap4XXResponse.md +20 -0
- data/docs/CreateSnmpUser202Response.md +20 -0
- data/docs/CreateSnmpUser4XXResponse.md +20 -0
- data/docs/CreateStorageContainer202Response.md +20 -0
- data/docs/CreateStorageContainer4XXResponse.md +20 -0
- data/docs/DeleteClusterById202Response.md +20 -0
- data/docs/DeleteClusterById4XXResponse.md +20 -0
- data/docs/DeleteClusterProfileById202Response.md +20 -0
- data/docs/DeleteClusterProfileById4XXResponse.md +20 -0
- data/docs/DeleteDiskById202Response.md +20 -0
- data/docs/DeleteDiskById4XXResponse.md +20 -0
- data/docs/DeleteRsyslogServerById202Response.md +20 -0
- data/docs/DeleteRsyslogServerById4XXResponse.md +20 -0
- data/docs/DeleteSnmpTrapById202Response.md +20 -0
- data/docs/DeleteSnmpTrapById4XXResponse.md +20 -0
- data/docs/DeleteSnmpUserById202Response.md +20 -0
- data/docs/DeleteSnmpUserById4XXResponse.md +20 -0
- data/docs/DeleteStorageContainerById202Response.md +20 -0
- data/docs/DeleteStorageContainerById4XXResponse.md +20 -0
- data/docs/DisassociateCategoriesFromCluster202Response.md +20 -0
- data/docs/DisassociateCategoriesFromCluster4XXResponse.md +20 -0
- data/docs/DisassociateClusterFromClusterProfile202Response.md +20 -0
- data/docs/DisassociateClusterFromClusterProfile4XXResponse.md +20 -0
- data/docs/DiscoverUnconfiguredNodes202Response.md +20 -0
- data/docs/DiscoverUnconfiguredNodes4XXResponse.md +20 -0
- data/docs/DisksApi.md +411 -0
- data/docs/EnterHostMaintenance202Response.md +20 -0
- data/docs/EnterHostMaintenance4XXResponse.md +20 -0
- data/docs/ExitHostMaintenance202Response.md +20 -0
- data/docs/ExitHostMaintenance4XXResponse.md +20 -0
- data/docs/ExpandCluster202Response.md +20 -0
- data/docs/ExpandCluster4XXResponse.md +20 -0
- data/docs/FetchNodeNetworkingDetails202Response.md +20 -0
- data/docs/FetchNodeNetworkingDetails4XXResponse.md +20 -0
- data/docs/FetchTaskResponse200Response.md +20 -0
- data/docs/FetchTaskResponse4XXResponse.md +20 -0
- data/docs/GetBmcInfo200Response.md +20 -0
- data/docs/GetBmcInfo4XXResponse.md +20 -0
- data/docs/GetClusterById200Response.md +20 -0
- data/docs/GetClusterById4XXResponse.md +20 -0
- data/docs/GetClusterProfileById200Response.md +20 -0
- data/docs/GetClusterProfileById4XXResponse.md +20 -0
- data/docs/GetClusterStats200Response.md +20 -0
- data/docs/GetClusterStats4XXResponse.md +20 -0
- data/docs/GetDiskById200Response.md +20 -0
- data/docs/GetDiskById4XXResponse.md +20 -0
- data/docs/GetDiskStats200Response.md +20 -0
- data/docs/GetDiskStats4XXResponse.md +20 -0
- data/docs/GetHostById200Response.md +20 -0
- data/docs/GetHostById4XXResponse.md +20 -0
- data/docs/GetHostNicById200Response.md +20 -0
- data/docs/GetHostNicById4XXResponse.md +20 -0
- data/docs/GetHostStats200Response.md +20 -0
- data/docs/GetHostStats4XXResponse.md +20 -0
- data/docs/GetRackableUnitById200Response.md +20 -0
- data/docs/GetRackableUnitById4XXResponse.md +20 -0
- data/docs/GetRsyslogServerById200Response.md +20 -0
- data/docs/GetRsyslogServerById4XXResponse.md +20 -0
- data/docs/GetSnmpConfigByClusterId200Response.md +20 -0
- data/docs/GetSnmpConfigByClusterId4XXResponse.md +20 -0
- data/docs/GetSnmpTrapById200Response.md +20 -0
- data/docs/GetSnmpTrapById4XXResponse.md +20 -0
- data/docs/GetSnmpUserById200Response.md +20 -0
- data/docs/GetSnmpUserById4XXResponse.md +20 -0
- data/docs/GetStorageContainerById200Response.md +20 -0
- data/docs/GetStorageContainerById4XXResponse.md +20 -0
- data/docs/GetStorageContainerStats200Response.md +20 -0
- data/docs/GetStorageContainerStats4XXResponse.md +20 -0
- data/docs/GetVcenterExtensionById200Response.md +20 -0
- data/docs/GetVcenterExtensionById4XXResponse.md +20 -0
- data/docs/GetVirtualNicById200Response.md +20 -0
- data/docs/GetVirtualNicById4XXResponse.md +20 -0
- data/docs/ListClusterProfiles200Response.md +20 -0
- data/docs/ListClusterProfiles4XXResponse.md +20 -0
- data/docs/ListClusters200Response.md +20 -0
- data/docs/ListClusters4XXResponse.md +20 -0
- data/docs/ListDataStoresByClusterId200Response.md +20 -0
- data/docs/ListDataStoresByClusterId4XXResponse.md +20 -0
- data/docs/ListDisks200Response.md +20 -0
- data/docs/ListDisks4XXResponse.md +20 -0
- data/docs/ListHostNicsByHostId200Response.md +20 -0
- data/docs/ListHostNicsByHostId4XXResponse.md +20 -0
- data/docs/ListHosts200Response.md +20 -0
- data/docs/ListHosts4XXResponse.md +20 -0
- data/docs/ListHostsByClusterId200Response.md +20 -0
- data/docs/ListHostsByClusterId4XXResponse.md +20 -0
- data/docs/ListPcieDevices200Response.md +20 -0
- data/docs/ListPcieDevices4XXResponse.md +20 -0
- data/docs/ListPhysicalGpuProfiles200Response.md +20 -0
- data/docs/ListPhysicalGpuProfiles4XXResponse.md +20 -0
- data/docs/ListRackableUnitsByClusterId200Response.md +20 -0
- data/docs/ListRackableUnitsByClusterId4XXResponse.md +20 -0
- data/docs/ListRsyslogServersByClusterId200Response.md +20 -0
- data/docs/ListRsyslogServersByClusterId4XXResponse.md +20 -0
- data/docs/ListStorageContainers200Response.md +20 -0
- data/docs/ListStorageContainers4XXResponse.md +20 -0
- data/docs/ListVcenterExtensions200Response.md +20 -0
- data/docs/ListVcenterExtensions4XXResponse.md +20 -0
- data/docs/ListVirtualGpuProfiles200Response.md +20 -0
- data/docs/ListVirtualGpuProfiles4XXResponse.md +20 -0
- data/docs/ListVirtualNicsByHostId200Response.md +20 -0
- data/docs/ListVirtualNicsByHostId4XXResponse.md +20 -0
- data/docs/MountStorageContainer202Response.md +20 -0
- data/docs/MountStorageContainer4XXResponse.md +20 -0
- data/docs/PcieDevicesApi.md +91 -0
- data/docs/PrismV40ConfigTaskReference.md +18 -0
- data/docs/RegisterVcenterExtension202Response.md +20 -0
- data/docs/RegisterVcenterExtension4XXResponse.md +20 -0
- data/docs/RemoveNode202Response.md +20 -0
- data/docs/RemoveNode4XXResponse.md +20 -0
- data/docs/RemoveSnmpTransport202Response.md +20 -0
- data/docs/RemoveSnmpTransport4XXResponse.md +20 -0
- data/docs/StorageContainersApi.md +739 -0
- data/docs/UnmountStorageContainer202Response.md +20 -0
- data/docs/UnmountStorageContainer4XXResponse.md +20 -0
- data/docs/UnregisterVcenterExtension202Response.md +20 -0
- data/docs/UnregisterVcenterExtension4XXResponse.md +20 -0
- data/docs/UpdateBmcInfo202Response.md +20 -0
- data/docs/UpdateBmcInfo4XXResponse.md +20 -0
- data/docs/UpdateClusterById202Response.md +20 -0
- data/docs/UpdateClusterById4XXResponse.md +20 -0
- data/docs/UpdateClusterProfileById202Response.md +20 -0
- data/docs/UpdateClusterProfileById4XXResponse.md +20 -0
- data/docs/UpdateRsyslogServerById202Response.md +20 -0
- data/docs/UpdateRsyslogServerById4XXResponse.md +20 -0
- data/docs/UpdateSnmpStatus202Response.md +20 -0
- data/docs/UpdateSnmpStatus4XXResponse.md +20 -0
- data/docs/UpdateSnmpTrapById202Response.md +20 -0
- data/docs/UpdateSnmpTrapById4XXResponse.md +20 -0
- data/docs/UpdateSnmpUserById202Response.md +20 -0
- data/docs/UpdateSnmpUserById4XXResponse.md +20 -0
- data/docs/UpdateStorageContainerById202Response.md +20 -0
- data/docs/UpdateStorageContainerById4XXResponse.md +20 -0
- data/docs/ValidateNode202Response.md +20 -0
- data/docs/ValidateNode4XXResponse.md +20 -0
- data/docs/VcenterExtensionsApi.md +327 -0
- data/git_push.sh +57 -0
- data/lib/nutanix_clustermgmt/api/bmc_api.rb +205 -0
- data/lib/nutanix_clustermgmt/api/cluster_profiles_api.rb +595 -0
- data/lib/nutanix_clustermgmt/api/clusters_api.rb +3903 -0
- data/lib/nutanix_clustermgmt/api/disks_api.rb +416 -0
- data/lib/nutanix_clustermgmt/api/pcie_devices_api.rb +103 -0
- data/lib/nutanix_clustermgmt/api/storage_containers_api.rb +771 -0
- data/lib/nutanix_clustermgmt/api/vcenter_extensions_api.rb +343 -0
- data/lib/nutanix_clustermgmt/api_client.rb +394 -0
- data/lib/nutanix_clustermgmt/api_error.rb +58 -0
- data/lib/nutanix_clustermgmt/configuration.rb +315 -0
- data/lib/nutanix_clustermgmt/models/add_disk202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/add_disk4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/add_snmp_transport202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/add_snmp_transport4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/apply_cluster_profile202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/apply_cluster_profile4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/associate_categories_to_cluster202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/associate_categories_to_cluster4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/check_hypervisor_requirements202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/check_hypervisor_requirements4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_ahv_config_list_pcie_devices_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_ahv_config_list_pcie_devices_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_ahv_config_pcie_device.rb +455 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_ahv_config_pcie_device_configuration.rb +276 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_ahv_config_pcie_device_state.rb +45 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_acropolis_connection_state.rb +42 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_add_disk_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_add_snmp_transports_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_address_type.rb +42 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_apply_cluster_profile_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_associate_categories_to_cluster_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_associate_categories_to_cluster_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_attribute_item.rb +226 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_authorized_public_key.rb +245 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_backplane_network_params.rb +244 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_block_item.rb +245 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_bmc_info.rb +255 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_build_info.rb +216 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_build_reference.rb +256 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_bundle_info.rb +235 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_bundle_param.rb +269 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cache_deduplication.rb +43 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_category_entity_references.rb +253 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_check_hypervisor_requirements_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster.rb +529 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_arch_reference.rb +42 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_config.rb +225 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_config_reference.rb +592 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_fault_tolerance_ref.rb +44 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_function_ref.rb +47 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_network.rb +326 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_network_reference.rb +552 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_profile.rb +756 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_reference.rb +266 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_cluster_reference_list_spec.rb +252 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_component_fault_tolerance.rb +276 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_component_type.rb +48 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_compute_node_item.rb +354 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_compute_non_migratable_vms_spec.rb +262 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_config_params.rb +285 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_config_type.rb +47 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_controller_vm_reference.rb +293 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_create_cluster_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_create_cluster_profile_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_create_rsyslog_server_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_create_snmp_trap_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_create_snmp_user_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_create_storage_container_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_credential_status.rb +43 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_data_store.rb +522 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_data_store_mount.rb +436 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_data_store_unmount.rb +387 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_delete_cluster_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_delete_cluster_profile_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_delete_disk_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_delete_rsyslog_server_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_delete_snmp_trap_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_delete_snmp_user_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_delete_storage_container_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_digital_certificate_map_reference.rb +226 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disassociate_categories_from_cluster_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disassociate_cluster_from_cluster_profile_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_discover_unconfigured_nodes_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disk.rb +815 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disk_addition_spec.rb +251 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disk_advance_config.rb +366 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disk_partition_info.rb +246 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disk_reference.rb +298 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_disk_status.rb +44 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_domain_awareness_level.rb +44 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_domain_fault_tolerance.rb +277 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_domain_type.rb +46 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_drive_replacement_option.rb +42 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_encryption_option_info.rb +43 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_encryption_scope_info.rb +42 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_encryption_status.rb +42 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_erasure_code_status.rb +43 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_expand_cluster_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_expand_cluster_params.rb +251 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_fault_tolerance_state.rb +284 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_fetch_node_networking_details_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_fetch_task_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_fetch_task_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_bmc_info_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_bmc_info_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_cluster_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_cluster_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_cluster_profile_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_cluster_profile_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_disk_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_disk_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_host_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_host_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_host_nic_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_host_nic_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_rackable_unit_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_rackable_unit_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_rsyslog_server_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_rsyslog_server_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_snmp_config_by_cluster_id_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_snmp_config_by_cluster_id_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_snmp_trap_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_snmp_trap_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_snmp_user_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_snmp_user_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_storage_container_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_storage_container_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_vcenter_extension_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_vcenter_extension_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_virtual_nic_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_get_virtual_nic_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_gpu_mode.rb +43 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_gpu_type.rb +43 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host.rb +861 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host_gpu.rb +381 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host_name_param.rb +242 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host_nic.rb +683 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_host_type_enum.rb +43 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_http_proxy_config.rb +340 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_http_proxy_type.rb +43 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_http_proxy_white_list_config.rb +261 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_http_proxy_white_list_target_type.rb +45 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hyperv_credentials.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hypervisor_iso_map.rb +268 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hypervisor_reference.rb +332 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hypervisor_state.rb +50 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hypervisor_type.rb +45 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hypervisor_upload_info.rb +256 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hypervisor_upload_node_list_item.rb +338 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_hypervisor_upload_param.rb +253 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_ipmi_reference.rb +244 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_key_management_device_to_cert_status_info.rb +245 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_key_management_server_type.rb +43 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_cluster_profiles_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_cluster_profiles_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_clusters_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_clusters_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_data_stores_by_cluster_id_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_data_stores_by_cluster_id_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_disks_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_disks_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_host_nics_by_host_id_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_host_nics_by_host_id_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_hosts_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_hosts_by_cluster_id_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_hosts_by_cluster_id_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_physical_gpu_profiles_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_physical_gpu_profiles_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_rackable_units_by_cluster_id_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_rackable_units_by_cluster_id_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_rsyslog_servers_by_cluster_id_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_rsyslog_servers_by_cluster_id_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_storage_containers_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_storage_containers_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_vcenter_extensions_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_vcenter_extensions_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_virtual_gpu_profiles_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_virtual_gpu_profiles_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_virtual_nics_by_host_id_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_list_virtual_nics_by_host_id_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_managed_cluster.rb +304 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_management_server_ref.rb +276 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_management_server_type.rb +41 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_mount_storage_container_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_multi_domain_fault_tolerance_status.rb +351 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_name_mac_ref.rb +266 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_name_network_ref.rb +306 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_network_info.rb +286 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_network_switch_interface.rb +553 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_details.rb +263 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_discovery_params.rb +377 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_info.rb +444 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_item.rb +495 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_list_item_reference.rb +255 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_list_networking_details.rb +425 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_network_config.rb +215 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_networking_details.rb +295 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_param.rb +395 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_reference.rb +256 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_removal_extra_param.rb +236 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_removal_params.rb +282 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_resource_config.rb +267 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_node_status.rb +46 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_non_compatible_cluster_reference.rb +277 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_non_migratable_vm_info.rb +276 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_non_migratable_vms_result.rb +351 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_on_disk_dedup.rb +43 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_operation_mode.rb +45 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_partition_type.rb +42 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_physical_gpu_config.rb +354 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_physical_gpu_profile.rb +361 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_pii_scrubbing_level.rb +42 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_public_key.rb +259 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_pulse_status.rb +247 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rack_reference.rb +247 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rackable_unit.rb +441 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rackable_unit_model.rb +56 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rackable_unit_node.rb +257 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_redundancy_status_details.rb +226 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_register_vcenter_extension_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_remove_node_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_remove_snmp_transports_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rsyslog_module_item.rb +272 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rsyslog_module_log_severity_level.rb +48 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rsyslog_module_name.rb +60 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rsyslog_network_protocol.rb +43 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_rsyslog_server.rb +459 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_smtp_network.rb +271 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_smtp_server_ref.rb +291 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_smtp_type.rb +43 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_auth_type.rb +42 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_config.rb +442 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_priv_type.rb +42 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_protocol.rb +44 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_status_param.rb +223 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_transport.rb +261 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_trap.rb +494 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_trap_version.rb +42 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_snmp_user.rb +464 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_software_map_reference.rb +247 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_software_type_ref.rb +43 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_storage_container.rb +781 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_storage_summary.rb +216 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_storage_tier.rb +45 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_storage_tier_reference.rb +43 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_task_response.rb +351 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_task_response_all_of_response.rb +109 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_task_response_type.rb +45 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_tolerance_message.rb +256 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_unconfigure_node_details.rb +246 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_unconfigured_node_attribute_map.rb +256 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_unconfigured_node_list_item.rb +483 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_unmount_storage_container_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_unregister_vcenter_extension_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_bmc_info_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_cluster_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_cluster_profile_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_rsyslog_server_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_snmp_status_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_snmp_trap_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_snmp_user_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_update_storage_container_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_upgrade_status.rb +49 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_uplink_info.rb +255 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_uplink_network_item.rb +284 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_uplink_node.rb +278 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_uplinks.rb +286 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_uplinks_field.rb +276 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_upload_info_node_item.rb +368 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_user_info.rb +274 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_validate_bundle_info.rb +237 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_validate_node_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_validate_node_param.rb +222 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_validate_node_param_spec.rb +106 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_vcenter_credentials.rb +271 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_vcenter_extension.rb +384 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_vcenter_info.rb +238 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_virtual_gpu_config.rb +463 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_virtual_gpu_profile.rb +361 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_config_virtual_nic.rb +583 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_error_app_message.rb +291 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_error_error_response.rb +215 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_error_error_response_error.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_error_message_severity.rb +43 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_error_schema_validation_error.rb +258 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_error_schema_validation_error_message.rb +236 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_operations_enter_host_maintenance_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_operations_enter_host_maintenance_spec.rb +275 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_operations_exit_host_maintenance_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_operations_host_maintenance_common_spec.rb +244 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_cluster_stats.rb +876 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_cluster_stats_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_cluster_stats_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_disk_stats.rb +1631 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_get_disk_stats_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_get_disk_stats_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_get_storage_container_stats_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_get_storage_container_stats_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb +864 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats_api_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats_api_response_data.rb +105 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_storage_container_stats.rb +2142 -0
- data/lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_time_value_pair.rb +226 -0
- data/lib/nutanix_clustermgmt/models/common_v10_config_basic_auth.rb +296 -0
- data/lib/nutanix_clustermgmt/models/common_v10_config_flag.rb +256 -0
- data/lib/nutanix_clustermgmt/models/common_v10_config_fqdn.rb +237 -0
- data/lib/nutanix_clustermgmt/models/common_v10_config_ip_address.rb +224 -0
- data/lib/nutanix_clustermgmt/models/common_v10_config_ip_address_or_fqdn.rb +233 -0
- data/lib/nutanix_clustermgmt/models/common_v10_config_ipv4_address.rb +284 -0
- data/lib/nutanix_clustermgmt/models/common_v10_config_ipv6_address.rb +284 -0
- data/lib/nutanix_clustermgmt/models/common_v10_config_kv_pair.rb +253 -0
- data/lib/nutanix_clustermgmt/models/common_v10_config_kv_pair_value.rb +111 -0
- data/lib/nutanix_clustermgmt/models/common_v10_config_map_of_string_wrapper.rb +218 -0
- data/lib/nutanix_clustermgmt/models/common_v10_config_message.rb +268 -0
- data/lib/nutanix_clustermgmt/models/common_v10_config_message_severity.rb +43 -0
- data/lib/nutanix_clustermgmt/models/common_v10_config_tenant_aware_model.rb +237 -0
- data/lib/nutanix_clustermgmt/models/common_v10_response_api_link.rb +226 -0
- data/lib/nutanix_clustermgmt/models/common_v10_response_api_response_metadata.rb +376 -0
- data/lib/nutanix_clustermgmt/models/common_v10_response_externalizable_abstract_model.rb +312 -0
- data/lib/nutanix_clustermgmt/models/common_v10_stats_down_sampling_operator.rb +46 -0
- data/lib/nutanix_clustermgmt/models/common_v10_stats_time_int_value_pair.rb +226 -0
- data/lib/nutanix_clustermgmt/models/create_cluster202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/create_cluster4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/create_cluster_profile202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/create_cluster_profile4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/create_rsyslog_server202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/create_rsyslog_server4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/create_snmp_trap202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/create_snmp_trap4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/create_snmp_user202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/create_snmp_user4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/create_storage_container202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/create_storage_container4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/delete_cluster_by_id202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/delete_cluster_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/delete_cluster_profile_by_id202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/delete_cluster_profile_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/delete_disk_by_id202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/delete_disk_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/delete_rsyslog_server_by_id202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/delete_rsyslog_server_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/delete_snmp_trap_by_id202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/delete_snmp_trap_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/delete_snmp_user_by_id202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/delete_snmp_user_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/delete_storage_container_by_id202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/delete_storage_container_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/disassociate_categories_from_cluster202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/disassociate_categories_from_cluster4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/disassociate_cluster_from_cluster_profile202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/disassociate_cluster_from_cluster_profile4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/discover_unconfigured_nodes202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/discover_unconfigured_nodes4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/enter_host_maintenance202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/enter_host_maintenance4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/exit_host_maintenance202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/exit_host_maintenance4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/expand_cluster202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/expand_cluster4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/fetch_node_networking_details202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/fetch_node_networking_details4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/fetch_task_response200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/fetch_task_response4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_bmc_info200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_bmc_info4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_cluster_by_id200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_cluster_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_cluster_profile_by_id200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_cluster_profile_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_cluster_stats200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_cluster_stats4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_disk_by_id200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_disk_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_disk_stats200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_disk_stats4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_host_by_id200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_host_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_host_nic_by_id200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_host_nic_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_host_stats200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_host_stats4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_rackable_unit_by_id200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_rackable_unit_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_rsyslog_server_by_id200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_rsyslog_server_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_snmp_config_by_cluster_id200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_snmp_config_by_cluster_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_snmp_trap_by_id200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_snmp_trap_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_snmp_user_by_id200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_snmp_user_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_storage_container_by_id200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_storage_container_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_storage_container_stats200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_storage_container_stats4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_vcenter_extension_by_id200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_vcenter_extension_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_virtual_nic_by_id200_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/get_virtual_nic_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/list_cluster_profiles200_response.rb +226 -0
- data/lib/nutanix_clustermgmt/models/list_cluster_profiles4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/list_clusters200_response.rb +226 -0
- data/lib/nutanix_clustermgmt/models/list_clusters4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/list_data_stores_by_cluster_id200_response.rb +254 -0
- data/lib/nutanix_clustermgmt/models/list_data_stores_by_cluster_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/list_disks200_response.rb +226 -0
- data/lib/nutanix_clustermgmt/models/list_disks4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/list_host_nics_by_host_id200_response.rb +226 -0
- data/lib/nutanix_clustermgmt/models/list_host_nics_by_host_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/list_hosts200_response.rb +226 -0
- data/lib/nutanix_clustermgmt/models/list_hosts4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/list_hosts_by_cluster_id200_response.rb +226 -0
- data/lib/nutanix_clustermgmt/models/list_hosts_by_cluster_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/list_pcie_devices200_response.rb +226 -0
- data/lib/nutanix_clustermgmt/models/list_pcie_devices4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/list_physical_gpu_profiles200_response.rb +226 -0
- data/lib/nutanix_clustermgmt/models/list_physical_gpu_profiles4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/list_rackable_units_by_cluster_id200_response.rb +254 -0
- data/lib/nutanix_clustermgmt/models/list_rackable_units_by_cluster_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/list_rsyslog_servers_by_cluster_id200_response.rb +254 -0
- data/lib/nutanix_clustermgmt/models/list_rsyslog_servers_by_cluster_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/list_storage_containers200_response.rb +226 -0
- data/lib/nutanix_clustermgmt/models/list_storage_containers4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/list_vcenter_extensions200_response.rb +226 -0
- data/lib/nutanix_clustermgmt/models/list_vcenter_extensions4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/list_virtual_gpu_profiles200_response.rb +226 -0
- data/lib/nutanix_clustermgmt/models/list_virtual_gpu_profiles4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/list_virtual_nics_by_host_id200_response.rb +226 -0
- data/lib/nutanix_clustermgmt/models/list_virtual_nics_by_host_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/mount_storage_container202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/mount_storage_container4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/prism_v40_config_task_reference.rb +237 -0
- data/lib/nutanix_clustermgmt/models/register_vcenter_extension202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/register_vcenter_extension4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/remove_node202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/remove_node4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/remove_snmp_transport202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/remove_snmp_transport4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/unmount_storage_container202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/unmount_storage_container4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/unregister_vcenter_extension202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/unregister_vcenter_extension4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_bmc_info202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_bmc_info4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_cluster_by_id202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_cluster_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_cluster_profile_by_id202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_cluster_profile_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_rsyslog_server_by_id202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_rsyslog_server_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_snmp_status202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_snmp_status4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_snmp_trap_by_id202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_snmp_trap_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_snmp_user_by_id202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_snmp_user_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_storage_container_by_id202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/update_storage_container_by_id4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/validate_node202_response.rb +224 -0
- data/lib/nutanix_clustermgmt/models/validate_node4_xx_response.rb +224 -0
- data/lib/nutanix_clustermgmt/version.rb +15 -0
- data/lib/nutanix_clustermgmt.rb +496 -0
- data/nutanix_clustermgmt.gemspec +39 -0
- data/renovate.json +5 -0
- data/spec/api/bmc_api_spec.rb +64 -0
- data/spec/api/cluster_profiles_api_spec.rb +134 -0
- data/spec/api/clusters_api_spec.rb +686 -0
- data/spec/api/disks_api_spec.rb +105 -0
- data/spec/api/pcie_devices_api_spec.rb +50 -0
- data/spec/api/storage_containers_api_spec.rb +163 -0
- data/spec/api/vcenter_extensions_api_spec.rb +90 -0
- data/spec/models/add_disk202_response_spec.rb +42 -0
- data/spec/models/add_disk4_xx_response_spec.rb +42 -0
- data/spec/models/add_snmp_transport202_response_spec.rb +42 -0
- data/spec/models/add_snmp_transport4_xx_response_spec.rb +42 -0
- data/spec/models/apply_cluster_profile202_response_spec.rb +42 -0
- data/spec/models/apply_cluster_profile4_xx_response_spec.rb +42 -0
- data/spec/models/associate_categories_to_cluster202_response_spec.rb +42 -0
- data/spec/models/associate_categories_to_cluster4_xx_response_spec.rb +42 -0
- data/spec/models/check_hypervisor_requirements202_response_spec.rb +42 -0
- data/spec/models/check_hypervisor_requirements4_xx_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_ahv_config_list_pcie_devices_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_ahv_config_list_pcie_devices_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_ahv_config_pcie_device_configuration_spec.rb +72 -0
- data/spec/models/clustermgmt_v40_ahv_config_pcie_device_spec.rb +84 -0
- data/spec/models/clustermgmt_v40_ahv_config_pcie_device_state_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_acropolis_connection_state_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_add_disk_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_add_snmp_transports_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_address_type_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_apply_cluster_profile_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_associate_categories_to_cluster_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_associate_categories_to_cluster_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_attribute_item_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_authorized_public_key_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_backplane_network_params_spec.rb +54 -0
- data/spec/models/clustermgmt_v40_config_block_item_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_bmc_info_spec.rb +48 -0
- data/spec/models/clustermgmt_v40_config_build_info_spec.rb +36 -0
- data/spec/models/clustermgmt_v40_config_build_reference_spec.rb +60 -0
- data/spec/models/clustermgmt_v40_config_bundle_info_spec.rb +36 -0
- data/spec/models/clustermgmt_v40_config_bundle_param_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_cache_deduplication_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_category_entity_references_spec.rb +36 -0
- data/spec/models/clustermgmt_v40_config_check_hypervisor_requirements_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_cluster_arch_reference_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_cluster_config_reference_spec.rb +144 -0
- data/spec/models/clustermgmt_v40_config_cluster_config_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_cluster_fault_tolerance_ref_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_cluster_function_ref_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_cluster_network_reference_spec.rb +126 -0
- data/spec/models/clustermgmt_v40_config_cluster_network_spec.rb +54 -0
- data/spec/models/clustermgmt_v40_config_cluster_profile_spec.rb +150 -0
- data/spec/models/clustermgmt_v40_config_cluster_reference_list_spec_spec.rb +36 -0
- data/spec/models/clustermgmt_v40_config_cluster_reference_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_cluster_spec.rb +114 -0
- data/spec/models/clustermgmt_v40_config_component_fault_tolerance_spec.rb +60 -0
- data/spec/models/clustermgmt_v40_config_component_type_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_compute_node_item_spec.rb +78 -0
- data/spec/models/clustermgmt_v40_config_compute_non_migratable_vms_spec_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_config_params_spec.rb +78 -0
- data/spec/models/clustermgmt_v40_config_config_type_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_controller_vm_reference_spec.rb +66 -0
- data/spec/models/clustermgmt_v40_config_create_cluster_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_create_cluster_profile_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_create_rsyslog_server_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_create_snmp_trap_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_create_snmp_user_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_create_storage_container_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_credential_status_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_data_store_mount_spec.rb +78 -0
- data/spec/models/clustermgmt_v40_config_data_store_spec.rb +96 -0
- data/spec/models/clustermgmt_v40_config_data_store_unmount_spec.rb +60 -0
- data/spec/models/clustermgmt_v40_config_delete_cluster_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_delete_cluster_profile_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_delete_disk_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_delete_rsyslog_server_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_delete_snmp_trap_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_delete_snmp_user_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_delete_storage_container_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_digital_certificate_map_reference_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_disassociate_categories_from_cluster_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_disassociate_cluster_from_cluster_profile_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_discover_unconfigured_nodes_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_disk_addition_spec_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_disk_advance_config_spec.rb +126 -0
- data/spec/models/clustermgmt_v40_config_disk_partition_info_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_disk_reference_spec.rb +60 -0
- data/spec/models/clustermgmt_v40_config_disk_spec.rb +174 -0
- data/spec/models/clustermgmt_v40_config_disk_status_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_domain_awareness_level_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_domain_fault_tolerance_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_domain_type_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_drive_replacement_option_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_encryption_option_info_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_encryption_scope_info_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_encryption_status_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_erasure_code_status_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_expand_cluster_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_expand_cluster_params_spec.rb +54 -0
- data/spec/models/clustermgmt_v40_config_fault_tolerance_state_spec.rb +66 -0
- data/spec/models/clustermgmt_v40_config_fetch_node_networking_details_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_fetch_task_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_fetch_task_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_get_bmc_info_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_get_bmc_info_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_get_cluster_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_get_cluster_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_get_cluster_profile_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_get_cluster_profile_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_get_disk_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_get_disk_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_get_host_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_get_host_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_get_host_nic_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_get_host_nic_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_get_rackable_unit_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_get_rackable_unit_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_get_rsyslog_server_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_get_rsyslog_server_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_get_snmp_config_by_cluster_id_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_get_snmp_config_by_cluster_id_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_get_snmp_trap_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_get_snmp_trap_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_get_snmp_user_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_get_snmp_user_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_get_storage_container_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_get_storage_container_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_get_vcenter_extension_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_get_vcenter_extension_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_get_virtual_nic_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_get_virtual_nic_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_gpu_mode_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_gpu_type_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_host_gpu_spec.rb +78 -0
- data/spec/models/clustermgmt_v40_config_host_name_param_spec.rb +36 -0
- data/spec/models/clustermgmt_v40_config_host_nic_spec.rb +168 -0
- data/spec/models/clustermgmt_v40_config_host_spec.rb +252 -0
- data/spec/models/clustermgmt_v40_config_host_type_enum_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_http_proxy_config_spec.rb +66 -0
- data/spec/models/clustermgmt_v40_config_http_proxy_type_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_http_proxy_white_list_config_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_http_proxy_white_list_target_type_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_hyperv_credentials_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_hypervisor_iso_map_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_hypervisor_reference_spec.rb +72 -0
- data/spec/models/clustermgmt_v40_config_hypervisor_state_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_hypervisor_type_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_hypervisor_upload_info_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_hypervisor_upload_node_list_item_spec.rb +84 -0
- data/spec/models/clustermgmt_v40_config_hypervisor_upload_param_spec.rb +36 -0
- data/spec/models/clustermgmt_v40_config_ipmi_reference_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_key_management_device_to_cert_status_info_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_key_management_server_type_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_list_cluster_profiles_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_list_cluster_profiles_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_list_clusters_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_list_clusters_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_list_data_stores_by_cluster_id_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_list_data_stores_by_cluster_id_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_list_disks_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_list_disks_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_list_host_nics_by_host_id_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_list_host_nics_by_host_id_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_list_hosts_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_list_hosts_by_cluster_id_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_list_hosts_by_cluster_id_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_list_physical_gpu_profiles_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_list_physical_gpu_profiles_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_list_rackable_units_by_cluster_id_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_list_rackable_units_by_cluster_id_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_list_rsyslog_servers_by_cluster_id_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_list_rsyslog_servers_by_cluster_id_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_list_storage_containers_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_list_storage_containers_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_list_vcenter_extensions_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_list_vcenter_extensions_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_list_virtual_gpu_profiles_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_list_virtual_gpu_profiles_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_list_virtual_nics_by_host_id_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_list_virtual_nics_by_host_id_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_managed_cluster_spec.rb +54 -0
- data/spec/models/clustermgmt_v40_config_management_server_ref_spec.rb +60 -0
- data/spec/models/clustermgmt_v40_config_management_server_type_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_mount_storage_container_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_multi_domain_fault_tolerance_status_spec.rb +54 -0
- data/spec/models/clustermgmt_v40_config_name_mac_ref_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_name_network_ref_spec.rb +48 -0
- data/spec/models/clustermgmt_v40_config_network_info_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_network_switch_interface_spec.rb +126 -0
- data/spec/models/clustermgmt_v40_config_node_details_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_node_discovery_params_spec.rb +66 -0
- data/spec/models/clustermgmt_v40_config_node_info_spec.rb +120 -0
- data/spec/models/clustermgmt_v40_config_node_item_spec.rb +126 -0
- data/spec/models/clustermgmt_v40_config_node_list_item_reference_spec.rb +48 -0
- data/spec/models/clustermgmt_v40_config_node_list_networking_details_spec.rb +120 -0
- data/spec/models/clustermgmt_v40_config_node_network_config_spec.rb +36 -0
- data/spec/models/clustermgmt_v40_config_node_networking_details_spec.rb +48 -0
- data/spec/models/clustermgmt_v40_config_node_param_spec.rb +72 -0
- data/spec/models/clustermgmt_v40_config_node_reference_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_node_removal_extra_param_spec.rb +48 -0
- data/spec/models/clustermgmt_v40_config_node_removal_params_spec.rb +54 -0
- data/spec/models/clustermgmt_v40_config_node_resource_config_spec.rb +54 -0
- data/spec/models/clustermgmt_v40_config_node_status_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_non_compatible_cluster_reference_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_non_migratable_vm_info_spec.rb +48 -0
- data/spec/models/clustermgmt_v40_config_non_migratable_vms_result_spec.rb +54 -0
- data/spec/models/clustermgmt_v40_config_on_disk_dedup_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_operation_mode_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_partition_type_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_physical_gpu_config_spec.rb +90 -0
- data/spec/models/clustermgmt_v40_config_physical_gpu_profile_spec.rb +60 -0
- data/spec/models/clustermgmt_v40_config_pii_scrubbing_level_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_public_key_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_pulse_status_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_rack_reference_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_rackable_unit_model_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_rackable_unit_node_spec.rb +48 -0
- data/spec/models/clustermgmt_v40_config_rackable_unit_spec.rb +84 -0
- data/spec/models/clustermgmt_v40_config_redundancy_status_details_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_register_vcenter_extension_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_remove_node_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_remove_snmp_transports_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_rsyslog_module_item_spec.rb +48 -0
- data/spec/models/clustermgmt_v40_config_rsyslog_module_log_severity_level_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_rsyslog_module_name_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_rsyslog_network_protocol_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_rsyslog_server_spec.rb +78 -0
- data/spec/models/clustermgmt_v40_config_smtp_network_spec.rb +54 -0
- data/spec/models/clustermgmt_v40_config_smtp_server_ref_spec.rb +48 -0
- data/spec/models/clustermgmt_v40_config_smtp_type_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_snmp_auth_type_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_snmp_config_spec.rb +72 -0
- data/spec/models/clustermgmt_v40_config_snmp_priv_type_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_snmp_protocol_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_snmp_status_param_spec.rb +36 -0
- data/spec/models/clustermgmt_v40_config_snmp_transport_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_snmp_trap_spec.rb +102 -0
- data/spec/models/clustermgmt_v40_config_snmp_trap_version_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_snmp_user_spec.rb +78 -0
- data/spec/models/clustermgmt_v40_config_software_map_reference_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_software_type_ref_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_storage_container_spec.rb +210 -0
- data/spec/models/clustermgmt_v40_config_storage_summary_spec.rb +36 -0
- data/spec/models/clustermgmt_v40_config_storage_tier_reference_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_storage_tier_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_task_response_all_of_response_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_task_response_spec.rb +60 -0
- data/spec/models/clustermgmt_v40_config_task_response_type_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_tolerance_message_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_unconfigure_node_details_spec.rb +36 -0
- data/spec/models/clustermgmt_v40_config_unconfigured_node_attribute_map_spec.rb +60 -0
- data/spec/models/clustermgmt_v40_config_unconfigured_node_list_item_spec.rb +156 -0
- data/spec/models/clustermgmt_v40_config_unmount_storage_container_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_unregister_vcenter_extension_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_update_bmc_info_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_update_cluster_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_update_cluster_profile_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_update_rsyslog_server_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_update_snmp_status_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_update_snmp_trap_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_update_snmp_user_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_update_storage_container_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_upgrade_status_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_config_uplink_info_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_uplink_network_item_spec.rb +48 -0
- data/spec/models/clustermgmt_v40_config_uplink_node_spec.rb +48 -0
- data/spec/models/clustermgmt_v40_config_uplinks_field_spec.rb +48 -0
- data/spec/models/clustermgmt_v40_config_uplinks_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_upload_info_node_item_spec.rb +78 -0
- data/spec/models/clustermgmt_v40_config_user_info_spec.rb +48 -0
- data/spec/models/clustermgmt_v40_config_validate_bundle_info_spec.rb +36 -0
- data/spec/models/clustermgmt_v40_config_validate_node_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_validate_node_param_spec.rb +36 -0
- data/spec/models/clustermgmt_v40_config_validate_node_param_spec_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_config_vcenter_credentials_spec.rb +48 -0
- data/spec/models/clustermgmt_v40_config_vcenter_extension_spec.rb +66 -0
- data/spec/models/clustermgmt_v40_config_vcenter_info_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_config_virtual_gpu_config_spec.rb +120 -0
- data/spec/models/clustermgmt_v40_config_virtual_gpu_profile_spec.rb +60 -0
- data/spec/models/clustermgmt_v40_config_virtual_nic_spec.rb +120 -0
- data/spec/models/clustermgmt_v40_error_app_message_spec.rb +66 -0
- data/spec/models/clustermgmt_v40_error_error_response_error_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_error_error_response_spec.rb +36 -0
- data/spec/models/clustermgmt_v40_error_message_severity_spec.rb +30 -0
- data/spec/models/clustermgmt_v40_error_schema_validation_error_message_spec.rb +48 -0
- data/spec/models/clustermgmt_v40_error_schema_validation_error_spec.rb +60 -0
- data/spec/models/clustermgmt_v40_operations_enter_host_maintenance_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_operations_enter_host_maintenance_spec_spec.rb +54 -0
- data/spec/models/clustermgmt_v40_operations_exit_host_maintenance_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_operations_host_maintenance_common_spec_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_stats_cluster_stats_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_stats_cluster_stats_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_stats_cluster_stats_spec.rb +330 -0
- data/spec/models/clustermgmt_v40_stats_disk_stats_spec.rb +246 -0
- data/spec/models/clustermgmt_v40_stats_get_disk_stats_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_stats_get_disk_stats_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_stats_get_storage_container_stats_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_stats_get_storage_container_stats_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_stats_host_stats_api_response_data_spec.rb +32 -0
- data/spec/models/clustermgmt_v40_stats_host_stats_api_response_spec.rb +42 -0
- data/spec/models/clustermgmt_v40_stats_host_stats_spec.rb +324 -0
- data/spec/models/clustermgmt_v40_stats_storage_container_stats_spec.rb +324 -0
- data/spec/models/clustermgmt_v40_stats_time_value_pair_spec.rb +42 -0
- data/spec/models/common_v10_config_basic_auth_spec.rb +42 -0
- data/spec/models/common_v10_config_flag_spec.rb +42 -0
- data/spec/models/common_v10_config_fqdn_spec.rb +36 -0
- data/spec/models/common_v10_config_ip_address_or_fqdn_spec.rb +48 -0
- data/spec/models/common_v10_config_ip_address_spec.rb +42 -0
- data/spec/models/common_v10_config_ipv4_address_spec.rb +42 -0
- data/spec/models/common_v10_config_ipv6_address_spec.rb +42 -0
- data/spec/models/common_v10_config_kv_pair_spec.rb +42 -0
- data/spec/models/common_v10_config_kv_pair_value_spec.rb +32 -0
- data/spec/models/common_v10_config_map_of_string_wrapper_spec.rb +36 -0
- data/spec/models/common_v10_config_message_severity_spec.rb +30 -0
- data/spec/models/common_v10_config_message_spec.rb +54 -0
- data/spec/models/common_v10_config_tenant_aware_model_spec.rb +36 -0
- data/spec/models/common_v10_response_api_link_spec.rb +42 -0
- data/spec/models/common_v10_response_api_response_metadata_spec.rb +60 -0
- data/spec/models/common_v10_response_externalizable_abstract_model_spec.rb +48 -0
- data/spec/models/common_v10_stats_down_sampling_operator_spec.rb +30 -0
- data/spec/models/common_v10_stats_time_int_value_pair_spec.rb +42 -0
- data/spec/models/create_cluster202_response_spec.rb +42 -0
- data/spec/models/create_cluster4_xx_response_spec.rb +42 -0
- data/spec/models/create_cluster_profile202_response_spec.rb +42 -0
- data/spec/models/create_cluster_profile4_xx_response_spec.rb +42 -0
- data/spec/models/create_rsyslog_server202_response_spec.rb +42 -0
- data/spec/models/create_rsyslog_server4_xx_response_spec.rb +42 -0
- data/spec/models/create_snmp_trap202_response_spec.rb +42 -0
- data/spec/models/create_snmp_trap4_xx_response_spec.rb +42 -0
- data/spec/models/create_snmp_user202_response_spec.rb +42 -0
- data/spec/models/create_snmp_user4_xx_response_spec.rb +42 -0
- data/spec/models/create_storage_container202_response_spec.rb +42 -0
- data/spec/models/create_storage_container4_xx_response_spec.rb +42 -0
- data/spec/models/delete_cluster_by_id202_response_spec.rb +42 -0
- data/spec/models/delete_cluster_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/delete_cluster_profile_by_id202_response_spec.rb +42 -0
- data/spec/models/delete_cluster_profile_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/delete_disk_by_id202_response_spec.rb +42 -0
- data/spec/models/delete_disk_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/delete_rsyslog_server_by_id202_response_spec.rb +42 -0
- data/spec/models/delete_rsyslog_server_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/delete_snmp_trap_by_id202_response_spec.rb +42 -0
- data/spec/models/delete_snmp_trap_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/delete_snmp_user_by_id202_response_spec.rb +42 -0
- data/spec/models/delete_snmp_user_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/delete_storage_container_by_id202_response_spec.rb +42 -0
- data/spec/models/delete_storage_container_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/disassociate_categories_from_cluster202_response_spec.rb +42 -0
- data/spec/models/disassociate_categories_from_cluster4_xx_response_spec.rb +42 -0
- data/spec/models/disassociate_cluster_from_cluster_profile202_response_spec.rb +42 -0
- data/spec/models/disassociate_cluster_from_cluster_profile4_xx_response_spec.rb +42 -0
- data/spec/models/discover_unconfigured_nodes202_response_spec.rb +42 -0
- data/spec/models/discover_unconfigured_nodes4_xx_response_spec.rb +42 -0
- data/spec/models/enter_host_maintenance202_response_spec.rb +42 -0
- data/spec/models/enter_host_maintenance4_xx_response_spec.rb +42 -0
- data/spec/models/exit_host_maintenance202_response_spec.rb +42 -0
- data/spec/models/exit_host_maintenance4_xx_response_spec.rb +42 -0
- data/spec/models/expand_cluster202_response_spec.rb +42 -0
- data/spec/models/expand_cluster4_xx_response_spec.rb +42 -0
- data/spec/models/fetch_node_networking_details202_response_spec.rb +42 -0
- data/spec/models/fetch_node_networking_details4_xx_response_spec.rb +42 -0
- data/spec/models/fetch_task_response200_response_spec.rb +42 -0
- data/spec/models/fetch_task_response4_xx_response_spec.rb +42 -0
- data/spec/models/get_bmc_info200_response_spec.rb +42 -0
- data/spec/models/get_bmc_info4_xx_response_spec.rb +42 -0
- data/spec/models/get_cluster_by_id200_response_spec.rb +42 -0
- data/spec/models/get_cluster_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_cluster_profile_by_id200_response_spec.rb +42 -0
- data/spec/models/get_cluster_profile_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_cluster_stats200_response_spec.rb +42 -0
- data/spec/models/get_cluster_stats4_xx_response_spec.rb +42 -0
- data/spec/models/get_disk_by_id200_response_spec.rb +42 -0
- data/spec/models/get_disk_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_disk_stats200_response_spec.rb +42 -0
- data/spec/models/get_disk_stats4_xx_response_spec.rb +42 -0
- data/spec/models/get_host_by_id200_response_spec.rb +42 -0
- data/spec/models/get_host_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_host_nic_by_id200_response_spec.rb +42 -0
- data/spec/models/get_host_nic_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_host_stats200_response_spec.rb +42 -0
- data/spec/models/get_host_stats4_xx_response_spec.rb +42 -0
- data/spec/models/get_rackable_unit_by_id200_response_spec.rb +42 -0
- data/spec/models/get_rackable_unit_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_rsyslog_server_by_id200_response_spec.rb +42 -0
- data/spec/models/get_rsyslog_server_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_snmp_config_by_cluster_id200_response_spec.rb +42 -0
- data/spec/models/get_snmp_config_by_cluster_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_snmp_trap_by_id200_response_spec.rb +42 -0
- data/spec/models/get_snmp_trap_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_snmp_user_by_id200_response_spec.rb +42 -0
- data/spec/models/get_snmp_user_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_storage_container_by_id200_response_spec.rb +42 -0
- data/spec/models/get_storage_container_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_storage_container_stats200_response_spec.rb +42 -0
- data/spec/models/get_storage_container_stats4_xx_response_spec.rb +42 -0
- data/spec/models/get_vcenter_extension_by_id200_response_spec.rb +42 -0
- data/spec/models/get_vcenter_extension_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/get_virtual_nic_by_id200_response_spec.rb +42 -0
- data/spec/models/get_virtual_nic_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/list_cluster_profiles200_response_spec.rb +42 -0
- data/spec/models/list_cluster_profiles4_xx_response_spec.rb +42 -0
- data/spec/models/list_clusters200_response_spec.rb +42 -0
- data/spec/models/list_clusters4_xx_response_spec.rb +42 -0
- data/spec/models/list_data_stores_by_cluster_id200_response_spec.rb +42 -0
- data/spec/models/list_data_stores_by_cluster_id4_xx_response_spec.rb +42 -0
- data/spec/models/list_disks200_response_spec.rb +42 -0
- data/spec/models/list_disks4_xx_response_spec.rb +42 -0
- data/spec/models/list_host_nics_by_host_id200_response_spec.rb +42 -0
- data/spec/models/list_host_nics_by_host_id4_xx_response_spec.rb +42 -0
- data/spec/models/list_hosts200_response_spec.rb +42 -0
- data/spec/models/list_hosts4_xx_response_spec.rb +42 -0
- data/spec/models/list_hosts_by_cluster_id200_response_spec.rb +42 -0
- data/spec/models/list_hosts_by_cluster_id4_xx_response_spec.rb +42 -0
- data/spec/models/list_pcie_devices200_response_spec.rb +42 -0
- data/spec/models/list_pcie_devices4_xx_response_spec.rb +42 -0
- data/spec/models/list_physical_gpu_profiles200_response_spec.rb +42 -0
- data/spec/models/list_physical_gpu_profiles4_xx_response_spec.rb +42 -0
- data/spec/models/list_rackable_units_by_cluster_id200_response_spec.rb +42 -0
- data/spec/models/list_rackable_units_by_cluster_id4_xx_response_spec.rb +42 -0
- data/spec/models/list_rsyslog_servers_by_cluster_id200_response_spec.rb +42 -0
- data/spec/models/list_rsyslog_servers_by_cluster_id4_xx_response_spec.rb +42 -0
- data/spec/models/list_storage_containers200_response_spec.rb +42 -0
- data/spec/models/list_storage_containers4_xx_response_spec.rb +42 -0
- data/spec/models/list_vcenter_extensions200_response_spec.rb +42 -0
- data/spec/models/list_vcenter_extensions4_xx_response_spec.rb +42 -0
- data/spec/models/list_virtual_gpu_profiles200_response_spec.rb +42 -0
- data/spec/models/list_virtual_gpu_profiles4_xx_response_spec.rb +42 -0
- data/spec/models/list_virtual_nics_by_host_id200_response_spec.rb +42 -0
- data/spec/models/list_virtual_nics_by_host_id4_xx_response_spec.rb +42 -0
- data/spec/models/mount_storage_container202_response_spec.rb +42 -0
- data/spec/models/mount_storage_container4_xx_response_spec.rb +42 -0
- data/spec/models/prism_v40_config_task_reference_spec.rb +36 -0
- data/spec/models/register_vcenter_extension202_response_spec.rb +42 -0
- data/spec/models/register_vcenter_extension4_xx_response_spec.rb +42 -0
- data/spec/models/remove_node202_response_spec.rb +42 -0
- data/spec/models/remove_node4_xx_response_spec.rb +42 -0
- data/spec/models/remove_snmp_transport202_response_spec.rb +42 -0
- data/spec/models/remove_snmp_transport4_xx_response_spec.rb +42 -0
- data/spec/models/unmount_storage_container202_response_spec.rb +42 -0
- data/spec/models/unmount_storage_container4_xx_response_spec.rb +42 -0
- data/spec/models/unregister_vcenter_extension202_response_spec.rb +42 -0
- data/spec/models/unregister_vcenter_extension4_xx_response_spec.rb +42 -0
- data/spec/models/update_bmc_info202_response_spec.rb +42 -0
- data/spec/models/update_bmc_info4_xx_response_spec.rb +42 -0
- data/spec/models/update_cluster_by_id202_response_spec.rb +42 -0
- data/spec/models/update_cluster_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/update_cluster_profile_by_id202_response_spec.rb +42 -0
- data/spec/models/update_cluster_profile_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/update_rsyslog_server_by_id202_response_spec.rb +42 -0
- data/spec/models/update_rsyslog_server_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/update_snmp_status202_response_spec.rb +42 -0
- data/spec/models/update_snmp_status4_xx_response_spec.rb +42 -0
- data/spec/models/update_snmp_trap_by_id202_response_spec.rb +42 -0
- data/spec/models/update_snmp_trap_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/update_snmp_user_by_id202_response_spec.rb +42 -0
- data/spec/models/update_snmp_user_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/update_storage_container_by_id202_response_spec.rb +42 -0
- data/spec/models/update_storage_container_by_id4_xx_response_spec.rb +42 -0
- data/spec/models/validate_node202_response_spec.rb +42 -0
- data/spec/models/validate_node4_xx_response_spec.rb +42 -0
- data/spec/spec_helper.rb +111 -0
- data/swagger-clustermgmt-v4.0-all.yaml +25015 -0
- 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 '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. 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, '$orderby=templateName desc' 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 '$apply=groupby((templateName))' 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 '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. 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, '$orderby=templateName desc' 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 '$apply=groupby((templateName))' 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 '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. 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, '$orderby=templateName desc' 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 '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. 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, '$orderby=templateName desc' 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 '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. 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, '$orderby=templateName desc' 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 '$apply=groupby((templateName))' 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 '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. 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, '$orderby=templateName desc' 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 '$apply=groupby((templateName))' 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 '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. 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, '$orderby=templateName desc' 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 '$apply=groupby((templateName))' 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 '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. 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, '$orderby=templateName desc' 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 '$apply=groupby((templateName))' 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 '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. 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, '$orderby=templateName desc' 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 '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. 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, '$orderby=templateName desc' 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 '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. 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, '$orderby=templateName desc' 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 '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. 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, '$orderby=templateName desc' 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 '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. 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, '$orderby=templateName desc' 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 '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'. 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, '$orderby=templateName desc' 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
|