model

package
v0.1.90 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 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"`

	// 系统标签列表,没有标签,数组默认为空
	SysTags *[]SysTag `json:"sys_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"`
}

BatchCreateOrDeleteTagsRequest Request Object

func (BatchCreateOrDeleteTagsRequest) String

type BatchCreateOrDeleteTagsRequestBody

type BatchCreateOrDeleteTagsRequestBody struct {

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

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

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

func (BatchCreateOrDeleteTagsRequestBody) String

type BatchCreateOrDeleteTagsResponse

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

BatchCreateOrDeleteTagsResponse Response Object

func (BatchCreateOrDeleteTagsResponse) String

type CreateSecretEventRequest added in v0.1.59

type CreateSecretEventRequest struct {
	Body *CreateSecretEventRequestBody `json:"body,omitempty"`
}

CreateSecretEventRequest Request Object

func (CreateSecretEventRequest) String added in v0.1.59

func (o CreateSecretEventRequest) String() string

type CreateSecretEventRequestBody added in v0.1.59

type CreateSecretEventRequestBody struct {

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

	// 本次事件通知的基础事件列表,基础事件类型如下。  SECRET_VERSION_CREATED:版本创建 SECRET_VERSION_EXPIRED:版本过期 SECRET_ROTATED:凭据轮转 SECRET_DELETED:凭据删除  列表包含的基础事件类型不能重复。
	EventTypes []string `json:"event_types"`

	// 控制事件是否生效,只有启用状态才能触发包含的基础事件类型  ENABLED:启用 DISABLED:禁用
	State CreateSecretEventRequestBodyState `json:"state"`

	Notification *Notification `json:"notification"`
}

CreateSecretEventRequestBody 创建凭据事件通知请求体。

func (CreateSecretEventRequestBody) String added in v0.1.59

type CreateSecretEventRequestBodyState added in v0.1.59

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

func (CreateSecretEventRequestBodyState) MarshalJSON added in v0.1.59

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

func (*CreateSecretEventRequestBodyState) UnmarshalJSON added in v0.1.59

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

func (CreateSecretEventRequestBodyState) Value added in v0.1.59

type CreateSecretEventRequestBodyStateEnum added in v0.1.59

type CreateSecretEventRequestBodyStateEnum struct {
	ENABLED  CreateSecretEventRequestBodyState
	DISABLED CreateSecretEventRequestBodyState
}

func GetCreateSecretEventRequestBodyStateEnum added in v0.1.59

func GetCreateSecretEventRequestBodyStateEnum() CreateSecretEventRequestBodyStateEnum

type CreateSecretEventResponse added in v0.1.59

type CreateSecretEventResponse struct {
	Event          *Event `json:"event,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreateSecretEventResponse Response Object

func (CreateSecretEventResponse) String added in v0.1.59

func (o CreateSecretEventResponse) String() string

type CreateSecretRequest

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

CreateSecretRequest 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。 当secret_type为RDS时。凭据值格式为: \"{'users':[{'name':”,'password':”}]}\" 其中name为RDS实例账号名称,password为RDS实例账号口令
	SecretBinary *string `json:"secret_binary,omitempty"`

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

	// 凭据类型  取值 : COMMON :通用凭据(默认)。用于应用系统中的各种敏感信息储存。         RDS :RDS凭据 。专门针对RDS的凭据,用于存储RDS的账号信息。
	SecretType *string `json:"secret_type,omitempty"`

	// 自动轮转  取值:true 开启 ,false 关闭 (默认)
	AutoRotation *bool `json:"auto_rotation,omitempty"`

	// 轮转周期  约束:6小时-8,760小时 (365天)  类型:Integer[unit] ,Integer表示时间长度 。unit表示时间单位,d(天)、h(小时)、m(分钟)、s(秒)。例如 1d 表示一天,24h也表示一天  说明:当开启自动轮转时,必须填写该值
	RotationPeriod *string `json:"rotation_period,omitempty"`

	// 轮转配置  约束:范围不超过1024个字符。  当secret_type为RDS时,配置为{\"rds_instance_id\":\"\",\"Secret_sub_type\":\"\"}  说明:当secret_type为RDS时,必须填写该值  rds_instance_id为RDS的实例ID,Secret_sub_type为轮转子类型,取值为:SingleUser,MultiUser。  SingleUser:指定轮转类型为单用户模式轮转,每次轮转将指定账号重置为新的口令。  MultiUser:指定轮转类型为双用户模式轮转,SYSCURRENT和SYSPREVIOUS分别引用其中一个账号。凭据轮转时,SYSPREVIOUS引用的账号口令会被重置为新的随机口令,随后凭据交换SYSCURRENT和SYSPREVIOUS对RDS账号的引用。
	RotationConfig *string `json:"rotation_config,omitempty"`

	// 凭据订阅的事件列表,当前最大可订阅一个事件。当事件包含的基础事件触发时,通知消息将发送到事件对应的通知主题。
	EventSubscriptions *[]string `json:"event_subscriptions,omitempty"`

	// 该参数针对企业用户使用。如果您是企业用户,且已创建企业项目,则请从下拉列表中为密钥选择需要绑定的企业项目,默认项目为“default”。 未开通企业管理的用户页面则没有“企业项目”参数项,无需进行配置。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

CreateSecretRequestBody 创建凭据请求消息体。

func (CreateSecretRequestBody) String

func (o CreateSecretRequestBody) String() string

type CreateSecretResponse

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

CreateSecretResponse 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"`
}

CreateSecretTagRequest Request Object

func (CreateSecretTagRequest) String

func (o CreateSecretTagRequest) String() string

type CreateSecretTagRequestBody

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

func (CreateSecretTagRequestBody) String

type CreateSecretTagResponse

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

CreateSecretTagResponse 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"`
}

CreateSecretVersionRequest 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"`

	// 凭据版本过期时间,时间戳,即从1970年1月1日至该时间的总秒数。默认为空,凭据订阅“版本过期”事件类型时,有效期判断所依据的值。
	ExpireTime *int64 `json:"expire_time,omitempty"`
}

CreateSecretVersionRequestBody 创建凭据版本请求体。

func (CreateSecretVersionRequestBody) String

type CreateSecretVersionResponse

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

CreateSecretVersionResponse Response Object

func (CreateSecretVersionResponse) String

type DeleteSecretEventRequest added in v0.1.59

type DeleteSecretEventRequest struct {

	// 事件通知的名称。
	EventName string `json:"event_name"`
}

DeleteSecretEventRequest Request Object

func (DeleteSecretEventRequest) String added in v0.1.59

func (o DeleteSecretEventRequest) String() string

type DeleteSecretEventResponse added in v0.1.59

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

DeleteSecretEventResponse Response Object

func (DeleteSecretEventResponse) String added in v0.1.59

func (o DeleteSecretEventResponse) String() string

type DeleteSecretForScheduleRequest

type DeleteSecretForScheduleRequest struct {

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

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

DeleteSecretForScheduleRequest 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:"-"`
}

DeleteSecretForScheduleResponse Response Object

func (DeleteSecretForScheduleResponse) String

type DeleteSecretRequest

type DeleteSecretRequest struct {

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

DeleteSecretRequest Request Object

func (DeleteSecretRequest) String

func (o DeleteSecretRequest) String() string

type DeleteSecretResponse

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

DeleteSecretResponse 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"`
}

DeleteSecretStageRequest Request Object

func (DeleteSecretStageRequest) String

func (o DeleteSecretStageRequest) String() string

type DeleteSecretStageResponse

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

DeleteSecretStageResponse 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"`
}

DeleteSecretTagRequest Request Object

func (DeleteSecretTagRequest) String

func (o DeleteSecretTagRequest) String() string

type DeleteSecretTagResponse

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

DeleteSecretTagResponse 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"`
}

DownloadSecretBlobRequest 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:"-"`
}

DownloadSecretBlobResponse Response Object

func (DownloadSecretBlobResponse) String added in v0.0.103

type Event added in v0.1.59

type Event struct {

	// 事件通知名称。
	Name *string `json:"name,omitempty"`

	// 事件通知的资源标识符。
	EventId *string `json:"event_id,omitempty"`

	// 设置事件的基础事件类型列表,。  约束:数组大小:最小1,最大12。
	EventTypes *[]EventEventTypes `json:"event_types,omitempty"`

	// 事件通知状态,取值如下。  ENABLED:表示启用状态 DISABLED:表示禁用状态
	State *EventState `json:"state,omitempty"`

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

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

	Notification *Notification `json:"notification,omitempty"`
}

Event 事件通知对象。

func (Event) String added in v0.1.59

func (o Event) String() string

type EventEventTypes added in v0.1.59

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

func (EventEventTypes) MarshalJSON added in v0.1.59

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

func (*EventEventTypes) UnmarshalJSON added in v0.1.59

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

func (EventEventTypes) Value added in v0.1.59

func (c EventEventTypes) Value() string

type EventEventTypesEnum added in v0.1.59

type EventEventTypesEnum struct {
	SECRET_VERSION_CREATED EventEventTypes
	SECRET_VERSION_EXPIRED EventEventTypes
	SECRET_ROTATED         EventEventTypes
	SECRET_DELETED         EventEventTypes
}

func GetEventEventTypesEnum added in v0.1.59

func GetEventEventTypesEnum() EventEventTypesEnum

type EventState added in v0.1.59

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

func (EventState) MarshalJSON added in v0.1.59

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

func (*EventState) UnmarshalJSON added in v0.1.59

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

func (EventState) Value added in v0.1.59

func (c EventState) Value() string

type EventStateEnum added in v0.1.59

type EventStateEnum struct {
	ENABLED  EventState
	DISABLED EventState
}

func GetEventStateEnum added in v0.1.59

func GetEventStateEnum() EventStateEnum

type ListNotificationRecordsRequest added in v0.1.59

type ListNotificationRecordsRequest struct {

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

	// 分页查询起始的事件通知记录时间,为空时为查询第一页
	Marker *string `json:"marker,omitempty"`
}

ListNotificationRecordsRequest Request Object

func (ListNotificationRecordsRequest) String added in v0.1.59

type ListNotificationRecordsResponse added in v0.1.59

type ListNotificationRecordsResponse struct {

	// Record对象。
	Records *[]Record `json:"records,omitempty"`

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

ListNotificationRecordsResponse Response Object

func (ListNotificationRecordsResponse) String added in v0.1.59

type ListProjectSecretsTagsRequest

type ListProjectSecretsTagsRequest struct {
}

ListProjectSecretsTagsRequest Request Object

func (ListProjectSecretsTagsRequest) String

type ListProjectSecretsTagsResponse

type ListProjectSecretsTagsResponse struct {

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

ListProjectSecretsTagsResponse Response Object

func (ListProjectSecretsTagsResponse) String

type ListResourceInstancesRequest

type ListResourceInstancesRequest struct {

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

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

ListResourceInstancesRequest 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"`

	// 标签列表,key和value键值对的集合。最多不超过10个。
	Tags *[]Tag `json:"tags,omitempty"`

	// 搜索字段。  - key为搜索的字段,目前仅支持搜索凭据名称,值为“resource_name”。  - value为模糊匹配的值,最大长度为255个字符。为空返回空值。
	Matches *[]TagMatches `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:"-"`
}

ListResourceInstancesResponse Response Object

func (ListResourceInstancesResponse) String

type ListSecretEventsRequest added in v0.1.59

type ListSecretEventsRequest struct {

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

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

ListSecretEventsRequest Request Object

func (ListSecretEventsRequest) String added in v0.1.59

func (o ListSecretEventsRequest) String() string

type ListSecretEventsResponse added in v0.1.59

type ListSecretEventsResponse struct {

	// 事件详情列表。
	Events *[]Event `json:"events,omitempty"`

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

ListSecretEventsResponse Response Object

func (ListSecretEventsResponse) String added in v0.1.59

func (o ListSecretEventsResponse) String() string

type ListSecretTagsRequest

type ListSecretTagsRequest struct {

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

ListSecretTagsRequest Request Object

func (ListSecretTagsRequest) String

func (o ListSecretTagsRequest) String() string

type ListSecretTagsResponse

type ListSecretTagsResponse struct {

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

	// 系统标签列表。
	SysTags        *[]SysTag `json:"sys_tags,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListSecretTagsResponse 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"`
}

ListSecretVersionsRequest 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:"-"`
}

ListSecretVersionsResponse Response Object

func (ListSecretVersionsResponse) String

type ListSecretsRequest

type ListSecretsRequest struct {

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

	// 分页查询起始的凭据名称,为空时为查询第一页
	Marker *string `json:"marker,omitempty"`

	// 指定事件名称时,仅返回关联该事件的凭据
	EventName *string `json:"event_name,omitempty"`
}

ListSecretsRequest 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:"-"`
}

ListSecretsResponse Response Object

func (ListSecretsResponse) String

func (o ListSecretsResponse) String() string

type Notification added in v0.1.59

type Notification struct {

	// 事件通知的对象类型。
	TargetType string `json:"target_type"`

	// 事件通知的对象ID。
	TargetId string `json:"target_id"`

	// 事件通知的对象名称。
	TargetName string `json:"target_name"`
}

Notification 通知主题对象。

func (Notification) String added in v0.1.59

func (o Notification) String() string

type PageInfo

type PageInfo struct {

	// 下一页查询地址(本页的末尾凭据名称,下一页起始凭据名称)。
	NextMarker *string `json:"next_marker,omitempty"`

	// 本页的起始凭据名称,上一页末尾凭据名称。
	PreviousMarker *string `json:"previous_marker,omitempty"`

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

PageInfo 分页信息。

func (PageInfo) String

func (o PageInfo) String() string

type Record added in v0.1.59

type Record struct {

	// 凭据名称。
	EventName *string `json:"event_name,omitempty"`

	// 凭据类型  取值 : COMMON :通用凭据 RDS :RDS凭据
	TriggerEventType *string `json:"trigger_event_type,omitempty"`

	// 事件通知记录的创建时间,时间戳,即从1970年1月1日至该时间的总秒数。
	CreateTime *int64 `json:"create_time,omitempty"`

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

	// 凭据类型  取值 : COMMON :通用凭据(默认)。用于应用系统中的各种敏感信息储存。         RDS :RDS凭据 。专门针对RDS的凭据,用于存储RDS的账号信息。
	SecretType *string `json:"secret_type,omitempty"`

	// 事件通知的对象名称。
	NotificationTargetName *string `json:"notification_target_name,omitempty"`

	// 事件通知的对象ID。
	NotificationTargetId *string `json:"notification_target_id,omitempty"`

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

	// 凭据类型  取值 : SUCCESS :事件通知成功。         FAIL :事件通知失败。         INVALID :事件通知配置主题信息无效或不正确,无法触发通知。
	NotificationStatus *string `json:"notification_status,omitempty"`
}

Record 事件通知记录。

func (Record) String added in v0.1.59

func (o Record) String() string

type RestoreSecretRequest

type RestoreSecretRequest struct {

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

RestoreSecretRequest Request Object

func (RestoreSecretRequest) String

func (o RestoreSecretRequest) String() string

type RestoreSecretResponse

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

RestoreSecretResponse Response Object

func (RestoreSecretResponse) String

func (o RestoreSecretResponse) String() string

type RotateSecretRequest added in v0.1.64

type RotateSecretRequest struct {

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

RotateSecretRequest Request Object

func (RotateSecretRequest) String added in v0.1.64

func (o RotateSecretRequest) String() string

type RotateSecretResponse added in v0.1.64

type RotateSecretResponse struct {

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

	// 凭据的名称。
	SecretName     *string `json:"secret_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

RotateSecretResponse Response Object

func (RotateSecretResponse) String added in v0.1.64

func (o RotateSecretResponse) 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"`

	// 凭据类型  取值 : COMMON :通用凭据(默认)。用于应用系统中的各种敏感信息储存。         RDS :RDS凭据 。专门针对RDS的凭据,用于存储RDS的账号信息。
	SecretType *string `json:"secret_type,omitempty"`

	// 自动轮转  取值:true 开启, false 关闭(默认)
	AutoRotation *bool `json:"auto_rotation,omitempty"`

	// 轮转周期  约束:6小时-8,760小时 (365天)  类型:Integer[unit] ,Integer表示时间长度 。unit表示时间单位,d(天)、h(小时)、m(分钟)、s(秒)。例如 1d 表示一天,24h也表示一天  说明:当开启自动轮转时,必须填写该值
	RotationPeriod *string `json:"rotation_period,omitempty"`

	// 轮转配置  约束:范围不超过1024个字符。  当secret_type为RDS时,配置为{\"RDSInstanceId\":\"\",\"SecretSubType\":\"\"}  说明:当secret_type为RDS时,必须填写该值  RDSInstanceId为RDS的实例ID,SecretSubType为轮转子类型,取值为:SingleUser,MultiUser。  SingleUser:指定轮转类型为单用户模式轮转,每次轮转将指定账号重置为新的口令。  MultiUser:指定轮转类型为双用户模式轮转,SYSCURRENT和SYSPREVIOUS分别引用其中一个账号。凭据轮转时,SYSPREVIOUS引用的账号口令会被重置为新的随机口令,随后凭据交换SYSCURRENT和SYSPREVIOUS对RDS账号的引用。
	RotationConfig *string `json:"rotation_config,omitempty"`

	// 轮转时间戳
	RotationTime *int64 `json:"rotation_time,omitempty"`

	// 下一次轮转时间戳
	NextRotationTime *int64 `json:"next_rotation_time,omitempty"`

	// 凭据订阅的事件列表,当前最大可订阅一个事件。当事件包含的基础事件触发时,通知消息将发送到事件对应的通知主题。
	EventSubscriptions *[]string `json:"event_subscriptions,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

Secret 凭据对象。

func (Secret) String

func (o Secret) String() string

type ShowSecretEventRequest added in v0.1.59

type ShowSecretEventRequest struct {

	// 事件通知的名称。
	EventName string `json:"event_name"`
}

ShowSecretEventRequest Request Object

func (ShowSecretEventRequest) String added in v0.1.59

func (o ShowSecretEventRequest) String() string

type ShowSecretEventResponse added in v0.1.59

type ShowSecretEventResponse struct {
	Event          *Event `json:"event,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowSecretEventResponse Response Object

func (ShowSecretEventResponse) String added in v0.1.59

func (o ShowSecretEventResponse) String() string

type ShowSecretRequest

type ShowSecretRequest struct {

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

ShowSecretRequest Request Object

func (ShowSecretRequest) String

func (o ShowSecretRequest) String() string

type ShowSecretResponse

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

ShowSecretResponse 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"`
}

ShowSecretStageRequest Request Object

func (ShowSecretStageRequest) String

func (o ShowSecretStageRequest) String() string

type ShowSecretStageResponse

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

ShowSecretStageResponse 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"`
}

ShowSecretVersionRequest Request Object

func (ShowSecretVersionRequest) String

func (o ShowSecretVersionRequest) String() string

type ShowSecretVersionResponse

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

ShowSecretVersionResponse 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"`
}

Stage 凭据状态。

func (Stage) String

func (o Stage) String() string

type SysTag added in v0.1.59

type SysTag struct {

	// 标签键。
	Key *string `json:"key,omitempty"`

	// 标签值。
	Value *string `json:"value,omitempty"`
}

func (SysTag) String added in v0.1.59

func (o SysTag) String() string

type Tag

type Tag struct {

	// 标签键。
	Key *string `json:"key,omitempty"`

	// 标签值集合。  约束:最多包含10个value。标签列表中的标签value值不允许重复。标签列表如果为空列表,表示匹配任意值。标签列表中多个value之间是“或”的关系,在key已经满足要求的前提下,满足请求中的某个value就会匹配出来。
	Values *[]string `json:"values,omitempty"`
}

func (Tag) String

func (o Tag) String() string

type TagItem

type TagItem struct {

	// 标签的名称。 同一个凭据,一个标签键只能对应一个标签值;不同的凭据可以使用相同的标签键。 用户最多可以给单个凭据添加20个标签。  约束:取值范围为1到128个字符,满足正则匹配\"^((?!\\\\s)(?!_sys_)[\\\\p{L}\\\\p{Z}\\\\p{N}_.:=+\\\\-@]*)(?<!\\\\s)$\"
	Key string `json:"key"`

	// 标签的值。  约束:取值范围不超过255个字符,满足正则匹配\"^([\\\\p{L}\\\\p{Z}\\\\p{N}_.:\\/=+\\\\-@]*)$\"
	Value *string `json:"value,omitempty"`
}

func (TagItem) String

func (o TagItem) String() string

type TagMatches added in v0.1.59

type TagMatches struct {

	// 为要匹配的字段。 约束:值只能为resource_name。
	Key *string `json:"key,omitempty"`

	// 模糊匹配的值。  约束:最大长度为255个字符,为空返回空值。
	Value *string `json:"value,omitempty"`
}

func (TagMatches) String added in v0.1.59

func (o TagMatches) String() string

type TagResponse added in v0.1.59

type TagResponse struct {

	// 键。
	Key *string `json:"key,omitempty"`

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

func (TagResponse) String added in v0.1.59

func (o TagResponse) String() string

type UpdateSecretEventRequest added in v0.1.59

type UpdateSecretEventRequest struct {

	// 事件通知名称。
	EventName string `json:"event_name"`

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

UpdateSecretEventRequest Request Object

func (UpdateSecretEventRequest) String added in v0.1.59

func (o UpdateSecretEventRequest) String() string

type UpdateSecretEventRequestBody added in v0.1.59

type UpdateSecretEventRequestBody struct {

	// 事件通知状态,取值如下。  ENABLED:表示启用状态 DISABLED:表示禁用状态
	State *UpdateSecretEventRequestBodyState `json:"state,omitempty"`

	// 本次事件通知的基础事件列表,基础事件类型如下。  SECRET_VERSION_CREATED:版本创建 SECRET_VERSION_EXPIRED:版本过期 SECRET_ROTATED:凭据轮转 SECRET_DELETED:凭据删除  列表包含的基础事件类型不能重复。
	EventTypes *[]string `json:"event_types,omitempty"`

	Notification *Notification `json:"notification,omitempty"`
}

UpdateSecretEventRequestBody 更新凭据事件通知请求体。

func (UpdateSecretEventRequestBody) String added in v0.1.59

type UpdateSecretEventRequestBodyState added in v0.1.59

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

func (UpdateSecretEventRequestBodyState) MarshalJSON added in v0.1.59

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

func (*UpdateSecretEventRequestBodyState) UnmarshalJSON added in v0.1.59

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

func (UpdateSecretEventRequestBodyState) Value added in v0.1.59

type UpdateSecretEventRequestBodyStateEnum added in v0.1.59

type UpdateSecretEventRequestBodyStateEnum struct {
	ENABLED  UpdateSecretEventRequestBodyState
	DISABLED UpdateSecretEventRequestBodyState
}

func GetUpdateSecretEventRequestBodyStateEnum added in v0.1.59

func GetUpdateSecretEventRequestBodyStateEnum() UpdateSecretEventRequestBodyStateEnum

type UpdateSecretEventResponse added in v0.1.59

type UpdateSecretEventResponse struct {
	Event          *Event `json:"event,omitempty"`
	HttpStatusCode int    `json:"-"`
}

UpdateSecretEventResponse Response Object

func (UpdateSecretEventResponse) String added in v0.1.59

func (o UpdateSecretEventResponse) String() string

type UpdateSecretRequest

type UpdateSecretRequest struct {

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

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

UpdateSecretRequest 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"`

	// 自动轮转  取值:true 开启 false 关
	AutoRotation *bool `json:"auto_rotation,omitempty"`

	// 轮转周期  约束:6小时-8,760小时 (365天)  类型:Integer[unit] ,Integer表示时间长度 。unit表示时间单位,d(天)、h(小时)、m(分钟)、s(秒)。例如 1d 表示一天,24h也表示一天  说明:当开启自动轮转时,必须填写该值
	RotationPeriod *string `json:"rotation_period,omitempty"`

	// 凭据订阅的事件列表,当前最大可订阅一个事件。当事件包含的基础事件触发时,通知消息将发送到事件对应的通知主题。
	EventSubscriptions *[]string `json:"event_subscriptions,omitempty"`
}

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

func (UpdateSecretRequestBody) String

func (o UpdateSecretRequestBody) String() string

type UpdateSecretResponse

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

UpdateSecretResponse 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"`
}

UpdateSecretStageRequest 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:"-"`
}

UpdateSecretStageResponse Response Object

func (UpdateSecretStageResponse) String

func (o UpdateSecretStageResponse) String() string

type UpdateVersionRequest added in v0.1.59

type UpdateVersionRequest struct {

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

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

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

UpdateVersionRequest Request Object

func (UpdateVersionRequest) String added in v0.1.59

func (o UpdateVersionRequest) String() string

type UpdateVersionRequestBody added in v0.1.59

type UpdateVersionRequestBody struct {

	// 凭据版本过期时间,时间戳,即从1970年1月1日至该时间的总秒数。默认为空,凭据订阅“版本过期”事件类型时,有效期判断所依据的值。
	ExpireTime int64 `json:"expire_time"`
}

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

func (UpdateVersionRequestBody) String added in v0.1.59

func (o UpdateVersionRequestBody) String() string

type UpdateVersionResponse added in v0.1.59

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

UpdateVersionResponse Response Object

func (UpdateVersionResponse) String added in v0.1.59

func (o UpdateVersionResponse) String() string

type UploadSecretBlobRequest added in v0.0.103

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

UploadSecretBlobRequest 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"`
}

UploadSecretBlobRequestBody 恢复凭据对象请求体

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:"-"`
}

UploadSecretBlobResponse 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"`
}

Version 凭据版本。

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"`

	// 凭据版本过期时间,时间戳,即从1970年1月1日至该时间的总秒数。默认为空,凭据订阅“版本过期”事件类型时,有效期判断所依据的值。
	ExpireTime *int64 `json:"expire_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"`
}

VersionMetadata 凭据版本被标记的状态。

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