ctiam

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EndpointNameCtiam = "ctiam"
	UrlProdCtiam      = "ctiam-global.ctapi.ctyun.cn"
	UrlTestCtiam      = "ctiam-global.ctapi-test.ctyun.cn:21443"
)

Variables

View Source
var EndpointCtiamProd = ctyunsdk.Endpoint{
	EndpointName: EndpointNameCtiam,
	Url:          UrlProdCtiam,
}
View Source
var EndpointCtiamTest = ctyunsdk.Endpoint{
	EndpointName: EndpointNameCtiam,
	Url:          UrlTestCtiam,
}

Functions

This section is empty.

Types

type Apis

type Apis struct {
	ServiceListApi                        *ServiceListApi
	AuthorityListApi                      *AuthorityListApi
	PolicyCreateApi                       *PolicyCreateApi
	PolicyUpdateApi                       *PolicyUpdateApi
	PolicyDeleteApi                       *PolicyDeleteApi
	PolicyGetApi                          *PolicyGetApi
	PolicyAttachUserGroupApi              *PolicyAttachUserGroupApi
	PolicyAttachUserApi                   *PolicyAttachUserApi
	PolicyInvalidUserGroupApi             *PolicyInvalidUserGroupApi
	UserCreateApi                         *UserCreateApi
	UserGetApi                            *UserGetApi
	UserUpdateApi                         *UserUpdateApi
	UserInvalidApi                        *UserInvalidApi
	UserResetPasswordApi                  *UserResetPasswordApi
	UserGroupCreateApi                    *UserGroupCreateApi
	UserGroupUpdateApi                    *UserGroupUpdateApi
	UserGroupInvalidApi                   *UserGroupInvalidApi
	UserGroupGetApi                       *UserGroupGetApi
	UserAssociationGroupApi               *UserAssociationGroupApi
	UserAttachUserGroupApi                *UserAttachUserGroupApi
	UserRemoveUserGroupApi                *UserRemoveUserGroupApi
	UserGroupQueryApi                     *UserGroupQueryApi
	IdpCreateApi                          *IdpCreateApi
	IdpDeleteApi                          *IdpDeleteApi
	IdpUpdateApi                          *IdpUpdateApi
	IdpListApi                            *IdpListApi
	PrivilegeGetApi                       *PrivilegeGetApi
	EnterpriseProjectAssignmentToGroupApi *EnterpriseProjectAssignmentToGroupApi
	EnterpriseProjectCreateApi            *EnterpriseProjectCreateApi
	EnterpriseProjectUpdateApi            *EnterpriseProjectUpdateApi
	EnterpriseProjectGetApi               *EnterpriseProjectGetApi
	EnterpriseProjectStatusUpdateApi      *EnterpriseProjectStatusUpdateApi
	EnterpriseProjectSetGroupPolicyApi    *EnterpriseProjectSetGroupPolicyApi
	EnterpriseProjectGetPolicyApi         *EnterpriseProjectGetPolicyApi
	EnterpriseProjectRemoveGroupApi       *EnterpriseProjectRemoveGroupApi
}

Apis api的接口

func NewApis

func NewApis(client *ctyunsdk.CtyunClient) *Apis

NewApis 构建

type AuthorityListApi

type AuthorityListApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

AuthorityListApi 根据云服务ID查询云服务权限点 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=13943&data=114

func NewAuthorityListApi

func NewAuthorityListApi(client *ctyunsdk.CtyunClient) *AuthorityListApi

func (*AuthorityListApi) Do

func (this *AuthorityListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *AuthorityListRequest) (*AuthorityListResponse, ctyunsdk.CtyunRequestError)

type AuthorityListAuthorityListResponse

type AuthorityListAuthorityListResponse struct {
	ServiceId      int
	Name           string
	Code           string
	Description    string
	CtrntemplateId string
}

type AuthorityListRequest

type AuthorityListRequest struct {
	ServiceId int
}

type AuthorityListResponse

type AuthorityListResponse struct {
	AuthorityList []AuthorityListAuthorityListResponse
}

type EnterpriseProjectAssignmentToGroupApi

type EnterpriseProjectAssignmentToGroupApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EnterpriseProjectAssignmentToGroupApi 用户组与企业项目关联

func NewEpAssignmentToGroupApi

func NewEpAssignmentToGroupApi(client *ctyunsdk.CtyunClient) *EnterpriseProjectAssignmentToGroupApi

func (*EnterpriseProjectAssignmentToGroupApi) Do

func (this *EnterpriseProjectAssignmentToGroupApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EnterpriseProjectAssignmentToGroupRequest) (*EnterpriseProjectAssignmentToGroupResponse, ctyunsdk.CtyunRequestError)

type EnterpriseProjectAssignmentToGroupRequest

type EnterpriseProjectAssignmentToGroupRequest struct {
	ProjectId string
	GroupIds  []string
}

type EnterpriseProjectAssignmentToGroupResponse

type EnterpriseProjectAssignmentToGroupResponse struct {
}

type EnterpriseProjectCreateApi

type EnterpriseProjectCreateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EnterpriseProjectCreateApi 创建企业项目 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9423&data=114

func NewEnterpriseProjectCreateApi

func NewEnterpriseProjectCreateApi(client *ctyunsdk.CtyunClient) *EnterpriseProjectCreateApi

func (*EnterpriseProjectCreateApi) Do

func (this *EnterpriseProjectCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EnterpriseProjectCreateRequest) (*EnterpriseProjectCreateResponse, ctyunsdk.CtyunRequestError)

type EnterpriseProjectCreateRequest

type EnterpriseProjectCreateRequest struct {
	ProjectName string
	Description string
}

type EnterpriseProjectCreateResponse

type EnterpriseProjectCreateResponse struct {
	ProjectId string
}

type EnterpriseProjectGetApi

type EnterpriseProjectGetApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EnterpriseProjectGetApi 查询企业项目 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9425&data=114

func NewEnterpriseProjectGetApi

func NewEnterpriseProjectGetApi(client *ctyunsdk.CtyunClient) *EnterpriseProjectGetApi

func (*EnterpriseProjectGetApi) Do

func (this *EnterpriseProjectGetApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EnterpriseProjectGetRequest) (*EnterpriseProjectGetResponse, ctyunsdk.CtyunRequestError)

type EnterpriseProjectGetPolicyApi

type EnterpriseProjectGetPolicyApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EnterpriseProjectGetPolicyApi 查询企业项目用户组策略 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9429&data=114

func NewEnterpriseProjectGetPolicyApi

func NewEnterpriseProjectGetPolicyApi(client *ctyunsdk.CtyunClient) *EnterpriseProjectGetPolicyApi

func (*EnterpriseProjectGetPolicyApi) Do

func (this *EnterpriseProjectGetPolicyApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EnterpriseProjectGetPolicyRequest) (*EnterpriseProjectGetPolicyResponse, ctyunsdk.CtyunRequestError)

type EnterpriseProjectGetPolicyListPloyContentResponse

type EnterpriseProjectGetPolicyListPloyContentResponse struct {
	Version   string
	Statement []EnterpriseProjectGetPolicyListPloyContentStatementResponse
}

type EnterpriseProjectGetPolicyListPloyContentStatementResponse

type EnterpriseProjectGetPolicyListPloyContentStatementResponse struct {
	Action []string
	Effect string
}

type EnterpriseProjectGetPolicyListResponse

type EnterpriseProjectGetPolicyListResponse struct {
	Id          string
	PloyName    string
	PloyType    int
	PloyRange   int
	Status      int
	ProductName string
	CreateTime  int64
	PloyContent EnterpriseProjectGetPolicyListPloyContentResponse
}

type EnterpriseProjectGetPolicyRequest

type EnterpriseProjectGetPolicyRequest struct {
	GroupId   string
	ProjectId string
}

type EnterpriseProjectGetPolicyResponse

type EnterpriseProjectGetPolicyResponse struct {
	List []EnterpriseProjectGetPolicyListResponse
}

type EnterpriseProjectGetRequest

type EnterpriseProjectGetRequest struct {
	Id string
}

type EnterpriseProjectGetResponse

type EnterpriseProjectGetResponse struct {
	Id          string
	ProjectName string
	Status      int
	HwProjectId string
	Description string
	CreateTime  int64
}

type EnterpriseProjectRemoveGroupApi

type EnterpriseProjectRemoveGroupApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EnterpriseProjectRemoveGroupApi 移除企业项目关联用户组 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9430&data=114

func NewEnterpriseProjectRemoveGroupApi

func NewEnterpriseProjectRemoveGroupApi(client *ctyunsdk.CtyunClient) *EnterpriseProjectRemoveGroupApi

func (*EnterpriseProjectRemoveGroupApi) Do

func (this *EnterpriseProjectRemoveGroupApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EnterpriseProjectRemoveGroupRequest) (*EnterpriseProjectRemoveGroupResponse, ctyunsdk.CtyunRequestError)

type EnterpriseProjectRemoveGroupRequest

type EnterpriseProjectRemoveGroupRequest struct {
	ProjectId string
	GroupIds  []string
}

type EnterpriseProjectRemoveGroupResponse

type EnterpriseProjectRemoveGroupResponse struct {
}

type EnterpriseProjectSetGroupPolicyApi

type EnterpriseProjectSetGroupPolicyApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EnterpriseProjectSetGroupPolicyApi 设置企业项目所属用户组及策略 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9431&data=114

func NewEnterpriseProjectSetGroupPolicyApi

func NewEnterpriseProjectSetGroupPolicyApi(client *ctyunsdk.CtyunClient) *EnterpriseProjectSetGroupPolicyApi

func (*EnterpriseProjectSetGroupPolicyApi) Do

func (this *EnterpriseProjectSetGroupPolicyApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EnterpriseProjectSetGroupPolicyRequest) (*EnterpriseProjectSetGroupPolicyResponse, ctyunsdk.CtyunRequestError)

type EnterpriseProjectSetGroupPolicyRequest

type EnterpriseProjectSetGroupPolicyRequest struct {
	GroupId   string
	ProjectId string
	PloyIds   []string
}

type EnterpriseProjectSetGroupPolicyResponse

type EnterpriseProjectSetGroupPolicyResponse struct {
}

type EnterpriseProjectStatusUpdateApi

type EnterpriseProjectStatusUpdateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EnterpriseProjectStatusUpdateApi 启用停用企业项目 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9426&data=114

func NewEnterpriseProjectStatusUpdateApi

func NewEnterpriseProjectStatusUpdateApi(client *ctyunsdk.CtyunClient) *EnterpriseProjectStatusUpdateApi

func (*EnterpriseProjectStatusUpdateApi) Do

func (this *EnterpriseProjectStatusUpdateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EnterpriseProjectStatusUpdateRequest) (*EnterpriseProjectStatusUpdateResponse, ctyunsdk.CtyunRequestError)

type EnterpriseProjectStatusUpdateRequest

type EnterpriseProjectStatusUpdateRequest struct {
	ProjectId string
	Status    int
}

type EnterpriseProjectStatusUpdateResponse

type EnterpriseProjectStatusUpdateResponse struct {
}

type EnterpriseProjectUpdateApi

type EnterpriseProjectUpdateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

EnterpriseProjectUpdateApi 修改企业项目 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9424&data=114

func NewEnterpriseProjectUpdateApi

func NewEnterpriseProjectUpdateApi(client *ctyunsdk.CtyunClient) *EnterpriseProjectUpdateApi

func (*EnterpriseProjectUpdateApi) Do

func (this *EnterpriseProjectUpdateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *EnterpriseProjectUpdateRequest) (*EnterpriseProjectUpdateResponse, ctyunsdk.CtyunRequestError)

type EnterpriseProjectUpdateRequest

type EnterpriseProjectUpdateRequest struct {
	Id          string
	ProjectName string
	Description string
}

type EnterpriseProjectUpdateResponse

type EnterpriseProjectUpdateResponse struct {
}

type GroupInfo

type GroupInfo struct {
	Id         string
	GroupName  string
	AccountId  string
	GroupIntro string
	IsRoot     int64
	IsValid    int64
	UserCount  int64
	CreateTime int64
	UpdateTime int64
}

type IdpCreateApi

type IdpCreateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

IdpCreateApi 创建身份提供商 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9183&data=114

func NewIdpCreateApi

func NewIdpCreateApi(client *ctyunsdk.CtyunClient) *IdpCreateApi

func (IdpCreateApi) Do

func (this IdpCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *IdpCreateRequest) (*IdpCreateResponse, ctyunsdk.CtyunRequestError)

type IdpCreateRequest

type IdpCreateRequest struct {
	Name     string
	Type     int
	Protocol int
	Remark   string
	FileName string
	File     []byte
}

type IdpCreateResponse

type IdpCreateResponse struct {
	Id         int64
	Name       string
	Type       int
	Protocol   int
	AccountId  string
	Remark     string
	CreateTime int64
	Uuid       string
}

type IdpDeleteApi

type IdpDeleteApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

IdpDeleteApi 删除身份供应商 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9184&data=114

func NewIdpDeleteApi

func NewIdpDeleteApi(client *ctyunsdk.CtyunClient) *IdpDeleteApi

func (IdpDeleteApi) Do

func (this IdpDeleteApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *IdpDeleteRequest) (*IdpDeleteResponse, ctyunsdk.CtyunRequestError)

type IdpDeleteRequest

type IdpDeleteRequest struct {
	Id int64
}

type IdpDeleteResponse

type IdpDeleteResponse struct {
}

type IdpListApi

type IdpListApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

IdpListApi 查看身份供应商详情 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9186&data=114

func NewIdpListApi

func NewIdpListApi(client *ctyunsdk.CtyunClient) *IdpListApi

func (*IdpListApi) Do

func (this *IdpListApi) Do(ctx context.Context, credential ctyunsdk.Credential, r *IdpListRequest) (*IdpListResponse, ctyunsdk.CtyunRequestError)

type IdpListRequest

type IdpListRequest struct {
	Id int64
}

type IdpListResponse

type IdpListResponse struct {
	Id               int64
	Protocol         int
	AccountId        string
	Remark           string
	Name             string
	Type             int
	Status           int
	CreateTime       int64
	UpdateTime       int64
	MetadataDocument string
	FileName         string
}

type IdpUpdateApi

type IdpUpdateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

IdpUpdateApi 删除身份供应商 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9182&data=114

func NewIdpUpdateApi

func NewIdpUpdateApi(client *ctyunsdk.CtyunClient) *IdpUpdateApi

func (IdpUpdateApi) Do

func (this IdpUpdateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *IdpUpdateRequest) (*IdpUpdateResponse, ctyunsdk.CtyunRequestError)

type IdpUpdateRequest

type IdpUpdateRequest struct {
	Id       int64
	Remark   string
	FileName string
	File     []byte
}

type IdpUpdateResponse

type IdpUpdateResponse struct {
}

type PolicyAttachUserApi

type PolicyAttachUserApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

PolicyAttachUserApi 为用户授权 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=13946&data=114

func NewPolicyAttachUserApi

func NewPolicyAttachUserApi(client *ctyunsdk.CtyunClient) *PolicyAttachUserApi

func (*PolicyAttachUserApi) Do

func (this *PolicyAttachUserApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PolicyAttachUserRequest) (*PolicyAttachUserResponse, ctyunsdk.CtyunRequestError)

type PolicyAttachUserGroupApi

type PolicyAttachUserGroupApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

PolicyAttachUserGroupApi 创建用户组权限 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9156&data=114

func NewPolicyAttachUserGroupApi

func NewPolicyAttachUserGroupApi(client *ctyunsdk.CtyunClient) *PolicyAttachUserGroupApi

func (*PolicyAttachUserGroupApi) Do

func (this *PolicyAttachUserGroupApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PolicyAttachUserGroupRequest) (*PolicyAttachUserGroupResponse, ctyunsdk.CtyunRequestError)

type PolicyAttachUserGroupPolicyListResponse

type PolicyAttachUserGroupPolicyListResponse struct {
	PolicyId   string
	PolicyName string
	PolicyType string
}

type PolicyAttachUserGroupPolicyPrivilegeMessageResponse

type PolicyAttachUserGroupPolicyPrivilegeMessageResponse struct {
	PrivilegeId string
	PloyId      string
}

type PolicyAttachUserGroupRequest

type PolicyAttachUserGroupRequest struct {
	UserGroupId string
	RangeType   string
	PolicyIds   []string
	RegionIds   []string
}

type PolicyAttachUserGroupResponse

type PolicyAttachUserGroupResponse struct {
	AccountId        string
	UserGroupId      string
	RangeType        string
	PolicyIds        []string
	PolicyList       []PolicyAttachUserGroupPolicyListResponse
	PrivilegeMessage []PolicyAttachUserGroupPolicyPrivilegeMessageResponse
}

type PolicyAttachUserPolicyListResponse

type PolicyAttachUserPolicyListResponse struct {
	PolicyId   string
	PolicyName string
	PolicyType string
}

type PolicyAttachUserPolicyPrivilegeMessageResponse

type PolicyAttachUserPolicyPrivilegeMessageResponse struct {
	PrivilegeId string
	PloyId      string
}

type PolicyAttachUserRequest

type PolicyAttachUserRequest struct {
	UserId    string
	RangeType string
	PolicyIds []string
	RegionIds []string
}

type PolicyAttachUserResponse

type PolicyAttachUserResponse struct {
	AccountId        string
	UserId           string
	RangeType        string
	PolicyIds        []string
	PolicyList       []PolicyAttachUserPolicyListResponse
	PrivilegeMessage []PolicyAttachUserPolicyPrivilegeMessageResponse
}

type PolicyCreateApi

type PolicyCreateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

PolicyCreateApi 创建自定义策略 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9167&data=114

func NewPolicyCreateApi

func NewPolicyCreateApi(client *ctyunsdk.CtyunClient) *PolicyCreateApi

func (*PolicyCreateApi) Do

func (this *PolicyCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PolicyCreateRequest) (*PolicyCreateResponse, ctyunsdk.CtyunRequestError)

type PolicyCreatePolicyContentRequest

type PolicyCreatePolicyContentRequest struct {
	Version   string
	Statement []PolicyCreatePolicyContentStatementRequest
}

type PolicyCreatePolicyContentStatementRequest

type PolicyCreatePolicyContentStatementRequest struct {
	Resource []string
	Action   []string
	Effect   string
}

type PolicyCreateRequest

type PolicyCreateRequest struct {
	PolicyName        string
	PolicyRange       int
	PolicyDescription string
	PolicyContent     PolicyCreatePolicyContentRequest
}

type PolicyCreateResponse

type PolicyCreateResponse struct {
	PolicyId string
}

type PolicyDeleteApi

type PolicyDeleteApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

PolicyDeleteApi 删除自定义策略 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9169&data=114

func NewPolicyDeleteApi

func NewPolicyDeleteApi(client *ctyunsdk.CtyunClient) *PolicyDeleteApi

func (*PolicyDeleteApi) Do

func (this *PolicyDeleteApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PolicyDeleteRequest) (*PolicyDeleteResponse, ctyunsdk.CtyunRequestError)

type PolicyDeleteRequest

type PolicyDeleteRequest struct {
	PolicyId string
}

type PolicyDeleteResponse

type PolicyDeleteResponse struct {
}

type PolicyGetApi

type PolicyGetApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

PolicyGetApi 查询策略详情 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9173&data=114

func NewPolicyGetApi

func NewPolicyGetApi(client *ctyunsdk.CtyunClient) *PolicyGetApi

func (*PolicyGetApi) Do

func (this *PolicyGetApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PolicyGetRequest) (*PolicyGetResponse, ctyunsdk.CtyunRequestError)

type PolicyGetPolicyContentRequest

type PolicyGetPolicyContentRequest struct {
	Version   string                                   `json:"Version"`
	Statement []PolicyGetPolicyContentStatementRequest `json:"Statement"`
}

type PolicyGetPolicyContentStatementRequest

type PolicyGetPolicyContentStatementRequest struct {
	Resource []string `json:"Resource"`
	Action   []string `json:"Action"`
	Effect   string   `json:"Effect"`
}

type PolicyGetRequest

type PolicyGetRequest struct {
	PolicyId string
}

type PolicyGetResponse

type PolicyGetResponse struct {
	Id                string
	PolicyName        string
	PolicyType        int
	PolicyRange       int
	PolicyDescription string
	PolicyContent     PolicyGetPolicyContentRequest
}

type PolicyInvalidUserGroupApi

type PolicyInvalidUserGroupApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

PolicyInvalidUserGroupApi 用户组取消权限 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9157&data=114

func NewPolicyInvalidUserGroupApi

func NewPolicyInvalidUserGroupApi(client *ctyunsdk.CtyunClient) *PolicyInvalidUserGroupApi

func (*PolicyInvalidUserGroupApi) Do

func (this *PolicyInvalidUserGroupApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PolicyInvalidUserGroupRequest) (*PolicyInvalidUserGroupResponse, ctyunsdk.CtyunRequestError)

type PolicyInvalidUserGroupRequest

type PolicyInvalidUserGroupRequest struct {
	PrivilegeId string
}

type PolicyInvalidUserGroupResponse

type PolicyInvalidUserGroupResponse struct {
}

type PolicyUpdateApi

type PolicyUpdateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

PolicyUpdateApi 编辑自定义策略 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9168&data=114

func NewPolicyUpdateApi

func NewPolicyUpdateApi(client *ctyunsdk.CtyunClient) *PolicyUpdateApi

func (*PolicyUpdateApi) Do

func (this *PolicyUpdateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PolicyUpdateRequest) (*PolicyUpdateResponse, ctyunsdk.CtyunRequestError)

type PolicyUpdatePolicyContentRequest

type PolicyUpdatePolicyContentRequest struct {
	Version   string
	Statement []PolicyUpdatePolicyContentStatementRequest
}

type PolicyUpdatePolicyContentStatementRequest

type PolicyUpdatePolicyContentStatementRequest struct {
	Resource []string
	Action   []string
	Effect   string
}

type PolicyUpdateRequest

type PolicyUpdateRequest struct {
	PolicyId          string
	PolicyName        string
	PolicyRange       int
	PolicyDescription string
	PolicyContent     PolicyUpdatePolicyContentRequest
}

type PolicyUpdateResponse

type PolicyUpdateResponse struct {
	PolicyId string
}

type PrivilegeGetApi

type PrivilegeGetApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

PrivilegeGetApi 根据授权id查询授权信息 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=13979&data=114

func NewPrivilegeGetApi

func NewPrivilegeGetApi(client *ctyunsdk.CtyunClient) *PrivilegeGetApi

func (*PrivilegeGetApi) Do

func (this *PrivilegeGetApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *PrivilegeGetRequest) (*PrivilegeGetResponse, ctyunsdk.CtyunRequestError)

type PrivilegeGetRequest

type PrivilegeGetRequest struct {
	PrivilegeId string
}

type PrivilegeGetResponse

type PrivilegeGetResponse struct {
	PrivilegeId   string
	RegionId      string
	Id            string
	AccountId     string
	PolicyId      string
	RangeType     string
	PrincipalType string
}

type ServiceListApi

type ServiceListApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

ServiceListApi 根据条件查询云服务产品 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=13942&data=114

func NewServiceListApi

func NewServiceListApi(client *ctyunsdk.CtyunClient) *ServiceListApi

func (*ServiceListApi) Do

func (this *ServiceListApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *ServiceListRequest) (*ServiceListResponse, ctyunsdk.CtyunRequestError)

type ServiceListRequest

type ServiceListRequest struct {
	ServiceName string
	ServiceType int
}

type ServiceListResponse

type ServiceListResponse struct {
	ServiceList []ServiceListServiceListResponse
}

type ServiceListServiceListResponse

type ServiceListServiceListResponse struct {
	ServiceCode     string
	ServiceType     int
	MainServiceName string
	ServiceDesc     string
	Id              int
}

type UserAssociationGroupApi

type UserAssociationGroupApi struct {
	// contains filtered or unexported fields
}

UserAssociationGroupApi 将用户移入用户组 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=8140&data=114

func NewUserAssociationGroupApi

func NewUserAssociationGroupApi(client *ctyunsdk.CtyunClient) *UserAssociationGroupApi

func (*UserAssociationGroupApi) Do

func (this *UserAssociationGroupApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *UserAssociationGroupRequest) (*UserAssociationGroupResponse, ctyunsdk.CtyunRequestError)

type UserAssociationGroupRequest

type UserAssociationGroupRequest struct {
	GroupId string
	UserId  string
}

type UserAssociationGroupResponse

type UserAssociationGroupResponse struct {
}

type UserAttachUserGroupApi

type UserAttachUserGroupApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

UserAttachUserGroupApi 用户批量加入用户组 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=13944&data=114

func NewUserAttachUserGroupApi

func NewUserAttachUserGroupApi(client *ctyunsdk.CtyunClient) *UserAttachUserGroupApi

func (*UserAttachUserGroupApi) Do

func (this *UserAttachUserGroupApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *UserAttachUserGroupRequest) (*UserAttachUserGroupResponse, ctyunsdk.CtyunRequestError)

type UserAttachUserGroupRequest

type UserAttachUserGroupRequest struct {
	UserId   string
	GroupIds []string
}

type UserAttachUserGroupResponse

type UserAttachUserGroupResponse struct {
}

type UserCreateApi

type UserCreateApi struct {
	// contains filtered or unexported fields
}

UserCreateApi 创建用户 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=8135&data=114

func NewUserCreateApi

func NewUserCreateApi(client *ctyunsdk.CtyunClient) *UserCreateApi

func (*UserCreateApi) Do

func (this *UserCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *UserCreateRequest) (*UserCreateResponse, ctyunsdk.CtyunRequestError)

type UserCreateRequest

type UserCreateRequest struct {
	LoginEmail         string      `json:"loginEmail"`
	MobilePhone        string      `json:"mobilePhone"`
	Password           string      `json:"password,omitempty"`
	UserName           string      `json:"userName"`
	Remark             string      `json:"remark,omitempty"`
	Groups             []UserGroup `json:"groups"`
	GeneratePassword   bool        `json:"generatePassword"`
	LoginResetPassword bool        `json:"loginResetPassword"`
	SourcePassword     string      `json:"sourcePassword"`
}

type UserCreateResponse

type UserCreateResponse struct {
	AccountId        string      `json:"accountId"`
	Groups           []UserGroup `json:"groups"`
	IsVirtualAccount string      `json:"isVirtualAccount"`
	LoginEmail       string      `json:"loginEmail"`
	MobilePhone      string      `json:"mobilePhone"`
	Remark           string      `json:"remark"`
	UserId           string      `json:"userId"`
	UserName         string      `json:"userName"`
}

type UserGetApi

type UserGetApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

UserGetApi 根据id查询用户详情 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9149&data=114

func NewUserGetApi

func NewUserGetApi(client *ctyunsdk.CtyunClient) *UserGetApi

func (*UserGetApi) Do

func (this *UserGetApi) Do(ctx context.Context, credential ctyunsdk.Credential, r *UserGetRequest) (*UserGetResponse, ctyunsdk.CtyunRequestError)

type UserGetRequest

type UserGetRequest struct {
	UserId string
}

type UserGetResponse

type UserGetResponse struct {
	LoginEmail  string      `json:"loginEmail"`
	AccountId   string      `json:"accountId"`
	MobilePhone string      `json:"mobilePhone"`
	Groups      []UserGroup `json:"groups"`
	Remark      string      `json:"remark"`
	UserName    string      `json:"userName"`
}

type UserGroup

type UserGroup struct {
	Id string `json:"id"`
}

type UserGroupCreateApi

type UserGroupCreateApi struct {
	// contains filtered or unexported fields
}

UserGroupCreateApi 创建用户组 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=8136&data=114

func NewUserGroupCreateApi

func NewUserGroupCreateApi(client *ctyunsdk.CtyunClient) *UserGroupCreateApi

func (*UserGroupCreateApi) Do

func (this *UserGroupCreateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *UserGroupCreateRequest) (*UserGroupCreateResponse, ctyunsdk.CtyunRequestError)

type UserGroupCreateRequest

type UserGroupCreateRequest struct {
	GroupName  string
	GroupIntro string
}

type UserGroupCreateResponse

type UserGroupCreateResponse struct {
	Id string
}

type UserGroupGetApi

type UserGroupGetApi struct {
	// contains filtered or unexported fields
}

UserGroupGetApi 根据用户组ID查询用户组信息 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=8142&data=114

func NewUserGroupGetApi

func NewUserGroupGetApi(client *ctyunsdk.CtyunClient) *UserGroupGetApi

func (*UserGroupGetApi) Do

func (this *UserGroupGetApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *UserGroupGetRequest) (*UserGroupGetResponse, ctyunsdk.CtyunRequestError)

type UserGroupGetRequest

type UserGroupGetRequest struct {
	GroupId string
}

type UserGroupGetResponse

type UserGroupGetResponse struct {
	Id         string
	GroupName  string
	GroupIntro string
	AccountId  string
}

type UserGroupInvalidApi

type UserGroupInvalidApi struct {
	// contains filtered or unexported fields
}

UserGroupInvalidApi 注销用户组 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9150&data=114

func NewUserGroupInvalidApi

func NewUserGroupInvalidApi(client *ctyunsdk.CtyunClient) *UserGroupInvalidApi

func (*UserGroupInvalidApi) Do

func (this *UserGroupInvalidApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *UserGroupInvalidRequest) (*UserGroupInvalidResponse, ctyunsdk.CtyunRequestError)

type UserGroupInvalidRequest

type UserGroupInvalidRequest struct {
	GroupId string
}

type UserGroupInvalidResponse

type UserGroupInvalidResponse struct {
}

type UserGroupQueryApi

type UserGroupQueryApi struct {
	// contains filtered or unexported fields
}

UserGroupQueryApi 分页查询用户组 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9152&data=114

func NewUserGroupQueryApi

func NewUserGroupQueryApi(client *ctyunsdk.CtyunClient) *UserGroupQueryApi

func (*UserGroupQueryApi) Do

func (this *UserGroupQueryApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *UserGroupQueryRequest) (*UserGroupQueryResponse, ctyunsdk.CtyunRequestError)

type UserGroupQueryRequest

type UserGroupQueryRequest struct {
	GroupName string
	PageNum   int64
	PageSize  int64
}

type UserGroupQueryResponse

type UserGroupQueryResponse struct {
	PageNum       int64
	PageSize      int64
	StartRow      int64
	EndRow        int64
	Total         int64
	Pages         int64
	NavigatePages int64
	Result        []GroupInfo
}

type UserGroupUpdateApi

type UserGroupUpdateApi struct {
	// contains filtered or unexported fields
}

UserGroupUpdateApi 修改用户组 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9153&data=114

func NewUserGroupUpdateApi

func NewUserGroupUpdateApi(client *ctyunsdk.CtyunClient) *UserGroupUpdateApi

func (*UserGroupUpdateApi) Do

func (this *UserGroupUpdateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *UserGroupUpdateRequest) (*UserGroupUpdateResponse, ctyunsdk.CtyunRequestError)

type UserGroupUpdateRequest

type UserGroupUpdateRequest struct {
	Id         string
	GroupName  string
	GroupIntro string
}

type UserGroupUpdateResponse

type UserGroupUpdateResponse struct {
	Id         string
	GroupName  string
	GroupIntro string
	AccountId  string
}

type UserInvalidApi

type UserInvalidApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

UserInvalidApi 注销用户 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9147&data=114

func NewUserInvalidApi

func NewUserInvalidApi(client *ctyunsdk.CtyunClient) *UserInvalidApi

func (*UserInvalidApi) Do

func (this *UserInvalidApi) Do(ctx context.Context, credential ctyunsdk.Credential, t *UserInvalidRequest) (*UserInvalidResponse, ctyunsdk.CtyunRequestError)

type UserInvalidRequest

type UserInvalidRequest struct {
	UserId string `json:"userId"`
}

type UserInvalidResponse

type UserInvalidResponse struct {
}

type UserRemoveUserGroupApi

type UserRemoveUserGroupApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

UserRemoveUserGroupApi 用户批量移出用户组 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=13945&data=114

func NewUserRemoveUserGroupApi

func NewUserRemoveUserGroupApi(client *ctyunsdk.CtyunClient) *UserRemoveUserGroupApi

func (*UserRemoveUserGroupApi) Do

func (this *UserRemoveUserGroupApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *UserRemoveUserGroupRequest) (*UserRemoveUserGroupResponse, ctyunsdk.CtyunRequestError)

type UserRemoveUserGroupRequest

type UserRemoveUserGroupRequest struct {
	UserId   string
	GroupIds []string
}

type UserRemoveUserGroupResponse

type UserRemoveUserGroupResponse struct {
}

type UserResetPasswordApi

type UserResetPasswordApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

UserResetPasswordApi 修改子用户密码 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=13939&data=114

func NewUserResetPasswordApi

func NewUserResetPasswordApi(client *ctyunsdk.CtyunClient) *UserResetPasswordApi

func (UserResetPasswordApi) Do

func (this UserResetPasswordApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *UserResetPasswordRequest) (*UserResetPasswordResponse, ctyunsdk.CtyunRequestError)

type UserResetPasswordRequest

type UserResetPasswordRequest struct {
	UserId      string
	OldPassword string
	NewPassword string
}

type UserResetPasswordResponse

type UserResetPasswordResponse struct {
}

type UserUpdateApi

type UserUpdateApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

UserUpdateApi 修改用户 https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=77&api=9148&data=114

func NewUserUpdateApi

func NewUserUpdateApi(client *ctyunsdk.CtyunClient) *UserUpdateApi

func (UserUpdateApi) Do

func (this UserUpdateApi) Do(ctx context.Context, credential ctyunsdk.Credential, req *UserUpdateRequest) (*UserUpdateResponse, ctyunsdk.CtyunRequestError)

type UserUpdateRequest

type UserUpdateRequest struct {
	UserId      string
	Remark      string
	LoginEmail  string
	MobilePhone string
	UserName    string
	Prohibit    int
}

type UserUpdateResponse

type UserUpdateResponse struct {
	LoginEmail  string
	AccountId   string
	MobilePhone string
	Remark      string
	UserName    string
}

Jump to

Keyboard shortcuts

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