v20190116

package
v3.0.172+incompatible Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2019-01-16"

Variables

This section is empty.

Functions

This section is empty.

Types

type AddUserRequest

type AddUserRequest struct {
	*tchttp.BaseRequest

	// 子用户用户名
	Name *string `json:"Name,omitempty" name:"Name"`

	// 子用户备注
	Remark *string `json:"Remark,omitempty" name:"Remark"`

	// 子用户是否可以登录控制台。传0子用户无法登录控制台,传1子用户可以登录控制台。
	ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`

	// 是否生成子用户密钥。传0不生成子用户密钥,传1生成子用户密钥。
	UseApi *uint64 `json:"UseApi,omitempty" name:"UseApi"`

	// 子用户控制台登录密码,若未进行密码规则设置则默认密码规则为8位以上同时包含大小写字母、数字和特殊字符。只有可以登录控制台时才有效,如果传空并且上面指定允许登录控制台,则自动生成随机密码,随机密码规则为32位包含大小写字母、数字和特殊字符。
	Password *string `json:"Password,omitempty" name:"Password"`

	// 子用户是否要在下次登录时重置密码。传0子用户下次登录控制台不需重置密码,传1子用户下次登录控制台需要重置密码。
	NeedResetPassword *uint64 `json:"NeedResetPassword,omitempty" name:"NeedResetPassword"`

	// 手机号
	PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`

	// 区号
	CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`

	// 邮箱
	Email *string `json:"Email,omitempty" name:"Email"`
}

func NewAddUserRequest

func NewAddUserRequest() (request *AddUserRequest)

func (*AddUserRequest) FromJsonString

func (r *AddUserRequest) FromJsonString(s string) error

func (*AddUserRequest) ToJsonString

func (r *AddUserRequest) ToJsonString() string

type AddUserResponse

type AddUserResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 子用户 UIN
		Uin *uint64 `json:"Uin,omitempty" name:"Uin"`

		// 子用户用户名
		Name *string `json:"Name,omitempty" name:"Name"`

		// 如果输入参数组合为自动生成随机密码,则返回生成的密码
		Password *string `json:"Password,omitempty" name:"Password"`

		// 子用户密钥 ID
		SecretId *string `json:"SecretId,omitempty" name:"SecretId"`

		// 子用户密钥 Key
		SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"`

		// 子用户 UID
		Uid *uint64 `json:"Uid,omitempty" name:"Uid"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewAddUserResponse

func NewAddUserResponse() (response *AddUserResponse)

func (*AddUserResponse) FromJsonString

func (r *AddUserResponse) FromJsonString(s string) error

func (*AddUserResponse) ToJsonString

func (r *AddUserResponse) ToJsonString() string

type AddUserToGroupRequest

type AddUserToGroupRequest struct {
	*tchttp.BaseRequest

	// 添加的子用户 UID 和用户组 ID 关联关系
	Info []*GroupIdOfUidInfo `json:"Info,omitempty" name:"Info" list`
}

func NewAddUserToGroupRequest

func NewAddUserToGroupRequest() (request *AddUserToGroupRequest)

func (*AddUserToGroupRequest) FromJsonString

func (r *AddUserToGroupRequest) FromJsonString(s string) error

func (*AddUserToGroupRequest) ToJsonString

func (r *AddUserToGroupRequest) ToJsonString() string

type AddUserToGroupResponse

type AddUserToGroupResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewAddUserToGroupResponse

func NewAddUserToGroupResponse() (response *AddUserToGroupResponse)

func (*AddUserToGroupResponse) FromJsonString

func (r *AddUserToGroupResponse) FromJsonString(s string) error

func (*AddUserToGroupResponse) ToJsonString

func (r *AddUserToGroupResponse) ToJsonString() string

type AttachEntityOfPolicy

type AttachEntityOfPolicy struct {

	// 实体ID
	Id *string `json:"Id,omitempty" name:"Id"`

	// 实体名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	Name *string `json:"Name,omitempty" name:"Name"`

	// 实体Uin
	// 注意:此字段可能返回 null,表示取不到有效值。
	Uin *uint64 `json:"Uin,omitempty" name:"Uin"`

	// 关联类型。1 用户关联 ; 2 用户组关联
	RelatedType *uint64 `json:"RelatedType,omitempty" name:"RelatedType"`
}

type AttachGroupPolicyRequest

type AttachGroupPolicyRequest struct {
	*tchttp.BaseRequest

	// 策略 id
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

	// 用户组 id
	AttachGroupId *uint64 `json:"AttachGroupId,omitempty" name:"AttachGroupId"`
}

func NewAttachGroupPolicyRequest

func NewAttachGroupPolicyRequest() (request *AttachGroupPolicyRequest)

func (*AttachGroupPolicyRequest) FromJsonString

func (r *AttachGroupPolicyRequest) FromJsonString(s string) error

func (*AttachGroupPolicyRequest) ToJsonString

func (r *AttachGroupPolicyRequest) ToJsonString() string

type AttachGroupPolicyResponse

type AttachGroupPolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewAttachGroupPolicyResponse

func NewAttachGroupPolicyResponse() (response *AttachGroupPolicyResponse)

func (*AttachGroupPolicyResponse) FromJsonString

func (r *AttachGroupPolicyResponse) FromJsonString(s string) error

func (*AttachGroupPolicyResponse) ToJsonString

func (r *AttachGroupPolicyResponse) ToJsonString() string

type AttachPolicyInfo

type AttachPolicyInfo struct {

	// 策略id
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

	// 策略名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`

	// 创建时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	AddTime *string `json:"AddTime,omitempty" name:"AddTime"`

	// 创建来源,1 通过控制台创建, 2 通过策略语法创建。
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreateMode *uint64 `json:"CreateMode,omitempty" name:"CreateMode"`

	// 取值为user和QCS
	// 注意:此字段可能返回 null,表示取不到有效值。
	PolicyType *string `json:"PolicyType,omitempty" name:"PolicyType"`

	// 策略备注
	// 注意:此字段可能返回 null,表示取不到有效值。
	Remark *string `json:"Remark,omitempty" name:"Remark"`

	// 策略关联操作者主张号
	// 注意:此字段可能返回 null,表示取不到有效值。
	OperateOwnerUin *string `json:"OperateOwnerUin,omitempty" name:"OperateOwnerUin"`

	// 策略关联操作者ID,如果UinType为0表示子帐号Uin,如果UinType为1表示角色ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	OperateUin *string `json:"OperateUin,omitempty" name:"OperateUin"`

	// UinType为0表示OperateUin字段是子帐号Uin,如果UinType为1表示OperateUin字段是角色ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	OperateUinType *uint64 `json:"OperateUinType,omitempty" name:"OperateUinType"`

	// 是否已下线
	// 注意:此字段可能返回 null,表示取不到有效值。
	Deactived *uint64 `json:"Deactived,omitempty" name:"Deactived"`

	// 已下线的产品列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	DeactivedDetail []*string `json:"DeactivedDetail,omitempty" name:"DeactivedDetail" list`
}

type AttachRolePolicyRequest

type AttachRolePolicyRequest struct {
	*tchttp.BaseRequest

	// 策略ID,入参PolicyId与PolicyName二选一
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

	// 角色ID,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一
	AttachRoleId *string `json:"AttachRoleId,omitempty" name:"AttachRoleId"`

	// 角色名称,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一
	AttachRoleName *string `json:"AttachRoleName,omitempty" name:"AttachRoleName"`

	// 策略名,入参PolicyId与PolicyName二选一
	PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
}

func NewAttachRolePolicyRequest

func NewAttachRolePolicyRequest() (request *AttachRolePolicyRequest)

func (*AttachRolePolicyRequest) FromJsonString

func (r *AttachRolePolicyRequest) FromJsonString(s string) error

func (*AttachRolePolicyRequest) ToJsonString

func (r *AttachRolePolicyRequest) ToJsonString() string

type AttachRolePolicyResponse

type AttachRolePolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewAttachRolePolicyResponse

func NewAttachRolePolicyResponse() (response *AttachRolePolicyResponse)

func (*AttachRolePolicyResponse) FromJsonString

func (r *AttachRolePolicyResponse) FromJsonString(s string) error

func (*AttachRolePolicyResponse) ToJsonString

func (r *AttachRolePolicyResponse) ToJsonString() string

type AttachUserPolicyRequest

type AttachUserPolicyRequest struct {
	*tchttp.BaseRequest

	// 策略 id
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

	// 子账号 uin
	AttachUin *uint64 `json:"AttachUin,omitempty" name:"AttachUin"`
}

func NewAttachUserPolicyRequest

func NewAttachUserPolicyRequest() (request *AttachUserPolicyRequest)

func (*AttachUserPolicyRequest) FromJsonString

func (r *AttachUserPolicyRequest) FromJsonString(s string) error

func (*AttachUserPolicyRequest) ToJsonString

func (r *AttachUserPolicyRequest) ToJsonString() string

type AttachUserPolicyResponse

type AttachUserPolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewAttachUserPolicyResponse

func NewAttachUserPolicyResponse() (response *AttachUserPolicyResponse)

func (*AttachUserPolicyResponse) FromJsonString

func (r *AttachUserPolicyResponse) FromJsonString(s string) error

func (*AttachUserPolicyResponse) ToJsonString

func (r *AttachUserPolicyResponse) ToJsonString() string

type AttachedPolicyOfRole

type AttachedPolicyOfRole struct {

	// 策略ID
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

	// 策略名称
	PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`

	// 绑定时间
	AddTime *string `json:"AddTime,omitempty" name:"AddTime"`

	// 策略类型,User表示自定义策略,QCS表示预设策略
	// 注意:此字段可能返回 null,表示取不到有效值。
	PolicyType *string `json:"PolicyType,omitempty" name:"PolicyType"`

	// 策略创建方式,1表示按产品功能或项目权限创建,其他表示按策略语法创建
	CreateMode *uint64 `json:"CreateMode,omitempty" name:"CreateMode"`

	// 是否已下线(0:否 1:是)
	// 注意:此字段可能返回 null,表示取不到有效值。
	Deactived *uint64 `json:"Deactived,omitempty" name:"Deactived"`

	// 已下线的产品列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	DeactivedDetail []*string `json:"DeactivedDetail,omitempty" name:"DeactivedDetail" list`

	// 策略描述
	// 注意:此字段可能返回 null,表示取不到有效值。
	Description *string `json:"Description,omitempty" name:"Description"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

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

func NewClientWithSecretId

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

Deprecated

func (*Client) AddUser

func (c *Client) AddUser(request *AddUserRequest) (response *AddUserResponse, err error)

添加子用户

func (*Client) AddUserToGroup

func (c *Client) AddUserToGroup(request *AddUserToGroupRequest) (response *AddUserToGroupResponse, err error)

用户加入到用户组

func (*Client) AttachGroupPolicy

func (c *Client) AttachGroupPolicy(request *AttachGroupPolicyRequest) (response *AttachGroupPolicyResponse, err error)

本接口(AttachGroupPolicy)可用于绑定策略到用户组。

func (*Client) AttachRolePolicy

func (c *Client) AttachRolePolicy(request *AttachRolePolicyRequest) (response *AttachRolePolicyResponse, err error)

本接口(AttachRolePolicy)用于绑定策略到角色。

func (*Client) AttachUserPolicy

func (c *Client) AttachUserPolicy(request *AttachUserPolicyRequest) (response *AttachUserPolicyResponse, err error)

本接口(AttachUserPolicy)可用于绑定到用户的策略。

func (*Client) ConsumeCustomMFAToken

func (c *Client) ConsumeCustomMFAToken(request *ConsumeCustomMFATokenRequest) (response *ConsumeCustomMFATokenResponse, err error)

验证自定义多因子Token

func (*Client) CreateGroup

func (c *Client) CreateGroup(request *CreateGroupRequest) (response *CreateGroupResponse, err error)

创建用户组

func (*Client) CreatePolicy

func (c *Client) CreatePolicy(request *CreatePolicyRequest) (response *CreatePolicyResponse, err error)

本接口(CreatePolicy)可用于创建策略。

func (*Client) CreatePolicyVersion

func (c *Client) CreatePolicyVersion(request *CreatePolicyVersionRequest) (response *CreatePolicyVersionResponse, err error)

该接口(CreatePolicyVersion)用于新增策略版本,用户创建了一个策略版本之后可以方便的通过变更策略版本的方式来变更策略。

func (*Client) CreateRole

func (c *Client) CreateRole(request *CreateRoleRequest) (response *CreateRoleResponse, err error)

本接口(CreateRole)用于创建角色。

func (*Client) CreateSAMLProvider

func (c *Client) CreateSAMLProvider(request *CreateSAMLProviderRequest) (response *CreateSAMLProviderResponse, err error)

创建SAML身份提供商

func (*Client) CreateServiceLinkedRole

func (c *Client) CreateServiceLinkedRole(request *CreateServiceLinkedRoleRequest) (response *CreateServiceLinkedRoleResponse, err error)

创建服务相关角色

func (*Client) DeleteGroup

func (c *Client) DeleteGroup(request *DeleteGroupRequest) (response *DeleteGroupResponse, err error)

删除用户组

func (*Client) DeletePolicy

func (c *Client) DeletePolicy(request *DeletePolicyRequest) (response *DeletePolicyResponse, err error)

本接口(DeletePolicy)可用于删除策略。

func (*Client) DeletePolicyVersion

func (c *Client) DeletePolicyVersion(request *DeletePolicyVersionRequest) (response *DeletePolicyVersionResponse, err error)

本接口(DeletePolicyVersion)可用于删除一个策略的策略版本。

func (*Client) DeleteRole

func (c *Client) DeleteRole(request *DeleteRoleRequest) (response *DeleteRoleResponse, err error)

本接口(DeleteRole)用于删除指定角色。

func (*Client) DeleteSAMLProvider

func (c *Client) DeleteSAMLProvider(request *DeleteSAMLProviderRequest) (response *DeleteSAMLProviderResponse, err error)

删除SAML身份提供商

func (*Client) DeleteServiceLinkedRole

func (c *Client) DeleteServiceLinkedRole(request *DeleteServiceLinkedRoleRequest) (response *DeleteServiceLinkedRoleResponse, err error)

删除服务相关角色

func (*Client) DeleteUser

func (c *Client) DeleteUser(request *DeleteUserRequest) (response *DeleteUserResponse, err error)

删除子用户

func (*Client) DescribeRoleList

func (c *Client) DescribeRoleList(request *DescribeRoleListRequest) (response *DescribeRoleListResponse, err error)

本接口(DescribeRoleList)用于获取账号下的角色列表。

func (*Client) DetachGroupPolicy

func (c *Client) DetachGroupPolicy(request *DetachGroupPolicyRequest) (response *DetachGroupPolicyResponse, err error)

本接口(DetachGroupPolicy)可用于解除绑定到用户组的策略。

func (*Client) DetachRolePolicy

func (c *Client) DetachRolePolicy(request *DetachRolePolicyRequest) (response *DetachRolePolicyResponse, err error)

本接口(DetachRolePolicy)用于解除绑定角色的策略。

func (*Client) DetachUserPolicy

func (c *Client) DetachUserPolicy(request *DetachUserPolicyRequest) (response *DetachUserPolicyResponse, err error)

本接口(DetachUserPolicy)可用于解除绑定到用户的策略。

func (*Client) GetCustomMFATokenInfo

func (c *Client) GetCustomMFATokenInfo(request *GetCustomMFATokenInfoRequest) (response *GetCustomMFATokenInfoResponse, err error)

获取自定义多因子Token关联信息

func (*Client) GetGroup

func (c *Client) GetGroup(request *GetGroupRequest) (response *GetGroupResponse, err error)

查询用户组详情

func (*Client) GetPolicy

func (c *Client) GetPolicy(request *GetPolicyRequest) (response *GetPolicyResponse, err error)

本接口(GetPolicy)可用于查询查看策略详情。

func (*Client) GetPolicyVersion

func (c *Client) GetPolicyVersion(request *GetPolicyVersionRequest) (response *GetPolicyVersionResponse, err error)

该接口(GetPolicyVersion)用于查询策略版本详情

func (*Client) GetRole

func (c *Client) GetRole(request *GetRoleRequest) (response *GetRoleResponse, err error)

本接口(GetRole)用于获取指定角色的详细信息。

func (*Client) GetSAMLProvider

func (c *Client) GetSAMLProvider(request *GetSAMLProviderRequest) (response *GetSAMLProviderResponse, err error)

查询SAML身份提供商详情

func (*Client) GetServiceLinkedRoleDeletionStatus

func (c *Client) GetServiceLinkedRoleDeletionStatus(request *GetServiceLinkedRoleDeletionStatusRequest) (response *GetServiceLinkedRoleDeletionStatusResponse, err error)

根据删除TaskId获取服务相关角色删除状态

func (*Client) GetUser

func (c *Client) GetUser(request *GetUserRequest) (response *GetUserResponse, err error)

查询子用户

func (*Client) ListAttachedGroupPolicies

func (c *Client) ListAttachedGroupPolicies(request *ListAttachedGroupPoliciesRequest) (response *ListAttachedGroupPoliciesResponse, err error)

本接口(ListAttachedGroupPolicies)可用于查询用户组关联的策略列表。

func (*Client) ListAttachedRolePolicies

func (c *Client) ListAttachedRolePolicies(request *ListAttachedRolePoliciesRequest) (response *ListAttachedRolePoliciesResponse, err error)

本接口(ListAttachedRolePolicies)用于获取角色绑定的策略列表。

func (*Client) ListAttachedUserPolicies

func (c *Client) ListAttachedUserPolicies(request *ListAttachedUserPoliciesRequest) (response *ListAttachedUserPoliciesResponse, err error)

本接口(ListAttachedUserPolicies)可用于查询子账号关联的策略列表。

func (*Client) ListCollaborators

func (c *Client) ListCollaborators(request *ListCollaboratorsRequest) (response *ListCollaboratorsResponse, err error)

获取协作者列表

func (*Client) ListEntitiesForPolicy

func (c *Client) ListEntitiesForPolicy(request *ListEntitiesForPolicyRequest) (response *ListEntitiesForPolicyResponse, err error)

本接口(ListEntitiesForPolicy)可用于查询策略关联的实体列表。

func (*Client) ListGroups

func (c *Client) ListGroups(request *ListGroupsRequest) (response *ListGroupsResponse, err error)

查询用户组列表

func (*Client) ListGroupsForUser

func (c *Client) ListGroupsForUser(request *ListGroupsForUserRequest) (response *ListGroupsForUserResponse, err error)

列出用户关联的用户组

func (*Client) ListPolicies

func (c *Client) ListPolicies(request *ListPoliciesRequest) (response *ListPoliciesResponse, err error)

本接口(ListPolicies)可用于查询策略列表。

func (*Client) ListPolicyVersions

func (c *Client) ListPolicyVersions(request *ListPolicyVersionsRequest) (response *ListPolicyVersionsResponse, err error)

该接口(ListPolicyVersions)用于获取策略版本列表

func (*Client) ListSAMLProviders

func (c *Client) ListSAMLProviders(request *ListSAMLProvidersRequest) (response *ListSAMLProvidersResponse, err error)

查询SAML身份提供商列表

func (*Client) ListUsers

func (c *Client) ListUsers(request *ListUsersRequest) (response *ListUsersResponse, err error)

拉取子用户

func (*Client) ListUsersForGroup

func (c *Client) ListUsersForGroup(request *ListUsersForGroupRequest) (response *ListUsersForGroupResponse, err error)

查询用户组关联的用户列表

func (*Client) RemoveUserFromGroup

func (c *Client) RemoveUserFromGroup(request *RemoveUserFromGroupRequest) (response *RemoveUserFromGroupResponse, err error)

从用户组删除用户

func (*Client) SetDefaultPolicyVersion

func (c *Client) SetDefaultPolicyVersion(request *SetDefaultPolicyVersionRequest) (response *SetDefaultPolicyVersionResponse, err error)

本接口(SetDefaultPolicyVersion)可用于设置生效的策略版本。

func (*Client) SetMfaFlag

func (c *Client) SetMfaFlag(request *SetMfaFlagRequest) (response *SetMfaFlagResponse, err error)

设置子用户的登录保护和敏感操作校验方式

func (*Client) UpdateAssumeRolePolicy

func (c *Client) UpdateAssumeRolePolicy(request *UpdateAssumeRolePolicyRequest) (response *UpdateAssumeRolePolicyResponse, err error)

本接口(UpdateAssumeRolePolicy)用于修改角色信任策略的策略文档。

func (*Client) UpdateGroup

func (c *Client) UpdateGroup(request *UpdateGroupRequest) (response *UpdateGroupResponse, err error)

更新用户组

func (*Client) UpdatePolicy

func (c *Client) UpdatePolicy(request *UpdatePolicyRequest) (response *UpdatePolicyResponse, err error)

本接口(UpdatePolicy )可用于更新策略。 如果已存在策略版本,本接口会直接更新策略的默认版本,不会创建新版本,如果不存在任何策略版本,则直接创建一个默认版本。

func (*Client) UpdateRoleConsoleLogin

func (c *Client) UpdateRoleConsoleLogin(request *UpdateRoleConsoleLoginRequest) (response *UpdateRoleConsoleLoginResponse, err error)

本接口(UpdateRoleConsoleLogin)用于修改角色是否可登录。

func (*Client) UpdateRoleDescription

func (c *Client) UpdateRoleDescription(request *UpdateRoleDescriptionRequest) (response *UpdateRoleDescriptionResponse, err error)

本接口(UpdateRoleDescription)用于修改角色的描述信息。

func (*Client) UpdateSAMLProvider

func (c *Client) UpdateSAMLProvider(request *UpdateSAMLProviderRequest) (response *UpdateSAMLProviderResponse, err error)

更新SAML身份提供商信息

func (*Client) UpdateUser

func (c *Client) UpdateUser(request *UpdateUserRequest) (response *UpdateUserResponse, err error)

更新子用户

type ConsumeCustomMFATokenRequest

type ConsumeCustomMFATokenRequest struct {
	*tchttp.BaseRequest

	// 自定义多因子验证Token
	MFAToken *string `json:"MFAToken,omitempty" name:"MFAToken"`
}

func NewConsumeCustomMFATokenRequest

func NewConsumeCustomMFATokenRequest() (request *ConsumeCustomMFATokenRequest)

func (*ConsumeCustomMFATokenRequest) FromJsonString

func (r *ConsumeCustomMFATokenRequest) FromJsonString(s string) error

func (*ConsumeCustomMFATokenRequest) ToJsonString

func (r *ConsumeCustomMFATokenRequest) ToJsonString() string

type ConsumeCustomMFATokenResponse

type ConsumeCustomMFATokenResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewConsumeCustomMFATokenResponse

func NewConsumeCustomMFATokenResponse() (response *ConsumeCustomMFATokenResponse)

func (*ConsumeCustomMFATokenResponse) FromJsonString

func (r *ConsumeCustomMFATokenResponse) FromJsonString(s string) error

func (*ConsumeCustomMFATokenResponse) ToJsonString

func (r *ConsumeCustomMFATokenResponse) ToJsonString() string

type CreateGroupRequest

type CreateGroupRequest struct {
	*tchttp.BaseRequest

	// 用户组名
	GroupName *string `json:"GroupName,omitempty" name:"GroupName"`

	// 用户组描述
	Remark *string `json:"Remark,omitempty" name:"Remark"`
}

func NewCreateGroupRequest

func NewCreateGroupRequest() (request *CreateGroupRequest)

func (*CreateGroupRequest) FromJsonString

func (r *CreateGroupRequest) FromJsonString(s string) error

func (*CreateGroupRequest) ToJsonString

func (r *CreateGroupRequest) ToJsonString() string

type CreateGroupResponse

type CreateGroupResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 用户组 ID
		GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateGroupResponse

func NewCreateGroupResponse() (response *CreateGroupResponse)

func (*CreateGroupResponse) FromJsonString

func (r *CreateGroupResponse) FromJsonString(s string) error

func (*CreateGroupResponse) ToJsonString

func (r *CreateGroupResponse) ToJsonString() string

type CreatePolicyRequest

type CreatePolicyRequest struct {
	*tchttp.BaseRequest

	// 策略名
	PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`

	// 策略文档,示例:{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]},principal用于指定角色的授权对象。获取该参数可参阅 获取角色详情(https://cloud.tencent.com/document/product/598/36221) 输出参数RoleInfo
	PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`

	// 策略描述
	Description *string `json:"Description,omitempty" name:"Description"`
}

func NewCreatePolicyRequest

func NewCreatePolicyRequest() (request *CreatePolicyRequest)

func (*CreatePolicyRequest) FromJsonString

func (r *CreatePolicyRequest) FromJsonString(s string) error

func (*CreatePolicyRequest) ToJsonString

func (r *CreatePolicyRequest) ToJsonString() string

type CreatePolicyResponse

type CreatePolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 新增策略ID
		PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreatePolicyResponse

func NewCreatePolicyResponse() (response *CreatePolicyResponse)

func (*CreatePolicyResponse) FromJsonString

func (r *CreatePolicyResponse) FromJsonString(s string) error

func (*CreatePolicyResponse) ToJsonString

func (r *CreatePolicyResponse) ToJsonString() string

type CreatePolicyVersionRequest

type CreatePolicyVersionRequest struct {
	*tchttp.BaseRequest

	// 策略ID
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

	// 策略文本信息
	PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`

	// 是否设置为当前策略的版本
	SetAsDefault *bool `json:"SetAsDefault,omitempty" name:"SetAsDefault"`
}

func NewCreatePolicyVersionRequest

func NewCreatePolicyVersionRequest() (request *CreatePolicyVersionRequest)

func (*CreatePolicyVersionRequest) FromJsonString

func (r *CreatePolicyVersionRequest) FromJsonString(s string) error

func (*CreatePolicyVersionRequest) ToJsonString

func (r *CreatePolicyVersionRequest) ToJsonString() string

type CreatePolicyVersionResponse

type CreatePolicyVersionResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 策略版本号
		// 注意:此字段可能返回 null,表示取不到有效值。
		VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreatePolicyVersionResponse

func NewCreatePolicyVersionResponse() (response *CreatePolicyVersionResponse)

func (*CreatePolicyVersionResponse) FromJsonString

func (r *CreatePolicyVersionResponse) FromJsonString(s string) error

func (*CreatePolicyVersionResponse) ToJsonString

func (r *CreatePolicyVersionResponse) ToJsonString() string

type CreateRoleRequest

type CreateRoleRequest struct {
	*tchttp.BaseRequest

	// 角色名称
	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`

	// 策略文档,示例:{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]},principal用于指定角色的授权对象。获取该参数可参阅 获取角色详情(https://cloud.tencent.com/document/product/598/36221) 输出参数RoleInfo
	PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`

	// 角色描述
	Description *string `json:"Description,omitempty" name:"Description"`

	// 是否允许登录 1 为允许 0 为不允许
	ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`

	// 申请角色临时密钥的最长有效期限制(范围:0~43200)
	SessionDuration *uint64 `json:"SessionDuration,omitempty" name:"SessionDuration"`
}

func NewCreateRoleRequest

func NewCreateRoleRequest() (request *CreateRoleRequest)

func (*CreateRoleRequest) FromJsonString

func (r *CreateRoleRequest) FromJsonString(s string) error

func (*CreateRoleRequest) ToJsonString

func (r *CreateRoleRequest) ToJsonString() string

type CreateRoleResponse

type CreateRoleResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 角色ID
		// 注意:此字段可能返回 null,表示取不到有效值。
		RoleId *string `json:"RoleId,omitempty" name:"RoleId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateRoleResponse

func NewCreateRoleResponse() (response *CreateRoleResponse)

func (*CreateRoleResponse) FromJsonString

func (r *CreateRoleResponse) FromJsonString(s string) error

func (*CreateRoleResponse) ToJsonString

func (r *CreateRoleResponse) ToJsonString() string

type CreateSAMLProviderRequest

type CreateSAMLProviderRequest struct {
	*tchttp.BaseRequest

	// SAML身份提供商名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// SAML身份提供商描述
	Description *string `json:"Description,omitempty" name:"Description"`

	// SAML身份提供商Base64编码的元数据文档
	SAMLMetadataDocument *string `json:"SAMLMetadataDocument,omitempty" name:"SAMLMetadataDocument"`
}

func NewCreateSAMLProviderRequest

func NewCreateSAMLProviderRequest() (request *CreateSAMLProviderRequest)

func (*CreateSAMLProviderRequest) FromJsonString

func (r *CreateSAMLProviderRequest) FromJsonString(s string) error

func (*CreateSAMLProviderRequest) ToJsonString

func (r *CreateSAMLProviderRequest) ToJsonString() string

type CreateSAMLProviderResponse

type CreateSAMLProviderResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// SAML身份提供商资源描述符
		ProviderArn *string `json:"ProviderArn,omitempty" name:"ProviderArn"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateSAMLProviderResponse

func NewCreateSAMLProviderResponse() (response *CreateSAMLProviderResponse)

func (*CreateSAMLProviderResponse) FromJsonString

func (r *CreateSAMLProviderResponse) FromJsonString(s string) error

func (*CreateSAMLProviderResponse) ToJsonString

func (r *CreateSAMLProviderResponse) ToJsonString() string

type CreateServiceLinkedRoleRequest

type CreateServiceLinkedRoleRequest struct {
	*tchttp.BaseRequest

	// 授权服务,附加了此角色的腾讯云服务主体。
	QCSServiceName []*string `json:"QCSServiceName,omitempty" name:"QCSServiceName" list`

	// 自定义后缀,根据您提供的字符串,与服务提供的前缀组合在一起以形成完整的角色名称。
	CustomSuffix *string `json:"CustomSuffix,omitempty" name:"CustomSuffix"`

	// 角色说明。
	Description *string `json:"Description,omitempty" name:"Description"`
}

func NewCreateServiceLinkedRoleRequest

func NewCreateServiceLinkedRoleRequest() (request *CreateServiceLinkedRoleRequest)

func (*CreateServiceLinkedRoleRequest) FromJsonString

func (r *CreateServiceLinkedRoleRequest) FromJsonString(s string) error

func (*CreateServiceLinkedRoleRequest) ToJsonString

func (r *CreateServiceLinkedRoleRequest) ToJsonString() string

type CreateServiceLinkedRoleResponse

type CreateServiceLinkedRoleResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 角色ID
		RoleId *string `json:"RoleId,omitempty" name:"RoleId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewCreateServiceLinkedRoleResponse

func NewCreateServiceLinkedRoleResponse() (response *CreateServiceLinkedRoleResponse)

func (*CreateServiceLinkedRoleResponse) FromJsonString

func (r *CreateServiceLinkedRoleResponse) FromJsonString(s string) error

func (*CreateServiceLinkedRoleResponse) ToJsonString

func (r *CreateServiceLinkedRoleResponse) ToJsonString() string

type DeleteGroupRequest

type DeleteGroupRequest struct {
	*tchttp.BaseRequest

	// 用户组 ID
	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
}

func NewDeleteGroupRequest

func NewDeleteGroupRequest() (request *DeleteGroupRequest)

func (*DeleteGroupRequest) FromJsonString

func (r *DeleteGroupRequest) FromJsonString(s string) error

func (*DeleteGroupRequest) ToJsonString

func (r *DeleteGroupRequest) ToJsonString() string

type DeleteGroupResponse

type DeleteGroupResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteGroupResponse

func NewDeleteGroupResponse() (response *DeleteGroupResponse)

func (*DeleteGroupResponse) FromJsonString

func (r *DeleteGroupResponse) FromJsonString(s string) error

func (*DeleteGroupResponse) ToJsonString

func (r *DeleteGroupResponse) ToJsonString() string

type DeletePolicyRequest

type DeletePolicyRequest struct {
	*tchttp.BaseRequest

	// 数组,数组成员是策略 id,支持批量删除策略
	PolicyId []*uint64 `json:"PolicyId,omitempty" name:"PolicyId" list`
}

func NewDeletePolicyRequest

func NewDeletePolicyRequest() (request *DeletePolicyRequest)

func (*DeletePolicyRequest) FromJsonString

func (r *DeletePolicyRequest) FromJsonString(s string) error

func (*DeletePolicyRequest) ToJsonString

func (r *DeletePolicyRequest) ToJsonString() string

type DeletePolicyResponse

type DeletePolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeletePolicyResponse

func NewDeletePolicyResponse() (response *DeletePolicyResponse)

func (*DeletePolicyResponse) FromJsonString

func (r *DeletePolicyResponse) FromJsonString(s string) error

func (*DeletePolicyResponse) ToJsonString

func (r *DeletePolicyResponse) ToJsonString() string

type DeletePolicyVersionRequest

type DeletePolicyVersionRequest struct {
	*tchttp.BaseRequest

	// 策略ID
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

	// 策略版本号
	VersionId []*uint64 `json:"VersionId,omitempty" name:"VersionId" list`
}

func NewDeletePolicyVersionRequest

func NewDeletePolicyVersionRequest() (request *DeletePolicyVersionRequest)

func (*DeletePolicyVersionRequest) FromJsonString

func (r *DeletePolicyVersionRequest) FromJsonString(s string) error

func (*DeletePolicyVersionRequest) ToJsonString

func (r *DeletePolicyVersionRequest) ToJsonString() string

type DeletePolicyVersionResponse

type DeletePolicyVersionResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeletePolicyVersionResponse

func NewDeletePolicyVersionResponse() (response *DeletePolicyVersionResponse)

func (*DeletePolicyVersionResponse) FromJsonString

func (r *DeletePolicyVersionResponse) FromJsonString(s string) error

func (*DeletePolicyVersionResponse) ToJsonString

func (r *DeletePolicyVersionResponse) ToJsonString() string

type DeleteRoleRequest

type DeleteRoleRequest struct {
	*tchttp.BaseRequest

	// 角色ID,用于指定角色,入参 RoleId 与 RoleName 二选一
	RoleId *string `json:"RoleId,omitempty" name:"RoleId"`

	// 角色名称,用于指定角色,入参 RoleId 与 RoleName 二选一
	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
}

func NewDeleteRoleRequest

func NewDeleteRoleRequest() (request *DeleteRoleRequest)

func (*DeleteRoleRequest) FromJsonString

func (r *DeleteRoleRequest) FromJsonString(s string) error

func (*DeleteRoleRequest) ToJsonString

func (r *DeleteRoleRequest) ToJsonString() string

type DeleteRoleResponse

type DeleteRoleResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteRoleResponse

func NewDeleteRoleResponse() (response *DeleteRoleResponse)

func (*DeleteRoleResponse) FromJsonString

func (r *DeleteRoleResponse) FromJsonString(s string) error

func (*DeleteRoleResponse) ToJsonString

func (r *DeleteRoleResponse) ToJsonString() string

type DeleteSAMLProviderRequest

type DeleteSAMLProviderRequest struct {
	*tchttp.BaseRequest

	// SAML身份提供商名称
	Name *string `json:"Name,omitempty" name:"Name"`
}

func NewDeleteSAMLProviderRequest

func NewDeleteSAMLProviderRequest() (request *DeleteSAMLProviderRequest)

func (*DeleteSAMLProviderRequest) FromJsonString

func (r *DeleteSAMLProviderRequest) FromJsonString(s string) error

func (*DeleteSAMLProviderRequest) ToJsonString

func (r *DeleteSAMLProviderRequest) ToJsonString() string

type DeleteSAMLProviderResponse

type DeleteSAMLProviderResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteSAMLProviderResponse

func NewDeleteSAMLProviderResponse() (response *DeleteSAMLProviderResponse)

func (*DeleteSAMLProviderResponse) FromJsonString

func (r *DeleteSAMLProviderResponse) FromJsonString(s string) error

func (*DeleteSAMLProviderResponse) ToJsonString

func (r *DeleteSAMLProviderResponse) ToJsonString() string

type DeleteServiceLinkedRoleRequest

type DeleteServiceLinkedRoleRequest struct {
	*tchttp.BaseRequest

	// 要删除的服务相关角色的名称。
	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
}

func NewDeleteServiceLinkedRoleRequest

func NewDeleteServiceLinkedRoleRequest() (request *DeleteServiceLinkedRoleRequest)

func (*DeleteServiceLinkedRoleRequest) FromJsonString

func (r *DeleteServiceLinkedRoleRequest) FromJsonString(s string) error

func (*DeleteServiceLinkedRoleRequest) ToJsonString

func (r *DeleteServiceLinkedRoleRequest) ToJsonString() string

type DeleteServiceLinkedRoleResponse

type DeleteServiceLinkedRoleResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 删除任务ID,可用于检查删除服务相关角色状态。
		DeletionTaskId *string `json:"DeletionTaskId,omitempty" name:"DeletionTaskId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteServiceLinkedRoleResponse

func NewDeleteServiceLinkedRoleResponse() (response *DeleteServiceLinkedRoleResponse)

func (*DeleteServiceLinkedRoleResponse) FromJsonString

func (r *DeleteServiceLinkedRoleResponse) FromJsonString(s string) error

func (*DeleteServiceLinkedRoleResponse) ToJsonString

func (r *DeleteServiceLinkedRoleResponse) ToJsonString() string

type DeleteUserRequest

type DeleteUserRequest struct {
	*tchttp.BaseRequest

	// 子用户用户名
	Name *string `json:"Name,omitempty" name:"Name"`

	// 是否强制删除该子用户,默认入参为0。0:若该用户存在未删除API密钥,则不删除用户;1:若该用户存在未删除API密钥,则先删除密钥后删除用户。删除密钥需要您拥有cam:DeleteApiKey权限,您将可以删除该用户下启用或禁用状态的所有密钥,无权限则删除密钥和用户失败
	Force *uint64 `json:"Force,omitempty" name:"Force"`
}

func NewDeleteUserRequest

func NewDeleteUserRequest() (request *DeleteUserRequest)

func (*DeleteUserRequest) FromJsonString

func (r *DeleteUserRequest) FromJsonString(s string) error

func (*DeleteUserRequest) ToJsonString

func (r *DeleteUserRequest) ToJsonString() string

type DeleteUserResponse

type DeleteUserResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeleteUserResponse

func NewDeleteUserResponse() (response *DeleteUserResponse)

func (*DeleteUserResponse) FromJsonString

func (r *DeleteUserResponse) FromJsonString(s string) error

func (*DeleteUserResponse) ToJsonString

func (r *DeleteUserResponse) ToJsonString() string

type DescribeRoleListRequest

type DescribeRoleListRequest struct {
	*tchttp.BaseRequest

	// 页码,从1开始
	Page *uint64 `json:"Page,omitempty" name:"Page"`

	// 每页行数,不能大于200
	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
}

func NewDescribeRoleListRequest

func NewDescribeRoleListRequest() (request *DescribeRoleListRequest)

func (*DescribeRoleListRequest) FromJsonString

func (r *DescribeRoleListRequest) FromJsonString(s string) error

func (*DescribeRoleListRequest) ToJsonString

func (r *DescribeRoleListRequest) ToJsonString() string

type DescribeRoleListResponse

type DescribeRoleListResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 角色详情列表。
		// 注意:此字段可能返回 null,表示取不到有效值。
		List []*RoleInfo `json:"List,omitempty" name:"List" list`

		// 角色总数
		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeRoleListResponse

func NewDescribeRoleListResponse() (response *DescribeRoleListResponse)

func (*DescribeRoleListResponse) FromJsonString

func (r *DescribeRoleListResponse) FromJsonString(s string) error

func (*DescribeRoleListResponse) ToJsonString

func (r *DescribeRoleListResponse) ToJsonString() string

type DetachGroupPolicyRequest

type DetachGroupPolicyRequest struct {
	*tchttp.BaseRequest

	// 策略 id
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

	// 用户组 id
	DetachGroupId *uint64 `json:"DetachGroupId,omitempty" name:"DetachGroupId"`
}

func NewDetachGroupPolicyRequest

func NewDetachGroupPolicyRequest() (request *DetachGroupPolicyRequest)

func (*DetachGroupPolicyRequest) FromJsonString

func (r *DetachGroupPolicyRequest) FromJsonString(s string) error

func (*DetachGroupPolicyRequest) ToJsonString

func (r *DetachGroupPolicyRequest) ToJsonString() string

type DetachGroupPolicyResponse

type DetachGroupPolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDetachGroupPolicyResponse

func NewDetachGroupPolicyResponse() (response *DetachGroupPolicyResponse)

func (*DetachGroupPolicyResponse) FromJsonString

func (r *DetachGroupPolicyResponse) FromJsonString(s string) error

func (*DetachGroupPolicyResponse) ToJsonString

func (r *DetachGroupPolicyResponse) ToJsonString() string

type DetachRolePolicyRequest

type DetachRolePolicyRequest struct {
	*tchttp.BaseRequest

	// 策略ID,入参PolicyId与PolicyName二选一
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

	// 角色ID,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一
	DetachRoleId *string `json:"DetachRoleId,omitempty" name:"DetachRoleId"`

	// 角色名称,用于指定角色,入参 AttachRoleId 与 AttachRoleName 二选一
	DetachRoleName *string `json:"DetachRoleName,omitempty" name:"DetachRoleName"`

	// 策略名,入参PolicyId与PolicyName二选一
	PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
}

func NewDetachRolePolicyRequest

func NewDetachRolePolicyRequest() (request *DetachRolePolicyRequest)

func (*DetachRolePolicyRequest) FromJsonString

func (r *DetachRolePolicyRequest) FromJsonString(s string) error

func (*DetachRolePolicyRequest) ToJsonString

func (r *DetachRolePolicyRequest) ToJsonString() string

type DetachRolePolicyResponse

type DetachRolePolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDetachRolePolicyResponse

func NewDetachRolePolicyResponse() (response *DetachRolePolicyResponse)

func (*DetachRolePolicyResponse) FromJsonString

func (r *DetachRolePolicyResponse) FromJsonString(s string) error

func (*DetachRolePolicyResponse) ToJsonString

func (r *DetachRolePolicyResponse) ToJsonString() string

type DetachUserPolicyRequest

type DetachUserPolicyRequest struct {
	*tchttp.BaseRequest

	// 策略 id
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

	// 子账号 uin
	DetachUin *uint64 `json:"DetachUin,omitempty" name:"DetachUin"`
}

func NewDetachUserPolicyRequest

func NewDetachUserPolicyRequest() (request *DetachUserPolicyRequest)

func (*DetachUserPolicyRequest) FromJsonString

func (r *DetachUserPolicyRequest) FromJsonString(s string) error

func (*DetachUserPolicyRequest) ToJsonString

func (r *DetachUserPolicyRequest) ToJsonString() string

type DetachUserPolicyResponse

type DetachUserPolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDetachUserPolicyResponse

func NewDetachUserPolicyResponse() (response *DetachUserPolicyResponse)

func (*DetachUserPolicyResponse) FromJsonString

func (r *DetachUserPolicyResponse) FromJsonString(s string) error

func (*DetachUserPolicyResponse) ToJsonString

func (r *DetachUserPolicyResponse) ToJsonString() string

type GetCustomMFATokenInfoRequest

type GetCustomMFATokenInfoRequest struct {
	*tchttp.BaseRequest

	// 自定义多因子验证Token
	MFAToken *string `json:"MFAToken,omitempty" name:"MFAToken"`
}

func NewGetCustomMFATokenInfoRequest

func NewGetCustomMFATokenInfoRequest() (request *GetCustomMFATokenInfoRequest)

func (*GetCustomMFATokenInfoRequest) FromJsonString

func (r *GetCustomMFATokenInfoRequest) FromJsonString(s string) error

func (*GetCustomMFATokenInfoRequest) ToJsonString

func (r *GetCustomMFATokenInfoRequest) ToJsonString() string

type GetCustomMFATokenInfoResponse

type GetCustomMFATokenInfoResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 自定义多因子验证Token对应的帐号Id
		Uin *uint64 `json:"Uin,omitempty" name:"Uin"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGetCustomMFATokenInfoResponse

func NewGetCustomMFATokenInfoResponse() (response *GetCustomMFATokenInfoResponse)

func (*GetCustomMFATokenInfoResponse) FromJsonString

func (r *GetCustomMFATokenInfoResponse) FromJsonString(s string) error

func (*GetCustomMFATokenInfoResponse) ToJsonString

func (r *GetCustomMFATokenInfoResponse) ToJsonString() string

type GetGroupRequest

type GetGroupRequest struct {
	*tchttp.BaseRequest

	// 用户组 ID
	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
}

func NewGetGroupRequest

func NewGetGroupRequest() (request *GetGroupRequest)

func (*GetGroupRequest) FromJsonString

func (r *GetGroupRequest) FromJsonString(s string) error

func (*GetGroupRequest) ToJsonString

func (r *GetGroupRequest) ToJsonString() string

type GetGroupResponse

type GetGroupResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 用户组 ID
		GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`

		// 用户组名称
		GroupName *string `json:"GroupName,omitempty" name:"GroupName"`

		// 用户组成员数量
		GroupNum *uint64 `json:"GroupNum,omitempty" name:"GroupNum"`

		// 用户组描述
		Remark *string `json:"Remark,omitempty" name:"Remark"`

		// 用户组创建时间
		CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

		// 用户组成员信息
		UserInfo []*GroupMemberInfo `json:"UserInfo,omitempty" name:"UserInfo" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGetGroupResponse

func NewGetGroupResponse() (response *GetGroupResponse)

func (*GetGroupResponse) FromJsonString

func (r *GetGroupResponse) FromJsonString(s string) error

func (*GetGroupResponse) ToJsonString

func (r *GetGroupResponse) ToJsonString() string

type GetPolicyRequest

type GetPolicyRequest struct {
	*tchttp.BaseRequest

	// 策略Id
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
}

func NewGetPolicyRequest

func NewGetPolicyRequest() (request *GetPolicyRequest)

func (*GetPolicyRequest) FromJsonString

func (r *GetPolicyRequest) FromJsonString(s string) error

func (*GetPolicyRequest) ToJsonString

func (r *GetPolicyRequest) ToJsonString() string

type GetPolicyResponse

type GetPolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 策略名
		// 注意:此字段可能返回 null,表示取不到有效值。
		PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`

		// 策略描述
		// 注意:此字段可能返回 null,表示取不到有效值。
		Description *string `json:"Description,omitempty" name:"Description"`

		// 1 表示自定义策略,2 表示预设策略
		// 注意:此字段可能返回 null,表示取不到有效值。
		Type *uint64 `json:"Type,omitempty" name:"Type"`

		// 创建时间
		// 注意:此字段可能返回 null,表示取不到有效值。
		AddTime *string `json:"AddTime,omitempty" name:"AddTime"`

		// 最近更新时间
		// 注意:此字段可能返回 null,表示取不到有效值。
		UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`

		// 策略文档
		// 注意:此字段可能返回 null,表示取不到有效值。
		PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`

		// 备注
		// 注意:此字段可能返回 null,表示取不到有效值。
		PresetAlias *string `json:"PresetAlias,omitempty" name:"PresetAlias"`

		// 是否服务相关策略
		// 注意:此字段可能返回 null,表示取不到有效值。
		IsServiceLinkedRolePolicy *uint64 `json:"IsServiceLinkedRolePolicy,omitempty" name:"IsServiceLinkedRolePolicy"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGetPolicyResponse

func NewGetPolicyResponse() (response *GetPolicyResponse)

func (*GetPolicyResponse) FromJsonString

func (r *GetPolicyResponse) FromJsonString(s string) error

func (*GetPolicyResponse) ToJsonString

func (r *GetPolicyResponse) ToJsonString() string

type GetPolicyVersionRequest

type GetPolicyVersionRequest struct {
	*tchttp.BaseRequest

	// 策略ID
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

	// 策略版本号
	VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"`
}

func NewGetPolicyVersionRequest

func NewGetPolicyVersionRequest() (request *GetPolicyVersionRequest)

func (*GetPolicyVersionRequest) FromJsonString

func (r *GetPolicyVersionRequest) FromJsonString(s string) error

func (*GetPolicyVersionRequest) ToJsonString

func (r *GetPolicyVersionRequest) ToJsonString() string

type GetPolicyVersionResponse

type GetPolicyVersionResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 策略版本详情
		// 注意:此字段可能返回 null,表示取不到有效值。
		PolicyVersion *PolicyVersionDetail `json:"PolicyVersion,omitempty" name:"PolicyVersion"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGetPolicyVersionResponse

func NewGetPolicyVersionResponse() (response *GetPolicyVersionResponse)

func (*GetPolicyVersionResponse) FromJsonString

func (r *GetPolicyVersionResponse) FromJsonString(s string) error

func (*GetPolicyVersionResponse) ToJsonString

func (r *GetPolicyVersionResponse) ToJsonString() string

type GetRoleRequest

type GetRoleRequest struct {
	*tchttp.BaseRequest

	// 角色 ID,用于指定角色,入参 RoleId 与 RoleName 二选一
	RoleId *string `json:"RoleId,omitempty" name:"RoleId"`

	// 角色名,用于指定角色,入参 RoleId 与 RoleName 二选一
	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
}

func NewGetRoleRequest

func NewGetRoleRequest() (request *GetRoleRequest)

func (*GetRoleRequest) FromJsonString

func (r *GetRoleRequest) FromJsonString(s string) error

func (*GetRoleRequest) ToJsonString

func (r *GetRoleRequest) ToJsonString() string

type GetRoleResponse

type GetRoleResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 角色详情
		RoleInfo *RoleInfo `json:"RoleInfo,omitempty" name:"RoleInfo"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGetRoleResponse

func NewGetRoleResponse() (response *GetRoleResponse)

func (*GetRoleResponse) FromJsonString

func (r *GetRoleResponse) FromJsonString(s string) error

func (*GetRoleResponse) ToJsonString

func (r *GetRoleResponse) ToJsonString() string

type GetSAMLProviderRequest

type GetSAMLProviderRequest struct {
	*tchttp.BaseRequest

	// SAML身份提供商名称
	Name *string `json:"Name,omitempty" name:"Name"`
}

func NewGetSAMLProviderRequest

func NewGetSAMLProviderRequest() (request *GetSAMLProviderRequest)

func (*GetSAMLProviderRequest) FromJsonString

func (r *GetSAMLProviderRequest) FromJsonString(s string) error

func (*GetSAMLProviderRequest) ToJsonString

func (r *GetSAMLProviderRequest) ToJsonString() string

type GetSAMLProviderResponse

type GetSAMLProviderResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// SAML身份提供商名称
		Name *string `json:"Name,omitempty" name:"Name"`

		// SAML身份提供商描述
		Description *string `json:"Description,omitempty" name:"Description"`

		// SAML身份提供商创建时间
		CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

		// SAML身份提供商上次修改时间
		ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"`

		// SAML身份提供商元数据文档
		SAMLMetadata *string `json:"SAMLMetadata,omitempty" name:"SAMLMetadata"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGetSAMLProviderResponse

func NewGetSAMLProviderResponse() (response *GetSAMLProviderResponse)

func (*GetSAMLProviderResponse) FromJsonString

func (r *GetSAMLProviderResponse) FromJsonString(s string) error

func (*GetSAMLProviderResponse) ToJsonString

func (r *GetSAMLProviderResponse) ToJsonString() string

type GetServiceLinkedRoleDeletionStatusRequest

type GetServiceLinkedRoleDeletionStatusRequest struct {
	*tchttp.BaseRequest

	// 删除任务ID
	DeletionTaskId *string `json:"DeletionTaskId,omitempty" name:"DeletionTaskId"`
}

func NewGetServiceLinkedRoleDeletionStatusRequest

func NewGetServiceLinkedRoleDeletionStatusRequest() (request *GetServiceLinkedRoleDeletionStatusRequest)

func (*GetServiceLinkedRoleDeletionStatusRequest) FromJsonString

func (*GetServiceLinkedRoleDeletionStatusRequest) ToJsonString

type GetServiceLinkedRoleDeletionStatusResponse

type GetServiceLinkedRoleDeletionStatusResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 状态:NOT_STARTED,IN_PROGRESS,SUCCEEDED,FAILED
		Status *string `json:"Status,omitempty" name:"Status"`

		// 失败原因
		Reason *string `json:"Reason,omitempty" name:"Reason"`

		// 服务类型
		// 注意:此字段可能返回 null,表示取不到有效值。
		ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`

		// 服务名称
		// 注意:此字段可能返回 null,表示取不到有效值。
		ServiceName *string `json:"ServiceName,omitempty" name:"ServiceName"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGetServiceLinkedRoleDeletionStatusResponse

func NewGetServiceLinkedRoleDeletionStatusResponse() (response *GetServiceLinkedRoleDeletionStatusResponse)

func (*GetServiceLinkedRoleDeletionStatusResponse) FromJsonString

func (*GetServiceLinkedRoleDeletionStatusResponse) ToJsonString

type GetUserRequest

type GetUserRequest struct {
	*tchttp.BaseRequest

	// 子用户用户名
	Name *string `json:"Name,omitempty" name:"Name"`
}

func NewGetUserRequest

func NewGetUserRequest() (request *GetUserRequest)

func (*GetUserRequest) FromJsonString

func (r *GetUserRequest) FromJsonString(s string) error

func (*GetUserRequest) ToJsonString

func (r *GetUserRequest) ToJsonString() string

type GetUserResponse

type GetUserResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 子用户用户 UIN
		Uin *uint64 `json:"Uin,omitempty" name:"Uin"`

		// 子用户用户名
		Name *string `json:"Name,omitempty" name:"Name"`

		// 子用户 UID
		Uid *uint64 `json:"Uid,omitempty" name:"Uid"`

		// 子用户备注
		Remark *string `json:"Remark,omitempty" name:"Remark"`

		// 子用户能否登录控制台
		ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`

		// 手机号
		PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`

		// 区号
		CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`

		// 邮箱
		Email *string `json:"Email,omitempty" name:"Email"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewGetUserResponse

func NewGetUserResponse() (response *GetUserResponse)

func (*GetUserResponse) FromJsonString

func (r *GetUserResponse) FromJsonString(s string) error

func (*GetUserResponse) ToJsonString

func (r *GetUserResponse) ToJsonString() string

type GroupIdOfUidInfo

type GroupIdOfUidInfo struct {

	// 子用户 UID
	Uid *uint64 `json:"Uid,omitempty" name:"Uid"`

	// 用户组 ID
	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
}

type GroupInfo

type GroupInfo struct {

	// 用户组 ID。
	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`

	// 用户组名称。
	GroupName *string `json:"GroupName,omitempty" name:"GroupName"`

	// 用户组创建时间。
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 用户组描述。
	Remark *string `json:"Remark,omitempty" name:"Remark"`
}

type GroupMemberInfo

type GroupMemberInfo struct {

	// 子用户 Uid。
	Uid *uint64 `json:"Uid,omitempty" name:"Uid"`

	// 子用户 Uin。
	Uin *uint64 `json:"Uin,omitempty" name:"Uin"`

	// 子用户名称。
	Name *string `json:"Name,omitempty" name:"Name"`

	// 手机号。
	PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`

	// 手机区域代码。
	CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`

	// 是否已验证手机。
	PhoneFlag *uint64 `json:"PhoneFlag,omitempty" name:"PhoneFlag"`

	// 邮箱地址。
	Email *string `json:"Email,omitempty" name:"Email"`

	// 是否已验证邮箱。
	EmailFlag *uint64 `json:"EmailFlag,omitempty" name:"EmailFlag"`

	// 用户类型。
	UserType *uint64 `json:"UserType,omitempty" name:"UserType"`

	// 创建时间。
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// 是否为主消息接收人。
	IsReceiverOwner *uint64 `json:"IsReceiverOwner,omitempty" name:"IsReceiverOwner"`
}

type ListAttachedGroupPoliciesRequest

type ListAttachedGroupPoliciesRequest struct {
	*tchttp.BaseRequest

	// 用户组ID
	TargetGroupId *uint64 `json:"TargetGroupId,omitempty" name:"TargetGroupId"`

	// 页码,默认值是 1,从 1 开始
	Page *uint64 `json:"Page,omitempty" name:"Page"`

	// 每页大小,默认值是 20
	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
}

func NewListAttachedGroupPoliciesRequest

func NewListAttachedGroupPoliciesRequest() (request *ListAttachedGroupPoliciesRequest)

func (*ListAttachedGroupPoliciesRequest) FromJsonString

func (r *ListAttachedGroupPoliciesRequest) FromJsonString(s string) error

func (*ListAttachedGroupPoliciesRequest) ToJsonString

func (r *ListAttachedGroupPoliciesRequest) ToJsonString() string

type ListAttachedGroupPoliciesResponse

type ListAttachedGroupPoliciesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 策略总数
		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`

		// 策略列表
		List []*AttachPolicyInfo `json:"List,omitempty" name:"List" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewListAttachedGroupPoliciesResponse

func NewListAttachedGroupPoliciesResponse() (response *ListAttachedGroupPoliciesResponse)

func (*ListAttachedGroupPoliciesResponse) FromJsonString

func (r *ListAttachedGroupPoliciesResponse) FromJsonString(s string) error

func (*ListAttachedGroupPoliciesResponse) ToJsonString

func (r *ListAttachedGroupPoliciesResponse) ToJsonString() string

type ListAttachedRolePoliciesRequest

type ListAttachedRolePoliciesRequest struct {
	*tchttp.BaseRequest

	// 页码,从 1 开始
	Page *uint64 `json:"Page,omitempty" name:"Page"`

	// 每页行数,不能大于200
	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`

	// 角色 ID。用于指定角色,入参 RoleId 与 RoleName 二选一
	RoleId *string `json:"RoleId,omitempty" name:"RoleId"`

	// 角色名。用于指定角色,入参 RoleId 与 RoleName 二选一
	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`

	// 按策略类型过滤,User表示仅查询自定义策略,QCS表示仅查询预设策略
	PolicyType *string `json:"PolicyType,omitempty" name:"PolicyType"`
}

func NewListAttachedRolePoliciesRequest

func NewListAttachedRolePoliciesRequest() (request *ListAttachedRolePoliciesRequest)

func (*ListAttachedRolePoliciesRequest) FromJsonString

func (r *ListAttachedRolePoliciesRequest) FromJsonString(s string) error

func (*ListAttachedRolePoliciesRequest) ToJsonString

func (r *ListAttachedRolePoliciesRequest) ToJsonString() string

type ListAttachedRolePoliciesResponse

type ListAttachedRolePoliciesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 角色关联的策略列表
		List []*AttachedPolicyOfRole `json:"List,omitempty" name:"List" list`

		// 角色关联的策略总数
		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewListAttachedRolePoliciesResponse

func NewListAttachedRolePoliciesResponse() (response *ListAttachedRolePoliciesResponse)

func (*ListAttachedRolePoliciesResponse) FromJsonString

func (r *ListAttachedRolePoliciesResponse) FromJsonString(s string) error

func (*ListAttachedRolePoliciesResponse) ToJsonString

func (r *ListAttachedRolePoliciesResponse) ToJsonString() string

type ListAttachedUserPoliciesRequest

type ListAttachedUserPoliciesRequest struct {
	*tchttp.BaseRequest

	// 子账号 uin
	TargetUin *uint64 `json:"TargetUin,omitempty" name:"TargetUin"`

	// 页码,默认值是 1,从 1 开始
	Page *uint64 `json:"Page,omitempty" name:"Page"`

	// 每页大小,默认值是 20
	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
}

func NewListAttachedUserPoliciesRequest

func NewListAttachedUserPoliciesRequest() (request *ListAttachedUserPoliciesRequest)

func (*ListAttachedUserPoliciesRequest) FromJsonString

func (r *ListAttachedUserPoliciesRequest) FromJsonString(s string) error

func (*ListAttachedUserPoliciesRequest) ToJsonString

func (r *ListAttachedUserPoliciesRequest) ToJsonString() string

type ListAttachedUserPoliciesResponse

type ListAttachedUserPoliciesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 策略总数
		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`

		// 策略列表
		List []*AttachPolicyInfo `json:"List,omitempty" name:"List" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewListAttachedUserPoliciesResponse

func NewListAttachedUserPoliciesResponse() (response *ListAttachedUserPoliciesResponse)

func (*ListAttachedUserPoliciesResponse) FromJsonString

func (r *ListAttachedUserPoliciesResponse) FromJsonString(s string) error

func (*ListAttachedUserPoliciesResponse) ToJsonString

func (r *ListAttachedUserPoliciesResponse) ToJsonString() string

type ListCollaboratorsRequest

type ListCollaboratorsRequest struct {
	*tchttp.BaseRequest

	// 分页条数,缺省为20
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`

	// 分页起始值,缺省为0
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
}

func NewListCollaboratorsRequest

func NewListCollaboratorsRequest() (request *ListCollaboratorsRequest)

func (*ListCollaboratorsRequest) FromJsonString

func (r *ListCollaboratorsRequest) FromJsonString(s string) error

func (*ListCollaboratorsRequest) ToJsonString

func (r *ListCollaboratorsRequest) ToJsonString() string

type ListCollaboratorsResponse

type ListCollaboratorsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 总数
		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`

		// 协作者信息
		Data []*SubAccountInfo `json:"Data,omitempty" name:"Data" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewListCollaboratorsResponse

func NewListCollaboratorsResponse() (response *ListCollaboratorsResponse)

func (*ListCollaboratorsResponse) FromJsonString

func (r *ListCollaboratorsResponse) FromJsonString(s string) error

func (*ListCollaboratorsResponse) ToJsonString

func (r *ListCollaboratorsResponse) ToJsonString() string

type ListEntitiesForPolicyRequest

type ListEntitiesForPolicyRequest struct {
	*tchttp.BaseRequest

	// 策略 id
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

	// 页码,默认值是 1,从 1 开始
	Page *uint64 `json:"Page,omitempty" name:"Page"`

	// 每页大小,默认值是 20
	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`

	// 可取值 'All'、'User'、'Group' 和 'Role','All' 表示获取所有实体类型,'User' 表示只获取子账号,'Group' 表示只获取用户组,'Role' 表示只获取角色,默认取 'All'
	EntityFilter *string `json:"EntityFilter,omitempty" name:"EntityFilter"`
}

func NewListEntitiesForPolicyRequest

func NewListEntitiesForPolicyRequest() (request *ListEntitiesForPolicyRequest)

func (*ListEntitiesForPolicyRequest) FromJsonString

func (r *ListEntitiesForPolicyRequest) FromJsonString(s string) error

func (*ListEntitiesForPolicyRequest) ToJsonString

func (r *ListEntitiesForPolicyRequest) ToJsonString() string

type ListEntitiesForPolicyResponse

type ListEntitiesForPolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 实体总数
		// 注意:此字段可能返回 null,表示取不到有效值。
		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`

		// 实体列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		List []*AttachEntityOfPolicy `json:"List,omitempty" name:"List" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewListEntitiesForPolicyResponse

func NewListEntitiesForPolicyResponse() (response *ListEntitiesForPolicyResponse)

func (*ListEntitiesForPolicyResponse) FromJsonString

func (r *ListEntitiesForPolicyResponse) FromJsonString(s string) error

func (*ListEntitiesForPolicyResponse) ToJsonString

func (r *ListEntitiesForPolicyResponse) ToJsonString() string

type ListGroupsForUserRequest

type ListGroupsForUserRequest struct {
	*tchttp.BaseRequest

	// 子用户 UID
	Uid *uint64 `json:"Uid,omitempty" name:"Uid"`

	// 每页数量。默认为20。
	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`

	// 页码。默认为1。
	Page *uint64 `json:"Page,omitempty" name:"Page"`

	// 子账号UIN
	SubUin *uint64 `json:"SubUin,omitempty" name:"SubUin"`
}

func NewListGroupsForUserRequest

func NewListGroupsForUserRequest() (request *ListGroupsForUserRequest)

func (*ListGroupsForUserRequest) FromJsonString

func (r *ListGroupsForUserRequest) FromJsonString(s string) error

func (*ListGroupsForUserRequest) ToJsonString

func (r *ListGroupsForUserRequest) ToJsonString() string

type ListGroupsForUserResponse

type ListGroupsForUserResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 子用户加入的用户组总数
		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`

		// 用户组信息
		GroupInfo []*GroupInfo `json:"GroupInfo,omitempty" name:"GroupInfo" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewListGroupsForUserResponse

func NewListGroupsForUserResponse() (response *ListGroupsForUserResponse)

func (*ListGroupsForUserResponse) FromJsonString

func (r *ListGroupsForUserResponse) FromJsonString(s string) error

func (*ListGroupsForUserResponse) ToJsonString

func (r *ListGroupsForUserResponse) ToJsonString() string

type ListGroupsRequest

type ListGroupsRequest struct {
	*tchttp.BaseRequest

	// 页码。默认为1。
	Page *uint64 `json:"Page,omitempty" name:"Page"`

	// 每页数量。默认为20。
	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`

	// 按用户组名称匹配。
	Keyword *string `json:"Keyword,omitempty" name:"Keyword"`
}

func NewListGroupsRequest

func NewListGroupsRequest() (request *ListGroupsRequest)

func (*ListGroupsRequest) FromJsonString

func (r *ListGroupsRequest) FromJsonString(s string) error

func (*ListGroupsRequest) ToJsonString

func (r *ListGroupsRequest) ToJsonString() string

type ListGroupsResponse

type ListGroupsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 用户组总数。
		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`

		// 用户组数组信息。
		GroupInfo []*GroupInfo `json:"GroupInfo,omitempty" name:"GroupInfo" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewListGroupsResponse

func NewListGroupsResponse() (response *ListGroupsResponse)

func (*ListGroupsResponse) FromJsonString

func (r *ListGroupsResponse) FromJsonString(s string) error

func (*ListGroupsResponse) ToJsonString

func (r *ListGroupsResponse) ToJsonString() string

type ListPoliciesRequest

type ListPoliciesRequest struct {
	*tchttp.BaseRequest

	// 每页数量,默认值是 20,必须大于 0 且小于或等于 200
	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`

	// 页码,默认值是 1,从 1开始,不能大于 200
	Page *uint64 `json:"Page,omitempty" name:"Page"`

	// 可取值 'All'、'QCS' 和 'Local','All' 获取所有策略,'QCS' 只获取预设策略,'Local' 只获取自定义策略,默认取 'All'
	Scope *string `json:"Scope,omitempty" name:"Scope"`

	// 按策略名匹配
	Keyword *string `json:"Keyword,omitempty" name:"Keyword"`
}

func NewListPoliciesRequest

func NewListPoliciesRequest() (request *ListPoliciesRequest)

func (*ListPoliciesRequest) FromJsonString

func (r *ListPoliciesRequest) FromJsonString(s string) error

func (*ListPoliciesRequest) ToJsonString

func (r *ListPoliciesRequest) ToJsonString() string

type ListPoliciesResponse

type ListPoliciesResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 策略总数
		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`

		// 策略数组,数组每个成员包括 policyId、policyName、addTime、type、description、 createMode 字段。其中:
		// policyId:策略 id
		// policyName:策略名
		// addTime:策略创建时间
		// type:1 表示自定义策略,2 表示预设策略
		// description:策略描述
		// createMode:1 表示按业务权限创建的策略,其他值表示可以查看策略语法和通过策略语法更新策略
		// Attachments: 关联的用户数
		// ServiceType: 策略关联的产品
		// IsAttached: 当需要查询标记实体是否已经关联策略时不为null。0表示未关联策略,1表示已关联策略
		List []*StrategyInfo `json:"List,omitempty" name:"List" list`

		// 保留字段
		// 注意:此字段可能返回 null,表示取不到有效值。
		ServiceTypeList []*string `json:"ServiceTypeList,omitempty" name:"ServiceTypeList" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewListPoliciesResponse

func NewListPoliciesResponse() (response *ListPoliciesResponse)

func (*ListPoliciesResponse) FromJsonString

func (r *ListPoliciesResponse) FromJsonString(s string) error

func (*ListPoliciesResponse) ToJsonString

func (r *ListPoliciesResponse) ToJsonString() string

type ListPolicyVersionsRequest

type ListPolicyVersionsRequest struct {
	*tchttp.BaseRequest

	// 策略ID
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
}

func NewListPolicyVersionsRequest

func NewListPolicyVersionsRequest() (request *ListPolicyVersionsRequest)

func (*ListPolicyVersionsRequest) FromJsonString

func (r *ListPolicyVersionsRequest) FromJsonString(s string) error

func (*ListPolicyVersionsRequest) ToJsonString

func (r *ListPolicyVersionsRequest) ToJsonString() string

type ListPolicyVersionsResponse

type ListPolicyVersionsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 策略版本列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		Versions []*PolicyVersionItem `json:"Versions,omitempty" name:"Versions" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewListPolicyVersionsResponse

func NewListPolicyVersionsResponse() (response *ListPolicyVersionsResponse)

func (*ListPolicyVersionsResponse) FromJsonString

func (r *ListPolicyVersionsResponse) FromJsonString(s string) error

func (*ListPolicyVersionsResponse) ToJsonString

func (r *ListPolicyVersionsResponse) ToJsonString() string

type ListSAMLProvidersRequest

type ListSAMLProvidersRequest struct {
	*tchttp.BaseRequest
}

func NewListSAMLProvidersRequest

func NewListSAMLProvidersRequest() (request *ListSAMLProvidersRequest)

func (*ListSAMLProvidersRequest) FromJsonString

func (r *ListSAMLProvidersRequest) FromJsonString(s string) error

func (*ListSAMLProvidersRequest) ToJsonString

func (r *ListSAMLProvidersRequest) ToJsonString() string

type ListSAMLProvidersResponse

type ListSAMLProvidersResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// SAML身份提供商总数
		TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`

		// SAML身份提供商列表
		SAMLProviderSet []*SAMLProviderInfo `json:"SAMLProviderSet,omitempty" name:"SAMLProviderSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewListSAMLProvidersResponse

func NewListSAMLProvidersResponse() (response *ListSAMLProvidersResponse)

func (*ListSAMLProvidersResponse) FromJsonString

func (r *ListSAMLProvidersResponse) FromJsonString(s string) error

func (*ListSAMLProvidersResponse) ToJsonString

func (r *ListSAMLProvidersResponse) ToJsonString() string

type ListUsersForGroupRequest

type ListUsersForGroupRequest struct {
	*tchttp.BaseRequest

	// 用户组 ID。
	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`

	// 页码。默认为1。
	Page *uint64 `json:"Page,omitempty" name:"Page"`

	// 每页数量。默认为20。
	Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
}

func NewListUsersForGroupRequest

func NewListUsersForGroupRequest() (request *ListUsersForGroupRequest)

func (*ListUsersForGroupRequest) FromJsonString

func (r *ListUsersForGroupRequest) FromJsonString(s string) error

func (*ListUsersForGroupRequest) ToJsonString

func (r *ListUsersForGroupRequest) ToJsonString() string

type ListUsersForGroupResponse

type ListUsersForGroupResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 用户组关联的用户总数。
		TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`

		// 子用户信息。
		UserInfo []*GroupMemberInfo `json:"UserInfo,omitempty" name:"UserInfo" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewListUsersForGroupResponse

func NewListUsersForGroupResponse() (response *ListUsersForGroupResponse)

func (*ListUsersForGroupResponse) FromJsonString

func (r *ListUsersForGroupResponse) FromJsonString(s string) error

func (*ListUsersForGroupResponse) ToJsonString

func (r *ListUsersForGroupResponse) ToJsonString() string

type ListUsersRequest

type ListUsersRequest struct {
	*tchttp.BaseRequest
}

func NewListUsersRequest

func NewListUsersRequest() (request *ListUsersRequest)

func (*ListUsersRequest) FromJsonString

func (r *ListUsersRequest) FromJsonString(s string) error

func (*ListUsersRequest) ToJsonString

func (r *ListUsersRequest) ToJsonString() string

type ListUsersResponse

type ListUsersResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 子用户信息
		Data []*SubAccountInfo `json:"Data,omitempty" name:"Data" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewListUsersResponse

func NewListUsersResponse() (response *ListUsersResponse)

func (*ListUsersResponse) FromJsonString

func (r *ListUsersResponse) FromJsonString(s string) error

func (*ListUsersResponse) ToJsonString

func (r *ListUsersResponse) ToJsonString() string

type LoginActionMfaFlag

type LoginActionMfaFlag struct {

	// 手机
	Phone *uint64 `json:"Phone,omitempty" name:"Phone"`

	// 软token
	Stoken *uint64 `json:"Stoken,omitempty" name:"Stoken"`

	// 微信
	Wechat *uint64 `json:"Wechat,omitempty" name:"Wechat"`
}

type PolicyVersionDetail

type PolicyVersionDetail struct {

	// 策略版本号
	// 注意:此字段可能返回 null,表示取不到有效值。
	VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"`

	// 策略版本创建时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreateDate *string `json:"CreateDate,omitempty" name:"CreateDate"`

	// 是否是正在生效的版本。0表示不是,1表示是
	// 注意:此字段可能返回 null,表示取不到有效值。
	IsDefaultVersion *uint64 `json:"IsDefaultVersion,omitempty" name:"IsDefaultVersion"`

	// 策略语法文本
	// 注意:此字段可能返回 null,表示取不到有效值。
	Document *string `json:"Document,omitempty" name:"Document"`
}

type PolicyVersionItem

type PolicyVersionItem struct {

	// 策略版本号
	// 注意:此字段可能返回 null,表示取不到有效值。
	VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"`

	// 策略版本创建时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreateDate *string `json:"CreateDate,omitempty" name:"CreateDate"`

	// 是否是正在生效的版本。0表示不是,1表示是
	// 注意:此字段可能返回 null,表示取不到有效值。
	IsDefaultVersion *int64 `json:"IsDefaultVersion,omitempty" name:"IsDefaultVersion"`
}

type RemoveUserFromGroupRequest

type RemoveUserFromGroupRequest struct {
	*tchttp.BaseRequest

	// 要删除的用户 UID和用户组 ID对应数组
	Info []*GroupIdOfUidInfo `json:"Info,omitempty" name:"Info" list`
}

func NewRemoveUserFromGroupRequest

func NewRemoveUserFromGroupRequest() (request *RemoveUserFromGroupRequest)

func (*RemoveUserFromGroupRequest) FromJsonString

func (r *RemoveUserFromGroupRequest) FromJsonString(s string) error

func (*RemoveUserFromGroupRequest) ToJsonString

func (r *RemoveUserFromGroupRequest) ToJsonString() string

type RemoveUserFromGroupResponse

type RemoveUserFromGroupResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewRemoveUserFromGroupResponse

func NewRemoveUserFromGroupResponse() (response *RemoveUserFromGroupResponse)

func (*RemoveUserFromGroupResponse) FromJsonString

func (r *RemoveUserFromGroupResponse) FromJsonString(s string) error

func (*RemoveUserFromGroupResponse) ToJsonString

func (r *RemoveUserFromGroupResponse) ToJsonString() string

type RoleInfo

type RoleInfo struct {

	// 角色ID
	RoleId *string `json:"RoleId,omitempty" name:"RoleId"`

	// 角色名称
	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`

	// 角色的策略文档
	PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`

	// 角色描述
	Description *string `json:"Description,omitempty" name:"Description"`

	// 角色的创建时间
	AddTime *string `json:"AddTime,omitempty" name:"AddTime"`

	// 角色的最近一次时间
	UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`

	// 角色是否允许登录
	ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`

	// 角色类型,取user、system或service_linked
	// 注意:此字段可能返回 null,表示取不到有效值。
	RoleType *string `json:"RoleType,omitempty" name:"RoleType"`

	// 有效时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	SessionDuration *uint64 `json:"SessionDuration,omitempty" name:"SessionDuration"`

	// 服务相关角色删除TaskId
	// 注意:此字段可能返回 null,表示取不到有效值。
	DeletionTaskId *string `json:"DeletionTaskId,omitempty" name:"DeletionTaskId"`
}

type SAMLProviderInfo

type SAMLProviderInfo struct {

	// SAML身份提供商名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// SAML身份提供商描述
	Description *string `json:"Description,omitempty" name:"Description"`

	// SAML身份提供商创建时间
	CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`

	// SAML身份提供商上次修改时间
	ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"`
}

type SetDefaultPolicyVersionRequest

type SetDefaultPolicyVersionRequest struct {
	*tchttp.BaseRequest

	// 策略ID
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

	// 策略版本号
	VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"`
}

func NewSetDefaultPolicyVersionRequest

func NewSetDefaultPolicyVersionRequest() (request *SetDefaultPolicyVersionRequest)

func (*SetDefaultPolicyVersionRequest) FromJsonString

func (r *SetDefaultPolicyVersionRequest) FromJsonString(s string) error

func (*SetDefaultPolicyVersionRequest) ToJsonString

func (r *SetDefaultPolicyVersionRequest) ToJsonString() string

type SetDefaultPolicyVersionResponse

type SetDefaultPolicyVersionResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewSetDefaultPolicyVersionResponse

func NewSetDefaultPolicyVersionResponse() (response *SetDefaultPolicyVersionResponse)

func (*SetDefaultPolicyVersionResponse) FromJsonString

func (r *SetDefaultPolicyVersionResponse) FromJsonString(s string) error

func (*SetDefaultPolicyVersionResponse) ToJsonString

func (r *SetDefaultPolicyVersionResponse) ToJsonString() string

type SetMfaFlagRequest

type SetMfaFlagRequest struct {
	*tchttp.BaseRequest

	// 设置用户的uin
	OpUin *uint64 `json:"OpUin,omitempty" name:"OpUin"`

	// 登录保护设置
	LoginFlag *LoginActionMfaFlag `json:"LoginFlag,omitempty" name:"LoginFlag"`

	// 操作保护设置
	ActionFlag *LoginActionMfaFlag `json:"ActionFlag,omitempty" name:"ActionFlag"`
}

func NewSetMfaFlagRequest

func NewSetMfaFlagRequest() (request *SetMfaFlagRequest)

func (*SetMfaFlagRequest) FromJsonString

func (r *SetMfaFlagRequest) FromJsonString(s string) error

func (*SetMfaFlagRequest) ToJsonString

func (r *SetMfaFlagRequest) ToJsonString() string

type SetMfaFlagResponse

type SetMfaFlagResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewSetMfaFlagResponse

func NewSetMfaFlagResponse() (response *SetMfaFlagResponse)

func (*SetMfaFlagResponse) FromJsonString

func (r *SetMfaFlagResponse) FromJsonString(s string) error

func (*SetMfaFlagResponse) ToJsonString

func (r *SetMfaFlagResponse) ToJsonString() string

type StrategyInfo

type StrategyInfo struct {

	// 策略ID。
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

	// 策略名称。
	PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`

	// 策略创建时间。
	// 注意:此字段可能返回 null,表示取不到有效值。
	AddTime *string `json:"AddTime,omitempty" name:"AddTime"`

	// 策略类型。1 表示自定义策略,2 表示预设策略。
	Type *uint64 `json:"Type,omitempty" name:"Type"`

	// 策略描述。
	// 注意:此字段可能返回 null,表示取不到有效值。
	Description *string `json:"Description,omitempty" name:"Description"`

	// 创建来源,1 通过控制台创建, 2 通过策略语法创建。
	CreateMode *uint64 `json:"CreateMode,omitempty" name:"CreateMode"`

	// 关联的用户数
	Attachments *uint64 `json:"Attachments,omitempty" name:"Attachments"`

	// 策略关联的产品
	// 注意:此字段可能返回 null,表示取不到有效值。
	ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`

	// 当需要查询标记实体是否已经关联策略时不为null。0表示未关联策略,1表示已关联策略
	// 注意:此字段可能返回 null,表示取不到有效值。
	IsAttached *uint64 `json:"IsAttached,omitempty" name:"IsAttached"`

	// 是否已下线
	// 注意:此字段可能返回 null,表示取不到有效值。
	Deactived *uint64 `json:"Deactived,omitempty" name:"Deactived"`

	// 已下线产品列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	DeactivedDetail []*string `json:"DeactivedDetail,omitempty" name:"DeactivedDetail" list`

	// 是否是服务相关角色策略
	// 注意:此字段可能返回 null,表示取不到有效值。
	IsServiceLinkedPolicy *uint64 `json:"IsServiceLinkedPolicy,omitempty" name:"IsServiceLinkedPolicy"`
}

type SubAccountInfo

type SubAccountInfo struct {

	// 子用户用户 ID
	Uin *uint64 `json:"Uin,omitempty" name:"Uin"`

	// 子用户用户名
	Name *string `json:"Name,omitempty" name:"Name"`

	// 子用户 UID
	Uid *uint64 `json:"Uid,omitempty" name:"Uid"`

	// 子用户备注
	Remark *string `json:"Remark,omitempty" name:"Remark"`

	// 子用户能否登录控制台
	ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`

	// 手机号
	PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`

	// 区号
	CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`

	// 邮箱
	Email *string `json:"Email,omitempty" name:"Email"`
}

type UpdateAssumeRolePolicyRequest

type UpdateAssumeRolePolicyRequest struct {
	*tchttp.BaseRequest

	// 策略文档,示例:{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]},principal用于指定角色的授权对象。获取该参数可参阅 获取角色详情(https://cloud.tencent.com/document/product/598/36221) 输出参数RoleInfo
	PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`

	// 角色ID,用于指定角色,入参 RoleId 与 RoleName 二选一
	RoleId *string `json:"RoleId,omitempty" name:"RoleId"`

	// 角色名称,用于指定角色,入参 RoleId 与 RoleName 二选一
	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
}

func NewUpdateAssumeRolePolicyRequest

func NewUpdateAssumeRolePolicyRequest() (request *UpdateAssumeRolePolicyRequest)

func (*UpdateAssumeRolePolicyRequest) FromJsonString

func (r *UpdateAssumeRolePolicyRequest) FromJsonString(s string) error

func (*UpdateAssumeRolePolicyRequest) ToJsonString

func (r *UpdateAssumeRolePolicyRequest) ToJsonString() string

type UpdateAssumeRolePolicyResponse

type UpdateAssumeRolePolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateAssumeRolePolicyResponse

func NewUpdateAssumeRolePolicyResponse() (response *UpdateAssumeRolePolicyResponse)

func (*UpdateAssumeRolePolicyResponse) FromJsonString

func (r *UpdateAssumeRolePolicyResponse) FromJsonString(s string) error

func (*UpdateAssumeRolePolicyResponse) ToJsonString

func (r *UpdateAssumeRolePolicyResponse) ToJsonString() string

type UpdateGroupRequest

type UpdateGroupRequest struct {
	*tchttp.BaseRequest

	// 用户组 ID
	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`

	// 用户组名
	GroupName *string `json:"GroupName,omitempty" name:"GroupName"`

	// 用户组描述
	Remark *string `json:"Remark,omitempty" name:"Remark"`
}

func NewUpdateGroupRequest

func NewUpdateGroupRequest() (request *UpdateGroupRequest)

func (*UpdateGroupRequest) FromJsonString

func (r *UpdateGroupRequest) FromJsonString(s string) error

func (*UpdateGroupRequest) ToJsonString

func (r *UpdateGroupRequest) ToJsonString() string

type UpdateGroupResponse

type UpdateGroupResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateGroupResponse

func NewUpdateGroupResponse() (response *UpdateGroupResponse)

func (*UpdateGroupResponse) FromJsonString

func (r *UpdateGroupResponse) FromJsonString(s string) error

func (*UpdateGroupResponse) ToJsonString

func (r *UpdateGroupResponse) ToJsonString() string

type UpdatePolicyRequest

type UpdatePolicyRequest struct {
	*tchttp.BaseRequest

	// 策略ID
	PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

	// 策略名
	PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`

	// 策略描述
	Description *string `json:"Description,omitempty" name:"Description"`

	// 策略文档,示例:{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]},principal用于指定角色的授权对象。获取该参数可参阅 获取角色详情(https://cloud.tencent.com/document/product/598/36221) 输出参数RoleInfo
	PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`

	// 预设策略备注
	Alias *string `json:"Alias,omitempty" name:"Alias"`
}

func NewUpdatePolicyRequest

func NewUpdatePolicyRequest() (request *UpdatePolicyRequest)

func (*UpdatePolicyRequest) FromJsonString

func (r *UpdatePolicyRequest) FromJsonString(s string) error

func (*UpdatePolicyRequest) ToJsonString

func (r *UpdatePolicyRequest) ToJsonString() string

type UpdatePolicyResponse

type UpdatePolicyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 策略id
		// 注意:此字段可能返回 null,表示取不到有效值。
		PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdatePolicyResponse

func NewUpdatePolicyResponse() (response *UpdatePolicyResponse)

func (*UpdatePolicyResponse) FromJsonString

func (r *UpdatePolicyResponse) FromJsonString(s string) error

func (*UpdatePolicyResponse) ToJsonString

func (r *UpdatePolicyResponse) ToJsonString() string

type UpdateRoleConsoleLoginRequest

type UpdateRoleConsoleLoginRequest struct {
	*tchttp.BaseRequest

	// 是否可登录,可登录:1,不可登录:0
	ConsoleLogin *int64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`

	// 角色ID
	RoleId *int64 `json:"RoleId,omitempty" name:"RoleId"`

	// 角色名
	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
}

func NewUpdateRoleConsoleLoginRequest

func NewUpdateRoleConsoleLoginRequest() (request *UpdateRoleConsoleLoginRequest)

func (*UpdateRoleConsoleLoginRequest) FromJsonString

func (r *UpdateRoleConsoleLoginRequest) FromJsonString(s string) error

func (*UpdateRoleConsoleLoginRequest) ToJsonString

func (r *UpdateRoleConsoleLoginRequest) ToJsonString() string

type UpdateRoleConsoleLoginResponse

type UpdateRoleConsoleLoginResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateRoleConsoleLoginResponse

func NewUpdateRoleConsoleLoginResponse() (response *UpdateRoleConsoleLoginResponse)

func (*UpdateRoleConsoleLoginResponse) FromJsonString

func (r *UpdateRoleConsoleLoginResponse) FromJsonString(s string) error

func (*UpdateRoleConsoleLoginResponse) ToJsonString

func (r *UpdateRoleConsoleLoginResponse) ToJsonString() string

type UpdateRoleDescriptionRequest

type UpdateRoleDescriptionRequest struct {
	*tchttp.BaseRequest

	// 角色描述
	Description *string `json:"Description,omitempty" name:"Description"`

	// 角色ID,用于指定角色,入参 RoleId 与 RoleName 二选一
	RoleId *string `json:"RoleId,omitempty" name:"RoleId"`

	// 角色名称,用于指定角色,入参 RoleId 与 RoleName 二选一
	RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
}

func NewUpdateRoleDescriptionRequest

func NewUpdateRoleDescriptionRequest() (request *UpdateRoleDescriptionRequest)

func (*UpdateRoleDescriptionRequest) FromJsonString

func (r *UpdateRoleDescriptionRequest) FromJsonString(s string) error

func (*UpdateRoleDescriptionRequest) ToJsonString

func (r *UpdateRoleDescriptionRequest) ToJsonString() string

type UpdateRoleDescriptionResponse

type UpdateRoleDescriptionResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateRoleDescriptionResponse

func NewUpdateRoleDescriptionResponse() (response *UpdateRoleDescriptionResponse)

func (*UpdateRoleDescriptionResponse) FromJsonString

func (r *UpdateRoleDescriptionResponse) FromJsonString(s string) error

func (*UpdateRoleDescriptionResponse) ToJsonString

func (r *UpdateRoleDescriptionResponse) ToJsonString() string

type UpdateSAMLProviderRequest

type UpdateSAMLProviderRequest struct {
	*tchttp.BaseRequest

	// SAML身份提供商名称
	Name *string `json:"Name,omitempty" name:"Name"`

	// SAML身份提供商描述
	Description *string `json:"Description,omitempty" name:"Description"`

	// SAML身份提供商Base64编码的元数据文档
	SAMLMetadataDocument *string `json:"SAMLMetadataDocument,omitempty" name:"SAMLMetadataDocument"`
}

func NewUpdateSAMLProviderRequest

func NewUpdateSAMLProviderRequest() (request *UpdateSAMLProviderRequest)

func (*UpdateSAMLProviderRequest) FromJsonString

func (r *UpdateSAMLProviderRequest) FromJsonString(s string) error

func (*UpdateSAMLProviderRequest) ToJsonString

func (r *UpdateSAMLProviderRequest) ToJsonString() string

type UpdateSAMLProviderResponse

type UpdateSAMLProviderResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateSAMLProviderResponse

func NewUpdateSAMLProviderResponse() (response *UpdateSAMLProviderResponse)

func (*UpdateSAMLProviderResponse) FromJsonString

func (r *UpdateSAMLProviderResponse) FromJsonString(s string) error

func (*UpdateSAMLProviderResponse) ToJsonString

func (r *UpdateSAMLProviderResponse) ToJsonString() string

type UpdateUserRequest

type UpdateUserRequest struct {
	*tchttp.BaseRequest

	// 子用户用户名
	Name *string `json:"Name,omitempty" name:"Name"`

	// 子用户备注
	Remark *string `json:"Remark,omitempty" name:"Remark"`

	// 子用户是否可以登录控制台。传0子用户无法登录控制台,传1子用户可以登录控制台。
	ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`

	// 子用户控制台登录密码,若未进行密码规则设置则默认密码规则为8位以上同时包含大小写字母、数字和特殊字符。只有可以登录控制台时才有效,如果传空并且上面指定允许登录控制台,则自动生成随机密码,随机密码规则为32位包含大小写字母、数字和特殊字符。
	Password *string `json:"Password,omitempty" name:"Password"`

	// 子用户是否要在下次登录时重置密码。传0子用户下次登录控制台不需重置密码,传1子用户下次登录控制台需要重置密码。
	NeedResetPassword *uint64 `json:"NeedResetPassword,omitempty" name:"NeedResetPassword"`

	// 手机号
	PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`

	// 区号
	CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`

	// 邮箱
	Email *string `json:"Email,omitempty" name:"Email"`
}

func NewUpdateUserRequest

func NewUpdateUserRequest() (request *UpdateUserRequest)

func (*UpdateUserRequest) FromJsonString

func (r *UpdateUserRequest) FromJsonString(s string) error

func (*UpdateUserRequest) ToJsonString

func (r *UpdateUserRequest) ToJsonString() string

type UpdateUserResponse

type UpdateUserResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUpdateUserResponse

func NewUpdateUserResponse() (response *UpdateUserResponse)

func (*UpdateUserResponse) FromJsonString

func (r *UpdateUserResponse) FromJsonString(s string) error

func (*UpdateUserResponse) ToJsonString

func (r *UpdateUserResponse) ToJsonString() string

Jump to

Keyboard shortcuts

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