model

package
v0.0.4-beta Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionProgress

type ActionProgress struct {
	Creating *string `json:"CREATING,omitempty"`
}

func (ActionProgress) String

func (o ActionProgress) String() string

type BatchAddSharedTagsRequest

type BatchAddSharedTagsRequest struct {
	ContentType string `json:"Content-Type"`

	ShareId string `json:"share_id"`

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

func (BatchAddSharedTagsRequest) String

func (o BatchAddSharedTagsRequest) String() string

type BatchAddSharedTagsRequestBody

type BatchAddSharedTagsRequestBody struct {
	Action BatchAddSharedTagsRequestBodyAction `json:"action"`

	Tags *[]ResourceTag `json:"tags,omitempty"`

	SysTags *[]ResourceTag `json:"sys_tags,omitempty"`
}

func (BatchAddSharedTagsRequestBody) String

type BatchAddSharedTagsRequestBodyAction

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

func (BatchAddSharedTagsRequestBodyAction) MarshalJSON

func (c BatchAddSharedTagsRequestBodyAction) MarshalJSON() ([]byte, error)

func (*BatchAddSharedTagsRequestBodyAction) UnmarshalJSON

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

func (BatchAddSharedTagsRequestBodyAction) Value

type BatchAddSharedTagsRequestBodyActionEnum

type BatchAddSharedTagsRequestBodyActionEnum struct {
	CREATE BatchAddSharedTagsRequestBodyAction
}

func GetBatchAddSharedTagsRequestBodyActionEnum

func GetBatchAddSharedTagsRequestBodyActionEnum() BatchAddSharedTagsRequestBodyActionEnum

type BatchAddSharedTagsResponse

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

func (BatchAddSharedTagsResponse) String

type ChangeSecurityGroup

type ChangeSecurityGroup struct {
	SecurityGroupId string `json:"security_group_id"`
}

func (ChangeSecurityGroup) String

func (o ChangeSecurityGroup) String() string

type ChangeSecurityGroupRequest

type ChangeSecurityGroupRequest struct {
	ContentType string `json:"Content-Type"`

	ShareId string `json:"share_id"`

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

func (ChangeSecurityGroupRequest) String

type ChangeSecurityGroupRequestBody

type ChangeSecurityGroupRequestBody struct {
	ChangeSecurityGroup *ChangeSecurityGroup `json:"change_security_group"`
}

func (ChangeSecurityGroupRequestBody) String

type ChangeSecurityGroupResponse

type ChangeSecurityGroupResponse struct {
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

func (ChangeSecurityGroupResponse) String

type ChangeShareNameReq

type ChangeShareNameReq struct {
	ChangeName *ShareName `json:"change_name"`
}

func (ChangeShareNameReq) String

func (o ChangeShareNameReq) String() string

type ChangeShareNameRequest

type ChangeShareNameRequest struct {
	ContentType string `json:"Content-Type"`

	ShareId string `json:"share_id"`

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

func (ChangeShareNameRequest) String

func (o ChangeShareNameRequest) String() string

type ChangeShareNameResponse

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

func (ChangeShareNameResponse) String

func (o ChangeShareNameResponse) String() string

type CreateShareRequest

type CreateShareRequest struct {
	ContentType string `json:"Content-Type"`

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

func (CreateShareRequest) String

func (o CreateShareRequest) String() string

type CreateShareRequestBody

type CreateShareRequestBody struct {
	Share *Share `json:"share"`
}

func (CreateShareRequestBody) String

func (o CreateShareRequestBody) String() string

type CreateShareResponse

type CreateShareResponse struct {
	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

func (CreateShareResponse) String

func (o CreateShareResponse) String() string

type CreateSharedTagRequest

type CreateSharedTagRequest struct {
	ContentType string `json:"Content-Type"`

	ShareId string `json:"share_id"`

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

func (CreateSharedTagRequest) String

func (o CreateSharedTagRequest) String() string

type CreateSharedTagRequestBody

type CreateSharedTagRequestBody struct {
	Tag *ResourceTag `json:"tag"`
}

func (CreateSharedTagRequestBody) String

type CreateSharedTagResponse

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

func (CreateSharedTagResponse) String

func (o CreateSharedTagResponse) String() string

type DeleteShareRequest

type DeleteShareRequest struct {
	ContentType string `json:"Content-Type"`

	ShareId string `json:"share_id"`
}

func (DeleteShareRequest) String

func (o DeleteShareRequest) String() string

type DeleteShareResponse

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

func (DeleteShareResponse) String

func (o DeleteShareResponse) String() string

type DeleteSharedTagRequest

type DeleteSharedTagRequest struct {
	ContentType string `json:"Content-Type"`

	ShareId string `json:"share_id"`

	Key string `json:"key"`
}

func (DeleteSharedTagRequest) String

func (o DeleteSharedTagRequest) String() string

type DeleteSharedTagResponse

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

func (DeleteSharedTagResponse) String

func (o DeleteSharedTagResponse) String() string

type ExpandShareRequest

type ExpandShareRequest struct {
	ContentType string `json:"Content-Type"`

	ShareId string `json:"share_id"`

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

func (ExpandShareRequest) String

func (o ExpandShareRequest) String() string

type ExpandShareRequestBody

type ExpandShareRequestBody struct {
	Extend *Extend `json:"extend"`
}

func (ExpandShareRequestBody) String

func (o ExpandShareRequestBody) String() string

type ExpandShareResponse

type ExpandShareResponse struct {
	Id *string `json:"id,omitempty"`

	Name           *string `json:"name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

func (ExpandShareResponse) String

func (o ExpandShareResponse) String() string

type Extend

type Extend struct {
	NewSize int32 `json:"new_size"`
}

func (Extend) String

func (o Extend) String() string

type ListSharedTagsRequest

type ListSharedTagsRequest struct {
	ContentType string `json:"Content-Type"`
}

func (ListSharedTagsRequest) String

func (o ListSharedTagsRequest) String() string

type ListSharedTagsResponse

type ListSharedTagsResponse struct {
	Tags           *[]Tag `json:"tags,omitempty"`
	HttpStatusCode int    `json:"-"`
}

func (ListSharedTagsResponse) String

func (o ListSharedTagsResponse) String() string

type ListSharesRequest

type ListSharesRequest struct {
	ContentType string `json:"Content-Type"`

	Limit *int64 `json:"limit,omitempty"`

	Offset *int64 `json:"offset,omitempty"`
}

func (ListSharesRequest) String

func (o ListSharesRequest) String() string

type ListSharesResponse

type ListSharesResponse struct {
	Shares *[]Shares `json:"shares,omitempty"`

	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

func (ListSharesResponse) String

func (o ListSharesResponse) String() string

type Metadata

type Metadata struct {
	CryptKeyId *string `json:"crypt_key_id,omitempty"`

	DedicatedFlavor *string `json:"dedicated_flavor,omitempty"`

	DedicatedStorageId *string `json:"dedicated_storage_id,omitempty"`

	ExpandType *string `json:"expand_type,omitempty"`
}

func (Metadata) String

func (o Metadata) String() string

type ResourceTag

type ResourceTag struct {
	Key string `json:"key"`

	Value string `json:"value"`
}

func (ResourceTag) String

func (o ResourceTag) String() string

type Share

type Share struct {
	AvailabilityZone string `json:"availability_zone"`

	Description *string `json:"description,omitempty"`

	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	Metadata *Metadata `json:"metadata,omitempty"`

	Name string `json:"name"`

	SecurityGroupId string `json:"security_group_id"`

	ShareProto string `json:"share_proto"`

	ShareType string `json:"share_type"`

	Size int32 `json:"size"`

	SubnetId string `json:"subnet_id"`

	VpcId string `json:"vpc_id"`

	BackupId *string `json:"backup_id,omitempty"`
}

func (Share) String

func (o Share) String() string

type ShareName

type ShareName struct {
	Name string `json:"name"`
}

func (ShareName) String

func (o ShareName) String() string

type Shares

type Shares struct {
	ActionProgress *ActionProgress `json:"action_progress,omitempty"`

	Version *string `json:"version,omitempty"`

	AvailCapacity *string `json:"avail_capacity,omitempty"`

	AvailabilityZone *string `json:"availability_zone,omitempty"`

	AzName *string `json:"az_name,omitempty"`

	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	CryptKeyId *string `json:"crypt_key_id,omitempty"`

	ExpandType *string `json:"expand_type,omitempty"`

	ExportLocation *string `json:"export_location,omitempty"`

	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	PayModel *SharesPayModel `json:"pay_model,omitempty"`

	Region *string `json:"region,omitempty"`

	SecurityGroupId *string `json:"security_group_id,omitempty"`

	ShareProto *string `json:"share_proto,omitempty"`

	ShareType *string `json:"share_type,omitempty"`

	Size *string `json:"size,omitempty"`

	Status *string `json:"status,omitempty"`

	SubStatus *string `json:"sub_status,omitempty"`

	SubnetId *string `json:"subnet_id,omitempty"`

	VpcId *string `json:"vpc_id,omitempty"`
}

func (Shares) String

func (o Shares) String() string

type SharesPayModel

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

func (SharesPayModel) MarshalJSON

func (c SharesPayModel) MarshalJSON() ([]byte, error)

func (*SharesPayModel) UnmarshalJSON

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

func (SharesPayModel) Value

func (c SharesPayModel) Value() string

type SharesPayModelEnum

type SharesPayModelEnum struct {
	E_0 SharesPayModel
	E_1 SharesPayModel
}

func GetSharesPayModelEnum

func GetSharesPayModelEnum() SharesPayModelEnum

type ShowShareRequest

type ShowShareRequest struct {
	ContentType string `json:"Content-Type"`

	ShareId string `json:"share_id"`
}

func (ShowShareRequest) String

func (o ShowShareRequest) String() string

type ShowShareResponse

type ShowShareResponse struct {
	ActionProgress *ActionProgress `json:"action_progress,omitempty"`

	Version *string `json:"version,omitempty"`

	AvailCapacity *string `json:"avail_capacity,omitempty"`

	AvailabilityZone *string `json:"availability_zone,omitempty"`

	AzName *string `json:"az_name,omitempty"`

	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	CryptKeyId *string `json:"crypt_key_id,omitempty"`

	ExpandType *string `json:"expand_type,omitempty"`

	ExportLocation *string `json:"export_location,omitempty"`

	Id *string `json:"id,omitempty"`

	Name *string `json:"name,omitempty"`

	PayModel *ShowShareResponsePayModel `json:"pay_model,omitempty"`

	Region *string `json:"region,omitempty"`

	SecurityGroupId *string `json:"security_group_id,omitempty"`

	ShareProto *string `json:"share_proto,omitempty"`

	ShareType *string `json:"share_type,omitempty"`

	Size *string `json:"size,omitempty"`

	Status *string `json:"status,omitempty"`

	SubStatus *string `json:"sub_status,omitempty"`

	SubnetId *string `json:"subnet_id,omitempty"`

	VpcId          *string `json:"vpc_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

func (ShowShareResponse) String

func (o ShowShareResponse) String() string

type ShowShareResponsePayModel

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

func (ShowShareResponsePayModel) MarshalJSON

func (c ShowShareResponsePayModel) MarshalJSON() ([]byte, error)

func (*ShowShareResponsePayModel) UnmarshalJSON

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

func (ShowShareResponsePayModel) Value

type ShowShareResponsePayModelEnum

type ShowShareResponsePayModelEnum struct {
	E_0 ShowShareResponsePayModel
	E_1 ShowShareResponsePayModel
}

func GetShowShareResponsePayModelEnum

func GetShowShareResponsePayModelEnum() ShowShareResponsePayModelEnum

type ShowSharedTagsRequest

type ShowSharedTagsRequest struct {
	ContentType string `json:"Content-Type"`

	ShareId string `json:"share_id"`
}

func (ShowSharedTagsRequest) String

func (o ShowSharedTagsRequest) String() string

type ShowSharedTagsResponse

type ShowSharedTagsResponse struct {
	Tags *[]ResourceTag `json:"tags,omitempty"`

	SysTags        *[]ResourceTag `json:"sys_tags,omitempty"`
	HttpStatusCode int            `json:"-"`
}

func (ShowSharedTagsResponse) String

func (o ShowSharedTagsResponse) String() string

type Tag

type Tag struct {
	Key string `json:"key"`

	Values []string `json:"values"`
}

func (Tag) String

func (o Tag) String() string

Jump to

Keyboard shortcuts

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