iam

package
v0.9.200 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package iam defines the IAM service of BCE. It contains the model sub package to implement the concrete request and response of the IAM user/accessKey/policy API

Index

Constants

View Source
const (
	DEFAULT_SERVICE_DOMAIN = "iam." + bce.DEFAULT_REGION + ".baidubce.com"
)

Variables

This section is empty.

Functions

func NewBodyFromStruct

func NewBodyFromStruct(args interface{}) (*bce.Body, error)

Types

type Client

type Client struct {
	*bce.BceClient
}

Client of IAM service is a kind of BceClient, so derived from BceClient

func NewClient

func NewClient(ak, sk string) (*Client, error)

func NewClientWithEndpoint

func NewClientWithEndpoint(ak, sk, endpoint string) (*Client, error)

func (*Client) AddUserToGroup

func (c *Client) AddUserToGroup(userName string, groupName string) error

func (*Client) AttachPolicyToGroup

func (c *Client) AttachPolicyToGroup(args *api.AttachPolicyToGroupArgs) error

func (*Client) AttachPolicyToRole added in v0.9.137

func (c *Client) AttachPolicyToRole(args *api.AttachPolicyToRoleArgs) error

func (*Client) AttachPolicyToUser

func (c *Client) AttachPolicyToUser(args *api.AttachPolicyToUserArgs) error

func (*Client) CreateAccessKey added in v0.9.137

func (c *Client) CreateAccessKey(userName string) (*api.CreateAccessKeyResult, error)

func (*Client) CreateGroup

func (c *Client) CreateGroup(args *api.CreateGroupArgs) (*api.CreateGroupResult, error)

func (*Client) CreatePolicy

func (c *Client) CreatePolicy(args *api.CreatePolicyArgs) (*api.CreatePolicyResult, error)

func (*Client) CreateRole added in v0.9.137

func (c *Client) CreateRole(args *api.CreateRoleArgs) (*api.CreateRoleResult, error)

func (*Client) CreateUser

func (c *Client) CreateUser(args *api.CreateUserArgs) (*api.CreateUserResult, error)

func (*Client) DeleteAccessKey added in v0.9.137

func (c *Client) DeleteAccessKey(userName, accessKeyId string) error

func (*Client) DeleteGroup

func (c *Client) DeleteGroup(name string) error

func (*Client) DeletePolicy

func (c *Client) DeletePolicy(name string) error

func (*Client) DeleteRole added in v0.9.137

func (c *Client) DeleteRole(roleName string) error

func (*Client) DeleteSubUserIdp added in v0.9.192

func (c *Client) DeleteSubUserIdp() error

func (*Client) DeleteUser

func (c *Client) DeleteUser(name string) error

func (*Client) DeleteUserFromGroup

func (c *Client) DeleteUserFromGroup(userName string, groupName string) error

func (*Client) DeleteUserLoginProfile

func (c *Client) DeleteUserLoginProfile(name string) error

func (*Client) DetachPolicyFromGroup

func (c *Client) DetachPolicyFromGroup(args *api.DetachPolicyFromGroupArgs) error

func (*Client) DetachPolicyFromRole added in v0.9.137

func (c *Client) DetachPolicyFromRole(args *api.DetachPolicyToRoleArgs) error

func (*Client) DetachPolicyFromUser

func (c *Client) DetachPolicyFromUser(args *api.DetachPolicyFromUserArgs) error

func (*Client) DisableAccessKey added in v0.9.137

func (c *Client) DisableAccessKey(userName, accessKeyId string) (*api.UpdateAccessKeyResult, error)

func (*Client) EnableAccessKey added in v0.9.137

func (c *Client) EnableAccessKey(userName, accessKeyId string) (*api.UpdateAccessKeyResult, error)

func (*Client) GetGroup

func (c *Client) GetGroup(name string) (*api.GetGroupResult, error)

func (*Client) GetPolicy

func (c *Client) GetPolicy(name, policyType string) (*api.GetPolicyResult, error)

func (*Client) GetRole added in v0.9.137

func (c *Client) GetRole(roleName string) (*api.GetRoleResult, error)

func (*Client) GetSubUserIdpConfig added in v0.9.192

func (c *Client) GetSubUserIdpConfig() (*api.IdpWithStatus, error)

func (*Client) GetUser

func (c *Client) GetUser(name string) (*api.GetUserResult, error)

func (*Client) GetUserLoginProfile

func (c *Client) GetUserLoginProfile(name string) (*api.GetUserLoginProfileResult, error)

func (*Client) ListAccessKey added in v0.9.137

func (c *Client) ListAccessKey(userName string) (*api.ListAccessKeyResult, error)

func (*Client) ListGroup

func (c *Client) ListGroup() (*api.ListGroupResult, error)

func (*Client) ListGroupAttachedPolicies

func (c *Client) ListGroupAttachedPolicies(name string) (*api.ListPolicyResult, error)

func (*Client) ListGroupsForUser

func (c *Client) ListGroupsForUser(name string) (*api.ListGroupsForUserResult, error)

func (*Client) ListPolicy

func (c *Client) ListPolicy(nameFilter, policyType string) (*api.ListPolicyResult, error)

func (*Client) ListPolicyAttachedEntities added in v0.9.175

func (c *Client) ListPolicyAttachedEntities(policyId string) (*api.ListPolicyAttachedEntityResult, error)

func (*Client) ListRole added in v0.9.137

func (c *Client) ListRole() (*api.ListRoleResult, error)

func (*Client) ListRoleAttachedPolicies added in v0.9.137

func (c *Client) ListRoleAttachedPolicies(name string) (*api.ListPolicyResult, error)

func (*Client) ListUser

func (c *Client) ListUser() (*api.ListUserResult, error)

func (*Client) ListUserAttachedPolicies

func (c *Client) ListUserAttachedPolicies(name string) (*api.ListPolicyResult, error)

func (*Client) ListUsersInGroup

func (c *Client) ListUsersInGroup(name string) (*api.ListUsersInGroupResult, error)

func (*Client) SubUserUpdate added in v0.9.144

func (c *Client) SubUserUpdate(userName string, args *api.UpdateSubUserArgs) (*api.UpdateUserResult, error)

func (*Client) UpdateGroup

func (c *Client) UpdateGroup(name string, args *api.UpdateGroupArgs) (*api.UpdateGroupResult, error)

func (*Client) UpdatePolicy added in v0.9.197

func (c *Client) UpdatePolicy(args *api.UpdatePolicyArgs) (*api.UpdatePolicyResult, error)

func (*Client) UpdateRole added in v0.9.137

func (c *Client) UpdateRole(roleName string, args *api.UpdateRoleArgs) (*api.UpdateRoleResult, error)

func (*Client) UpdateSubUserIdp added in v0.9.192

func (c *Client) UpdateSubUserIdp(request *api.UpdateSubUserIdpRequest) (*api.IdpWithStatus, error)

func (*Client) UpdateSubUserIdpStatus added in v0.9.192

func (c *Client) UpdateSubUserIdpStatus(status string) (*api.IdpWithStatus, error)

func (*Client) UpdateUser

func (c *Client) UpdateUser(name string, args *api.UpdateUserArgs) (*api.UpdateUserResult, error)

func (*Client) UpdateUserLoginProfile

func (c *Client) UpdateUserLoginProfile(name string, args *api.UpdateUserLoginProfileArgs) (
	*api.UpdateUserLoginProfileResult, error)

func (*Client) UserOperationMfaSwitch added in v0.9.144

func (c *Client) UserOperationMfaSwitch(args *api.UserSwitchMfaArgs) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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