Documentation ¶
Index ¶
- Constants
- type AddUsersForUserManagerRequest
- type AddUsersForUserManagerRequestParams
- type AddUsersForUserManagerResponse
- type AddUsersForUserManagerResponseParams
- type ApplicationStatics
- 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) CreateInstance(request *CreateInstanceRequest) (response *CreateInstanceResponse, err error)
- func (c *Client) CreateInstanceWithContext(ctx context.Context, request *CreateInstanceRequest) (response *CreateInstanceResponse, 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) 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) ScaleOutInstance(request *ScaleOutInstanceRequest) (response *ScaleOutInstanceResponse, err error)
- func (c *Client) ScaleOutInstanceWithContext(ctx context.Context, request *ScaleOutInstanceRequest) (response *ScaleOutInstanceResponse, 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 ClusterInstancesInfo
- type CreateInstanceRequest
- type CreateInstanceRequestParams
- type CreateInstanceResponse
- type CreateInstanceResponseParams
- type CustomMetaInfo
- type CustomServiceDefine
- type DescribeClusterNodesRequest
- type DescribeClusterNodesRequestParams
- type DescribeClusterNodesResponse
- type DescribeClusterNodesResponseParams
- type DescribeEmrApplicationStaticsRequest
- type DescribeEmrApplicationStaticsRequestParams
- type DescribeEmrApplicationStaticsResponse
- type DescribeEmrApplicationStaticsResponseParams
- 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 DynamicPodSpec
- type EmrListInstance
- type EmrProductConfigOutter
- type ExternalService
- type Filters
- 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 LoginSettings
- type ModifyResourceScheduleConfigRequest
- type ModifyResourceScheduleConfigRequestParams
- type ModifyResourceScheduleConfigResponse
- type ModifyResourceScheduleConfigResponseParams
- type ModifyResourceSchedulerRequest
- type ModifyResourceSchedulerRequestParams
- type ModifyResourceSchedulerResponse
- type ModifyResourceSchedulerResponseParams
- type MultiDisk
- type MultiDiskMC
- type MultiZoneSetting
- type NewResourceSpec
- type NodeHardwareInfo
- type OutterResource
- type PersistentVolumeContext
- type Placement
- type PodParameter
- type PodSpec
- type PodVolume
- type PreExecuteFileSettings
- type PriceDetail
- type PriceResource
- type Resource
- type ScaleOutInstanceRequest
- type ScaleOutInstanceRequestParams
- type ScaleOutInstanceResponse
- type ScaleOutInstanceResponseParams
- type SearchItem
- type ShortNodeInfo
- type SubnetInfo
- type Tag
- 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
Constants ¶
const ( // Operation failed. FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_CHECKIFSUPPORTPODSTRETCH = "FailedOperation.CheckIfSupportPodStretch" // Duplicate order. Please check the EMR console. FAILEDOPERATION_DUPLICATEORDERNOTALLOWED = "FailedOperation.DuplicateOrderNotAllowed" // Operation failed. The pods are not supported. FAILEDOPERATION_NOTSUPPORTPOD = "FailedOperation.NotSupportPod" // 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" // 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" // Incorrect display policy. INVALIDPARAMETER_DISPLAYSTRATEGYNOTMATCH = "InvalidParameter.DisplayStrategyNotMatch" // Parameter error. INVALIDPARAMETER_HALESSMASTERCOUNT = "InvalidParameter.HALessMasterCount" // The number of common nodes is invalid. INVALIDPARAMETER_INCORRECTCOMMONCOUNT = "InvalidParameter.IncorrectCommonCount" // The number of master nodes is invalid. INVALIDPARAMETER_INCORRECTMASTERCOUNT = "InvalidParameter.IncorrectMasterCount" // 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" // 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" // Invalid disk size. INVALIDPARAMETER_INVALIDDISKSIZE = "InvalidParameter.InvalidDiskSize" // Invalid EKS instance. INVALIDPARAMETER_INVALIDEKSINSTANCE = "InvalidParameter.InvalidEksInstance" // Invalid `CustomConfig`. INVALIDPARAMETER_INVALIDEXTENDFIELD = "InvalidParameter.InvalidExtendField" // Invalid cluster name. INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" // Invalid model. INVALIDPARAMETER_INVALIDINSTANCETYPE = "InvalidParameter.InvalidInstanceType" // 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" // 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 project ID. INVALIDPARAMETER_INVALIDPROJECTID = "InvalidParameter.InvalidProjectId" // Invalid resource ID. INVALIDPARAMETER_INVALIDRESOURCEIDS = "InvalidParameter.InvalidResourceIds" // Invalid resource specification. INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" // 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 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 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" // 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" // 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" // Unknown parameter. UNKNOWNPARAMETER = "UnknownParameter" // Unsupported operation. UNSUPPORTEDOPERATION = "UnsupportedOperation" // 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,omitempty" name:"InstanceId"` // User information list UserManagerUserList []*UserInfoForUserManager `json:"UserManagerUserList,omitempty" 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,omitempty" name:"InstanceId"` // User information list UserManagerUserList []*UserInfoForUserManager `json:"UserManagerUserList,omitempty" 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,omitempty" 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,omitempty" name:"FailedUserList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ApplicationStatics ¶
type ApplicationStatics struct { // Queue name Queue *string `json:"Queue,omitempty" name:"Queue"` // Username User *string `json:"User,omitempty" name:"User"` // Application type ApplicationType *string `json:"ApplicationType,omitempty" name:"ApplicationType"` // `SumMemorySeconds` meaning SumMemorySeconds *int64 `json:"SumMemorySeconds,omitempty" name:"SumMemorySeconds"` SumVCoreSeconds *int64 `json:"SumVCoreSeconds,omitempty" name:"SumVCoreSeconds"` // SumHDFSBytesWritten (with unit) SumHDFSBytesWritten *string `json:"SumHDFSBytesWritten,omitempty" name:"SumHDFSBytesWritten"` // SumHDFSBytesRead (with unit) SumHDFSBytesRead *string `json:"SumHDFSBytesRead,omitempty" name:"SumHDFSBytesRead"` // Application count CountApps *int64 `json:"CountApps,omitempty" name:"CountApps"` }
type COSSettings ¶
type COSSettings struct { // COS `SecretId` CosSecretId *string `json:"CosSecretId,omitempty" name:"CosSecretId"` // COS `SecrectKey` CosSecretKey *string `json:"CosSecretKey,omitempty" name:"CosSecretKey"` // COS path to log LogOnCosPath *string `json:"LogOnCosPath,omitempty" name:"LogOnCosPath"` }
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,omitempty" name:"InstanceName"` // Database IP // Note: this field may return null, indicating that no valid values can be obtained. Ip *string `json:"Ip,omitempty" name:"Ip"` // Database port // Note: this field may return null, indicating that no valid values can be obtained. Port *int64 `json:"Port,omitempty" name:"Port"` // Database memory specification // Note: this field may return null, indicating that no valid values can be obtained. MemSize *int64 `json:"MemSize,omitempty" name:"MemSize"` // Database disk specification // Note: this field may return null, indicating that no valid values can be obtained. Volume *int64 `json:"Volume,omitempty" name:"Volume"` // Service flag // Note: this field may return null, indicating that no valid values can be obtained. Service *string `json:"Service,omitempty" name:"Service"` // Expiration time // Note: this field may return null, indicating that no valid values can be obtained. ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` // Application time // Note: this field may return null, indicating that no valid values can be obtained. ApplyTime *string `json:"ApplyTime,omitempty" name:"ApplyTime"` // Payment type // Note: this field may return null, indicating that no valid values can be obtained. PayType *int64 `json:"PayType,omitempty" name:"PayType"` // Expiration flag // Note: this field may return null, indicating that no valid values can be obtained. ExpireFlag *bool `json:"ExpireFlag,omitempty" name:"ExpireFlag"` // Database status // Note: this field may return null, indicating that no valid values can be obtained. Status *int64 `json:"Status,omitempty" name:"Status"` // Renewal flag // Note: this field may return null, indicating that no valid values can be obtained. IsAutoRenew *int64 `json:"IsAutoRenew,omitempty" name:"IsAutoRenew"` // Database string // Note: this field may return null, indicating that no valid values can be obtained. SerialNo *string `json:"SerialNo,omitempty" name:"SerialNo"` // ZoneId // Note: this field may return null, indicating that no valid values can be obtained. ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` // RegionId // Note: this field may return null, indicating that no valid values can be obtained. RegionId *int64 `json:"RegionId,omitempty" 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) 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" 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 = "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_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" 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" 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 = "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_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" 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) 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" 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" 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" 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" 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:
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:
INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
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" 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"
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" 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"
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" 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"
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" 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"
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" 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" 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" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
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" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
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" 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" 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:
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" 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:
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" 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:
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_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:
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_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:
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_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:
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_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:
INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
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:
INTERNALERROR = "InternalError" INTERNALERROR_CAMCGWERROR = "InternalError.CamCgwError" INTERNALERROR_WOODSERVERERROR = "InternalError.WoodServerError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound"
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) 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_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_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_INVALIDPAYMODE = "InvalidParameter.InvalidPaymode" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" 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_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_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_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_INVALIDPAYMODE = "InvalidParameter.InvalidPaymode" INVALIDPARAMETER_INVALIDRESOURCESPEC = "InvalidParameter.InvalidResourceSpec" 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_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) 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:
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" 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:
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" 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_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_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,omitempty" name:"DependType"` // Shared component // Note: This field may return `null`, indicating that no valid values can be obtained. Service *string `json:"Service,omitempty" name:"Service"` // Sharing cluster // Note: This field may return `null`, indicating that no valid values can be obtained. ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Sharing cluster status // Note: This field may return `null`, indicating that no valid values can be obtained. ClusterStatus *int64 `json:"ClusterStatus,omitempty" name:"ClusterStatus"` }
type ClusterInstancesInfo ¶
type ClusterInstancesInfo struct { // ID // Note: this field may return null, indicating that no valid values can be obtained. Id *int64 `json:"Id,omitempty" name:"Id"` // Cluster ID // Note: this field may return null, indicating that no valid values can be obtained. ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Title // Note: this field may return null, indicating that no valid values can be obtained. Ftitle *string `json:"Ftitle,omitempty" name:"Ftitle"` // Cluster name // Note: this field may return null, indicating that no valid values can be obtained. ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // Region ID // Note: this field may return null, indicating that no valid values can be obtained. RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"` // Region ID // Note: this field may return null, indicating that no valid values can be obtained. ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` // User APPID // Note: this field may return null, indicating that no valid values can be obtained. AppId *int64 `json:"AppId,omitempty" name:"AppId"` // User UIN // Note: this field may return null, indicating that no valid values can be obtained. Uin *string `json:"Uin,omitempty" name:"Uin"` // Project ID // Note: this field may return null, indicating that no valid values can be obtained. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // Cluster `VPCID` // Note: this field may return null, indicating that no valid values can be obtained. VpcId *int64 `json:"VpcId,omitempty" name:"VpcId"` // Subnet ID // Note: this field may return null, indicating that no valid values can be obtained. SubnetId *int64 `json:"SubnetId,omitempty" 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,omitempty" name:"Status"` // Creation time // Note: this field may return null, indicating that no valid values can be obtained. AddTime *string `json:"AddTime,omitempty" name:"AddTime"` // Execution duration // Note: this field may return null, indicating that no valid values can be obtained. RunTime *string `json:"RunTime,omitempty" name:"RunTime"` // Cluster product configuration information // Note: this field may return null, indicating that no valid values can be obtained. Config *EmrProductConfigOutter `json:"Config,omitempty" 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,omitempty" name:"MasterIp"` // EMR version // Note: this field may return null, indicating that no valid values can be obtained. EmrVersion *string `json:"EmrVersion,omitempty" name:"EmrVersion"` // Billing mode // Note: this field may return null, indicating that no valid values can be obtained. ChargeType *int64 `json:"ChargeType,omitempty" name:"ChargeType"` // Transaction version // Note: this field may return null, indicating that no valid values can be obtained. TradeVersion *int64 `json:"TradeVersion,omitempty" name:"TradeVersion"` // Resource order ID // Note: this field may return null, indicating that no valid values can be obtained. ResourceOrderId *int64 `json:"ResourceOrderId,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" name:"IsWoodpeckerCluster"` // Metadatabase information // Note: this field may return null, indicating that no valid values can be obtained. MetaDb *string `json:"MetaDb,omitempty" name:"MetaDb"` // Tag information // Note: this field may return null, indicating that no valid values can be obtained. Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // Hive metadata // Note: this field may return null, indicating that no valid values can be obtained. HiveMetaDb *string `json:"HiveMetaDb,omitempty" 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,omitempty" 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,omitempty" name:"AliasInfo"` // Cluster version ID // Note: this field may return null, indicating that no valid values can be obtained. ProductId *int64 `json:"ProductId,omitempty" name:"ProductId"` // Availability zone // Note: this field may return `null`, indicating that no valid value can be obtained. Zone *string `json:"Zone,omitempty" name:"Zone"` // Scenario name // Note: This field may return `null`, indicating that no valid value was found. SceneName *string `json:"SceneName,omitempty" name:"SceneName"` // Scenario-based cluster type // Note: This field may return `null`, indicating that no valid value was found. SceneServiceClass *string `json:"SceneServiceClass,omitempty" name:"SceneServiceClass"` // Scenario-based EMR version // Note: This field may return `null`, indicating that no valid value was found. SceneEmrVersion *string `json:"SceneEmrVersion,omitempty" name:"SceneEmrVersion"` // Scenario-based cluster type // Note: This field may return `null`, indicating that no valid value was found. DisplayName *string `json:"DisplayName,omitempty" name:"DisplayName"` // VPC name // Note: This field may return `null`, indicating that no valid value was found. VpcName *string `json:"VpcName,omitempty" name:"VpcName"` // Subnet name // Note: This field may return `null`, indicating that no valid value was found. SubnetName *string `json:"SubnetName,omitempty" name:"SubnetName"` // Cluster dependency // Note: This field may return `null`, indicating that no valid value was found. ClusterExternalServiceInfo []*ClusterExternalServiceInfo `json:"ClusterExternalServiceInfo,omitempty" 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,omitempty" 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,omitempty" name:"UniqSubnetId"` // Node information // Note: This field may return `null`, indicating that no valid values can be obtained. TopologyInfoList []*TopologyInfo `json:"TopologyInfoList,omitempty" name:"TopologyInfoList"` // Multi-AZ cluster // Note: This field may return `null`, indicating that no valid values can be obtained. IsMultiZoneCluster *bool `json:"IsMultiZoneCluster,omitempty" name:"IsMultiZoneCluster"` }
type CreateInstanceRequest ¶
type CreateInstanceRequest struct { *tchttp.BaseRequest // The product ID. Different product IDs represent different EMR product versions. Valid values: // <li>16: EMR v2.3.0</li> // <li>20: EMR v2.5.0</li> // <li>25: EMR v3.1.0</li> // <li>27: Kafka v1.0.0</li> // <li>30: EMR v2.6.0</li> // <li>33: EMR v3.2.1</li> // <li>34: EMR v3.3.0</li> // <li>36: StarRocks v1.0.0</li> // <li>37: EMR v3.4.0</li> // <li>38: EMR v2.7.0</li> // <li>39: StarRocks v1.1.0</li> // <li>41: Druid v1.1.0</li> ProductId *uint64 `json:"ProductId,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" name:"InstanceName"` // Instance billing mode. Valid values: // <li>0: pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" name:"LoginSettings"` // Configuration information of VPC. This parameter is used to specify the VPC ID, subnet ID, etc. VPCSettings *VPCSettings `json:"VPCSettings,omitempty" name:"VPCSettings"` // Node resource specification. ResourceSpec *NewResourceSpec `json:"ResourceSpec,omitempty" name:"ResourceSpec"` // Parameter required for enabling COS access. COSSettings *COSSettings `json:"COSSettings,omitempty" name:"COSSettings"` // Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance. Placement *Placement `json:"Placement,omitempty" 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,omitempty" name:"SgId"` // [Bootstrap action](https://intl.cloud.tencent.com/document/product/589/35656?from_cn_redirect=1) script settings PreExecutedFileSettings []*PreExecuteFileSettings `json:"PreExecutedFileSettings,omitempty" 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,omitempty" name:"AutoRenew"` // Client token. ClientToken *string `json:"ClientToken,omitempty" 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,omitempty" 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,omitempty" name:"RemoteLoginAtCreate"` // Whether to enable secure cluster. 0: no; other values: yes. CheckSecurity *int64 `json:"CheckSecurity,omitempty" name:"CheckSecurity"` // Accesses to external file system. ExtendFsField *string `json:"ExtendFsField,omitempty" name:"ExtendFsField"` // Tag description list. This parameter is used to bind a tag to a resource instance. Tags []*Tag `json:"Tags,omitempty" 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,omitempty" name:"DisasterRecoverGroupIds"` // CBS disk encryption at the cluster level. 0: not encrypted, 1: encrypted CbsEncrypt *uint64 `json:"CbsEncrypt,omitempty" 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,omitempty" name:"MetaType"` // EMR-MetaDB instance UnifyMetaInstanceId *string `json:"UnifyMetaInstanceId,omitempty" name:"UnifyMetaInstanceId"` // Custom MetaDB instance information MetaDBInfo *CustomMetaInfo `json:"MetaDBInfo,omitempty" name:"MetaDBInfo"` // Custom application role. ApplicationRole *string `json:"ApplicationRole,omitempty" name:"ApplicationRole"` // Scenario-based values: // Hadoop-Kudu // Hadoop-Zookeeper // Hadoop-Presto // Hadoop-Hbase SceneName *string `json:"SceneName,omitempty" name:"SceneName"` // Shared component information ExternalService []*ExternalService `json:"ExternalService,omitempty" name:"ExternalService"` VersionID *int64 `json:"VersionID,omitempty" 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,omitempty" 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,omitempty" 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 { // The product ID. Different product IDs represent different EMR product versions. Valid values: // <li>16: EMR v2.3.0</li> // <li>20: EMR v2.5.0</li> // <li>25: EMR v3.1.0</li> // <li>27: Kafka v1.0.0</li> // <li>30: EMR v2.6.0</li> // <li>33: EMR v3.2.1</li> // <li>34: EMR v3.3.0</li> // <li>36: StarRocks v1.0.0</li> // <li>37: EMR v3.4.0</li> // <li>38: EMR v2.7.0</li> // <li>39: StarRocks v1.1.0</li> // <li>41: Druid v1.1.0</li> ProductId *uint64 `json:"ProductId,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" name:"InstanceName"` // Instance billing mode. Valid values: // <li>0: pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" name:"LoginSettings"` // Configuration information of VPC. This parameter is used to specify the VPC ID, subnet ID, etc. VPCSettings *VPCSettings `json:"VPCSettings,omitempty" name:"VPCSettings"` // Node resource specification. ResourceSpec *NewResourceSpec `json:"ResourceSpec,omitempty" name:"ResourceSpec"` // Parameter required for enabling COS access. COSSettings *COSSettings `json:"COSSettings,omitempty" name:"COSSettings"` // Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance. Placement *Placement `json:"Placement,omitempty" 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,omitempty" name:"SgId"` // [Bootstrap action](https://intl.cloud.tencent.com/document/product/589/35656?from_cn_redirect=1) script settings PreExecutedFileSettings []*PreExecuteFileSettings `json:"PreExecutedFileSettings,omitempty" 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,omitempty" name:"AutoRenew"` // Client token. ClientToken *string `json:"ClientToken,omitempty" 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,omitempty" 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,omitempty" name:"RemoteLoginAtCreate"` // Whether to enable secure cluster. 0: no; other values: yes. CheckSecurity *int64 `json:"CheckSecurity,omitempty" name:"CheckSecurity"` // Accesses to external file system. ExtendFsField *string `json:"ExtendFsField,omitempty" name:"ExtendFsField"` // Tag description list. This parameter is used to bind a tag to a resource instance. Tags []*Tag `json:"Tags,omitempty" 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,omitempty" name:"DisasterRecoverGroupIds"` // CBS disk encryption at the cluster level. 0: not encrypted, 1: encrypted CbsEncrypt *uint64 `json:"CbsEncrypt,omitempty" 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,omitempty" name:"MetaType"` // EMR-MetaDB instance UnifyMetaInstanceId *string `json:"UnifyMetaInstanceId,omitempty" name:"UnifyMetaInstanceId"` // Custom MetaDB instance information MetaDBInfo *CustomMetaInfo `json:"MetaDBInfo,omitempty" name:"MetaDBInfo"` // Custom application role. ApplicationRole *string `json:"ApplicationRole,omitempty" name:"ApplicationRole"` // Scenario-based values: // Hadoop-Kudu // Hadoop-Zookeeper // Hadoop-Presto // Hadoop-Hbase SceneName *string `json:"SceneName,omitempty" name:"SceneName"` // Shared component information ExternalService []*ExternalService `json:"ExternalService,omitempty" name:"ExternalService"` VersionID *int64 `json:"VersionID,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" name:"InstanceId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type CustomMetaInfo ¶
type CustomMetaInfo struct { // JDBC connection to custom MetaDB instance beginning with `jdbc:mysql://` MetaDataJdbcUrl *string `json:"MetaDataJdbcUrl,omitempty" name:"MetaDataJdbcUrl"` // Custom MetaDB instance username MetaDataUser *string `json:"MetaDataUser,omitempty" name:"MetaDataUser"` // Custom MetaDB instance password MetaDataPass *string `json:"MetaDataPass,omitempty" name:"MetaDataPass"` }
type CustomServiceDefine ¶
type DescribeClusterNodesRequest ¶
type DescribeClusterNodesRequest struct { *tchttp.BaseRequest // Cluster instance ID in the format of emr-xxxxxxxx InstanceId *string `json:"InstanceId,omitempty" 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,omitempty" name:"NodeFlag"` // Page number. Default value: 0, indicating the first page. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results per page. Default value: 100. Maximum value: 100 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Resource type. Valid values: all, host, pod. Default value: all HardwareResourceType *string `json:"HardwareResourceType,omitempty" name:"HardwareResourceType"` // Searchable field SearchFields []*SearchItem `json:"SearchFields,omitempty" name:"SearchFields"` // None OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // None Asc *int64 `json:"Asc,omitempty" 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,omitempty" 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,omitempty" name:"NodeFlag"` // Page number. Default value: 0, indicating the first page. Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results per page. Default value: 100. Maximum value: 100 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // Resource type. Valid values: all, host, pod. Default value: all HardwareResourceType *string `json:"HardwareResourceType,omitempty" name:"HardwareResourceType"` // Searchable field SearchFields []*SearchItem `json:"SearchFields,omitempty" name:"SearchFields"` // None OrderField *string `json:"OrderField,omitempty" name:"OrderField"` // None Asc *int64 `json:"Asc,omitempty" 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,omitempty" name:"TotalCnt"` // List of node details // Note: this field may return null, indicating that no valid values can be obtained. NodeList []*NodeHardwareInfo `json:"NodeList,omitempty" 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,omitempty" name:"TagKeys"` // Resource type list // Note: this field may return null, indicating that no valid values can be obtained. HardwareResourceTypeList []*string `json:"HardwareResourceTypeList,omitempty" name:"HardwareResourceTypeList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeEmrApplicationStaticsRequest ¶
type DescribeEmrApplicationStaticsRequest struct { *tchttp.BaseRequest // Cluster ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Start time in the format of timestamp. Unit: seconds. StartTime *int64 `json:"StartTime,omitempty" name:"StartTime"` // End time in the format of timestamp. Unit: seconds. EndTime *int64 `json:"EndTime,omitempty" name:"EndTime"` // Queue name used for filtering Queues []*string `json:"Queues,omitempty" name:"Queues"` // Username used for filtering Users []*string `json:"Users,omitempty" name:"Users"` // Application type used for filtering ApplicationTypes []*string `json:"ApplicationTypes,omitempty" name:"ApplicationTypes"` // Group field. Valid values: `queue`, `user`, and `applicationType`. GroupBy []*string `json:"GroupBy,omitempty" name:"GroupBy"` // Sorting field. Valid values: `sumMemorySeconds`, `sumVCoreSeconds`, `sumHDFSBytesWritten`, and `sumHDFSBytesRead`. OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` // Order type. Valid values: `0` (descending) and `1`(ascending). IsAsc *int64 `json:"IsAsc,omitempty" name:"IsAsc"` // Page number Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Page limit Limit *int64 `json:"Limit,omitempty" 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,omitempty" name:"InstanceId"` // Start time in the format of timestamp. Unit: seconds. StartTime *int64 `json:"StartTime,omitempty" name:"StartTime"` // End time in the format of timestamp. Unit: seconds. EndTime *int64 `json:"EndTime,omitempty" name:"EndTime"` // Queue name used for filtering Queues []*string `json:"Queues,omitempty" name:"Queues"` // Username used for filtering Users []*string `json:"Users,omitempty" name:"Users"` // Application type used for filtering ApplicationTypes []*string `json:"ApplicationTypes,omitempty" name:"ApplicationTypes"` // Group field. Valid values: `queue`, `user`, and `applicationType`. GroupBy []*string `json:"GroupBy,omitempty" name:"GroupBy"` // Sorting field. Valid values: `sumMemorySeconds`, `sumVCoreSeconds`, `sumHDFSBytesWritten`, and `sumHDFSBytesRead`. OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` // Order type. Valid values: `0` (descending) and `1`(ascending). IsAsc *int64 `json:"IsAsc,omitempty" name:"IsAsc"` // Page number Offset *int64 `json:"Offset,omitempty" name:"Offset"` // Page limit Limit *int64 `json:"Limit,omitempty" 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,omitempty" name:"Statics"` // Total count TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // Available queue name Queues []*string `json:"Queues,omitempty" name:"Queues"` // Available usernames Users []*string `json:"Users,omitempty" name:"Users"` // Available application type ApplicationTypes []*string `json:"ApplicationTypes,omitempty" name:"ApplicationTypes"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" 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,omitempty" name:"DisplayStrategy"` // Page number. Default value: `0`, indicating the first page. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results per page. Default value: `10`; maximum value: `100`. Limit *uint64 `json:"Limit,omitempty" 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,omitempty" name:"OrderField"` // Sort ascending or descending based on `OrderField`. Valid values:<li>0: Descending.</li><li>1: Ascending.</li>Default value: `0`. Asc *int64 `json:"Asc,omitempty" name:"Asc"` // Custom query Filters []*Filters `json:"Filters,omitempty" 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,omitempty" name:"DisplayStrategy"` // Page number. Default value: `0`, indicating the first page. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results per page. Default value: `10`; maximum value: `100`. Limit *uint64 `json:"Limit,omitempty" 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,omitempty" name:"OrderField"` // Sort ascending or descending based on `OrderField`. Valid values:<li>0: Descending.</li><li>1: Ascending.</li>Default value: `0`. Asc *int64 `json:"Asc,omitempty" name:"Asc"` // Custom query Filters []*Filters `json:"Filters,omitempty" 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,omitempty" name:"TotalCnt"` // Cluster instance list. InstancesList []*EmrListInstance `json:"InstancesList,omitempty" name:"InstancesList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" 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,omitempty" 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,omitempty" name:"InstanceIds"` // Page number. Default value: 0, indicating the first page. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results per page. Default value: 10. Maximum value: 100 Limit *uint64 `json:"Limit,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" name:"InstanceIds"` // Page number. Default value: 0, indicating the first page. Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // Number of returned results per page. Default value: 10. Maximum value: 100 Limit *uint64 `json:"Limit,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" name:"TagKeys"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeResourceScheduleRequest ¶
type DescribeResourceScheduleRequest struct { *tchttp.BaseRequest // EMR cluster ID InstanceId *string `json:"InstanceId,omitempty" 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,omitempty" 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,omitempty" name:"OpenSwitch"` // The resource scheduler in service Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` // Fair Scheduler information FSInfo *string `json:"FSInfo,omitempty" name:"FSInfo"` // Capacity Scheduler information CSInfo *string `json:"CSInfo,omitempty" name:"CSInfo"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DescribeUsersForUserManagerRequest ¶
type DescribeUsersForUserManagerRequest struct { *tchttp.BaseRequest // Cluster instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Page number PageNo *int64 `json:"PageNo,omitempty" name:"PageNo"` // Page size PageSize *int64 `json:"PageSize,omitempty" name:"PageSize"` // User list query filter UserManagerFilter *UserManagerFilter `json:"UserManagerFilter,omitempty" 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,omitempty" 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,omitempty" name:"InstanceId"` // Page number PageNo *int64 `json:"PageNo,omitempty" name:"PageNo"` // Page size PageSize *int64 `json:"PageSize,omitempty" name:"PageSize"` // User list query filter UserManagerFilter *UserManagerFilter `json:"UserManagerFilter,omitempty" 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,omitempty" 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,omitempty" name:"TotalCnt"` // User information list // Note: This field may return null, indicating that no valid value can be obtained. UserManagerUserList []*UserManagerUserBriefInfo `json:"UserManagerUserList,omitempty" name:"UserManagerUserList"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type DynamicPodSpec ¶
type DynamicPodSpec struct { // Minimum number of CPUs RequestCpu *float64 `json:"RequestCpu,omitempty" name:"RequestCpu"` // Maximum number of CPUs LimitCpu *float64 `json:"LimitCpu,omitempty" name:"LimitCpu"` // Minimum memory in MB RequestMemory *float64 `json:"RequestMemory,omitempty" name:"RequestMemory"` // Maximum memory in MB LimitMemory *float64 `json:"LimitMemory,omitempty" name:"LimitMemory"` }
type EmrListInstance ¶
type EmrListInstance struct { // Cluster ID ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` // Status description // Note: This field may return `null`, indicating that no valid value can be obtained. StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"` // Cluster name ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` // Cluster region ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` // User APPID AppId *uint64 `json:"AppId,omitempty" name:"AppId"` // Creation time AddTime *string `json:"AddTime,omitempty" name:"AddTime"` // Running time RunTime *string `json:"RunTime,omitempty" name:"RunTime"` // Cluster IP MasterIp *string `json:"MasterIp,omitempty" name:"MasterIp"` // Cluster version EmrVersion *string `json:"EmrVersion,omitempty" name:"EmrVersion"` // Cluster billing mode ChargeType *uint64 `json:"ChargeType,omitempty" name:"ChargeType"` // EMR ID Id *uint64 `json:"Id,omitempty" name:"Id"` // Product ID // Note: This field may return `null`, indicating that no valid value can be obtained. ProductId *uint64 `json:"ProductId,omitempty" name:"ProductId"` // Project ID // Note: This field may return `null`, indicating that no valid value can be obtained. ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` // Region // Note: This field may return `null`, indicating that no valid value can be obtained. RegionId *uint64 `json:"RegionId,omitempty" name:"RegionId"` // Subnet ID // Note: This field may return `null`, indicating that no valid value can be obtained. SubnetId *uint64 `json:"SubnetId,omitempty" name:"SubnetId"` // VPC ID // Note: This field may return `null`, indicating that no valid value can be obtained. VpcId *uint64 `json:"VpcId,omitempty" name:"VpcId"` // Region // Note: This field may return `null`, indicating that no valid value can be obtained. Zone *string `json:"Zone,omitempty" name:"Zone"` // Status code // Note: This field may return `null`, indicating that no valid value can be obtained. Status *uint64 `json:"Status,omitempty" name:"Status"` // Instance tag // Note: This field may return `null`, indicating that no valid value can be obtained. Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // Alarm information // Note: This field may return `null`, indicating that no valid value can be obtained. AlarmInfo *string `json:"AlarmInfo,omitempty" 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,omitempty" name:"IsWoodpeckerCluster"` // VPC name // Note: This field may return `null`, indicating that no valid value can be obtained. VpcName *string `json:"VpcName,omitempty" name:"VpcName"` // Subnet name // Note: This field may return `null`, indicating that no valid value can be obtained. SubnetName *string `json:"SubnetName,omitempty" name:"SubnetName"` // VPC ID string // Note: This field may return `null`, indicating that no valid value can be obtained. UniqVpcId *string `json:"UniqVpcId,omitempty" name:"UniqVpcId"` // Subnet ID string // Note: This field may return `null`, indicating that no valid value can be obtained. UniqSubnetId *string `json:"UniqSubnetId,omitempty" name:"UniqSubnetId"` // Cluster type // Note: This field may return `null`, indicating that no valid value can be obtained. ClusterClass *string `json:"ClusterClass,omitempty" 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,omitempty" 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,omitempty" name:"IsHandsCluster"` }
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,omitempty" name:"SoftInfo"` // Number of master nodes // Note: this field may return null, indicating that no valid values can be obtained. MasterNodeSize *int64 `json:"MasterNodeSize,omitempty" name:"MasterNodeSize"` // Number of core nodes // Note: this field may return null, indicating that no valid values can be obtained. CoreNodeSize *int64 `json:"CoreNodeSize,omitempty" name:"CoreNodeSize"` // Number of task nodes // Note: this field may return null, indicating that no valid values can be obtained. TaskNodeSize *int64 `json:"TaskNodeSize,omitempty" name:"TaskNodeSize"` // Number of common nodes // Note: this field may return null, indicating that no valid values can be obtained. ComNodeSize *int64 `json:"ComNodeSize,omitempty" name:"ComNodeSize"` // Master node resource // Note: this field may return null, indicating that no valid values can be obtained. MasterResource *OutterResource `json:"MasterResource,omitempty" name:"MasterResource"` // Core node resource // Note: this field may return null, indicating that no valid values can be obtained. CoreResource *OutterResource `json:"CoreResource,omitempty" name:"CoreResource"` // Task node resource // Note: this field may return null, indicating that no valid values can be obtained. TaskResource *OutterResource `json:"TaskResource,omitempty" name:"TaskResource"` // Common node resource // Note: this field may return null, indicating that no valid values can be obtained. ComResource *OutterResource `json:"ComResource,omitempty" name:"ComResource"` // Whether COS is used // Note: this field may return null, indicating that no valid values can be obtained. OnCos *bool `json:"OnCos,omitempty" name:"OnCos"` // Billing mode // Note: this field may return null, indicating that no valid values can be obtained. ChargeType *int64 `json:"ChargeType,omitempty" name:"ChargeType"` // Number of router nodes // Note: this field may return null, indicating that no valid values can be obtained. RouterNodeSize *int64 `json:"RouterNodeSize,omitempty" name:"RouterNodeSize"` // Whether HA is supported // Note: this field may return null, indicating that no valid values can be obtained. SupportHA *bool `json:"SupportHA,omitempty" 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,omitempty" name:"SecurityOn"` // Security group name // Note: this field may return null, indicating that no valid values can be obtained. SecurityGroup *string `json:"SecurityGroup,omitempty" 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,omitempty" name:"CbsEncrypt"` // Custom application role // Note: this field may return `null`, indicating that no valid value can be obtained. ApplicationRole *string `json:"ApplicationRole,omitempty" name:"ApplicationRole"` // Security groups // Note: this field may return `null`, indicating that no valid value can be obtained. SecurityGroups []*string `json:"SecurityGroups,omitempty" name:"SecurityGroups"` // SSH key ID // Note: This field may return `null`, indicating that no valid values can be obtained. PublicKeyId *string `json:"PublicKeyId,omitempty" name:"PublicKeyId"` }
type ExternalService ¶
type ExternalService struct { string `json:"ShareType,omitempty" name:"ShareType"` // Custom parameters CustomServiceDefineList []*CustomServiceDefine `json:"CustomServiceDefineList,omitempty" name:"CustomServiceDefineList"` // Shared component name Service *string `json:"Service,omitempty" name:"Service"` // Shared component cluster InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` }ShareType *
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,omitempty" 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,omitempty" 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,omitempty" name:"TimeSpan"` // Currency. Currency *string `json:"Currency,omitempty" name:"Currency"` // Instance billing mode. Valid values: // <li>0: pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitempty" 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,omitempty" 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,omitempty" name:"Software"` // Node specification queried for price. ResourceSpec *NewResourceSpec `json:"ResourceSpec,omitempty" name:"ResourceSpec"` // Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance. Placement *Placement `json:"Placement,omitempty" name:"Placement"` // Configuration information of VPC. This parameter is used to specify the VPC ID, subnet ID, etc. VPCSettings *VPCSettings `json:"VPCSettings,omitempty" 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,omitempty" name:"MetaType"` // EMR-MetaDB instance UnifyMetaInstanceId *string `json:"UnifyMetaInstanceId,omitempty" name:"UnifyMetaInstanceId"` // Custom MetaDB instance information MetaDBInfo *CustomMetaInfo `json:"MetaDBInfo,omitempty" 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,omitempty" name:"ProductId"` // Scenario-based values: // Hadoop-Kudu // Hadoop-Zookeeper // Hadoop-Presto // Hadoop-Hbase SceneName *string `json:"SceneName,omitempty" name:"SceneName"` // Shared component information ExternalService []*ExternalService `json:"ExternalService,omitempty" name:"ExternalService"` VersionID *uint64 `json:"VersionID,omitempty" name:"VersionID"` // AZ specs MultiZoneSettings []*MultiZoneSetting `json:"MultiZoneSettings,omitempty" 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,omitempty" 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,omitempty" name:"TimeSpan"` // Currency. Currency *string `json:"Currency,omitempty" name:"Currency"` // Instance billing mode. Valid values: // <li>0: pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitempty" 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,omitempty" 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,omitempty" name:"Software"` // Node specification queried for price. ResourceSpec *NewResourceSpec `json:"ResourceSpec,omitempty" name:"ResourceSpec"` // Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance. Placement *Placement `json:"Placement,omitempty" name:"Placement"` // Configuration information of VPC. This parameter is used to specify the VPC ID, subnet ID, etc. VPCSettings *VPCSettings `json:"VPCSettings,omitempty" 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,omitempty" name:"MetaType"` // EMR-MetaDB instance UnifyMetaInstanceId *string `json:"UnifyMetaInstanceId,omitempty" name:"UnifyMetaInstanceId"` // Custom MetaDB instance information MetaDBInfo *CustomMetaInfo `json:"MetaDBInfo,omitempty" 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,omitempty" name:"ProductId"` // Scenario-based values: // Hadoop-Kudu // Hadoop-Zookeeper // Hadoop-Presto // Hadoop-Hbase SceneName *string `json:"SceneName,omitempty" name:"SceneName"` // Shared component information ExternalService []*ExternalService `json:"ExternalService,omitempty" name:"ExternalService"` VersionID *uint64 `json:"VersionID,omitempty" name:"VersionID"` // AZ specs MultiZoneSettings []*MultiZoneSetting `json:"MultiZoneSettings,omitempty" 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,omitempty" name:"OriginalCost"` // Discounted price. // Note: this field may return null, indicating that no valid values can be obtained. DiscountCost *float64 `json:"DiscountCost,omitempty" 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,omitempty" name:"TimeUnit"` // Purchase duration of instance. // Note: this field may return null, indicating that no valid values can be obtained. TimeSpan *int64 `json:"TimeSpan,omitempty" name:"TimeSpan"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" name:"Placement"` // Instance billing mode. PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` // Unit of time for instance renewal. TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"` // Currency. Currency *string `json:"Currency,omitempty" name:"Currency"` // Whether to change from pay-as-you-go billing to monthly subscription billing. `0`: no; `1`: yes ModifyPayMode *int64 `json:"ModifyPayMode,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" name:"Placement"` // Instance billing mode. PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` // Unit of time for instance renewal. TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"` // Currency. Currency *string `json:"Currency,omitempty" name:"Currency"` // Whether to change from pay-as-you-go billing to monthly subscription billing. `0`: no; `1`: yes ModifyPayMode *int64 `json:"ModifyPayMode,omitempty" 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,omitempty" name:"OriginalCost"` // Discounted price. // Note: this field may return null, indicating that no valid values can be obtained. DiscountCost *float64 `json:"DiscountCost,omitempty" 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,omitempty" 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,omitempty" name:"TimeSpan"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" 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,omitempty" 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,omitempty" name:"TimeSpan"` // ID of the AZ where an instance resides. ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` // Instance billing mode. Valid value: // <li>0: Pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitempty" name:"PayMode"` // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Number of core nodes to be added. CoreCount *uint64 `json:"CoreCount,omitempty" name:"CoreCount"` // Number of task nodes to be added. TaskCount *uint64 `json:"TaskCount,omitempty" name:"TaskCount"` // Currency. Currency *string `json:"Currency,omitempty" name:"Currency"` // Number of router nodes to be added. RouterCount *uint64 `json:"RouterCount,omitempty" name:"RouterCount"` // Number of master nodes to be added. MasterCount *uint64 `json:"MasterCount,omitempty" 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,omitempty" 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,omitempty" name:"TimeSpan"` // ID of the AZ where an instance resides. ZoneId *uint64 `json:"ZoneId,omitempty" name:"ZoneId"` // Instance billing mode. Valid value: // <li>0: Pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitempty" name:"PayMode"` // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Number of core nodes to be added. CoreCount *uint64 `json:"CoreCount,omitempty" name:"CoreCount"` // Number of task nodes to be added. TaskCount *uint64 `json:"TaskCount,omitempty" name:"TaskCount"` // Currency. Currency *string `json:"Currency,omitempty" name:"Currency"` // Number of router nodes to be added. RouterCount *uint64 `json:"RouterCount,omitempty" name:"RouterCount"` // Number of master nodes to be added. MasterCount *uint64 `json:"MasterCount,omitempty" 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,omitempty" name:"OriginalCost"` // Discounted price. // Note: This field may return null, indicating that no valid values can be obtained. DiscountCost *string `json:"DiscountCost,omitempty" 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,omitempty" 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,omitempty" name:"PriceSpec"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" 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,omitempty" 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,omitempty" name:"TimeSpan"` // Target node specification. UpdateSpec *UpdateInstanceSettings `json:"UpdateSpec,omitempty" name:"UpdateSpec"` // Instance billing mode. Valid values: // <li>0: pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitempty" name:"PayMode"` // Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance. Placement *Placement `json:"Placement,omitempty" name:"Placement"` // Currency. Currency *string `json:"Currency,omitempty" name:"Currency"` // The resource ID list for batch configuration change. ResourceIdList []*string `json:"ResourceIdList,omitempty" 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,omitempty" 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,omitempty" name:"TimeSpan"` // Target node specification. UpdateSpec *UpdateInstanceSettings `json:"UpdateSpec,omitempty" name:"UpdateSpec"` // Instance billing mode. Valid values: // <li>0: pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitempty" name:"PayMode"` // Instance location. This parameter is used to specify the AZ, project, and other attributes of the instance. Placement *Placement `json:"Placement,omitempty" name:"Placement"` // Currency. Currency *string `json:"Currency,omitempty" name:"Currency"` // The resource ID list for batch configuration change. ResourceIdList []*string `json:"ResourceIdList,omitempty" 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,omitempty" name:"OriginalCost"` // Discounted price. // Note: this field may return null, indicating that no valid values can be obtained. DiscountCost *float64 `json:"DiscountCost,omitempty" 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,omitempty" name:"TimeUnit"` // Duration of scaling. // Note: this field may return null, indicating that no valid values can be obtained. TimeSpan *int64 `json:"TimeSpan,omitempty" name:"TimeSpan"` // Pricing details // Note: This field may return null, indicating that no valid values can be obtained. PriceDetail []*PriceDetail `json:"PriceDetail,omitempty" name:"PriceDetail"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
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,omitempty" 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,omitempty" name:"PublicKeyId"` }
type ModifyResourceScheduleConfigRequest ¶
type ModifyResourceScheduleConfigRequest struct { *tchttp.BaseRequest // EMR cluster ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Business identifier. `fair`: Edit fair configuration items; `fairPlan`: Edit the execution plan; `capacity`: Edit capacity configuration items. Key *string `json:"Key,omitempty" name:"Key"` // Modified module information Value *string `json:"Value,omitempty" 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,omitempty" name:"InstanceId"` // Business identifier. `fair`: Edit fair configuration items; `fairPlan`: Edit the execution plan; `capacity`: Edit capacity configuration items. Key *string `json:"Key,omitempty" name:"Key"` // Modified module information Value *string `json:"Value,omitempty" 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,omitempty" 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,omitempty" name:"ErrorMsg"` // The response data. // Note: This field may return null, indicating that no valid values can be obtained. Data *string `json:"Data,omitempty" name:"Data"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type ModifyResourceSchedulerRequest ¶
type ModifyResourceSchedulerRequest struct { *tchttp.BaseRequest // EMR cluster ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // The original scheduler: `fair` OldValue *string `json:"OldValue,omitempty" name:"OldValue"` // The new scheduler: `capacity` NewValue *string `json:"NewValue,omitempty" 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,omitempty" name:"InstanceId"` // The original scheduler: `fair` OldValue *string `json:"OldValue,omitempty" name:"OldValue"` // The new scheduler: `capacity` NewValue *string `json:"NewValue,omitempty" 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,omitempty" name:"RequestId"` }
Predefined struct for user
type MultiDisk ¶
type MultiDisk struct { // Cloud disk type // <li>`CLOUD_SSD`: SSD</li> // <li>`CLOUD_PREMIUM`: Premium Cloud Storage</li> // <li>`CLOUD_HSSD`: Enhanced SSD</li> DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // Cloud disk size Volume *int64 `json:"Volume,omitempty" name:"Volume"` // Number of cloud disks of this type Count *int64 `json:"Count,omitempty" 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,omitempty" name:"Count"` // Disk type // Note: this field may return null, indicating that no valid values can be obtained. Type *int64 `json:"Type,omitempty" name:"Type"` // Cloud disk size // Note: this field may return null, indicating that no valid values can be obtained. Volume *int64 `json:"Volume,omitempty" 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,omitempty" name:"ZoneTag"` // None VPCSettings *VPCSettings `json:"VPCSettings,omitempty" name:"VPCSettings"` // None Placement *Placement `json:"Placement,omitempty" name:"Placement"` // None ResourceSpec *NewResourceSpec `json:"ResourceSpec,omitempty" name:"ResourceSpec"` }
type NewResourceSpec ¶
type NewResourceSpec struct { // Describes master node resource MasterResourceSpec *Resource `json:"MasterResourceSpec,omitempty" name:"MasterResourceSpec"` // Describes core node resource CoreResourceSpec *Resource `json:"CoreResourceSpec,omitempty" name:"CoreResourceSpec"` // Describes task node resource TaskResourceSpec *Resource `json:"TaskResourceSpec,omitempty" name:"TaskResourceSpec"` // Number of master nodes MasterCount *int64 `json:"MasterCount,omitempty" name:"MasterCount"` // Number of core nodes CoreCount *int64 `json:"CoreCount,omitempty" name:"CoreCount"` // Number of task nodes TaskCount *int64 `json:"TaskCount,omitempty" name:"TaskCount"` // Describes common node resource CommonResourceSpec *Resource `json:"CommonResourceSpec,omitempty" name:"CommonResourceSpec"` // Number of common nodes CommonCount *int64 `json:"CommonCount,omitempty" name:"CommonCount"` }
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,omitempty" name:"AppId"` // Serial number // Note: this field may return null, indicating that no valid values can be obtained. SerialNo *string `json:"SerialNo,omitempty" name:"SerialNo"` // Machine instance ID // Note: this field may return null, indicating that no valid values can be obtained. OrderNo *string `json:"OrderNo,omitempty" 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,omitempty" 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,omitempty" name:"Flag"` // Node specification // Note: this field may return null, indicating that no valid values can be obtained. Spec *string `json:"Spec,omitempty" name:"Spec"` // Number of node cores // Note: this field may return null, indicating that no valid values can be obtained. CpuNum *int64 `json:"CpuNum,omitempty" name:"CpuNum"` // Node memory size // Note: this field may return null, indicating that no valid values can be obtained. MemSize *int64 `json:"MemSize,omitempty" name:"MemSize"` // Node memory description // Note: this field may return null, indicating that no valid values can be obtained. MemDesc *string `json:"MemDesc,omitempty" name:"MemDesc"` // Node region // Note: this field may return null, indicating that no valid values can be obtained. RegionId *int64 `json:"RegionId,omitempty" name:"RegionId"` // Node AZ // Note: this field may return null, indicating that no valid values can be obtained. ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` // Application time // Note: this field may return null, indicating that no valid values can be obtained. ApplyTime *string `json:"ApplyTime,omitempty" name:"ApplyTime"` // Release time // Note: this field may return null, indicating that no valid values can be obtained. FreeTime *string `json:"FreeTime,omitempty" name:"FreeTime"` // Disk size // Note: this field may return null, indicating that no valid values can be obtained. DiskSize *string `json:"DiskSize,omitempty" name:"DiskSize"` // Node description // Note: this field may return null, indicating that no valid values can be obtained. NameTag *string `json:"NameTag,omitempty" name:"NameTag"` // Services deployed on node // Note: this field may return null, indicating that no valid values can be obtained. Services *string `json:"Services,omitempty" name:"Services"` // Disk type // Note: this field may return null, indicating that no valid values can be obtained. StorageType *int64 `json:"StorageType,omitempty" name:"StorageType"` // System disk size // Note: this field may return null, indicating that no valid values can be obtained. RootSize *int64 `json:"RootSize,omitempty" name:"RootSize"` // Payment type // Note: this field may return null, indicating that no valid values can be obtained. ChargeType *int64 `json:"ChargeType,omitempty" name:"ChargeType"` // Database IP // Note: this field may return null, indicating that no valid values can be obtained. CdbIp *string `json:"CdbIp,omitempty" name:"CdbIp"` // Database port // Note: this field may return null, indicating that no valid values can be obtained. CdbPort *int64 `json:"CdbPort,omitempty" name:"CdbPort"` // Disk capacity // Note: this field may return null, indicating that no valid values can be obtained. HwDiskSize *int64 `json:"HwDiskSize,omitempty" name:"HwDiskSize"` // Disk capacity description // Note: this field may return null, indicating that no valid values can be obtained. HwDiskSizeDesc *string `json:"HwDiskSizeDesc,omitempty" name:"HwDiskSizeDesc"` // Memory capacity // Note: this field may return null, indicating that no valid values can be obtained. HwMemSize *int64 `json:"HwMemSize,omitempty" name:"HwMemSize"` // Memory capacity description // Note: this field may return null, indicating that no valid values can be obtained. HwMemSizeDesc *string `json:"HwMemSizeDesc,omitempty" name:"HwMemSizeDesc"` // Expiration time // Note: this field may return null, indicating that no valid values can be obtained. ExpireTime *string `json:"ExpireTime,omitempty" name:"ExpireTime"` // Node resource ID // Note: this field may return null, indicating that no valid values can be obtained. EmrResourceId *string `json:"EmrResourceId,omitempty" name:"EmrResourceId"` // Renewal flag // Note: this field may return null, indicating that no valid values can be obtained. IsAutoRenew *int64 `json:"IsAutoRenew,omitempty" name:"IsAutoRenew"` // Device flag // Note: this field may return null, indicating that no valid values can be obtained. DeviceClass *string `json:"DeviceClass,omitempty" name:"DeviceClass"` // Support for configuration adjustment // Note: this field may return null, indicating that no valid values can be obtained. Mutable *int64 `json:"Mutable,omitempty" name:"Mutable"` // Multi-cloud disk // Note: this field may return null, indicating that no valid values can be obtained. MCMultiDisk []*MultiDiskMC `json:"MCMultiDisk,omitempty" name:"MCMultiDisk"` // Database information // Note: this field may return null, indicating that no valid values can be obtained. CdbNodeInfo *CdbInfo `json:"CdbNodeInfo,omitempty" name:"CdbNodeInfo"` // Private IP // Note: this field may return null, indicating that no valid values can be obtained. Ip *string `json:"Ip,omitempty" 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,omitempty" name:"Destroyable"` // Tags bound to node // Note: this field may return null, indicating that no valid values can be obtained. Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // Wether the node is auto-scaling. 0 means common node. 1 means auto-scaling node. AutoFlag *int64 `json:"AutoFlag,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" name:"SupportModifyPayMode"` // System disk type // Note: this field may return `null`, indicating that no valid values can be obtained. RootStorageType *int64 `json:"RootStorageType,omitempty" name:"RootStorageType"` // AZ information // Note: this field may return `null`, indicating that no valid values can be obtained. Zone *string `json:"Zone,omitempty" name:"Zone"` // Subnet // Note: This field may return `null`, indicating that no valid value can be obtained. SubnetInfo *SubnetInfo `json:"SubnetInfo,omitempty" name:"SubnetInfo"` // Client // Note: This field may return `null`, indicating that no valid value can be obtained. Clients *string `json:"Clients,omitempty" name:"Clients"` // The current system time. // Note: This field may return null, indicating that no valid values can be obtained. CurrentTime *string `json:"CurrentTime,omitempty" 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,omitempty" name:"IsFederation"` // Device name // Note: This field may return null, indicating that no valid values can be obtained. DeviceName *string `json:"DeviceName,omitempty" name:"DeviceName"` // Service // Note: This field may return null, indicating that no valid values can be obtained. ServiceClient *string `json:"ServiceClient,omitempty" 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,omitempty" 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,omitempty" name:"TradeVersion"` }
type OutterResource ¶
type OutterResource struct { // Specification // Note: this field may return null, indicating that no valid values can be obtained. Spec *string `json:"Spec,omitempty" name:"Spec"` // Specification name // Note: this field may return null, indicating that no valid values can be obtained. SpecName *string `json:"SpecName,omitempty" name:"SpecName"` // Disk type // Note: this field may return null, indicating that no valid values can be obtained. StorageType *int64 `json:"StorageType,omitempty" name:"StorageType"` // Disk type // Note: this field may return null, indicating that no valid values can be obtained. DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // System disk size // Note: this field may return null, indicating that no valid values can be obtained. RootSize *int64 `json:"RootSize,omitempty" name:"RootSize"` // Memory size // Note: this field may return null, indicating that no valid values can be obtained. MemSize *int64 `json:"MemSize,omitempty" name:"MemSize"` // Number of CPUs // Note: this field may return null, indicating that no valid values can be obtained. Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` // Disk size // Note: this field may return null, indicating that no valid values can be obtained. DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` // Specification // Note: this field may return null, indicating that no valid values can be obtained. InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` }
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,omitempty" 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,omitempty" name:"DiskType"` // Number of disks. // Note: This field may return null, indicating that no valid values can be obtained. DiskNum *int64 `json:"DiskNum,omitempty" 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,omitempty" name:"Zone"` // The ID of the project to which the instance belongs. You can call the [DescribeProject](https://intl.cloud.tencent.com/document/api/651/78725?from_cn_redirect=1) and obtain this ID from the `projectId` field in the response. If this is left empty, the ID of the default project is used. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` }
type PodParameter ¶
type PodParameter struct { // ID of TKE or EKS cluster ClusterId *string `json:"ClusterId,omitempty" 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,omitempty" 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,omitempty" name:"Parameter"` }
type PodSpec ¶
type PodSpec struct { // Identifier of external resource provider, such as "cls-a1cd23fa". ResourceProviderIdentifier *string `json:"ResourceProviderIdentifier,omitempty" name:"ResourceProviderIdentifier"` // Type of external resource provider, such as "tke". Currently, only "tke" is supported. ResourceProviderType *string `json:"ResourceProviderType,omitempty" name:"ResourceProviderType"` // Purpose of the resource, which means the node type and can only be "TASK". NodeType *string `json:"NodeType,omitempty" name:"NodeType"` // Number of CPUs Cpu *uint64 `json:"Cpu,omitempty" name:"Cpu"` // Memory size in GB. Memory *uint64 `json:"Memory,omitempty" 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,omitempty" name:"DataVolumes"` // EKS cluster - CPU type. Valid values: `intel` and `amd`. CpuType *string `json:"CpuType,omitempty" name:"CpuType"` // Data directory mounting information of the pod node. PodVolumes []*PodVolume `json:"PodVolumes,omitempty" name:"PodVolumes"` // Whether floating specification is used. `1`: Yes; `0`: No. IsDynamicSpec *uint64 `json:"IsDynamicSpec,omitempty" name:"IsDynamicSpec"` // Floating specification // Note: This field may return null, indicating that no valid values can be obtained. DynamicPodSpec *DynamicPodSpec `json:"DynamicPodSpec,omitempty" name:"DynamicPodSpec"` // Unique VPC ID // Note: This field may return null, indicating that no valid values can be obtained. VpcId *string `json:"VpcId,omitempty" name:"VpcId"` // Unique VPC subnet ID // Note: This field may return null, indicating that no valid values can be obtained. SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // pod name // Note: This field may return null, indicating that no valid values can be obtained. PodName *string `json:"PodName,omitempty" name:"PodName"` }
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,omitempty" 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,omitempty" 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,omitempty" name:"HostVolume"` }
type PreExecuteFileSettings ¶
type PreExecuteFileSettings struct { // COS path to script, which has been disused Path *string `json:"Path,omitempty" name:"Path"` // Execution script parameter Args []*string `json:"Args,omitempty" name:"Args"` // COS bucket name, which has been disused Bucket *string `json:"Bucket,omitempty" name:"Bucket"` // COS region name, which has been disused Region *string `json:"Region,omitempty" name:"Region"` // COS domain data, which has been disused Domain *string `json:"Domain,omitempty" name:"Domain"` // Execution sequence RunOrder *int64 `json:"RunOrder,omitempty" name:"RunOrder"` // `resourceAfter` or `clusterAfter` WhenRun *string `json:"WhenRun,omitempty" name:"WhenRun"` // Script name, which has been disused CosFileName *string `json:"CosFileName,omitempty" name:"CosFileName"` // COS address of script CosFileURI *string `json:"CosFileURI,omitempty" name:"CosFileURI"` // COS `SecretId` CosSecretId *string `json:"CosSecretId,omitempty" name:"CosSecretId"` // COS `SecretKey` CosSecretKey *string `json:"CosSecretKey,omitempty" name:"CosSecretKey"` // COS `appid`, which has been disused AppId *string `json:"AppId,omitempty" name:"AppId"` }
type PriceDetail ¶
type PriceDetail struct { // The node ID ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // The price formula Formula *string `json:"Formula,omitempty" name:"Formula"` // The original price OriginalCost *float64 `json:"OriginalCost,omitempty" name:"OriginalCost"` // The discount price DiscountCost *float64 `json:"DiscountCost,omitempty" 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,omitempty" name:"Spec"` // Disk type. // Note: This field may return null, indicating that no valid values can be obtained. StorageType *uint64 `json:"StorageType,omitempty" name:"StorageType"` // Disk type. // Note: This field may return null, indicating that no valid values can be obtained. DiskType *string `json:"DiskType,omitempty" name:"DiskType"` // System disk size // Note: This field may return null, indicating that no valid values can be obtained. RootSize *int64 `json:"RootSize,omitempty" name:"RootSize"` // Memory size. // Note: This field may return null, indicating that no valid values can be obtained. MemSize *int64 `json:"MemSize,omitempty" name:"MemSize"` // Number of CPUs. // Note: This field may return null, indicating that no valid values can be obtained. Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` // Disk size. // Note: This field may return null, indicating that no valid values can be obtained. DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` // List of cloud disks. // Note: This field may return null, indicating that no valid values can be obtained. MultiDisks []*MultiDisk `json:"MultiDisks,omitempty" name:"MultiDisks"` // Number of disks. // Note: This field may return null, indicating that no valid values can be obtained. DiskCnt *int64 `json:"DiskCnt,omitempty" name:"DiskCnt"` // Specification // Note: This field may return null, indicating that no valid values can be obtained. InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` // Tag // Note: This field may return null, indicating that no valid values can be obtained. Tags []*Tag `json:"Tags,omitempty" name:"Tags"` // Number of disks. // Note: This field may return null, indicating that no valid values can be obtained. DiskNum *int64 `json:"DiskNum,omitempty" name:"DiskNum"` // Number of local disks. // Note: This field may return null, indicating that no valid values can be obtained. LocalDiskNum *int64 `json:"LocalDiskNum,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" name:"DiskType"` // Memory capacity in MB // Note: this field may return null, indicating that no valid values can be obtained. MemSize *int64 `json:"MemSize,omitempty" name:"MemSize"` // Number of CPU cores // Note: this field may return null, indicating that no valid values can be obtained. Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` // Data disk capacity // Note: this field may return null, indicating that no valid values can be obtained. DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` // System disk capacity // Note: this field may return null, indicating that no valid values can be obtained. RootSize *int64 `json:"RootSize,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" name:"DiskNum"` }
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,omitempty" name:"TimeUnit"` // Time span of scale-out, which needs to be used together with `TimeUnit`. TimeSpan *uint64 `json:"TimeSpan,omitempty" name:"TimeSpan"` // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance billing mode. Valid value: // <li>0: Pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitempty" name:"PayMode"` // Client token. ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` // Bootstrap script settings. PreExecutedFileSettings []*PreExecuteFileSettings `json:"PreExecutedFileSettings,omitempty" name:"PreExecutedFileSettings"` // Number of task nodes to be added. TaskCount *uint64 `json:"TaskCount,omitempty" name:"TaskCount"` // Number of core nodes to be added. CoreCount *uint64 `json:"CoreCount,omitempty" name:"CoreCount"` // Processes unnecessary for scale-out. UnNecessaryNodeList []*uint64 `json:"UnNecessaryNodeList,omitempty" name:"UnNecessaryNodeList"` // Number of router nodes to be added. RouterCount *uint64 `json:"RouterCount,omitempty" 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,omitempty" name:"SoftDeployInfo"` // Started process. ServiceNodeInfo []*uint64 `json:"ServiceNodeInfo,omitempty" name:"ServiceNodeInfo"` // List of spread placement group IDs. Only one can be specified currently. DisasterRecoverGroupIds []*string `json:"DisasterRecoverGroupIds,omitempty" name:"DisasterRecoverGroupIds"` // List of tags bound to added nodes. Tags []*Tag `json:"Tags,omitempty" 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,omitempty" name:"HardwareResourceType"` // Specified information such as pod specification and source for scale-out with pod resources. PodSpec *PodSpec `json:"PodSpec,omitempty" name:"PodSpec"` // Server group name selected for ClickHouse cluster scale-out. ClickHouseClusterName *string `json:"ClickHouseClusterName,omitempty" 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,omitempty" name:"ClickHouseClusterType"` // Yarn node label specified for rule-based scale-out. YarnNodeLabel *string `json:"YarnNodeLabel,omitempty" name:"YarnNodeLabel"` // Custom pod permission and parameter PodParameter *PodParameter `json:"PodParameter,omitempty" 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,omitempty" name:"MasterCount"` // Whether to start the service after scale-out. `true`: Yes; `false`: No. StartServiceAfterScaleOut *string `json:"StartServiceAfterScaleOut,omitempty" name:"StartServiceAfterScaleOut"` // AZ, which defaults to the primary AZ of the cluster. ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` // Subnet, which defaults to the subnet used when the cluster is created. SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Pre-defined configuration set ScaleOutServiceConfAssign *string `json:"ScaleOutServiceConfAssign,omitempty" name:"ScaleOutServiceConfAssign"` // Whether to enable auto-renewal. Valid values: `0` (no), `1` (yes). AutoRenew *int64 `json:"AutoRenew,omitempty" 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,omitempty" name:"TimeUnit"` // Time span of scale-out, which needs to be used together with `TimeUnit`. TimeSpan *uint64 `json:"TimeSpan,omitempty" name:"TimeSpan"` // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Instance billing mode. Valid value: // <li>0: Pay-as-you-go.</li> PayMode *uint64 `json:"PayMode,omitempty" name:"PayMode"` // Client token. ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` // Bootstrap script settings. PreExecutedFileSettings []*PreExecuteFileSettings `json:"PreExecutedFileSettings,omitempty" name:"PreExecutedFileSettings"` // Number of task nodes to be added. TaskCount *uint64 `json:"TaskCount,omitempty" name:"TaskCount"` // Number of core nodes to be added. CoreCount *uint64 `json:"CoreCount,omitempty" name:"CoreCount"` // Processes unnecessary for scale-out. UnNecessaryNodeList []*uint64 `json:"UnNecessaryNodeList,omitempty" name:"UnNecessaryNodeList"` // Number of router nodes to be added. RouterCount *uint64 `json:"RouterCount,omitempty" 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,omitempty" name:"SoftDeployInfo"` // Started process. ServiceNodeInfo []*uint64 `json:"ServiceNodeInfo,omitempty" name:"ServiceNodeInfo"` // List of spread placement group IDs. Only one can be specified currently. DisasterRecoverGroupIds []*string `json:"DisasterRecoverGroupIds,omitempty" name:"DisasterRecoverGroupIds"` // List of tags bound to added nodes. Tags []*Tag `json:"Tags,omitempty" 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,omitempty" name:"HardwareResourceType"` // Specified information such as pod specification and source for scale-out with pod resources. PodSpec *PodSpec `json:"PodSpec,omitempty" name:"PodSpec"` // Server group name selected for ClickHouse cluster scale-out. ClickHouseClusterName *string `json:"ClickHouseClusterName,omitempty" 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,omitempty" name:"ClickHouseClusterType"` // Yarn node label specified for rule-based scale-out. YarnNodeLabel *string `json:"YarnNodeLabel,omitempty" name:"YarnNodeLabel"` // Custom pod permission and parameter PodParameter *PodParameter `json:"PodParameter,omitempty" 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,omitempty" name:"MasterCount"` // Whether to start the service after scale-out. `true`: Yes; `false`: No. StartServiceAfterScaleOut *string `json:"StartServiceAfterScaleOut,omitempty" name:"StartServiceAfterScaleOut"` // AZ, which defaults to the primary AZ of the cluster. ZoneId *int64 `json:"ZoneId,omitempty" name:"ZoneId"` // Subnet, which defaults to the subnet used when the cluster is created. SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` // Pre-defined configuration set ScaleOutServiceConfAssign *string `json:"ScaleOutServiceConfAssign,omitempty" name:"ScaleOutServiceConfAssign"` // Whether to enable auto-renewal. Valid values: `0` (no), `1` (yes). AutoRenew *int64 `json:"AutoRenew,omitempty" 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,omitempty" name:"InstanceId"` // Order number. // Note: This field may return null, indicating that no valid values can be obtained. DealNames []*string `json:"DealNames,omitempty" name:"DealNames"` // Client token. // Note: This field may return null, indicating that no valid values can be obtained. ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` // Scale-out workflow ID. // Note: This field may return null, indicating that no valid values can be obtained. FlowId *int64 `json:"FlowId,omitempty" name:"FlowId"` // Big order ID. // Note: This field may return null, indicating that no valid values can be obtained. BillId *string `json:"BillId,omitempty" name:"BillId"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` }
Predefined struct for user
type SearchItem ¶
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,omitempty" name:"NodeType"` // Number of nodes // Note: This field may return `null`, indicating that no valid value can be obtained. NodeSize *uint64 `json:"NodeSize,omitempty" name:"NodeSize"` }
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,omitempty" name:"SubnetName"` // Subnet information (ID) // Note: This field may return `null`, indicating that no valid value can be obtained. SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` }
type TerminateInstanceRequest ¶
type TerminateInstanceRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // ID of terminated node. This parameter is reserved and does not need to be configured. ResourceIds []*string `json:"ResourceIds,omitempty" 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,omitempty" name:"InstanceId"` // ID of terminated node. This parameter is reserved and does not need to be configured. ResourceIds []*string `json:"ResourceIds,omitempty" 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,omitempty" name:"RequestId"` }
Predefined struct for user
type TerminateTasksRequest ¶
type TerminateTasksRequest struct { *tchttp.BaseRequest // Instance ID. InstanceId *string `json:"InstanceId,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" 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,omitempty" name:"ZoneId"` // AZ information // Note: This field may return `null`, indicating that no valid value can be obtained. Zone *string `json:"Zone,omitempty" name:"Zone"` // Subnet information // Note: This field may return `null`, indicating that no valid value can be obtained. SubnetInfoList []*SubnetInfo `json:"SubnetInfoList,omitempty" name:"SubnetInfoList"` // Node information // Note: This field may return `null`, indicating that no valid value can be obtained. NodeInfoList []*ShortNodeInfo `json:"NodeInfoList,omitempty" name:"NodeInfoList"` }
type UpdateInstanceSettings ¶
type UpdateInstanceSettings struct { // Memory capacity in GB Memory *uint64 `json:"Memory,omitempty" name:"Memory"` // Number of CPU cores CPUCores *uint64 `json:"CPUCores,omitempty" name:"CPUCores"` // Machine resource ID (EMR resource identifier) ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` // Target machine specification InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` }
type UserInfoForUserManager ¶
type UserInfoForUserManager struct { // Username UserName *string `json:"UserName,omitempty" name:"UserName"` // The group to which the user belongs UserGroup *string `json:"UserGroup,omitempty" name:"UserGroup"` PassWord *string `json:"PassWord,omitempty" name:"PassWord"` ReMark *string `json:"ReMark,omitempty" 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,omitempty" name:"UserName"` }
type UserManagerUserBriefInfo ¶
type UserManagerUserBriefInfo struct { // Username UserName *string `json:"UserName,omitempty" name:"UserName"` // The group to which the user belongs UserGroup *string `json:"UserGroup,omitempty" name:"UserGroup"` // `Manager` represents an admin, and `NormalUser` represents a general user. UserType *string `json:"UserType,omitempty" name:"UserType"` // Account creation time // Note: This field may return null, indicating that no valid value can be obtained. CreateTime *string `json:"CreateTime,omitempty" 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,omitempty" 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,omitempty" name:"DownLoadKeyTabUrl"` }