Documentation ¶
Index ¶
- Constants
- type AddUsersForUserManagerRequest
- type AddUsersForUserManagerRequestParams
- type AddUsersForUserManagerResponse
- type AddUsersForUserManagerResponseParams
- type AllNodeResourceSpec
- type ApplicationStatics
- type AutoScaleRecord
- type COSSettings
- type CdbInfo
- type Client
- func (c *Client) AddUsersForUserManager(request *AddUsersForUserManagerRequest) (response *AddUsersForUserManagerResponse, err error)
- func (c *Client) AddUsersForUserManagerWithContext(ctx context.Context, request *AddUsersForUserManagerRequest) (response *AddUsersForUserManagerResponse, err error)
- func (c *Client) CreateCluster(request *CreateClusterRequest) (response *CreateClusterResponse, err error)
- func (c *Client) CreateClusterWithContext(ctx context.Context, request *CreateClusterRequest) (response *CreateClusterResponse, err error)
- func (c *Client) CreateInstance(request *CreateInstanceRequest) (response *CreateInstanceResponse, err error)
- func (c *Client) CreateInstanceWithContext(ctx context.Context, request *CreateInstanceRequest) (response *CreateInstanceResponse, err error)
- func (c *Client) DescribeAutoScaleRecords(request *DescribeAutoScaleRecordsRequest) (response *DescribeAutoScaleRecordsResponse, err error)
- func (c *Client) DescribeAutoScaleRecordsWithContext(ctx context.Context, request *DescribeAutoScaleRecordsRequest) (response *DescribeAutoScaleRecordsResponse, err error)
- func (c *Client) DescribeClusterNodes(request *DescribeClusterNodesRequest) (response *DescribeClusterNodesResponse, err error)
- func (c *Client) DescribeClusterNodesWithContext(ctx context.Context, request *DescribeClusterNodesRequest) (response *DescribeClusterNodesResponse, err error)
- func (c *Client) DescribeEmrApplicationStatics(request *DescribeEmrApplicationStaticsRequest) (response *DescribeEmrApplicationStaticsResponse, err error)
- func (c *Client) DescribeEmrApplicationStaticsWithContext(ctx context.Context, request *DescribeEmrApplicationStaticsRequest) (response *DescribeEmrApplicationStaticsResponse, err error)
- func (c *Client) DescribeHiveQueries(request *DescribeHiveQueriesRequest) (response *DescribeHiveQueriesResponse, err error)
- func (c *Client) DescribeHiveQueriesWithContext(ctx context.Context, request *DescribeHiveQueriesRequest) (response *DescribeHiveQueriesResponse, err error)
- func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
- func (c *Client) DescribeInstancesList(request *DescribeInstancesListRequest) (response *DescribeInstancesListResponse, err error)
- func (c *Client) DescribeInstancesListWithContext(ctx context.Context, request *DescribeInstancesListRequest) (response *DescribeInstancesListResponse, err error)
- func (c *Client) DescribeInstancesWithContext(ctx context.Context, request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
- func (c *Client) DescribeResourceSchedule(request *DescribeResourceScheduleRequest) (response *DescribeResourceScheduleResponse, err error)
- func (c *Client) DescribeResourceScheduleWithContext(ctx context.Context, request *DescribeResourceScheduleRequest) (response *DescribeResourceScheduleResponse, err error)
- func (c *Client) DescribeUsersForUserManager(request *DescribeUsersForUserManagerRequest) (response *DescribeUsersForUserManagerResponse, err error)
- func (c *Client) DescribeUsersForUserManagerWithContext(ctx context.Context, request *DescribeUsersForUserManagerRequest) (response *DescribeUsersForUserManagerResponse, err error)
- func (c *Client) InquiryPriceCreateInstance(request *InquiryPriceCreateInstanceRequest) (response *InquiryPriceCreateInstanceResponse, err error)
- func (c *Client) InquiryPriceCreateInstanceWithContext(ctx context.Context, request *InquiryPriceCreateInstanceRequest) (response *InquiryPriceCreateInstanceResponse, err error)
- func (c *Client) InquiryPriceRenewInstance(request *InquiryPriceRenewInstanceRequest) (response *InquiryPriceRenewInstanceResponse, err error)
- func (c *Client) InquiryPriceRenewInstanceWithContext(ctx context.Context, request *InquiryPriceRenewInstanceRequest) (response *InquiryPriceRenewInstanceResponse, err error)
- func (c *Client) InquiryPriceScaleOutInstance(request *InquiryPriceScaleOutInstanceRequest) (response *InquiryPriceScaleOutInstanceResponse, err error)
- func (c *Client) InquiryPriceScaleOutInstanceWithContext(ctx context.Context, request *InquiryPriceScaleOutInstanceRequest) (response *InquiryPriceScaleOutInstanceResponse, err error)
- func (c *Client) InquiryPriceUpdateInstance(request *InquiryPriceUpdateInstanceRequest) (response *InquiryPriceUpdateInstanceResponse, err error)
- func (c *Client) InquiryPriceUpdateInstanceWithContext(ctx context.Context, request *InquiryPriceUpdateInstanceRequest) (response *InquiryPriceUpdateInstanceResponse, err error)
- func (c *Client) ModifyResourceScheduleConfig(request *ModifyResourceScheduleConfigRequest) (response *ModifyResourceScheduleConfigResponse, err error)
- func (c *Client) ModifyResourceScheduleConfigWithContext(ctx context.Context, request *ModifyResourceScheduleConfigRequest) (response *ModifyResourceScheduleConfigResponse, err error)
- func (c *Client) ModifyResourceScheduler(request *ModifyResourceSchedulerRequest) (response *ModifyResourceSchedulerResponse, err error)
- func (c *Client) ModifyResourceSchedulerWithContext(ctx context.Context, request *ModifyResourceSchedulerRequest) (response *ModifyResourceSchedulerResponse, err error)
- func (c *Client) ModifyResourcesTags(request *ModifyResourcesTagsRequest) (response *ModifyResourcesTagsResponse, err error)
- func (c *Client) ModifyResourcesTagsWithContext(ctx context.Context, request *ModifyResourcesTagsRequest) (response *ModifyResourcesTagsResponse, err error)
- func (c *Client) ModifyUserManagerPwd(request *ModifyUserManagerPwdRequest) (response *ModifyUserManagerPwdResponse, err error)
- func (c *Client) ModifyUserManagerPwdWithContext(ctx context.Context, request *ModifyUserManagerPwdRequest) (response *ModifyUserManagerPwdResponse, err error)
- func (c *Client) ScaleOutCluster(request *ScaleOutClusterRequest) (response *ScaleOutClusterResponse, err error)
- func (c *Client) ScaleOutClusterWithContext(ctx context.Context, request *ScaleOutClusterRequest) (response *ScaleOutClusterResponse, err error)
- func (c *Client) ScaleOutInstance(request *ScaleOutInstanceRequest) (response *ScaleOutInstanceResponse, err error)
- func (c *Client) ScaleOutInstanceWithContext(ctx context.Context, request *ScaleOutInstanceRequest) (response *ScaleOutInstanceResponse, err error)
- func (c *Client) StartStopServiceOrMonitor(request *StartStopServiceOrMonitorRequest) (response *StartStopServiceOrMonitorResponse, err error)
- func (c *Client) StartStopServiceOrMonitorWithContext(ctx context.Context, request *StartStopServiceOrMonitorRequest) (response *StartStopServiceOrMonitorResponse, err error)
- func (c *Client) TerminateClusterNodes(request *TerminateClusterNodesRequest) (response *TerminateClusterNodesResponse, err error)
- func (c *Client) TerminateClusterNodesWithContext(ctx context.Context, request *TerminateClusterNodesRequest) (response *TerminateClusterNodesResponse, err error)
- func (c *Client) TerminateInstance(request *TerminateInstanceRequest) (response *TerminateInstanceResponse, err error)
- func (c *Client) TerminateInstanceWithContext(ctx context.Context, request *TerminateInstanceRequest) (response *TerminateInstanceResponse, err error)
- func (c *Client) TerminateTasks(request *TerminateTasksRequest) (response *TerminateTasksResponse, err error)
- func (c *Client) TerminateTasksWithContext(ctx context.Context, request *TerminateTasksRequest) (response *TerminateTasksResponse, err error)
- type ClusterExternalServiceInfo
- type ClusterIDToFlowID
- type ClusterInstancesInfo
- type ComponentBasicRestartInfo
- type CreateClusterRequest
- type CreateClusterRequestParams
- type CreateClusterResponse
- type CreateClusterResponseParams
- type CreateInstanceRequest
- type CreateInstanceRequestParams
- type CreateInstanceResponse
- type CreateInstanceResponseParams
- type CustomMetaDBInfo
- type CustomMetaInfo
- type CustomServiceDefine
- type DependService
- type DescribeAutoScaleRecordsRequest
- type DescribeAutoScaleRecordsRequestParams
- type DescribeAutoScaleRecordsResponse
- type DescribeAutoScaleRecordsResponseParams
- type DescribeClusterNodesRequest
- type DescribeClusterNodesRequestParams
- type DescribeClusterNodesResponse
- type DescribeClusterNodesResponseParams
- type DescribeEmrApplicationStaticsRequest
- type DescribeEmrApplicationStaticsRequestParams
- type DescribeEmrApplicationStaticsResponse
- type DescribeEmrApplicationStaticsResponseParams
- type DescribeHiveQueriesRequest
- type DescribeHiveQueriesRequestParams
- type DescribeHiveQueriesResponse
- type DescribeHiveQueriesResponseParams
- type DescribeInstancesListRequest
- type DescribeInstancesListRequestParams
- type DescribeInstancesListResponse
- type DescribeInstancesListResponseParams
- type DescribeInstancesRequest
- type DescribeInstancesRequestParams
- type DescribeInstancesResponse
- type DescribeInstancesResponseParams
- type DescribeResourceScheduleRequest
- type DescribeResourceScheduleRequestParams
- type DescribeResourceScheduleResponse
- type DescribeResourceScheduleResponseParams
- type DescribeUsersForUserManagerRequest
- type DescribeUsersForUserManagerRequestParams
- type DescribeUsersForUserManagerResponse
- type DescribeUsersForUserManagerResponseParams
- type DiskSpecInfo
- type DynamicPodSpec
- type EmrListInstance
- type EmrPrice
- type EmrProductConfigOutter
- type ExternalService
- type Filters
- type HiveQuery
- type HostVolumeContext
- type InquiryPriceCreateInstanceRequest
- type InquiryPriceCreateInstanceRequestParams
- type InquiryPriceCreateInstanceResponse
- type InquiryPriceCreateInstanceResponseParams
- type InquiryPriceRenewInstanceRequest
- type InquiryPriceRenewInstanceRequestParams
- type InquiryPriceRenewInstanceResponse
- type InquiryPriceRenewInstanceResponseParams
- type InquiryPriceScaleOutInstanceRequest
- type InquiryPriceScaleOutInstanceRequestParams
- type InquiryPriceScaleOutInstanceResponse
- type InquiryPriceScaleOutInstanceResponseParams
- type InquiryPriceUpdateInstanceRequest
- type InquiryPriceUpdateInstanceRequestParams
- type InquiryPriceUpdateInstanceResponse
- type InquiryPriceUpdateInstanceResponseParams
- type InstanceChargePrepaid
- type KeyValue
- type LoginSettings
- type ModifyResourceScheduleConfigRequest
- type ModifyResourceScheduleConfigRequestParams
- type ModifyResourceScheduleConfigResponse
- type ModifyResourceScheduleConfigResponseParams
- type ModifyResourceSchedulerRequest
- type ModifyResourceSchedulerRequestParams
- type ModifyResourceSchedulerResponse
- type ModifyResourceSchedulerResponseParams
- type ModifyResourceTags
- type ModifyResourcesTagsRequest
- type ModifyResourcesTagsRequestParams
- type ModifyResourcesTagsResponse
- type ModifyResourcesTagsResponseParams
- type ModifyUserManagerPwdRequest
- type ModifyUserManagerPwdRequestParams
- type ModifyUserManagerPwdResponse
- type ModifyUserManagerPwdResponseParams
- type MultiDisk
- type MultiDiskMC
- type MultiZoneSetting
- type NewResourceSpec
- type NodeDetailPriceResult
- type NodeHardwareInfo
- type NodeResourceSpec
- type OpScope
- type OutterResource
- type PartDetailPriceItem
- type PersistentVolumeContext
- type Placement
- type PodNewParameter
- type PodNewSpec
- type PodParameter
- type PodSpec
- type PodSpecInfo
- type PodVolume
- type PreExecuteFileSettings
- type PriceDetail
- type PriceResource
- type Resource
- type ScaleOutClusterRequest
- type ScaleOutClusterRequestParams
- type ScaleOutClusterResponse
- type ScaleOutClusterResponseParams
- type ScaleOutInstanceRequest
- type ScaleOutInstanceRequestParams
- type ScaleOutInstanceResponse
- type ScaleOutInstanceResponseParams
- type ScaleOutNodeConfig
- type SceneSoftwareConfig
- type ScriptBootstrapActionConfig
- type SearchItem
- type ServiceBasicRestartInfo
- type ShortNodeInfo
- type SoftDependInfo
- type StartStopServiceOrMonitorRequest
- type StartStopServiceOrMonitorRequestParams
- type StartStopServiceOrMonitorResponse
- type StartStopServiceOrMonitorResponseParams
- type StrategyConfig
- type SubnetInfo
- type Tag
- type TerminateClusterNodesRequest
- type TerminateClusterNodesRequestParams
- type TerminateClusterNodesResponse
- type TerminateClusterNodesResponseParams
- type TerminateInstanceRequest
- type TerminateInstanceRequestParams
- type TerminateInstanceResponse
- type TerminateInstanceResponseParams
- type TerminateTasksRequest
- type TerminateTasksRequestParams
- type TerminateTasksResponse
- type TerminateTasksResponseParams
- type TopologyInfo
- type UpdateInstanceSettings
- type UserInfoForUserManager
- type UserManagerFilter
- type UserManagerUserBriefInfo
- type VPCSettings
- type VirtualPrivateCloud
- type ZoneDetailPriceResult
- type ZoneResourceConfiguration
Constants ¶
const ( // Operation failed. FAILEDOPERATION = "FailedOperation" // Operation failed. FAILEDOPERATION_CHECKIFSUPPORTPODSTRETCH = "FailedOperation.CheckIfSupportPodStretch" // Failed to fetch resource tag. FAILEDOPERATION_DESCRIBERESOURCETAGSFAILED = "FailedOperation.DescribeResourceTagsFailed" // Duplicate order. Please check the EMR console. FAILEDOPERATION_DUPLICATEORDERNOTALLOWED = "FailedOperation.DuplicateOrderNotAllowed" // Failed to query the CAM role. FAILEDOPERATION_GETCAMROLEFAILED = "FailedOperation.GetCamRoleFailed" // Failed to call the CAM service. FAILEDOPERATION_GETCAMSERVERFAILED = "FailedOperation.GetCamServerFailed" // Failed to fetch the specifications of the CVM. FAILEDOPERATION_GETCVMCONFIGQUOTAFAILED = "FailedOperation.GetCvmConfigQuotaFailed" // Failed to call the CVM service. FAILEDOPERATION_GETCVMSERVERFAILED = "FailedOperation.GetCvmServerFailed" // Failed to call the price inquiry center service. FAILEDOPERATION_GETTRADESERVERFAILED = "FailedOperation.GetTradeServerFailed" // Operation failed. The pods are not supported. FAILEDOPERATION_NOTSUPPORTPOD = "FailedOperation.NotSupportPod" // Operation failed. FAILEDOPERATION_REFUNDCVMFAILED = "FailedOperation.RefundCvmFailed" // Internal error. INTERNALERROR = "InternalError" // An error occurred while calling another service API. INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" // An error occurred while calling another service API. INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" // An error occurred while calling another service API. INTERNALERROR_CAMERROR = "InternalError.CamError" // An error occurred while calling another service API. INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" // An error occurred while calling another service API. INTERNALERROR_CBSERROR = "InternalError.CbsError" // An error occurred while calling another service API. INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" // An error occurred while calling another service API. INTERNALERROR_CDBERROR = "InternalError.CdbError" // CVM or CBS resources are insufficient, or the software is invalid. INTERNALERROR_CHECKQUOTAERR = "InternalError.CheckQuotaErr" // An error occurred while calling another service API. INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" // An error occurred while calling another service API. INTERNALERROR_CVMERROR = "InternalError.CvmError" // Database query error. INTERNALERROR_DBQUERYEXCEPTION = "InternalError.DBQueryException" // Error in calling EKS. INTERNALERROR_EKSERROR = "InternalError.EKSError" // An error occurred while calling another service API. INTERNALERROR_KMSERROR = "InternalError.KmsError" // An error occurred while calling another service API. INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" // An error occurred when calling a security group API. INTERNALERROR_SGERROR = "InternalError.SgError" // An error occurred while calling TKE. INTERNALERROR_TKEERROR = "InternalError.TKEError" // An error occurred while calling another service API. INTERNALERROR_TAGERROR = "InternalError.TagError" // An error occurred while calling another service API. INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" // An error occurred while calling another service API. INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" // An error occurred while calling another service API. INTERNALERROR_VPCERROR = "InternalError.VpcError" // An error occurred while calling another service API. INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" // Invalid parameter. INVALIDPARAMETER = "InvalidParameter" // Parameter error. INVALIDPARAMETER_APPIDRESOURCENOTMATCH = "InvalidParameter.AppIdResourceNotMatch" // Incorrect display policy. INVALIDPARAMETER_DISPLAYSTRATEGYNOTMATCH = "InvalidParameter.DisplayStrategyNotMatch" // Parameter error. INVALIDPARAMETER_HALESSMASTERCOUNT = "InvalidParameter.HALessMasterCount" // Impala query parameter error. INVALIDPARAMETER_IMPALAQUERYEXCEPTION = "InvalidParameter.ImpalaQueryException" // The number of common nodes is invalid. INVALIDPARAMETER_INCORRECTCOMMONCOUNT = "InvalidParameter.IncorrectCommonCount" // The number of master nodes is invalid. INVALIDPARAMETER_INCORRECTMASTERCOUNT = "InvalidParameter.IncorrectMasterCount" // Invalid `AllNodeResourceSpec`. INVALIDPARAMETER_INVALIDALLNODERESOURCESPEC = "InvalidParameter.InvalidAllNodeResourceSpec" // Invalid `AppId`. INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" // Invalid auto-renewal flag. INVALIDPARAMETER_INVALIDAUTORENEW = "InvalidParameter.InvalidAutoRenew" // Invalid ClickHouse cluster. INVALIDPARAMETER_INVALIDCLICKHOUSECLUSTER = "InvalidParameter.InvalidClickHouseCluster" // Invalid `ClientToken`. INVALIDPARAMETER_INVALIDCLIENTTOKEN = "InvalidParameter.InvalidClientToken" // Invalid parameter: ClusterId. INVALIDPARAMETER_INVALIDCLUSTERID = "InvalidParameter.InvalidClusterId" // Invalid parameter. INVALIDPARAMETER_INVALIDCOMMONDISKTYPE = "InvalidParameter.InvalidCommonDiskType" // Invalid component. INVALIDPARAMETER_INVALIDCOMPONENT = "InvalidParameter.InvalidComponent" // The number of core nodes is invalid. INVALIDPARAMETER_INVALIDCORECOUNT = "InvalidParameter.InvalidCoreCount" // Parameter error. INVALIDPARAMETER_INVALIDCOREDISKTYPE = "InvalidParameter.InvalidCoreDiskType" // INVALIDPARAMETER_INVALIDCOSFILEURI = "InvalidParameter.InvalidCosFileURI" // The count must be greater than 0. INVALIDPARAMETER_INVALIDCOUNT = "InvalidParameter.InvalidCount" // A scale-out request only applies to task nodes or core nodes. INVALIDPARAMETER_INVALIDCOUNTNUM = "InvalidParameter.InvalidCountNum" // Error message: Invalid PodParameter. INVALIDPARAMETER_INVALIDCUSTOMIZEDPODPARAM = "InvalidParameter.InvalidCustomizedPodParam" // Conflict between`DependService` and `EnableKerberos`. INVALIDPARAMETER_INVALIDDEPENDSERVICEANDENABLEKERBEROSCONFLICT = "InvalidParameter.InvalidDependServiceAndEnableKerberosConflict" // Invalid number of disks. INVALIDPARAMETER_INVALIDDISKNUM = "InvalidParameter.InvalidDiskNum" // Invalid disk size. INVALIDPARAMETER_INVALIDDISKSIZE = "InvalidParameter.InvalidDiskSize" // Invalid EKS instance. INVALIDPARAMETER_INVALIDEKSINSTANCE = "InvalidParameter.InvalidEksInstance" // Invalid `CustomConfig`. INVALIDPARAMETER_INVALIDEXTENDFIELD = "InvalidParameter.InvalidExtendField" // Invalid filter parameter. INVALIDPARAMETER_INVALIDFILTERKEY = "InvalidParameter.InvalidFilterKey" // Invalid instance billing mode. INVALIDPARAMETER_INVALIDINSTANCECHARGETYPE = "InvalidParameter.InvalidInstanceChargeType" // Invalid cluster name. INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" // Invalid model. INVALIDPARAMETER_INVALIDINSTANCETYPE = "InvalidParameter.InvalidInstanceType" // Invalid process task. INVALIDPARAMETER_INVALIDJOBFLOW = "InvalidParameter.InvalidJobFlow" // Invalid login settings. INVALIDPARAMETER_INVALIDLOGINSETTING = "InvalidParameter.InvalidLoginSetting" // Invalid parameter. INVALIDPARAMETER_INVALIDMASTERDISKTYPE = "InvalidParameter.InvalidMasterDiskType" // Invalid metadatabase URL. INVALIDPARAMETER_INVALIDMETADATAJDBCURL = "InvalidParameter.InvalidMetaDataJdbcUrl" // Invalid metadata table type. INVALIDPARAMETER_INVALIDMETATYPE = "InvalidParameter.InvalidMetaType" // Invalid target specification. INVALIDPARAMETER_INVALIDMODIFYSPEC = "InvalidParameter.InvalidModifySpec" // Incorrect node type. INVALIDPARAMETER_INVALIDNODEFLAG = "InvalidParameter.InvalidNodeFlag" // Invalid `NodeType`. INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" // Invalid password. INVALIDPARAMETER_INVALIDPASSWORD = "InvalidParameter.InvalidPassword" // Invalid billing mode. INVALIDPARAMETER_INVALIDPAYMODE = "InvalidParameter.InvalidPaymode" // Invalid bootstrap script. INVALIDPARAMETER_INVALIDPREEXECUTEDFILE = "InvalidParameter.InvalidPreExecutedFile" // Invalid product ID. INVALIDPARAMETER_INVALIDPRODUCTID = "InvalidParameter.InvalidProductId" // Invalid product version. INVALIDPARAMETER_INVALIDPRODUCTVERSION = "InvalidParameter.InvalidProductVersion" // Invalid project ID. INVALIDPARAMETER_INVALIDPROJECTID = "InvalidParameter.InvalidProjectId" // Invalid auto-renewal identifier. INVALIDPARAMETER_INVALIDRENEWFLAG = "InvalidParameter.InvalidRenewFlag" // Invalid resource ID. INVALIDPARAMETER_INVALIDRESOURCEIDS = "InvalidParameter.InvalidResourceIds" // Invalid resource specification. INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" // Invalid bootstrap script execution parameter. INVALIDPARAMETER_INVALIDSCRIPTBOOTSTRAPACTIONCONFIG = "InvalidParameter.InvalidScriptBootstrapActionConfig" // This EMR version does not support the security mode. INVALIDPARAMETER_INVALIDSECURITYSUPPORT = "InvalidParameter.InvalidSecuritySupport" // Invalid security group ID. INVALIDPARAMETER_INVALIDSERCURITYGRPUPID = "InvalidParameter.InvalidSercurityGrpupId" // The service name is invalid. INVALIDPARAMETER_INVALIDSERVICENAME = "InvalidParameter.InvalidServiceName" // The `ServiceNodeInfo` parameter is invalid or incorrect. INVALIDPARAMETER_INVALIDSERVICENODEINFO = "InvalidParameter.InvalidServiceNodeInfo" // The `InvalidSoftDeployInfo` parameter is invalid or incorrect. INVALIDPARAMETER_INVALIDSOFTDEPLOYINFO = "InvalidParameter.InvalidSoftDeployInfo" // Invalid `SoftInfo`. INVALIDPARAMETER_INVALIDSOFTINFO = "InvalidParameter.InvalidSoftInfo" // Incorrect parameter. INVALIDPARAMETER_INVALIDSOFTWARE = "InvalidParameter.InvalidSoftWare" // The software name is invalid. INVALIDPARAMETER_INVALIDSOFTWARENAME = "InvalidParameter.InvalidSoftWareName" // The software version is invalid. INVALIDPARAMETER_INVALIDSOFTWAREVERSION = "InvalidParameter.InvalidSoftWareVersion" // Invalid `StartTime` or `EndTime` parameter. INVALIDPARAMETER_INVALIDSTARTTIMEORENDTIME = "InvalidParameter.InvalidStartTimeOrEndTime" // Invalid subnet ID. INVALIDPARAMETER_INVALIDSUBNETID = "InvalidParameter.InvalidSubnetId" // Invalid high availability parameter. INVALIDPARAMETER_INVALIDSUPPORTHA = "InvalidParameter.InvalidSupportHA" // The number of task nodes cannot exceed 20. INVALIDPARAMETER_INVALIDTASKCOUNT = "InvalidParameter.InvalidTaskCount" // Invalid `timespan`. INVALIDPARAMETER_INVALIDTIMESPAN = "InvalidParameter.InvalidTimeSpan" // Invalid `TimeUnit`. INVALIDPARAMETER_INVALIDTIMEUNIT = "InvalidParameter.InvalidTimeUnit" // The TKE cluster ID is invalid, or the TKE cluster is not eligible. INVALIDPARAMETER_INVALIDTKEINSTANCE = "InvalidParameter.InvalidTkeInstance" // Invalid unified metadatabase. INVALIDPARAMETER_INVALIDUNIFYMETA = "InvalidParameter.InvalidUnifyMeta" // Invalid VPC ID. INVALIDPARAMETER_INVALIDVPCID = "InvalidParameter.InvalidVpcId" // Invalid AZ. INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" // Invalid identifier for Kerberos support. INVALIDPARAMETER_KERBEROSSUPPORT = "InvalidParameter.KerberosSupport" // Invalid parameter. Necessary components are missing. INVALIDPARAMETER_NOTCONTAINMUSTSELECTSOFTWARE = "InvalidParameter.NotContainMustSelectSoftware" // Invalid sorting field. INVALIDPARAMETER_ORDERFIELDNOTMATCH = "InvalidParameter.OrderFieldNotMatch" // The billing mode and resource do not match. INVALIDPARAMETER_PAYMODERESOURCENOTMATCH = "InvalidParameter.PayModeResourceNotMatch" // The project does not match the resource. INVALIDPARAMETER_PROJECTRESOURCENOTMATCH = "InvalidParameter.ProjectResourceNotMatch" // There is an invalid product component. INVALIDPARAMETER_SOFTWARENOTINPRODUCT = "InvalidParameter.SoftwareNotInProduct" // The policy is not authorized. INVALIDPARAMETER_UNGRANTEDPOLICY = "InvalidParameter.UngrantedPolicy" // The role is not authorized. INVALIDPARAMETER_UNGRANTEDROLE = "InvalidParameter.UngrantedRole" // The AZ and resource do not match. INVALIDPARAMETER_ZONERESOURCENOTMATCH = "InvalidParameter.ZoneResourceNotMatch" // Incorrect parameter value. INVALIDPARAMETERVALUE = "InvalidParameterValue" // The TKE cluster ID is invalid, or the TKE cluster is not eligible. INVALIDPARAMETERVALUE_INVALIDTKEINSTANCE = "InvalidParameterValue.InvalidTkeInstance" // The number of security groups exceeds the limit. LIMITEXCEEDED_SECURITYGROUPNUMLIMITEXCEEDED = "LimitExceeded.SecurityGroupNumLimitExceeded" // Missing parameter. MISSINGPARAMETER = "MissingParameter" // The instance is under workflow. RESOURCEINUSE_INSTANCEINPROCESS = "ResourceInUse.InstanceInProcess" // The disk specification is insufficient. RESOURCEINSUFFICIENT_DISKINSUFFICIENT = "ResourceInsufficient.DiskInsufficient" // The node specification is unsupported or has been sold out. RESOURCEINSUFFICIENT_INSTANCEINSUFFICIENT = "ResourceInsufficient.InstanceInsufficient" // The instance was not found. RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" // Unable to find the specified CVM instance. RESOURCENOTFOUND_CVMINSTANCENOTFOUND = "ResourceNotFound.CvmInstanceNotFound" // No hardware information found. RESOURCENOTFOUND_HARDWAREINFONOTFOUND = "ResourceNotFound.HardwareInfoNotFound" // The instance was not found. RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" // Unable to find the monitoring metadata. RESOURCENOTFOUND_RESOURCENOTFOUND = "ResourceNotFound.ResourceNotFound" // No corresponding subnet found. RESOURCENOTFOUND_SUBNETNOTFOUND = "ResourceNotFound.SubnetNotFound" // Preset components of the TKE cluster are not deployed. RESOURCENOTFOUND_TKEPRECONDITIONNOTFOUND = "ResourceNotFound.TKEPreconditionNotFound" // No specified tag found. RESOURCENOTFOUND_TAGSNOTFOUND = "ResourceNotFound.TagsNotFound" // There is no default value of the current resource spec. RESOURCEUNAVAILABLE_RESOURCESPECNOTDEFAULTSPEC = "ResourceUnavailable.ResourceSpecNotDefaultSpec" // The resources have been sold out. RESOURCESSOLDOUT = "ResourcesSoldOut" // The CBS resources have been sold out. RESOURCESSOLDOUT_CBSSOLDOUT = "ResourcesSoldOut.CbsSoldOut" // CVM instances have been sold out. RESOURCESSOLDOUT_CVMSOLDOUT = "ResourcesSoldOut.CvmSoldOut" // The `appId` is inconsistent. UNAUTHORIZEDOPERATION_APPIDMISMATCHED = "UnauthorizedOperation.AppIdMismatched" // Unauthorized operation. UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth" // Unknown parameter. UNKNOWNPARAMETER = "UnknownParameter" // Unsupported operation. UNSUPPORTEDOPERATION = "UnsupportedOperation" // This function is included in the allowlist. UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhiteList" // This operation is not supported. UNSUPPORTEDOPERATION_SERVICENOTSUPPORT = "UnsupportedOperation.ServiceNotSupport" )
const APIVersion = "2019-01-03"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddUsersForUserManagerRequest ¶
type AddUsersForUserManagerRequest struct { *tchttp.BaseRequest // Cluster string ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // User information list UserManagerUserList []*UserInfoForUserManager `json:"UserManagerUserList,omitnil" name:"UserManagerUserList"` }
func NewAddUsersForUserManagerRequest ¶
func NewAddUsersForUserManagerRequest() (request *AddUsersForUserManagerRequest)
func (*AddUsersForUserManagerRequest) FromJsonString ¶
func (r *AddUsersForUserManagerRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddUsersForUserManagerRequest) ToJsonString ¶
func (r *AddUsersForUserManagerRequest) ToJsonString() string
type AddUsersForUserManagerRequestParams ¶
type AddUsersForUserManagerRequestParams struct { // Cluster string ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // User information list UserManagerUserList []*UserInfoForUserManager `json:"UserManagerUserList,omitnil" name:"UserManagerUserList"` }
Predefined struct for user
type AddUsersForUserManagerResponse ¶
type AddUsersForUserManagerResponse struct { *tchttp.BaseResponse Response *AddUsersForUserManagerResponseParams `json:"Response"` }
func NewAddUsersForUserManagerResponse ¶
func NewAddUsersForUserManagerResponse() (response *AddUsersForUserManagerResponse)
func (*AddUsersForUserManagerResponse) FromJsonString ¶
func (r *AddUsersForUserManagerResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddUsersForUserManagerResponse) ToJsonString ¶
func (r *AddUsersForUserManagerResponse) ToJsonString() string
type AddUsersForUserManagerResponseParams ¶
type AddUsersForUserManagerResponseParams struct { // The user list that is successfully added // Note: This field may return `null`, indicating that no valid value can be obtained. SuccessUserList []*string `json:"SuccessUserList,omitnil" name:"SuccessUserList"` // The user list that is not successfully added // Note: This field may return `null`, indicating that no valid value can be obtained. FailedUserList []*string `json:"FailedUserList,omitnil" name:"FailedUserList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type AllNodeResourceSpec ¶
type AllNodeResourceSpec struct { // The description of master nodes. // Note: This field may return null, indicating that no valid values can be obtained. MasterResourceSpec *NodeResourceSpec `json:"MasterResourceSpec,omitnil" name:"MasterResourceSpec"` // The description of core nodes. // Note: This field may return null, indicating that no valid values can be obtained. CoreResourceSpec *NodeResourceSpec `json:"CoreResourceSpec,omitnil" name:"CoreResourceSpec"` // The description of task nodes. // Note: This field may return null, indicating that no valid values can be obtained. TaskResourceSpec *NodeResourceSpec `json:"TaskResourceSpec,omitnil" name:"TaskResourceSpec"` // The description of common nodes. // Note: This field may return null, indicating that no valid values can be obtained. CommonResourceSpec *NodeResourceSpec `json:"CommonResourceSpec,omitnil" name:"CommonResourceSpec"` // The number of master nodes. // Note: This field may return null, indicating that no valid values can be obtained. MasterCount *int64 `json:"MasterCount,omitnil" name:"MasterCount"` // The number of core nodes. // Note: This field may return null, indicating that no valid values can be obtained. CoreCount *int64 `json:"CoreCount,omitnil" name:"CoreCount"` // The number of task nodes. // Note: This field may return null, indicating that no valid values can be obtained. TaskCount *int64 `json:"TaskCount,omitnil" name:"TaskCount"` // The number of common nodes. // Note: This field may return null, indicating that no valid values can be obtained. CommonCount *int64 `json:"CommonCount,omitnil" name:"CommonCount"` }
type ApplicationStatics ¶
type ApplicationStatics struct { // Queue name Queue *string `json:"Queue,omitnil" name:"Queue"` // Username User *string `json:"User,omitnil" name:"User"` // Application type ApplicationType *string `json:"ApplicationType,omitnil" name:"ApplicationType"` // `SumMemorySeconds` meaning SumMemorySeconds *int64 `json:"SumMemorySeconds,omitnil" name:"SumMemorySeconds"` SumVCoreSeconds *int64 `json:"SumVCoreSeconds,omitnil" name:"SumVCoreSeconds"` // SumHDFSBytesWritten (with unit) SumHDFSBytesWritten *string `json:"SumHDFSBytesWritten,omitnil" name:"SumHDFSBytesWritten"` // SumHDFSBytesRead (with unit) SumHDFSBytesRead *string `json:"SumHDFSBytesRead,omitnil" name:"SumHDFSBytesRead"` // Application count CountApps *int64 `json:"CountApps,omitnil" name:"CountApps"` }
type AutoScaleRecord ¶
type AutoScaleRecord struct { // Name of the scale-in or scale-out rule. StrategyName *string `json:"StrategyName,omitnil" name:"StrategyName"` // "SCALE_OUT" and "SCALE_IN", representing expansion and reduction respectively. ScaleAction *string `json:"ScaleAction,omitnil" name:"ScaleAction"` // The values are "SUCCESS", "FAILED", "PART_SUCCESS", "IN_PROCESS", which indicate success, failure, partial success, and in-progress, respectively. ActionStatus *string `json:"ActionStatus,omitnil" name:"ActionStatus"` // Process initiation time. ActionTime *string `json:"ActionTime,omitnil" name:"ActionTime"` // Description related to auto-scaling. ScaleInfo *string `json:"ScaleInfo,omitnil" name:"ScaleInfo"` // Valid only when ScaleAction is SCALE_OUT. ExpectScaleNum *int64 `json:"ExpectScaleNum,omitnil" name:"ExpectScaleNum"` // Process termination time. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Policy type. Valid values: 1 (load-based scaling), 2 (time-based scaling). StrategyType *int64 `json:"StrategyType,omitnil" name:"StrategyType"` // Specification information used during scale-out. SpecInfo *string `json:"SpecInfo,omitnil" name:"SpecInfo"` // Compensatory scale-out. Valid values: 0 (disabled), 1 (enabled). // Note: This field may return null, indicating that no valid values can be obtained. CompensateFlag *int64 `json:"CompensateFlag,omitnil" name:"CompensateFlag"` // Number of compensations // Note: This field may return null, indicating that no valid values can be obtained. CompensateCount *int64 `json:"CompensateCount,omitnil" name:"CompensateCount"` RetryCount *uint64 `json:"RetryCount,omitnil" name:"RetryCount"` RetryInfo *string `json:"RetryInfo,omitnil" name:"RetryInfo"` }
type COSSettings ¶
type CdbInfo ¶
type CdbInfo struct { // Database instance // Note: this field may return null, indicating that no valid values can be obtained. InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // Database IP // Note: this field may return null, indicating that no valid values can be obtained. Ip *string `json:"Ip,omitnil" name:"Ip"` // Database port // Note: this field may return null, indicating that no valid values can be obtained. Port *int64 `json:"Port,omitnil" name:"Port"` // Database memory specification // Note: this field may return null, indicating that no valid values can be obtained. MemSize *int64 `json:"MemSize,omitnil" name:"MemSize"` // Database disk specification // Note: this field may return null, indicating that no valid values can be obtained. Volume *int64 `json:"Volume,omitnil" name:"Volume"` // Service flag // Note: this field may return null, indicating that no valid values can be obtained. Service *string `json:"Service,omitnil" name:"Service"` // Expiration time // Note: this field may return null, indicating that no valid values can be obtained. ExpireTime *string `json:"ExpireTime,omitnil" name:"ExpireTime"` // Application time // Note: this field may return null, indicating that no valid values can be obtained. ApplyTime *string `json:"ApplyTime,omitnil" name:"ApplyTime"` // Payment type // Note: this field may return null, indicating that no valid values can be obtained. PayType *int64 `json:"PayType,omitnil" name:"PayType"` // Expiration flag // Note: this field may return null, indicating that no valid values can be obtained. ExpireFlag *bool `json:"ExpireFlag,omitnil" name:"ExpireFlag"` // Database status // Note: this field may return null, indicating that no valid values can be obtained. Status *int64 `json:"Status,omitnil" name:"Status"` // Renewal flag // Note: this field may return null, indicating that no valid values can be obtained. IsAutoRenew *int64 `json:"IsAutoRenew,omitnil" name:"IsAutoRenew"` // Database string // Note: this field may return null, indicating that no valid values can be obtained. SerialNo *string `json:"SerialNo,omitnil" name:"SerialNo"` // ZoneId // Note: this field may return null, indicating that no valid values can be obtained. ZoneId *int64 `json:"ZoneId,omitnil" name:"ZoneId"` // RegionId // Note: this field may return null, indicating that no valid values can be obtained. RegionId *int64 `json:"RegionId,omitnil" name:"RegionId"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddUsersForUserManager ¶
func (c *Client) AddUsersForUserManager(request *AddUsersForUserManagerRequest) (response *AddUsersForUserManagerResponse, err error)
AddUsersForUserManager This API is available for clusters with OpenLDAP components configured.
This API is used to add user lists (user management).
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) AddUsersForUserManagerWithContext ¶
func (c *Client) AddUsersForUserManagerWithContext(ctx context.Context, request *AddUsersForUserManagerRequest) (response *AddUsersForUserManagerResponse, err error)
AddUsersForUserManager This API is available for clusters with OpenLDAP components configured.
This API is used to add user lists (user management).
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) CreateCluster ¶
func (c *Client) CreateCluster(request *CreateClusterRequest) (response *CreateClusterResponse, err error)
CreateCluster This API is used to create an EMR cluster instance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_GETCVMSERVERFAILED = "FailedOperation.GetCvmServerFailed" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INVALIDPARAMETER_HALESSMASTERCOUNT = "InvalidParameter.HALessMasterCount" INVALIDPARAMETER_INCORRECTMASTERCOUNT = "InvalidParameter.IncorrectMasterCount" INVALIDPARAMETER_INVALIDALLNODERESOURCESPEC = "InvalidParameter.InvalidAllNodeResourceSpec" INVALIDPARAMETER_INVALIDCOMPONENT = "InvalidParameter.InvalidComponent" INVALIDPARAMETER_INVALIDCORECOUNT = "InvalidParameter.InvalidCoreCount" INVALIDPARAMETER_INVALIDCOREDISKTYPE = "InvalidParameter.InvalidCoreDiskType" INVALIDPARAMETER_INVALIDDEPENDSERVICEANDENABLEKERBEROSCONFLICT = "InvalidParameter.InvalidDependServiceAndEnableKerberosConflict" INVALIDPARAMETER_INVALIDDISKNUM = "InvalidParameter.InvalidDiskNum" INVALIDPARAMETER_INVALIDINSTANCECHARGETYPE = "InvalidParameter.InvalidInstanceChargeType" INVALIDPARAMETER_INVALIDINSTANCETYPE = "InvalidParameter.InvalidInstanceType" INVALIDPARAMETER_INVALIDMASTERDISKTYPE = "InvalidParameter.InvalidMasterDiskType" INVALIDPARAMETER_INVALIDMETATYPE = "InvalidParameter.InvalidMetaType" INVALIDPARAMETER_INVALIDPASSWORD = "InvalidParameter.InvalidPassword" INVALIDPARAMETER_INVALIDPRODUCTVERSION = "InvalidParameter.InvalidProductVersion" INVALIDPARAMETER_INVALIDRENEWFLAG = "InvalidParameter.InvalidRenewFlag" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" INVALIDPARAMETER_INVALIDSCRIPTBOOTSTRAPACTIONCONFIG = "InvalidParameter.InvalidScriptBootstrapActionConfig" INVALIDPARAMETER_INVALIDSOFTINFO = "InvalidParameter.InvalidSoftInfo" INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" INVALIDPARAMETER_KERBEROSSUPPORT = "InvalidParameter.KerberosSupport" RESOURCEINSUFFICIENT_INSTANCEINSUFFICIENT = "ResourceInsufficient.InstanceInsufficient" RESOURCENOTFOUND_SUBNETNOTFOUND = "ResourceNotFound.SubnetNotFound" RESOURCESSOLDOUT_CVMSOLDOUT = "ResourcesSoldOut.CvmSoldOut"
func (*Client) CreateClusterWithContext ¶
func (c *Client) CreateClusterWithContext(ctx context.Context, request *CreateClusterRequest) (response *CreateClusterResponse, err error)
CreateCluster This API is used to create an EMR cluster instance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_GETCVMSERVERFAILED = "FailedOperation.GetCvmServerFailed" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INVALIDPARAMETER_HALESSMASTERCOUNT = "InvalidParameter.HALessMasterCount" INVALIDPARAMETER_INCORRECTMASTERCOUNT = "InvalidParameter.IncorrectMasterCount" INVALIDPARAMETER_INVALIDALLNODERESOURCESPEC = "InvalidParameter.InvalidAllNodeResourceSpec" INVALIDPARAMETER_INVALIDCOMPONENT = "InvalidParameter.InvalidComponent" INVALIDPARAMETER_INVALIDCORECOUNT = "InvalidParameter.InvalidCoreCount" INVALIDPARAMETER_INVALIDCOREDISKTYPE = "InvalidParameter.InvalidCoreDiskType" INVALIDPARAMETER_INVALIDDEPENDSERVICEANDENABLEKERBEROSCONFLICT = "InvalidParameter.InvalidDependServiceAndEnableKerberosConflict" INVALIDPARAMETER_INVALIDDISKNUM = "InvalidParameter.InvalidDiskNum" INVALIDPARAMETER_INVALIDINSTANCECHARGETYPE = "InvalidParameter.InvalidInstanceChargeType" INVALIDPARAMETER_INVALIDINSTANCETYPE = "InvalidParameter.InvalidInstanceType" INVALIDPARAMETER_INVALIDMASTERDISKTYPE = "InvalidParameter.InvalidMasterDiskType" INVALIDPARAMETER_INVALIDMETATYPE = "InvalidParameter.InvalidMetaType" INVALIDPARAMETER_INVALIDPASSWORD = "InvalidParameter.InvalidPassword" INVALIDPARAMETER_INVALIDPRODUCTVERSION = "InvalidParameter.InvalidProductVersion" INVALIDPARAMETER_INVALIDRENEWFLAG = "InvalidParameter.InvalidRenewFlag" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" INVALIDPARAMETER_INVALIDSCRIPTBOOTSTRAPACTIONCONFIG = "InvalidParameter.InvalidScriptBootstrapActionConfig" INVALIDPARAMETER_INVALIDSOFTINFO = "InvalidParameter.InvalidSoftInfo" INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" INVALIDPARAMETER_KERBEROSSUPPORT = "InvalidParameter.KerberosSupport" RESOURCEINSUFFICIENT_INSTANCEINSUFFICIENT = "ResourceInsufficient.InstanceInsufficient" RESOURCENOTFOUND_SUBNETNOTFOUND = "ResourceNotFound.SubnetNotFound" RESOURCESSOLDOUT_CVMSOLDOUT = "ResourcesSoldOut.CvmSoldOut"
func (*Client) CreateInstance ¶
func (c *Client) CreateInstance(request *CreateInstanceRequest) (response *CreateInstanceResponse, err error)
CreateInstance This API is used to create an EMR cluster instance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_DUPLICATEORDERNOTALLOWED = "FailedOperation.DuplicateOrderNotAllowed" FAILEDOPERATION_GETCVMSERVERFAILED = "FailedOperation.GetCvmServerFailed" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CHECKQUOTAERR = "InternalError.CheckQuotaErr" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_HALESSMASTERCOUNT = "InvalidParameter.HALessMasterCount" INVALIDPARAMETER_INCORRECTCOMMONCOUNT = "InvalidParameter.IncorrectCommonCount" INVALIDPARAMETER_INCORRECTMASTERCOUNT = "InvalidParameter.IncorrectMasterCount" INVALIDPARAMETER_INVALIDAUTORENEW = "InvalidParameter.InvalidAutoRenew" INVALIDPARAMETER_INVALIDCLIENTTOKEN = "InvalidParameter.InvalidClientToken" INVALIDPARAMETER_INVALIDCOMPONENT = "InvalidParameter.InvalidComponent" INVALIDPARAMETER_INVALIDCORECOUNT = "InvalidParameter.InvalidCoreCount" INVALIDPARAMETER_INVALIDCOSFILEURI = "InvalidParameter.InvalidCosFileURI" INVALIDPARAMETER_INVALIDDISKSIZE = "InvalidParameter.InvalidDiskSize" INVALIDPARAMETER_INVALIDEXTENDFIELD = "InvalidParameter.InvalidExtendField" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" INVALIDPARAMETER_INVALIDINSTANCETYPE = "InvalidParameter.InvalidInstanceType" INVALIDPARAMETER_INVALIDLOGINSETTING = "InvalidParameter.InvalidLoginSetting" INVALIDPARAMETER_INVALIDMETADATAJDBCURL = "InvalidParameter.InvalidMetaDataJdbcUrl" INVALIDPARAMETER_INVALIDMETATYPE = "InvalidParameter.InvalidMetaType" INVALIDPARAMETER_INVALIDPASSWORD = "InvalidParameter.InvalidPassword" INVALIDPARAMETER_INVALIDPAYMODE = "InvalidParameter.InvalidPaymode" INVALIDPARAMETER_INVALIDPREEXECUTEDFILE = "InvalidParameter.InvalidPreExecutedFile" INVALIDPARAMETER_INVALIDPRODUCTID = "InvalidParameter.InvalidProductId" INVALIDPARAMETER_INVALIDPROJECTID = "InvalidParameter.InvalidProjectId" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" INVALIDPARAMETER_INVALIDSECURITYSUPPORT = "InvalidParameter.InvalidSecuritySupport" INVALIDPARAMETER_INVALIDSERCURITYGRPUPID = "InvalidParameter.InvalidSercurityGrpupId" INVALIDPARAMETER_INVALIDSERVICENAME = "InvalidParameter.InvalidServiceName" INVALIDPARAMETER_INVALIDSOFTDEPLOYINFO = "InvalidParameter.InvalidSoftDeployInfo" INVALIDPARAMETER_INVALIDSOFTINFO = "InvalidParameter.InvalidSoftInfo" INVALIDPARAMETER_INVALIDSOFTWARE = "InvalidParameter.InvalidSoftWare" INVALIDPARAMETER_INVALIDSOFTWARENAME = "InvalidParameter.InvalidSoftWareName" INVALIDPARAMETER_INVALIDSOFTWAREVERSION = "InvalidParameter.InvalidSoftWareVersion" INVALIDPARAMETER_INVALIDSUBNETID = "InvalidParameter.InvalidSubnetId" INVALIDPARAMETER_INVALIDSUPPORTHA = "InvalidParameter.InvalidSupportHA" INVALIDPARAMETER_INVALIDTIMESPAN = "InvalidParameter.InvalidTimeSpan" INVALIDPARAMETER_INVALIDTIMEUNIT = "InvalidParameter.InvalidTimeUnit" INVALIDPARAMETER_INVALIDUNIFYMETA = "InvalidParameter.InvalidUnifyMeta" INVALIDPARAMETER_INVALIDVPCID = "InvalidParameter.InvalidVpcId" INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" INVALIDPARAMETER_NOTCONTAINMUSTSELECTSOFTWARE = "InvalidParameter.NotContainMustSelectSoftware" INVALIDPARAMETER_PAYMODERESOURCENOTMATCH = "InvalidParameter.PayModeResourceNotMatch" INVALIDPARAMETER_SOFTWARENOTINPRODUCT = "InvalidParameter.SoftwareNotInProduct" INVALIDPARAMETER_UNGRANTEDPOLICY = "InvalidParameter.UngrantedPolicy" INVALIDPARAMETER_UNGRANTEDROLE = "InvalidParameter.UngrantedRole" INVALIDPARAMETER_ZONERESOURCENOTMATCH = "InvalidParameter.ZoneResourceNotMatch" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED_SECURITYGROUPNUMLIMITEXCEEDED = "LimitExceeded.SecurityGroupNumLimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT_DISKINSUFFICIENT = "ResourceInsufficient.DiskInsufficient" RESOURCEINSUFFICIENT_INSTANCEINSUFFICIENT = "ResourceInsufficient.InstanceInsufficient" RESOURCENOTFOUND_SUBNETNOTFOUND = "ResourceNotFound.SubnetNotFound" RESOURCENOTFOUND_TAGSNOTFOUND = "ResourceNotFound.TagsNotFound" RESOURCESSOLDOUT = "ResourcesSoldOut" RESOURCESSOLDOUT_CBSSOLDOUT = "ResourcesSoldOut.CbsSoldOut" RESOURCESSOLDOUT_CVMSOLDOUT = "ResourcesSoldOut.CvmSoldOut" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateInstanceWithContext ¶
func (c *Client) CreateInstanceWithContext(ctx context.Context, request *CreateInstanceRequest) (response *CreateInstanceResponse, err error)
CreateInstance This API is used to create an EMR cluster instance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_DUPLICATEORDERNOTALLOWED = "FailedOperation.DuplicateOrderNotAllowed" FAILEDOPERATION_GETCVMSERVERFAILED = "FailedOperation.GetCvmServerFailed" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CHECKQUOTAERR = "InternalError.CheckQuotaErr" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_HALESSMASTERCOUNT = "InvalidParameter.HALessMasterCount" INVALIDPARAMETER_INCORRECTCOMMONCOUNT = "InvalidParameter.IncorrectCommonCount" INVALIDPARAMETER_INCORRECTMASTERCOUNT = "InvalidParameter.IncorrectMasterCount" INVALIDPARAMETER_INVALIDAUTORENEW = "InvalidParameter.InvalidAutoRenew" INVALIDPARAMETER_INVALIDCLIENTTOKEN = "InvalidParameter.InvalidClientToken" INVALIDPARAMETER_INVALIDCOMPONENT = "InvalidParameter.InvalidComponent" INVALIDPARAMETER_INVALIDCORECOUNT = "InvalidParameter.InvalidCoreCount" INVALIDPARAMETER_INVALIDCOSFILEURI = "InvalidParameter.InvalidCosFileURI" INVALIDPARAMETER_INVALIDDISKSIZE = "InvalidParameter.InvalidDiskSize" INVALIDPARAMETER_INVALIDEXTENDFIELD = "InvalidParameter.InvalidExtendField" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" INVALIDPARAMETER_INVALIDINSTANCETYPE = "InvalidParameter.InvalidInstanceType" INVALIDPARAMETER_INVALIDLOGINSETTING = "InvalidParameter.InvalidLoginSetting" INVALIDPARAMETER_INVALIDMETADATAJDBCURL = "InvalidParameter.InvalidMetaDataJdbcUrl" INVALIDPARAMETER_INVALIDMETATYPE = "InvalidParameter.InvalidMetaType" INVALIDPARAMETER_INVALIDPASSWORD = "InvalidParameter.InvalidPassword" INVALIDPARAMETER_INVALIDPAYMODE = "InvalidParameter.InvalidPaymode" INVALIDPARAMETER_INVALIDPREEXECUTEDFILE = "InvalidParameter.InvalidPreExecutedFile" INVALIDPARAMETER_INVALIDPRODUCTID = "InvalidParameter.InvalidProductId" INVALIDPARAMETER_INVALIDPROJECTID = "InvalidParameter.InvalidProjectId" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" INVALIDPARAMETER_INVALIDSECURITYSUPPORT = "InvalidParameter.InvalidSecuritySupport" INVALIDPARAMETER_INVALIDSERCURITYGRPUPID = "InvalidParameter.InvalidSercurityGrpupId" INVALIDPARAMETER_INVALIDSERVICENAME = "InvalidParameter.InvalidServiceName" INVALIDPARAMETER_INVALIDSOFTDEPLOYINFO = "InvalidParameter.InvalidSoftDeployInfo" INVALIDPARAMETER_INVALIDSOFTINFO = "InvalidParameter.InvalidSoftInfo" INVALIDPARAMETER_INVALIDSOFTWARE = "InvalidParameter.InvalidSoftWare" INVALIDPARAMETER_INVALIDSOFTWARENAME = "InvalidParameter.InvalidSoftWareName" INVALIDPARAMETER_INVALIDSOFTWAREVERSION = "InvalidParameter.InvalidSoftWareVersion" INVALIDPARAMETER_INVALIDSUBNETID = "InvalidParameter.InvalidSubnetId" INVALIDPARAMETER_INVALIDSUPPORTHA = "InvalidParameter.InvalidSupportHA" INVALIDPARAMETER_INVALIDTIMESPAN = "InvalidParameter.InvalidTimeSpan" INVALIDPARAMETER_INVALIDTIMEUNIT = "InvalidParameter.InvalidTimeUnit" INVALIDPARAMETER_INVALIDUNIFYMETA = "InvalidParameter.InvalidUnifyMeta" INVALIDPARAMETER_INVALIDVPCID = "InvalidParameter.InvalidVpcId" INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" INVALIDPARAMETER_NOTCONTAINMUSTSELECTSOFTWARE = "InvalidParameter.NotContainMustSelectSoftware" INVALIDPARAMETER_PAYMODERESOURCENOTMATCH = "InvalidParameter.PayModeResourceNotMatch" INVALIDPARAMETER_SOFTWARENOTINPRODUCT = "InvalidParameter.SoftwareNotInProduct" INVALIDPARAMETER_UNGRANTEDPOLICY = "InvalidParameter.UngrantedPolicy" INVALIDPARAMETER_UNGRANTEDROLE = "InvalidParameter.UngrantedRole" INVALIDPARAMETER_ZONERESOURCENOTMATCH = "InvalidParameter.ZoneResourceNotMatch" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED_SECURITYGROUPNUMLIMITEXCEEDED = "LimitExceeded.SecurityGroupNumLimitExceeded" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT_DISKINSUFFICIENT = "ResourceInsufficient.DiskInsufficient" RESOURCEINSUFFICIENT_INSTANCEINSUFFICIENT = "ResourceInsufficient.InstanceInsufficient" RESOURCENOTFOUND_SUBNETNOTFOUND = "ResourceNotFound.SubnetNotFound" RESOURCENOTFOUND_TAGSNOTFOUND = "ResourceNotFound.TagsNotFound" RESOURCESSOLDOUT = "ResourcesSoldOut" RESOURCESSOLDOUT_CBSSOLDOUT = "ResourcesSoldOut.CbsSoldOut" RESOURCESSOLDOUT_CVMSOLDOUT = "ResourcesSoldOut.CvmSoldOut" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeAutoScaleRecords ¶
func (c *Client) DescribeAutoScaleRecords(request *DescribeAutoScaleRecordsRequest) (response *DescribeAutoScaleRecordsResponse, err error)
DescribeAutoScaleRecords This API is used to inquiry detailed records of cluster autoscaling.
error code that may be returned:
INVALIDPARAMETER_INVALIDFILTERKEY = "InvalidParameter.InvalidFilterKey" INVALIDPARAMETER_INVALIDSTARTTIMEORENDTIME = "InvalidParameter.InvalidStartTimeOrEndTime" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) DescribeAutoScaleRecordsWithContext ¶
func (c *Client) DescribeAutoScaleRecordsWithContext(ctx context.Context, request *DescribeAutoScaleRecordsRequest) (response *DescribeAutoScaleRecordsResponse, err error)
DescribeAutoScaleRecords This API is used to inquiry detailed records of cluster autoscaling.
error code that may be returned:
INVALIDPARAMETER_INVALIDFILTERKEY = "InvalidParameter.InvalidFilterKey" INVALIDPARAMETER_INVALIDSTARTTIMEORENDTIME = "InvalidParameter.InvalidStartTimeOrEndTime" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) DescribeClusterNodes ¶
func (c *Client) DescribeClusterNodes(request *DescribeClusterNodesRequest) (response *DescribeClusterNodesResponse, err error)
DescribeClusterNodes This API is used to query the information of nodes in a cluster.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_GETCAMROLEFAILED = "FailedOperation.GetCamRoleFailed" FAILEDOPERATION_GETCAMSERVERFAILED = "FailedOperation.GetCamServerFailed" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeClusterNodesWithContext ¶
func (c *Client) DescribeClusterNodesWithContext(ctx context.Context, request *DescribeClusterNodesRequest) (response *DescribeClusterNodesResponse, err error)
DescribeClusterNodes This API is used to query the information of nodes in a cluster.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_GETCAMROLEFAILED = "FailedOperation.GetCamRoleFailed" FAILEDOPERATION_GETCAMSERVERFAILED = "FailedOperation.GetCamServerFailed" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeEmrApplicationStatics ¶
func (c *Client) DescribeEmrApplicationStatics(request *DescribeEmrApplicationStaticsRequest) (response *DescribeEmrApplicationStaticsResponse, err error)
DescribeEmrApplicationStatics
This API is used to query the Yarn application statistics.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) DescribeEmrApplicationStaticsWithContext ¶
func (c *Client) DescribeEmrApplicationStaticsWithContext(ctx context.Context, request *DescribeEmrApplicationStaticsRequest) (response *DescribeEmrApplicationStaticsResponse, err error)
DescribeEmrApplicationStatics
This API is used to query the Yarn application statistics.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) DescribeHiveQueries ¶
func (c *Client) DescribeHiveQueries(request *DescribeHiveQueriesRequest) (response *DescribeHiveQueriesResponse, err error)
DescribeHiveQueries This API is used to inquiry Hive query data.
error code that may be returned:
INTERNALERROR_DBQUERYEXCEPTION = "InternalError.DBQueryException" INVALIDPARAMETER_IMPALAQUERYEXCEPTION = "InvalidParameter.ImpalaQueryException" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" UNAUTHORIZEDOPERATION_APPIDMISMATCHED = "UnauthorizedOperation.AppIdMismatched"
func (*Client) DescribeHiveQueriesWithContext ¶
func (c *Client) DescribeHiveQueriesWithContext(ctx context.Context, request *DescribeHiveQueriesRequest) (response *DescribeHiveQueriesResponse, err error)
DescribeHiveQueries This API is used to inquiry Hive query data.
error code that may be returned:
INTERNALERROR_DBQUERYEXCEPTION = "InternalError.DBQueryException" INVALIDPARAMETER_IMPALAQUERYEXCEPTION = "InvalidParameter.ImpalaQueryException" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" UNAUTHORIZEDOPERATION_APPIDMISMATCHED = "UnauthorizedOperation.AppIdMismatched"
func (*Client) DescribeInstances ¶
func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
DescribeInstances This API is used to query the information of instances in a cluster.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_DESCRIBERESOURCETAGSFAILED = "FailedOperation.DescribeResourceTagsFailed" FAILEDOPERATION_GETCAMROLEFAILED = "FailedOperation.GetCamRoleFailed" FAILEDOPERATION_GETCAMSERVERFAILED = "FailedOperation.GetCamServerFailed" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_DISPLAYSTRATEGYNOTMATCH = "InvalidParameter.DisplayStrategyNotMatch" INVALIDPARAMETER_INVALIDCLUSTERID = "InvalidParameter.InvalidClusterId" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" INVALIDPARAMETER_ORDERFIELDNOTMATCH = "InvalidParameter.OrderFieldNotMatch" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_HARDWAREINFONOTFOUND = "ResourceNotFound.HardwareInfoNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth"
func (*Client) DescribeInstancesList ¶
func (c *Client) DescribeInstancesList(request *DescribeInstancesListRequest) (response *DescribeInstancesListResponse, err error)
DescribeInstancesList This API is used to query the cluster list.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_DESCRIBERESOURCETAGSFAILED = "FailedOperation.DescribeResourceTagsFailed" FAILEDOPERATION_GETCAMROLEFAILED = "FailedOperation.GetCamRoleFailed" FAILEDOPERATION_GETCAMSERVERFAILED = "FailedOperation.GetCamServerFailed" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_DISPLAYSTRATEGYNOTMATCH = "InvalidParameter.DisplayStrategyNotMatch" INVALIDPARAMETER_INVALIDCLUSTERID = "InvalidParameter.InvalidClusterId" INVALIDPARAMETER_ORDERFIELDNOTMATCH = "InvalidParameter.OrderFieldNotMatch" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth" UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhiteList"
func (*Client) DescribeInstancesListWithContext ¶
func (c *Client) DescribeInstancesListWithContext(ctx context.Context, request *DescribeInstancesListRequest) (response *DescribeInstancesListResponse, err error)
DescribeInstancesList This API is used to query the cluster list.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_DESCRIBERESOURCETAGSFAILED = "FailedOperation.DescribeResourceTagsFailed" FAILEDOPERATION_GETCAMROLEFAILED = "FailedOperation.GetCamRoleFailed" FAILEDOPERATION_GETCAMSERVERFAILED = "FailedOperation.GetCamServerFailed" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_DISPLAYSTRATEGYNOTMATCH = "InvalidParameter.DisplayStrategyNotMatch" INVALIDPARAMETER_INVALIDCLUSTERID = "InvalidParameter.InvalidClusterId" INVALIDPARAMETER_ORDERFIELDNOTMATCH = "InvalidParameter.OrderFieldNotMatch" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth" UNSUPPORTEDOPERATION_NOTINWHITELIST = "UnsupportedOperation.NotInWhiteList"
func (*Client) DescribeInstancesWithContext ¶
func (c *Client) DescribeInstancesWithContext(ctx context.Context, request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
DescribeInstances This API is used to query the information of instances in a cluster.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_DESCRIBERESOURCETAGSFAILED = "FailedOperation.DescribeResourceTagsFailed" FAILEDOPERATION_GETCAMROLEFAILED = "FailedOperation.GetCamRoleFailed" FAILEDOPERATION_GETCAMSERVERFAILED = "FailedOperation.GetCamServerFailed" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_DISPLAYSTRATEGYNOTMATCH = "InvalidParameter.DisplayStrategyNotMatch" INVALIDPARAMETER_INVALIDCLUSTERID = "InvalidParameter.InvalidClusterId" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" INVALIDPARAMETER_ORDERFIELDNOTMATCH = "InvalidParameter.OrderFieldNotMatch" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_HARDWAREINFONOTFOUND = "ResourceNotFound.HardwareInfoNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth"
func (*Client) DescribeResourceSchedule ¶
func (c *Client) DescribeResourceSchedule(request *DescribeResourceScheduleRequest) (response *DescribeResourceScheduleResponse, err error)
DescribeResourceSchedule This API is used to query the data of YARN Resource Scheduling.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) DescribeResourceScheduleWithContext ¶
func (c *Client) DescribeResourceScheduleWithContext(ctx context.Context, request *DescribeResourceScheduleRequest) (response *DescribeResourceScheduleResponse, err error)
DescribeResourceSchedule This API is used to query the data of YARN Resource Scheduling.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) DescribeUsersForUserManager ¶
func (c *Client) DescribeUsersForUserManager(request *DescribeUsersForUserManagerRequest) (response *DescribeUsersForUserManagerResponse, err error)
DescribeUsersForUserManager This API is available for clusters with OpenLDAP components configured.
This API is used to export users in batches. For a Kerberos cluster, set `NeedKeytabInfo` to `true` to obtain the download link of the Keytab file. If `SupportDownLoadKeyTab` is `true`, but `DownLoadKeyTabUrl` is null, the Keytab file is not ready yet (being generated) in the backend.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth"
func (*Client) DescribeUsersForUserManagerWithContext ¶
func (c *Client) DescribeUsersForUserManagerWithContext(ctx context.Context, request *DescribeUsersForUserManagerRequest) (response *DescribeUsersForUserManagerResponse, err error)
DescribeUsersForUserManager This API is available for clusters with OpenLDAP components configured.
This API is used to export users in batches. For a Kerberos cluster, set `NeedKeytabInfo` to `true` to obtain the download link of the Keytab file. If `SupportDownLoadKeyTab` is `true`, but `DownLoadKeyTabUrl` is null, the Keytab file is not ready yet (being generated) in the backend.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth"
func (*Client) InquiryPriceCreateInstance ¶
func (c *Client) InquiryPriceCreateInstance(request *InquiryPriceCreateInstanceRequest) (response *InquiryPriceCreateInstanceResponse, err error)
InquiryPriceCreateInstance This API is used to query price of instance creation.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_GETCAMSERVERFAILED = "FailedOperation.GetCamServerFailed" FAILEDOPERATION_GETTRADESERVERFAILED = "FailedOperation.GetTradeServerFailed" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_HALESSMASTERCOUNT = "InvalidParameter.HALessMasterCount" INVALIDPARAMETER_INCORRECTCOMMONCOUNT = "InvalidParameter.IncorrectCommonCount" INVALIDPARAMETER_INCORRECTMASTERCOUNT = "InvalidParameter.IncorrectMasterCount" INVALIDPARAMETER_INVALIDCOMMONDISKTYPE = "InvalidParameter.InvalidCommonDiskType" INVALIDPARAMETER_INVALIDCORECOUNT = "InvalidParameter.InvalidCoreCount" INVALIDPARAMETER_INVALIDINSTANCETYPE = "InvalidParameter.InvalidInstanceType" INVALIDPARAMETER_INVALIDMASTERDISKTYPE = "InvalidParameter.InvalidMasterDiskType" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" INVALIDPARAMETER_INVALIDSOFTWARENAME = "InvalidParameter.InvalidSoftWareName" INVALIDPARAMETER_INVALIDTIMEUNIT = "InvalidParameter.InvalidTimeUnit" INVALIDPARAMETER_INVALIDUNIFYMETA = "InvalidParameter.InvalidUnifyMeta" INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" INVALIDPARAMETER_NOTCONTAINMUSTSELECTSOFTWARE = "InvalidParameter.NotContainMustSelectSoftware" INVALIDPARAMETER_SOFTWARENOTINPRODUCT = "InvalidParameter.SoftwareNotInProduct" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT_DISKINSUFFICIENT = "ResourceInsufficient.DiskInsufficient" RESOURCEINSUFFICIENT_INSTANCEINSUFFICIENT = "ResourceInsufficient.InstanceInsufficient" RESOURCENOTFOUND_SUBNETNOTFOUND = "ResourceNotFound.SubnetNotFound" RESOURCESSOLDOUT = "ResourcesSoldOut" RESOURCESSOLDOUT_CBSSOLDOUT = "ResourcesSoldOut.CbsSoldOut" RESOURCESSOLDOUT_CVMSOLDOUT = "ResourcesSoldOut.CvmSoldOut" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) InquiryPriceCreateInstanceWithContext ¶
func (c *Client) InquiryPriceCreateInstanceWithContext(ctx context.Context, request *InquiryPriceCreateInstanceRequest) (response *InquiryPriceCreateInstanceResponse, err error)
InquiryPriceCreateInstance This API is used to query price of instance creation.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_GETCAMSERVERFAILED = "FailedOperation.GetCamServerFailed" FAILEDOPERATION_GETTRADESERVERFAILED = "FailedOperation.GetTradeServerFailed" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_HALESSMASTERCOUNT = "InvalidParameter.HALessMasterCount" INVALIDPARAMETER_INCORRECTCOMMONCOUNT = "InvalidParameter.IncorrectCommonCount" INVALIDPARAMETER_INCORRECTMASTERCOUNT = "InvalidParameter.IncorrectMasterCount" INVALIDPARAMETER_INVALIDCOMMONDISKTYPE = "InvalidParameter.InvalidCommonDiskType" INVALIDPARAMETER_INVALIDCORECOUNT = "InvalidParameter.InvalidCoreCount" INVALIDPARAMETER_INVALIDINSTANCETYPE = "InvalidParameter.InvalidInstanceType" INVALIDPARAMETER_INVALIDMASTERDISKTYPE = "InvalidParameter.InvalidMasterDiskType" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" INVALIDPARAMETER_INVALIDSOFTWARENAME = "InvalidParameter.InvalidSoftWareName" INVALIDPARAMETER_INVALIDTIMEUNIT = "InvalidParameter.InvalidTimeUnit" INVALIDPARAMETER_INVALIDUNIFYMETA = "InvalidParameter.InvalidUnifyMeta" INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" INVALIDPARAMETER_NOTCONTAINMUSTSELECTSOFTWARE = "InvalidParameter.NotContainMustSelectSoftware" INVALIDPARAMETER_SOFTWARENOTINPRODUCT = "InvalidParameter.SoftwareNotInProduct" INVALIDPARAMETERVALUE = "InvalidParameterValue" MISSINGPARAMETER = "MissingParameter" RESOURCEINSUFFICIENT_DISKINSUFFICIENT = "ResourceInsufficient.DiskInsufficient" RESOURCEINSUFFICIENT_INSTANCEINSUFFICIENT = "ResourceInsufficient.InstanceInsufficient" RESOURCENOTFOUND_SUBNETNOTFOUND = "ResourceNotFound.SubnetNotFound" RESOURCESSOLDOUT = "ResourcesSoldOut" RESOURCESSOLDOUT_CBSSOLDOUT = "ResourcesSoldOut.CbsSoldOut" RESOURCESSOLDOUT_CVMSOLDOUT = "ResourcesSoldOut.CvmSoldOut" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) InquiryPriceRenewInstance ¶
func (c *Client) InquiryPriceRenewInstance(request *InquiryPriceRenewInstanceRequest) (response *InquiryPriceRenewInstanceResponse, err error)
InquiryPriceRenewInstance This API is used to query the price for renewal.
error code that may be returned:
FAILEDOPERATION_GETCVMSERVERFAILED = "FailedOperation.GetCvmServerFailed" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CHECKQUOTAERR = "InternalError.CheckQuotaErr" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER_INVALIDRESOURCEIDS = "InvalidParameter.InvalidResourceIds" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" INVALIDPARAMETER_INVALIDTIMESPAN = "InvalidParameter.InvalidTimeSpan" INVALIDPARAMETER_INVALIDTIMEUNIT = "InvalidParameter.InvalidTimeUnit" INVALIDPARAMETER_PAYMODERESOURCENOTMATCH = "InvalidParameter.PayModeResourceNotMatch" INVALIDPARAMETER_PROJECTRESOURCENOTMATCH = "InvalidParameter.ProjectResourceNotMatch" INVALIDPARAMETER_ZONERESOURCENOTMATCH = "InvalidParameter.ZoneResourceNotMatch" RESOURCEINUSE_INSTANCEINPROCESS = "ResourceInUse.InstanceInProcess" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_RESOURCENOTFOUND = "ResourceNotFound.ResourceNotFound"
func (*Client) InquiryPriceRenewInstanceWithContext ¶
func (c *Client) InquiryPriceRenewInstanceWithContext(ctx context.Context, request *InquiryPriceRenewInstanceRequest) (response *InquiryPriceRenewInstanceResponse, err error)
InquiryPriceRenewInstance This API is used to query the price for renewal.
error code that may be returned:
FAILEDOPERATION_GETCVMSERVERFAILED = "FailedOperation.GetCvmServerFailed" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CHECKQUOTAERR = "InternalError.CheckQuotaErr" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER_INVALIDRESOURCEIDS = "InvalidParameter.InvalidResourceIds" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" INVALIDPARAMETER_INVALIDTIMESPAN = "InvalidParameter.InvalidTimeSpan" INVALIDPARAMETER_INVALIDTIMEUNIT = "InvalidParameter.InvalidTimeUnit" INVALIDPARAMETER_PAYMODERESOURCENOTMATCH = "InvalidParameter.PayModeResourceNotMatch" INVALIDPARAMETER_PROJECTRESOURCENOTMATCH = "InvalidParameter.ProjectResourceNotMatch" INVALIDPARAMETER_ZONERESOURCENOTMATCH = "InvalidParameter.ZoneResourceNotMatch" RESOURCEINUSE_INSTANCEINPROCESS = "ResourceInUse.InstanceInProcess" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_RESOURCENOTFOUND = "ResourceNotFound.ResourceNotFound"
func (*Client) InquiryPriceScaleOutInstance ¶
func (c *Client) InquiryPriceScaleOutInstance(request *InquiryPriceScaleOutInstanceRequest) (response *InquiryPriceScaleOutInstanceResponse, err error)
InquiryPriceScaleOutInstance This API is used to query price of scale-out.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CHECKQUOTAERR = "InternalError.CheckQuotaErr" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" INVALIDPARAMETER_INVALIDCORECOUNT = "InvalidParameter.InvalidCoreCount" INVALIDPARAMETER_INVALIDCOUNTNUM = "InvalidParameter.InvalidCountNum" INVALIDPARAMETER_INVALIDINSTANCETYPE = "InvalidParameter.InvalidInstanceType" INVALIDPARAMETER_INVALIDMODIFYSPEC = "InvalidParameter.InvalidModifySpec" INVALIDPARAMETER_INVALIDPAYMODE = "InvalidParameter.InvalidPaymode" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" INVALIDPARAMETER_INVALIDTIMESPAN = "InvalidParameter.InvalidTimeSpan" INVALIDPARAMETER_INVALIDTIMEUNIT = "InvalidParameter.InvalidTimeUnit" INVALIDPARAMETER_INVALIDVPCID = "InvalidParameter.InvalidVpcId" RESOURCEINSUFFICIENT_DISKINSUFFICIENT = "ResourceInsufficient.DiskInsufficient" RESOURCEINSUFFICIENT_INSTANCEINSUFFICIENT = "ResourceInsufficient.InstanceInsufficient" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_RESOURCESPECNOTDEFAULTSPEC = "ResourceUnavailable.ResourceSpecNotDefaultSpec" RESOURCESSOLDOUT_CVMSOLDOUT = "ResourcesSoldOut.CvmSoldOut"
func (*Client) InquiryPriceScaleOutInstanceWithContext ¶
func (c *Client) InquiryPriceScaleOutInstanceWithContext(ctx context.Context, request *InquiryPriceScaleOutInstanceRequest) (response *InquiryPriceScaleOutInstanceResponse, err error)
InquiryPriceScaleOutInstance This API is used to query price of scale-out.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CHECKQUOTAERR = "InternalError.CheckQuotaErr" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" INVALIDPARAMETER_INVALIDCORECOUNT = "InvalidParameter.InvalidCoreCount" INVALIDPARAMETER_INVALIDCOUNTNUM = "InvalidParameter.InvalidCountNum" INVALIDPARAMETER_INVALIDINSTANCETYPE = "InvalidParameter.InvalidInstanceType" INVALIDPARAMETER_INVALIDMODIFYSPEC = "InvalidParameter.InvalidModifySpec" INVALIDPARAMETER_INVALIDPAYMODE = "InvalidParameter.InvalidPaymode" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" INVALIDPARAMETER_INVALIDTIMESPAN = "InvalidParameter.InvalidTimeSpan" INVALIDPARAMETER_INVALIDTIMEUNIT = "InvalidParameter.InvalidTimeUnit" INVALIDPARAMETER_INVALIDVPCID = "InvalidParameter.InvalidVpcId" RESOURCEINSUFFICIENT_DISKINSUFFICIENT = "ResourceInsufficient.DiskInsufficient" RESOURCEINSUFFICIENT_INSTANCEINSUFFICIENT = "ResourceInsufficient.InstanceInsufficient" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_RESOURCESPECNOTDEFAULTSPEC = "ResourceUnavailable.ResourceSpecNotDefaultSpec" RESOURCESSOLDOUT_CVMSOLDOUT = "ResourcesSoldOut.CvmSoldOut"
func (*Client) InquiryPriceUpdateInstance ¶
func (c *Client) InquiryPriceUpdateInstance(request *InquiryPriceUpdateInstanceRequest) (response *InquiryPriceUpdateInstanceResponse, err error)
InquiryPriceUpdateInstance This API is used to query price of scaling.
error code that may be returned:
FAILEDOPERATION_GETTRADESERVERFAILED = "FailedOperation.GetTradeServerFailed" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CHECKQUOTAERR = "InternalError.CheckQuotaErr" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" INVALIDPARAMETER_INVALIDCLUSTERID = "InvalidParameter.InvalidClusterId" INVALIDPARAMETER_INVALIDMODIFYSPEC = "InvalidParameter.InvalidModifySpec" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" INVALIDPARAMETER_INVALIDTIMESPAN = "InvalidParameter.InvalidTimeSpan" INVALIDPARAMETER_INVALIDTIMEUNIT = "InvalidParameter.InvalidTimeUnit" INVALIDPARAMETER_INVALIDVPCID = "InvalidParameter.InvalidVpcId" INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" INVALIDPARAMETER_ZONERESOURCENOTMATCH = "InvalidParameter.ZoneResourceNotMatch" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_RESOURCENOTFOUND = "ResourceNotFound.ResourceNotFound"
func (*Client) InquiryPriceUpdateInstanceWithContext ¶
func (c *Client) InquiryPriceUpdateInstanceWithContext(ctx context.Context, request *InquiryPriceUpdateInstanceRequest) (response *InquiryPriceUpdateInstanceResponse, err error)
InquiryPriceUpdateInstance This API is used to query price of scaling.
error code that may be returned:
FAILEDOPERATION_GETTRADESERVERFAILED = "FailedOperation.GetTradeServerFailed" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CHECKQUOTAERR = "InternalError.CheckQuotaErr" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" INVALIDPARAMETER_INVALIDCLUSTERID = "InvalidParameter.InvalidClusterId" INVALIDPARAMETER_INVALIDMODIFYSPEC = "InvalidParameter.InvalidModifySpec" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" INVALIDPARAMETER_INVALIDTIMESPAN = "InvalidParameter.InvalidTimeSpan" INVALIDPARAMETER_INVALIDTIMEUNIT = "InvalidParameter.InvalidTimeUnit" INVALIDPARAMETER_INVALIDVPCID = "InvalidParameter.InvalidVpcId" INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" INVALIDPARAMETER_ZONERESOURCENOTMATCH = "InvalidParameter.ZoneResourceNotMatch" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_RESOURCENOTFOUND = "ResourceNotFound.ResourceNotFound"
func (*Client) ModifyResourceScheduleConfig ¶
func (c *Client) ModifyResourceScheduleConfig(request *ModifyResourceScheduleConfigRequest) (response *ModifyResourceScheduleConfigResponse, err error)
ModifyResourceScheduleConfig This API is used to modify the resource configuration of YARN Resource Scheduling.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth"
func (*Client) ModifyResourceScheduleConfigWithContext ¶
func (c *Client) ModifyResourceScheduleConfigWithContext(ctx context.Context, request *ModifyResourceScheduleConfigRequest) (response *ModifyResourceScheduleConfigResponse, err error)
ModifyResourceScheduleConfig This API is used to modify the resource configuration of YARN Resource Scheduling.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth"
func (*Client) ModifyResourceScheduler ¶
func (c *Client) ModifyResourceScheduler(request *ModifyResourceSchedulerRequest) (response *ModifyResourceSchedulerResponse, err error)
ModifyResourceScheduler This API is used to modify the YARN resource scheduler (the change will take effect after you click Apply).
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) ModifyResourceSchedulerWithContext ¶
func (c *Client) ModifyResourceSchedulerWithContext(ctx context.Context, request *ModifyResourceSchedulerRequest) (response *ModifyResourceSchedulerResponse, err error)
ModifyResourceScheduler This API is used to modify the YARN resource scheduler (the change will take effect after you click Apply).
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) ModifyResourcesTags ¶
func (c *Client) ModifyResourcesTags(request *ModifyResourcesTagsRequest) (response *ModifyResourcesTagsResponse, err error)
ModifyResourcesTags This API is used to forcibly modify tags.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyResourcesTagsWithContext ¶
func (c *Client) ModifyResourcesTagsWithContext(ctx context.Context, request *ModifyResourcesTagsRequest) (response *ModifyResourcesTagsResponse, err error)
ModifyResourcesTags This API is used to forcibly modify tags.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) ModifyUserManagerPwd ¶
func (c *Client) ModifyUserManagerPwd(request *ModifyUserManagerPwdRequest) (response *ModifyUserManagerPwdResponse, err error)
ModifyUserManagerPwd This API is used to change user password (user management).
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth"
func (*Client) ModifyUserManagerPwdWithContext ¶
func (c *Client) ModifyUserManagerPwdWithContext(ctx context.Context, request *ModifyUserManagerPwdRequest) (response *ModifyUserManagerPwdResponse, err error)
ModifyUserManagerPwd This API is used to change user password (user management).
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth"
func (*Client) ScaleOutCluster ¶
func (c *Client) ScaleOutCluster(request *ScaleOutClusterRequest) (response *ScaleOutClusterResponse, err error)
ScaleOutCluster This API is used to scale out a cluster.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_GETCVMCONFIGQUOTAFAILED = "FailedOperation.GetCvmConfigQuotaFailed" INVALIDPARAMETER_INVALIDINSTANCECHARGETYPE = "InvalidParameter.InvalidInstanceChargeType" INVALIDPARAMETER_INVALIDINSTANCETYPE = "InvalidParameter.InvalidInstanceType" INVALIDPARAMETER_INVALIDNODEFLAG = "InvalidParameter.InvalidNodeFlag" INVALIDPARAMETER_INVALIDSOFTDEPLOYINFO = "InvalidParameter.InvalidSoftDeployInfo" RESOURCEINUSE_INSTANCEINPROCESS = "ResourceInUse.InstanceInProcess" RESOURCEINSUFFICIENT_DISKINSUFFICIENT = "ResourceInsufficient.DiskInsufficient" RESOURCEINSUFFICIENT_INSTANCEINSUFFICIENT = "ResourceInsufficient.InstanceInsufficient" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_RESOURCESPECNOTDEFAULTSPEC = "ResourceUnavailable.ResourceSpecNotDefaultSpec"
func (*Client) ScaleOutClusterWithContext ¶
func (c *Client) ScaleOutClusterWithContext(ctx context.Context, request *ScaleOutClusterRequest) (response *ScaleOutClusterResponse, err error)
ScaleOutCluster This API is used to scale out a cluster.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_GETCVMCONFIGQUOTAFAILED = "FailedOperation.GetCvmConfigQuotaFailed" INVALIDPARAMETER_INVALIDINSTANCECHARGETYPE = "InvalidParameter.InvalidInstanceChargeType" INVALIDPARAMETER_INVALIDINSTANCETYPE = "InvalidParameter.InvalidInstanceType" INVALIDPARAMETER_INVALIDNODEFLAG = "InvalidParameter.InvalidNodeFlag" INVALIDPARAMETER_INVALIDSOFTDEPLOYINFO = "InvalidParameter.InvalidSoftDeployInfo" RESOURCEINUSE_INSTANCEINPROCESS = "ResourceInUse.InstanceInProcess" RESOURCEINSUFFICIENT_DISKINSUFFICIENT = "ResourceInsufficient.DiskInsufficient" RESOURCEINSUFFICIENT_INSTANCEINSUFFICIENT = "ResourceInsufficient.InstanceInsufficient" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCEUNAVAILABLE_RESOURCESPECNOTDEFAULTSPEC = "ResourceUnavailable.ResourceSpecNotDefaultSpec"
func (*Client) ScaleOutInstance ¶
func (c *Client) ScaleOutInstance(request *ScaleOutInstanceRequest) (response *ScaleOutInstanceResponse, err error)
ScaleOutInstance This API is used to scale out instances.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CHECKIFSUPPORTPODSTRETCH = "FailedOperation.CheckIfSupportPodStretch" FAILEDOPERATION_DUPLICATEORDERNOTALLOWED = "FailedOperation.DuplicateOrderNotAllowed" FAILEDOPERATION_GETCVMCONFIGQUOTAFAILED = "FailedOperation.GetCvmConfigQuotaFailed" FAILEDOPERATION_GETCVMSERVERFAILED = "FailedOperation.GetCvmServerFailed" FAILEDOPERATION_NOTSUPPORTPOD = "FailedOperation.NotSupportPod" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_EKSERROR = "InternalError.EKSError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TKEERROR = "InternalError.TKEError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_APPIDRESOURCENOTMATCH = "InvalidParameter.AppIdResourceNotMatch" INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" INVALIDPARAMETER_INVALIDCLICKHOUSECLUSTER = "InvalidParameter.InvalidClickHouseCluster" INVALIDPARAMETER_INVALIDCLIENTTOKEN = "InvalidParameter.InvalidClientToken" INVALIDPARAMETER_INVALIDCLUSTERID = "InvalidParameter.InvalidClusterId" INVALIDPARAMETER_INVALIDCORECOUNT = "InvalidParameter.InvalidCoreCount" INVALIDPARAMETER_INVALIDCOUNT = "InvalidParameter.InvalidCount" INVALIDPARAMETER_INVALIDCOUNTNUM = "InvalidParameter.InvalidCountNum" INVALIDPARAMETER_INVALIDCUSTOMIZEDPODPARAM = "InvalidParameter.InvalidCustomizedPodParam" INVALIDPARAMETER_INVALIDEKSINSTANCE = "InvalidParameter.InvalidEksInstance" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" INVALIDPARAMETER_INVALIDJOBFLOW = "InvalidParameter.InvalidJobFlow" INVALIDPARAMETER_INVALIDPAYMODE = "InvalidParameter.InvalidPaymode" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" INVALIDPARAMETER_INVALIDSERCURITYGRPUPID = "InvalidParameter.InvalidSercurityGrpupId" INVALIDPARAMETER_INVALIDSERVICENODEINFO = "InvalidParameter.InvalidServiceNodeInfo" INVALIDPARAMETER_INVALIDSOFTDEPLOYINFO = "InvalidParameter.InvalidSoftDeployInfo" INVALIDPARAMETER_INVALIDTASKCOUNT = "InvalidParameter.InvalidTaskCount" INVALIDPARAMETER_INVALIDTIMESPAN = "InvalidParameter.InvalidTimeSpan" INVALIDPARAMETER_INVALIDTIMEUNIT = "InvalidParameter.InvalidTimeUnit" INVALIDPARAMETER_INVALIDTKEINSTANCE = "InvalidParameter.InvalidTkeInstance" INVALIDPARAMETERVALUE_INVALIDTKEINSTANCE = "InvalidParameterValue.InvalidTkeInstance" RESOURCEINUSE_INSTANCEINPROCESS = "ResourceInUse.InstanceInProcess" RESOURCEINSUFFICIENT_DISKINSUFFICIENT = "ResourceInsufficient.DiskInsufficient" RESOURCEINSUFFICIENT_INSTANCEINSUFFICIENT = "ResourceInsufficient.InstanceInsufficient" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_TKEPRECONDITIONNOTFOUND = "ResourceNotFound.TKEPreconditionNotFound" RESOURCENOTFOUND_TAGSNOTFOUND = "ResourceNotFound.TagsNotFound" RESOURCEUNAVAILABLE_RESOURCESPECNOTDEFAULTSPEC = "ResourceUnavailable.ResourceSpecNotDefaultSpec" RESOURCESSOLDOUT = "ResourcesSoldOut" RESOURCESSOLDOUT_CBSSOLDOUT = "ResourcesSoldOut.CbsSoldOut" RESOURCESSOLDOUT_CVMSOLDOUT = "ResourcesSoldOut.CvmSoldOut"
func (*Client) ScaleOutInstanceWithContext ¶
func (c *Client) ScaleOutInstanceWithContext(ctx context.Context, request *ScaleOutInstanceRequest) (response *ScaleOutInstanceResponse, err error)
ScaleOutInstance This API is used to scale out instances.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CHECKIFSUPPORTPODSTRETCH = "FailedOperation.CheckIfSupportPodStretch" FAILEDOPERATION_DUPLICATEORDERNOTALLOWED = "FailedOperation.DuplicateOrderNotAllowed" FAILEDOPERATION_GETCVMCONFIGQUOTAFAILED = "FailedOperation.GetCvmConfigQuotaFailed" FAILEDOPERATION_GETCVMSERVERFAILED = "FailedOperation.GetCvmServerFailed" FAILEDOPERATION_NOTSUPPORTPOD = "FailedOperation.NotSupportPod" INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_EKSERROR = "InternalError.EKSError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TKEERROR = "InternalError.TKEError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_APPIDRESOURCENOTMATCH = "InvalidParameter.AppIdResourceNotMatch" INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" INVALIDPARAMETER_INVALIDCLICKHOUSECLUSTER = "InvalidParameter.InvalidClickHouseCluster" INVALIDPARAMETER_INVALIDCLIENTTOKEN = "InvalidParameter.InvalidClientToken" INVALIDPARAMETER_INVALIDCLUSTERID = "InvalidParameter.InvalidClusterId" INVALIDPARAMETER_INVALIDCORECOUNT = "InvalidParameter.InvalidCoreCount" INVALIDPARAMETER_INVALIDCOUNT = "InvalidParameter.InvalidCount" INVALIDPARAMETER_INVALIDCOUNTNUM = "InvalidParameter.InvalidCountNum" INVALIDPARAMETER_INVALIDCUSTOMIZEDPODPARAM = "InvalidParameter.InvalidCustomizedPodParam" INVALIDPARAMETER_INVALIDEKSINSTANCE = "InvalidParameter.InvalidEksInstance" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" INVALIDPARAMETER_INVALIDJOBFLOW = "InvalidParameter.InvalidJobFlow" INVALIDPARAMETER_INVALIDPAYMODE = "InvalidParameter.InvalidPaymode" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" INVALIDPARAMETER_INVALIDSERCURITYGRPUPID = "InvalidParameter.InvalidSercurityGrpupId" INVALIDPARAMETER_INVALIDSERVICENODEINFO = "InvalidParameter.InvalidServiceNodeInfo" INVALIDPARAMETER_INVALIDSOFTDEPLOYINFO = "InvalidParameter.InvalidSoftDeployInfo" INVALIDPARAMETER_INVALIDTASKCOUNT = "InvalidParameter.InvalidTaskCount" INVALIDPARAMETER_INVALIDTIMESPAN = "InvalidParameter.InvalidTimeSpan" INVALIDPARAMETER_INVALIDTIMEUNIT = "InvalidParameter.InvalidTimeUnit" INVALIDPARAMETER_INVALIDTKEINSTANCE = "InvalidParameter.InvalidTkeInstance" INVALIDPARAMETERVALUE_INVALIDTKEINSTANCE = "InvalidParameterValue.InvalidTkeInstance" RESOURCEINUSE_INSTANCEINPROCESS = "ResourceInUse.InstanceInProcess" RESOURCEINSUFFICIENT_DISKINSUFFICIENT = "ResourceInsufficient.DiskInsufficient" RESOURCEINSUFFICIENT_INSTANCEINSUFFICIENT = "ResourceInsufficient.InstanceInsufficient" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_TKEPRECONDITIONNOTFOUND = "ResourceNotFound.TKEPreconditionNotFound" RESOURCENOTFOUND_TAGSNOTFOUND = "ResourceNotFound.TagsNotFound" RESOURCEUNAVAILABLE_RESOURCESPECNOTDEFAULTSPEC = "ResourceUnavailable.ResourceSpecNotDefaultSpec" RESOURCESSOLDOUT = "ResourcesSoldOut" RESOURCESSOLDOUT_CBSSOLDOUT = "ResourcesSoldOut.CbsSoldOut" RESOURCESSOLDOUT_CVMSOLDOUT = "ResourcesSoldOut.CvmSoldOut"
func (*Client) StartStopServiceOrMonitor ¶
func (c *Client) StartStopServiceOrMonitor(request *StartStopServiceOrMonitorRequest) (response *StartStopServiceOrMonitorResponse, err error)
StartStopServiceOrMonitor This API is used to start, stop, or restart services.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" INVALIDPARAMETER_INVALIDJOBFLOW = "InvalidParameter.InvalidJobFlow" RESOURCEINUSE_INSTANCEINPROCESS = "ResourceInUse.InstanceInProcess" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth" UNSUPPORTEDOPERATION_SERVICENOTSUPPORT = "UnsupportedOperation.ServiceNotSupport"
func (*Client) StartStopServiceOrMonitorWithContext ¶
func (c *Client) StartStopServiceOrMonitorWithContext(ctx context.Context, request *StartStopServiceOrMonitorRequest) (response *StartStopServiceOrMonitorResponse, err error)
StartStopServiceOrMonitor This API is used to start, stop, or restart services.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" INVALIDPARAMETER_INVALIDJOBFLOW = "InvalidParameter.InvalidJobFlow" RESOURCEINUSE_INSTANCEINPROCESS = "ResourceInUse.InstanceInProcess" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth" UNSUPPORTEDOPERATION_SERVICENOTSUPPORT = "UnsupportedOperation.ServiceNotSupport"
func (*Client) TerminateClusterNodes ¶
func (c *Client) TerminateClusterNodes(request *TerminateClusterNodesRequest) (response *TerminateClusterNodesResponse, err error)
TerminateClusterNodes This API is used to terminate cluster nodes.
error code that may be returned:
INVALIDPARAMETER_INVALIDNODEFLAG = "InvalidParameter.InvalidNodeFlag" INVALIDPARAMETER_INVALIDRESOURCEIDS = "InvalidParameter.InvalidResourceIds" RESOURCEINUSE_INSTANCEINPROCESS = "ResourceInUse.InstanceInProcess" RESOURCENOTFOUND_CVMINSTANCENOTFOUND = "ResourceNotFound.CvmInstanceNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) TerminateClusterNodesWithContext ¶
func (c *Client) TerminateClusterNodesWithContext(ctx context.Context, request *TerminateClusterNodesRequest) (response *TerminateClusterNodesResponse, err error)
TerminateClusterNodes This API is used to terminate cluster nodes.
error code that may be returned:
INVALIDPARAMETER_INVALIDNODEFLAG = "InvalidParameter.InvalidNodeFlag" INVALIDPARAMETER_INVALIDRESOURCEIDS = "InvalidParameter.InvalidResourceIds" RESOURCEINUSE_INSTANCEINPROCESS = "ResourceInUse.InstanceInProcess" RESOURCENOTFOUND_CVMINSTANCENOTFOUND = "ResourceNotFound.CvmInstanceNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
func (*Client) TerminateInstance ¶
func (c *Client) TerminateInstance(request *TerminateInstanceRequest) (response *TerminateInstanceResponse, err error)
TerminateInstance This API is used to terminate EMR instances. It is only supported in the official paid edition of EMR.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_REFUNDCVMFAILED = "FailedOperation.RefundCvmFailed" INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" INVALIDPARAMETER_INVALIDCLUSTERID = "InvalidParameter.InvalidClusterId" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" RESOURCEINUSE_INSTANCEINPROCESS = "ResourceInUse.InstanceInProcess" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth" UNSUPPORTEDOPERATION_SERVICENOTSUPPORT = "UnsupportedOperation.ServiceNotSupport"
func (*Client) TerminateInstanceWithContext ¶
func (c *Client) TerminateInstanceWithContext(ctx context.Context, request *TerminateInstanceRequest) (response *TerminateInstanceResponse, err error)
TerminateInstance This API is used to terminate EMR instances. It is only supported in the official paid edition of EMR.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_REFUNDCVMFAILED = "FailedOperation.RefundCvmFailed" INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" INVALIDPARAMETER_INVALIDCLUSTERID = "InvalidParameter.InvalidClusterId" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" RESOURCEINUSE_INSTANCEINPROCESS = "ResourceInUse.InstanceInProcess" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNAUTHORIZEDOPERATION_CHECKCAMAUTH = "UnauthorizedOperation.CheckCamAuth" UNSUPPORTEDOPERATION_SERVICENOTSUPPORT = "UnsupportedOperation.ServiceNotSupport"
func (*Client) TerminateTasks ¶
func (c *Client) TerminateTasks(request *TerminateTasksRequest) (response *TerminateTasksResponse, err error)
TerminateTasks This API is used to terminate a task node.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" INVALIDPARAMETER_INVALIDJOBFLOW = "InvalidParameter.InvalidJobFlow" INVALIDPARAMETER_INVALIDRESOURCEIDS = "InvalidParameter.InvalidResourceIds" RESOURCEINUSE_INSTANCEINPROCESS = "ResourceInUse.InstanceInProcess" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_RESOURCENOTFOUND = "ResourceNotFound.ResourceNotFound" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) TerminateTasksWithContext ¶
func (c *Client) TerminateTasksWithContext(ctx context.Context, request *TerminateTasksRequest) (response *TerminateTasksResponse, err error)
TerminateTasks This API is used to terminate a task node.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_ACCOUNTCGWERROR = "InternalError.AccountCgwError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_CAMERROR = "InternalError.CamError" INTERNALERROR_CBSCGWERROR = "InternalError.CbsCgwError" INTERNALERROR_CBSERROR = "InternalError.CbsError" INTERNALERROR_CDBCGWERROR = "InternalError.CdbCgwError" INTERNALERROR_CDBERROR = "InternalError.CdbError" INTERNALERROR_CONFIGCGWERROR = "InternalError.ConfigCgwError" INTERNALERROR_CVMERROR = "InternalError.CvmError" INTERNALERROR_KMSERROR = "InternalError.KmsError" INTERNALERROR_PROJECTCGWERROR = "InternalError.ProjectCgwError" INTERNALERROR_SGERROR = "InternalError.SgError" INTERNALERROR_TAGERROR = "InternalError.TagError" INTERNALERROR_TRADECGWERROR = "InternalError.TradeCgwError" INTERNALERROR_VPCCGWERROR = "InternalError.VpcCgwError" INTERNALERROR_VPCERROR = "InternalError.VpcError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" INVALIDPARAMETER_INVALIDJOBFLOW = "InvalidParameter.InvalidJobFlow" INVALIDPARAMETER_INVALIDRESOURCEIDS = "InvalidParameter.InvalidResourceIds" RESOURCEINUSE_INSTANCEINPROCESS = "ResourceInUse.InstanceInProcess" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" RESOURCENOTFOUND_RESOURCENOTFOUND = "ResourceNotFound.ResourceNotFound" UNKNOWNPARAMETER = "UnknownParameter" UNSUPPORTEDOPERATION = "UnsupportedOperation"
type ClusterExternalServiceInfo ¶
type ClusterExternalServiceInfo struct { // Dependency. `0`: Other clusters depend on the current cluster. `1`: The current cluster depends on other clusters. // Note: This field may return `null`, indicating that no valid values can be obtained. DependType *int64 `json:"DependType,omitnil" name:"DependType"` // Shared component // Note: This field may return `null`, indicating that no valid values can be obtained. Service *string `json:"Service,omitnil" name:"Service"` // Sharing cluster // Note: This field may return `null`, indicating that no valid values can be obtained. ClusterId *string `json:"ClusterId,omitnil" name:"ClusterId"` // Sharing cluster status // Note: This field may return `null`, indicating that no valid values can be obtained. ClusterStatus *int64 `json:"ClusterStatus,omitnil" name:"ClusterStatus"` }
type ClusterIDToFlowID ¶
type ClusterIDToFlowID struct { // Cluster IDNote: This field may return null, indicating that no valid values can be obtained. ClusterId *string `json:"ClusterId,omitnil" name:"ClusterId"` // Process ID // Note: This field may return null, indicating that no valid values can be obtained. FlowId *uint64 `json:"FlowId,omitnil" name:"FlowId"` }
type ClusterInstancesInfo ¶
type ClusterInstancesInfo struct { // ID // Note: this field may return null, indicating that no valid values can be obtained. Id *int64 `json:"Id,omitnil" name:"Id"` // Cluster ID // Note: this field may return null, indicating that no valid values can be obtained. ClusterId *string `json:"ClusterId,omitnil" name:"ClusterId"` // Title // Note: this field may return null, indicating that no valid values can be obtained. Ftitle *string `json:"Ftitle,omitnil" name:"Ftitle"` // Cluster name // Note: this field may return null, indicating that no valid values can be obtained. ClusterName *string `json:"ClusterName,omitnil" name:"ClusterName"` // Region ID // Note: this field may return null, indicating that no valid values can be obtained. RegionId *int64 `json:"RegionId,omitnil" name:"RegionId"` // Region ID // Note: this field may return null, indicating that no valid values can be obtained. ZoneId *int64 `json:"ZoneId,omitnil" name:"ZoneId"` // User APPID // Note: this field may return null, indicating that no valid values can be obtained. AppId *int64 `json:"AppId,omitnil" name:"AppId"` // User UIN // Note: this field may return null, indicating that no valid values can be obtained. Uin *string `json:"Uin,omitnil" name:"Uin"` // Project ID // Note: this field may return null, indicating that no valid values can be obtained. ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // Cluster `VPCID` // Note: this field may return null, indicating that no valid values can be obtained. VpcId *int64 `json:"VpcId,omitnil" name:"VpcId"` // Subnet ID // Note: this field may return null, indicating that no valid values can be obtained. SubnetId *int64 `json:"SubnetId,omitnil" name:"SubnetId"` // Instance status code. Value range: // <li>2: cluster running</li> // <li>3: creating cluster.</li> // <li>4: scaling out cluster.</li> // <li>5: adding router node in cluster.</li> // <li>6: installing component in cluster.</li> // <li>7: cluster executing command.</li> // <li>8: restarting service.</li> // <li>9: entering maintenance.</li> // <li>10: suspending service.</li> // <li>11: exiting maintenance.</li> // <li>12: exiting suspension.</li> // <li>13: delivering configuration.</li> // <li>14: terminating cluster.</li> // <li>15: terminating core node.</li> // <li>16: terminating task node.</li> // <li>17: terminating router node.</li> // <li>18: changing webproxy password.</li> // <li>19: isolating cluster.</li> // <li>20: resuming cluster.</li> // <li>21: repossessing cluster.</li> // <li>22: waiting for configuration adjustment.</li> // <li>23: cluster isolated.</li> // <li>24: removing node.</li> // <li>33: waiting for refund.</li> // <li>34: refunded.</li> // <li>301: creation failed.</li> // <li>302: scale-out failed.</li> // Note: this field may return null, indicating that no valid values can be obtained. Status *int64 `json:"Status,omitnil" name:"Status"` // Creation time // Note: this field may return null, indicating that no valid values can be obtained. AddTime *string `json:"AddTime,omitnil" name:"AddTime"` // Execution duration // Note: this field may return null, indicating that no valid values can be obtained. RunTime *string `json:"RunTime,omitnil" name:"RunTime"` // Cluster product configuration information // Note: this field may return null, indicating that no valid values can be obtained. Config *EmrProductConfigOutter `json:"Config,omitnil" name:"Config"` // Public IP of master node // Note: this field may return null, indicating that no valid values can be obtained. MasterIp *string `json:"MasterIp,omitnil" name:"MasterIp"` // EMR version // Note: this field may return null, indicating that no valid values can be obtained. EmrVersion *string `json:"EmrVersion,omitnil" name:"EmrVersion"` // Billing mode // Note: this field may return null, indicating that no valid values can be obtained. ChargeType *int64 `json:"ChargeType,omitnil" name:"ChargeType"` // Transaction version // Note: this field may return null, indicating that no valid values can be obtained. TradeVersion *int64 `json:"TradeVersion,omitnil" name:"TradeVersion"` // Resource order ID // Note: this field may return null, indicating that no valid values can be obtained. ResourceOrderId *int64 `json:"ResourceOrderId,omitnil" name:"ResourceOrderId"` // Whether this is a paid cluster // Note: this field may return null, indicating that no valid values can be obtained. IsTradeCluster *int64 `json:"IsTradeCluster,omitnil" name:"IsTradeCluster"` // Alarm information for cluster error // Note: this field may return null, indicating that no valid values can be obtained. AlarmInfo *string `json:"AlarmInfo,omitnil" name:"AlarmInfo"` // Whether the new architecture is used // Note: this field may return null, indicating that no valid values can be obtained. IsWoodpeckerCluster *int64 `json:"IsWoodpeckerCluster,omitnil" name:"IsWoodpeckerCluster"` // Metadatabase information // Note: this field may return null, indicating that no valid values can be obtained. MetaDb *string `json:"MetaDb,omitnil" name:"MetaDb"` // Tag information // Note: this field may return null, indicating that no valid values can be obtained. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // Hive metadata // Note: this field may return null, indicating that no valid values can be obtained. HiveMetaDb *string `json:"HiveMetaDb,omitnil" name:"HiveMetaDb"` // Cluster type: EMR, CLICKHOUSE, DRUID // Note: this field may return null, indicating that no valid values can be obtained. ServiceClass *string `json:"ServiceClass,omitnil" name:"ServiceClass"` // Alias serialization of all nodes in cluster // Note: this field may return null, indicating that no valid values can be obtained. AliasInfo *string `json:"AliasInfo,omitnil" name:"AliasInfo"` // Cluster version ID // Note: this field may return null, indicating that no valid values can be obtained. ProductId *int64 `json:"ProductId,omitnil" name:"ProductId"` // Availability zone // Note: this field may return `null`, indicating that no valid value can be obtained. Zone *string `json:"Zone,omitnil" name:"Zone"` // Scenario name // Note: This field may return `null`, indicating that no valid value was found. SceneName *string `json:"SceneName,omitnil" name:"SceneName"` // Scenario-based cluster type // Note: This field may return `null`, indicating that no valid value was found. SceneServiceClass *string `json:"SceneServiceClass,omitnil" name:"SceneServiceClass"` // Scenario-based EMR version // Note: This field may return `null`, indicating that no valid value was found. SceneEmrVersion *string `json:"SceneEmrVersion,omitnil" name:"SceneEmrVersion"` // Scenario-based cluster type // Note: This field may return `null`, indicating that no valid value was found. DisplayName *string `json:"DisplayName,omitnil" name:"DisplayName"` // VPC name // Note: This field may return `null`, indicating that no valid value was found. VpcName *string `json:"VpcName,omitnil" name:"VpcName"` // Subnet name // Note: This field may return `null`, indicating that no valid value was found. SubnetName *string `json:"SubnetName,omitnil" name:"SubnetName"` // Cluster dependency // Note: This field may return `null`, indicating that no valid value was found. ClusterExternalServiceInfo []*ClusterExternalServiceInfo `json:"ClusterExternalServiceInfo,omitnil" name:"ClusterExternalServiceInfo"` // The VPC ID string type of the cluster // Note: This field may return `null`, indicating that no valid values can be obtained. UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // The subnet ID string type of the cluster // Note: This field may return `null`, indicating that no valid values can be obtained. UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // Node information // Note: This field may return `null`, indicating that no valid values can be obtained. TopologyInfoList []*TopologyInfo `json:"TopologyInfoList,omitnil" name:"TopologyInfoList"` // Multi-AZ cluster // Note: This field may return `null`, indicating that no valid values can be obtained. IsMultiZoneCluster *bool `json:"IsMultiZoneCluster,omitnil" name:"IsMultiZoneCluster"` // Whether the feature of automatic abnormal node replacement is enabled. // Note: This field may return null, indicating that no valid values can be obtained. IsCvmReplace *bool `json:"IsCvmReplace,omitnil" name:"IsCvmReplace"` }
type ComponentBasicRestartInfo ¶
type ComponentBasicRestartInfo struct { // The process name (required), such as NameNode. // Note: This field may return null, indicating that no valid values can be obtained. ComponentName *string `json:"ComponentName,omitnil" name:"ComponentName"` // The target IP list. // Note: This field may return null, indicating that no valid values can be obtained. IpList []*string `json:"IpList,omitnil" name:"IpList"` }
type CreateClusterRequest ¶
type CreateClusterRequest struct { *tchttp.BaseRequest // The EMR version, such as `EMR-V2.3.0` that indicates the version 2.3.0 of EMR. You can query the EMR version [here](https://intl.cloud.tencent.com/document/product/589/66338?from_cn_redirect=1). ProductVersion *string `json:"ProductVersion,omitnil" name:"ProductVersion"` // Whether to enable high availability for nodes. Valid values: // <li>`true`: Enable</li> // <li>`false`: Disable</li> EnableSupportHAFlag *bool `json:"EnableSupportHAFlag,omitnil" name:"EnableSupportHAFlag"` // The instance name. // <li>Length limit: 6–36 characters.</li> // <li>Can contain only Chinese characters, letters, digits, hyphens (-), and underscores (_).</li> InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // The instance billing mode. Valid values: // <li>`POSTPAID_BY_HOUR`: The postpaid mode by hour.</li> InstanceChargeType *string `json:"InstanceChargeType,omitnil" name:"InstanceChargeType"` // The instance login setting. This parameter allows you to set a login password or key for your purchased node. // <li>If a key is set, the password will be used for login to the native component WebUI only.</li> // <li>If no key is set, the password will be used for login to all purchased nodes and the native component WebUI.</li> LoginSettings *LoginSettings `json:"LoginSettings,omitnil" name:"LoginSettings"` // The configuration of cluster application scenario and supported components. SceneSoftwareConfig *SceneSoftwareConfig `json:"SceneSoftwareConfig,omitnil" name:"SceneSoftwareConfig"` // The details of the monthly subscription, including the instance period and auto-renewal. It is required if `InstanceChargeType` is `PREPAID`. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil" name:"InstanceChargePrepaid"` // The ID of the security group to which the instance belongs, in the format of `sg-xxxxxxxx`. You can call the [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1) API and obtain this parameter from the `SecurityGroupId` field in the response. SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil" name:"SecurityGroupIds"` // The [Bootstrap action](https://intl.cloud.tencent.com/document/product/589/35656?from_cn_redirect=1) script settings. ScriptBootstrapActionConfig []*ScriptBootstrapActionConfig `json:"ScriptBootstrapActionConfig,omitnil" name:"ScriptBootstrapActionConfig"` // A unique random token, which is valid for 5 minutes and needs to be specified by the caller to prevent the client from repeatedly creating resources. An example value is `a9a90aa6-751a-41b6-aad6-fae360632808`. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // Whether to enable public IP access for master nodes. Valid values: // <li>`NEED_MASTER_WAN`: Enable public IP for master nodes.</li> // <li>`NOT_NEED_MASTER_WAN`: Disable.</li>The public IP is enabled for master nodes by default. NeedMasterWan *string `json:"NeedMasterWan,omitnil" name:"NeedMasterWan"` // Whether to enable remote login over the public network. It is invalid if `SecurityGroupId` is passed in. It is disabled by default. Valid values: // <li>`true`: Enable</li> // <li>`false`: Disable</li> EnableRemoteLoginFlag *bool `json:"EnableRemoteLoginFlag,omitnil" name:"EnableRemoteLoginFlag"` // Whether to enable Kerberos authentication. Valid values: // <li>`true`: Enable</li> // <li>`false` (default): Disable</li> EnableKerberosFlag *bool `json:"EnableKerberosFlag,omitnil" name:"EnableKerberosFlag"` // [Custom software configuration](https://intl.cloud.tencent.com/document/product/589/35655?from_cn_redirect=1?from_cn_redirect=1) CustomConf *string `json:"CustomConf,omitnil" name:"CustomConf"` // The tag description list. This parameter is used to bind a tag to a resource instance. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // The list of spread placement group IDs. Only one can be specified. // You can call the [DescribeDisasterRecoverGroups](https://intl.cloud.tencent.com/document/product/213/17810?from_cn_redirect=1) API and obtain this parameter from the `DisasterRecoverGroupId` field in the response. DisasterRecoverGroupIds []*string `json:"DisasterRecoverGroupIds,omitnil" name:"DisasterRecoverGroupIds"` // Whether to enable the cluster-level CBS encryption. Valid values: // <li>`true`: Enable</li> // <li>`false` (default): Disable</li> EnableCbsEncryptFlag *bool `json:"EnableCbsEncryptFlag,omitnil" name:"EnableCbsEncryptFlag"` // The metadatabase information. If `MetaType` is `EMR_NEW_META`, `MetaDataJdbcUrl`, `MetaDataUser`, `MetaDataPass`, and `UnifyMetaInstanceId` are not required. // If `MetaType` is `EMR_EXIT_META`, `UnifyMetaInstanceId` is required. // If `MetaType` is `USER_CUSTOM_META`, `MetaDataJdbcUrl`, `MetaDataUser`, and `MetaDataPass` are required. MetaDBInfo *CustomMetaDBInfo `json:"MetaDBInfo,omitnil" name:"MetaDBInfo"` // The shared component information. DependService []*DependService `json:"DependService,omitnil" name:"DependService"` // The node resource specs. A spec is specified for each AZ, with the first spec for the primary AZ, the second for the backup AZ, and the third for the arbitrator AZ. If the multi-AZ mode is not enabled, only one spec is required. ZoneResourceConfiguration []*ZoneResourceConfiguration `json:"ZoneResourceConfiguration,omitnil" name:"ZoneResourceConfiguration"` }
func NewCreateClusterRequest ¶
func NewCreateClusterRequest() (request *CreateClusterRequest)
func (*CreateClusterRequest) FromJsonString ¶
func (r *CreateClusterRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterRequest) ToJsonString ¶
func (r *CreateClusterRequest) ToJsonString() string
type CreateClusterRequestParams ¶
type CreateClusterRequestParams struct { // The EMR version, such as `EMR-V2.3.0` that indicates the version 2.3.0 of EMR. You can query the EMR version [here](https://intl.cloud.tencent.com/document/product/589/66338?from_cn_redirect=1). ProductVersion *string `json:"ProductVersion,omitnil" name:"ProductVersion"` // Whether to enable high availability for nodes. Valid values: // <li>`true`: Enable</li> // <li>`false`: Disable</li> EnableSupportHAFlag *bool `json:"EnableSupportHAFlag,omitnil" name:"EnableSupportHAFlag"` // The instance name. // <li>Length limit: 6–36 characters.</li> // <li>Can contain only Chinese characters, letters, digits, hyphens (-), and underscores (_).</li> InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // The instance billing mode. Valid values: // <li>`POSTPAID_BY_HOUR`: The postpaid mode by hour.</li> InstanceChargeType *string `json:"InstanceChargeType,omitnil" name:"InstanceChargeType"` // The instance login setting. This parameter allows you to set a login password or key for your purchased node. // <li>If a key is set, the password will be used for login to the native component WebUI only.</li> // <li>If no key is set, the password will be used for login to all purchased nodes and the native component WebUI.</li> LoginSettings *LoginSettings `json:"LoginSettings,omitnil" name:"LoginSettings"` // The configuration of cluster application scenario and supported components. SceneSoftwareConfig *SceneSoftwareConfig `json:"SceneSoftwareConfig,omitnil" name:"SceneSoftwareConfig"` // The details of the monthly subscription, including the instance period and auto-renewal. It is required if `InstanceChargeType` is `PREPAID`. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil" name:"InstanceChargePrepaid"` // The ID of the security group to which the instance belongs, in the format of `sg-xxxxxxxx`. You can call the [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1) API and obtain this parameter from the `SecurityGroupId` field in the response. SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil" name:"SecurityGroupIds"` // The [Bootstrap action](https://intl.cloud.tencent.com/document/product/589/35656?from_cn_redirect=1) script settings. ScriptBootstrapActionConfig []*ScriptBootstrapActionConfig `json:"ScriptBootstrapActionConfig,omitnil" name:"ScriptBootstrapActionConfig"` // A unique random token, which is valid for 5 minutes and needs to be specified by the caller to prevent the client from repeatedly creating resources. An example value is `a9a90aa6-751a-41b6-aad6-fae360632808`. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // Whether to enable public IP access for master nodes. Valid values: // <li>`NEED_MASTER_WAN`: Enable public IP for master nodes.</li> // <li>`NOT_NEED_MASTER_WAN`: Disable.</li>The public IP is enabled for master nodes by default. NeedMasterWan *string `json:"NeedMasterWan,omitnil" name:"NeedMasterWan"` // Whether to enable remote login over the public network. It is invalid if `SecurityGroupId` is passed in. It is disabled by default. Valid values: // <li>`true`: Enable</li> // <li>`false`: Disable</li> EnableRemoteLoginFlag *bool `json:"EnableRemoteLoginFlag,omitnil" name:"EnableRemoteLoginFlag"` // Whether to enable Kerberos authentication. Valid values: // <li>`true`: Enable</li> // <li>`false` (default): Disable</li> EnableKerberosFlag *bool `json:"EnableKerberosFlag,omitnil" name:"EnableKerberosFlag"` // [Custom software configuration](https://intl.cloud.tencent.com/document/product/589/35655?from_cn_redirect=1?from_cn_redirect=1) CustomConf *string `json:"CustomConf,omitnil" name:"CustomConf"` // The tag description list. This parameter is used to bind a tag to a resource instance. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // The list of spread placement group IDs. Only one can be specified. // You can call the [DescribeDisasterRecoverGroups](https://intl.cloud.tencent.com/document/product/213/17810?from_cn_redirect=1) API and obtain this parameter from the `DisasterRecoverGroupId` field in the response. DisasterRecoverGroupIds []*string `json:"DisasterRecoverGroupIds,omitnil" name:"DisasterRecoverGroupIds"` // Whether to enable the cluster-level CBS encryption. Valid values: // <li>`true`: Enable</li> // <li>`false` (default): Disable</li> EnableCbsEncryptFlag *bool `json:"EnableCbsEncryptFlag,omitnil" name:"EnableCbsEncryptFlag"` // The metadatabase information. If `MetaType` is `EMR_NEW_META`, `MetaDataJdbcUrl`, `MetaDataUser`, `MetaDataPass`, and `UnifyMetaInstanceId` are not required. // If `MetaType` is `EMR_EXIT_META`, `UnifyMetaInstanceId` is required. // If `MetaType` is `USER_CUSTOM_META`, `MetaDataJdbcUrl`, `MetaDataUser`, and `MetaDataPass` are required. MetaDBInfo *CustomMetaDBInfo `json:"MetaDBInfo,omitnil" name:"MetaDBInfo"` // The shared component information. DependService []*DependService `json:"DependService,omitnil" name:"DependService"` // The node resource specs. A spec is specified for each AZ, with the first spec for the primary AZ, the second for the backup AZ, and the third for the arbitrator AZ. If the multi-AZ mode is not enabled, only one spec is required. ZoneResourceConfiguration []*ZoneResourceConfiguration `json:"ZoneResourceConfiguration,omitnil" name:"ZoneResourceConfiguration"` }
Predefined struct for user
type CreateClusterResponse ¶
type CreateClusterResponse struct { *tchttp.BaseResponse Response *CreateClusterResponseParams `json:"Response"` }
func NewCreateClusterResponse ¶
func NewCreateClusterResponse() (response *CreateClusterResponse)
func (*CreateClusterResponse) FromJsonString ¶
func (r *CreateClusterResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateClusterResponse) ToJsonString ¶
func (r *CreateClusterResponse) ToJsonString() string
type CreateClusterResponseParams ¶
type CreateClusterResponseParams struct { // The instance ID. // Note: This field may return null, indicating that no valid values can be obtained. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CreateInstanceRequest ¶
type CreateInstanceRequest struct { *tchttp.BaseRequest // Product ID. Different product IDs stand for different EMR product versions. Valid range: // 51: STARROCKS-V1.4.0 // 54: STARROCKS-V2.0.0 // 27: KAFKA-V1.0.0 // 50: KAFKA-V2.0.0 // 16: EMR-V2.3.0 // 20: EMR-V2.5.0 // 30: EMR-V2.6.0 // 38: EMR-V2.7.0 // 25: EMR-V3.1.0 // 33: EMR-V3.2.1 // 34: EMR-V3.3.0 // 37: EMR-V3.4.0 // 44: EMR-V3.5.0 // 53: EMR-V3.6.0 ProductId *uint64 `json:"ProductId,omitnil" name:"ProductId"` // List of deployed components. The list of component options varies by EMR product ID (i.e., `ProductId`; for specific meanings, please see the `ProductId` input parameter). For more information, please see [Component Version](https://intl.cloud.tencent.com/document/product/589/20279?from_cn_redirect=1). // Enter an instance value: `hive` or `flink`. Software []*string `json:"Software,omitnil" name:"Software"` // Whether to enable high node availability. Valid values: // <li>0: does not enable high availability of node.</li> // <li>1: enables high availability of node.</li> SupportHA *uint64 `json:"SupportHA,omitnil" name:"SupportHA"` // Instance name. // <li>Length limit: 6-36 characters.</li> // <li>Only letters, numbers, dashes (-), and underscores (_) are supported.</li> InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // Instance billing mode. Valid values: // <li>0: pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitnil" name:"PayMode"` // Purchase duration of instance, which needs to be used together with `TimeUnit`. // <li>When `TimeUnit` is `s`, this parameter can only be filled with 3600, indicating a pay-as-you-go instance.</li> // <li>When `TimeUnit` is `m`, the number entered in this parameter indicates the purchase duration of the monthly-subscription instance; for example, 1 means one month</li> TimeSpan *uint64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // Time unit of instance purchase duration. Valid values: // <li>s: seconds. When `PayMode` is 0, `TimeUnit` can only be `s`.</li> // <li>m: month. When `PayMode` is 1, `TimeUnit` can only be `m`.</li> TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // Instance login settings. This parameter allows you to set the login password or key for your purchased node. // <li>If the key is set, the password will be only used for login to the native component WebUI.</li> // <li>If the key is not set, the password will be used for login to all purchased nodes and the native component WebUI.</li> LoginSettings *LoginSettings `json:"LoginSettings,omitnil" name:"LoginSettings"` // Configuration information of VPC. This parameter is used to specify the VPC ID, subnet ID, etc. VPCSettings *VPCSettings `json:"VPCSettings,omitnil" name:"VPCSettings"` // Node resource specification. ResourceSpec *NewResourceSpec `json:"ResourceSpec,omitnil" name:"ResourceSpec"` // Parameter required for enabling COS access. COSSettings *COSSettings `json:"COSSettings,omitnil" name:"COSSettings"` // Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance. Placement *Placement `json:"Placement,omitnil" name:"Placement"` // Security group to which an instance belongs in the format of `sg-xxxxxxxx`. This parameter can be obtained from the `SecurityGroupId` field in the return value of the [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) API. SgId *string `json:"SgId,omitnil" name:"SgId"` // [Bootstrap action](https://intl.cloud.tencent.com/document/product/589/35656?from_cn_redirect=1) script settings PreExecutedFileSettings []*PreExecuteFileSettings `json:"PreExecutedFileSettings,omitnil" name:"PreExecutedFileSettings"` // Whether auto-renewal is enabled. Valid values: // <li>0: auto-renewal not enabled.</li> // <li>1: auto-renewal enabled.</li> AutoRenew *uint64 `json:"AutoRenew,omitnil" name:"AutoRenew"` // Client token. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // Whether to enable public IP access for master node. Valid values: // <li>NEED_MASTER_WAN: enables public IP for master node.</li> // <li>NOT_NEED_MASTER_WAN: does not enable.</li>Public IP is enabled for master node by default. NeedMasterWan *string `json:"NeedMasterWan,omitnil" name:"NeedMasterWan"` // Whether to enable remote public network login, i.e., port 22. When `SgId` is not empty, this parameter does not take effect. RemoteLoginAtCreate *int64 `json:"RemoteLoginAtCreate,omitnil" name:"RemoteLoginAtCreate"` // Whether to enable secure cluster. 0: no; other values: yes. CheckSecurity *int64 `json:"CheckSecurity,omitnil" name:"CheckSecurity"` // Accesses to external file system. ExtendFsField *string `json:"ExtendFsField,omitnil" name:"ExtendFsField"` // Tag description list. This parameter is used to bind a tag to a resource instance. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // List of spread placement group IDs. Only one can be specified currently. // This parameter can be obtained in the `SecurityGroupId` field in the return value of the [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/product/213/15486?from_cn_redirect=1) API. DisasterRecoverGroupIds []*string `json:"DisasterRecoverGroupIds,omitnil" name:"DisasterRecoverGroupIds"` // CBS disk encryption at the cluster level. 0: not encrypted, 1: encrypted CbsEncrypt *uint64 `json:"CbsEncrypt,omitnil" name:"CbsEncrypt"` // Hive-shared metadatabase type. Valid values: // <li>EMR_DEFAULT_META: the cluster creates one by default.</li> // <li>EMR_EXIST_META: the cluster uses the specified EMR-MetaDB instance.</li> // <li>USER_CUSTOM_META: the cluster uses a custom MetaDB instance.</li> MetaType *string `json:"MetaType,omitnil" name:"MetaType"` // EMR-MetaDB instance UnifyMetaInstanceId *string `json:"UnifyMetaInstanceId,omitnil" name:"UnifyMetaInstanceId"` // Custom MetaDB instance information MetaDBInfo *CustomMetaInfo `json:"MetaDBInfo,omitnil" name:"MetaDBInfo"` // Custom application role. ApplicationRole *string `json:"ApplicationRole,omitnil" name:"ApplicationRole"` // Scenario-based values: // Hadoop-Kudu // Hadoop-Zookeeper // Hadoop-Presto // Hadoop-Hbase SceneName *string `json:"SceneName,omitnil" name:"SceneName"` // Shared component information ExternalService []*ExternalService `json:"ExternalService,omitnil" name:"ExternalService"` VersionID *int64 `json:"VersionID,omitnil" name:"VersionID"` // `true` indicates that the multi-AZ deployment mode is enabled. This parameter is available only in cluster creation and cannot be changed after setting. MultiZone *bool `json:"MultiZone,omitnil" name:"MultiZone"` // Node resource specs. The actual number of AZs is set, with the first AZ as the primary AZ, the second as the backup AZ, and the third as the arbitrator AZ. If the multi-AZ mode is not enabled, set the value to `1`. MultiZoneSettings []*MultiZoneSetting `json:"MultiZoneSettings,omitnil" name:"MultiZoneSettings"` }
func NewCreateInstanceRequest ¶
func NewCreateInstanceRequest() (request *CreateInstanceRequest)
func (*CreateInstanceRequest) FromJsonString ¶
func (r *CreateInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateInstanceRequest) ToJsonString ¶
func (r *CreateInstanceRequest) ToJsonString() string
type CreateInstanceRequestParams ¶
type CreateInstanceRequestParams struct { // Product ID. Different product IDs stand for different EMR product versions. Valid range: // 51: STARROCKS-V1.4.0 // 54: STARROCKS-V2.0.0 // 27: KAFKA-V1.0.0 // 50: KAFKA-V2.0.0 // 16: EMR-V2.3.0 // 20: EMR-V2.5.0 // 30: EMR-V2.6.0 // 38: EMR-V2.7.0 // 25: EMR-V3.1.0 // 33: EMR-V3.2.1 // 34: EMR-V3.3.0 // 37: EMR-V3.4.0 // 44: EMR-V3.5.0 // 53: EMR-V3.6.0 ProductId *uint64 `json:"ProductId,omitnil" name:"ProductId"` // List of deployed components. The list of component options varies by EMR product ID (i.e., `ProductId`; for specific meanings, please see the `ProductId` input parameter). For more information, please see [Component Version](https://intl.cloud.tencent.com/document/product/589/20279?from_cn_redirect=1). // Enter an instance value: `hive` or `flink`. Software []*string `json:"Software,omitnil" name:"Software"` // Whether to enable high node availability. Valid values: // <li>0: does not enable high availability of node.</li> // <li>1: enables high availability of node.</li> SupportHA *uint64 `json:"SupportHA,omitnil" name:"SupportHA"` // Instance name. // <li>Length limit: 6-36 characters.</li> // <li>Only letters, numbers, dashes (-), and underscores (_) are supported.</li> InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // Instance billing mode. Valid values: // <li>0: pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitnil" name:"PayMode"` // Purchase duration of instance, which needs to be used together with `TimeUnit`. // <li>When `TimeUnit` is `s`, this parameter can only be filled with 3600, indicating a pay-as-you-go instance.</li> // <li>When `TimeUnit` is `m`, the number entered in this parameter indicates the purchase duration of the monthly-subscription instance; for example, 1 means one month</li> TimeSpan *uint64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // Time unit of instance purchase duration. Valid values: // <li>s: seconds. When `PayMode` is 0, `TimeUnit` can only be `s`.</li> // <li>m: month. When `PayMode` is 1, `TimeUnit` can only be `m`.</li> TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // Instance login settings. This parameter allows you to set the login password or key for your purchased node. // <li>If the key is set, the password will be only used for login to the native component WebUI.</li> // <li>If the key is not set, the password will be used for login to all purchased nodes and the native component WebUI.</li> LoginSettings *LoginSettings `json:"LoginSettings,omitnil" name:"LoginSettings"` // Configuration information of VPC. This parameter is used to specify the VPC ID, subnet ID, etc. VPCSettings *VPCSettings `json:"VPCSettings,omitnil" name:"VPCSettings"` // Node resource specification. ResourceSpec *NewResourceSpec `json:"ResourceSpec,omitnil" name:"ResourceSpec"` // Parameter required for enabling COS access. COSSettings *COSSettings `json:"COSSettings,omitnil" name:"COSSettings"` // Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance. Placement *Placement `json:"Placement,omitnil" name:"Placement"` // Security group to which an instance belongs in the format of `sg-xxxxxxxx`. This parameter can be obtained from the `SecurityGroupId` field in the return value of the [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) API. SgId *string `json:"SgId,omitnil" name:"SgId"` // [Bootstrap action](https://intl.cloud.tencent.com/document/product/589/35656?from_cn_redirect=1) script settings PreExecutedFileSettings []*PreExecuteFileSettings `json:"PreExecutedFileSettings,omitnil" name:"PreExecutedFileSettings"` // Whether auto-renewal is enabled. Valid values: // <li>0: auto-renewal not enabled.</li> // <li>1: auto-renewal enabled.</li> AutoRenew *uint64 `json:"AutoRenew,omitnil" name:"AutoRenew"` // Client token. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // Whether to enable public IP access for master node. Valid values: // <li>NEED_MASTER_WAN: enables public IP for master node.</li> // <li>NOT_NEED_MASTER_WAN: does not enable.</li>Public IP is enabled for master node by default. NeedMasterWan *string `json:"NeedMasterWan,omitnil" name:"NeedMasterWan"` // Whether to enable remote public network login, i.e., port 22. When `SgId` is not empty, this parameter does not take effect. RemoteLoginAtCreate *int64 `json:"RemoteLoginAtCreate,omitnil" name:"RemoteLoginAtCreate"` // Whether to enable secure cluster. 0: no; other values: yes. CheckSecurity *int64 `json:"CheckSecurity,omitnil" name:"CheckSecurity"` // Accesses to external file system. ExtendFsField *string `json:"ExtendFsField,omitnil" name:"ExtendFsField"` // Tag description list. This parameter is used to bind a tag to a resource instance. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // List of spread placement group IDs. Only one can be specified currently. // This parameter can be obtained in the `SecurityGroupId` field in the return value of the [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/product/213/15486?from_cn_redirect=1) API. DisasterRecoverGroupIds []*string `json:"DisasterRecoverGroupIds,omitnil" name:"DisasterRecoverGroupIds"` // CBS disk encryption at the cluster level. 0: not encrypted, 1: encrypted CbsEncrypt *uint64 `json:"CbsEncrypt,omitnil" name:"CbsEncrypt"` // Hive-shared metadatabase type. Valid values: // <li>EMR_DEFAULT_META: the cluster creates one by default.</li> // <li>EMR_EXIST_META: the cluster uses the specified EMR-MetaDB instance.</li> // <li>USER_CUSTOM_META: the cluster uses a custom MetaDB instance.</li> MetaType *string `json:"MetaType,omitnil" name:"MetaType"` // EMR-MetaDB instance UnifyMetaInstanceId *string `json:"UnifyMetaInstanceId,omitnil" name:"UnifyMetaInstanceId"` // Custom MetaDB instance information MetaDBInfo *CustomMetaInfo `json:"MetaDBInfo,omitnil" name:"MetaDBInfo"` // Custom application role. ApplicationRole *string `json:"ApplicationRole,omitnil" name:"ApplicationRole"` // Scenario-based values: // Hadoop-Kudu // Hadoop-Zookeeper // Hadoop-Presto // Hadoop-Hbase SceneName *string `json:"SceneName,omitnil" name:"SceneName"` // Shared component information ExternalService []*ExternalService `json:"ExternalService,omitnil" name:"ExternalService"` VersionID *int64 `json:"VersionID,omitnil" name:"VersionID"` // `true` indicates that the multi-AZ deployment mode is enabled. This parameter is available only in cluster creation and cannot be changed after setting. MultiZone *bool `json:"MultiZone,omitnil" name:"MultiZone"` // Node resource specs. The actual number of AZs is set, with the first AZ as the primary AZ, the second as the backup AZ, and the third as the arbitrator AZ. If the multi-AZ mode is not enabled, set the value to `1`. MultiZoneSettings []*MultiZoneSetting `json:"MultiZoneSettings,omitnil" name:"MultiZoneSettings"` }
Predefined struct for user
type CreateInstanceResponse ¶
type CreateInstanceResponse struct { *tchttp.BaseResponse Response *CreateInstanceResponseParams `json:"Response"` }
func NewCreateInstanceResponse ¶
func NewCreateInstanceResponse() (response *CreateInstanceResponse)
func (*CreateInstanceResponse) FromJsonString ¶
func (r *CreateInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateInstanceResponse) ToJsonString ¶
func (r *CreateInstanceResponse) ToJsonString() string
type CreateInstanceResponseParams ¶
type CreateInstanceResponseParams struct { // Instance ID // Note: this field may return `null`, indicating that no valid values can be obtained. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type CustomMetaDBInfo ¶
type CustomMetaDBInfo struct { // The JDBC URL of the custom metadatabase instance. Example: jdbc:mysql://10.10.10.10:3306/dbname MetaDataJdbcUrl *string `json:"MetaDataJdbcUrl,omitnil" name:"MetaDataJdbcUrl"` // The custom metadatabase instance username. MetaDataUser *string `json:"MetaDataUser,omitnil" name:"MetaDataUser"` // The custom metadatabase instance password. MetaDataPass *string `json:"MetaDataPass,omitnil" name:"MetaDataPass"` // The Hive-shared metadatabase type. Valid values: // <li>`EMR_DEFAULT_META`: The cluster creates one by default.</li> // <li>`EMR_EXIST_META`: The cluster uses the specified EMR metadatabase instance.</li> // <li>`USER_CUSTOM_META`: The cluster uses a custom metadatabase instance.</li> MetaType *string `json:"MetaType,omitnil" name:"MetaType"` // The EMR-MetaDB instance. UnifyMetaInstanceId *string `json:"UnifyMetaInstanceId,omitnil" name:"UnifyMetaInstanceId"` }
type CustomMetaInfo ¶
type CustomMetaInfo struct { // JDBC connection to custom MetaDB instance beginning with `jdbc:mysql://` MetaDataJdbcUrl *string `json:"MetaDataJdbcUrl,omitnil" name:"MetaDataJdbcUrl"` // Custom MetaDB instance username MetaDataUser *string `json:"MetaDataUser,omitnil" name:"MetaDataUser"` // Custom MetaDB instance password MetaDataPass *string `json:"MetaDataPass,omitnil" name:"MetaDataPass"` }
type CustomServiceDefine ¶
type DependService ¶
type DescribeAutoScaleRecordsRequest ¶
type DescribeAutoScaleRecordsRequest struct { *tchttp.BaseRequest // The instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Parameter for record filtration. Valid values: "StartTime", "EndTime" and "StrategyName". StartTime and EndTime support the time format of 2006-01-02 15:04:05 or 2006/01/02 15:04:05. Filters []*KeyValue `json:"Filters,omitnil" name:"Filters"` // Pagination parameters. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Pagination parameters. Maximum value: 100 Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
func NewDescribeAutoScaleRecordsRequest ¶
func NewDescribeAutoScaleRecordsRequest() (request *DescribeAutoScaleRecordsRequest)
func (*DescribeAutoScaleRecordsRequest) FromJsonString ¶
func (r *DescribeAutoScaleRecordsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAutoScaleRecordsRequest) ToJsonString ¶
func (r *DescribeAutoScaleRecordsRequest) ToJsonString() string
type DescribeAutoScaleRecordsRequestParams ¶
type DescribeAutoScaleRecordsRequestParams struct { // The instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Parameter for record filtration. Valid values: "StartTime", "EndTime" and "StrategyName". StartTime and EndTime support the time format of 2006-01-02 15:04:05 or 2006/01/02 15:04:05. Filters []*KeyValue `json:"Filters,omitnil" name:"Filters"` // Pagination parameters. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Pagination parameters. Maximum value: 100 Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
Predefined struct for user
type DescribeAutoScaleRecordsResponse ¶
type DescribeAutoScaleRecordsResponse struct { *tchttp.BaseResponse Response *DescribeAutoScaleRecordsResponseParams `json:"Response"` }
func NewDescribeAutoScaleRecordsResponse ¶
func NewDescribeAutoScaleRecordsResponse() (response *DescribeAutoScaleRecordsResponse)
func (*DescribeAutoScaleRecordsResponse) FromJsonString ¶
func (r *DescribeAutoScaleRecordsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAutoScaleRecordsResponse) ToJsonString ¶
func (r *DescribeAutoScaleRecordsResponse) ToJsonString() string
type DescribeAutoScaleRecordsResponseParams ¶
type DescribeAutoScaleRecordsResponseParams struct { // Total scale-in and scale-out records. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Record list. RecordList []*AutoScaleRecord `json:"RecordList,omitnil" name:"RecordList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeClusterNodesRequest ¶
type DescribeClusterNodesRequest struct { *tchttp.BaseRequest // Cluster instance ID in the format of emr-xxxxxxxx InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Node flag. Valid values: // <li>all: gets the information of nodes in all types except TencentDB information.</li> // <li>master: gets master node information.</li> // <li>core: gets core node information.</li> // <li>task: gets task node information.</li> // <li>common: gets common node information.</li> // <li>router: gets router node information.</li> // <li>db: gets TencentDB information in normal status.</li> // Note: only the above values are supported for the time being. Entering other values will cause errors. NodeFlag *string `json:"NodeFlag,omitnil" name:"NodeFlag"` // Page number. Default value: 0, indicating the first page. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of returned results per page. Default value: 100. Maximum value: 100 Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Resource type. Valid values: all, host, pod. Default value: all HardwareResourceType *string `json:"HardwareResourceType,omitnil" name:"HardwareResourceType"` // Searchable field SearchFields []*SearchItem `json:"SearchFields,omitnil" name:"SearchFields"` // None OrderField *string `json:"OrderField,omitnil" name:"OrderField"` // None Asc *int64 `json:"Asc,omitnil" name:"Asc"` }
func NewDescribeClusterNodesRequest ¶
func NewDescribeClusterNodesRequest() (request *DescribeClusterNodesRequest)
func (*DescribeClusterNodesRequest) FromJsonString ¶
func (r *DescribeClusterNodesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterNodesRequest) ToJsonString ¶
func (r *DescribeClusterNodesRequest) ToJsonString() string
type DescribeClusterNodesRequestParams ¶
type DescribeClusterNodesRequestParams struct { // Cluster instance ID in the format of emr-xxxxxxxx InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Node flag. Valid values: // <li>all: gets the information of nodes in all types except TencentDB information.</li> // <li>master: gets master node information.</li> // <li>core: gets core node information.</li> // <li>task: gets task node information.</li> // <li>common: gets common node information.</li> // <li>router: gets router node information.</li> // <li>db: gets TencentDB information in normal status.</li> // Note: only the above values are supported for the time being. Entering other values will cause errors. NodeFlag *string `json:"NodeFlag,omitnil" name:"NodeFlag"` // Page number. Default value: 0, indicating the first page. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Number of returned results per page. Default value: 100. Maximum value: 100 Limit *int64 `json:"Limit,omitnil" name:"Limit"` // Resource type. Valid values: all, host, pod. Default value: all HardwareResourceType *string `json:"HardwareResourceType,omitnil" name:"HardwareResourceType"` // Searchable field SearchFields []*SearchItem `json:"SearchFields,omitnil" name:"SearchFields"` // None OrderField *string `json:"OrderField,omitnil" name:"OrderField"` // None Asc *int64 `json:"Asc,omitnil" name:"Asc"` }
Predefined struct for user
type DescribeClusterNodesResponse ¶
type DescribeClusterNodesResponse struct { *tchttp.BaseResponse Response *DescribeClusterNodesResponseParams `json:"Response"` }
func NewDescribeClusterNodesResponse ¶
func NewDescribeClusterNodesResponse() (response *DescribeClusterNodesResponse)
func (*DescribeClusterNodesResponse) FromJsonString ¶
func (r *DescribeClusterNodesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeClusterNodesResponse) ToJsonString ¶
func (r *DescribeClusterNodesResponse) ToJsonString() string
type DescribeClusterNodesResponseParams ¶
type DescribeClusterNodesResponseParams struct { // Total number of queried nodes TotalCnt *int64 `json:"TotalCnt,omitnil" name:"TotalCnt"` // List of node details // Note: this field may return null, indicating that no valid values can be obtained. NodeList []*NodeHardwareInfo `json:"NodeList,omitnil" name:"NodeList"` // List of tag keys owned by user // Note: this field may return null, indicating that no valid values can be obtained. TagKeys []*string `json:"TagKeys,omitnil" name:"TagKeys"` // Resource type list // Note: this field may return null, indicating that no valid values can be obtained. HardwareResourceTypeList []*string `json:"HardwareResourceTypeList,omitnil" name:"HardwareResourceTypeList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeEmrApplicationStaticsRequest ¶
type DescribeEmrApplicationStaticsRequest struct { *tchttp.BaseRequest // Cluster ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Start time in the format of timestamp. Unit: seconds. StartTime *int64 `json:"StartTime,omitnil" name:"StartTime"` // End time in the format of timestamp. Unit: seconds. EndTime *int64 `json:"EndTime,omitnil" name:"EndTime"` // Queue name used for filtering Queues []*string `json:"Queues,omitnil" name:"Queues"` // Username used for filtering Users []*string `json:"Users,omitnil" name:"Users"` // Application type used for filtering ApplicationTypes []*string `json:"ApplicationTypes,omitnil" name:"ApplicationTypes"` // Group field. Valid values: `queue`, `user`, and `applicationType`. GroupBy []*string `json:"GroupBy,omitnil" name:"GroupBy"` // Sorting field. Valid values: `sumMemorySeconds`, `sumVCoreSeconds`, `sumHDFSBytesWritten`, and `sumHDFSBytesRead`. OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"` // Order type. Valid values: `0` (descending) and `1`(ascending). IsAsc *int64 `json:"IsAsc,omitnil" name:"IsAsc"` // Page number Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Page limit Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
func NewDescribeEmrApplicationStaticsRequest ¶
func NewDescribeEmrApplicationStaticsRequest() (request *DescribeEmrApplicationStaticsRequest)
func (*DescribeEmrApplicationStaticsRequest) FromJsonString ¶
func (r *DescribeEmrApplicationStaticsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEmrApplicationStaticsRequest) ToJsonString ¶
func (r *DescribeEmrApplicationStaticsRequest) ToJsonString() string
type DescribeEmrApplicationStaticsRequestParams ¶
type DescribeEmrApplicationStaticsRequestParams struct { // Cluster ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Start time in the format of timestamp. Unit: seconds. StartTime *int64 `json:"StartTime,omitnil" name:"StartTime"` // End time in the format of timestamp. Unit: seconds. EndTime *int64 `json:"EndTime,omitnil" name:"EndTime"` // Queue name used for filtering Queues []*string `json:"Queues,omitnil" name:"Queues"` // Username used for filtering Users []*string `json:"Users,omitnil" name:"Users"` // Application type used for filtering ApplicationTypes []*string `json:"ApplicationTypes,omitnil" name:"ApplicationTypes"` // Group field. Valid values: `queue`, `user`, and `applicationType`. GroupBy []*string `json:"GroupBy,omitnil" name:"GroupBy"` // Sorting field. Valid values: `sumMemorySeconds`, `sumVCoreSeconds`, `sumHDFSBytesWritten`, and `sumHDFSBytesRead`. OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"` // Order type. Valid values: `0` (descending) and `1`(ascending). IsAsc *int64 `json:"IsAsc,omitnil" name:"IsAsc"` // Page number Offset *int64 `json:"Offset,omitnil" name:"Offset"` // Page limit Limit *int64 `json:"Limit,omitnil" name:"Limit"` }
Predefined struct for user
type DescribeEmrApplicationStaticsResponse ¶
type DescribeEmrApplicationStaticsResponse struct { *tchttp.BaseResponse Response *DescribeEmrApplicationStaticsResponseParams `json:"Response"` }
func NewDescribeEmrApplicationStaticsResponse ¶
func NewDescribeEmrApplicationStaticsResponse() (response *DescribeEmrApplicationStaticsResponse)
func (*DescribeEmrApplicationStaticsResponse) FromJsonString ¶
func (r *DescribeEmrApplicationStaticsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeEmrApplicationStaticsResponse) ToJsonString ¶
func (r *DescribeEmrApplicationStaticsResponse) ToJsonString() string
type DescribeEmrApplicationStaticsResponseParams ¶
type DescribeEmrApplicationStaticsResponseParams struct { // Application statistics Statics []*ApplicationStatics `json:"Statics,omitnil" name:"Statics"` // Total count TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // Available queue name Queues []*string `json:"Queues,omitnil" name:"Queues"` // Available usernames Users []*string `json:"Users,omitnil" name:"Users"` // Available application type ApplicationTypes []*string `json:"ApplicationTypes,omitnil" name:"ApplicationTypes"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeHiveQueriesRequest ¶
type DescribeHiveQueriesRequest struct { *tchttp.BaseRequest // The cluster ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The start time in seconds. StartTime *uint64 `json:"StartTime,omitnil" name:"StartTime"` // The end time in seconds. EndTime-StartTime should not exceed one day's duration, which is 86400 seconds. EndTime *uint64 `json:"EndTime,omitnil" name:"EndTime"` // Starting offset for pagination. Start value: 0 Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Page size. Valid range: [1,100] Limit *uint64 `json:"Limit,omitnil" name:"Limit"` }
func NewDescribeHiveQueriesRequest ¶
func NewDescribeHiveQueriesRequest() (request *DescribeHiveQueriesRequest)
func (*DescribeHiveQueriesRequest) FromJsonString ¶
func (r *DescribeHiveQueriesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeHiveQueriesRequest) ToJsonString ¶
func (r *DescribeHiveQueriesRequest) ToJsonString() string
type DescribeHiveQueriesRequestParams ¶
type DescribeHiveQueriesRequestParams struct { // The cluster ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The start time in seconds. StartTime *uint64 `json:"StartTime,omitnil" name:"StartTime"` // The end time in seconds. EndTime-StartTime should not exceed one day's duration, which is 86400 seconds. EndTime *uint64 `json:"EndTime,omitnil" name:"EndTime"` // Starting offset for pagination. Start value: 0 Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Page size. Valid range: [1,100] Limit *uint64 `json:"Limit,omitnil" name:"Limit"` }
Predefined struct for user
type DescribeHiveQueriesResponse ¶
type DescribeHiveQueriesResponse struct { *tchttp.BaseResponse Response *DescribeHiveQueriesResponseParams `json:"Response"` }
func NewDescribeHiveQueriesResponse ¶
func NewDescribeHiveQueriesResponse() (response *DescribeHiveQueriesResponse)
func (*DescribeHiveQueriesResponse) FromJsonString ¶
func (r *DescribeHiveQueriesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeHiveQueriesResponse) ToJsonString ¶
func (r *DescribeHiveQueriesResponse) ToJsonString() string
type DescribeHiveQueriesResponseParams ¶
type DescribeHiveQueriesResponseParams struct { // Total items Total *int64 `json:"Total,omitnil" name:"Total"` // Result list Results []*HiveQuery `json:"Results,omitnil" name:"Results"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeInstancesListRequest ¶
type DescribeInstancesListRequest struct { *tchttp.BaseRequest // Cluster filtering policy. Valid values: <li>clusterList: Queries the list of clusters excluding terminated ones.</li><li>monitorManage: Queries the list of clusters excluding those terminated, under creation and not successfully created.</li><li>cloudHardwareManage/componentManage: Two reserved values, which have the same implications as those of `monitorManage`.</li> DisplayStrategy *string `json:"DisplayStrategy,omitnil" name:"DisplayStrategy"` // Page number. Default value: `0`, indicating the first page. Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Number of returned results per page. Default value: `10`; maximum value: `100`. Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // Sorting field. Valid values: <li>clusterId: Sorting by instance ID. </li><li>addTime: Sorting by instance creation time.</li><li>status: Sorting by instance status code.</li> OrderField *string `json:"OrderField,omitnil" name:"OrderField"` // Sort according to OrderField in ascending or descending order. Valid range:<li>0: Descending order.</li><li>1: Ascending order.</li>Default: 0. Asc *int64 `json:"Asc,omitnil" name:"Asc"` // Custom query Filters []*Filters `json:"Filters,omitnil" name:"Filters"` }
func NewDescribeInstancesListRequest ¶
func NewDescribeInstancesListRequest() (request *DescribeInstancesListRequest)
func (*DescribeInstancesListRequest) FromJsonString ¶
func (r *DescribeInstancesListRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesListRequest) ToJsonString ¶
func (r *DescribeInstancesListRequest) ToJsonString() string
type DescribeInstancesListRequestParams ¶
type DescribeInstancesListRequestParams struct { // Cluster filtering policy. Valid values: <li>clusterList: Queries the list of clusters excluding terminated ones.</li><li>monitorManage: Queries the list of clusters excluding those terminated, under creation and not successfully created.</li><li>cloudHardwareManage/componentManage: Two reserved values, which have the same implications as those of `monitorManage`.</li> DisplayStrategy *string `json:"DisplayStrategy,omitnil" name:"DisplayStrategy"` // Page number. Default value: `0`, indicating the first page. Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Number of returned results per page. Default value: `10`; maximum value: `100`. Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // Sorting field. Valid values: <li>clusterId: Sorting by instance ID. </li><li>addTime: Sorting by instance creation time.</li><li>status: Sorting by instance status code.</li> OrderField *string `json:"OrderField,omitnil" name:"OrderField"` // Sort according to OrderField in ascending or descending order. Valid range:<li>0: Descending order.</li><li>1: Ascending order.</li>Default: 0. Asc *int64 `json:"Asc,omitnil" name:"Asc"` // Custom query Filters []*Filters `json:"Filters,omitnil" name:"Filters"` }
Predefined struct for user
type DescribeInstancesListResponse ¶
type DescribeInstancesListResponse struct { *tchttp.BaseResponse Response *DescribeInstancesListResponseParams `json:"Response"` }
func NewDescribeInstancesListResponse ¶
func NewDescribeInstancesListResponse() (response *DescribeInstancesListResponse)
func (*DescribeInstancesListResponse) FromJsonString ¶
func (r *DescribeInstancesListResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesListResponse) ToJsonString ¶
func (r *DescribeInstancesListResponse) ToJsonString() string
type DescribeInstancesListResponseParams ¶
type DescribeInstancesListResponseParams struct { // Number of eligible instances. TotalCnt *int64 `json:"TotalCnt,omitnil" name:"TotalCnt"` // Cluster instance list. InstancesList []*EmrListInstance `json:"InstancesList,omitnil" name:"InstancesList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeInstancesRequest ¶
type DescribeInstancesRequest struct { *tchttp.BaseRequest // Cluster filtering policy. Valid values: // <li>clusterList: queries the list of clusters except terminated ones.</li> // <li>monitorManage: queries the list of clusters except those that have been terminated, are being created, or failed to be created.</li> // <li>cloudHardwareManage/componentManage: reserved fields with the same meaning as `monitorManage`.</li> DisplayStrategy *string `json:"DisplayStrategy,omitnil" name:"DisplayStrategy"` // Queries by one or more instance IDs in the format of `emr-xxxxxxxx`. For the format of this parameter, please see the `id.N` section in [API Overview](https://intl.cloud.tencent.com/document/api/213/15688). If no instance ID is entered, the list of all instances under this `APPID` will be returned. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // Page number. Default value: 0, indicating the first page. Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Number of returned results per page. Default value: 10. Maximum value: 100 Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // ID of the project to which the instance belongs. This parameter can be obtained from the `projectId` field in the return value of the `DescribeProject` API. If this value is -1, the list of all instances will be returned. ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // Sorting field. Valid values: // <li>clusterId: sorts by cluster ID.</li> // <li>addTime: sorts by instance creation time.</li> // <li>status: sorts by instance status code.</li> OrderField *string `json:"OrderField,omitnil" name:"OrderField"` // Sorts according to `OrderField` in ascending or descending order. Valid values: // <li>0: descending order.</li> // <li>1: ascending order.</li>Default value: 0.� Asc *int64 `json:"Asc,omitnil" name:"Asc"` }
func NewDescribeInstancesRequest ¶
func NewDescribeInstancesRequest() (request *DescribeInstancesRequest)
func (*DescribeInstancesRequest) FromJsonString ¶
func (r *DescribeInstancesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesRequest) ToJsonString ¶
func (r *DescribeInstancesRequest) ToJsonString() string
type DescribeInstancesRequestParams ¶
type DescribeInstancesRequestParams struct { // Cluster filtering policy. Valid values: // <li>clusterList: queries the list of clusters except terminated ones.</li> // <li>monitorManage: queries the list of clusters except those that have been terminated, are being created, or failed to be created.</li> // <li>cloudHardwareManage/componentManage: reserved fields with the same meaning as `monitorManage`.</li> DisplayStrategy *string `json:"DisplayStrategy,omitnil" name:"DisplayStrategy"` // Queries by one or more instance IDs in the format of `emr-xxxxxxxx`. For the format of this parameter, please see the `id.N` section in [API Overview](https://intl.cloud.tencent.com/document/api/213/15688). If no instance ID is entered, the list of all instances under this `APPID` will be returned. InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // Page number. Default value: 0, indicating the first page. Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Number of returned results per page. Default value: 10. Maximum value: 100 Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // ID of the project to which the instance belongs. This parameter can be obtained from the `projectId` field in the return value of the `DescribeProject` API. If this value is -1, the list of all instances will be returned. ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // Sorting field. Valid values: // <li>clusterId: sorts by cluster ID.</li> // <li>addTime: sorts by instance creation time.</li> // <li>status: sorts by instance status code.</li> OrderField *string `json:"OrderField,omitnil" name:"OrderField"` // Sorts according to `OrderField` in ascending or descending order. Valid values: // <li>0: descending order.</li> // <li>1: ascending order.</li>Default value: 0.� Asc *int64 `json:"Asc,omitnil" name:"Asc"` }
Predefined struct for user
type DescribeInstancesResponse ¶
type DescribeInstancesResponse struct { *tchttp.BaseResponse Response *DescribeInstancesResponseParams `json:"Response"` }
func NewDescribeInstancesResponse ¶
func NewDescribeInstancesResponse() (response *DescribeInstancesResponse)
func (*DescribeInstancesResponse) FromJsonString ¶
func (r *DescribeInstancesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeInstancesResponse) ToJsonString ¶
func (r *DescribeInstancesResponse) ToJsonString() string
type DescribeInstancesResponseParams ¶
type DescribeInstancesResponseParams struct { // Number of eligible instances. TotalCnt *int64 `json:"TotalCnt,omitnil" name:"TotalCnt"` // List of EMR instance details. // Note: this field may return null, indicating that no valid values can be obtained. ClusterList []*ClusterInstancesInfo `json:"ClusterList,omitnil" name:"ClusterList"` // List of tag keys associated to an instance. // Note: this field may return null, indicating that no valid values can be obtained. TagKeys []*string `json:"TagKeys,omitnil" name:"TagKeys"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeResourceScheduleRequest ¶
type DescribeResourceScheduleRequest struct { *tchttp.BaseRequest // EMR cluster ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
func NewDescribeResourceScheduleRequest ¶
func NewDescribeResourceScheduleRequest() (request *DescribeResourceScheduleRequest)
func (*DescribeResourceScheduleRequest) FromJsonString ¶
func (r *DescribeResourceScheduleRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourceScheduleRequest) ToJsonString ¶
func (r *DescribeResourceScheduleRequest) ToJsonString() string
type DescribeResourceScheduleRequestParams ¶
type DescribeResourceScheduleRequestParams struct { // EMR cluster ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }
Predefined struct for user
type DescribeResourceScheduleResponse ¶
type DescribeResourceScheduleResponse struct { *tchttp.BaseResponse Response *DescribeResourceScheduleResponseParams `json:"Response"` }
func NewDescribeResourceScheduleResponse ¶
func NewDescribeResourceScheduleResponse() (response *DescribeResourceScheduleResponse)
func (*DescribeResourceScheduleResponse) FromJsonString ¶
func (r *DescribeResourceScheduleResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeResourceScheduleResponse) ToJsonString ¶
func (r *DescribeResourceScheduleResponse) ToJsonString() string
type DescribeResourceScheduleResponseParams ¶
type DescribeResourceScheduleResponseParams struct { // Whether to enable the resource scheduling feature OpenSwitch *bool `json:"OpenSwitch,omitnil" name:"OpenSwitch"` // The resource scheduler in service Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // Fair Scheduler information FSInfo *string `json:"FSInfo,omitnil" name:"FSInfo"` // Capacity Scheduler information CSInfo *string `json:"CSInfo,omitnil" name:"CSInfo"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeUsersForUserManagerRequest ¶
type DescribeUsersForUserManagerRequest struct { *tchttp.BaseRequest // Cluster instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Page number PageNo *int64 `json:"PageNo,omitnil" name:"PageNo"` // Page size PageSize *int64 `json:"PageSize,omitnil" name:"PageSize"` // User list query filter UserManagerFilter *UserManagerFilter `json:"UserManagerFilter,omitnil" name:"UserManagerFilter"` // Whether the Keytab file information is required. This field is only valid for clusters with Kerberos enabled and defaults to `false`. NeedKeytabInfo *bool `json:"NeedKeytabInfo,omitnil" name:"NeedKeytabInfo"` }
func NewDescribeUsersForUserManagerRequest ¶
func NewDescribeUsersForUserManagerRequest() (request *DescribeUsersForUserManagerRequest)
func (*DescribeUsersForUserManagerRequest) FromJsonString ¶
func (r *DescribeUsersForUserManagerRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUsersForUserManagerRequest) ToJsonString ¶
func (r *DescribeUsersForUserManagerRequest) ToJsonString() string
type DescribeUsersForUserManagerRequestParams ¶
type DescribeUsersForUserManagerRequestParams struct { // Cluster instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Page number PageNo *int64 `json:"PageNo,omitnil" name:"PageNo"` // Page size PageSize *int64 `json:"PageSize,omitnil" name:"PageSize"` // User list query filter UserManagerFilter *UserManagerFilter `json:"UserManagerFilter,omitnil" name:"UserManagerFilter"` // Whether the Keytab file information is required. This field is only valid for clusters with Kerberos enabled and defaults to `false`. NeedKeytabInfo *bool `json:"NeedKeytabInfo,omitnil" name:"NeedKeytabInfo"` }
Predefined struct for user
type DescribeUsersForUserManagerResponse ¶
type DescribeUsersForUserManagerResponse struct { *tchttp.BaseResponse Response *DescribeUsersForUserManagerResponseParams `json:"Response"` }
func NewDescribeUsersForUserManagerResponse ¶
func NewDescribeUsersForUserManagerResponse() (response *DescribeUsersForUserManagerResponse)
func (*DescribeUsersForUserManagerResponse) FromJsonString ¶
func (r *DescribeUsersForUserManagerResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUsersForUserManagerResponse) ToJsonString ¶
func (r *DescribeUsersForUserManagerResponse) ToJsonString() string
type DescribeUsersForUserManagerResponseParams ¶
type DescribeUsersForUserManagerResponseParams struct { // Total number TotalCnt *int64 `json:"TotalCnt,omitnil" name:"TotalCnt"` // User information list // Note: This field may return null, indicating that no valid value can be obtained. UserManagerUserList []*UserManagerUserBriefInfo `json:"UserManagerUserList,omitnil" name:"UserManagerUserList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DiskSpecInfo ¶
type DiskSpecInfo struct { // The number of disks. // Note: This field may return null, indicating that no valid values can be obtained. Count *int64 `json:"Count,omitnil" name:"Count"` // The system disk type. Valid values: // <li>`CLOUD_SSD`: Cloud SSD</li> // <li>`CLOUD_PREMIUM`: Premium cloud disk</li> // <li>`CLOUD_BASIC`: Cloud HDD</li> // <li>`LOCAL_BASIC`: Local disk</li> // <li>`LOCAL_SSD`: Local SSD</li> // // The data disk type. Valid values: // <li>`CLOUD_SSD`: Cloud SSD</li> // <li>`CLOUD_PREMIUM`: Premium cloud disk</li> // <li>`CLOUD_BASIC`: Cloud HDD</li> // <li>`LOCAL_BASIC`: Local disk</li> // <li>`LOCAL_SSD`: Local SSD</li> // <li>`CLOUD_HSSD`: Enhanced SSD</li> // <li>`CLOUD_THROUGHPUT`: Throughput HDD</li> // <li>CLOUD_TSSD: ulTra SSD</li> // Note: This field may return null, indicating that no valid values can be obtained. DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // The disk capacity in GB. // Note: This field may return null, indicating that no valid values can be obtained. DiskSize *int64 `json:"DiskSize,omitnil" name:"DiskSize"` }
type DynamicPodSpec ¶
type DynamicPodSpec struct { // Minimum number of CPUs RequestCpu *float64 `json:"RequestCpu,omitnil" name:"RequestCpu"` // Maximum number of CPUs LimitCpu *float64 `json:"LimitCpu,omitnil" name:"LimitCpu"` // Minimum memory in MB RequestMemory *float64 `json:"RequestMemory,omitnil" name:"RequestMemory"` // Maximum memory in MB LimitMemory *float64 `json:"LimitMemory,omitnil" name:"LimitMemory"` }
type EmrListInstance ¶
type EmrListInstance struct { // Cluster ID ClusterId *string `json:"ClusterId,omitnil" name:"ClusterId"` // Status description // Note: This field may return `null`, indicating that no valid value can be obtained. StatusDesc *string `json:"StatusDesc,omitnil" name:"StatusDesc"` // Cluster name ClusterName *string `json:"ClusterName,omitnil" name:"ClusterName"` // Cluster region ZoneId *uint64 `json:"ZoneId,omitnil" name:"ZoneId"` // User APPID AppId *uint64 `json:"AppId,omitnil" name:"AppId"` // Creation time AddTime *string `json:"AddTime,omitnil" name:"AddTime"` // Running time RunTime *string `json:"RunTime,omitnil" name:"RunTime"` // Cluster IP MasterIp *string `json:"MasterIp,omitnil" name:"MasterIp"` // Cluster version EmrVersion *string `json:"EmrVersion,omitnil" name:"EmrVersion"` // Cluster billing mode ChargeType *uint64 `json:"ChargeType,omitnil" name:"ChargeType"` // EMR ID Id *uint64 `json:"Id,omitnil" name:"Id"` // Product ID // Note: This field may return `null`, indicating that no valid value can be obtained. ProductId *uint64 `json:"ProductId,omitnil" name:"ProductId"` // Project ID // Note: This field may return `null`, indicating that no valid value can be obtained. ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` // Region // Note: This field may return `null`, indicating that no valid value can be obtained. RegionId *uint64 `json:"RegionId,omitnil" name:"RegionId"` // Subnet ID // Note: This field may return `null`, indicating that no valid value can be obtained. SubnetId *uint64 `json:"SubnetId,omitnil" name:"SubnetId"` // VPC ID // Note: This field may return `null`, indicating that no valid value can be obtained. VpcId *uint64 `json:"VpcId,omitnil" name:"VpcId"` // Region // Note: This field may return `null`, indicating that no valid value can be obtained. Zone *string `json:"Zone,omitnil" name:"Zone"` // Status code // Note: This field may return `null`, indicating that no valid value can be obtained. Status *uint64 `json:"Status,omitnil" name:"Status"` // Instance tag // Note: This field may return `null`, indicating that no valid value can be obtained. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // Alarm information // Note: This field may return `null`, indicating that no valid value can be obtained. AlarmInfo *string `json:"AlarmInfo,omitnil" name:"AlarmInfo"` // Whether it is a Woodpecker cluster // Note: This field may return `null`, indicating that no valid value can be obtained. IsWoodpeckerCluster *uint64 `json:"IsWoodpeckerCluster,omitnil" name:"IsWoodpeckerCluster"` // VPC name // Note: This field may return `null`, indicating that no valid value can be obtained. VpcName *string `json:"VpcName,omitnil" name:"VpcName"` // Subnet name // Note: This field may return `null`, indicating that no valid value can be obtained. SubnetName *string `json:"SubnetName,omitnil" name:"SubnetName"` // VPC ID string // Note: This field may return `null`, indicating that no valid value can be obtained. UniqVpcId *string `json:"UniqVpcId,omitnil" name:"UniqVpcId"` // Subnet ID string // Note: This field may return `null`, indicating that no valid value can be obtained. UniqSubnetId *string `json:"UniqSubnetId,omitnil" name:"UniqSubnetId"` // Cluster type // Note: This field may return `null`, indicating that no valid value can be obtained. ClusterClass *string `json:"ClusterClass,omitnil" name:"ClusterClass"` // Whether it is a multi-AZ cluster // Note: This field may return `null`, indicating that no valid value can be obtained. IsMultiZoneCluster *bool `json:"IsMultiZoneCluster,omitnil" name:"IsMultiZoneCluster"` // Whether it is a manually deployed cluster // Note: This field may return null, indicating that no valid value can be obtained. IsHandsCluster *bool `json:"IsHandsCluster,omitnil" name:"IsHandsCluster"` // Client component information. // Note: This field may return null, indicating that no valid values can be obtained. OutSideSoftInfo []*SoftDependInfo `json:"OutSideSoftInfo,omitnil" name:"OutSideSoftInfo"` // Whether the current cluster supports external clients. // Note: This field may return null, indicating that no valid values can be obtained. IsSupportOutsideCluster *bool `json:"IsSupportOutsideCluster,omitnil" name:"IsSupportOutsideCluster"` }
type EmrPrice ¶
type EmrPrice struct { // The published price. // Note: This field may return null, indicating that no valid values can be obtained. OriginalCost *string `json:"OriginalCost,omitnil" name:"OriginalCost"` // The discounted price. // Note: This field may return null, indicating that no valid values can be obtained. DiscountCost *string `json:"DiscountCost,omitnil" name:"DiscountCost"` // The unit of the billable item. // Note: This field may return null, indicating that no valid values can be obtained. Unit *string `json:"Unit,omitnil" name:"Unit"` // The queried spec. // Note: This field may return null, indicating that no valid values can be obtained. PriceSpec *PriceResource `json:"PriceSpec,omitnil" name:"PriceSpec"` // Whether spot instances are supported. // Note: This field may return null, indicating that no valid values can be obtained. SupportSpotPaid *bool `json:"SupportSpotPaid,omitnil" name:"SupportSpotPaid"` }
type EmrProductConfigOutter ¶
type EmrProductConfigOutter struct { // Software information // Note: this field may return null, indicating that no valid values can be obtained. SoftInfo []*string `json:"SoftInfo,omitnil" name:"SoftInfo"` // Number of master nodes // Note: this field may return null, indicating that no valid values can be obtained. MasterNodeSize *int64 `json:"MasterNodeSize,omitnil" name:"MasterNodeSize"` // Number of core nodes // Note: this field may return null, indicating that no valid values can be obtained. CoreNodeSize *int64 `json:"CoreNodeSize,omitnil" name:"CoreNodeSize"` // Number of task nodes // Note: this field may return null, indicating that no valid values can be obtained. TaskNodeSize *int64 `json:"TaskNodeSize,omitnil" name:"TaskNodeSize"` // Number of common nodes // Note: this field may return null, indicating that no valid values can be obtained. ComNodeSize *int64 `json:"ComNodeSize,omitnil" name:"ComNodeSize"` // Master node resource // Note: this field may return null, indicating that no valid values can be obtained. MasterResource *OutterResource `json:"MasterResource,omitnil" name:"MasterResource"` // Core node resource // Note: this field may return null, indicating that no valid values can be obtained. CoreResource *OutterResource `json:"CoreResource,omitnil" name:"CoreResource"` // Task node resource // Note: this field may return null, indicating that no valid values can be obtained. TaskResource *OutterResource `json:"TaskResource,omitnil" name:"TaskResource"` // Common node resource // Note: this field may return null, indicating that no valid values can be obtained. ComResource *OutterResource `json:"ComResource,omitnil" name:"ComResource"` // Whether COS is used // Note: this field may return null, indicating that no valid values can be obtained. OnCos *bool `json:"OnCos,omitnil" name:"OnCos"` // Billing mode // Note: this field may return null, indicating that no valid values can be obtained. ChargeType *int64 `json:"ChargeType,omitnil" name:"ChargeType"` // Number of router nodes // Note: this field may return null, indicating that no valid values can be obtained. RouterNodeSize *int64 `json:"RouterNodeSize,omitnil" name:"RouterNodeSize"` // Whether HA is supported // Note: this field may return null, indicating that no valid values can be obtained. SupportHA *bool `json:"SupportHA,omitnil" name:"SupportHA"` // Whether secure mode is supported // Note: this field may return null, indicating that no valid values can be obtained. SecurityOn *bool `json:"SecurityOn,omitnil" name:"SecurityOn"` // Security group name // Note: this field may return null, indicating that no valid values can be obtained. SecurityGroup *string `json:"SecurityGroup,omitnil" name:"SecurityGroup"` // Whether to enable CBS encryption // Note: this field may return null, indicating that no valid values can be obtained. CbsEncrypt *int64 `json:"CbsEncrypt,omitnil" name:"CbsEncrypt"` // Custom application role // Note: this field may return `null`, indicating that no valid value can be obtained. ApplicationRole *string `json:"ApplicationRole,omitnil" name:"ApplicationRole"` // Security groups // Note: this field may return `null`, indicating that no valid value can be obtained. SecurityGroups []*string `json:"SecurityGroups,omitnil" name:"SecurityGroups"` // SSH key ID // Note: This field may return `null`, indicating that no valid values can be obtained. PublicKeyId *string `json:"PublicKeyId,omitnil" name:"PublicKeyId"` }
type ExternalService ¶
type ExternalService struct { string `json:"ShareType,omitnil" name:"ShareType"` // Custom parameters CustomServiceDefineList []*CustomServiceDefine `json:"CustomServiceDefineList,omitnil" name:"CustomServiceDefineList"` // Shared component name Service *string `json:"Service,omitnil" name:"Service"` // Shared component cluster InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` }ShareType *
type HiveQuery ¶
type HiveQuery struct { // Query statementNote: This field may return null, indicating that no valid values can be obtained. Statement *string `json:"Statement,omitnil" name:"Statement"` // Execution Duration // Note: This field may return null, indicating that no valid values can be obtained. Duration *string `json:"Duration,omitnil" name:"Duration"` // Start Time in Milliseconds // Note: This field may return null, indicating that no valid values can be obtained. StartTime *int64 `json:"StartTime,omitnil" name:"StartTime"` // End Time in Milliseconds // Note: This field may return null, indicating that no valid values can be obtained. EndTime *int64 `json:"EndTime,omitnil" name:"EndTime"` // StatusNote: This field may return null, indicating that no valid values can be obtained. State *string `json:"State,omitnil" name:"State"` // UserNote: This field may return null, indicating that no valid values can be obtained. User *string `json:"User,omitnil" name:"User"` // AppId List // Note: This field may return null, indicating that no valid values can be obtained. JobIds []*string `json:"JobIds,omitnil" name:"JobIds"` // Execution Engine // Note: This field may return null, indicating that no valid values can be obtained. ExecutionEngine *string `json:"ExecutionEngine,omitnil" name:"ExecutionEngine"` // Query ID // Note: This field may return null, indicating that no valid values can be obtained. Id *string `json:"Id,omitnil" name:"Id"` }
type HostVolumeContext ¶
type HostVolumeContext struct { // The directory for mounting the host in the pod, which is the mount point of the host in the resource. A specified mount point corresponds to the host path and is used as the data storage directory in the pod. // Note: This field may return null, indicating that no valid values can be obtained. VolumePath *string `json:"VolumePath,omitnil" name:"VolumePath"` }
type InquiryPriceCreateInstanceRequest ¶
type InquiryPriceCreateInstanceRequest struct { *tchttp.BaseRequest // Time unit of instance purchase duration. Valid values: // <li>s: seconds. When `PayMode` is 0, `TimeUnit` can only be `s`.</li> TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // Purchase duration of instance, which needs to be used together with `TimeUnit`. // <li>When `TimeUnit` is `s`, this parameter can only be filled with 3600, indicating a pay-as-you-go instance.</li> // <li>When `TimeUnit` is `m`, the number entered in this parameter indicates the purchase duration of the monthly-subscription instance; for example, 1 means one month</li> TimeSpan *uint64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // Currency. Currency *string `json:"Currency,omitnil" name:"Currency"` // Instance billing mode. Valid values: // <li>0: pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitnil" name:"PayMode"` // Whether to enable high availability of node. Valid values: // <li>0: does not enable high availability of node.</li> // <li>1: enables high availability of node.</li> SupportHA *uint64 `json:"SupportHA,omitnil" name:"SupportHA"` // List of deployed components. Different required components need to be selected for different EMR product IDs (i.e., `ProductId`; for specific meanings, please see the `ProductId` field in the input parameter): // <li>When `ProductId` is 1, the required components include hadoop-2.7.3, knox-1.2.0, and zookeeper-3.4.9</li> // <li>When `ProductId` is 2, the required components include hadoop-2.7.3, knox-1.2.0, and zookeeper-3.4.9</li> // <li>When `ProductId` is 4, the required components include hadoop-2.8.4, knox-1.2.0, and zookeeper-3.4.9</li> // <li>When `ProductId` is 7, the required components include hadoop-3.1.2, knox-1.2.0, and zookeeper-3.4.9</li> Software []*string `json:"Software,omitnil" name:"Software"` // Node specification queried for price. ResourceSpec *NewResourceSpec `json:"ResourceSpec,omitnil" name:"ResourceSpec"` // Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance. Placement *Placement `json:"Placement,omitnil" name:"Placement"` // Configuration information of VPC. This parameter is used to specify the VPC ID, subnet ID, etc. VPCSettings *VPCSettings `json:"VPCSettings,omitnil" name:"VPCSettings"` // Hive-shared metadatabase type. Valid values: // <li>EMR_DEFAULT_META: the cluster creates one by default.</li> // <li>EMR_EXIST_META: the cluster uses the specified EMR-MetaDB instance.</li> // <li>USER_CUSTOM_META: the cluster uses a custom MetaDB instance.</li> MetaType *string `json:"MetaType,omitnil" name:"MetaType"` // EMR-MetaDB instance UnifyMetaInstanceId *string `json:"UnifyMetaInstanceId,omitnil" name:"UnifyMetaInstanceId"` // Custom MetaDB instance information MetaDBInfo *CustomMetaInfo `json:"MetaDBInfo,omitnil" name:"MetaDBInfo"` // Product ID. Different product IDs represent different EMR product versions. Valid values: // <li>1: EMR v1.3.1.</li> // <li>2: EMR v2.0.1.</li> // <li>4: EMR v2.1.0.</li> // <li>7: EMR v3.0.0.</li> ProductId *uint64 `json:"ProductId,omitnil" name:"ProductId"` // Scenario-based values: // Hadoop-Kudu // Hadoop-Zookeeper // Hadoop-Presto // Hadoop-Hbase SceneName *string `json:"SceneName,omitnil" name:"SceneName"` // Shared component information ExternalService []*ExternalService `json:"ExternalService,omitnil" name:"ExternalService"` VersionID *uint64 `json:"VersionID,omitnil" name:"VersionID"` // AZ specs MultiZoneSettings []*MultiZoneSetting `json:"MultiZoneSettings,omitnil" name:"MultiZoneSettings"` }
func NewInquiryPriceCreateInstanceRequest ¶
func NewInquiryPriceCreateInstanceRequest() (request *InquiryPriceCreateInstanceRequest)
func (*InquiryPriceCreateInstanceRequest) FromJsonString ¶
func (r *InquiryPriceCreateInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquiryPriceCreateInstanceRequest) ToJsonString ¶
func (r *InquiryPriceCreateInstanceRequest) ToJsonString() string
type InquiryPriceCreateInstanceRequestParams ¶
type InquiryPriceCreateInstanceRequestParams struct { // Time unit of instance purchase duration. Valid values: // <li>s: seconds. When `PayMode` is 0, `TimeUnit` can only be `s`.</li> TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // Purchase duration of instance, which needs to be used together with `TimeUnit`. // <li>When `TimeUnit` is `s`, this parameter can only be filled with 3600, indicating a pay-as-you-go instance.</li> // <li>When `TimeUnit` is `m`, the number entered in this parameter indicates the purchase duration of the monthly-subscription instance; for example, 1 means one month</li> TimeSpan *uint64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // Currency. Currency *string `json:"Currency,omitnil" name:"Currency"` // Instance billing mode. Valid values: // <li>0: pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitnil" name:"PayMode"` // Whether to enable high availability of node. Valid values: // <li>0: does not enable high availability of node.</li> // <li>1: enables high availability of node.</li> SupportHA *uint64 `json:"SupportHA,omitnil" name:"SupportHA"` // List of deployed components. Different required components need to be selected for different EMR product IDs (i.e., `ProductId`; for specific meanings, please see the `ProductId` field in the input parameter): // <li>When `ProductId` is 1, the required components include hadoop-2.7.3, knox-1.2.0, and zookeeper-3.4.9</li> // <li>When `ProductId` is 2, the required components include hadoop-2.7.3, knox-1.2.0, and zookeeper-3.4.9</li> // <li>When `ProductId` is 4, the required components include hadoop-2.8.4, knox-1.2.0, and zookeeper-3.4.9</li> // <li>When `ProductId` is 7, the required components include hadoop-3.1.2, knox-1.2.0, and zookeeper-3.4.9</li> Software []*string `json:"Software,omitnil" name:"Software"` // Node specification queried for price. ResourceSpec *NewResourceSpec `json:"ResourceSpec,omitnil" name:"ResourceSpec"` // Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance. Placement *Placement `json:"Placement,omitnil" name:"Placement"` // Configuration information of VPC. This parameter is used to specify the VPC ID, subnet ID, etc. VPCSettings *VPCSettings `json:"VPCSettings,omitnil" name:"VPCSettings"` // Hive-shared metadatabase type. Valid values: // <li>EMR_DEFAULT_META: the cluster creates one by default.</li> // <li>EMR_EXIST_META: the cluster uses the specified EMR-MetaDB instance.</li> // <li>USER_CUSTOM_META: the cluster uses a custom MetaDB instance.</li> MetaType *string `json:"MetaType,omitnil" name:"MetaType"` // EMR-MetaDB instance UnifyMetaInstanceId *string `json:"UnifyMetaInstanceId,omitnil" name:"UnifyMetaInstanceId"` // Custom MetaDB instance information MetaDBInfo *CustomMetaInfo `json:"MetaDBInfo,omitnil" name:"MetaDBInfo"` // Product ID. Different product IDs represent different EMR product versions. Valid values: // <li>1: EMR v1.3.1.</li> // <li>2: EMR v2.0.1.</li> // <li>4: EMR v2.1.0.</li> // <li>7: EMR v3.0.0.</li> ProductId *uint64 `json:"ProductId,omitnil" name:"ProductId"` // Scenario-based values: // Hadoop-Kudu // Hadoop-Zookeeper // Hadoop-Presto // Hadoop-Hbase SceneName *string `json:"SceneName,omitnil" name:"SceneName"` // Shared component information ExternalService []*ExternalService `json:"ExternalService,omitnil" name:"ExternalService"` VersionID *uint64 `json:"VersionID,omitnil" name:"VersionID"` // AZ specs MultiZoneSettings []*MultiZoneSetting `json:"MultiZoneSettings,omitnil" name:"MultiZoneSettings"` }
Predefined struct for user
type InquiryPriceCreateInstanceResponse ¶
type InquiryPriceCreateInstanceResponse struct { *tchttp.BaseResponse Response *InquiryPriceCreateInstanceResponseParams `json:"Response"` }
func NewInquiryPriceCreateInstanceResponse ¶
func NewInquiryPriceCreateInstanceResponse() (response *InquiryPriceCreateInstanceResponse)
func (*InquiryPriceCreateInstanceResponse) FromJsonString ¶
func (r *InquiryPriceCreateInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquiryPriceCreateInstanceResponse) ToJsonString ¶
func (r *InquiryPriceCreateInstanceResponse) ToJsonString() string
type InquiryPriceCreateInstanceResponseParams ¶
type InquiryPriceCreateInstanceResponseParams struct { // Original price. // Note: this field may return null, indicating that no valid values can be obtained. OriginalCost *float64 `json:"OriginalCost,omitnil" name:"OriginalCost"` // Discounted price. // Note: this field may return null, indicating that no valid values can be obtained. DiscountCost *float64 `json:"DiscountCost,omitnil" name:"DiscountCost"` // Time unit of instance purchase duration. Valid values: // <li>s: seconds.</li> // Note: this field may return null, indicating that no valid values can be obtained. TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // Purchase duration of instance. // Note: this field may return null, indicating that no valid values can be obtained. TimeSpan *int64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // The price list. // Note: This field may return null, indicating that no valid values can be obtained. PriceList []*ZoneDetailPriceResult `json:"PriceList,omitnil" name:"PriceList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type InquiryPriceRenewInstanceRequest ¶
type InquiryPriceRenewInstanceRequest struct { *tchttp.BaseRequest // How long the instance will be renewed for, which needs to be used together with `TimeUnit`. TimeSpan *uint64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // List of resource IDs of the node to be renewed. The resource ID is in the format of `emr-vm-xxxxxxxx`. A valid resource ID can be queried in the [console](https://console.cloud.tencent.com/emr/static/hardware). ResourceIds []*string `json:"ResourceIds,omitnil" name:"ResourceIds"` // Location of the instance. This parameter is used to specify the AZ, project, and other attributes of the instance. Placement *Placement `json:"Placement,omitnil" name:"Placement"` // Instance billing mode. PayMode *int64 `json:"PayMode,omitnil" name:"PayMode"` // Unit of time for instance renewal. TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // Currency. Currency *string `json:"Currency,omitnil" name:"Currency"` // Whether to change from pay-as-you-go billing to monthly subscription billing. `0`: no; `1`: yes ModifyPayMode *int64 `json:"ModifyPayMode,omitnil" name:"ModifyPayMode"` }
func NewInquiryPriceRenewInstanceRequest ¶
func NewInquiryPriceRenewInstanceRequest() (request *InquiryPriceRenewInstanceRequest)
func (*InquiryPriceRenewInstanceRequest) FromJsonString ¶
func (r *InquiryPriceRenewInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquiryPriceRenewInstanceRequest) ToJsonString ¶
func (r *InquiryPriceRenewInstanceRequest) ToJsonString() string
type InquiryPriceRenewInstanceRequestParams ¶
type InquiryPriceRenewInstanceRequestParams struct { // How long the instance will be renewed for, which needs to be used together with `TimeUnit`. TimeSpan *uint64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // List of resource IDs of the node to be renewed. The resource ID is in the format of `emr-vm-xxxxxxxx`. A valid resource ID can be queried in the [console](https://console.cloud.tencent.com/emr/static/hardware). ResourceIds []*string `json:"ResourceIds,omitnil" name:"ResourceIds"` // Location of the instance. This parameter is used to specify the AZ, project, and other attributes of the instance. Placement *Placement `json:"Placement,omitnil" name:"Placement"` // Instance billing mode. PayMode *int64 `json:"PayMode,omitnil" name:"PayMode"` // Unit of time for instance renewal. TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // Currency. Currency *string `json:"Currency,omitnil" name:"Currency"` // Whether to change from pay-as-you-go billing to monthly subscription billing. `0`: no; `1`: yes ModifyPayMode *int64 `json:"ModifyPayMode,omitnil" name:"ModifyPayMode"` }
Predefined struct for user
type InquiryPriceRenewInstanceResponse ¶
type InquiryPriceRenewInstanceResponse struct { *tchttp.BaseResponse Response *InquiryPriceRenewInstanceResponseParams `json:"Response"` }
func NewInquiryPriceRenewInstanceResponse ¶
func NewInquiryPriceRenewInstanceResponse() (response *InquiryPriceRenewInstanceResponse)
func (*InquiryPriceRenewInstanceResponse) FromJsonString ¶
func (r *InquiryPriceRenewInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquiryPriceRenewInstanceResponse) ToJsonString ¶
func (r *InquiryPriceRenewInstanceResponse) ToJsonString() string
type InquiryPriceRenewInstanceResponseParams ¶
type InquiryPriceRenewInstanceResponseParams struct { // Original price. // Note: this field may return null, indicating that no valid values can be obtained. OriginalCost *float64 `json:"OriginalCost,omitnil" name:"OriginalCost"` // Discounted price. // Note: this field may return null, indicating that no valid values can be obtained. DiscountCost *float64 `json:"DiscountCost,omitnil" name:"DiscountCost"` // Unit of time for instance renewal. // Note: this field may return null, indicating that no valid values can be obtained. TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // How long the instance will be renewed for. // Note: this field may return null, indicating that no valid values can be obtained. TimeSpan *int64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type InquiryPriceScaleOutInstanceRequest ¶
type InquiryPriceScaleOutInstanceRequest struct { *tchttp.BaseRequest // Time unit of scale-out. Valid value: // <li>s: Second. When `PayMode` is 0, `TimeUnit` can only be `s`.</li> TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // Time span of scale-out, which needs to be used together with `TimeUnit`. // <li>When `PayMode` is 0, `TimeSpan` can only be 3,600.</li> TimeSpan *uint64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // ID of the AZ where an instance resides. ZoneId *uint64 `json:"ZoneId,omitnil" name:"ZoneId"` // Instance billing mode. Valid value: // <li>0: Pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitnil" name:"PayMode"` // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Number of core nodes to be added. CoreCount *uint64 `json:"CoreCount,omitnil" name:"CoreCount"` // Number of task nodes to be added. TaskCount *uint64 `json:"TaskCount,omitnil" name:"TaskCount"` // Currency. Currency *string `json:"Currency,omitnil" name:"Currency"` // Number of router nodes to be added. RouterCount *uint64 `json:"RouterCount,omitnil" name:"RouterCount"` // Number of master nodes to be added. MasterCount *uint64 `json:"MasterCount,omitnil" name:"MasterCount"` }
func NewInquiryPriceScaleOutInstanceRequest ¶
func NewInquiryPriceScaleOutInstanceRequest() (request *InquiryPriceScaleOutInstanceRequest)
func (*InquiryPriceScaleOutInstanceRequest) FromJsonString ¶
func (r *InquiryPriceScaleOutInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquiryPriceScaleOutInstanceRequest) ToJsonString ¶
func (r *InquiryPriceScaleOutInstanceRequest) ToJsonString() string
type InquiryPriceScaleOutInstanceRequestParams ¶
type InquiryPriceScaleOutInstanceRequestParams struct { // Time unit of scale-out. Valid value: // <li>s: Second. When `PayMode` is 0, `TimeUnit` can only be `s`.</li> TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // Time span of scale-out, which needs to be used together with `TimeUnit`. // <li>When `PayMode` is 0, `TimeSpan` can only be 3,600.</li> TimeSpan *uint64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // ID of the AZ where an instance resides. ZoneId *uint64 `json:"ZoneId,omitnil" name:"ZoneId"` // Instance billing mode. Valid value: // <li>0: Pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitnil" name:"PayMode"` // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Number of core nodes to be added. CoreCount *uint64 `json:"CoreCount,omitnil" name:"CoreCount"` // Number of task nodes to be added. TaskCount *uint64 `json:"TaskCount,omitnil" name:"TaskCount"` // Currency. Currency *string `json:"Currency,omitnil" name:"Currency"` // Number of router nodes to be added. RouterCount *uint64 `json:"RouterCount,omitnil" name:"RouterCount"` // Number of master nodes to be added. MasterCount *uint64 `json:"MasterCount,omitnil" name:"MasterCount"` }
Predefined struct for user
type InquiryPriceScaleOutInstanceResponse ¶
type InquiryPriceScaleOutInstanceResponse struct { *tchttp.BaseResponse Response *InquiryPriceScaleOutInstanceResponseParams `json:"Response"` }
func NewInquiryPriceScaleOutInstanceResponse ¶
func NewInquiryPriceScaleOutInstanceResponse() (response *InquiryPriceScaleOutInstanceResponse)
func (*InquiryPriceScaleOutInstanceResponse) FromJsonString ¶
func (r *InquiryPriceScaleOutInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquiryPriceScaleOutInstanceResponse) ToJsonString ¶
func (r *InquiryPriceScaleOutInstanceResponse) ToJsonString() string
type InquiryPriceScaleOutInstanceResponseParams ¶
type InquiryPriceScaleOutInstanceResponseParams struct { // Original price. // Note: This field may return null, indicating that no valid values can be obtained. OriginalCost *string `json:"OriginalCost,omitnil" name:"OriginalCost"` // Discounted price. // Note: This field may return null, indicating that no valid values can be obtained. DiscountCost *string `json:"DiscountCost,omitnil" name:"DiscountCost"` // Time unit of scale-out. Valid value: // <li>s: Second.</li> // Note: This field may return null, indicating that no valid values can be obtained. Unit *string `json:"Unit,omitnil" name:"Unit"` // Node spec queried for price. // Note: This field may return null, indicating that no valid values can be obtained. PriceSpec *PriceResource `json:"PriceSpec,omitnil" name:"PriceSpec"` // The inquiry results corresponding to the specs specified by the input parameter `MultipleResources`, with the result of the first spec returned by other output parameters. // Note: This field may return null, indicating that no valid values can be obtained. MultipleEmrPrice []*EmrPrice `json:"MultipleEmrPrice,omitnil" name:"MultipleEmrPrice"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type InquiryPriceUpdateInstanceRequest ¶
type InquiryPriceUpdateInstanceRequest struct { *tchttp.BaseRequest // Time unit of scaling. Valid values: // <li>s: seconds. When `PayMode` is 0, `TimeUnit` can only be `s`.</li> TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // Duration of scaling, which needs to be used together with `TimeUnit`. // <li>When `PayMode` is 0, `TimeSpan` can only be 3,600.</li> TimeSpan *uint64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // Target node specification. UpdateSpec *UpdateInstanceSettings `json:"UpdateSpec,omitnil" name:"UpdateSpec"` // Instance billing mode. Valid values: // <li>0: pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitnil" name:"PayMode"` // Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance. Placement *Placement `json:"Placement,omitnil" name:"Placement"` // Currency. Currency *string `json:"Currency,omitnil" name:"Currency"` // The resource ID list for batch configuration change. ResourceIdList []*string `json:"ResourceIdList,omitnil" name:"ResourceIdList"` }
func NewInquiryPriceUpdateInstanceRequest ¶
func NewInquiryPriceUpdateInstanceRequest() (request *InquiryPriceUpdateInstanceRequest)
func (*InquiryPriceUpdateInstanceRequest) FromJsonString ¶
func (r *InquiryPriceUpdateInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquiryPriceUpdateInstanceRequest) ToJsonString ¶
func (r *InquiryPriceUpdateInstanceRequest) ToJsonString() string
type InquiryPriceUpdateInstanceRequestParams ¶
type InquiryPriceUpdateInstanceRequestParams struct { // Time unit of scaling. Valid values: // <li>s: seconds. When `PayMode` is 0, `TimeUnit` can only be `s`.</li> TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // Duration of scaling, which needs to be used together with `TimeUnit`. // <li>When `PayMode` is 0, `TimeSpan` can only be 3,600.</li> TimeSpan *uint64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // Target node specification. UpdateSpec *UpdateInstanceSettings `json:"UpdateSpec,omitnil" name:"UpdateSpec"` // Instance billing mode. Valid values: // <li>0: pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitnil" name:"PayMode"` // Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance. Placement *Placement `json:"Placement,omitnil" name:"Placement"` // Currency. Currency *string `json:"Currency,omitnil" name:"Currency"` // The resource ID list for batch configuration change. ResourceIdList []*string `json:"ResourceIdList,omitnil" name:"ResourceIdList"` }
Predefined struct for user
type InquiryPriceUpdateInstanceResponse ¶
type InquiryPriceUpdateInstanceResponse struct { *tchttp.BaseResponse Response *InquiryPriceUpdateInstanceResponseParams `json:"Response"` }
func NewInquiryPriceUpdateInstanceResponse ¶
func NewInquiryPriceUpdateInstanceResponse() (response *InquiryPriceUpdateInstanceResponse)
func (*InquiryPriceUpdateInstanceResponse) FromJsonString ¶
func (r *InquiryPriceUpdateInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InquiryPriceUpdateInstanceResponse) ToJsonString ¶
func (r *InquiryPriceUpdateInstanceResponse) ToJsonString() string
type InquiryPriceUpdateInstanceResponseParams ¶
type InquiryPriceUpdateInstanceResponseParams struct { // Original price. // Note: this field may return null, indicating that no valid values can be obtained. OriginalCost *float64 `json:"OriginalCost,omitnil" name:"OriginalCost"` // Discounted price. // Note: this field may return null, indicating that no valid values can be obtained. DiscountCost *float64 `json:"DiscountCost,omitnil" name:"DiscountCost"` // Time unit of scaling. Valid values: // <li>s: seconds.</li> // Note: this field may return null, indicating that no valid values can be obtained. TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // Duration of scaling. // Note: this field may return null, indicating that no valid values can be obtained. TimeSpan *int64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // Pricing details // Note: This field may return null, indicating that no valid values can be obtained. PriceDetail []*PriceDetail `json:"PriceDetail,omitnil" name:"PriceDetail"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type InstanceChargePrepaid ¶
type InstanceChargePrepaid struct { // The period of monthly subscription, which defaults to 1 and is expressed in month. // Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60. Period *int64 `json:"Period,omitnil" name:"Period"` // Whether to enable auto-renewal. Valid values: // <li>`true`: Enable</li> // <li>`false` (default): Disable</li> RenewFlag *bool `json:"RenewFlag,omitnil" name:"RenewFlag"` }
type KeyValue ¶
type KeyValue struct { // Key // Note: This field may return null, indicating that no valid values can be obtained. Key *string `json:"Key,omitnil" name:"Key"` // ValueNote: This field may return null, indicating that no valid values can be obtained. Value *string `json:"Value,omitnil" name:"Value"` }
type LoginSettings ¶
type LoginSettings struct { // The login password of the instance, which contains 8 to 16 uppercase letters, lowercase letters, digits, and special characters (only !@%^*) and cannot start with a special character. Password *string `json:"Password,omitnil" name:"Password"` // The key ID. After an instance is associated with a key, you can access it with the private key in the key pair. You can call [DescribeKeyPairs](https://intl.cloud.tencent.com/document/api/213/15699?from_cn_redirect=1) to obtain `PublicKeyId`. PublicKeyId *string `json:"PublicKeyId,omitnil" name:"PublicKeyId"` }
type ModifyResourceScheduleConfigRequest ¶
type ModifyResourceScheduleConfigRequest struct { *tchttp.BaseRequest // EMR cluster ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Business identifier. `fair`: Edit fair configuration items; `fairPlan`: Edit the execution plan; `capacity`: Edit capacity configuration items. Key *string `json:"Key,omitnil" name:"Key"` // Modified module information Value *string `json:"Value,omitnil" name:"Value"` }
func NewModifyResourceScheduleConfigRequest ¶
func NewModifyResourceScheduleConfigRequest() (request *ModifyResourceScheduleConfigRequest)
func (*ModifyResourceScheduleConfigRequest) FromJsonString ¶
func (r *ModifyResourceScheduleConfigRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyResourceScheduleConfigRequest) ToJsonString ¶
func (r *ModifyResourceScheduleConfigRequest) ToJsonString() string
type ModifyResourceScheduleConfigRequestParams ¶
type ModifyResourceScheduleConfigRequestParams struct { // EMR cluster ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Business identifier. `fair`: Edit fair configuration items; `fairPlan`: Edit the execution plan; `capacity`: Edit capacity configuration items. Key *string `json:"Key,omitnil" name:"Key"` // Modified module information Value *string `json:"Value,omitnil" name:"Value"` }
Predefined struct for user
type ModifyResourceScheduleConfigResponse ¶
type ModifyResourceScheduleConfigResponse struct { *tchttp.BaseResponse Response *ModifyResourceScheduleConfigResponseParams `json:"Response"` }
func NewModifyResourceScheduleConfigResponse ¶
func NewModifyResourceScheduleConfigResponse() (response *ModifyResourceScheduleConfigResponse)
func (*ModifyResourceScheduleConfigResponse) FromJsonString ¶
func (r *ModifyResourceScheduleConfigResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyResourceScheduleConfigResponse) ToJsonString ¶
func (r *ModifyResourceScheduleConfigResponse) ToJsonString() string
type ModifyResourceScheduleConfigResponseParams ¶
type ModifyResourceScheduleConfigResponseParams struct { // `true`: Draft, indicating the resource pool is not refreshed. IsDraft *bool `json:"IsDraft,omitnil" name:"IsDraft"` // Verification error information. If it is not null, the verification fails and thus the configuration fails. // Note: This field may return `null`, indicating that no valid value can be obtained. ErrorMsg *string `json:"ErrorMsg,omitnil" name:"ErrorMsg"` // The response data. // Note: This field may return null, indicating that no valid values can be obtained. Data *string `json:"Data,omitnil" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyResourceSchedulerRequest ¶
type ModifyResourceSchedulerRequest struct { *tchttp.BaseRequest // EMR cluster ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The original scheduler: `fair` OldValue *string `json:"OldValue,omitnil" name:"OldValue"` // The new scheduler: `capacity` NewValue *string `json:"NewValue,omitnil" name:"NewValue"` }
func NewModifyResourceSchedulerRequest ¶
func NewModifyResourceSchedulerRequest() (request *ModifyResourceSchedulerRequest)
func (*ModifyResourceSchedulerRequest) FromJsonString ¶
func (r *ModifyResourceSchedulerRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyResourceSchedulerRequest) ToJsonString ¶
func (r *ModifyResourceSchedulerRequest) ToJsonString() string
type ModifyResourceSchedulerRequestParams ¶
type ModifyResourceSchedulerRequestParams struct { // EMR cluster ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The original scheduler: `fair` OldValue *string `json:"OldValue,omitnil" name:"OldValue"` // The new scheduler: `capacity` NewValue *string `json:"NewValue,omitnil" name:"NewValue"` }
Predefined struct for user
type ModifyResourceSchedulerResponse ¶
type ModifyResourceSchedulerResponse struct { *tchttp.BaseResponse Response *ModifyResourceSchedulerResponseParams `json:"Response"` }
func NewModifyResourceSchedulerResponse ¶
func NewModifyResourceSchedulerResponse() (response *ModifyResourceSchedulerResponse)
func (*ModifyResourceSchedulerResponse) FromJsonString ¶
func (r *ModifyResourceSchedulerResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyResourceSchedulerResponse) ToJsonString ¶
func (r *ModifyResourceSchedulerResponse) ToJsonString() string
type ModifyResourceSchedulerResponseParams ¶
type ModifyResourceSchedulerResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyResourceTags ¶
type ModifyResourceTags struct { // Cluster ID or CVM ID ResourceId *string `json:"ResourceId,omitnil" name:"ResourceId"` // 6-segment resource expression Resource *string `json:"Resource,omitnil" name:"Resource"` // Resource prefix ResourcePrefix *string `json:"ResourcePrefix,omitnil" name:"ResourcePrefix"` // ap-beijing ResourceRegion *string `json:"ResourceRegion,omitnil" name:"ResourceRegion"` // emr ServiceType *string `json:"ServiceType,omitnil" name:"ServiceType"` // List of deleted tags DeleteTags []*Tag `json:"DeleteTags,omitnil" name:"DeleteTags"` // List of added tags AddTags []*Tag `json:"AddTags,omitnil" name:"AddTags"` // List of modified tags ModifyTags []*Tag `json:"ModifyTags,omitnil" name:"ModifyTags"` }
type ModifyResourcesTagsRequest ¶
type ModifyResourcesTagsRequest struct { *tchttp.BaseRequest // Tag type. Valid values: Cluster and Node ModifyType *string `json:"ModifyType,omitnil" name:"ModifyType"` // Tag information ModifyResourceTagsInfoList []*ModifyResourceTags `json:"ModifyResourceTagsInfoList,omitnil" name:"ModifyResourceTagsInfoList"` }
func NewModifyResourcesTagsRequest ¶
func NewModifyResourcesTagsRequest() (request *ModifyResourcesTagsRequest)
func (*ModifyResourcesTagsRequest) FromJsonString ¶
func (r *ModifyResourcesTagsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyResourcesTagsRequest) ToJsonString ¶
func (r *ModifyResourcesTagsRequest) ToJsonString() string
type ModifyResourcesTagsRequestParams ¶
type ModifyResourcesTagsRequestParams struct { // Tag type. Valid values: Cluster and Node ModifyType *string `json:"ModifyType,omitnil" name:"ModifyType"` // Tag information ModifyResourceTagsInfoList []*ModifyResourceTags `json:"ModifyResourceTagsInfoList,omitnil" name:"ModifyResourceTagsInfoList"` }
Predefined struct for user
type ModifyResourcesTagsResponse ¶
type ModifyResourcesTagsResponse struct { *tchttp.BaseResponse Response *ModifyResourcesTagsResponseParams `json:"Response"` }
func NewModifyResourcesTagsResponse ¶
func NewModifyResourcesTagsResponse() (response *ModifyResourcesTagsResponse)
func (*ModifyResourcesTagsResponse) FromJsonString ¶
func (r *ModifyResourcesTagsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyResourcesTagsResponse) ToJsonString ¶
func (r *ModifyResourcesTagsResponse) ToJsonString() string
type ModifyResourcesTagsResponseParams ¶
type ModifyResourcesTagsResponseParams struct { // List of resource IDs with successful modification // Note: This field may return null, indicating that no valid values can be obtained. SuccessList []*string `json:"SuccessList,omitnil" name:"SuccessList"` // List of resource IDs with failed modification // Note: This field may return null, indicating that no valid values can be obtained. FailList []*string `json:"FailList,omitnil" name:"FailList"` // List of resource IDs with partial successful modification // Note: This field may return null, indicating that no valid values can be obtained. PartSuccessList []*string `json:"PartSuccessList,omitnil" name:"PartSuccessList"` // Mapping list of cluster IDs and process IDs // Note: This field may return null, indicating that no valid values can be obtained. ClusterToFlowIdList []*ClusterIDToFlowID `json:"ClusterToFlowIdList,omitnil" name:"ClusterToFlowIdList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ModifyUserManagerPwdRequest ¶
type ModifyUserManagerPwdRequest struct { *tchttp.BaseRequest // Cluster instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Username UserName *string `json:"UserName,omitnil" name:"UserName"` // Password PassWord *string `json:"PassWord,omitnil" name:"PassWord"` }
func NewModifyUserManagerPwdRequest ¶
func NewModifyUserManagerPwdRequest() (request *ModifyUserManagerPwdRequest)
func (*ModifyUserManagerPwdRequest) FromJsonString ¶
func (r *ModifyUserManagerPwdRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyUserManagerPwdRequest) ToJsonString ¶
func (r *ModifyUserManagerPwdRequest) ToJsonString() string
type ModifyUserManagerPwdRequestParams ¶
type ModifyUserManagerPwdRequestParams struct { // Cluster instance ID InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Username UserName *string `json:"UserName,omitnil" name:"UserName"` // Password PassWord *string `json:"PassWord,omitnil" name:"PassWord"` }
Predefined struct for user
type ModifyUserManagerPwdResponse ¶
type ModifyUserManagerPwdResponse struct { *tchttp.BaseResponse Response *ModifyUserManagerPwdResponseParams `json:"Response"` }
func NewModifyUserManagerPwdResponse ¶
func NewModifyUserManagerPwdResponse() (response *ModifyUserManagerPwdResponse)
func (*ModifyUserManagerPwdResponse) FromJsonString ¶
func (r *ModifyUserManagerPwdResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyUserManagerPwdResponse) ToJsonString ¶
func (r *ModifyUserManagerPwdResponse) ToJsonString() string
type ModifyUserManagerPwdResponseParams ¶
type ModifyUserManagerPwdResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type MultiDisk ¶
type MultiDisk struct { // Disk type // <li>CLOUD_SSD: Cloud SSD.</li> // <li>CLOUD_PREMIUM: Premium cloud disk.</li> // <li>CLOUD_HSSD: Enhanced SSD.</li> // Note: This field may return null, indicating that no valid values can be obtained. DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // Cloud disk sizeNote: This field may return null, indicating that no valid values can be obtained. Volume *int64 `json:"Volume,omitnil" name:"Volume"` // Number of cloud disks of this typeNote: This field may return null, indicating that no valid values can be obtained. Count *int64 `json:"Count,omitnil" name:"Count"` }
type MultiDiskMC ¶
type MultiDiskMC struct { // Number of cloud disks in this type // Note: this field may return null, indicating that no valid values can be obtained. Count *int64 `json:"Count,omitnil" name:"Count"` // Disk type // Note: this field may return null, indicating that no valid values can be obtained. Type *int64 `json:"Type,omitnil" name:"Type"` // Cloud disk size // Note: this field may return null, indicating that no valid values can be obtained. Volume *int64 `json:"Volume,omitnil" name:"Volume"` }
type MultiZoneSetting ¶
type MultiZoneSetting struct { // "master", "standby", "third-party" // Note: This field may return `null`, indicating that no valid value can be obtained. ZoneTag *string `json:"ZoneTag,omitnil" name:"ZoneTag"` // None VPCSettings *VPCSettings `json:"VPCSettings,omitnil" name:"VPCSettings"` // None Placement *Placement `json:"Placement,omitnil" name:"Placement"` // None ResourceSpec *NewResourceSpec `json:"ResourceSpec,omitnil" name:"ResourceSpec"` }
type NewResourceSpec ¶
type NewResourceSpec struct { // Describes master node resource MasterResourceSpec *Resource `json:"MasterResourceSpec,omitnil" name:"MasterResourceSpec"` // Describes core node resource CoreResourceSpec *Resource `json:"CoreResourceSpec,omitnil" name:"CoreResourceSpec"` // Describes task node resource TaskResourceSpec *Resource `json:"TaskResourceSpec,omitnil" name:"TaskResourceSpec"` // Number of master nodes MasterCount *int64 `json:"MasterCount,omitnil" name:"MasterCount"` // Number of core nodes CoreCount *int64 `json:"CoreCount,omitnil" name:"CoreCount"` // Number of task nodes TaskCount *int64 `json:"TaskCount,omitnil" name:"TaskCount"` // Describes common node resource CommonResourceSpec *Resource `json:"CommonResourceSpec,omitnil" name:"CommonResourceSpec"` // Number of common nodes CommonCount *int64 `json:"CommonCount,omitnil" name:"CommonCount"` }
type NodeDetailPriceResult ¶
type NodeDetailPriceResult struct { // The node type. Valid values: `master`, `core`, `task`, `common`, `router`, `mysql` // Note: This field may return null, indicating that no valid values can be obtained. NodeType *string `json:"NodeType,omitnil" name:"NodeType"` // Price details by node part PartDetailPrice []*PartDetailPriceItem `json:"PartDetailPrice,omitnil" name:"PartDetailPrice"` }
type NodeHardwareInfo ¶
type NodeHardwareInfo struct { // User `APPID` // Note: this field may return null, indicating that no valid values can be obtained. AppId *int64 `json:"AppId,omitnil" name:"AppId"` // Serial number // Note: this field may return null, indicating that no valid values can be obtained. SerialNo *string `json:"SerialNo,omitnil" name:"SerialNo"` // Machine instance ID // Note: this field may return null, indicating that no valid values can be obtained. OrderNo *string `json:"OrderNo,omitnil" name:"OrderNo"` // Public IP bound to master node // Note: this field may return null, indicating that no valid values can be obtained. WanIp *string `json:"WanIp,omitnil" name:"WanIp"` // Node type. 0: common node; 1: master node; // 2: core node; 3: task node // Note: this field may return null, indicating that no valid values can be obtained. Flag *int64 `json:"Flag,omitnil" name:"Flag"` // Node specification // Note: this field may return null, indicating that no valid values can be obtained. Spec *string `json:"Spec,omitnil" name:"Spec"` // Number of node cores // Note: this field may return null, indicating that no valid values can be obtained. CpuNum *int64 `json:"CpuNum,omitnil" name:"CpuNum"` // Node memory size // Note: this field may return null, indicating that no valid values can be obtained. MemSize *int64 `json:"MemSize,omitnil" name:"MemSize"` // Node memory description // Note: this field may return null, indicating that no valid values can be obtained. MemDesc *string `json:"MemDesc,omitnil" name:"MemDesc"` // Node region // Note: this field may return null, indicating that no valid values can be obtained. RegionId *int64 `json:"RegionId,omitnil" name:"RegionId"` // Node AZ // Note: this field may return null, indicating that no valid values can be obtained. ZoneId *int64 `json:"ZoneId,omitnil" name:"ZoneId"` // Application time // Note: this field may return null, indicating that no valid values can be obtained. ApplyTime *string `json:"ApplyTime,omitnil" name:"ApplyTime"` // Release time // Note: this field may return null, indicating that no valid values can be obtained. FreeTime *string `json:"FreeTime,omitnil" name:"FreeTime"` // Disk size // Note: this field may return null, indicating that no valid values can be obtained. DiskSize *string `json:"DiskSize,omitnil" name:"DiskSize"` // Node description // Note: this field may return null, indicating that no valid values can be obtained. NameTag *string `json:"NameTag,omitnil" name:"NameTag"` // Services deployed on node // Note: this field may return null, indicating that no valid values can be obtained. Services *string `json:"Services,omitnil" name:"Services"` // Disk type // Note: this field may return null, indicating that no valid values can be obtained. StorageType *int64 `json:"StorageType,omitnil" name:"StorageType"` // System disk size // Note: this field may return null, indicating that no valid values can be obtained. RootSize *int64 `json:"RootSize,omitnil" name:"RootSize"` // Payment type // Note: this field may return null, indicating that no valid values can be obtained. ChargeType *int64 `json:"ChargeType,omitnil" name:"ChargeType"` // Database IP // Note: this field may return null, indicating that no valid values can be obtained. CdbIp *string `json:"CdbIp,omitnil" name:"CdbIp"` // Database port // Note: this field may return null, indicating that no valid values can be obtained. CdbPort *int64 `json:"CdbPort,omitnil" name:"CdbPort"` // Disk capacity // Note: this field may return null, indicating that no valid values can be obtained. HwDiskSize *int64 `json:"HwDiskSize,omitnil" name:"HwDiskSize"` // Disk capacity description // Note: this field may return null, indicating that no valid values can be obtained. HwDiskSizeDesc *string `json:"HwDiskSizeDesc,omitnil" name:"HwDiskSizeDesc"` // Memory capacity // Note: this field may return null, indicating that no valid values can be obtained. HwMemSize *int64 `json:"HwMemSize,omitnil" name:"HwMemSize"` // Memory capacity description // Note: this field may return null, indicating that no valid values can be obtained. HwMemSizeDesc *string `json:"HwMemSizeDesc,omitnil" name:"HwMemSizeDesc"` // Expiration time // Note: this field may return null, indicating that no valid values can be obtained. ExpireTime *string `json:"ExpireTime,omitnil" name:"ExpireTime"` // Node resource ID // Note: this field may return null, indicating that no valid values can be obtained. EmrResourceId *string `json:"EmrResourceId,omitnil" name:"EmrResourceId"` // Renewal flag // Note: this field may return null, indicating that no valid values can be obtained. IsAutoRenew *int64 `json:"IsAutoRenew,omitnil" name:"IsAutoRenew"` // Device flag // Note: this field may return null, indicating that no valid values can be obtained. DeviceClass *string `json:"DeviceClass,omitnil" name:"DeviceClass"` // Support for configuration adjustment // Note: this field may return null, indicating that no valid values can be obtained. Mutable *int64 `json:"Mutable,omitnil" name:"Mutable"` // Multi-cloud disk // Note: this field may return null, indicating that no valid values can be obtained. MCMultiDisk []*MultiDiskMC `json:"MCMultiDisk,omitnil" name:"MCMultiDisk"` // Database information // Note: this field may return null, indicating that no valid values can be obtained. CdbNodeInfo *CdbInfo `json:"CdbNodeInfo,omitnil" name:"CdbNodeInfo"` // Private IP // Note: this field may return null, indicating that no valid values can be obtained. Ip *string `json:"Ip,omitnil" name:"Ip"` // Whether this node can be terminated. 1: yes, 0: no // Note: this field may return null, indicating that no valid values can be obtained. Destroyable *int64 `json:"Destroyable,omitnil" name:"Destroyable"` // Tags bound to node // Note: this field may return null, indicating that no valid values can be obtained. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // Wether the node is auto-scaling. 0 means common node. 1 means auto-scaling node. AutoFlag *int64 `json:"AutoFlag,omitnil" name:"AutoFlag"` // Resource type. Valid values: host, pod // Note: this field may return null, indicating that no valid values can be obtained. HardwareResourceType *string `json:"HardwareResourceType,omitnil" name:"HardwareResourceType"` // Whether floating specification is used. `1`: yes; `0`: no // Note: this field may return `null`, indicating that no valid values can be obtained. IsDynamicSpec *int64 `json:"IsDynamicSpec,omitnil" name:"IsDynamicSpec"` // Floating specification in JSON string // Note: this field may return `null`, indicating that no valid values can be obtained. DynamicPodSpec *string `json:"DynamicPodSpec,omitnil" name:"DynamicPodSpec"` // Whether to support billing mode change. `0`: no; `1`: yes // Note: this field may return `null`, indicating that no valid values can be obtained. SupportModifyPayMode *int64 `json:"SupportModifyPayMode,omitnil" name:"SupportModifyPayMode"` // System disk type // Note: this field may return `null`, indicating that no valid values can be obtained. RootStorageType *int64 `json:"RootStorageType,omitnil" name:"RootStorageType"` // AZ information // Note: this field may return `null`, indicating that no valid values can be obtained. Zone *string `json:"Zone,omitnil" name:"Zone"` // Subnet // Note: This field may return `null`, indicating that no valid value can be obtained. SubnetInfo *SubnetInfo `json:"SubnetInfo,omitnil" name:"SubnetInfo"` // Client // Note: This field may return `null`, indicating that no valid value can be obtained. Clients *string `json:"Clients,omitnil" name:"Clients"` // The current system time. // Note: This field may return null, indicating that no valid values can be obtained. CurrentTime *string `json:"CurrentTime,omitnil" name:"CurrentTime"` // Whether it is used in a federation. Valid values: `0` (no), `1` (yes). // Note: This field may return null, indicating that no valid values can be obtained. IsFederation *int64 `json:"IsFederation,omitnil" name:"IsFederation"` // Device name // Note: This field may return null, indicating that no valid values can be obtained. DeviceName *string `json:"DeviceName,omitnil" name:"DeviceName"` // Service // Note: This field may return null, indicating that no valid values can be obtained. ServiceClient *string `json:"ServiceClient,omitnil" name:"ServiceClient"` // Enabling instance protection for this instance. Valid values: `true` (enable) and `false` (disable). // Note: This field may return null, indicating that no valid values can be obtained. DisableApiTermination *bool `json:"DisableApiTermination,omitnil" name:"DisableApiTermination"` // The billing version. Valid values: `0` (original billing) and `1` (new billing) // Note: This field may return null, indicating that no valid values can be obtained. TradeVersion *int64 `json:"TradeVersion,omitnil" name:"TradeVersion"` // Status of each component. Zookeeper: STARTED; ResourceManager: STARTED. STARTED indicates "already in operation"; STOPPED indicates "ceased". // Note: This field may return null, indicating that no valid values can be obtained. ServicesStatus *string `json:"ServicesStatus,omitnil" name:"ServicesStatus"` }
type NodeResourceSpec ¶
type NodeResourceSpec struct { // The spec type, such as `S2.MEDIUM8`. // Note: This field may return null, indicating that no valid values can be obtained. InstanceType *string `json:"InstanceType,omitnil" name:"InstanceType"` // The system disk, which can be up to 1 PCS. // Note: This field may return null, indicating that no valid values can be obtained. SystemDisk []*DiskSpecInfo `json:"SystemDisk,omitnil" name:"SystemDisk"` // The list of tags to be bound. // Note: This field may return null, indicating that no valid values can be obtained. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // The cloud data disk, which can be up to 15 PCS. // Note: This field may return null, indicating that no valid values can be obtained. DataDisk []*DiskSpecInfo `json:"DataDisk,omitnil" name:"DataDisk"` // The local data disk. // Note: This field may return null, indicating that no valid values can be obtained. LocalDataDisk []*DiskSpecInfo `json:"LocalDataDisk,omitnil" name:"LocalDataDisk"` }
type OpScope ¶
type OpScope struct { // The information of the services to operate on. // Note: This field may return null, indicating that no valid values can be obtained. ServiceInfoList []*ServiceBasicRestartInfo `json:"ServiceInfoList,omitnil" name:"ServiceInfoList"` }
type OutterResource ¶
type OutterResource struct { // Specification // Note: this field may return null, indicating that no valid values can be obtained. Spec *string `json:"Spec,omitnil" name:"Spec"` // Specification name // Note: this field may return null, indicating that no valid values can be obtained. SpecName *string `json:"SpecName,omitnil" name:"SpecName"` // Disk type // Note: this field may return null, indicating that no valid values can be obtained. StorageType *int64 `json:"StorageType,omitnil" name:"StorageType"` // Disk type // Note: this field may return null, indicating that no valid values can be obtained. DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // System disk size // Note: this field may return null, indicating that no valid values can be obtained. RootSize *int64 `json:"RootSize,omitnil" name:"RootSize"` // Memory size // Note: this field may return null, indicating that no valid values can be obtained. MemSize *int64 `json:"MemSize,omitnil" name:"MemSize"` // Number of CPUs // Note: this field may return null, indicating that no valid values can be obtained. Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"` // Disk size // Note: this field may return null, indicating that no valid values can be obtained. DiskSize *int64 `json:"DiskSize,omitnil" name:"DiskSize"` // Specification // Note: this field may return null, indicating that no valid values can be obtained. InstanceType *string `json:"InstanceType,omitnil" name:"InstanceType"` }
type PartDetailPriceItem ¶
type PartDetailPriceItem struct { // The type. Valid values: `node` (node); `rootDisk` (system disk); `dataDisk` and `metaDB` (cloud data disk) // Note: This field may return null, indicating that no valid values can be obtained. InstanceType *string `json:"InstanceType,omitnil" name:"InstanceType"` // Rate (original) // Note: This field may return null, indicating that no valid values can be obtained. Price *float64 `json:"Price,omitnil" name:"Price"` // Rate (discounted) // Note: This field may return null, indicating that no valid values can be obtained. RealCost *float64 `json:"RealCost,omitnil" name:"RealCost"` // Total price (discounted) // Note: This field may return null, indicating that no valid values can be obtained. RealTotalCost *float64 `json:"RealTotalCost,omitnil" name:"RealTotalCost"` // Discount // Note: This field may return null, indicating that no valid values can be obtained. Policy *float64 `json:"Policy,omitnil" name:"Policy"` // Quantity // Note: This field may return null, indicating that no valid values can be obtained. GoodsNum *int64 `json:"GoodsNum,omitnil" name:"GoodsNum"` }
type PersistentVolumeContext ¶
type PersistentVolumeContext struct { // Disk size in GB. // Note: This field may return null, indicating that no valid values can be obtained. DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // Disk type. Valid values: `CLOUD_PREMIUM` and `CLOUD_SSD`. // Note: This field may return null, indicating that no valid values can be obtained. DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // Number of disks. // Note: This field may return null, indicating that no valid values can be obtained. DiskNum *int64 `json:"DiskNum,omitnil" name:"DiskNum"` }
type Placement ¶
type Placement struct { // The ID of the availability zone where the instance resides, such as `ap-guangzhou-1`. You can call the [DescribeZones](https://intl.cloud.tencent.com/document/product/213/15707?from_cn_redirect=1) API and obtain this ID from the `Zone` field in the response. Zone *string `json:"Zone,omitnil" name:"Zone"` // Project ID of the instance. If no ID is passed in, the default project ID is used. ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` }
type PodNewParameter ¶
type PodNewParameter struct { // The TKE or EKS cluster ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Custom permissions // Examples: // { // "apiVersion": "v1", // "clusters": [ // { // "cluster": { // "certificate-authority-data": "xxxxxx==", // "server": "https://xxxxx.com" // }, // "name": "cls-xxxxx" // } // ], // "contexts": [ // { // "context": { // "cluster": "cls-xxxxx", // "user": "100014xxxxx" // }, // "name": "cls-a44yhcxxxxxxxxxx" // } // ], // "current-context": "cls-a4xxxx-context-default", // "kind": "Config", // "preferences": {}, // "users": [ // { // "name": "100014xxxxx", // "user": { // "client-certificate-data": "xxxxxx", // "client-key-data": "xxxxxx" // } // } // ] // } Config *string `json:"Config,omitnil" name:"Config"` // Custom parameters // Examples: // { // "apiVersion": "apps/v1", // "kind": "Deployment", // "metadata": { // "name": "test-deployment", // "labels": { // "app": "test" // } // }, // "spec": { // "replicas": 3, // "selector": { // "matchLabels": { // "app": "test-app" // } // }, // "template": { // "metadata": { // "annotations": { // "your-organization.com/department-v1": "test-example-v1", // "your-organization.com/department-v2": "test-example-v2" // }, // "labels": { // "app": "test-app", // "environment": "production" // } // }, // "spec": { // "nodeSelector": { // "your-organization/node-test": "test-node" // }, // "containers": [ // { // "name": "nginx", // "image": "nginx:1.14.2", // "ports": [ // { // "containerPort": 80 // } // ] // } // ], // "affinity": { // "nodeAffinity": { // "requiredDuringSchedulingIgnoredDuringExecution": { // "nodeSelectorTerms": [ // { // "matchExpressions": [ // { // "key": "disk-type", // "operator": "In", // "values": [ // "ssd", // "sas" // ] // }, // { // "key": "cpu-num", // "operator": "Gt", // "values": [ // "6" // ] // } // ] // } // ] // } // } // } // } // } // } // } Parameter *string `json:"Parameter,omitnil" name:"Parameter"` }
type PodNewSpec ¶
type PodNewSpec struct { // The identifier of an external resource provider, such as "cls-a1cd23fa". ResourceProviderIdentifier *string `json:"ResourceProviderIdentifier,omitnil" name:"ResourceProviderIdentifier"` // The type of the external resource provider, such as "tke". Currently, only "tke" is supported. ResourceProviderType *string `json:"ResourceProviderType,omitnil" name:"ResourceProviderType"` // The purpose of the resource, which means the node type and can only be "TASK". NodeFlag *string `json:"NodeFlag,omitnil" name:"NodeFlag"` // The number of CPUs. Cpu *uint64 `json:"Cpu,omitnil" name:"Cpu"` // The memory size in GB. Memory *uint64 `json:"Memory,omitnil" name:"Memory"` // The EKS cluster - CPU type. Valid values: `intel` and `amd`. CpuType *string `json:"CpuType,omitnil" name:"CpuType"` // The data directory mounting information of the pod node. PodVolumes []*PodVolume `json:"PodVolumes,omitnil" name:"PodVolumes"` // Whether the dynamic spec is used. Valid values: // <li>`true`: Yes</li> // <li>`false` (default): No</li> EnableDynamicSpecFlag *bool `json:"EnableDynamicSpecFlag,omitnil" name:"EnableDynamicSpecFlag"` // The dynamic spec. // Note: This field may return null, indicating that no valid values can be obtained. DynamicPodSpec *DynamicPodSpec `json:"DynamicPodSpec,omitnil" name:"DynamicPodSpec"` // The unique VPC ID. // Note: This field may return null, indicating that no valid values can be obtained. VpcId *string `json:"VpcId,omitnil" name:"VpcId"` // The unique VPC subnet ID. // Note: This field may return null, indicating that no valid values can be obtained. SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"` // The pod name. // Note: This field may return null, indicating that no valid values can be obtained. PodName *string `json:"PodName,omitnil" name:"PodName"` }
type PodParameter ¶
type PodParameter struct { // ID of TKE or EKS cluster ClusterId *string `json:"ClusterId,omitnil" name:"ClusterId"` // Custom permissions // Example: // { // "apiVersion": "v1", // "Clusters": [ // { // "cluster": { // "certificate-authority-data": "xxxxxx==", // "server": "https://xxxxx.com" // }, // "name": "cls-xxxxx" // } // ], // "contexts": [ // { // "context": { // "cluster": "cls-xxxxx", // "user": "100014xxxxx" // }, // "name": "cls-a44yhcxxxxxxxxxx" // } // ], // "current-context": "cls-a4xxxx-context-default", // "kind": "Config", // "preferences": {}, // "users": [ // { // "name": "100014xxxxx", // "user": { // "client-certificate-data": "xxxxxx", // "client-key-data": "xxxxxx" // } // } // ] // } Config *string `json:"Config,omitnil" name:"Config"` // Custom parameters // Example: // { // "apiVersion": "apps/v1", // "kind": "Deployment", // "metadata": { // "name": "test-deployment", // "labels": { // "app": "test" // } // }, // "spec": { // "replicas": 3, // "selector": { // "matchLabels": { // "app": "test-app" // } // }, // "template": { // "metadata": { // "annotations": { // "your-organization.com/department-v1": "test-example-v1", // "your-organization.com/department-v2": "test-example-v2" // }, // "labels": { // "app": "test-app", // "environment": "production" // } // }, // "spec": { // "nodeSelector": { // "your-organization/node-test": "test-node" // }, // "containers": [ // { // "name": "nginx", // "image": "nginx:1.14.2", // "ports": [ // { // "containerPort": 80 // } // ] // } // ], // "affinity": { // "nodeAffinity": { // "requiredDuringSchedulingIgnoredDuringExecution": { // "nodeSelectorTerms": [ // { // "matchExpressions": [ // { // "key": "disk-type", // "operator": "In", // "values": [ // "ssd", // "sas" // ] // }, // { // "key": "cpu-num", // "operator": "Gt", // "values": [ // "6" // ] // } // ] // } // ] // } // } // } // } // } // } // } Parameter *string `json:"Parameter,omitnil" name:"Parameter"` }
type PodSpec ¶
type PodSpec struct { // Identifier of external resource provider, such as "cls-a1cd23fa". ResourceProviderIdentifier *string `json:"ResourceProviderIdentifier,omitnil" name:"ResourceProviderIdentifier"` // Type of external resource provider, such as "tke". Currently, only "tke" is supported. ResourceProviderType *string `json:"ResourceProviderType,omitnil" name:"ResourceProviderType"` // Purpose of the resource, which means the node type and can only be "TASK". NodeType *string `json:"NodeType,omitnil" name:"NodeType"` // Number of CPUs Cpu *uint64 `json:"Cpu,omitnil" name:"Cpu"` // Memory size in GB. Memory *uint64 `json:"Memory,omitnil" name:"Memory"` // Mount point of resources for the host. A specified mount point corresponds to the host path and is used as the data storage directory in the pod. (This parameter has been disused) DataVolumes []*string `json:"DataVolumes,omitnil" name:"DataVolumes"` // EKS cluster - CPU type. Valid values: `intel` and `amd`. CpuType *string `json:"CpuType,omitnil" name:"CpuType"` // Data directory mounting information of the pod node. PodVolumes []*PodVolume `json:"PodVolumes,omitnil" name:"PodVolumes"` // Whether floating specification is used. `1`: Yes; `0`: No. IsDynamicSpec *uint64 `json:"IsDynamicSpec,omitnil" name:"IsDynamicSpec"` // Floating specification // Note: This field may return null, indicating that no valid values can be obtained. DynamicPodSpec *DynamicPodSpec `json:"DynamicPodSpec,omitnil" name:"DynamicPodSpec"` // Unique VPC ID // Note: This field may return null, indicating that no valid values can be obtained. VpcId *string `json:"VpcId,omitnil" name:"VpcId"` // Unique VPC subnet ID // Note: This field may return null, indicating that no valid values can be obtained. SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"` // pod name // Note: This field may return null, indicating that no valid values can be obtained. PodName *string `json:"PodName,omitnil" name:"PodName"` }
type PodSpecInfo ¶
type PodSpecInfo struct { // The specified information such as pod spec and source for scale-out with pod resources. PodSpec *PodNewSpec `json:"PodSpec,omitnil" name:"PodSpec"` // The custom pod permission and parameter. PodParameter *PodNewParameter `json:"PodParameter,omitnil" name:"PodParameter"` }
type PodVolume ¶
type PodVolume struct { // Storage type. Valid values: `pvc` and `hostpath`. // Note: This field may return null, indicating that no valid values can be obtained. VolumeType *string `json:"VolumeType,omitnil" name:"VolumeType"` // This field will take effect if `VolumeType` is `pvc`. // Note: This field may return null, indicating that no valid values can be obtained. PVCVolume *PersistentVolumeContext `json:"PVCVolume,omitnil" name:"PVCVolume"` // This field will take effect if `VolumeType` is `hostpath`. // Note: This field may return null, indicating that no valid values can be obtained. HostVolume *HostVolumeContext `json:"HostVolume,omitnil" name:"HostVolume"` }
type PreExecuteFileSettings ¶
type PreExecuteFileSettings struct { // COS path to script, which has been disused Path *string `json:"Path,omitnil" name:"Path"` // Execution script parameter Args []*string `json:"Args,omitnil" name:"Args"` // COS bucket name, which has been disused Bucket *string `json:"Bucket,omitnil" name:"Bucket"` // COS region name, which has been disused Region *string `json:"Region,omitnil" name:"Region"` // COS domain data, which has been disused Domain *string `json:"Domain,omitnil" name:"Domain"` // Execution sequence RunOrder *int64 `json:"RunOrder,omitnil" name:"RunOrder"` // `resourceAfter` or `clusterAfter` WhenRun *string `json:"WhenRun,omitnil" name:"WhenRun"` // Script name, which has been disused CosFileName *string `json:"CosFileName,omitnil" name:"CosFileName"` // COS address of script CosFileURI *string `json:"CosFileURI,omitnil" name:"CosFileURI"` // COS `SecretId` CosSecretId *string `json:"CosSecretId,omitnil" name:"CosSecretId"` // COS `SecretKey` CosSecretKey *string `json:"CosSecretKey,omitnil" name:"CosSecretKey"` // COS `appid`, which has been disused AppId *string `json:"AppId,omitnil" name:"AppId"` // Remarks Remark *string `json:"Remark,omitnil" name:"Remark"` }
type PriceDetail ¶
type PriceDetail struct { // The node ID ResourceId *string `json:"ResourceId,omitnil" name:"ResourceId"` // The price formula Formula *string `json:"Formula,omitnil" name:"Formula"` // The original price OriginalCost *float64 `json:"OriginalCost,omitnil" name:"OriginalCost"` // The discount price DiscountCost *float64 `json:"DiscountCost,omitnil" name:"DiscountCost"` }
type PriceResource ¶
type PriceResource struct { // Target specification // Note: This field may return null, indicating that no valid values can be obtained. Spec *string `json:"Spec,omitnil" name:"Spec"` // Disk type. // Note: This field may return null, indicating that no valid values can be obtained. StorageType *uint64 `json:"StorageType,omitnil" name:"StorageType"` // Disk type. // Note: This field may return null, indicating that no valid values can be obtained. DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // System disk size // Note: This field may return null, indicating that no valid values can be obtained. RootSize *int64 `json:"RootSize,omitnil" name:"RootSize"` // Memory size. // Note: This field may return null, indicating that no valid values can be obtained. MemSize *int64 `json:"MemSize,omitnil" name:"MemSize"` // Number of CPUs. // Note: This field may return null, indicating that no valid values can be obtained. Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"` // Disk size. // Note: This field may return null, indicating that no valid values can be obtained. DiskSize *int64 `json:"DiskSize,omitnil" name:"DiskSize"` // List of cloud disks. // Note: This field may return null, indicating that no valid values can be obtained. MultiDisks []*MultiDisk `json:"MultiDisks,omitnil" name:"MultiDisks"` // Number of disks. // Note: This field may return null, indicating that no valid values can be obtained. DiskCnt *int64 `json:"DiskCnt,omitnil" name:"DiskCnt"` // Specification // Note: This field may return null, indicating that no valid values can be obtained. InstanceType *string `json:"InstanceType,omitnil" name:"InstanceType"` // Tag // Note: This field may return null, indicating that no valid values can be obtained. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // Number of disks. // Note: This field may return null, indicating that no valid values can be obtained. DiskNum *int64 `json:"DiskNum,omitnil" name:"DiskNum"` // Number of local disks. // Note: This field may return null, indicating that no valid values can be obtained. LocalDiskNum *int64 `json:"LocalDiskNum,omitnil" name:"LocalDiskNum"` }
type Resource ¶
type Resource struct { // Node specification description, such as CVM.SA2 // Note: this field may return `null`, indicating that no valid values can be obtained. Spec *string `json:"Spec,omitnil" name:"Spec"` // Storage type // Valid values: // <li>4: SSD</li> // <li>5: Premium Cloud Storage</li> // <li>6: Enhanced SSD</li> // <li>11: High-Throughput cloud disk</li> // <li>12: Tremendous SSD</li> // Note: this field may return `null`, indicating that no valid values can be obtained. StorageType *int64 `json:"StorageType,omitnil" name:"StorageType"` // Disk type // Valid values: // <li>`CLOUD_SSD`: SSD</li> // <li>`CLOUD_PREMIUM`: Premium Cloud Storage</li> // <li>`CLOUD_BASIC`: HDD</li> // Note: this field may return `null`, indicating that no valid values can be obtained. DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // Memory capacity in MB // Note: this field may return null, indicating that no valid values can be obtained. MemSize *int64 `json:"MemSize,omitnil" name:"MemSize"` // Number of CPU cores // Note: this field may return null, indicating that no valid values can be obtained. Cpu *int64 `json:"Cpu,omitnil" name:"Cpu"` // Data disk capacity // Note: this field may return null, indicating that no valid values can be obtained. DiskSize *int64 `json:"DiskSize,omitnil" name:"DiskSize"` // System disk capacity // Note: this field may return null, indicating that no valid values can be obtained. RootSize *int64 `json:"RootSize,omitnil" name:"RootSize"` // List of cloud disks. When the data disk is a cloud disk, `DiskType` and `DiskSize` are used directly; `MultiDisks` will be used for the excessive part // Note: this field may return null, indicating that no valid values can be obtained. MultiDisks []*MultiDisk `json:"MultiDisks,omitnil" name:"MultiDisks"` // List of tags to be bound // Note: this field may return null, indicating that no valid values can be obtained. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // Specification type, such as S2.MEDIUM8 // Note: this field may return `null`, indicating that no valid values can be obtained. InstanceType *string `json:"InstanceType,omitnil" name:"InstanceType"` // Number of local disks. This field has been disused. // Note: this field may return `null`, indicating that no valid values can be obtained. LocalDiskNum *uint64 `json:"LocalDiskNum,omitnil" name:"LocalDiskNum"` // Number of local disks, such as 2 // Note: this field may return `null`, indicating that no valid values can be obtained. DiskNum *uint64 `json:"DiskNum,omitnil" name:"DiskNum"` }
type ScaleOutClusterRequest ¶
type ScaleOutClusterRequest struct { *tchttp.BaseRequest // The node billing mode. Valid values: // <li>`POSTPAID_BY_HOUR`: The postpaid mode by hour.</li> // <li>`SPOTPAID`: The spot instance mode (for task nodes only).</li> InstanceChargeType *string `json:"InstanceChargeType,omitnil" name:"InstanceChargeType"` // The cluster instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The type and number of nodes to be added. ScaleOutNodeConfig *ScaleOutNodeConfig `json:"ScaleOutNodeConfig,omitnil" name:"ScaleOutNodeConfig"` // A unique random token, which is valid for 5 minutes and needs to be specified by the caller to prevent the client from repeatedly creating resources. An example value is `a9a90aa6-751a-41b6-aad6-fae36063280`. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // The details of the monthly subscription, including the instance period and auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil" name:"InstanceChargePrepaid"` // The [Bootstrap action](https://intl.cloud.tencent.com/document/product/589/35656?from_cn_redirect=1) script settings. ScriptBootstrapActionConfig []*ScriptBootstrapActionConfig `json:"ScriptBootstrapActionConfig,omitnil" name:"ScriptBootstrapActionConfig"` // The services to be deployed for new nodes. By default, new nodes will inherit services deployed for the current node type, including default optional services. This parameter only supports the inclusion of optional services. For example, if HDFS, YARN, and Impala have been deployed for existing task nodes, when using the API for task node scale-out without deploying Impala, only HDFS and YARN are included in with this parameter. Refer to the [component name mapping table](https://intl.cloud.tencent.com/document/product/589/98760?from_cn_redirect=1). SoftDeployInfo []*int64 `json:"SoftDeployInfo,omitnil" name:"SoftDeployInfo"` // The processes to be deployed. All processes for services to be added are deployed by default. Deployed processes can be changed. For example, HDFS, YARN, and Impala have been deployed for current task nodes, and default services are DataNode, NodeManager, and ImpalaServer; if you want to change deployed processes, you can set this parameter to DataNode,NodeManager,ImpalaServerCoordinator or DataNode,NodeManager,ImpalaServerExecutor. Refer to the [process name mapping table](https://intl.cloud.tencent.com/document/product/589/98760?from_cn_redirect=1). ServiceNodeInfo []*int64 `json:"ServiceNodeInfo,omitnil" name:"ServiceNodeInfo"` // The list of spread placement group IDs. Only one can be specified. // You can call the [DescribeDisasterRecoverGroups](https://intl.cloud.tencent.com/document/product/213/17810?from_cn_redirect=1) API and obtain this parameter from the `DisasterRecoverGroupId` field in the response. DisasterRecoverGroupIds []*string `json:"DisasterRecoverGroupIds,omitnil" name:"DisasterRecoverGroupIds"` // The list of tags bound to added nodes. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // The type of resources to add. Valid values: `host` (general CVM resources) and `pod` (resources provided by a TKE or EKS cluster). HardwareSourceType *string `json:"HardwareSourceType,omitnil" name:"HardwareSourceType"` // The pod resource information. PodSpecInfo *PodSpecInfo `json:"PodSpecInfo,omitnil" name:"PodSpecInfo"` // The server group name selected for ClickHouse cluster scale-out. ClickHouseClusterName *string `json:"ClickHouseClusterName,omitnil" name:"ClickHouseClusterName"` // The server group type selected for ClickHouse cluster scale-out. Valid values: `new` (create a group) and `old` (select an existing group). ClickHouseClusterType *string `json:"ClickHouseClusterType,omitnil" name:"ClickHouseClusterType"` // The YARN node label specified for scale-out. YarnNodeLabel *string `json:"YarnNodeLabel,omitnil" name:"YarnNodeLabel"` // Whether to start services after scale-out. // <li>`true`: Yes</li> // <li>`false` (default): No</li> EnableStartServiceFlag *bool `json:"EnableStartServiceFlag,omitnil" name:"EnableStartServiceFlag"` // The spec settings. ResourceSpec *NodeResourceSpec `json:"ResourceSpec,omitnil" name:"ResourceSpec"` // The ID of the AZ where the instance resides, such as `ap-guangzhou-1`. You can call the [DescribeZones](https://intl.cloud.tencent.com/document/product/213/15707?from_cn_redirect=1) API and obtain this ID from the `Zone` field in the response. Zone *string `json:"Zone,omitnil" name:"Zone"` // The subnet, which defaults to the subnet used when the cluster is created. SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"` }
func NewScaleOutClusterRequest ¶
func NewScaleOutClusterRequest() (request *ScaleOutClusterRequest)
func (*ScaleOutClusterRequest) FromJsonString ¶
func (r *ScaleOutClusterRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ScaleOutClusterRequest) ToJsonString ¶
func (r *ScaleOutClusterRequest) ToJsonString() string
type ScaleOutClusterRequestParams ¶
type ScaleOutClusterRequestParams struct { // The node billing mode. Valid values: // <li>`POSTPAID_BY_HOUR`: The postpaid mode by hour.</li> // <li>`SPOTPAID`: The spot instance mode (for task nodes only).</li> InstanceChargeType *string `json:"InstanceChargeType,omitnil" name:"InstanceChargeType"` // The cluster instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The type and number of nodes to be added. ScaleOutNodeConfig *ScaleOutNodeConfig `json:"ScaleOutNodeConfig,omitnil" name:"ScaleOutNodeConfig"` // A unique random token, which is valid for 5 minutes and needs to be specified by the caller to prevent the client from repeatedly creating resources. An example value is `a9a90aa6-751a-41b6-aad6-fae36063280`. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // The details of the monthly subscription, including the instance period and auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`. InstanceChargePrepaid *InstanceChargePrepaid `json:"InstanceChargePrepaid,omitnil" name:"InstanceChargePrepaid"` // The [Bootstrap action](https://intl.cloud.tencent.com/document/product/589/35656?from_cn_redirect=1) script settings. ScriptBootstrapActionConfig []*ScriptBootstrapActionConfig `json:"ScriptBootstrapActionConfig,omitnil" name:"ScriptBootstrapActionConfig"` // The services to be deployed for new nodes. By default, new nodes will inherit services deployed for the current node type, including default optional services. This parameter only supports the inclusion of optional services. For example, if HDFS, YARN, and Impala have been deployed for existing task nodes, when using the API for task node scale-out without deploying Impala, only HDFS and YARN are included in with this parameter. Refer to the [component name mapping table](https://intl.cloud.tencent.com/document/product/589/98760?from_cn_redirect=1). SoftDeployInfo []*int64 `json:"SoftDeployInfo,omitnil" name:"SoftDeployInfo"` // The processes to be deployed. All processes for services to be added are deployed by default. Deployed processes can be changed. For example, HDFS, YARN, and Impala have been deployed for current task nodes, and default services are DataNode, NodeManager, and ImpalaServer; if you want to change deployed processes, you can set this parameter to DataNode,NodeManager,ImpalaServerCoordinator or DataNode,NodeManager,ImpalaServerExecutor. Refer to the [process name mapping table](https://intl.cloud.tencent.com/document/product/589/98760?from_cn_redirect=1). ServiceNodeInfo []*int64 `json:"ServiceNodeInfo,omitnil" name:"ServiceNodeInfo"` // The list of spread placement group IDs. Only one can be specified. // You can call the [DescribeDisasterRecoverGroups](https://intl.cloud.tencent.com/document/product/213/17810?from_cn_redirect=1) API and obtain this parameter from the `DisasterRecoverGroupId` field in the response. DisasterRecoverGroupIds []*string `json:"DisasterRecoverGroupIds,omitnil" name:"DisasterRecoverGroupIds"` // The list of tags bound to added nodes. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // The type of resources to add. Valid values: `host` (general CVM resources) and `pod` (resources provided by a TKE or EKS cluster). HardwareSourceType *string `json:"HardwareSourceType,omitnil" name:"HardwareSourceType"` // The pod resource information. PodSpecInfo *PodSpecInfo `json:"PodSpecInfo,omitnil" name:"PodSpecInfo"` // The server group name selected for ClickHouse cluster scale-out. ClickHouseClusterName *string `json:"ClickHouseClusterName,omitnil" name:"ClickHouseClusterName"` // The server group type selected for ClickHouse cluster scale-out. Valid values: `new` (create a group) and `old` (select an existing group). ClickHouseClusterType *string `json:"ClickHouseClusterType,omitnil" name:"ClickHouseClusterType"` // The YARN node label specified for scale-out. YarnNodeLabel *string `json:"YarnNodeLabel,omitnil" name:"YarnNodeLabel"` // Whether to start services after scale-out. // <li>`true`: Yes</li> // <li>`false` (default): No</li> EnableStartServiceFlag *bool `json:"EnableStartServiceFlag,omitnil" name:"EnableStartServiceFlag"` // The spec settings. ResourceSpec *NodeResourceSpec `json:"ResourceSpec,omitnil" name:"ResourceSpec"` // The ID of the AZ where the instance resides, such as `ap-guangzhou-1`. You can call the [DescribeZones](https://intl.cloud.tencent.com/document/product/213/15707?from_cn_redirect=1) API and obtain this ID from the `Zone` field in the response. Zone *string `json:"Zone,omitnil" name:"Zone"` // The subnet, which defaults to the subnet used when the cluster is created. SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"` }
Predefined struct for user
type ScaleOutClusterResponse ¶
type ScaleOutClusterResponse struct { *tchttp.BaseResponse Response *ScaleOutClusterResponseParams `json:"Response"` }
func NewScaleOutClusterResponse ¶
func NewScaleOutClusterResponse() (response *ScaleOutClusterResponse)
func (*ScaleOutClusterResponse) FromJsonString ¶
func (r *ScaleOutClusterResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ScaleOutClusterResponse) ToJsonString ¶
func (r *ScaleOutClusterResponse) ToJsonString() string
type ScaleOutClusterResponseParams ¶
type ScaleOutClusterResponseParams struct { // The instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The client token. // Note: This field may return null, indicating that no valid values can be obtained. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // The scale-out workflow ID. // Note: This field may return null, indicating that no valid values can be obtained. FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ScaleOutInstanceRequest ¶
type ScaleOutInstanceRequest struct { *tchttp.BaseRequest // Time unit of scale-out. Valid values: // <li>s: Second. When `PayMode` is 0, `TimeUnit` can only be `s`.</li> // <li>m: Month. When `PayMode` is 1, `TimeUnit` can only be `m`.</li> TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // Time span of scale-out, which needs to be used together with `TimeUnit`. TimeSpan *uint64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Instance billing mode. Valid value: // <li>0: Pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitnil" name:"PayMode"` // Client token. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // Bootstrap script settings. PreExecutedFileSettings []*PreExecuteFileSettings `json:"PreExecutedFileSettings,omitnil" name:"PreExecutedFileSettings"` // Number of task nodes to be added. TaskCount *uint64 `json:"TaskCount,omitnil" name:"TaskCount"` // Number of core nodes to be added. CoreCount *uint64 `json:"CoreCount,omitnil" name:"CoreCount"` // Processes unnecessary for scale-out. UnNecessaryNodeList []*uint64 `json:"UnNecessaryNodeList,omitnil" name:"UnNecessaryNodeList"` // Number of router nodes to be added. RouterCount *uint64 `json:"RouterCount,omitnil" name:"RouterCount"` // Deployed service. // <li>`SoftDeployInfo` and `ServiceNodeInfo` are in the same group and mutually exclusive with `UnNecessaryNodeList`.</li> // <li>The combination of `SoftDeployInfo` and `ServiceNodeInfo` is recommended.</li> SoftDeployInfo []*uint64 `json:"SoftDeployInfo,omitnil" name:"SoftDeployInfo"` // Started process. ServiceNodeInfo []*uint64 `json:"ServiceNodeInfo,omitnil" name:"ServiceNodeInfo"` // List of spread placement group IDs. Only one can be specified currently. DisasterRecoverGroupIds []*string `json:"DisasterRecoverGroupIds,omitnil" name:"DisasterRecoverGroupIds"` // List of tags bound to added nodes. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // Resource type selected for scaling. Valid values: `host` (general CVM resource) and `pod` (resource provided by TKE or EKS cluster). HardwareResourceType *string `json:"HardwareResourceType,omitnil" name:"HardwareResourceType"` // Specified information such as pod specification and source for scale-out with pod resources. PodSpec *PodSpec `json:"PodSpec,omitnil" name:"PodSpec"` // Server group name selected for ClickHouse cluster scale-out. ClickHouseClusterName *string `json:"ClickHouseClusterName,omitnil" name:"ClickHouseClusterName"` // Server group type selected for ClickHouse cluster scale-out. Valid values: `new` (create a group) and `old` (select an existing group). ClickHouseClusterType *string `json:"ClickHouseClusterType,omitnil" name:"ClickHouseClusterType"` // Yarn node label specified for rule-based scale-out. YarnNodeLabel *string `json:"YarnNodeLabel,omitnil" name:"YarnNodeLabel"` // Custom pod permission and parameter PodParameter *PodParameter `json:"PodParameter,omitnil" name:"PodParameter"` // Number of master nodes to be added. // When a ClickHouse cluster is scaled, this parameter does not take effect. // When a Kafka cluster is scaled, this parameter does not take effect. // When `HardwareResourceType` is `pod`, this parameter does not take effect. MasterCount *uint64 `json:"MasterCount,omitnil" name:"MasterCount"` // Whether to start the service after scale-out. `true`: Yes; `false`: No. StartServiceAfterScaleOut *string `json:"StartServiceAfterScaleOut,omitnil" name:"StartServiceAfterScaleOut"` // AZ, which defaults to the primary AZ of the cluster. ZoneId *int64 `json:"ZoneId,omitnil" name:"ZoneId"` // Subnet, which defaults to the subnet used when the cluster is created. SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"` // Pre-defined configuration set ScaleOutServiceConfAssign *string `json:"ScaleOutServiceConfAssign,omitnil" name:"ScaleOutServiceConfAssign"` // Whether to enable auto-renewal. Valid values: `0` (no), `1` (yes). AutoRenew *int64 `json:"AutoRenew,omitnil" name:"AutoRenew"` }
func NewScaleOutInstanceRequest ¶
func NewScaleOutInstanceRequest() (request *ScaleOutInstanceRequest)
func (*ScaleOutInstanceRequest) FromJsonString ¶
func (r *ScaleOutInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ScaleOutInstanceRequest) ToJsonString ¶
func (r *ScaleOutInstanceRequest) ToJsonString() string
type ScaleOutInstanceRequestParams ¶
type ScaleOutInstanceRequestParams struct { // Time unit of scale-out. Valid values: // <li>s: Second. When `PayMode` is 0, `TimeUnit` can only be `s`.</li> // <li>m: Month. When `PayMode` is 1, `TimeUnit` can only be `m`.</li> TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // Time span of scale-out, which needs to be used together with `TimeUnit`. TimeSpan *uint64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Instance billing mode. Valid value: // <li>0: Pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitnil" name:"PayMode"` // Client token. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // Bootstrap script settings. PreExecutedFileSettings []*PreExecuteFileSettings `json:"PreExecutedFileSettings,omitnil" name:"PreExecutedFileSettings"` // Number of task nodes to be added. TaskCount *uint64 `json:"TaskCount,omitnil" name:"TaskCount"` // Number of core nodes to be added. CoreCount *uint64 `json:"CoreCount,omitnil" name:"CoreCount"` // Processes unnecessary for scale-out. UnNecessaryNodeList []*uint64 `json:"UnNecessaryNodeList,omitnil" name:"UnNecessaryNodeList"` // Number of router nodes to be added. RouterCount *uint64 `json:"RouterCount,omitnil" name:"RouterCount"` // Deployed service. // <li>`SoftDeployInfo` and `ServiceNodeInfo` are in the same group and mutually exclusive with `UnNecessaryNodeList`.</li> // <li>The combination of `SoftDeployInfo` and `ServiceNodeInfo` is recommended.</li> SoftDeployInfo []*uint64 `json:"SoftDeployInfo,omitnil" name:"SoftDeployInfo"` // Started process. ServiceNodeInfo []*uint64 `json:"ServiceNodeInfo,omitnil" name:"ServiceNodeInfo"` // List of spread placement group IDs. Only one can be specified currently. DisasterRecoverGroupIds []*string `json:"DisasterRecoverGroupIds,omitnil" name:"DisasterRecoverGroupIds"` // List of tags bound to added nodes. Tags []*Tag `json:"Tags,omitnil" name:"Tags"` // Resource type selected for scaling. Valid values: `host` (general CVM resource) and `pod` (resource provided by TKE or EKS cluster). HardwareResourceType *string `json:"HardwareResourceType,omitnil" name:"HardwareResourceType"` // Specified information such as pod specification and source for scale-out with pod resources. PodSpec *PodSpec `json:"PodSpec,omitnil" name:"PodSpec"` // Server group name selected for ClickHouse cluster scale-out. ClickHouseClusterName *string `json:"ClickHouseClusterName,omitnil" name:"ClickHouseClusterName"` // Server group type selected for ClickHouse cluster scale-out. Valid values: `new` (create a group) and `old` (select an existing group). ClickHouseClusterType *string `json:"ClickHouseClusterType,omitnil" name:"ClickHouseClusterType"` // Yarn node label specified for rule-based scale-out. YarnNodeLabel *string `json:"YarnNodeLabel,omitnil" name:"YarnNodeLabel"` // Custom pod permission and parameter PodParameter *PodParameter `json:"PodParameter,omitnil" name:"PodParameter"` // Number of master nodes to be added. // When a ClickHouse cluster is scaled, this parameter does not take effect. // When a Kafka cluster is scaled, this parameter does not take effect. // When `HardwareResourceType` is `pod`, this parameter does not take effect. MasterCount *uint64 `json:"MasterCount,omitnil" name:"MasterCount"` // Whether to start the service after scale-out. `true`: Yes; `false`: No. StartServiceAfterScaleOut *string `json:"StartServiceAfterScaleOut,omitnil" name:"StartServiceAfterScaleOut"` // AZ, which defaults to the primary AZ of the cluster. ZoneId *int64 `json:"ZoneId,omitnil" name:"ZoneId"` // Subnet, which defaults to the subnet used when the cluster is created. SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"` // Pre-defined configuration set ScaleOutServiceConfAssign *string `json:"ScaleOutServiceConfAssign,omitnil" name:"ScaleOutServiceConfAssign"` // Whether to enable auto-renewal. Valid values: `0` (no), `1` (yes). AutoRenew *int64 `json:"AutoRenew,omitnil" name:"AutoRenew"` }
Predefined struct for user
type ScaleOutInstanceResponse ¶
type ScaleOutInstanceResponse struct { *tchttp.BaseResponse Response *ScaleOutInstanceResponseParams `json:"Response"` }
func NewScaleOutInstanceResponse ¶
func NewScaleOutInstanceResponse() (response *ScaleOutInstanceResponse)
func (*ScaleOutInstanceResponse) FromJsonString ¶
func (r *ScaleOutInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ScaleOutInstanceResponse) ToJsonString ¶
func (r *ScaleOutInstanceResponse) ToJsonString() string
type ScaleOutInstanceResponseParams ¶
type ScaleOutInstanceResponseParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Order number. // Note: This field may return null, indicating that no valid values can be obtained. DealNames []*string `json:"DealNames,omitnil" name:"DealNames"` // Client token. // Note: This field may return null, indicating that no valid values can be obtained. ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // Scale-out workflow ID. // Note: This field may return null, indicating that no valid values can be obtained. FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"` // Big order ID. // Note: This field may return null, indicating that no valid values can be obtained. BillId *string `json:"BillId,omitnil" name:"BillId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ScaleOutNodeConfig ¶
type SceneSoftwareConfig ¶
type SceneSoftwareConfig struct { // The list of deployed components. The list of component options varies by `ProductVersion` (EMR version). For more information, see [Component Version](https://intl.cloud.tencent.com/document/product/589/20279?from_cn_redirect=1). // The instance type, `hive` or `flink`. Software []*string `json:"Software,omitnil" name:"Software"` // The scenario name, which defaults to `Hadoop-Default`. For more details, see [here](https://intl.cloud.tencent.com/document/product/589/14624?from_cn_redirect=1). Valid values: // Hadoop-Kudu // Hadoop-Zookeeper // Hadoop-Presto // Hadoop-Hbase // Hadoop-Default SceneName *string `json:"SceneName,omitnil" name:"SceneName"` }
type ScriptBootstrapActionConfig ¶
type ScriptBootstrapActionConfig struct { // The COS URL of the script, in the format of `https://beijing-111111.cos.ap-beijing.myqcloud.com/data/test.sh`. For the COS bucket list, see [Bucket List](https://console.cloud.tencent.com/cos/bucket). CosFileURI *string `json:"CosFileURI,omitnil" name:"CosFileURI"` // The execution time of the bootstrap action script. Valid values: // <li>`resourceAfter`: After node initialization</li> // <li>`clusterAfter`: After cluster start</li> // <li>`clusterBefore`: Before cluster start</li> ExecutionMoment *string `json:"ExecutionMoment,omitnil" name:"ExecutionMoment"` // The execution script parameter. The parameter format must comply with standard shell specifications. Args []*string `json:"Args,omitnil" name:"Args"` // The script file name. CosFileName *string `json:"CosFileName,omitnil" name:"CosFileName"` }
type SearchItem ¶
type ServiceBasicRestartInfo ¶
type ServiceBasicRestartInfo struct { // The service name (required), such as HDFS. ServiceName *string `json:"ServiceName,omitnil" name:"ServiceName"` // If it is left empty, all processes will be operated on. ComponentInfoList []*ComponentBasicRestartInfo `json:"ComponentInfoList,omitnil" name:"ComponentInfoList"` }
type ShortNodeInfo ¶
type ShortNodeInfo struct { // Node type: Master/Core/Task/Router/Common // Note: This field may return `null`, indicating that no valid value can be obtained. NodeType *string `json:"NodeType,omitnil" name:"NodeType"` // Number of nodes // Note: This field may return `null`, indicating that no valid value can be obtained. NodeSize *uint64 `json:"NodeSize,omitnil" name:"NodeSize"` }
type SoftDependInfo ¶
type StartStopServiceOrMonitorRequest ¶
type StartStopServiceOrMonitorRequest struct { *tchttp.BaseRequest // The cluster ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The operation type. Valid values: // <li>StartService: Start service</li> // <li>StopService: Stop service</li> // <li>StartMonitor: Start maintenance</li> // <li>StopMonitor: Stop maintenance</li> // <li>RestartService: Restart service. If this type is selected, "StrategyConfig" is required.</li> OpType *string `json:"OpType,omitnil" name:"OpType"` // The operation scope. OpScope *OpScope `json:"OpScope,omitnil" name:"OpScope"` // The operation policy. StrategyConfig *StrategyConfig `json:"StrategyConfig,omitnil" name:"StrategyConfig"` }
func NewStartStopServiceOrMonitorRequest ¶
func NewStartStopServiceOrMonitorRequest() (request *StartStopServiceOrMonitorRequest)
func (*StartStopServiceOrMonitorRequest) FromJsonString ¶
func (r *StartStopServiceOrMonitorRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartStopServiceOrMonitorRequest) ToJsonString ¶
func (r *StartStopServiceOrMonitorRequest) ToJsonString() string
type StartStopServiceOrMonitorRequestParams ¶
type StartStopServiceOrMonitorRequestParams struct { // The cluster ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The operation type. Valid values: // <li>StartService: Start service</li> // <li>StopService: Stop service</li> // <li>StartMonitor: Start maintenance</li> // <li>StopMonitor: Stop maintenance</li> // <li>RestartService: Restart service. If this type is selected, "StrategyConfig" is required.</li> OpType *string `json:"OpType,omitnil" name:"OpType"` // The operation scope. OpScope *OpScope `json:"OpScope,omitnil" name:"OpScope"` // The operation policy. StrategyConfig *StrategyConfig `json:"StrategyConfig,omitnil" name:"StrategyConfig"` }
Predefined struct for user
type StartStopServiceOrMonitorResponse ¶
type StartStopServiceOrMonitorResponse struct { *tchttp.BaseResponse Response *StartStopServiceOrMonitorResponseParams `json:"Response"` }
func NewStartStopServiceOrMonitorResponse ¶
func NewStartStopServiceOrMonitorResponse() (response *StartStopServiceOrMonitorResponse)
func (*StartStopServiceOrMonitorResponse) FromJsonString ¶
func (r *StartStopServiceOrMonitorResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartStopServiceOrMonitorResponse) ToJsonString ¶
func (r *StartStopServiceOrMonitorResponse) ToJsonString() string
type StartStopServiceOrMonitorResponseParams ¶
type StartStopServiceOrMonitorResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type StrategyConfig ¶
type StrategyConfig struct { // `0`: Disable rolling restart // `1`: Enable rolling restart // Note: This field may return null, indicating that no valid values can be obtained. RollingRestartSwitch *int64 `json:"RollingRestartSwitch,omitnil" name:"RollingRestartSwitch"` // The quantity of restarts per batch during a rolling restart, with the maximum number of restarts being 99999 // Note: This field may return null, indicating that no valid values can be obtained. BatchSize *int64 `json:"BatchSize,omitnil" name:"BatchSize"` // The wait time (in seconds) per batch in rolling restart, with a maximum value of 5 minutes. // Note: This field may return null, indicating that no valid values can be obtained. TimeWait *int64 `json:"TimeWait,omitnil" name:"TimeWait"` // The failure handling policy. Valid values: `0` (blocks the process) and `1` (skips). // Note: This field may return null, indicating that no valid values can be obtained. DealOnFail *int64 `json:"DealOnFail,omitnil" name:"DealOnFail"` }
type SubnetInfo ¶
type SubnetInfo struct { // Subnet information (name) // Note: This field may return `null`, indicating that no valid value can be obtained. SubnetName *string `json:"SubnetName,omitnil" name:"SubnetName"` // Subnet information (ID) // Note: This field may return `null`, indicating that no valid value can be obtained. SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"` }
type TerminateClusterNodesRequest ¶
type TerminateClusterNodesRequest struct { *tchttp.BaseRequest // The instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The list of resources to be terminated. CvmInstanceIds []*string `json:"CvmInstanceIds,omitnil" name:"CvmInstanceIds"` // Valid values of node type: // <li>MASTER</li> // <li>TASK</li> // <li>CORE</li> // <li>ROUTER</li> NodeFlag *string `json:"NodeFlag,omitnil" name:"NodeFlag"` // The graceful scale-in feature. Valid values: // <li>`true`: Enabled.</li> // <li>`false`: Disabled.</li> GraceDownFlag *bool `json:"GraceDownFlag,omitnil" name:"GraceDownFlag"` // The graceful scale-in wait time in seconds. Value range: 60–1800. GraceDownTime *int64 `json:"GraceDownTime,omitnil" name:"GraceDownTime"` }
func NewTerminateClusterNodesRequest ¶
func NewTerminateClusterNodesRequest() (request *TerminateClusterNodesRequest)
func (*TerminateClusterNodesRequest) FromJsonString ¶
func (r *TerminateClusterNodesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TerminateClusterNodesRequest) ToJsonString ¶
func (r *TerminateClusterNodesRequest) ToJsonString() string
type TerminateClusterNodesRequestParams ¶
type TerminateClusterNodesRequestParams struct { // The instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // The list of resources to be terminated. CvmInstanceIds []*string `json:"CvmInstanceIds,omitnil" name:"CvmInstanceIds"` // Valid values of node type: // <li>MASTER</li> // <li>TASK</li> // <li>CORE</li> // <li>ROUTER</li> NodeFlag *string `json:"NodeFlag,omitnil" name:"NodeFlag"` // The graceful scale-in feature. Valid values: // <li>`true`: Enabled.</li> // <li>`false`: Disabled.</li> GraceDownFlag *bool `json:"GraceDownFlag,omitnil" name:"GraceDownFlag"` // The graceful scale-in wait time in seconds. Value range: 60–1800. GraceDownTime *int64 `json:"GraceDownTime,omitnil" name:"GraceDownTime"` }
Predefined struct for user
type TerminateClusterNodesResponse ¶
type TerminateClusterNodesResponse struct { *tchttp.BaseResponse Response *TerminateClusterNodesResponseParams `json:"Response"` }
func NewTerminateClusterNodesResponse ¶
func NewTerminateClusterNodesResponse() (response *TerminateClusterNodesResponse)
func (*TerminateClusterNodesResponse) FromJsonString ¶
func (r *TerminateClusterNodesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TerminateClusterNodesResponse) ToJsonString ¶
func (r *TerminateClusterNodesResponse) ToJsonString() string
type TerminateClusterNodesResponseParams ¶
type TerminateClusterNodesResponseParams struct { // The scale-in process ID. FlowId *int64 `json:"FlowId,omitnil" name:"FlowId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type TerminateInstanceRequest ¶
type TerminateInstanceRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // ID of terminated node. This parameter is reserved and does not need to be configured. ResourceIds []*string `json:"ResourceIds,omitnil" name:"ResourceIds"` }
func NewTerminateInstanceRequest ¶
func NewTerminateInstanceRequest() (request *TerminateInstanceRequest)
func (*TerminateInstanceRequest) FromJsonString ¶
func (r *TerminateInstanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TerminateInstanceRequest) ToJsonString ¶
func (r *TerminateInstanceRequest) ToJsonString() string
type TerminateInstanceRequestParams ¶
type TerminateInstanceRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // ID of terminated node. This parameter is reserved and does not need to be configured. ResourceIds []*string `json:"ResourceIds,omitnil" name:"ResourceIds"` }
Predefined struct for user
type TerminateInstanceResponse ¶
type TerminateInstanceResponse struct { *tchttp.BaseResponse Response *TerminateInstanceResponseParams `json:"Response"` }
func NewTerminateInstanceResponse ¶
func NewTerminateInstanceResponse() (response *TerminateInstanceResponse)
func (*TerminateInstanceResponse) FromJsonString ¶
func (r *TerminateInstanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TerminateInstanceResponse) ToJsonString ¶
func (r *TerminateInstanceResponse) ToJsonString() string
type TerminateInstanceResponseParams ¶
type TerminateInstanceResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type TerminateTasksRequest ¶
type TerminateTasksRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // List of resource IDs of the node to be terminated. The resource ID is in the format of `emr-vm-xxxxxxxx`. A valid resource ID can be queried in the [console](https://console.cloud.tencent.com/emr/static/hardware). ResourceIds []*string `json:"ResourceIds,omitnil" name:"ResourceIds"` }
func NewTerminateTasksRequest ¶
func NewTerminateTasksRequest() (request *TerminateTasksRequest)
func (*TerminateTasksRequest) FromJsonString ¶
func (r *TerminateTasksRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TerminateTasksRequest) ToJsonString ¶
func (r *TerminateTasksRequest) ToJsonString() string
type TerminateTasksRequestParams ¶
type TerminateTasksRequestParams struct { // Instance ID. InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // List of resource IDs of the node to be terminated. The resource ID is in the format of `emr-vm-xxxxxxxx`. A valid resource ID can be queried in the [console](https://console.cloud.tencent.com/emr/static/hardware). ResourceIds []*string `json:"ResourceIds,omitnil" name:"ResourceIds"` }
Predefined struct for user
type TerminateTasksResponse ¶
type TerminateTasksResponse struct { *tchttp.BaseResponse Response *TerminateTasksResponseParams `json:"Response"` }
func NewTerminateTasksResponse ¶
func NewTerminateTasksResponse() (response *TerminateTasksResponse)
func (*TerminateTasksResponse) FromJsonString ¶
func (r *TerminateTasksResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TerminateTasksResponse) ToJsonString ¶
func (r *TerminateTasksResponse) ToJsonString() string
type TerminateTasksResponseParams ¶
type TerminateTasksResponseParams struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type TopologyInfo ¶
type TopologyInfo struct { // AZ ID // Note: This field may return `null`, indicating that no valid value can be obtained. ZoneId *int64 `json:"ZoneId,omitnil" name:"ZoneId"` // AZ information // Note: This field may return `null`, indicating that no valid value can be obtained. Zone *string `json:"Zone,omitnil" name:"Zone"` // Subnet information // Note: This field may return `null`, indicating that no valid value can be obtained. SubnetInfoList []*SubnetInfo `json:"SubnetInfoList,omitnil" name:"SubnetInfoList"` // Node information // Note: This field may return `null`, indicating that no valid value can be obtained. NodeInfoList []*ShortNodeInfo `json:"NodeInfoList,omitnil" name:"NodeInfoList"` }
type UpdateInstanceSettings ¶
type UpdateInstanceSettings struct { // Memory capacity in GB Memory *uint64 `json:"Memory,omitnil" name:"Memory"` // Number of CPU cores CPUCores *uint64 `json:"CPUCores,omitnil" name:"CPUCores"` // Machine resource ID (EMR resource identifier) ResourceId *string `json:"ResourceId,omitnil" name:"ResourceId"` // Target machine specification InstanceType *string `json:"InstanceType,omitnil" name:"InstanceType"` }
type UserInfoForUserManager ¶
type UserInfoForUserManager struct { // Username UserName *string `json:"UserName,omitnil" name:"UserName"` // The group to which the user belongs UserGroup *string `json:"UserGroup,omitnil" name:"UserGroup"` PassWord *string `json:"PassWord,omitnil" name:"PassWord"` ReMark *string `json:"ReMark,omitnil" name:"ReMark"` }
type UserManagerFilter ¶
type UserManagerFilter struct { // Username // Note: This field may return null, indicating that no valid value can be obtained. UserName *string `json:"UserName,omitnil" name:"UserName"` }
type UserManagerUserBriefInfo ¶
type UserManagerUserBriefInfo struct { // Username UserName *string `json:"UserName,omitnil" name:"UserName"` // The group to which the user belongs UserGroup *string `json:"UserGroup,omitnil" name:"UserGroup"` // `Manager` represents an admin, and `NormalUser` represents a general user. UserType *string `json:"UserType,omitnil" name:"UserType"` // Account creation time // Note: This field may return null, indicating that no valid value can be obtained. CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"` // Whether the corresponding Keytab file of the user is available for download. This parameter applies only to a Kerberos-enabled cluster. SupportDownLoadKeyTab *bool `json:"SupportDownLoadKeyTab,omitnil" name:"SupportDownLoadKeyTab"` // Download link of the Keytab file // Note: This field may return null, indicating that no valid value can be obtained. DownLoadKeyTabUrl *string `json:"DownLoadKeyTabUrl,omitnil" name:"DownLoadKeyTabUrl"` }
type VPCSettings ¶
type VirtualPrivateCloud ¶
type ZoneDetailPriceResult ¶
type ZoneDetailPriceResult struct { // AZ ID // Note: This field may return null, indicating that no valid values can be obtained. ZoneId *string `json:"ZoneId,omitnil" name:"ZoneId"` // Price details by node NodeDetailPrice []*NodeDetailPriceResult `json:"NodeDetailPrice,omitnil" name:"NodeDetailPrice"` }
type ZoneResourceConfiguration ¶
type ZoneResourceConfiguration struct { // The VPC configuration information. This parameter is used to specify the VPC ID, subnet ID and other information. // Note: This field may return null, indicating that no valid values can be obtained. VirtualPrivateCloud *VirtualPrivateCloud `json:"VirtualPrivateCloud,omitnil" name:"VirtualPrivateCloud"` // The instance location. This parameter is used to specify the AZ, project, and other attributes of the instance. // Note: This field may return null, indicating that no valid values can be obtained. Placement *Placement `json:"Placement,omitnil" name:"Placement"` // The specs of all nodes. // Note: This field may return null, indicating that no valid values can be obtained. AllNodeResourceSpec *AllNodeResourceSpec `json:"AllNodeResourceSpec,omitnil" name:"AllNodeResourceSpec"` // For a single AZ, `ZoneTag` can be left out. For a double-AZ mode, `ZoneTag` is set to `master` and `standby` for the first and second AZs, respectively. If there are three AZs, `ZoneTag` is set to `master`, `standby`, and `third-party` for the first, second, and third AZs, respectively. Valid values: // <li>master</li> // <li>standby</li> // <li>third-party</li> // Note: This field may return null, indicating that no valid values can be obtained. ZoneTag *string `json:"ZoneTag,omitnil" name:"ZoneTag"` }