1 Star 0 Fork 0

Mr.feng / tencentcloud-sdk-go

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
models.go 21.87 KB
Copy Edit Raw Blame History
tencentcloud authored 2019-12-31 16:56 . release 3.0.115
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715
// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package v20190923
import (
"encoding/json"
tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
)
type CreateSecretRequest struct {
*tchttp.BaseRequest
// 凭据名称,同一region内不可重复,最长128字节,使用字母、数字或者 - _ 的组合,第一个字符必须为字母或者数字。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 凭据版本,查询凭据信息时需要根据SecretName 和 VersionId进行查询,最长64 字节,使用字母、数字或者 - _ . 的组合并且以字母或数字开头。
VersionId *string `json:"VersionId,omitempty" name:"VersionId"`
// 描述信息,用于详细描述用途等,最大支持2048字节。
Description *string `json:"Description,omitempty" name:"Description"`
// 指定对凭据进行加密的KMS CMK。如果为空则表示使用Secrets Manager为您默认创建的CMK进行加密。您也可以指定在同region 下自行创建的KMS CMK进行加密。
KmsKeyId *string `json:"KmsKeyId,omitempty" name:"KmsKeyId"`
// 二进制凭据信息base64编码后的明文。SecretBinary 和 SecretString 必须且只能设置一个,最大支持4096字节。
SecretBinary *string `json:"SecretBinary,omitempty" name:"SecretBinary"`
// 文本类型凭据信息明文(不需要进行base64编码)。SecretBinary 和 SecretString 必须且只能设置一个,,最大支持4096字节。
SecretString *string `json:"SecretString,omitempty" name:"SecretString"`
}
func (r *CreateSecretRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateSecretRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type CreateSecretResponse struct {
*tchttp.BaseResponse
Response *struct {
// 新创建的凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 新创建的凭据版本。
VersionId *string `json:"VersionId,omitempty" name:"VersionId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *CreateSecretResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *CreateSecretResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DeleteSecretRequest struct {
*tchttp.BaseRequest
// 指定需要删除的凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 指定计划删除日期,单位(天),0(默认)表示立即删除, 1-30 表示预留的天数,超出该日期之后彻底删除。
RecoveryWindowInDays *uint64 `json:"RecoveryWindowInDays,omitempty" name:"RecoveryWindowInDays"`
}
func (r *DeleteSecretRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DeleteSecretRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DeleteSecretResponse struct {
*tchttp.BaseResponse
Response *struct {
// 指定删除的凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 凭据删除的日期,unix时间戳。
DeleteTime *int64 `json:"DeleteTime,omitempty" name:"DeleteTime"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *DeleteSecretResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DeleteSecretResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DeleteSecretVersionRequest struct {
*tchttp.BaseRequest
// 指定凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 指定该名称下需要删除的凭据的版本号。
VersionId *string `json:"VersionId,omitempty" name:"VersionId"`
}
func (r *DeleteSecretVersionRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DeleteSecretVersionRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DeleteSecretVersionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 凭据版本号。
VersionId *string `json:"VersionId,omitempty" name:"VersionId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *DeleteSecretVersionResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DeleteSecretVersionResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DescribeSecretRequest struct {
*tchttp.BaseRequest
// 指定需要获取凭据详细信息的凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
}
func (r *DescribeSecretRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DescribeSecretRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DescribeSecretResponse struct {
*tchttp.BaseResponse
Response *struct {
// 凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 凭据描述信息。
Description *string `json:"Description,omitempty" name:"Description"`
// 用于加密的KMS CMK ID。
KmsKeyId *string `json:"KmsKeyId,omitempty" name:"KmsKeyId"`
// 创建者UIN。
CreateUin *uint64 `json:"CreateUin,omitempty" name:"CreateUin"`
// 凭据状态:Enabled、Disabled、PendingDelete
Status *string `json:"Status,omitempty" name:"Status"`
// 删除日期,uinx 时间戳,非计划删除状态的凭据为0。
DeleteTime *uint64 `json:"DeleteTime,omitempty" name:"DeleteTime"`
// 创建日期。
CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *DescribeSecretResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DescribeSecretResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DisableSecretRequest struct {
*tchttp.BaseRequest
// 指定停用的凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
}
func (r *DisableSecretRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DisableSecretRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type DisableSecretResponse struct {
*tchttp.BaseResponse
Response *struct {
// 停用的凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *DisableSecretResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *DisableSecretResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type EnableSecretRequest struct {
*tchttp.BaseRequest
// 指定启用凭据的名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
}
func (r *EnableSecretRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *EnableSecretRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type EnableSecretResponse struct {
*tchttp.BaseResponse
Response *struct {
// 启用的凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *EnableSecretResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *EnableSecretResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type GetRegionsRequest struct {
*tchttp.BaseRequest
}
func (r *GetRegionsRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *GetRegionsRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type GetRegionsResponse struct {
*tchttp.BaseResponse
Response *struct {
// region列表。
Regions []*string `json:"Regions,omitempty" name:"Regions" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *GetRegionsResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *GetRegionsResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type GetSecretValueRequest struct {
*tchttp.BaseRequest
// 指定凭据的名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 指定对应凭据的版本号。
VersionId *string `json:"VersionId,omitempty" name:"VersionId"`
}
func (r *GetSecretValueRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *GetSecretValueRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type GetSecretValueResponse struct {
*tchttp.BaseResponse
Response *struct {
// 凭据的名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 该凭据对应的版本号。
VersionId *string `json:"VersionId,omitempty" name:"VersionId"`
// 在创建凭据(CreateSecret)时,如果指定的是二进制数据,则该字段为返回结果,并且使用base64进行编码,应用方需要进行base64解码后获取原始数据。SecretBinary和SecretString只有一个不为空。
SecretBinary *string `json:"SecretBinary,omitempty" name:"SecretBinary"`
// 在创建凭据(CreateSecret)时,如果指定的是普通文本数据,则该字段为返回结果。SecretBinary和SecretString只有一个不为空。
SecretString *string `json:"SecretString,omitempty" name:"SecretString"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *GetSecretValueResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *GetSecretValueResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type GetServiceStatusRequest struct {
*tchttp.BaseRequest
}
func (r *GetServiceStatusRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *GetServiceStatusRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type GetServiceStatusResponse struct {
*tchttp.BaseResponse
Response *struct {
// true表示服务已开通,false 表示服务尚未开通。
ServiceEnabled *bool `json:"ServiceEnabled,omitempty" name:"ServiceEnabled"`
// 服务不可用类型: 0-未购买,1-正常, 2-欠费停服, 3-资源释放。
InvalidType *int64 `json:"InvalidType,omitempty" name:"InvalidType"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *GetServiceStatusResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *GetServiceStatusResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type ListSecretVersionIdsRequest struct {
*tchttp.BaseRequest
// 凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
}
func (r *ListSecretVersionIdsRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ListSecretVersionIdsRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type ListSecretVersionIdsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// VersionId列表。
// 注意:此字段可能返回 null,表示取不到有效值。
Versions []*VersionInfo `json:"Versions,omitempty" name:"Versions" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *ListSecretVersionIdsResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ListSecretVersionIdsResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type ListSecretsRequest struct {
*tchttp.BaseRequest
// 查询列表的起始位置,以0开始,不设置默认为0。
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 单次查询返回的最大数量,0或不设置则使用默认值 20。
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 根据创建时间的排序方式,0或者不设置则使用降序排序, 1 表示升序排序。
OrderType *uint64 `json:"OrderType,omitempty" name:"OrderType"`
// 根据凭据状态进行过滤,默认为0表示查询全部,1 表示查询Enabed 凭据列表,2表示查询Disabled 凭据列表, 3 表示查询PendingDelete 凭据列表。
State *uint64 `json:"State,omitempty" name:"State"`
// 根据凭据名称进行过滤,为空表示不过滤。
SearchSecretName *string `json:"SearchSecretName,omitempty" name:"SearchSecretName"`
}
func (r *ListSecretsRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ListSecretsRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type ListSecretsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 根据State和SearchSecretName 筛选的凭据总数。
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 返回凭据信息列表。
SecretMetadatas []*SecretMetadata `json:"SecretMetadatas,omitempty" name:"SecretMetadatas" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *ListSecretsResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *ListSecretsResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type PutSecretValueRequest struct {
*tchttp.BaseRequest
// 指定需要增加版本的凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 指定新增加的版本号,最长64 字节,使用字母、数字或者 - _ . 的组合并且以字母或数字开头。
VersionId *string `json:"VersionId,omitempty" name:"VersionId"`
// 二进制凭据信息,使用base64编码。SecretBinary 和 SecretString 必须且只能设置一个。
SecretBinary *string `json:"SecretBinary,omitempty" name:"SecretBinary"`
// 文本类型凭据信息明文(不需要进行base64编码),SecretBinary 和 SecretString 必须且只能设置一个。
SecretString *string `json:"SecretString,omitempty" name:"SecretString"`
}
func (r *PutSecretValueRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *PutSecretValueRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type PutSecretValueResponse struct {
*tchttp.BaseResponse
Response *struct {
// 凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 新增加的版本号。
VersionId *string `json:"VersionId,omitempty" name:"VersionId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *PutSecretValueResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *PutSecretValueResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type RestoreSecretRequest struct {
*tchttp.BaseRequest
// 指定需要恢复的凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
}
func (r *RestoreSecretRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *RestoreSecretRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type RestoreSecretResponse struct {
*tchttp.BaseResponse
Response *struct {
// 凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *RestoreSecretResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *RestoreSecretResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type SecretMetadata struct {
// 凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 凭据的描述信息。
Description *string `json:"Description,omitempty" name:"Description"`
// 用于加密凭据的KMS KeyId。
KmsKeyId *string `json:"KmsKeyId,omitempty" name:"KmsKeyId"`
// 创建者UIN。
CreateUin *uint64 `json:"CreateUin,omitempty" name:"CreateUin"`
// 凭据状态:Enabled、Disabled、PendingDelete
Status *string `json:"Status,omitempty" name:"Status"`
// 凭据删除日期,对于status为PendingDelete 的有效,unix时间戳。
DeleteTime *uint64 `json:"DeleteTime,omitempty" name:"DeleteTime"`
// 凭据创建时间,unix时间戳。
CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`
// 用于加密凭据的KMS CMK类型,DEFAULT 表示SecretsManager 创建的默认密钥, CUSTOMER 表示用户指定的密钥。
KmsKeyType *string `json:"KmsKeyType,omitempty" name:"KmsKeyType"`
}
type UpdateDescriptionRequest struct {
*tchttp.BaseRequest
// 指定需要更新描述信息的凭据名。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 新的描述信息,最大长度2048个字节。
Description *string `json:"Description,omitempty" name:"Description"`
}
func (r *UpdateDescriptionRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *UpdateDescriptionRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type UpdateDescriptionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *UpdateDescriptionResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *UpdateDescriptionResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type UpdateSecretRequest struct {
*tchttp.BaseRequest
// 指定需要更新凭据内容的名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 指定需要更新凭据内容的版本号。
VersionId *string `json:"VersionId,omitempty" name:"VersionId"`
// 新的凭据内容为二进制的场景使用该字段,并使用base64进行编码。SecretBinary 和 SecretString 只能一个不为空。
SecretBinary *string `json:"SecretBinary,omitempty" name:"SecretBinary"`
// 新的凭据内容为文本的场景使用该字段,不需要base64编码。SecretBinary 和 SecretString 只能一个不为空。
SecretString *string `json:"SecretString,omitempty" name:"SecretString"`
}
func (r *UpdateSecretRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *UpdateSecretRequest) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type UpdateSecretResponse struct {
*tchttp.BaseResponse
Response *struct {
// 凭据名称。
SecretName *string `json:"SecretName,omitempty" name:"SecretName"`
// 凭据版本号。
VersionId *string `json:"VersionId,omitempty" name:"VersionId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func (r *UpdateSecretResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
func (r *UpdateSecretResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type VersionInfo struct {
// 版本号。
VersionId *string `json:"VersionId,omitempty" name:"VersionId"`
// 创建时间,unix时间戳。
CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"`
}
Go
1
https://gitee.com/mrfenggit/tencentcloud-sdk-go.git
git@gitee.com:mrfenggit/tencentcloud-sdk-go.git
mrfenggit
tencentcloud-sdk-go
tencentcloud-sdk-go
v3.0.233

Search

53164aa7 5694891 3bd8fe86 5694891