v20230110

package
v3.0.1060+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Required baseline item in Account Factory is not configured.
	FAILEDOPERATION_AFREQUIREDITEMNOTSELECT = "FailedOperation.AFRequiredItemNotSelect"

	// The number of accounts to which baselines are applied in Account Factory exceeds the limit.
	FAILEDOPERATION_ACCOUNTFACTORYMEMBERUINNUMEXCEED = "FailedOperation.AccountFactoryMemberUinNumExceed"

	// The user is deploying account baseline. It cannot be deployed repeatedly.
	FAILEDOPERATION_ACCOUNTFACTORYTASKISDEPLOYING = "FailedOperation.AccountFactoryTaskIsDeploying"

	// Control Center service is not enabled.
	FAILEDOPERATION_CONTROLCENTERNOTOPEN = "FailedOperation.ControlCenterNotOpen"

	// Database operation exception.
	FAILEDOPERATION_DBOPERATIONERROR = "FailedOperation.DBOperationError"

	// The feature item to depend on is not deployed.
	FAILEDOPERATION_DEPENDONITEMNOTDEPLOY = "FailedOperation.DependOnItemNotDeploy"

	// Remote call failed.
	FAILEDOPERATION_REMOTECALLERROR = "FailedOperation.RemoteCallError"

	// User baseline configuration data does not exist.
	RESOURCENOTFOUND_ACCOUNTFACTORYBASELINENOTEXIST = "ResourceNotFound.AccountFactoryBaselineNotExist"

	// The baseline item deployed by the user is not configured.
	RESOURCENOTFOUND_ACCOUNTFACTORYITEMNOTCONFIG = "ResourceNotFound.AccountFactoryItemNotConfig"

	// Account Factory baseline does not exist.
	RESOURCENOTFOUND_ACCOUNTFACTORYITEMNOTEXIST = "ResourceNotFound.AccountFactoryItemNotExist"
)
View Source
const APIVersion = "2023-01-10"

Variables

This section is empty.

Functions

This section is empty.

Types

type BaselineConfigItem

type BaselineConfigItem struct {
	// A unique identifier for an Account Factory baseline item, which can only contain English letters, digits, and @,._[]-:()+=. It must be 2-128 characters long.Note: This field may return null, indicating that no valid values can be obtained.
	Identifier *string `json:"Identifier,omitnil,omitempty" name:"Identifier"`

	// Account Factory baseline item configuration. Different items have different parameters.Note: This field may return null, indicating that no valid values can be obtained.
	Configuration *string `json:"Configuration,omitnil,omitempty" name:"Configuration"`
}

type BatchApplyAccountBaselinesRequest

type BatchApplyAccountBaselinesRequest struct {
	*tchttp.BaseRequest

	// Member account UIN, which is also the UIN of the account to which the baseline is applied.
	MemberUinList []*int64 `json:"MemberUinList,omitnil,omitempty" name:"MemberUinList"`

	// List of baseline item configuration information.
	BaselineConfigItems []*BaselineConfigItem `json:"BaselineConfigItems,omitnil,omitempty" name:"BaselineConfigItems"`
}

func NewBatchApplyAccountBaselinesRequest

func NewBatchApplyAccountBaselinesRequest() (request *BatchApplyAccountBaselinesRequest)

func (*BatchApplyAccountBaselinesRequest) FromJsonString

func (r *BatchApplyAccountBaselinesRequest) 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 (*BatchApplyAccountBaselinesRequest) ToJsonString

func (r *BatchApplyAccountBaselinesRequest) ToJsonString() string

type BatchApplyAccountBaselinesRequestParams

type BatchApplyAccountBaselinesRequestParams struct {
	// Member account UIN, which is also the UIN of the account to which the baseline is applied.
	MemberUinList []*int64 `json:"MemberUinList,omitnil,omitempty" name:"MemberUinList"`

	// List of baseline item configuration information.
	BaselineConfigItems []*BaselineConfigItem `json:"BaselineConfigItems,omitnil,omitempty" name:"BaselineConfigItems"`
}

Predefined struct for user

type BatchApplyAccountBaselinesResponse

type BatchApplyAccountBaselinesResponse struct {
	*tchttp.BaseResponse
	Response *BatchApplyAccountBaselinesResponseParams `json:"Response"`
}

func NewBatchApplyAccountBaselinesResponse

func NewBatchApplyAccountBaselinesResponse() (response *BatchApplyAccountBaselinesResponse)

func (*BatchApplyAccountBaselinesResponse) FromJsonString

func (r *BatchApplyAccountBaselinesResponse) 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 (*BatchApplyAccountBaselinesResponse) ToJsonString

func (r *BatchApplyAccountBaselinesResponse) ToJsonString() string

type BatchApplyAccountBaselinesResponseParams

type BatchApplyAccountBaselinesResponseParams struct {
	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) BatchApplyAccountBaselines

func (c *Client) BatchApplyAccountBaselines(request *BatchApplyAccountBaselinesRequest) (response *BatchApplyAccountBaselinesResponse, err error)

BatchApplyAccountBaselines This API is used to apply baselines to existing accounts in batches.

error code that may be returned:

FAILEDOPERATION_AFREQUIREDITEMNOTSELECT = "FailedOperation.AFRequiredItemNotSelect"
FAILEDOPERATION_ACCOUNTFACTORYMEMBERUINNUMEXCEED = "FailedOperation.AccountFactoryMemberUinNumExceed"
FAILEDOPERATION_ACCOUNTFACTORYTASKISDEPLOYING = "FailedOperation.AccountFactoryTaskIsDeploying"
FAILEDOPERATION_CONTROLCENTERNOTOPEN = "FailedOperation.ControlCenterNotOpen"
FAILEDOPERATION_DBOPERATIONERROR = "FailedOperation.DBOperationError"
FAILEDOPERATION_DEPENDONITEMNOTDEPLOY = "FailedOperation.DependOnItemNotDeploy"
FAILEDOPERATION_REMOTECALLERROR = "FailedOperation.RemoteCallError"
RESOURCENOTFOUND_ACCOUNTFACTORYBASELINENOTEXIST = "ResourceNotFound.AccountFactoryBaselineNotExist"
RESOURCENOTFOUND_ACCOUNTFACTORYITEMNOTCONFIG = "ResourceNotFound.AccountFactoryItemNotConfig"
RESOURCENOTFOUND_ACCOUNTFACTORYITEMNOTEXIST = "ResourceNotFound.AccountFactoryItemNotExist"

func (*Client) BatchApplyAccountBaselinesWithContext

func (c *Client) BatchApplyAccountBaselinesWithContext(ctx context.Context, request *BatchApplyAccountBaselinesRequest) (response *BatchApplyAccountBaselinesResponse, err error)

BatchApplyAccountBaselines This API is used to apply baselines to existing accounts in batches.

error code that may be returned:

FAILEDOPERATION_AFREQUIREDITEMNOTSELECT = "FailedOperation.AFRequiredItemNotSelect"
FAILEDOPERATION_ACCOUNTFACTORYMEMBERUINNUMEXCEED = "FailedOperation.AccountFactoryMemberUinNumExceed"
FAILEDOPERATION_ACCOUNTFACTORYTASKISDEPLOYING = "FailedOperation.AccountFactoryTaskIsDeploying"
FAILEDOPERATION_CONTROLCENTERNOTOPEN = "FailedOperation.ControlCenterNotOpen"
FAILEDOPERATION_DBOPERATIONERROR = "FailedOperation.DBOperationError"
FAILEDOPERATION_DEPENDONITEMNOTDEPLOY = "FailedOperation.DependOnItemNotDeploy"
FAILEDOPERATION_REMOTECALLERROR = "FailedOperation.RemoteCallError"
RESOURCENOTFOUND_ACCOUNTFACTORYBASELINENOTEXIST = "ResourceNotFound.AccountFactoryBaselineNotExist"
RESOURCENOTFOUND_ACCOUNTFACTORYITEMNOTCONFIG = "ResourceNotFound.AccountFactoryItemNotConfig"
RESOURCENOTFOUND_ACCOUNTFACTORYITEMNOTEXIST = "ResourceNotFound.AccountFactoryItemNotExist"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL