Documentation
¶
Index ¶
- Constants
- type AccessKey
- type AddUserRequest
- type AddUserResponse
- type AddUserToGroupRequest
- type AddUserToGroupResponse
- type AttachEntityOfPolicy
- type AttachGroupPolicyRequest
- type AttachGroupPolicyResponse
- type AttachPolicyInfo
- type AttachRolePolicyRequest
- type AttachRolePolicyResponse
- type AttachUserPolicyRequest
- type AttachUserPolicyResponse
- type AttachedPolicyOfRole
- type Client
- func (c *Client) AddUser(request *AddUserRequest) (response *AddUserResponse, err error)
- func (c *Client) AddUserToGroup(request *AddUserToGroupRequest) (response *AddUserToGroupResponse, err error)
- func (c *Client) AttachGroupPolicy(request *AttachGroupPolicyRequest) (response *AttachGroupPolicyResponse, err error)
- func (c *Client) AttachRolePolicy(request *AttachRolePolicyRequest) (response *AttachRolePolicyResponse, err error)
- func (c *Client) AttachUserPolicy(request *AttachUserPolicyRequest) (response *AttachUserPolicyResponse, err error)
- func (c *Client) ConsumeCustomMFAToken(request *ConsumeCustomMFATokenRequest) (response *ConsumeCustomMFATokenResponse, err error)
- func (c *Client) CreateGroup(request *CreateGroupRequest) (response *CreateGroupResponse, err error)
- func (c *Client) CreatePolicy(request *CreatePolicyRequest) (response *CreatePolicyResponse, err error)
- func (c *Client) CreatePolicyVersion(request *CreatePolicyVersionRequest) (response *CreatePolicyVersionResponse, err error)
- func (c *Client) CreateRole(request *CreateRoleRequest) (response *CreateRoleResponse, err error)
- func (c *Client) CreateSAMLProvider(request *CreateSAMLProviderRequest) (response *CreateSAMLProviderResponse, err error)
- func (c *Client) CreateServiceLinkedRole(request *CreateServiceLinkedRoleRequest) (response *CreateServiceLinkedRoleResponse, err error)
- func (c *Client) DeleteGroup(request *DeleteGroupRequest) (response *DeleteGroupResponse, err error)
- func (c *Client) DeletePolicy(request *DeletePolicyRequest) (response *DeletePolicyResponse, err error)
- func (c *Client) DeletePolicyVersion(request *DeletePolicyVersionRequest) (response *DeletePolicyVersionResponse, err error)
- func (c *Client) DeleteRole(request *DeleteRoleRequest) (response *DeleteRoleResponse, err error)
- func (c *Client) DeleteRolePermissionsBoundary(request *DeleteRolePermissionsBoundaryRequest) (response *DeleteRolePermissionsBoundaryResponse, err error)
- func (c *Client) DeleteSAMLProvider(request *DeleteSAMLProviderRequest) (response *DeleteSAMLProviderResponse, err error)
- func (c *Client) DeleteServiceLinkedRole(request *DeleteServiceLinkedRoleRequest) (response *DeleteServiceLinkedRoleResponse, err error)
- func (c *Client) DeleteUser(request *DeleteUserRequest) (response *DeleteUserResponse, err error)
- func (c *Client) DeleteUserPermissionsBoundary(request *DeleteUserPermissionsBoundaryRequest) (response *DeleteUserPermissionsBoundaryResponse, err error)
- func (c *Client) DescribeRoleList(request *DescribeRoleListRequest) (response *DescribeRoleListResponse, err error)
- func (c *Client) DescribeSafeAuthFlag(request *DescribeSafeAuthFlagRequest) (response *DescribeSafeAuthFlagResponse, err error)
- func (c *Client) DescribeSafeAuthFlagColl(request *DescribeSafeAuthFlagCollRequest) (response *DescribeSafeAuthFlagCollResponse, err error)
- func (c *Client) DetachGroupPolicy(request *DetachGroupPolicyRequest) (response *DetachGroupPolicyResponse, err error)
- func (c *Client) DetachRolePolicy(request *DetachRolePolicyRequest) (response *DetachRolePolicyResponse, err error)
- func (c *Client) DetachUserPolicy(request *DetachUserPolicyRequest) (response *DetachUserPolicyResponse, err error)
- func (c *Client) GetCustomMFATokenInfo(request *GetCustomMFATokenInfoRequest) (response *GetCustomMFATokenInfoResponse, err error)
- func (c *Client) GetGroup(request *GetGroupRequest) (response *GetGroupResponse, err error)
- func (c *Client) GetPolicy(request *GetPolicyRequest) (response *GetPolicyResponse, err error)
- func (c *Client) GetPolicyVersion(request *GetPolicyVersionRequest) (response *GetPolicyVersionResponse, err error)
- func (c *Client) GetRole(request *GetRoleRequest) (response *GetRoleResponse, err error)
- func (c *Client) GetSAMLProvider(request *GetSAMLProviderRequest) (response *GetSAMLProviderResponse, err error)
- func (c *Client) GetServiceLinkedRoleDeletionStatus(request *GetServiceLinkedRoleDeletionStatusRequest) (response *GetServiceLinkedRoleDeletionStatusResponse, err error)
- func (c *Client) GetUser(request *GetUserRequest) (response *GetUserResponse, err error)
- func (c *Client) ListAccessKeys(request *ListAccessKeysRequest) (response *ListAccessKeysResponse, err error)
- func (c *Client) ListAttachedGroupPolicies(request *ListAttachedGroupPoliciesRequest) (response *ListAttachedGroupPoliciesResponse, err error)
- func (c *Client) ListAttachedRolePolicies(request *ListAttachedRolePoliciesRequest) (response *ListAttachedRolePoliciesResponse, err error)
- func (c *Client) ListAttachedUserPolicies(request *ListAttachedUserPoliciesRequest) (response *ListAttachedUserPoliciesResponse, err error)
- func (c *Client) ListCollaborators(request *ListCollaboratorsRequest) (response *ListCollaboratorsResponse, err error)
- func (c *Client) ListEntitiesForPolicy(request *ListEntitiesForPolicyRequest) (response *ListEntitiesForPolicyResponse, err error)
- func (c *Client) ListGroups(request *ListGroupsRequest) (response *ListGroupsResponse, err error)
- func (c *Client) ListGroupsForUser(request *ListGroupsForUserRequest) (response *ListGroupsForUserResponse, err error)
- func (c *Client) ListPolicies(request *ListPoliciesRequest) (response *ListPoliciesResponse, err error)
- func (c *Client) ListPolicyVersions(request *ListPolicyVersionsRequest) (response *ListPolicyVersionsResponse, err error)
- func (c *Client) ListSAMLProviders(request *ListSAMLProvidersRequest) (response *ListSAMLProvidersResponse, err error)
- func (c *Client) ListUsers(request *ListUsersRequest) (response *ListUsersResponse, err error)
- func (c *Client) ListUsersForGroup(request *ListUsersForGroupRequest) (response *ListUsersForGroupResponse, err error)
- func (c *Client) PutRolePermissionsBoundary(request *PutRolePermissionsBoundaryRequest) (response *PutRolePermissionsBoundaryResponse, err error)
- func (c *Client) PutUserPermissionsBoundary(request *PutUserPermissionsBoundaryRequest) (response *PutUserPermissionsBoundaryResponse, err error)
- func (c *Client) RemoveUserFromGroup(request *RemoveUserFromGroupRequest) (response *RemoveUserFromGroupResponse, err error)
- func (c *Client) SetDefaultPolicyVersion(request *SetDefaultPolicyVersionRequest) (response *SetDefaultPolicyVersionResponse, err error)
- func (c *Client) SetMfaFlag(request *SetMfaFlagRequest) (response *SetMfaFlagResponse, err error)
- func (c *Client) UpdateAssumeRolePolicy(request *UpdateAssumeRolePolicyRequest) (response *UpdateAssumeRolePolicyResponse, err error)
- func (c *Client) UpdateGroup(request *UpdateGroupRequest) (response *UpdateGroupResponse, err error)
- func (c *Client) UpdatePolicy(request *UpdatePolicyRequest) (response *UpdatePolicyResponse, err error)
- func (c *Client) UpdateRoleConsoleLogin(request *UpdateRoleConsoleLoginRequest) (response *UpdateRoleConsoleLoginResponse, err error)
- func (c *Client) UpdateRoleDescription(request *UpdateRoleDescriptionRequest) (response *UpdateRoleDescriptionResponse, err error)
- func (c *Client) UpdateSAMLProvider(request *UpdateSAMLProviderRequest) (response *UpdateSAMLProviderResponse, err error)
- func (c *Client) UpdateUser(request *UpdateUserRequest) (response *UpdateUserResponse, err error)
- type ConsumeCustomMFATokenRequest
- type ConsumeCustomMFATokenResponse
- type CreateGroupRequest
- type CreateGroupResponse
- type CreatePolicyRequest
- type CreatePolicyResponse
- type CreatePolicyVersionRequest
- type CreatePolicyVersionResponse
- type CreateRoleRequest
- type CreateRoleResponse
- type CreateSAMLProviderRequest
- type CreateSAMLProviderResponse
- type CreateServiceLinkedRoleRequest
- type CreateServiceLinkedRoleResponse
- type DeleteGroupRequest
- type DeleteGroupResponse
- type DeletePolicyRequest
- type DeletePolicyResponse
- type DeletePolicyVersionRequest
- type DeletePolicyVersionResponse
- type DeleteRolePermissionsBoundaryRequest
- type DeleteRolePermissionsBoundaryResponse
- type DeleteRoleRequest
- type DeleteRoleResponse
- type DeleteSAMLProviderRequest
- type DeleteSAMLProviderResponse
- type DeleteServiceLinkedRoleRequest
- type DeleteServiceLinkedRoleResponse
- type DeleteUserPermissionsBoundaryRequest
- type DeleteUserPermissionsBoundaryResponse
- type DeleteUserRequest
- type DeleteUserResponse
- type DescribeRoleListRequest
- type DescribeRoleListResponse
- type DescribeSafeAuthFlagCollRequest
- type DescribeSafeAuthFlagCollResponse
- type DescribeSafeAuthFlagRequest
- type DescribeSafeAuthFlagResponse
- type DetachGroupPolicyRequest
- type DetachGroupPolicyResponse
- type DetachRolePolicyRequest
- type DetachRolePolicyResponse
- type DetachUserPolicyRequest
- type DetachUserPolicyResponse
- type GetCustomMFATokenInfoRequest
- type GetCustomMFATokenInfoResponse
- type GetGroupRequest
- type GetGroupResponse
- type GetPolicyRequest
- type GetPolicyResponse
- type GetPolicyVersionRequest
- type GetPolicyVersionResponse
- type GetRoleRequest
- type GetRoleResponse
- type GetSAMLProviderRequest
- type GetSAMLProviderResponse
- type GetServiceLinkedRoleDeletionStatusRequest
- type GetServiceLinkedRoleDeletionStatusResponse
- type GetUserRequest
- type GetUserResponse
- type GroupIdOfUidInfo
- type GroupInfo
- type GroupMemberInfo
- type ListAccessKeysRequest
- type ListAccessKeysResponse
- type ListAttachedGroupPoliciesRequest
- type ListAttachedGroupPoliciesResponse
- type ListAttachedRolePoliciesRequest
- type ListAttachedRolePoliciesResponse
- type ListAttachedUserPoliciesRequest
- type ListAttachedUserPoliciesResponse
- type ListCollaboratorsRequest
- type ListCollaboratorsResponse
- type ListEntitiesForPolicyRequest
- type ListEntitiesForPolicyResponse
- type ListGroupsForUserRequest
- type ListGroupsForUserResponse
- type ListGroupsRequest
- type ListGroupsResponse
- type ListPoliciesRequest
- type ListPoliciesResponse
- type ListPolicyVersionsRequest
- type ListPolicyVersionsResponse
- type ListSAMLProvidersRequest
- type ListSAMLProvidersResponse
- type ListUsersForGroupRequest
- type ListUsersForGroupResponse
- type ListUsersRequest
- type ListUsersResponse
- type LoginActionFlag
- type LoginActionMfaFlag
- type OffsiteFlag
- type PolicyVersionDetail
- type PolicyVersionItem
- type PutRolePermissionsBoundaryRequest
- type PutRolePermissionsBoundaryResponse
- type PutUserPermissionsBoundaryRequest
- type PutUserPermissionsBoundaryResponse
- type RemoveUserFromGroupRequest
- type RemoveUserFromGroupResponse
- type RoleInfo
- type SAMLProviderInfo
- type SetDefaultPolicyVersionRequest
- type SetDefaultPolicyVersionResponse
- type SetMfaFlagRequest
- type SetMfaFlagResponse
- type StrategyInfo
- type SubAccountInfo
- type UpdateAssumeRolePolicyRequest
- type UpdateAssumeRolePolicyResponse
- type UpdateGroupRequest
- type UpdateGroupResponse
- type UpdatePolicyRequest
- type UpdatePolicyResponse
- type UpdateRoleConsoleLoginRequest
- type UpdateRoleConsoleLoginResponse
- type UpdateRoleDescriptionRequest
- type UpdateRoleDescriptionResponse
- type UpdateSAMLProviderRequest
- type UpdateSAMLProviderResponse
- type UpdateUserRequest
- type UpdateUserResponse
Constants ¶
const APIVersion = "2019-01-16"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessKey ¶
type AccessKey struct {
// Access key ID
AccessKeyId *string `json:"AccessKeyId,omitempty" name:"AccessKeyId"`
// Key status. Valid values: Active (activated), Inactive (not activated)
Status *string `json:"Status,omitempty" name:"Status"`
// Creation time
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
}
type AddUserRequest ¶
type AddUserRequest struct {
*tchttp.BaseRequest
// Sub-user username
Name *string `json:"Name,omitempty" name:"Name"`
// Sub-user remarks
Remark *string `json:"Remark,omitempty" name:"Remark"`
// Whether or not the sub-user is allowed to log in to the console. 0: No; 1: Yes.
ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`
// Whether or not to generate keys for sub-users. 0: No; 1: Yes.
UseApi *uint64 `json:"UseApi,omitempty" name:"UseApi"`
// Sub-user's console login password. If no password rules have been set, the password must have a minimum of 8 characters containing uppercase letters, lowercase letters, digits, and special characters by default. This parameter will be valid only when the sub-user is allowed to log in to the console. If it is not specified and console login is allowed, the system will automatically generate a random 32-character password that contains uppercase letters, lowercase letters, digits, and special characters.
Password *string `json:"Password,omitempty" name:"Password"`
// If the sub-user needs to reset their password when they next log in to the console. 0: No; 1: Yes.
NeedResetPassword *uint64 `json:"NeedResetPassword,omitempty" name:"NeedResetPassword"`
// Mobile number
PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`
// Country/Area Code
CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`
// Email
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 {
// Sub-user UIN
Uin *uint64 `json:"Uin,omitempty" name:"Uin"`
// Sub-user username
Name *string `json:"Name,omitempty" name:"Name"`
// If the combination of input parameters indicates that a random password should be generated, the generated password is returned
Password *string `json:"Password,omitempty" name:"Password"`
// Sub-user's key ID
SecretId *string `json:"SecretId,omitempty" name:"SecretId"`
// Sub-user's secret key
SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"`
// Sub-user UID
Uid *uint64 `json:"Uid,omitempty" name:"Uid"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// How sub-user UIDs are associated with the ID of the user group they are added to.
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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 {
// Entity ID
Id *string `json:"Id,omitempty" name:"Id"`
// Entity Name
// Note: This field may return null, indicating that no valid value was found.
Name *string `json:"Name,omitempty" name:"Name"`
// Entity UIN
// Note: This field may return null, indicating that no valid value was found.
Uin *uint64 `json:"Uin,omitempty" name:"Uin"`
// Type of entity association. 1: Associate by users; 2: Associate by User Groups
RelatedType *uint64 `json:"RelatedType,omitempty" name:"RelatedType"`
// Policy association time
// Note: this field may return `null`, indicating that no valid value was found.
AttachmentTime *string `json:"AttachmentTime,omitempty" name:"AttachmentTime"`
}
type AttachGroupPolicyRequest ¶
type AttachGroupPolicyRequest struct {
*tchttp.BaseRequest
// Policy ID
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// User Group 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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 {
// Policy ID
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// Policy name
// Note: This field may return null, indicating that no valid value was found.
PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
// Time created
// Note: This field may return null, indicating that no valid value was found.
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// How the policy was created: 1: Via console; 2: Via syntax
// Note: This field may return null, indicating that no valid value was found.
CreateMode *uint64 `json:"CreateMode,omitempty" name:"CreateMode"`
// Valid values: `user` and `QCS`
// Note: This field may return null, indicating that no valid value was found.
PolicyType *string `json:"PolicyType,omitempty" name:"PolicyType"`
// Policy remarks
Remark *string `json:"Remark,omitempty" name:"Remark"`
// Root account of the operator associating the policy
// Note: this field may return null, indicating that no valid values can be obtained.
OperateOwnerUin *string `json:"OperateOwnerUin,omitempty" name:"OperateOwnerUin"`
// The ID of the account associating the policy. If `UinType` is 0, this indicates that this is a sub-account `UIN`. If `UinType` is 1, this indicates this is a role ID
OperateUin *string `json:"OperateUin,omitempty" name:"OperateUin"`
// If `UinType` is 0, `OperateUin` indicates that this is a sub-account `UIN`. If `UinType` is 1, `OperateUin` indicates that this is a role ID
OperateUinType *uint64 `json:"OperateUinType,omitempty" name:"OperateUinType"`
// Queries if the policy has been deactivated
// Note: this field may return null, indicating that no valid values can be obtained.
Deactived *uint64 `json:"Deactived,omitempty" name:"Deactived"`
// List of deprecated products
// Note: this field may return null, indicating that no valid values can be obtained.
DeactivedDetail []*string `json:"DeactivedDetail,omitempty" name:"DeactivedDetail" list`
}
type AttachRolePolicyRequest ¶
type AttachRolePolicyRequest struct {
*tchttp.BaseRequest
// Policy ID. Either `PolicyId` or `PolicyName` must be entered
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// Role ID, used to specify a role. Input either `AttachRoleId` or `AttachRoleName`
AttachRoleId *string `json:"AttachRoleId,omitempty" name:"AttachRoleId"`
// Role name, used to specify a role. Input either `AttachRoleId` or `AttachRoleName`
AttachRoleName *string `json:"AttachRoleName,omitempty" name:"AttachRoleName"`
// Policy name. Either `PolicyId` or `PolicyName` must be entered
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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Policy ID
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// Sub-account 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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 {
// Policy ID
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// Policy name
PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
// Time of association
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// Policy type. `User` indicates custom policy; `QCS` indicates preset policy
// Note: This field may return null, indicating that no valid value was found.
PolicyType *string `json:"PolicyType,omitempty" name:"PolicyType"`
// Policy creation method. 1: indicates the policy was created based on product function or item permission; other values indicate the policy was created based on the policy syntax
CreateMode *uint64 `json:"CreateMode,omitempty" name:"CreateMode"`
// Whether the product has been deprecated (0: no; 1: yes)
// Note: this field may return null, indicating that no valid values can be obtained.
Deactived *uint64 `json:"Deactived,omitempty" name:"Deactived"`
// List of deprecated products
// Note: this field may return null, indicating that no valid values can be obtained.
DeactivedDetail []*string `json:"DeactivedDetail,omitempty" name:"DeactivedDetail" list`
// Policy description
// Note: this field may return null, indicating that no valid values can be obtained.
Description *string `json:"Description,omitempty" name:"Description"`
}
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddUser ¶
func (c *Client) AddUser(request *AddUserRequest) (response *AddUserResponse, err error)
This API is used to add sub-users.
func (*Client) AddUserToGroup ¶
func (c *Client) AddUserToGroup(request *AddUserToGroupRequest) (response *AddUserToGroupResponse, err error)
This API is used to add users to a user group.
func (*Client) AttachGroupPolicy ¶
func (c *Client) AttachGroupPolicy(request *AttachGroupPolicyRequest) (response *AttachGroupPolicyResponse, err error)
This API (AttachGroupPolicy) is used to associate a policy with a user group.
func (*Client) AttachRolePolicy ¶
func (c *Client) AttachRolePolicy(request *AttachRolePolicyRequest) (response *AttachRolePolicyResponse, err error)
This API (AttachRolePolicy) is used to associate a policy with a role.
func (*Client) AttachUserPolicy ¶
func (c *Client) AttachUserPolicy(request *AttachUserPolicyRequest) (response *AttachUserPolicyResponse, err error)
This API (AttachUserPolicy) is used to associates a policy with a user.
func (*Client) ConsumeCustomMFAToken ¶
func (c *Client) ConsumeCustomMFAToken(request *ConsumeCustomMFATokenRequest) (response *ConsumeCustomMFATokenResponse, err error)
This API is used to verify a custom multi-factor Token.
func (*Client) CreateGroup ¶
func (c *Client) CreateGroup(request *CreateGroupRequest) (response *CreateGroupResponse, err error)
This API is used to create a user group.
func (*Client) CreatePolicy ¶
func (c *Client) CreatePolicy(request *CreatePolicyRequest) (response *CreatePolicyResponse, err error)
This API (CreatePolicy) is used to create a policy.
func (*Client) CreatePolicyVersion ¶
func (c *Client) CreatePolicyVersion(request *CreatePolicyVersionRequest) (response *CreatePolicyVersionResponse, err error)
This API is used to add a policy version. After creating a policy version, you can easily change the policy by changing the policy version.
func (*Client) CreateRole ¶
func (c *Client) CreateRole(request *CreateRoleRequest) (response *CreateRoleResponse, err error)
This API (CreateRole) is used to create a role.
func (*Client) CreateSAMLProvider ¶
func (c *Client) CreateSAMLProvider(request *CreateSAMLProviderRequest) (response *CreateSAMLProviderResponse, err error)
This API is used to create a SAML identity provider.
func (*Client) CreateServiceLinkedRole ¶
func (c *Client) CreateServiceLinkedRole(request *CreateServiceLinkedRoleRequest) (response *CreateServiceLinkedRoleResponse, err error)
This API is used to create a service-linked role.
func (*Client) DeleteGroup ¶
func (c *Client) DeleteGroup(request *DeleteGroupRequest) (response *DeleteGroupResponse, err error)
This API is used to delete a user group.
func (*Client) DeletePolicy ¶
func (c *Client) DeletePolicy(request *DeletePolicyRequest) (response *DeletePolicyResponse, err error)
This API (DeletePolicy) is used to delete a policy.
func (*Client) DeletePolicyVersion ¶
func (c *Client) DeletePolicyVersion(request *DeletePolicyVersionRequest) (response *DeletePolicyVersionResponse, err error)
This API is used to delete a policy version of a policy.
func (*Client) DeleteRole ¶
func (c *Client) DeleteRole(request *DeleteRoleRequest) (response *DeleteRoleResponse, err error)
This API (DeleteRole) is used to delete a specified role.
func (*Client) DeleteRolePermissionsBoundary ¶
func (c *Client) DeleteRolePermissionsBoundary(request *DeleteRolePermissionsBoundaryRequest) (response *DeleteRolePermissionsBoundaryResponse, err error)
This API is used to delete a role permission boundary.
func (*Client) DeleteSAMLProvider ¶
func (c *Client) DeleteSAMLProvider(request *DeleteSAMLProviderRequest) (response *DeleteSAMLProviderResponse, err error)
This API is used to delete a SAML identity provider.
func (*Client) DeleteServiceLinkedRole ¶
func (c *Client) DeleteServiceLinkedRole(request *DeleteServiceLinkedRoleRequest) (response *DeleteServiceLinkedRoleResponse, err error)
This API is used to delete a service-linked role.
func (*Client) DeleteUser ¶
func (c *Client) DeleteUser(request *DeleteUserRequest) (response *DeleteUserResponse, err error)
This API is used to delete a sub-user.
func (*Client) DeleteUserPermissionsBoundary ¶
func (c *Client) DeleteUserPermissionsBoundary(request *DeleteUserPermissionsBoundaryRequest) (response *DeleteUserPermissionsBoundaryResponse, err error)
This API is used to delete a user permission boundary.
func (*Client) DescribeRoleList ¶
func (c *Client) DescribeRoleList(request *DescribeRoleListRequest) (response *DescribeRoleListResponse, err error)
This API (DescribeRoleList) is used to get the role list under the account.
func (*Client) DescribeSafeAuthFlag ¶
func (c *Client) DescribeSafeAuthFlag(request *DescribeSafeAuthFlagRequest) (response *DescribeSafeAuthFlagResponse, err error)
This API is used to query security settings.
func (*Client) DescribeSafeAuthFlagColl ¶
func (c *Client) DescribeSafeAuthFlagColl(request *DescribeSafeAuthFlagCollRequest) (response *DescribeSafeAuthFlagCollResponse, err error)
This API is used to query security settings.
func (*Client) DetachGroupPolicy ¶
func (c *Client) DetachGroupPolicy(request *DetachGroupPolicyRequest) (response *DetachGroupPolicyResponse, err error)
This API (DetachGroupPolicy) is used to unassociate a policy and a user group.
func (*Client) DetachRolePolicy ¶
func (c *Client) DetachRolePolicy(request *DetachRolePolicyRequest) (response *DetachRolePolicyResponse, err error)
This API (DetachRolePolicy) is used to unassociate a policy and a role.
func (*Client) DetachUserPolicy ¶
func (c *Client) DetachUserPolicy(request *DetachUserPolicyRequest) (response *DetachUserPolicyResponse, err error)
This API (DetachUserPolicy) is used to unassociate a policy and a user.
func (*Client) GetCustomMFATokenInfo ¶
func (c *Client) GetCustomMFATokenInfo(request *GetCustomMFATokenInfoRequest) (response *GetCustomMFATokenInfoResponse, err error)
This API is used to get information associated with a custom multi-factor Token
func (*Client) GetGroup ¶
func (c *Client) GetGroup(request *GetGroupRequest) (response *GetGroupResponse, err error)
This API is used to query user group details.
func (*Client) GetPolicy ¶
func (c *Client) GetPolicy(request *GetPolicyRequest) (response *GetPolicyResponse, err error)
This API (GetPolicy) is used to query and view policy details.
func (*Client) GetPolicyVersion ¶
func (c *Client) GetPolicyVersion(request *GetPolicyVersionRequest) (response *GetPolicyVersionResponse, err error)
This API is used to query policy version details.
func (*Client) GetRole ¶
func (c *Client) GetRole(request *GetRoleRequest) (response *GetRoleResponse, err error)
This API (GetRole) is used to get the details of a specified role.
func (*Client) GetSAMLProvider ¶
func (c *Client) GetSAMLProvider(request *GetSAMLProviderRequest) (response *GetSAMLProviderResponse, err error)
This API is used to query SAML identity provider details.
func (*Client) GetServiceLinkedRoleDeletionStatus ¶
func (c *Client) GetServiceLinkedRoleDeletionStatus(request *GetServiceLinkedRoleDeletionStatusRequest) (response *GetServiceLinkedRoleDeletionStatusResponse, err error)
This API is used to get the status of the service-linked role deletion based on the `TaskId`
func (*Client) GetUser ¶
func (c *Client) GetUser(request *GetUserRequest) (response *GetUserResponse, err error)
This API is used to query sub-users.
func (*Client) ListAccessKeys ¶
func (c *Client) ListAccessKeys(request *ListAccessKeysRequest) (response *ListAccessKeysResponse, err error)
This API is used to list the access keys associated with a specified CAM user.
func (*Client) ListAttachedGroupPolicies ¶
func (c *Client) ListAttachedGroupPolicies(request *ListAttachedGroupPoliciesRequest) (response *ListAttachedGroupPoliciesResponse, err error)
This API (ListAttachedGroupPolicies) is used to query the list of policies associated with a user group.
func (*Client) ListAttachedRolePolicies ¶
func (c *Client) ListAttachedRolePolicies(request *ListAttachedRolePoliciesRequest) (response *ListAttachedRolePoliciesResponse, err error)
This API (ListAttachedRolePolicies) is used to obtain the list of the policies associated with a role.
func (*Client) ListAttachedUserPolicies ¶
func (c *Client) ListAttachedUserPolicies(request *ListAttachedUserPoliciesRequest) (response *ListAttachedUserPoliciesResponse, err error)
This API (ListAttachedUserPolicies) is used to query the list of policies associated with a sub-account.
func (*Client) ListCollaborators ¶
func (c *Client) ListCollaborators(request *ListCollaboratorsRequest) (response *ListCollaboratorsResponse, err error)
This API is used to get the collaborator list.
func (*Client) ListEntitiesForPolicy ¶
func (c *Client) ListEntitiesForPolicy(request *ListEntitiesForPolicyRequest) (response *ListEntitiesForPolicyResponse, err error)
This API (ListEntitiesForPolicy) is used to query the list of entities associated with a policy.
func (*Client) ListGroups ¶
func (c *Client) ListGroups(request *ListGroupsRequest) (response *ListGroupsResponse, err error)
This API is used to query the list of user groups.
func (*Client) ListGroupsForUser ¶
func (c *Client) ListGroupsForUser(request *ListGroupsForUserRequest) (response *ListGroupsForUserResponse, err error)
This API is used to list user groups associated with a user.
func (*Client) ListPolicies ¶
func (c *Client) ListPolicies(request *ListPoliciesRequest) (response *ListPoliciesResponse, err error)
This API is used to query the policy list.
func (*Client) ListPolicyVersions ¶
func (c *Client) ListPolicyVersions(request *ListPolicyVersionsRequest) (response *ListPolicyVersionsResponse, err error)
This API is used to get the list of policy versions.
func (*Client) ListSAMLProviders ¶
func (c *Client) ListSAMLProviders(request *ListSAMLProvidersRequest) (response *ListSAMLProvidersResponse, err error)
This API is used to query the list of SAML identity providers.
func (*Client) ListUsers ¶
func (c *Client) ListUsers(request *ListUsersRequest) (response *ListUsersResponse, err error)
This API is used to pull sub-users.
func (*Client) ListUsersForGroup ¶
func (c *Client) ListUsersForGroup(request *ListUsersForGroupRequest) (response *ListUsersForGroupResponse, err error)
This API is used to query the list of users associated with a user group.
func (*Client) PutRolePermissionsBoundary ¶
func (c *Client) PutRolePermissionsBoundary(request *PutRolePermissionsBoundaryRequest) (response *PutRolePermissionsBoundaryResponse, err error)
This API is used to set a role permission boundary.
func (*Client) PutUserPermissionsBoundary ¶
func (c *Client) PutUserPermissionsBoundary(request *PutUserPermissionsBoundaryRequest) (response *PutUserPermissionsBoundaryResponse, err error)
This API is used to set a user permission boundary.
func (*Client) RemoveUserFromGroup ¶
func (c *Client) RemoveUserFromGroup(request *RemoveUserFromGroupRequest) (response *RemoveUserFromGroupResponse, err error)
This API is used to delete users from a user group.
func (*Client) SetDefaultPolicyVersion ¶
func (c *Client) SetDefaultPolicyVersion(request *SetDefaultPolicyVersionRequest) (response *SetDefaultPolicyVersionResponse, err error)
This API is used to set the operative policy version.
func (*Client) SetMfaFlag ¶
func (c *Client) SetMfaFlag(request *SetMfaFlagRequest) (response *SetMfaFlagResponse, err error)
This API is used to set account verification for login and sensitive operations for sub-users.
func (*Client) UpdateAssumeRolePolicy ¶
func (c *Client) UpdateAssumeRolePolicy(request *UpdateAssumeRolePolicyRequest) (response *UpdateAssumeRolePolicyResponse, err error)
This API (UpdateAssumeRolePolicy) is used to modify the trust policy of a role.
func (*Client) UpdateGroup ¶
func (c *Client) UpdateGroup(request *UpdateGroupRequest) (response *UpdateGroupResponse, err error)
This API is used to update a user group.
func (*Client) UpdatePolicy ¶
func (c *Client) UpdatePolicy(request *UpdatePolicyRequest) (response *UpdatePolicyResponse, err error)
This API is used to update a policy. This API will update the default version of an existing policy instead of creating a new one. If no policy exists, a default version will be created.
func (*Client) UpdateRoleConsoleLogin ¶
func (c *Client) UpdateRoleConsoleLogin(request *UpdateRoleConsoleLoginRequest) (response *UpdateRoleConsoleLoginResponse, err error)
This API is used to modify a role's login permissions.
func (*Client) UpdateRoleDescription ¶
func (c *Client) UpdateRoleDescription(request *UpdateRoleDescriptionRequest) (response *UpdateRoleDescriptionResponse, err error)
This API (UpdateRoleDescription) is used to modify the description of a role.
func (*Client) UpdateSAMLProvider ¶
func (c *Client) UpdateSAMLProvider(request *UpdateSAMLProviderRequest) (response *UpdateSAMLProviderResponse, err error)
This API is used to update SAML identity provider information.
func (*Client) UpdateUser ¶
func (c *Client) UpdateUser(request *UpdateUserRequest) (response *UpdateUserResponse, err error)
This API is used to update a sub-user.
type ConsumeCustomMFATokenRequest ¶
type ConsumeCustomMFATokenRequest struct {
*tchttp.BaseRequest
// Custom multi-factor verification 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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// User Group name
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
// User Group description
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 {
// User Group ID
GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Policy name
PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
// Policy document, such as `{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]}`, where `principal` is used to specify the resources that the role is authorized to access. For more information on this parameter, please see the `RoleInfo` output parameter of the [GetRole](https://intl.cloud.tencent.com/document/product/598/36221?from_cn_redirect=1) API
PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`
// Policy description
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 of newly added policy
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Policy ID
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// The policy document to use as the content for the new version
PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`
// Specifies whether to set this version as the default version
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 {
// Policy version ID
// Note: this field may return null, indicating that no valid values can be obtained.
VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Role name
RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
// Policy document
PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`
// Role description
Description *string `json:"Description,omitempty" name:"Description"`
// Whether login is allowed. 1: yes, 0: no
ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`
// The maximum validity period of the temporary key for creating a role (range: 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 {
// Role ID
// Note: This field may return null, indicating that no valid value was found.
RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 identity provider name
Name *string `json:"Name,omitempty" name:"Name"`
// SAML identity provider description
Description *string `json:"Description,omitempty" name:"Description"`
// SAML identity provider metadata document (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 identity provider resource descriptor
ProviderArn *string `json:"ProviderArn,omitempty" name:"ProviderArn"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Authorized service, i.e., Tencent Cloud service entity with this role attached.
QCSServiceName []*string `json:"QCSServiceName,omitempty" name:"QCSServiceName" list`
// Custom suffix. A string you provide, which is combined with the service-provided prefix to form the complete role name.
CustomSuffix *string `json:"CustomSuffix,omitempty" name:"CustomSuffix"`
// Role description.
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 {
// Role ID
RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// User Group 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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Array. Array elements are policy IDs. Policies can be deleted in a batch
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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Policy ID
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// Policy version ID
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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 DeleteRolePermissionsBoundaryRequest ¶
type DeleteRolePermissionsBoundaryRequest struct {
*tchttp.BaseRequest
// Role ID (either it or the role name must be entered)
RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
// Role name (either it or the role ID must be entered)
RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
}
func NewDeleteRolePermissionsBoundaryRequest ¶
func NewDeleteRolePermissionsBoundaryRequest() (request *DeleteRolePermissionsBoundaryRequest)
func (*DeleteRolePermissionsBoundaryRequest) FromJsonString ¶
func (r *DeleteRolePermissionsBoundaryRequest) FromJsonString(s string) error
func (*DeleteRolePermissionsBoundaryRequest) ToJsonString ¶
func (r *DeleteRolePermissionsBoundaryRequest) ToJsonString() string
type DeleteRolePermissionsBoundaryResponse ¶
type DeleteRolePermissionsBoundaryResponse struct {
*tchttp.BaseResponse
Response *struct {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteRolePermissionsBoundaryResponse ¶
func NewDeleteRolePermissionsBoundaryResponse() (response *DeleteRolePermissionsBoundaryResponse)
func (*DeleteRolePermissionsBoundaryResponse) FromJsonString ¶
func (r *DeleteRolePermissionsBoundaryResponse) FromJsonString(s string) error
func (*DeleteRolePermissionsBoundaryResponse) ToJsonString ¶
func (r *DeleteRolePermissionsBoundaryResponse) ToJsonString() string
type DeleteRoleRequest ¶
type DeleteRoleRequest struct {
*tchttp.BaseRequest
// Role ID, used to specify a role. Input either `RoleId` or `RoleName`
RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
// Role name, used to specify a role. Input either `RoleId` or `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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 identity provider name
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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Name of the service-linked role to be deleted.
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 {
// Deletion task identifier, which can be used to check the status of a service-linked role deletion.
DeletionTaskId *string `json:"DeletionTaskId,omitempty" name:"DeletionTaskId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 DeleteUserPermissionsBoundaryRequest ¶
type DeleteUserPermissionsBoundaryRequest struct {
*tchttp.BaseRequest
// Sub-account `Uin`
TargetUin *int64 `json:"TargetUin,omitempty" name:"TargetUin"`
}
func NewDeleteUserPermissionsBoundaryRequest ¶
func NewDeleteUserPermissionsBoundaryRequest() (request *DeleteUserPermissionsBoundaryRequest)
func (*DeleteUserPermissionsBoundaryRequest) FromJsonString ¶
func (r *DeleteUserPermissionsBoundaryRequest) FromJsonString(s string) error
func (*DeleteUserPermissionsBoundaryRequest) ToJsonString ¶
func (r *DeleteUserPermissionsBoundaryRequest) ToJsonString() string
type DeleteUserPermissionsBoundaryResponse ¶
type DeleteUserPermissionsBoundaryResponse struct {
*tchttp.BaseResponse
Response *struct {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteUserPermissionsBoundaryResponse ¶
func NewDeleteUserPermissionsBoundaryResponse() (response *DeleteUserPermissionsBoundaryResponse)
func (*DeleteUserPermissionsBoundaryResponse) FromJsonString ¶
func (r *DeleteUserPermissionsBoundaryResponse) FromJsonString(s string) error
func (*DeleteUserPermissionsBoundaryResponse) ToJsonString ¶
func (r *DeleteUserPermissionsBoundaryResponse) ToJsonString() string
type DeleteUserRequest ¶
type DeleteUserRequest struct {
*tchttp.BaseRequest
// Sub-user username
Name *string `json:"Name,omitempty" name:"Name"`
// Whether to forcibly delete the sub-user. The default input parameter is `0`. `0`: do not delete the user if the user has undeleted API keys; `1`: first delete the API keys then delete the user if the user has undeleted API keys. To delete API keys, you need to have cam:DeleteApiKey permission, which enables you to delete both enabled and disabled API keys. If you do not have this permission, you will not be able to delete API keys and the user.
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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Page number, beginning from 1
Page *uint64 `json:"Page,omitempty" name:"Page"`
// Number of lines per page, no greater than 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 {
// Role details list
// Note: This field may return null, indicating that no valid value was found.
List []*RoleInfo `json:"List,omitempty" name:"List" list`
// Total number of roles
TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 DescribeSafeAuthFlagCollRequest ¶
type DescribeSafeAuthFlagCollRequest struct {
*tchttp.BaseRequest
// Sub-account
SubUin *uint64 `json:"SubUin,omitempty" name:"SubUin"`
}
func NewDescribeSafeAuthFlagCollRequest ¶
func NewDescribeSafeAuthFlagCollRequest() (request *DescribeSafeAuthFlagCollRequest)
func (*DescribeSafeAuthFlagCollRequest) FromJsonString ¶
func (r *DescribeSafeAuthFlagCollRequest) FromJsonString(s string) error
func (*DescribeSafeAuthFlagCollRequest) ToJsonString ¶
func (r *DescribeSafeAuthFlagCollRequest) ToJsonString() string
type DescribeSafeAuthFlagCollResponse ¶
type DescribeSafeAuthFlagCollResponse struct {
*tchttp.BaseResponse
Response *struct {
// Login protection settings
LoginFlag *LoginActionFlag `json:"LoginFlag,omitempty" name:"LoginFlag"`
// Sensitive operation protection settings
ActionFlag *LoginActionFlag `json:"ActionFlag,omitempty" name:"ActionFlag"`
// Suspicious login location protection settings
OffsiteFlag *OffsiteFlag `json:"OffsiteFlag,omitempty" name:"OffsiteFlag"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeSafeAuthFlagCollResponse ¶
func NewDescribeSafeAuthFlagCollResponse() (response *DescribeSafeAuthFlagCollResponse)
func (*DescribeSafeAuthFlagCollResponse) FromJsonString ¶
func (r *DescribeSafeAuthFlagCollResponse) FromJsonString(s string) error
func (*DescribeSafeAuthFlagCollResponse) ToJsonString ¶
func (r *DescribeSafeAuthFlagCollResponse) ToJsonString() string
type DescribeSafeAuthFlagRequest ¶
type DescribeSafeAuthFlagRequest struct {
*tchttp.BaseRequest
}
func NewDescribeSafeAuthFlagRequest ¶
func NewDescribeSafeAuthFlagRequest() (request *DescribeSafeAuthFlagRequest)
func (*DescribeSafeAuthFlagRequest) FromJsonString ¶
func (r *DescribeSafeAuthFlagRequest) FromJsonString(s string) error
func (*DescribeSafeAuthFlagRequest) ToJsonString ¶
func (r *DescribeSafeAuthFlagRequest) ToJsonString() string
type DescribeSafeAuthFlagResponse ¶
type DescribeSafeAuthFlagResponse struct {
*tchttp.BaseResponse
Response *struct {
// Login protection settings
LoginFlag *LoginActionFlag `json:"LoginFlag,omitempty" name:"LoginFlag"`
// Sensitive operation protection settings
ActionFlag *LoginActionFlag `json:"ActionFlag,omitempty" name:"ActionFlag"`
// Suspicious login location protection settings
OffsiteFlag *OffsiteFlag `json:"OffsiteFlag,omitempty" name:"OffsiteFlag"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeSafeAuthFlagResponse ¶
func NewDescribeSafeAuthFlagResponse() (response *DescribeSafeAuthFlagResponse)
func (*DescribeSafeAuthFlagResponse) FromJsonString ¶
func (r *DescribeSafeAuthFlagResponse) FromJsonString(s string) error
func (*DescribeSafeAuthFlagResponse) ToJsonString ¶
func (r *DescribeSafeAuthFlagResponse) ToJsonString() string
type DetachGroupPolicyRequest ¶
type DetachGroupPolicyRequest struct {
*tchttp.BaseRequest
// Policy ID
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// User Group 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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Policy ID. Either `PolicyId` or `PolicyName` must be entered
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// Role ID, used to specify a role. Input either `AttachRoleId` or `AttachRoleName`
DetachRoleId *string `json:"DetachRoleId,omitempty" name:"DetachRoleId"`
// Role name, used to specify a role. Input either `AttachRoleId` or `AttachRoleName`
DetachRoleName *string `json:"DetachRoleName,omitempty" name:"DetachRoleName"`
// Policy name. Either `PolicyId` or `PolicyName` must be entered
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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Policy ID
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// Sub-account 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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Custom multi-factor verification 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 {
// Account ID corresponding to the custom multi-factor verification Token
Uin *uint64 `json:"Uin,omitempty" name:"Uin"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// User Group 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 {
// User Group ID
GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
// User Group name
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
// Number of members in the User Group
GroupNum *uint64 `json:"GroupNum,omitempty" name:"GroupNum"`
// User Group description
Remark *string `json:"Remark,omitempty" name:"Remark"`
// Time User Group created
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// User Group member information
UserInfo []*GroupMemberInfo `json:"UserInfo,omitempty" name:"UserInfo" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Policy 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 {
// Policy name
// Note: This field may return null, indicating that no valid value was found.
PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
// Policy description
// Note: This field may return null, indicating that no valid value was found.
Description *string `json:"Description,omitempty" name:"Description"`
// 1: Custom policy; 2: Preset policy
// Note: This field may return null, indicating that no valid value was found.
Type *uint64 `json:"Type,omitempty" name:"Type"`
// Time created
// Note: This field may return null, indicating that no valid value was found.
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// Time of latest update
// Note: This field may return null, indicating that no valid value was found.
UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
// Policy document
// Note: This field may return null, indicating that no valid value was found.
PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`
// Remarks
// Note: this field may return null, indicating that no valid values can be obtained.
PresetAlias *string `json:"PresetAlias,omitempty" name:"PresetAlias"`
// Whether it is a service-linked policy
// Note: this field may return null, indicating that no valid values can be obtained.
IsServiceLinkedRolePolicy *uint64 `json:"IsServiceLinkedRolePolicy,omitempty" name:"IsServiceLinkedRolePolicy"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Policy ID
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// Policy version ID
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 {
// Policy version details
// Note: this field may return null, indicating that no valid values can be obtained.
PolicyVersion *PolicyVersionDetail `json:"PolicyVersion,omitempty" name:"PolicyVersion"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Role ID, used to specify role. Input either `RoleId` or `RoleName`
RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
// Role name, used to specify role. Input either `RoleId` or `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 {
// Role details
RoleInfo *RoleInfo `json:"RoleInfo,omitempty" name:"RoleInfo"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 identity provider name
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 identity provider name
Name *string `json:"Name,omitempty" name:"Name"`
// SAML identity provider description
Description *string `json:"Description,omitempty" name:"Description"`
// Time SAML identity provider created
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// Time SAML identity provider last modified
ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"`
// SAML identity provider metadata document
SAMLMetadata *string `json:"SAMLMetadata,omitempty" name:"SAMLMetadata"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Deletion task ID
DeletionTaskId *string `json:"DeletionTaskId,omitempty" name:"DeletionTaskId"`
}
func NewGetServiceLinkedRoleDeletionStatusRequest ¶
func NewGetServiceLinkedRoleDeletionStatusRequest() (request *GetServiceLinkedRoleDeletionStatusRequest)
func (*GetServiceLinkedRoleDeletionStatusRequest) FromJsonString ¶
func (r *GetServiceLinkedRoleDeletionStatusRequest) FromJsonString(s string) error
func (*GetServiceLinkedRoleDeletionStatusRequest) ToJsonString ¶
func (r *GetServiceLinkedRoleDeletionStatusRequest) ToJsonString() string
type GetServiceLinkedRoleDeletionStatusResponse ¶
type GetServiceLinkedRoleDeletionStatusResponse struct {
*tchttp.BaseResponse
Response *struct {
// Status: NOT_STARTED, IN_PROGRESS, SUCCEEDED, FAILED
Status *string `json:"Status,omitempty" name:"Status"`
// Reasons why the deletion failed.
Reason *string `json:"Reason,omitempty" name:"Reason"`
// Service type
// Note: this field may return null, indicating that no valid values can be obtained.
ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`
// Service name
// Note: this field may return null, indicating that no valid values can be obtained.
ServiceName *string `json:"ServiceName,omitempty" name:"ServiceName"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetServiceLinkedRoleDeletionStatusResponse ¶
func NewGetServiceLinkedRoleDeletionStatusResponse() (response *GetServiceLinkedRoleDeletionStatusResponse)
func (*GetServiceLinkedRoleDeletionStatusResponse) FromJsonString ¶
func (r *GetServiceLinkedRoleDeletionStatusResponse) FromJsonString(s string) error
func (*GetServiceLinkedRoleDeletionStatusResponse) ToJsonString ¶
func (r *GetServiceLinkedRoleDeletionStatusResponse) ToJsonString() string
type GetUserRequest ¶
type GetUserRequest struct {
*tchttp.BaseRequest
// Sub-user username
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 {
// Sub-user UIN
Uin *uint64 `json:"Uin,omitempty" name:"Uin"`
// Sub-user username
Name *string `json:"Name,omitempty" name:"Name"`
// Sub-user UID
Uid *uint64 `json:"Uid,omitempty" name:"Uid"`
// Sub-user remarks
Remark *string `json:"Remark,omitempty" name:"Remark"`
// If sub-user can log in to the Console
ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`
// Mobile number
PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`
// Country/Area code
CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`
// Email
Email *string `json:"Email,omitempty" name:"Email"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 GroupInfo ¶
type GroupInfo struct {
// User group ID
GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
// User Group name
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
// Time User Group created
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// User Group description
Remark *string `json:"Remark,omitempty" name:"Remark"`
}
type GroupMemberInfo ¶
type GroupMemberInfo struct {
// Sub-user UID
Uid *uint64 `json:"Uid,omitempty" name:"Uid"`
// Sub-user UIN
Uin *uint64 `json:"Uin,omitempty" name:"Uin"`
// Sub-user name
Name *string `json:"Name,omitempty" name:"Name"`
// Mobile number
PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`
// Mobile number country/area code
CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`
// If mobile number has been verified
PhoneFlag *uint64 `json:"PhoneFlag,omitempty" name:"PhoneFlag"`
// Email address
Email *string `json:"Email,omitempty" name:"Email"`
// If email has been verified
EmailFlag *uint64 `json:"EmailFlag,omitempty" name:"EmailFlag"`
// User type
UserType *uint64 `json:"UserType,omitempty" name:"UserType"`
// Time policy created
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// If the user is the main message recipient
IsReceiverOwner *uint64 `json:"IsReceiverOwner,omitempty" name:"IsReceiverOwner"`
}
type ListAccessKeysRequest ¶
type ListAccessKeysRequest struct {
*tchttp.BaseRequest
// `UIN` of the specified user. If this parameter is left empty, access keys of the current user will be listed by default
TargetUin *uint64 `json:"TargetUin,omitempty" name:"TargetUin"`
}
func NewListAccessKeysRequest ¶
func NewListAccessKeysRequest() (request *ListAccessKeysRequest)
func (*ListAccessKeysRequest) FromJsonString ¶
func (r *ListAccessKeysRequest) FromJsonString(s string) error
func (*ListAccessKeysRequest) ToJsonString ¶
func (r *ListAccessKeysRequest) ToJsonString() string
type ListAccessKeysResponse ¶
type ListAccessKeysResponse struct {
*tchttp.BaseResponse
Response *struct {
// Access key list
// Note: this field may return null, indicating that no valid values can be obtained.
AccessKeys []*AccessKey `json:"AccessKeys,omitempty" name:"AccessKeys" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListAccessKeysResponse ¶
func NewListAccessKeysResponse() (response *ListAccessKeysResponse)
func (*ListAccessKeysResponse) FromJsonString ¶
func (r *ListAccessKeysResponse) FromJsonString(s string) error
func (*ListAccessKeysResponse) ToJsonString ¶
func (r *ListAccessKeysResponse) ToJsonString() string
type ListAttachedGroupPoliciesRequest ¶
type ListAttachedGroupPoliciesRequest struct {
*tchttp.BaseRequest
// User group ID
TargetGroupId *uint64 `json:"TargetGroupId,omitempty" name:"TargetGroupId"`
// Page number, which starts from 1. Default is 1
Page *uint64 `json:"Page,omitempty" name:"Page"`
// Number of entries per page; 20 by default
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 {
// Total number of policies
TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
// Policy list
List []*AttachPolicyInfo `json:"List,omitempty" name:"List" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Page number, beginning from 1
Page *uint64 `json:"Page,omitempty" name:"Page"`
// Number of lines per page, no more than 200
Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
// Role ID, used to specify a role. Input either `RoleId` or `RoleName`
RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
// Role name, used to specify a role. Input either `RoleId` or `RoleName`
RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
// Filter according to policy type. `User` indicates querying custom policies only. `QCS` indicates querying preset policies only
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 of policies associated with the role
List []*AttachedPolicyOfRole `json:"List,omitempty" name:"List" list`
// Total number of policies associated with the role
TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Sub-account UIN
TargetUin *uint64 `json:"TargetUin,omitempty" name:"TargetUin"`
// Page number, which starts from 1. Default is 1
Page *uint64 `json:"Page,omitempty" name:"Page"`
// Number of entries per page; 20 by default
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 {
// Total number of policies
TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
// Policy list
List []*AttachPolicyInfo `json:"List,omitempty" name:"List" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Number of entries per page. Default value: 20
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// Pagination start value. Default value: 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 {
// Total number
TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
// Collaborator information
Data []*SubAccountInfo `json:"Data,omitempty" name:"Data" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Policy ID
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// Page number, which starts from 1. Default is 1
Page *uint64 `json:"Page,omitempty" name:"Page"`
// Number of entries per page; 20 by default
Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
// Valid values: `All`, `User`, `Group`, and `Role`. `All` means all entity types will be returned; `User` means only sub-accounts will be returned; `Group` means only User Groups will be returned; `Role` means only roles will be returned. `All` is the default value.
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 {
// Number of entities
// Note: This field may return null, indicating that no valid value was found.
TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
// Entity list
// Note: This field may return null, indicating that no valid value was found.
List []*AttachEntityOfPolicy `json:"List,omitempty" name:"List" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Sub-user UID
Uid *uint64 `json:"Uid,omitempty" name:"Uid"`
// Number of entries per page; default is 20
Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
// Page number; default is 1
Page *uint64 `json:"Page,omitempty" name:"Page"`
// Sub-account 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 {
// Total number of User Groups to which the sub-user has been added
TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
// User Group information
GroupInfo []*GroupInfo `json:"GroupInfo,omitempty" name:"GroupInfo" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Page number; default is 1
Page *uint64 `json:"Page,omitempty" name:"Page"`
// Number of entries per page; default is 20
Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
// Filter by User Group name
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 {
// Total number of User Groups
TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
// User group information array
GroupInfo []*GroupInfo `json:"GroupInfo,omitempty" name:"GroupInfo" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Number of entries per page: must be greater than 0 and no greater than 200. Default is 20
Rp *uint64 `json:"Rp,omitempty" name:"Rp"`
// Page number. Starts from 1 and cannot be greater than 200. Default is 1
Page *uint64 `json:"Page,omitempty" name:"Page"`
// Valid values: `All`, `QCS`, and `Local`. `All` means all policies will be returned; `QCS` means only preset policies will be returned; `Local` means only custom policies will be returned. `All` is the default value
Scope *string `json:"Scope,omitempty" name:"Scope"`
// Filter by policy name
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 {
// Total number of policies
TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
// Policy array. Each array contains fields including `policyId`, `policyName`, `addTime`, `type`, `description`, and `createMode`.
// policyId: policy ID
// policyName: policy name
// addTime: policy creation time
// type: 1: custom policy, 2: preset policy
// description: policy description
// createMode: 1 indicates a policy created based on business permissions, while other values indicate that the policy syntax can be viewed and the policy can be updated using the policy syntax
// Attachments: number of associated users
// ServiceType: the product the policy is associated with
// IsAttached: this value should not be null when querying if a marked entity has been associated with a policy. 0 indicates that no policy has been associated, and 1 indicates that a policy has been associated
List []*StrategyInfo `json:"List,omitempty" name:"List" list`
// Reserved field
// Note: This field may return null, indicating that no valid value was found.
ServiceTypeList []*string `json:"ServiceTypeList,omitempty" name:"ServiceTypeList" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Policy 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 {
// Policy version list
// Note: this field may return null, indicating that no valid values can be obtained.
Versions []*PolicyVersionItem `json:"Versions,omitempty" name:"Versions" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 {
// Total number of SAML identity providers
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// List of SAML identity providers
SAMLProviderSet []*SAMLProviderInfo `json:"SAMLProviderSet,omitempty" name:"SAMLProviderSet" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// User group ID
GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
// Page number; default is 1
Page *uint64 `json:"Page,omitempty" name:"Page"`
// Number of entries per page; default is 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 {
// Total number of users associated with the User Group
TotalNum *uint64 `json:"TotalNum,omitempty" name:"TotalNum"`
// Sub-user information
UserInfo []*GroupMemberInfo `json:"UserInfo,omitempty" name:"UserInfo" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 {
// Sub-user information
Data []*SubAccountInfo `json:"Data,omitempty" name:"Data" list`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 LoginActionFlag ¶
type LoginActionFlag struct {
// Phone
Phone *uint64 `json:"Phone,omitempty" name:"Phone"`
// Hard token
Token *uint64 `json:"Token,omitempty" name:"Token"`
// Soft token
Stoken *uint64 `json:"Stoken,omitempty" name:"Stoken"`
// WeChat
Wechat *uint64 `json:"Wechat,omitempty" name:"Wechat"`
// Custom
Custom *uint64 `json:"Custom,omitempty" name:"Custom"`
}
type LoginActionMfaFlag ¶
type OffsiteFlag ¶
type OffsiteFlag struct {
// Verification flag
VerifyFlag *uint64 `json:"VerifyFlag,omitempty" name:"VerifyFlag"`
// Phone notification
NotifyPhone *uint64 `json:"NotifyPhone,omitempty" name:"NotifyPhone"`
// Email notification
NotifyEmail *int64 `json:"NotifyEmail,omitempty" name:"NotifyEmail"`
// WeChat notification
NotifyWechat *uint64 `json:"NotifyWechat,omitempty" name:"NotifyWechat"`
// Alert
Tips *uint64 `json:"Tips,omitempty" name:"Tips"`
}
type PolicyVersionDetail ¶
type PolicyVersionDetail struct {
// Policy version ID
// Note: this field may return null, indicating that no valid values can be obtained.
VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"`
// Policy version creation time
// Note: this field may return null, indicating that no valid values can be obtained.
CreateDate *string `json:"CreateDate,omitempty" name:"CreateDate"`
// Whether it is the operative version. 0: no, 1: yes
// Note: this field may return null, indicating that no valid values can be obtained.
IsDefaultVersion *uint64 `json:"IsDefaultVersion,omitempty" name:"IsDefaultVersion"`
// Policy syntax text
// Note: this field may return null, indicating that no valid values can be obtained.
Document *string `json:"Document,omitempty" name:"Document"`
}
type PolicyVersionItem ¶
type PolicyVersionItem struct {
// Policy version ID
// Note: this field may return null, indicating that no valid values can be obtained.
VersionId *uint64 `json:"VersionId,omitempty" name:"VersionId"`
// Policy version creation time
// Note: this field may return null, indicating that no valid values can be obtained.
CreateDate *string `json:"CreateDate,omitempty" name:"CreateDate"`
// Whether it is the operative version. 0: no, 1: yes
// Note: this field may return null, indicating that no valid values can be obtained.
IsDefaultVersion *int64 `json:"IsDefaultVersion,omitempty" name:"IsDefaultVersion"`
}
type PutRolePermissionsBoundaryRequest ¶
type PutRolePermissionsBoundaryRequest struct {
*tchttp.BaseRequest
// Policy ID
PolicyId *int64 `json:"PolicyId,omitempty" name:"PolicyId"`
// Role ID (either it or the role name must be entered)
RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
// Role name (either it or the role ID must be entered)
RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
}
func NewPutRolePermissionsBoundaryRequest ¶
func NewPutRolePermissionsBoundaryRequest() (request *PutRolePermissionsBoundaryRequest)
func (*PutRolePermissionsBoundaryRequest) FromJsonString ¶
func (r *PutRolePermissionsBoundaryRequest) FromJsonString(s string) error
func (*PutRolePermissionsBoundaryRequest) ToJsonString ¶
func (r *PutRolePermissionsBoundaryRequest) ToJsonString() string
type PutRolePermissionsBoundaryResponse ¶
type PutRolePermissionsBoundaryResponse struct {
*tchttp.BaseResponse
Response *struct {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewPutRolePermissionsBoundaryResponse ¶
func NewPutRolePermissionsBoundaryResponse() (response *PutRolePermissionsBoundaryResponse)
func (*PutRolePermissionsBoundaryResponse) FromJsonString ¶
func (r *PutRolePermissionsBoundaryResponse) FromJsonString(s string) error
func (*PutRolePermissionsBoundaryResponse) ToJsonString ¶
func (r *PutRolePermissionsBoundaryResponse) ToJsonString() string
type PutUserPermissionsBoundaryRequest ¶
type PutUserPermissionsBoundaryRequest struct {
*tchttp.BaseRequest
// Sub-account `Uin`
TargetUin *int64 `json:"TargetUin,omitempty" name:"TargetUin"`
// Policy ID
PolicyId *int64 `json:"PolicyId,omitempty" name:"PolicyId"`
}
func NewPutUserPermissionsBoundaryRequest ¶
func NewPutUserPermissionsBoundaryRequest() (request *PutUserPermissionsBoundaryRequest)
func (*PutUserPermissionsBoundaryRequest) FromJsonString ¶
func (r *PutUserPermissionsBoundaryRequest) FromJsonString(s string) error
func (*PutUserPermissionsBoundaryRequest) ToJsonString ¶
func (r *PutUserPermissionsBoundaryRequest) ToJsonString() string
type PutUserPermissionsBoundaryResponse ¶
type PutUserPermissionsBoundaryResponse struct {
*tchttp.BaseResponse
Response *struct {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewPutUserPermissionsBoundaryResponse ¶
func NewPutUserPermissionsBoundaryResponse() (response *PutUserPermissionsBoundaryResponse)
func (*PutUserPermissionsBoundaryResponse) FromJsonString ¶
func (r *PutUserPermissionsBoundaryResponse) FromJsonString(s string) error
func (*PutUserPermissionsBoundaryResponse) ToJsonString ¶
func (r *PutUserPermissionsBoundaryResponse) ToJsonString() string
type RemoveUserFromGroupRequest ¶
type RemoveUserFromGroupRequest struct {
*tchttp.BaseRequest
// The UID of the user to be deleted and an array corresponding to the User Group IDs
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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 {
// Role ID
RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
// Role name
RoleName *string `json:"RoleName,omitempty" name:"RoleName"`
// Role policy document
PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`
// Role description
Description *string `json:"Description,omitempty" name:"Description"`
// Time role created
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// Time role last updated
UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"`
// If login is allowed for the role
ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`
// User role. Valid values: `user`, `system`, `service_linked`
// Note: this field may return null, indicating that no valid values can be obtained.
RoleType *string `json:"RoleType,omitempty" name:"RoleType"`
// Valid period
// Note: this field may return null, indicating that no valid values can be obtained.
SessionDuration *uint64 `json:"SessionDuration,omitempty" name:"SessionDuration"`
// Task identifier for deleting a service-linked role
// Note: this field may return null, indicating that no valid values can be obtained.
DeletionTaskId *string `json:"DeletionTaskId,omitempty" name:"DeletionTaskId"`
}
type SAMLProviderInfo ¶
type SAMLProviderInfo struct {
// SAML identity provider name
Name *string `json:"Name,omitempty" name:"Name"`
// SAML identity provider description
Description *string `json:"Description,omitempty" name:"Description"`
// Time SAML identity provider created
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
// Time SAML identity provider last modified
ModifyTime *string `json:"ModifyTime,omitempty" name:"ModifyTime"`
}
type SetDefaultPolicyVersionRequest ¶
type SetDefaultPolicyVersionRequest struct {
*tchttp.BaseRequest
// Policy ID
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// Policy version ID
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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Sets user UIN
OpUin *uint64 `json:"OpUin,omitempty" name:"OpUin"`
// Sets login protection
LoginFlag *LoginActionMfaFlag `json:"LoginFlag,omitempty" name:"LoginFlag"`
// Sets operation protection
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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 {
// Policy ID
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// Policy name
PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
// Time policy created
// Note: This field may return null, indicating that no valid value was found.
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// Policy type. 1: Custom policy; 2: Preset policy
Type *uint64 `json:"Type,omitempty" name:"Type"`
// Policy description
// Note: This field may return null, indicating that no valid value was found.
Description *string `json:"Description,omitempty" name:"Description"`
// How the policy was created: 1: Via console; 2: Via syntax
CreateMode *uint64 `json:"CreateMode,omitempty" name:"CreateMode"`
// Number of associated users
Attachments *uint64 `json:"Attachments,omitempty" name:"Attachments"`
// Product associated with the policy
// Note: This field may return null, indicating that no valid value was found.
ServiceType *string `json:"ServiceType,omitempty" name:"ServiceType"`
// This value should not be null when querying whether a marked entity has been associated with a policy. 0 indicates that no policy has been associated, while 1 indicates that a policy has been associated
IsAttached *uint64 `json:"IsAttached,omitempty" name:"IsAttached"`
// Queries if the policy has been deactivated
// Note: this field may return null, indicating that no valid values can be obtained.
Deactived *uint64 `json:"Deactived,omitempty" name:"Deactived"`
// List of deprecated products
// Note: this field may return null, indicating that no valid values can be obtained.
DeactivedDetail []*string `json:"DeactivedDetail,omitempty" name:"DeactivedDetail" list`
// The deletion task identifier used to check the deletion status of the service-linked role
// Note: this field may return null, indicating that no valid values can be obtained.
IsServiceLinkedPolicy *uint64 `json:"IsServiceLinkedPolicy,omitempty" name:"IsServiceLinkedPolicy"`
}
type SubAccountInfo ¶
type SubAccountInfo struct {
// Sub-user user ID
Uin *uint64 `json:"Uin,omitempty" name:"Uin"`
// Sub-user username
Name *string `json:"Name,omitempty" name:"Name"`
// Sub-user UID
Uid *uint64 `json:"Uid,omitempty" name:"Uid"`
// Sub-user remarks
Remark *string `json:"Remark,omitempty" name:"Remark"`
// If sub-user can log in to the console
ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`
// Mobile number
PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`
// Country/Area code
CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`
// Email
Email *string `json:"Email,omitempty" name:"Email"`
// Creation time
// Note: this field may return `null`, indicating that no valid values can be obtained.
CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"`
}
type UpdateAssumeRolePolicyRequest ¶
type UpdateAssumeRolePolicyRequest struct {
*tchttp.BaseRequest
// Policy document
PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`
// Role ID, used to specify a role. Input either `RoleId` or `RoleName`
RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
// Role name, used to specify a role. Input either `RoleId` or `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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// User Group ID
GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`
// User Group name
GroupName *string `json:"GroupName,omitempty" name:"GroupName"`
// User Group description
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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Policy ID. Either `PolicyId` or `PolicyName` must be entered
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// Policy name. Either `PolicyName` or `PolicyId` must be entered
PolicyName *string `json:"PolicyName,omitempty" name:"PolicyName"`
// Policy description
Description *string `json:"Description,omitempty" name:"Description"`
// Policy documentation, for example: `{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]}`, where `principal` is used to specify the service that is authorized to use the role. For more information about this parameter, see **RoleInfo** under **Output Parameters** in the [GetRole](https://intl.cloud.tencent.com/document/product/598/36221?from_cn_redirect=1).
PolicyDocument *string `json:"PolicyDocument,omitempty" name:"PolicyDocument"`
// Preset policy remark
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 {
// Policy ID, which will be returned only if the input parameter is `PolicyName`
// Note: this field may return null, indicating that no valid values can be obtained.
PolicyId *uint64 `json:"PolicyId,omitempty" name:"PolicyId"`
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Whether login is allowed. 1: yes, 0: no
ConsoleLogin *int64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`
// Role ID
RoleId *int64 `json:"RoleId,omitempty" name:"RoleId"`
// Role name
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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Role description
Description *string `json:"Description,omitempty" name:"Description"`
// Role ID, used to specify a role. Input either `RoleId` or `RoleName`
RoleId *string `json:"RoleId,omitempty" name:"RoleId"`
// Role name, used to specify a role. Input either `RoleId` or `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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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 identity provider name
Name *string `json:"Name,omitempty" name:"Name"`
// SAML identity provider description
Description *string `json:"Description,omitempty" name:"Description"`
// SAML identity provider metadata document (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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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
// Sub-user username
Name *string `json:"Name,omitempty" name:"Name"`
// Sub-user remarks
Remark *string `json:"Remark,omitempty" name:"Remark"`
// Whether or not the sub-user is allowed to log in to the console. 0: No; 1: Yes.
ConsoleLogin *uint64 `json:"ConsoleLogin,omitempty" name:"ConsoleLogin"`
// Sub-user's console login password. If no password rules have been set, the password must have a minimum of 8 characters containing uppercase letters, lowercase letters, digits, and special characters by default. This parameter will be valid only when the sub-user is allowed to log in to the console. If it is not specified and console login is allowed, the system will automatically generate a random 32-character password that contains uppercase letters, lowercase letters, digits, and special characters.
Password *string `json:"Password,omitempty" name:"Password"`
// If the sub-user needs to reset their password when they next log in to the console. 0: No; 1: Yes.
NeedResetPassword *uint64 `json:"NeedResetPassword,omitempty" name:"NeedResetPassword"`
// Mobile number
PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"`
// Country/Area Code
CountryCode *string `json:"CountryCode,omitempty" name:"CountryCode"`
// Email
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 {
// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
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