model

package
v0.0.80 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociateKeypairRequest

type AssociateKeypairRequest struct {
	Body *AssociateKeypairRequestBody `json:"body,omitempty"`
}

Request Object

func (AssociateKeypairRequest) String

func (o AssociateKeypairRequest) String() string

type AssociateKeypairRequestBody

type AssociateKeypairRequestBody struct {
	KeypairName string `json:"keypair_name"`

	Server *EcsServerInfo `json:"server"`
}

绑定密钥对描述消息体

func (AssociateKeypairRequestBody) String

type AssociateKeypairResponse

type AssociateKeypairResponse struct {
	TaskId         *string `json:"task_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (AssociateKeypairResponse) String

func (o AssociateKeypairResponse) String() string

type Auth

type Auth struct {
	Type *AuthType `json:"type,omitempty"`

	Key *string `json:"key,omitempty"`
}

可选字段,鉴权认证类型。替换时需要该参数,重置时不需要该参数。

func (Auth) String

func (o Auth) String() string

type AuthType

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

func (AuthType) MarshalJSON

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

func (*AuthType) UnmarshalJSON

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

type AuthTypeEnum

type AuthTypeEnum struct {
	PASSWORD AuthType
	KEYPAIR  AuthType
}

func GetAuthTypeEnum

func GetAuthTypeEnum() AuthTypeEnum

type CreateKeypairAction

type CreateKeypairAction struct {
	Name string `json:"name"`

	Type *CreateKeypairActionType `json:"type,omitempty"`

	PublicKey *string `json:"public_key,omitempty"`

	Scope *CreateKeypairActionScope `json:"scope,omitempty"`

	UserId *string `json:"user_id,omitempty"`

	KeyProtection *KeyProtection `json:"key_protection,omitempty"`
}

创建密钥对请求体请求参数

func (CreateKeypairAction) String

func (o CreateKeypairAction) String() string

type CreateKeypairActionScope

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

func (CreateKeypairActionScope) MarshalJSON

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

func (*CreateKeypairActionScope) UnmarshalJSON

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

type CreateKeypairActionScopeEnum

type CreateKeypairActionScopeEnum struct {
	DOMAIN CreateKeypairActionScope
	USER   CreateKeypairActionScope
}

func GetCreateKeypairActionScopeEnum

func GetCreateKeypairActionScopeEnum() CreateKeypairActionScopeEnum

type CreateKeypairActionType

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

func (CreateKeypairActionType) MarshalJSON

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

func (*CreateKeypairActionType) UnmarshalJSON

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

type CreateKeypairActionTypeEnum

type CreateKeypairActionTypeEnum struct {
	SSH  CreateKeypairActionType
	X509 CreateKeypairActionType
}

func GetCreateKeypairActionTypeEnum

func GetCreateKeypairActionTypeEnum() CreateKeypairActionTypeEnum

type CreateKeypairRequest

type CreateKeypairRequest struct {
	Body *CreateKeypairRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateKeypairRequest) String

func (o CreateKeypairRequest) String() string

type CreateKeypairRequestBody

type CreateKeypairRequestBody struct {
	Keypair *CreateKeypairAction `json:"keypair"`
}

创建密钥对请求体

func (CreateKeypairRequestBody) String

func (o CreateKeypairRequestBody) String() string

type CreateKeypairResp

type CreateKeypairResp struct {
	Name *string `json:"name,omitempty"`

	Type *CreateKeypairRespType `json:"type,omitempty"`

	PublicKey *string `json:"public_key,omitempty"`

	PrivateKey *string `json:"private_key,omitempty"`

	Fingerprint *string `json:"fingerprint,omitempty"`

	UserId *string `json:"user_id,omitempty"`
}

SSH密钥对信息详情

func (CreateKeypairResp) String

func (o CreateKeypairResp) String() string

type CreateKeypairRespType

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

func (CreateKeypairRespType) MarshalJSON

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

func (*CreateKeypairRespType) UnmarshalJSON

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

type CreateKeypairRespTypeEnum

type CreateKeypairRespTypeEnum struct {
	SSH  CreateKeypairRespType
	X509 CreateKeypairRespType
}

func GetCreateKeypairRespTypeEnum

func GetCreateKeypairRespTypeEnum() CreateKeypairRespTypeEnum

type CreateKeypairResponse

type CreateKeypairResponse struct {
	Keypair        *CreateKeypairResp `json:"keypair,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (CreateKeypairResponse) String

func (o CreateKeypairResponse) String() string

type DeleteAllFailedTaskRequest

type DeleteAllFailedTaskRequest struct {
}

Request Object

func (DeleteAllFailedTaskRequest) String

type DeleteAllFailedTaskResponse

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

Response Object

func (DeleteAllFailedTaskResponse) String

type DeleteFailedTaskRequest

type DeleteFailedTaskRequest struct {
	TaskId string `json:"task_id"`
}

Request Object

func (DeleteFailedTaskRequest) String

func (o DeleteFailedTaskRequest) String() string

type DeleteFailedTaskResponse

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

Response Object

func (DeleteFailedTaskResponse) String

func (o DeleteFailedTaskResponse) String() string

type DeleteKeypairRequest

type DeleteKeypairRequest struct {
	KeypairName string `json:"keypair_name"`
}

Request Object

func (DeleteKeypairRequest) String

func (o DeleteKeypairRequest) String() string

type DeleteKeypairResponse

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

Response Object

func (DeleteKeypairResponse) String

func (o DeleteKeypairResponse) String() string

type DisassociateEcsServerInfo

type DisassociateEcsServerInfo struct {
	Id string `json:"id"`

	Auth *Auth `json:"auth,omitempty"`
}

需要绑定密钥对的虚拟机信息。

func (DisassociateEcsServerInfo) String

func (o DisassociateEcsServerInfo) String() string

type DisassociateKeypairRequest

type DisassociateKeypairRequest struct {
	Body *DisassociateKeypairRequestBody `json:"body,omitempty"`
}

Request Object

func (DisassociateKeypairRequest) String

type DisassociateKeypairRequestBody

type DisassociateKeypairRequestBody struct {
	Server *DisassociateEcsServerInfo `json:"server"`
}

解绑密钥对描述消息体

func (DisassociateKeypairRequestBody) String

type DisassociateKeypairResponse

type DisassociateKeypairResponse struct {
	TaskId         *string `json:"task_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DisassociateKeypairResponse) String

type EcsServerInfo

type EcsServerInfo struct {
	Id string `json:"id"`

	Auth *Auth `json:"auth,omitempty"`

	DisablePassword *bool `json:"disable_password,omitempty"`
}

需要绑定密钥对的虚拟机信息。

func (EcsServerInfo) String

func (o EcsServerInfo) String() string

type Encryption

type Encryption struct {
	Type *EncryptionType `json:"type,omitempty"`

	KmsKeyName *string `json:"kms_key_name,omitempty"`
}

对私钥进行加密存储的方式。

func (Encryption) String

func (o Encryption) String() string

type EncryptionType

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

func (EncryptionType) MarshalJSON

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

func (*EncryptionType) UnmarshalJSON

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

type EncryptionTypeEnum

type EncryptionTypeEnum struct {
	DEFAULT EncryptionType
	KMS     EncryptionType
}

func GetEncryptionTypeEnum

func GetEncryptionTypeEnum() EncryptionTypeEnum

type FailedTasks

type FailedTasks struct {
	TaskId *string `json:"task_id,omitempty"`

	OperateType *FailedTasksOperateType `json:"operate_type,omitempty"`

	TaskTime *string `json:"task_time,omitempty"`

	TaskErrorCode *string `json:"task_error_code,omitempty"`

	TaskErrorMsg *string `json:"task_error_msg,omitempty"`

	ServerName *string `json:"server_name,omitempty"`

	ServerId *string `json:"server_id,omitempty"`

	KeypairName *string `json:"keypair_name,omitempty"`
}

失败的任务详细信息。

func (FailedTasks) String

func (o FailedTasks) String() string

type FailedTasksOperateType

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

func (FailedTasksOperateType) MarshalJSON

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

func (*FailedTasksOperateType) UnmarshalJSON

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

type FailedTasksOperateTypeEnum

type FailedTasksOperateTypeEnum struct {
	FAILED_RESET   FailedTasksOperateType
	FAILED_REPLACE FailedTasksOperateType
	FAILED_UNBIND  FailedTasksOperateType
}

func GetFailedTasksOperateTypeEnum

func GetFailedTasksOperateTypeEnum() FailedTasksOperateTypeEnum

type KeyProtection

type KeyProtection struct {
	PrivateKey *string `json:"private_key,omitempty"`

	Encryption *Encryption `json:"encryption,omitempty"`
}

SSH密钥对私钥托管与保护。

func (KeyProtection) String

func (o KeyProtection) String() string

type Keypair

type Keypair struct {
	Name *string `json:"name,omitempty"`

	Type *KeypairType `json:"type,omitempty"`

	Scope *KeypairScope `json:"scope,omitempty"`

	PublicKey *string `json:"public_key,omitempty"`

	Fingerprint *string `json:"fingerprint,omitempty"`

	IsKeyProtection *bool `json:"is_key_protection,omitempty"`

	FrozenState *string `json:"frozen_state,omitempty"`
}

密钥对信息

func (Keypair) String

func (o Keypair) String() string

type KeypairDetail

type KeypairDetail struct {
	Name *string `json:"name,omitempty"`

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

	Type *KeypairDetailType `json:"type,omitempty"`

	Scope *KeypairDetailScope `json:"scope,omitempty"`

	PublicKey *string `json:"public_key,omitempty"`

	Fingerprint *string `json:"fingerprint,omitempty"`

	IsKeyProtection *bool `json:"is_key_protection,omitempty"`

	Deleted *bool `json:"deleted,omitempty"`

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

	UserId *string `json:"user_id,omitempty"`

	CreateTime *int64 `json:"create_time,omitempty"`

	DeleteTime *int64 `json:"delete_time,omitempty"`

	UpdateTime *int64 `json:"update_time,omitempty"`

	FrozenState *int32 `json:"frozen_state,omitempty"`
}

密钥对详细信息

func (KeypairDetail) String

func (o KeypairDetail) String() string

type KeypairDetailScope

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

func (KeypairDetailScope) MarshalJSON

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

func (*KeypairDetailScope) UnmarshalJSON

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

type KeypairDetailScopeEnum

type KeypairDetailScopeEnum struct {
	DOMAIN KeypairDetailScope
	USER   KeypairDetailScope
}

func GetKeypairDetailScopeEnum

func GetKeypairDetailScopeEnum() KeypairDetailScopeEnum

type KeypairDetailType

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

func (KeypairDetailType) MarshalJSON

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

func (*KeypairDetailType) UnmarshalJSON

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

type KeypairDetailTypeEnum

type KeypairDetailTypeEnum struct {
	SSH  KeypairDetailType
	X509 KeypairDetailType
}

func GetKeypairDetailTypeEnum

func GetKeypairDetailTypeEnum() KeypairDetailTypeEnum

type KeypairScope

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

func (KeypairScope) MarshalJSON

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

func (*KeypairScope) UnmarshalJSON

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

type KeypairScopeEnum

type KeypairScopeEnum struct {
	DOMAIN KeypairScope
	USER   KeypairScope
}

func GetKeypairScopeEnum

func GetKeypairScopeEnum() KeypairScopeEnum

type KeypairType

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

func (KeypairType) MarshalJSON

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

func (*KeypairType) UnmarshalJSON

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

type KeypairTypeEnum

type KeypairTypeEnum struct {
	SSH  KeypairType
	X509 KeypairType
}

func GetKeypairTypeEnum

func GetKeypairTypeEnum() KeypairTypeEnum

type Keypairs

type Keypairs struct {
	Keypair *Keypair `json:"keypair"`
}

func (Keypairs) String

func (o Keypairs) String() string

type ListFailedTaskRequest

type ListFailedTaskRequest struct {
	Limit *string `json:"limit,omitempty"`

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

Request Object

func (ListFailedTaskRequest) String

func (o ListFailedTaskRequest) String() string

type ListFailedTaskResponse

type ListFailedTaskResponse struct {
	Total *int32 `json:"total,omitempty"`

	Tasks          *[]FailedTasks `json:"tasks,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ListFailedTaskResponse) String

func (o ListFailedTaskResponse) String() string

type ListKeypairDetailRequest

type ListKeypairDetailRequest struct {
	KeypairName string `json:"keypair_name"`
}

Request Object

func (ListKeypairDetailRequest) String

func (o ListKeypairDetailRequest) String() string

type ListKeypairDetailResponse

type ListKeypairDetailResponse struct {
	Keypair        *KeypairDetail `json:"keypair,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ListKeypairDetailResponse) String

func (o ListKeypairDetailResponse) String() string

type ListKeypairTaskRequest

type ListKeypairTaskRequest struct {
	TaskId string `json:"task_id"`
}

Request Object

func (ListKeypairTaskRequest) String

func (o ListKeypairTaskRequest) String() string

type ListKeypairTaskResponse

type ListKeypairTaskResponse struct {
	ServerId *string `json:"server_id,omitempty"`

	TaskId *string `json:"task_id,omitempty"`

	TaskStatus     *ListKeypairTaskResponseTaskStatus `json:"task_status,omitempty"`
	HttpStatusCode int                                `json:"-"`
}

Response Object

func (ListKeypairTaskResponse) String

func (o ListKeypairTaskResponse) String() string

type ListKeypairTaskResponseTaskStatus

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

func (ListKeypairTaskResponseTaskStatus) MarshalJSON

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

func (*ListKeypairTaskResponseTaskStatus) UnmarshalJSON

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

type ListKeypairsRequest

type ListKeypairsRequest struct {
	Limit *string `json:"limit,omitempty"`

	Marker *string `json:"marker,omitempty"`
}

Request Object

func (ListKeypairsRequest) String

func (o ListKeypairsRequest) String() string

type ListKeypairsResponse

type ListKeypairsResponse struct {
	Keypairs *[]Keypairs `json:"keypairs,omitempty"`

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

Response Object

func (ListKeypairsResponse) String

func (o ListKeypairsResponse) String() string

type ListRunningTaskRequest

type ListRunningTaskRequest struct {
	Limit *int32 `json:"limit,omitempty"`

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

Request Object

func (ListRunningTaskRequest) String

func (o ListRunningTaskRequest) String() string

type ListRunningTaskResponse

type ListRunningTaskResponse struct {
	Total *int32 `json:"total,omitempty"`

	Tasks          *[]RunningTasks `json:"tasks,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ListRunningTaskResponse) String

func (o ListRunningTaskResponse) String() string

type PageInfo added in v0.0.74

type PageInfo struct {
	NextMarker *string `json:"next_marker,omitempty"`

	PreviousMarker *string `json:"previous_marker,omitempty"`

	CurrentCount *int32 `json:"current_count,omitempty"`
}

分页信息

func (PageInfo) String added in v0.0.74

func (o PageInfo) String() string

type RunningTasks

type RunningTasks struct {
	TaskId *string `json:"task_id,omitempty"`

	OperateType *RunningTasksOperateType `json:"operate_type,omitempty"`

	TaskTime *string `json:"task_time,omitempty"`

	ServerName *string `json:"server_name,omitempty"`

	ServerId *string `json:"server_id,omitempty"`

	KeypairName *string `json:"keypair_name,omitempty"`
}

正在处理的任务详细信息。

func (RunningTasks) String

func (o RunningTasks) String() string

type RunningTasksOperateType

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

func (RunningTasksOperateType) MarshalJSON

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

func (*RunningTasksOperateType) UnmarshalJSON

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

type RunningTasksOperateTypeEnum

type RunningTasksOperateTypeEnum struct {
	FAILED_RESET   RunningTasksOperateType
	FAILED_REPLACE RunningTasksOperateType
	FAILED_UNBIND  RunningTasksOperateType
}

func GetRunningTasksOperateTypeEnum

func GetRunningTasksOperateTypeEnum() RunningTasksOperateTypeEnum

type UpdateKeypairDescriptionReq

type UpdateKeypairDescriptionReq struct {
	Description string `json:"description"`
}

更新SSH密钥对描述消息体

func (UpdateKeypairDescriptionReq) String

type UpdateKeypairDescriptionRequest

type UpdateKeypairDescriptionRequest struct {
	KeypairName string `json:"keypair_name"`

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

Request Object

func (UpdateKeypairDescriptionRequest) String

type UpdateKeypairDescriptionRequestBody

type UpdateKeypairDescriptionRequestBody struct {
	Keypair *UpdateKeypairDescriptionReq `json:"keypair"`
}

更新SSH密钥对描述

func (UpdateKeypairDescriptionRequestBody) String

type UpdateKeypairDescriptionResponse

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

Response Object

func (UpdateKeypairDescriptionResponse) String

Jump to

Keyboard shortcuts

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