model

package
v0.0.104 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionResources

type ActionResources struct {

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

	ResourceDetail *Secret `json:"resource_detail,omitempty"`

	// 资源名称,默认为空字符串。
	ResourceName *string `json:"resource_name,omitempty"`

	// 标签列表,没有标签,数组默认为空。
	Tags *[]TagItem `json:"tags,omitempty"`
}

func (ActionResources) String

func (o ActionResources) String() string

type BatchCreateOrDeleteTagsRequest

type BatchCreateOrDeleteTagsRequest struct {

	// 凭据ID
	SecretId string `json:"secret_id"`

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

Request Object

func (BatchCreateOrDeleteTagsRequest) String

type BatchCreateOrDeleteTagsRequestBody

type BatchCreateOrDeleteTagsRequestBody struct {

	// 标签列表,key和value键值对的集合。
	Tags *[]TagItem `json:"tags,omitempty"`

	// 操作标识: 仅限于“create”和“delete”。
	Action *string `json:"action,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (BatchCreateOrDeleteTagsRequestBody) String

type BatchCreateOrDeleteTagsResponse

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

Response Object

func (BatchCreateOrDeleteTagsResponse) String

type CreateSecretRequest

type CreateSecretRequest struct {
	Body *CreateSecretRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateSecretRequest) String

func (o CreateSecretRequest) String() string

type CreateSecretRequestBody

type CreateSecretRequestBody struct {

	// 凭据名称。  约束:取值范围为1到64个字符,满足正则匹配“^[a-zA-Z0-9._-]{1,64}$”。
	Name string `json:"name"`

	// 用于加密保护凭据值的KMS主密钥ID,如果您未指定此参数,凭据管理服务将默认使用名为csms/default的默认主密钥,用于加密您账号在本项目中创建的凭据值。如果用户账号下不存在该名称的主密钥,则凭据管理服务自动为您创建该名称的密钥。
	KmsKeyId *string `json:"kms_key_id,omitempty"`

	// 凭据的描述信息。  约束:2048字节。
	Description *string `json:"description,omitempty"`

	// 二进制类型凭据在base64编码后的明文,凭据管理服务将其加密后,存入凭据的初始版本中。  类型:base64编码的二进制数据对象。  约束:secret_binary和secret_string必须且只能设置一个,最大32K。
	SecretBinary *string `json:"secret_binary,omitempty"`

	// 文本类型凭据的明文,凭据管理服务将其加密后,存入凭据的初始版本中。  约束:secret_binary和secret_string必须且只能设置一个,最大32K。
	SecretString *string `json:"secret_string,omitempty"`
}

创建凭据请求消息体。

func (CreateSecretRequestBody) String

func (o CreateSecretRequestBody) String() string

type CreateSecretResponse

type CreateSecretResponse struct {
	Secret         *Secret `json:"secret,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateSecretResponse) String

func (o CreateSecretResponse) String() string

type CreateSecretTagRequest

type CreateSecretTagRequest struct {

	// 凭据ID
	SecretId string `json:"secret_id"`

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

Request Object

func (CreateSecretTagRequest) String

func (o CreateSecretTagRequest) String() string

type CreateSecretTagRequestBody

type CreateSecretTagRequestBody struct {
	Tag *TagItem `json:"tag,omitempty"`
}

func (CreateSecretTagRequestBody) String

type CreateSecretTagResponse

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

Response Object

func (CreateSecretTagResponse) String

func (o CreateSecretTagResponse) String() string

type CreateSecretVersionRequest

type CreateSecretVersionRequest struct {

	// 凭据名称。
	SecretName string `json:"secret_name"`

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

Request Object

func (CreateSecretVersionRequest) String

type CreateSecretVersionRequestBody

type CreateSecretVersionRequestBody struct {

	// 新创建凭据的凭据值,将其加密后,存入初始版本中。  类型:base64编码的二进制数据对象。  约束:secret_binary和secret_string必须且只能设置一个,最大32K。
	SecretBinary *string `json:"secret_binary,omitempty"`

	// 新创建凭据的凭据值,将其加密后,存入初始版本中。  约束:secret_binary和 secret_string必须且只能设置一个,最大32K。
	SecretString *string `json:"secret_string,omitempty"`

	// 凭据版本在存入时需要被同时标记的版本状态。如果您不指定此参数,凭据管家默认为新版本标记SYSCURRENT  约束:数组大小:最小1,最大12。stage长度:最小1字节,最大64字节。
	VersionStages *[]string `json:"version_stages,omitempty"`
}

创建凭据版本请求体。

func (CreateSecretVersionRequestBody) String

type CreateSecretVersionResponse

type CreateSecretVersionResponse struct {
	VersionMetadata *VersionMetadata `json:"version_metadata,omitempty"`
	HttpStatusCode  int              `json:"-"`
}

Response Object

func (CreateSecretVersionResponse) String

type DeleteSecretForScheduleRequest

type DeleteSecretForScheduleRequest struct {

	// 凭据名称。
	SecretName string `json:"secret_name"`

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

Request Object

func (DeleteSecretForScheduleRequest) String

type DeleteSecretForScheduleRequestBody

type DeleteSecretForScheduleRequestBody struct {

	// 创建定时删除凭据的任务,且指定可恢复的天数。  约束:7~30。  默认值:30。
	RecoveryWindowInDays int32 `json:"recovery_window_in_days"`
}

func (DeleteSecretForScheduleRequestBody) String

type DeleteSecretForScheduleResponse

type DeleteSecretForScheduleResponse struct {
	Secret         *Secret `json:"secret,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteSecretForScheduleResponse) String

type DeleteSecretRequest

type DeleteSecretRequest struct {

	// 凭据名称。
	SecretName string `json:"secret_name"`
}

Request Object

func (DeleteSecretRequest) String

func (o DeleteSecretRequest) String() string

type DeleteSecretResponse

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

Response Object

func (DeleteSecretResponse) String

func (o DeleteSecretResponse) String() string

type DeleteSecretStageRequest

type DeleteSecretStageRequest struct {

	// 凭据的资源标识符。
	SecretName string `json:"secret_name"`

	// 凭据版本状态的名称。
	StageName string `json:"stage_name"`
}

Request Object

func (DeleteSecretStageRequest) String

func (o DeleteSecretStageRequest) String() string

type DeleteSecretStageResponse

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

Response Object

func (DeleteSecretStageResponse) String

func (o DeleteSecretStageResponse) String() string

type DeleteSecretTagRequest

type DeleteSecretTagRequest struct {

	// 凭据ID
	SecretId string `json:"secret_id"`

	// 标签键的值
	Key string `json:"key"`
}

Request Object

func (DeleteSecretTagRequest) String

func (o DeleteSecretTagRequest) String() string

type DeleteSecretTagResponse

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

Response Object

func (DeleteSecretTagResponse) String

func (o DeleteSecretTagResponse) String() string

type DownloadSecretBlobRequest added in v0.0.103

type DownloadSecretBlobRequest struct {

	// 凭据的名称。
	SecretName string `json:"secret_name"`
}

Request Object

func (DownloadSecretBlobRequest) String added in v0.0.103

func (o DownloadSecretBlobRequest) String() string

type DownloadSecretBlobResponse added in v0.0.103

type DownloadSecretBlobResponse struct {

	// 将指定凭据对象进行备份后得到的凭据备份文件,备份文件包含有凭据当前所有的凭据版本信息,备份文件经过加密与编码,内容不可直接读。
	SecretBlob     *string `json:"secret_blob,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DownloadSecretBlobResponse) String added in v0.0.103

type ListProjectSecretsTagsRequest

type ListProjectSecretsTagsRequest struct {
}

Request Object

func (ListProjectSecretsTagsRequest) String

type ListProjectSecretsTagsResponse

type ListProjectSecretsTagsResponse struct {

	// 标签列表,key和value键值对的集合。  - key:表示标签键,一个凭据下最多包含10个key,key不能为空,不能重复,同一个key中value不能重复。key最大长度为36个字符。  - value:表示标签值。每个值最大长度43个字符,value之间为“与”的关系。
	Tags           *[]Tag `json:"tags,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListProjectSecretsTagsResponse) String

type ListResourceInstancesRequest

type ListResourceInstancesRequest struct {

	// 定值为resource_instances。
	ResourceInstances string `json:"resource_instances"`

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

Request Object

func (ListResourceInstancesRequest) String

type ListResourceInstancesRequestBody

type ListResourceInstancesRequestBody struct {

	// 查询记录数(“action”为“count”时,无需设置此参数),如果“action”为“filter”,默认为“10”。 limit的取值范围为“1-1000”。
	Limit *string `json:"limit,omitempty"`

	// 索引位置。从offset指定的下一条数据开始查询。查询第一页数据时,将查询前一页数据时响应体中的值带入此参数(“action”为“count”时,无需设置此参数)。如果“action”为“filter”,offset默认为“0”。 offset必须为数字,不能为负数。
	Offset *string `json:"offset,omitempty"`

	// 操作标识(可设置为“filter”或者“count”)。  - filter:表示过滤。  - count:表示查询总条数。
	Action *string `json:"action,omitempty"`

	// 标签列表,key和value键值对的集合。  - key:表示标签键,一个凭据下最多包含20个key,key不能为空,不能重复,同一个key中value不能重复。key最大长度为36个字符。key之间是“与”的关系  - value:表示标签值。每个值最大长度43个字符,value之间为“或”的关系。
	Tags *[]Tag `json:"tags,omitempty"`

	// 搜索字段。  - key为搜索的字段,目前仅支持搜索凭据名称,值为“resource_name”。  - value为模糊匹配的值,最大长度为255个字符。为空返回空值。
	Matches *[]TagItem `json:"matches,omitempty"`

	// 请求消息序列号,36字节序列号。 例如:919c82d4-8046-4722-9094-35c3c6524cff
	Sequence *string `json:"sequence,omitempty"`
}

func (ListResourceInstancesRequestBody) String

type ListResourceInstancesResponse

type ListResourceInstancesResponse struct {

	// 资源实例列表,详情请参见resource字段数据结构说明。
	Resources *[]ActionResources `json:"resources,omitempty"`

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

Response Object

func (ListResourceInstancesResponse) String

type ListSecretTagsRequest

type ListSecretTagsRequest struct {

	// 凭据ID
	SecretId string `json:"secret_id"`
}

Request Object

func (ListSecretTagsRequest) String

func (o ListSecretTagsRequest) String() string

type ListSecretTagsResponse

type ListSecretTagsResponse struct {

	// 标签列表,key和value键值对的集合。  - key:表示标签键,一个凭据下最多包含10个key,key不能为空,不能重复,同一个key中value不能重复。key最大长度为36个字符。  - value:表示标签值。每个值最大长度43个字符,value之间为“与”的关系。
	Tags           *[]TagItem `json:"tags,omitempty"`
	HttpStatusCode int        `json:"-"`
}

Response Object

func (ListSecretTagsResponse) String

func (o ListSecretTagsResponse) String() string

type ListSecretVersionsRequest

type ListSecretVersionsRequest struct {

	// 凭据名称。
	SecretName string `json:"secret_name"`

	// 分页参数,取值为上一页数据的最后一条记录的版本号。
	Marker *string `json:"marker,omitempty"`

	// 每页显示的条目数量。默认值50。
	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListSecretVersionsRequest) String

func (o ListSecretVersionsRequest) String() string

type ListSecretVersionsResponse

type ListSecretVersionsResponse struct {

	// version_metadata对象。
	VersionMetadatas *[]VersionMetadata `json:"version_metadatas,omitempty"`

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

Response Object

func (ListSecretVersionsResponse) String

type ListSecretsRequest

type ListSecretsRequest struct {

	// 每页返回的个数。  默认值:50。
	Limit *string `json:"limit,omitempty"`

	// 分页查询起始的资源id,为空时为查询第一页
	Marker *string `json:"marker,omitempty"`
}

Request Object

func (ListSecretsRequest) String

func (o ListSecretsRequest) String() string

type ListSecretsResponse

type ListSecretsResponse struct {

	// 凭据详情列表。
	Secrets *[]Secret `json:"secrets,omitempty"`

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

Response Object

func (ListSecretsResponse) String

func (o ListSecretsResponse) String() string

type PageInfo

type PageInfo struct {

	// 下一页查询地址(下一页起始资源id),如果未指定该参数,则下一页为空。
	NextMarker *string `json:"next_marker,omitempty"`

	// 前一页查询地址(上一页末尾资源id)。
	PreviousMarker *string `json:"previous_marker,omitempty"`

	// 本页返回条目数量。
	CurrentCount *int32 `json:"current_count,omitempty"`
}

分页信息。

func (PageInfo) String

func (o PageInfo) String() string

type RestoreSecretRequest

type RestoreSecretRequest struct {

	// 凭据名称。
	SecretName string `json:"secret_name"`
}

Request Object

func (RestoreSecretRequest) String

func (o RestoreSecretRequest) String() string

type RestoreSecretResponse

type RestoreSecretResponse struct {
	Secret         *Secret `json:"secret,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (RestoreSecretResponse) String

func (o RestoreSecretResponse) String() string

type Secret

type Secret struct {

	// 凭据的资源标识符。
	Id *string `json:"id,omitempty"`

	// 凭据名称。
	Name *string `json:"name,omitempty"`

	// 凭据状态,取值如下:  ENABLED:表示启用状态  DISABLED:表示禁用状态  PENDING_DELETE:表示待删除状态  FROZEN:表示冻结状态状态
	State *string `json:"state,omitempty"`

	// 用于加密凭据值的KMS主密钥的ID值。
	KmsKeyId *string `json:"kms_key_id,omitempty"`

	// 凭据的描述信息。
	Description *string `json:"description,omitempty"`

	// 凭据创建时间,时间戳,即从1970年1月1日至该时间的总秒数。
	CreateTime *int64 `json:"create_time,omitempty"`

	// 凭据上次更新时间,时间戳,即从1970年1月1日至该时间的总秒数。
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 凭据计划删除时间,时间戳,即从1970年1月1日至该时间的总秒数。  凭据不在删除计划中时,本项值为null。
	ScheduledDeleteTime *int64 `json:"scheduled_delete_time,omitempty"`
}

凭据对象。

func (Secret) String

func (o Secret) String() string

type ShowSecretRequest

type ShowSecretRequest struct {

	// 凭据的名称。
	SecretName string `json:"secret_name"`
}

Request Object

func (ShowSecretRequest) String

func (o ShowSecretRequest) String() string

type ShowSecretResponse

type ShowSecretResponse struct {
	Secret         *Secret `json:"secret,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowSecretResponse) String

func (o ShowSecretResponse) String() string

type ShowSecretStageRequest

type ShowSecretStageRequest struct {

	// 凭据名称。
	SecretName string `json:"secret_name"`

	// 凭据版本状态的名称。
	StageName string `json:"stage_name"`
}

Request Object

func (ShowSecretStageRequest) String

func (o ShowSecretStageRequest) String() string

type ShowSecretStageResponse

type ShowSecretStageResponse struct {
	Stage          *Stage `json:"stage,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowSecretStageResponse) String

func (o ShowSecretStageResponse) String() string

type ShowSecretVersionRequest

type ShowSecretVersionRequest struct {

	// 凭据名称。
	SecretName string `json:"secret_name"`

	// 凭据的版本标识符。
	VersionId string `json:"version_id"`
}

Request Object

func (ShowSecretVersionRequest) String

func (o ShowSecretVersionRequest) String() string

type ShowSecretVersionResponse

type ShowSecretVersionResponse struct {
	Version        *Version `json:"version,omitempty"`
	HttpStatusCode int      `json:"-"`
}

Response Object

func (ShowSecretVersionResponse) String

func (o ShowSecretVersionResponse) String() string

type Stage

type Stage struct {

	// 凭据的版本状态名称。  约束:最小长度1,最大长度64。
	Name *string `json:"name,omitempty"`

	// 凭据的版本状态更新的时间戳,时间戳,即从1970年1月1日至该时间的总秒数。
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 凭据名称。
	SecretName *string `json:"secret_name,omitempty"`

	// 凭据的版本号标识符。
	VersionId *string `json:"version_id,omitempty"`
}

凭据状态。

func (Stage) String

func (o Stage) String() string

type Tag

type Tag struct {

	// 键。 最大长度36个unicode字符。 key不能为空。不能包含非打印字符“ASCII(0-31)”、“*”、“<”、“>”、“\\”、“=”。
	Key *string `json:"key,omitempty"`

	// 标签值集合
	Values *[]string `json:"values,omitempty"`
}

func (Tag) String

func (o Tag) String() string

type TagItem

type TagItem struct {

	// 键。 最大长度36个unicode字符。 key不能为空。不能包含非打印字符“ASCII(0-31)”、“*”、“<”、“>”、“\\”、“=”。
	Key *string `json:"key,omitempty"`

	// 值。 每个值最大长度43个unicode字符,可以为空字符串。 不能包含非打印字符“ASCII(0-31)”、“*”、“<”、“>”、“\\”、“=”。
	Value *string `json:"value,omitempty"`
}

func (TagItem) String

func (o TagItem) String() string

type UpdateSecretRequest

type UpdateSecretRequest struct {

	// 凭据名称。
	SecretName string `json:"secret_name"`

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

Request Object

func (UpdateSecretRequest) String

func (o UpdateSecretRequest) String() string

type UpdateSecretRequestBody

type UpdateSecretRequestBody struct {

	// 用于加密保护凭据值的KMS主密钥ID。更新凭据的主密钥后,仅新创建的凭据版本使用更新后的主密钥ID加密,之前的凭据版本依旧使用之前的主密钥ID解密。
	KmsKeyId *string `json:"kms_key_id,omitempty"`

	// 凭据的描述信息。 约束:2048字节。
	Description *string `json:"description,omitempty"`
}

更新凭据对象的元数据信息请求体

func (UpdateSecretRequestBody) String

func (o UpdateSecretRequestBody) String() string

type UpdateSecretResponse

type UpdateSecretResponse struct {
	Secret         *Secret `json:"secret,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateSecretResponse) String

func (o UpdateSecretResponse) String() string

type UpdateSecretStageRequest

type UpdateSecretStageRequest struct {

	// 凭据名称。
	SecretName string `json:"secret_name"`

	// 凭据版本状态的名称。满足 '^[a-zA-Z0-9._-]{1,64}$'
	StageName string `json:"stage_name"`

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

Request Object

func (UpdateSecretStageRequest) String

func (o UpdateSecretStageRequest) String() string

type UpdateSecretStageRequestBody

type UpdateSecretStageRequestBody struct {

	// 凭据的版本号标识符。
	VersionId string `json:"version_id"`
}

func (UpdateSecretStageRequestBody) String

type UpdateSecretStageResponse

type UpdateSecretStageResponse struct {
	Stage          *Stage `json:"stage,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (UpdateSecretStageResponse) String

func (o UpdateSecretStageResponse) String() string

type UploadSecretBlobRequest added in v0.0.103

type UploadSecretBlobRequest struct {
	Body *UploadSecretBlobRequestBody `json:"body,omitempty"`
}

Request Object

func (UploadSecretBlobRequest) String added in v0.0.103

func (o UploadSecretBlobRequest) String() string

type UploadSecretBlobRequestBody added in v0.0.103

type UploadSecretBlobRequestBody struct {

	// 将指定凭据对象进行备份后得到的凭据备份文件,备份文件包含有凭据当前所有的凭据版本信息,备份文件经过加密与编码,内容不可直接读。
	SecretBlob string `json:"secret_blob"`
}

恢复凭据对象请求体

func (UploadSecretBlobRequestBody) String added in v0.0.103

type UploadSecretBlobResponse added in v0.0.103

type UploadSecretBlobResponse struct {
	Secret         *Secret `json:"secret,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UploadSecretBlobResponse) String added in v0.0.103

func (o UploadSecretBlobResponse) String() string

type Version

type Version struct {
	VersionMetadata *VersionMetadata `json:"version_metadata,omitempty"`

	// 二进制类型凭据在base64编码后的明文,凭据管理服务将其加密后,存入凭据的初始版本中。  类型:base64编码的二进制数据对象。
	SecretBinary *string `json:"secret_binary,omitempty"`

	// 文本类型凭据的明文,凭据管理服务将其加密后,存入凭据的初始版本中。
	SecretString *string `json:"secret_string,omitempty"`
}

凭据版本。

func (Version) String

func (o Version) String() string

type VersionMetadata

type VersionMetadata struct {

	// 凭据的版本号标识符,凭据对象下唯一。
	Id *string `json:"id,omitempty"`

	// 凭据版本创建时间,时间戳,即从1970年1月1日至该时间的总秒数。
	CreateTime *int64 `json:"create_time,omitempty"`

	// 加密版本凭据值的KMS主密钥ID。
	KmsKeyId *string `json:"kms_key_id,omitempty"`

	// 凭据名称。
	SecretName *string `json:"secret_name,omitempty"`

	// 凭据版本被标记的状态列表。每个版本标签对于凭据对象下版本是唯一存在的,如果你创建版本时,指定的是同一凭据对象下的一个已经标记在其他版本上的状态,该标签将自动从其他版本上删除,并附加到此版本上。  如果未指定version_stage的值,则凭据管理服务会自动移动临时标签SYSCURRENT到此新版本。
	VersionStages *[]string `json:"version_stages,omitempty"`
}

凭据版本被标记的状态。

func (VersionMetadata) String

func (o VersionMetadata) String() string

Source Files

Jump to

Keyboard shortcuts

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