members

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchAddMembers

func BatchAddMembers(client *golangsdk.ServiceClient, opts BatchMembersOpts) (*string, error)

func BatchDeleteMembers

func BatchDeleteMembers(client *golangsdk.ServiceClient, opts BatchMembersOpts) (*string, error)

func BatchUpdateMembers

func BatchUpdateMembers(client *golangsdk.ServiceClient, opts BatchUpdateMembersOpts) (*string, error)

Types

type BatchMembersOpts

type BatchMembersOpts struct {
	// Specifies the image IDs.
	Images []string `json:"images"`
	// Specifies the project IDs.
	Projects []string `json:"projects"`
}

type BatchUpdateMembersOpts

type BatchUpdateMembersOpts struct {
	// Specifies the image IDs.
	Images []string `json:"images" required:"true"`
	// Specifies the project ID.
	ProjectId string `json:"project_id" required:"true"`
	// Specifies whether a shared image will be accepted or declined.
	//
	// The value can be one of the following:
	//
	// accepted: indicates that a shared image is accepted. After an image is accepted, the image is displayed in the image list. You can use the image to create ECSs.
	//
	// rejected: indicates that a shared image is declined. After an image is declined, the image is not displayed in the image list. However, you can still use the image to create ECSs.
	Status string `json:"status" required:"true"`
	// Specifies the ID of a vault.
	//
	// This parameter is mandatory if you want to accept a shared full-ECS image created from a CBR backup.
	//
	// You can obtain the vault ID from the CBR console or section "Querying the Vault List" in Cloud Backup and Recovery API Reference.
	VaultId string `json:"vault_id,omitempty"`
}

Jump to

Keyboard shortcuts

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