model

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptResourceShareInvitationRequest

type AcceptResourceShareInvitationRequest struct {

	// 资源共享邀请的ID。
	ResourceShareInvitationId string `json:"resource_share_invitation_id"`
}

Request Object

func (AcceptResourceShareInvitationRequest) String

type AcceptResourceShareInvitationResponse

type AcceptResourceShareInvitationResponse struct {
	ResourceShareInvitation *ResourceShareInvitation `json:"resource_share_invitation,omitempty"`
	HttpStatusCode          int                      `json:"-"`
}

Response Object

func (AcceptResourceShareInvitationResponse) String

type AssociatePermissionReqBody

type AssociatePermissionReqBody struct {

	// 共享资源权限的ID。
	PermissionId string `json:"permission_id"`

	// 指定特定的权限替换或绑定到与资源共享实例关联的现有资源类型。设置为\"true\"可将相同的资源类型的权限替换为当前权限。设置为\"false\"将权限绑定到当前资源类型。默认值为\"false\"。资源共享实例中的每个资源类型只能绑定一个权限。如果资源共享实例中已具有指定资源类型的权限,并且将\"replace\"设置为\"false\",则操作返回错误。这有助于防止意外覆盖权限。
	Replace *bool `json:"replace,omitempty"`
}

The request body of the AssociateResourceSharePermission operation.

func (AssociatePermissionReqBody) String

type AssociateResourceSharePermissionRequest

type AssociateResourceSharePermissionRequest struct {

	// 资源共享实例的ID。
	ResourceShareId string `json:"resource_share_id"`

	Body *AssociatePermissionReqBody `json:"body,omitempty"`
}

Request Object

func (AssociateResourceSharePermissionRequest) String

type AssociateResourceSharePermissionResponse

type AssociateResourceSharePermissionResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (AssociateResourceSharePermissionResponse) String

type AssociateResourceShareRequest

type AssociateResourceShareRequest struct {

	// 资源共享实例的ID。
	ResourceShareId string `json:"resource_share_id"`

	Body *ResourceShareAssociationReqBody `json:"body,omitempty"`
}

Request Object

func (AssociateResourceShareRequest) String

type AssociateResourceShareResponse

type AssociateResourceShareResponse struct {
	ResourceShareAssociations *[]ResourceShareAssociation `json:"resource_share_associations,omitempty"`
	HttpStatusCode            int                         `json:"-"`
}

Response Object

func (AssociateResourceShareResponse) String

type AssociatedPermission

type AssociatedPermission struct {

	// 权限的ID。
	PermissionId *string `json:"permission_id,omitempty"`

	// 共享资源权限的名称。
	PermissionName *string `json:"permission_name,omitempty"`

	// 权限适用的资源类型。
	ResourceType *string `json:"resource_type,omitempty"`

	// 权限的当前状态。
	Status *string `json:"status,omitempty"`

	// 创建权限的时间。
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	// 最后一次更新权限的时间。
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
}

描述与资源共享关联的权限的对象。

func (AssociatedPermission) String

func (o AssociatedPermission) String() string

type BatchCreateResourceShareTagsRequest added in v0.1.34

type BatchCreateResourceShareTagsRequest struct {

	// 资源共享实例的ID。
	ResourceShareId string `json:"resource_share_id"`

	Body *TagResourceReqBody `json:"body,omitempty"`
}

Request Object

func (BatchCreateResourceShareTagsRequest) String added in v0.1.34

type BatchCreateResourceShareTagsResponse added in v0.1.34

type BatchCreateResourceShareTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (BatchCreateResourceShareTagsResponse) String added in v0.1.34

type BatchDeleteResourceShareTagsRequest added in v0.1.34

type BatchDeleteResourceShareTagsRequest struct {

	// 资源共享实例的ID。
	ResourceShareId string `json:"resource_share_id"`

	Body *UntagResourceReqBody `json:"body,omitempty"`
}

Request Object

func (BatchDeleteResourceShareTagsRequest) String added in v0.1.34

type BatchDeleteResourceShareTagsResponse added in v0.1.34

type BatchDeleteResourceShareTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (BatchDeleteResourceShareTagsResponse) String added in v0.1.34

type CreateResourceShareReqBody

type CreateResourceShareReqBody struct {

	// 资源共享实例的名称。
	Name string `json:"name"`

	// 资源共享实例的描述。
	Description *string `json:"description,omitempty"`

	// 资源共享实例关联的RAM权限列表。一种资源类型只能关联一个RAM权限。如果您没有指定权限ID,RAM将自动为每个资源类型关联默认权限。
	PermissionIds *[]string `json:"permission_ids,omitempty"`

	// 资源共享实例关联的一个或多个资源使用者的列表。
	Principals *[]string `json:"principals,omitempty"`

	// 资源共享实例关联的一个或多个共享资源URN的列表。
	ResourceUrns *[]string `json:"resource_urns,omitempty"`

	// 资源共享标签列表。
	Tags *[]Tag `json:"tags,omitempty"`
}

The request body of the CreateResourceShare operation.

func (CreateResourceShareReqBody) String

type CreateResourceShareRequest

type CreateResourceShareRequest struct {
	Body *CreateResourceShareReqBody `json:"body,omitempty"`
}

Request Object

func (CreateResourceShareRequest) String

type CreateResourceShareResponse

type CreateResourceShareResponse struct {
	ResourceShare  *ResourceShare `json:"resource_share,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (CreateResourceShareResponse) String

type DeleteResourceShareRequest

type DeleteResourceShareRequest struct {

	// 资源共享实例的ID。
	ResourceShareId string `json:"resource_share_id"`
}

Request Object

func (DeleteResourceShareRequest) String

type DeleteResourceShareResponse

type DeleteResourceShareResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteResourceShareResponse) String

type DisableOrganizationShareRequest

type DisableOrganizationShareRequest struct {
}

Request Object

func (DisableOrganizationShareRequest) String

type DisableOrganizationShareResponse

type DisableOrganizationShareResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DisableOrganizationShareResponse) String

type DisassociatePermissionReqBody

type DisassociatePermissionReqBody struct {

	// 共享资源权限的ID。
	PermissionId string `json:"permission_id"`
}

The request body of the DisassociateResourceSharePermission operation.

func (DisassociatePermissionReqBody) String

type DisassociateResourceSharePermissionRequest

type DisassociateResourceSharePermissionRequest struct {

	// 资源共享实例的ID。
	ResourceShareId string `json:"resource_share_id"`

	Body *DisassociatePermissionReqBody `json:"body,omitempty"`
}

Request Object

func (DisassociateResourceSharePermissionRequest) String

type DisassociateResourceSharePermissionResponse

type DisassociateResourceSharePermissionResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DisassociateResourceSharePermissionResponse) String

type DisassociateResourceShareRequest

type DisassociateResourceShareRequest struct {

	// 资源共享实例的ID。
	ResourceShareId string `json:"resource_share_id"`

	Body *ResourceShareAssociationReqBody `json:"body,omitempty"`
}

Request Object

func (DisassociateResourceShareRequest) String

type DisassociateResourceShareResponse

type DisassociateResourceShareResponse struct {
	ResourceShareAssociations *[]ResourceShareAssociation `json:"resource_share_associations,omitempty"`
	HttpStatusCode            int                         `json:"-"`
}

Response Object

func (DisassociateResourceShareResponse) String

type DistinctSharedPrincipal

type DistinctSharedPrincipal struct {

	// 资源共享实例的创建者或使用者的帐号ID或URN。
	Id *string `json:"id,omitempty"`

	// 最后一次更新资源共享实例的时间。
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
}

描述共享的不同角色。

func (DistinctSharedPrincipal) String

func (o DistinctSharedPrincipal) String() string

type DistinctSharedResource

type DistinctSharedResource struct {

	// 资源的统一资源名称。
	ResourceUrn *string `json:"resource_urn,omitempty"`

	// 资源的类型。
	ResourceType *string `json:"resource_type,omitempty"`

	// 最后一次更新资源共享实例的时间。
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
}

描述共享的不同资源。

func (DistinctSharedResource) String

func (o DistinctSharedResource) String() string

type EnableOrganizationShareRequest

type EnableOrganizationShareRequest struct {
}

Request Object

func (EnableOrganizationShareRequest) String

type EnableOrganizationShareResponse

type EnableOrganizationShareResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (EnableOrganizationShareResponse) String

type ListPermissionsRequest

type ListPermissionsRequest struct {

	// 分页页面的最大值。
	Limit *int32 `json:"limit,omitempty"`

	// 页面标记。
	Marker *string `json:"marker,omitempty"`

	// 资源类型的名称。
	ResourceType *string `json:"resource_type,omitempty"`
}

Request Object

func (ListPermissionsRequest) String

func (o ListPermissionsRequest) String() string

type ListPermissionsResponse

type ListPermissionsResponse struct {

	// 共享资源权限的详细信息列表。
	Permissions *[]PermissionSummary `json:"permissions,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListPermissionsResponse) String

func (o ListPermissionsResponse) String() string

type ListResourceSharePermissionsRequest

type ListResourceSharePermissionsRequest struct {

	// 资源共享实例的ID。
	ResourceShareId string `json:"resource_share_id"`

	// 共享资源权限的名称。
	PermissionName *string `json:"permission_name,omitempty"`

	// 分页页面的最大值。
	Limit *int32 `json:"limit,omitempty"`

	// 页面标记。
	Marker *string `json:"marker,omitempty"`
}

Request Object

func (ListResourceSharePermissionsRequest) String

type ListResourceSharePermissionsResponse

type ListResourceSharePermissionsResponse struct {

	// 资源共享实例关联的共享资源权限信息列表。
	AssociatedPermissions *[]AssociatedPermission `json:"associated_permissions,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListResourceSharePermissionsResponse) String

type ListResourceShareTagsRequest added in v0.1.35

type ListResourceShareTagsRequest struct {

	// 分页页面的最大值。
	Limit *int32 `json:"limit,omitempty"`

	// 页面标记。
	Marker *string `json:"marker,omitempty"`
}

Request Object

func (ListResourceShareTagsRequest) String added in v0.1.35

type ListResourceShareTagsResponse added in v0.1.35

type ListResourceShareTagsResponse struct {

	// 一个或多个标签键值对的列表。标签键必须存在,而不是空字符串。标签值必须存在,但可以是空字符串。
	Tags *[]TagDto `json:"tags,omitempty"`

	PageInfo       *PageInfoMarkerByKey `json:"page_info,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ListResourceShareTagsResponse) String added in v0.1.35

type ListResourceSharesByTagsRequest added in v0.1.35

type ListResourceSharesByTagsRequest struct {

	// 分页页面的最大值。
	Limit *int32 `json:"limit,omitempty"`

	// 分页标记。
	Offset *string `json:"offset,omitempty"`

	Body *ResourceSharesByTagsReqBody `json:"body,omitempty"`
}

Request Object

func (ListResourceSharesByTagsRequest) String added in v0.1.35

type ListResourceSharesByTagsResponse added in v0.1.35

type ListResourceSharesByTagsResponse struct {

	// 资源信息列表。
	Resources *[]ResourceDto `json:"resources,omitempty"`

	// 总记录数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListResourceSharesByTagsResponse) String added in v0.1.35

type Match added in v0.1.35

type Match struct {

	// 键。取值范围为policy , organizational-unit, account。
	Key string `json:"key"`

	// 值。每个值最大长度255个字符。
	Value string `json:"value"`
}

func (Match) String added in v0.1.35

func (o Match) String() string

type PageInfo

type PageInfo struct {

	// 上一页的页面标识。
	PreviousMarker *string `json:"previous_marker,omitempty"`

	// 下一页的页面标识。
	NextMarker *string `json:"next_marker,omitempty"`

	// 页面数量。
	CurrentCount *int32 `json:"current_count,omitempty"`
}

分页详细信息。

func (PageInfo) String

func (o PageInfo) String() string

type PageInfoMarkerByKey added in v0.1.35

type PageInfoMarkerByKey struct {

	// 上一页的页面标识。
	PreviousMarker *string `json:"previous_marker,omitempty"`

	// 下一页的页面标识。
	NextMarker *string `json:"next_marker,omitempty"`

	// 页面数量。
	CurrentCount *int32 `json:"current_count,omitempty"`
}

分页详细信息。

func (PageInfoMarkerByKey) String added in v0.1.35

func (o PageInfoMarkerByKey) String() string

type Permission

type Permission struct {

	// 权限ID。
	Id string `json:"id"`

	// 权限名称。
	Name string `json:"name"`

	// 资源类型。
	ResourceType string `json:"resource_type"`

	// 权限的影响和行为。
	Content string `json:"content"`

	// 该权限是否是此资源类型的默认权限。
	IsResourceTypeDefault bool `json:"is_resource_type_default"`

	// 权限的创建时间。
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 最后一次更新权限的时间。
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
}

有关RAM权限的信息。

func (Permission) String

func (o Permission) String() string

type PermissionSummary

type PermissionSummary struct {

	// 权限ID。
	Id string `json:"id"`

	// 权限名称。
	Name string `json:"name"`

	// 此权限适用的资源类型。
	ResourceType string `json:"resource_type"`

	// 该权限是否是此资源类型的默认权限。
	IsResourceTypeDefault bool `json:"is_resource_type_default"`

	// 权限的创建时间。
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 上次更新权限的时间。
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
}

资源共享及其指定类型的任何资源关联的RAM权限的信息。

func (PermissionSummary) String

func (o PermissionSummary) String() string

type RejectResourceShareInvitationRequest

type RejectResourceShareInvitationRequest struct {

	// 资源共享邀请的ID。
	ResourceShareInvitationId string `json:"resource_share_invitation_id"`
}

Request Object

func (RejectResourceShareInvitationRequest) String

type RejectResourceShareInvitationResponse

type RejectResourceShareInvitationResponse struct {
	ResourceShareInvitation *ResourceShareInvitation `json:"resource_share_invitation,omitempty"`
	HttpStatusCode          int                      `json:"-"`
}

Response Object

func (RejectResourceShareInvitationResponse) String

type ResourceDto added in v0.1.35

type ResourceDto struct {

	// 资源ID。
	ResourceId string `json:"resource_id"`

	// 资源名称。
	ResourceName string `json:"resource_name"`

	// 资源标签列表。
	Tags []Tag `json:"tags"`

	// 资源详情。
	ResourceDetail *interface{} `json:"resource_detail"`
}

资源信息。

func (ResourceDto) String added in v0.1.35

func (o ResourceDto) String() string

type ResourceShare

type ResourceShare struct {

	// 资源共享实例的ID。
	Id string `json:"id"`

	// 资源共享实例的名称。
	Name string `json:"name"`

	// 资源共享实例的描述。
	Description string `json:"description"`

	// 资源共享实例的所有者ID。
	OwningAccountId string `json:"owning_account_id"`

	// 资源共享实例的状态。
	Status string `json:"status"`

	// 资源共享实例的标签列表。
	Tags *[]Tag `json:"tags,omitempty"`

	// 创建资源共享实例的时间。
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 最后一次更新资源共享实例的时间。
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`
}

描述RAM中的资源共享。

func (ResourceShare) String

func (o ResourceShare) String() string

type ResourceShareAssociation

type ResourceShareAssociation struct {

	// 绑定的实体。这可以是共享资源的URN、帐号ID、共享资源目录的URN或文件夹的URN之一。
	AssociatedEntity string `json:"associated_entity"`

	// 绑定中包含的实体类型。
	AssociationType string `json:"association_type"`

	// 绑定被创建的时间。
	CreatedAt *sdktime.SdkTime `json:"created_at"`

	// 最后一次更新绑定的时间。
	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	// 资源共享实例的ID。
	ResourceShareId string `json:"resource_share_id"`

	// 资源共享实例的名称。
	ResourceShareName string `json:"resource_share_name"`

	// 绑定的当前状态。
	Status string `json:"status"`
}

与资源共享实例关联的资源使用者或共享资源的详细信息。

func (ResourceShareAssociation) String

func (o ResourceShareAssociation) String() string

type ResourceShareAssociationReqBody

type ResourceShareAssociationReqBody struct {

	// 指定与资源共享实例关联的一个或多个资源使用者的列表。
	Principals *[]string `json:"principals,omitempty"`

	// 指定与资源共享实例关联的一个或多个共享资源URN的列表。
	ResourceUrns *[]string `json:"resource_urns,omitempty"`
}

The request body of AssociateResourceShare and DisassociateResourceShare operations.

func (ResourceShareAssociationReqBody) String

type ResourceShareInvitation

type ResourceShareInvitation struct {

	// 接收资源共享邀请的帐号ID。
	ReceiverAccountId *string `json:"receiver_account_id,omitempty"`

	// 资源共享实例的ID。
	ResourceShareId *string `json:"resource_share_id,omitempty"`

	// 资源共享实例的名称。
	ResourceShareName *string `json:"resource_share_name,omitempty"`

	// 资源共享邀请的ID。
	ResourceShareInvitationId *string `json:"resource_share_invitation_id,omitempty"`

	// 发送资源共享邀请的帐号ID。
	SenderAccountId *string `json:"sender_account_id,omitempty"`

	// 资源共享邀请的当前状态。
	Status *string `json:"status,omitempty"`

	// 创建邀请的时间。
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	// 最后一次更新邀请的时间。
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
}

资源共享邀请的详细信息。

func (ResourceShareInvitation) String

func (o ResourceShareInvitation) String() string

type ResourceSharesByTagsReqBody added in v0.1.35

type ResourceSharesByTagsReqBody struct {

	// 不包含任意一个标签,该字段为true时查询所有不带标签的资源。
	WithoutAnyTag *bool `json:"without_any_tag,omitempty"`

	// 包含标签,最多包含20个key,每个key下面的value最多20个,结构体不能缺失,key不能为空或者空字符串。Key不能重复,同一个key中values不能重复。返回包含所有标签的资源列表,key之间是\"与\"的关系,key-value结构中value是\"或\"的关系。无tag过滤条件时返回全量数据。
	Tags *[]TagFilter `json:"tags,omitempty"`

	// 资源共享实例绑定标签列表的匹配字段。
	Matches *[]Match `json:"matches,omitempty"`
}

ResourceInstance操作的请求体。

func (ResourceSharesByTagsReqBody) String added in v0.1.35

type SearchDistinctPrincipalsRequest

type SearchDistinctPrincipalsRequest struct {
	Body *SearchDistinctSharedPrincipalsReqBody `json:"body,omitempty"`
}

Request Object

func (SearchDistinctPrincipalsRequest) String

type SearchDistinctPrincipalsResponse

type SearchDistinctPrincipalsResponse struct {

	// 不同角色的信息列表。
	DistinctSharedPrincipals *[]DistinctSharedPrincipal `json:"distinct_shared_principals,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (SearchDistinctPrincipalsResponse) String

type SearchDistinctSharedPrincipalsReqBody

type SearchDistinctSharedPrincipalsReqBody struct {

	// 分页页面的最大值。
	Limit *int32 `json:"limit,omitempty"`

	// 页面标记。
	Marker *string `json:"marker,omitempty"`

	// 指定资源使用者列表。
	Principals *[]string `json:"principals,omitempty"`

	// 指定资源的URN。
	ResourceUrn *string `json:"resource_urn,omitempty"`

	// 指定资源共享实例的所有者(self或者other-accounts)。
	ResourceOwner SearchDistinctSharedPrincipalsReqBodyResourceOwner `json:"resource_owner"`
}

The request body of the SearchSharedPrincipals operation.

func (SearchDistinctSharedPrincipalsReqBody) String

type SearchDistinctSharedPrincipalsReqBodyResourceOwner

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

func (SearchDistinctSharedPrincipalsReqBodyResourceOwner) MarshalJSON

func (*SearchDistinctSharedPrincipalsReqBodyResourceOwner) UnmarshalJSON

func (SearchDistinctSharedPrincipalsReqBodyResourceOwner) Value

type SearchDistinctSharedResourcesReqBody

type SearchDistinctSharedResourcesReqBody struct {

	// 分页页面的最大值。
	Limit *int32 `json:"limit,omitempty"`

	// 页面标记。
	Marker *string `json:"marker,omitempty"`

	// 指定资源ID。
	ResourceIds *[]string `json:"resource_ids,omitempty"`

	// 指定资源使用者。
	Principal *string `json:"principal,omitempty"`

	// 资源所在的区域。
	ResourceRegion *string `json:"resource_region,omitempty"`

	// 指定资源URN的列表。
	ResourceUrns *[]string `json:"resource_urns,omitempty"`

	// 资源关联的状态。
	Status *string `json:"status,omitempty"`

	// 指定资源共享实例的所有者(self或者other-accounts)。
	ResourceOwner SearchDistinctSharedResourcesReqBodyResourceOwner `json:"resource_owner"`
}

The request body of the SearchSharedResources operation.

func (SearchDistinctSharedResourcesReqBody) String

type SearchDistinctSharedResourcesReqBodyResourceOwner

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

func (SearchDistinctSharedResourcesReqBodyResourceOwner) MarshalJSON

func (*SearchDistinctSharedResourcesReqBodyResourceOwner) UnmarshalJSON

func (SearchDistinctSharedResourcesReqBodyResourceOwner) Value

type SearchDistinctSharedResourcesRequest

type SearchDistinctSharedResourcesRequest struct {
	Body *SearchDistinctSharedResourcesReqBody `json:"body,omitempty"`
}

Request Object

func (SearchDistinctSharedResourcesRequest) String

type SearchDistinctSharedResourcesResponse

type SearchDistinctSharedResourcesResponse struct {

	// 不同资源的信息列表。
	DistinctSharedResources *[]DistinctSharedResource `json:"distinct_shared_resources,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (SearchDistinctSharedResourcesResponse) String

type SearchResourceShareAssociationsReqBody

type SearchResourceShareAssociationsReqBody struct {

	// 指定绑定的状态。
	AssociationStatus *string `json:"association_status,omitempty"`

	// 指定绑定的类型(principal或resource)。
	AssociationType SearchResourceShareAssociationsReqBodyAssociationType `json:"association_type"`

	// 分页页面的最大值。
	Limit *int32 `json:"limit,omitempty"`

	// 页面标记。
	Marker *string `json:"marker,omitempty"`

	// 指定绑定的资源使用者。
	Principal *string `json:"principal,omitempty"`

	// 指定绑定的共享资源URN。
	ResourceUrn *string `json:"resource_urn,omitempty"`

	// 指定资源共享实例的ID列表。
	ResourceShareIds *[]string `json:"resource_share_ids,omitempty"`

	// 指定共享资源ID列表。
	ResourceIds *[]string `json:"resource_ids,omitempty"`
}

The request body of the SearchResourceShareAssociations operation.

func (SearchResourceShareAssociationsReqBody) String

type SearchResourceShareAssociationsReqBodyAssociationType

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

func (SearchResourceShareAssociationsReqBodyAssociationType) MarshalJSON

func (*SearchResourceShareAssociationsReqBodyAssociationType) UnmarshalJSON

func (SearchResourceShareAssociationsReqBodyAssociationType) Value

type SearchResourceShareAssociationsRequest

type SearchResourceShareAssociationsRequest struct {
	Body *SearchResourceShareAssociationsReqBody `json:"body,omitempty"`
}

Request Object

func (SearchResourceShareAssociationsRequest) String

type SearchResourceShareAssociationsResponse

type SearchResourceShareAssociationsResponse struct {

	// 绑定的详细信息列表。
	ResourceShareAssociations *[]ResourceShareAssociation `json:"resource_share_associations,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (SearchResourceShareAssociationsResponse) String

type SearchResourceShareCountByTagsRequest added in v0.1.35

type SearchResourceShareCountByTagsRequest struct {
	Body *ResourceSharesByTagsReqBody `json:"body,omitempty"`
}

Request Object

func (SearchResourceShareCountByTagsRequest) String added in v0.1.35

type SearchResourceShareCountByTagsResponse added in v0.1.35

type SearchResourceShareCountByTagsResponse struct {

	// 总记录数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (SearchResourceShareCountByTagsResponse) String added in v0.1.35

type SearchResourceShareInvitationReqBody

type SearchResourceShareInvitationReqBody struct {

	// 资源共享实例的ID列表。
	ResourceShareIds *[]string `json:"resource_share_ids,omitempty"`

	// 资源共享邀请的ID列表。
	ResourceShareInvitationIds *[]string `json:"resource_share_invitation_ids,omitempty"`

	// 资源共享邀请的当前状态。
	Status *string `json:"status,omitempty"`

	// 分页页面的最大值。
	Limit *int32 `json:"limit,omitempty"`

	// 分页位置标识。从marker指定索引的下一条数据开始查询。查询第一页数据时,不需要传入此参数,查询后续页码数据时,将查询前一页数据响应体中marker值配入此参数。
	Marker *string `json:"marker,omitempty"`
}

func (SearchResourceShareInvitationReqBody) String

type SearchResourceShareInvitationRequest

type SearchResourceShareInvitationRequest struct {
	Body *SearchResourceShareInvitationReqBody `json:"body,omitempty"`
}

Request Object

func (SearchResourceShareInvitationRequest) String

type SearchResourceShareInvitationResponse

type SearchResourceShareInvitationResponse struct {
	ResourceShareInvitations *[]ResourceShareInvitation `json:"resource_share_invitations,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (SearchResourceShareInvitationResponse) String

type SearchResourceSharesReqBody

type SearchResourceSharesReqBody struct {

	// 分页页面的最大值。
	Limit *int32 `json:"limit,omitempty"`

	// 资源共享实例名称。
	Name *string `json:"name,omitempty"`

	// 页面标记。
	Marker *string `json:"marker,omitempty"`

	// 权限ID。
	PermissionId *string `json:"permission_id,omitempty"`

	// 检索您创建的或共享给您的(self或者other-accounts)资源共享实例。
	ResourceOwner SearchResourceSharesReqBodyResourceOwner `json:"resource_owner"`

	// 资源共享实例的ID列表。
	ResourceShareIds *[]string `json:"resource_share_ids,omitempty"`

	// 资源共享实例的状态。
	ResourceShareStatus *string `json:"resource_share_status,omitempty"`

	// 资源共享实例的标签。
	TagFilters *[]TagFilter `json:"tag_filters,omitempty"`
}

The request body of the SearchResourceShares operation.

func (SearchResourceSharesReqBody) String

type SearchResourceSharesReqBodyResourceOwner

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

func (SearchResourceSharesReqBodyResourceOwner) MarshalJSON

func (*SearchResourceSharesReqBodyResourceOwner) UnmarshalJSON

func (c *SearchResourceSharesReqBodyResourceOwner) UnmarshalJSON(b []byte) error

func (SearchResourceSharesReqBodyResourceOwner) Value

type SearchResourceSharesReqBodyResourceOwnerEnum

type SearchResourceSharesReqBodyResourceOwnerEnum struct {
	SELF           SearchResourceSharesReqBodyResourceOwner
	OTHER_ACCOUNTS SearchResourceSharesReqBodyResourceOwner
}

func GetSearchResourceSharesReqBodyResourceOwnerEnum

func GetSearchResourceSharesReqBodyResourceOwnerEnum() SearchResourceSharesReqBodyResourceOwnerEnum

type SearchResourceSharesRequest

type SearchResourceSharesRequest struct {
	Body *SearchResourceSharesReqBody `json:"body,omitempty"`
}

Request Object

func (SearchResourceSharesRequest) String

type SearchResourceSharesResponse

type SearchResourceSharesResponse struct {

	// 资源共享实例的详细信息列表。
	ResourceShares *[]ResourceShare `json:"resource_shares,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (SearchResourceSharesResponse) String

type SearchSharedPrincipalsReqBody

type SearchSharedPrincipalsReqBody struct {

	// 分页页面的最大值。
	Limit *int32 `json:"limit,omitempty"`

	// 页面标记。
	Marker *string `json:"marker,omitempty"`

	// 指定资源使用者。
	Principals *[]string `json:"principals,omitempty"`

	// 指定资源的URN。
	ResourceUrn *string `json:"resource_urn,omitempty"`

	// 指定资源共享实例的所有者(self或者other-accounts)。
	ResourceOwner SearchSharedPrincipalsReqBodyResourceOwner `json:"resource_owner"`

	// 指定资源共享实例的ID列表。
	ResourceShareIds *[]string `json:"resource_share_ids,omitempty"`
}

The request body of the SearchSharedPrincipals operation.

func (SearchSharedPrincipalsReqBody) String

type SearchSharedPrincipalsReqBodyResourceOwner

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

func (SearchSharedPrincipalsReqBodyResourceOwner) MarshalJSON

func (*SearchSharedPrincipalsReqBodyResourceOwner) UnmarshalJSON

func (SearchSharedPrincipalsReqBodyResourceOwner) Value

type SearchSharedPrincipalsReqBodyResourceOwnerEnum

type SearchSharedPrincipalsReqBodyResourceOwnerEnum struct {
	SELF           SearchSharedPrincipalsReqBodyResourceOwner
	OTHER_ACCOUNTS SearchSharedPrincipalsReqBodyResourceOwner
}

func GetSearchSharedPrincipalsReqBodyResourceOwnerEnum

func GetSearchSharedPrincipalsReqBodyResourceOwnerEnum() SearchSharedPrincipalsReqBodyResourceOwnerEnum

type SearchSharedPrincipalsRequest

type SearchSharedPrincipalsRequest struct {
	Body *SearchSharedPrincipalsReqBody `json:"body,omitempty"`
}

Request Object

func (SearchSharedPrincipalsRequest) String

type SearchSharedPrincipalsResponse

type SearchSharedPrincipalsResponse struct {

	// 资源使用者的详细信息列表。
	SharedPrincipals *[]SharedPrincipal `json:"shared_principals,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (SearchSharedPrincipalsResponse) String

type SearchSharedResourcesReqBody

type SearchSharedResourcesReqBody struct {

	// 分页页面的最大值。
	Limit *int32 `json:"limit,omitempty"`

	// 页面标记。
	Marker *string `json:"marker,omitempty"`

	// 指定资源使用者。
	Principal *string `json:"principal,omitempty"`

	// 指定资源ID列表。
	ResourceIds *[]string `json:"resource_ids,omitempty"`

	// 指定资源URN的列表。
	ResourceUrns *[]string `json:"resource_urns,omitempty"`

	// 指定资源共享实例的所有者(self或者other-accounts)。
	ResourceOwner SearchSharedResourcesReqBodyResourceOwner `json:"resource_owner"`

	// 指定资源共享实例的ID列表。
	ResourceShareIds *[]string `json:"resource_share_ids,omitempty"`

	// 资源所在的区域。
	ResourceRegion *string `json:"resource_region,omitempty"`

	// 指定资源类型。
	ResourceType *string `json:"resource_type,omitempty"`
}

The request body of the SearchSharedResources operation.

func (SearchSharedResourcesReqBody) String

type SearchSharedResourcesReqBodyResourceOwner

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

func (SearchSharedResourcesReqBodyResourceOwner) MarshalJSON

func (*SearchSharedResourcesReqBodyResourceOwner) UnmarshalJSON

func (SearchSharedResourcesReqBodyResourceOwner) Value

type SearchSharedResourcesReqBodyResourceOwnerEnum

type SearchSharedResourcesReqBodyResourceOwnerEnum struct {
	SELF           SearchSharedResourcesReqBodyResourceOwner
	OTHER_ACCOUNTS SearchSharedResourcesReqBodyResourceOwner
}

func GetSearchSharedResourcesReqBodyResourceOwnerEnum

func GetSearchSharedResourcesReqBodyResourceOwnerEnum() SearchSharedResourcesReqBodyResourceOwnerEnum

type SearchSharedResourcesRequest

type SearchSharedResourcesRequest struct {
	Body *SearchSharedResourcesReqBody `json:"body,omitempty"`
}

Request Object

func (SearchSharedResourcesRequest) String

type SearchSharedResourcesResponse

type SearchSharedResourcesResponse struct {

	// 共享资源的信息列表。
	SharedResources *[]SharedResource `json:"shared_resources,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (SearchSharedResourcesResponse) String

type SharedPrincipal

type SharedPrincipal struct {

	// 资源使用者绑定的资源共享实例的ID。
	ResourceShareId *string `json:"resource_share_id,omitempty"`

	// 资源使用者的帐号ID或URN。
	Id *string `json:"id,omitempty"`

	// 资源使用者与资源共享实例关联的时间。
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	// 最后一次更新资源共享实例的时间。
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
}

描述资源共享管理的角色

func (SharedPrincipal) String

func (o SharedPrincipal) String() string

type SharedResource

type SharedResource struct {

	// 资源的统一资源名称。
	ResourceUrn *string `json:"resource_urn,omitempty"`

	// 资源与资源共享实例关联的时间。
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	// 最后一次更新资源共享实例的时间。
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`

	// 资源的类型。
	ResourceType *string `json:"resource_type,omitempty"`

	// 资源绑定的资源共享实例的ID。
	ResourceShareId *string `json:"resource_share_id,omitempty"`

	// 资源绑定的当前状态。
	Status *string `json:"status,omitempty"`
}

描述RAM中的资源共享关联的资源。

func (SharedResource) String

func (o SharedResource) String() string

type ShowOrganizationShareRequest

type ShowOrganizationShareRequest struct {
}

Request Object

func (ShowOrganizationShareRequest) String

type ShowOrganizationShareResponse

type ShowOrganizationShareResponse struct {

	// 如果为\"true\",则表示启用与组织的共享。默认为\"false\"。
	Enabled        *bool `json:"enabled,omitempty"`
	HttpStatusCode int   `json:"-"`
}

Response Object

func (ShowOrganizationShareResponse) String

type ShowPermissionRequest

type ShowPermissionRequest struct {

	// 共享资源权限的ID。
	PermissionId string `json:"permission_id"`
}

Request Object

func (ShowPermissionRequest) String

func (o ShowPermissionRequest) String() string

type ShowPermissionResponse

type ShowPermissionResponse struct {
	Permission     *Permission `json:"permission,omitempty"`
	HttpStatusCode int         `json:"-"`
}

Response Object

func (ShowPermissionResponse) String

func (o ShowPermissionResponse) String() string

type Tag

type Tag struct {

	// 标签\"键\"的标识符或名称。
	Key string `json:"key"`

	// 标签\"键\"对应的\"值\"。您可以将标签的值设置为空字符串,但不能设置为null。
	Value string `json:"value"`
}

自定义键值对。

func (Tag) String

func (o Tag) String() string

type TagDto added in v0.1.35

type TagDto struct {

	// 标签\"键\"的标识符或名称。您可以将标签的值设置为空字符串,但不能设置为null。
	Key string `json:"key"`

	// 值列表。每个值最大长度255个字符。
	Values []string `json:"values"`
}

自定义标签键值对。

func (TagDto) String added in v0.1.35

func (o TagDto) String() string

type TagFilter

type TagFilter struct {

	// 标签\"键\"的标识符或名称。
	Key string `json:"key"`

	// 标签\"键\"对应的\"值\"列表。
	Values *[]string `json:"values,omitempty"`
}

根据标签筛选。

func (TagFilter) String

func (o TagFilter) String() string

type TagResourceReqBody added in v0.1.34

type TagResourceReqBody struct {

	// 一个或多个标签键值对的列表。标签键必须存在,而不是空字符串。标签值必须存在,但可以是空字符串。
	Tags []Tag `json:"tags"`
}

The request body of the TagResource operation.

func (TagResourceReqBody) String added in v0.1.34

func (o TagResourceReqBody) String() string

type Untag added in v0.1.34

type Untag struct {

	// 标签\"键\"的标识符或名称。
	Key string `json:"key"`

	// 标签\"键\"对应的\"值\"。您可以将标签的值设置为空字符串,但不能设置为null。
	Value *string `json:"value,omitempty"`
}

自定义键值对。

func (Untag) String added in v0.1.34

func (o Untag) String() string

type UntagResourceReqBody added in v0.1.34

type UntagResourceReqBody struct {

	// 一个或多个标签键值对的列表。标签键必须存在,而不是空字符串。标签值必须存在,但可以是空字符串。
	Tags []Untag `json:"tags"`
}

The request body of the UntagResource operation.

func (UntagResourceReqBody) String added in v0.1.34

func (o UntagResourceReqBody) String() string

type UpdateResourceShareReqBody

type UpdateResourceShareReqBody struct {

	// 资源共享实例的名称。
	Name string `json:"name"`

	// 资源共享实例的描述。
	Description *string `json:"description,omitempty"`
}

The request body of the UpdateResourceShare operation.

func (UpdateResourceShareReqBody) String

type UpdateResourceShareRequest

type UpdateResourceShareRequest struct {

	// 资源共享实例的ID。
	ResourceShareId string `json:"resource_share_id"`

	Body *UpdateResourceShareReqBody `json:"body,omitempty"`
}

Request Object

func (UpdateResourceShareRequest) String

type UpdateResourceShareResponse

type UpdateResourceShareResponse struct {
	ResourceShare  *ResourceShare `json:"resource_share,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (UpdateResourceShareResponse) String

Source Files

Jump to

Keyboard shortcuts

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