Documentation ¶
Index ¶
- Constants
- type AddUsersForUserManagerRequest
- type AddUsersForUserManagerRequestParams
- type AddUsersForUserManagerResponse
- type AddUsersForUserManagerResponseParams
- 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) 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) 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) 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 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 EmrListInstance
- type EmrProductConfigOutter
- type ExternalService
- type Filters
- type InquiryPriceCreateInstanceRequest
- type InquiryPriceCreateInstanceRequestParams
- type InquiryPriceCreateInstanceResponse
- type InquiryPriceCreateInstanceResponseParams
- type InquiryPriceRenewInstanceRequest
- type InquiryPriceRenewInstanceRequestParams
- type InquiryPriceRenewInstanceResponse
- type InquiryPriceRenewInstanceResponseParams
- 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 Placement
- type PreExecuteFileSettings
- type Resource
- type SearchItem
- type ShortNodeInfo
- type SubnetInfo
- type Tag
- 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" // Duplicate order. Please check the EMR console. FAILEDOPERATION_DUPLICATEORDERNOTALLOWED = "FailedOperation.DuplicateOrderNotAllowed" // 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" // 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 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 `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" // Invalid disk size. INVALIDPARAMETER_INVALIDDISKSIZE = "InvalidParameter.InvalidDiskSize" // 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 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" // Invalid security group ID. INVALIDPARAMETER_INVALIDSERCURITYGRPUPID = "InvalidParameter.InvalidSercurityGrpupId" // The service name is invalid. INVALIDPARAMETER_INVALIDSERVICENAME = "InvalidParameter.InvalidServiceName" // 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" // Invalid `timespan`. INVALIDPARAMETER_INVALIDTIMESPAN = "InvalidParameter.InvalidTimeSpan" // Invalid `TimeUnit`. INVALIDPARAMETER_INVALIDTIMEUNIT = "InvalidParameter.InvalidTimeUnit" // 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" // 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" // No specified tag found. RESOURCENOTFOUND_TAGSNOTFOUND = "ResourceNotFound.TagsNotFound" // 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" )
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 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_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_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_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_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 a hardware 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_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 a hardware 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_INVALIDAPPID = "InvalidParameter.InvalidAppId" INVALIDPARAMETER_INVALIDINSTANCENAME = "InvalidParameter.InvalidInstanceName" INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" RESOURCENOTFOUND_CLUSTERNOTFOUND = "ResourceNotFound.ClusterNotFound" RESOURCENOTFOUND_INSTANCENOTFOUND = "ResourceNotFound.InstanceNotFound" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeInstances ¶
func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)
DescribeInstances This API is used to query EMR instances.
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_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 EMR cluster instances.
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_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 EMR cluster instances.
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_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 EMR instances.
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_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 get data from the YARN Resource Scheduling page.
error code that may be returned:
INTERNALERROR = "InternalError" 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 get data from the YARN Resource Scheduling page.
error code that may be returned:
INTERNALERROR = "InternalError" 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_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_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) 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"
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"
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" INVALIDPARAMETER = "InvalidParameter"
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" INVALIDPARAMETER = "InvalidParameter"
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 // 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> // <li>9: EMR v2.2.0</li> // <li>11: ClickHouse v1.0.0</li> // <li>13: Druid v1.0.0</li> // <li>15: EMR v2.2.1</li> // <li>16: EMR v2.3.0</li> // <li>17: ClickHouse v1.1.0</li> // <li>19: EMR v2.4.0</li> // <li>20: EMR v2.5.0</li> // <li>22: ClickHouse v1.2.0</li> // <li>24: EMR TianQiong v1.0.0</li> // <li>25: EMR v3.1.0</li> // <li>26: Doris v1.0.0</li> // <li>27: Kafka v1.0.0</li> // <li>28: EMR v3.2.0</li> // <li>29: EMR v2.5.1</li> // <li>30: EMR v2.6.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 { // 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> // <li>9: EMR v2.2.0</li> // <li>11: ClickHouse v1.0.0</li> // <li>13: Druid v1.0.0</li> // <li>15: EMR v2.2.1</li> // <li>16: EMR v2.3.0</li> // <li>17: ClickHouse v1.1.0</li> // <li>19: EMR v2.4.0</li> // <li>20: EMR v2.5.0</li> // <li>22: ClickHouse v1.2.0</li> // <li>24: EMR TianQiong v1.0.0</li> // <li>25: EMR v3.1.0</li> // <li>26: Doris v1.0.0</li> // <li>27: Kafka v1.0.0</li> // <li>28: EMR v3.2.0</li> // <li>29: EMR v2.5.1</li> // <li>30: EMR v2.6.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"` }
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"` }
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 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 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"` }
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 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 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"` }
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"` }
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"` // 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 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 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"` }
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 Placement ¶
type Placement struct { // 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 0 is entered, the default project will be used. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` // AZ where the instance resides, such as ap-guangzhou-1. You can call the `DescribeZones` API and see the `Zone` field to get the value of this parameter. Zone *string `json:"Zone,omitempty" name:"Zone"` }
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 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 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 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"` }