From 6d0bc94f4eea022986750c80c49a2696462afb59 Mon Sep 17 00:00:00 2001 From: ci_volc_sdk_gen Date: Wed, 22 Jan 2025 13:34:18 +0800 Subject: [PATCH 1/2] feat: auto generate for kms-Golang-2021-02-18-online-953-2025_01_22_13_33_46 --- meta.json | 4 +- service/kms/api_create_key.go | 130 ++++++ service/kms/api_describe_key.go | 122 ++++++ service/kms/api_describe_keys.go | 122 ++++++ service/kms/api_replicate_key.go | 514 +++++++++++++++++++++++ service/kms/api_update_primary_region.go | 231 ++++++++++ service/kms/interface_kms.go | 16 + volcengine/version.go | 2 +- 8 files changed, 1138 insertions(+), 3 deletions(-) create mode 100644 service/kms/api_replicate_key.go create mode 100644 service/kms/api_update_primary_region.go diff --git a/meta.json b/meta.json index 5dd93cf5..1ffbd6dc 100755 --- a/meta.json +++ b/meta.json @@ -1,4 +1,4 @@ { - "lasted": "1.0.178", - "meta_commit": "8f8366b053f7eb9854242daff9d9e6a75afd376c" + "lasted": "1.0.179", + "meta_commit": "6c885790dffb62b8a9a16d19391eb8c9b1e55715" } \ No newline at end of file diff --git a/service/kms/api_create_key.go b/service/kms/api_create_key.go index a568b328..30fb81e6 100644 --- a/service/kms/api_create_key.go +++ b/service/kms/api_create_key.go @@ -158,6 +158,8 @@ type CreateKeyInput struct { // KeyringName is a required field KeyringName *string `min:"2" max:"31" type:"string" json:",omitempty" required:"true"` + MultiRegion *bool `type:"boolean" json:",omitempty"` + Origin *string `type:"string" json:",omitempty"` ProtectionLevel *string `type:"string" json:",omitempty"` @@ -236,6 +238,12 @@ func (s *CreateKeyInput) SetKeyringName(v string) *CreateKeyInput { return s } +// SetMultiRegion sets the MultiRegion field's value. +func (s *CreateKeyInput) SetMultiRegion(v bool) *CreateKeyInput { + s.MultiRegion = &v + return s +} + // SetOrigin sets the Origin field's value. func (s *CreateKeyInput) SetOrigin(v string) *CreateKeyInput { s.Origin = &v @@ -299,6 +307,10 @@ type KeyForCreateKeyOutput struct { LastRotationTime *string `type:"string" json:",omitempty"` + MultiRegion *string `type:"string" json:",omitempty"` + + MultiRegionConfiguration *MultiRegionConfigurationForCreateKeyOutput `type:"structure" json:",omitempty"` + Origin *string `type:"string" json:",omitempty"` ProtectionLevel *string `type:"string" json:",omitempty"` @@ -378,6 +390,18 @@ func (s *KeyForCreateKeyOutput) SetLastRotationTime(v string) *KeyForCreateKeyOu return s } +// SetMultiRegion sets the MultiRegion field's value. +func (s *KeyForCreateKeyOutput) SetMultiRegion(v string) *KeyForCreateKeyOutput { + s.MultiRegion = &v + return s +} + +// SetMultiRegionConfiguration sets the MultiRegionConfiguration field's value. +func (s *KeyForCreateKeyOutput) SetMultiRegionConfiguration(v *MultiRegionConfigurationForCreateKeyOutput) *KeyForCreateKeyOutput { + s.MultiRegionConfiguration = v + return s +} + // SetOrigin sets the Origin field's value. func (s *KeyForCreateKeyOutput) SetOrigin(v string) *KeyForCreateKeyOutput { s.Origin = &v @@ -419,3 +443,109 @@ func (s *KeyForCreateKeyOutput) SetUpdateDate(v int64) *KeyForCreateKeyOutput { s.UpdateDate = &v return s } + +type MultiRegionConfigurationForCreateKeyOutput struct { + _ struct{} `type:"structure" json:",omitempty"` + + MultiRegionKeyType *string `type:"string" json:",omitempty" enum:"EnumOfMultiRegionKeyTypeForCreateKeyOutput"` + + PrimaryKey *PrimaryKeyForCreateKeyOutput `type:"structure" json:",omitempty"` + + ReplicaKeys []*ReplicaKeyForCreateKeyOutput `type:"list" json:",omitempty"` +} + +// String returns the string representation +func (s MultiRegionConfigurationForCreateKeyOutput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s MultiRegionConfigurationForCreateKeyOutput) GoString() string { + return s.String() +} + +// SetMultiRegionKeyType sets the MultiRegionKeyType field's value. +func (s *MultiRegionConfigurationForCreateKeyOutput) SetMultiRegionKeyType(v string) *MultiRegionConfigurationForCreateKeyOutput { + s.MultiRegionKeyType = &v + return s +} + +// SetPrimaryKey sets the PrimaryKey field's value. +func (s *MultiRegionConfigurationForCreateKeyOutput) SetPrimaryKey(v *PrimaryKeyForCreateKeyOutput) *MultiRegionConfigurationForCreateKeyOutput { + s.PrimaryKey = v + return s +} + +// SetReplicaKeys sets the ReplicaKeys field's value. +func (s *MultiRegionConfigurationForCreateKeyOutput) SetReplicaKeys(v []*ReplicaKeyForCreateKeyOutput) *MultiRegionConfigurationForCreateKeyOutput { + s.ReplicaKeys = v + return s +} + +type PrimaryKeyForCreateKeyOutput struct { + _ struct{} `type:"structure" json:",omitempty"` + + Region *string `type:"string" json:",omitempty"` + + Trn *string `type:"string" json:",omitempty"` +} + +// String returns the string representation +func (s PrimaryKeyForCreateKeyOutput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s PrimaryKeyForCreateKeyOutput) GoString() string { + return s.String() +} + +// SetRegion sets the Region field's value. +func (s *PrimaryKeyForCreateKeyOutput) SetRegion(v string) *PrimaryKeyForCreateKeyOutput { + s.Region = &v + return s +} + +// SetTrn sets the Trn field's value. +func (s *PrimaryKeyForCreateKeyOutput) SetTrn(v string) *PrimaryKeyForCreateKeyOutput { + s.Trn = &v + return s +} + +type ReplicaKeyForCreateKeyOutput struct { + _ struct{} `type:"structure" json:",omitempty"` + + Region *string `type:"string" json:",omitempty"` + + Trn *string `type:"string" json:",omitempty"` +} + +// String returns the string representation +func (s ReplicaKeyForCreateKeyOutput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicaKeyForCreateKeyOutput) GoString() string { + return s.String() +} + +// SetRegion sets the Region field's value. +func (s *ReplicaKeyForCreateKeyOutput) SetRegion(v string) *ReplicaKeyForCreateKeyOutput { + s.Region = &v + return s +} + +// SetTrn sets the Trn field's value. +func (s *ReplicaKeyForCreateKeyOutput) SetTrn(v string) *ReplicaKeyForCreateKeyOutput { + s.Trn = &v + return s +} + +const ( + // EnumOfMultiRegionKeyTypeForCreateKeyOutputPrimary is a EnumOfMultiRegionKeyTypeForCreateKeyOutput enum value + EnumOfMultiRegionKeyTypeForCreateKeyOutputPrimary = "PRIMARY" + + // EnumOfMultiRegionKeyTypeForCreateKeyOutputReplica is a EnumOfMultiRegionKeyTypeForCreateKeyOutput enum value + EnumOfMultiRegionKeyTypeForCreateKeyOutputReplica = "REPLICA" +) diff --git a/service/kms/api_describe_key.go b/service/kms/api_describe_key.go index ac5ac07e..9df80b15 100644 --- a/service/kms/api_describe_key.go +++ b/service/kms/api_describe_key.go @@ -248,6 +248,10 @@ type KeyForDescribeKeyOutput struct { LastRotationTime *string `type:"string" json:",omitempty"` + MultiRegion *string `type:"string" json:",omitempty"` + + MultiRegionConfiguration *MultiRegionConfigurationForDescribeKeyOutput `type:"structure" json:",omitempty"` + Origin *string `type:"string" json:",omitempty"` ProtectionLevel *string `type:"string" json:",omitempty"` @@ -327,6 +331,18 @@ func (s *KeyForDescribeKeyOutput) SetLastRotationTime(v string) *KeyForDescribeK return s } +// SetMultiRegion sets the MultiRegion field's value. +func (s *KeyForDescribeKeyOutput) SetMultiRegion(v string) *KeyForDescribeKeyOutput { + s.MultiRegion = &v + return s +} + +// SetMultiRegionConfiguration sets the MultiRegionConfiguration field's value. +func (s *KeyForDescribeKeyOutput) SetMultiRegionConfiguration(v *MultiRegionConfigurationForDescribeKeyOutput) *KeyForDescribeKeyOutput { + s.MultiRegionConfiguration = v + return s +} + // SetOrigin sets the Origin field's value. func (s *KeyForDescribeKeyOutput) SetOrigin(v string) *KeyForDescribeKeyOutput { s.Origin = &v @@ -368,3 +384,109 @@ func (s *KeyForDescribeKeyOutput) SetUpdateDate(v int64) *KeyForDescribeKeyOutpu s.UpdateDate = &v return s } + +type MultiRegionConfigurationForDescribeKeyOutput struct { + _ struct{} `type:"structure" json:",omitempty"` + + MultiRegionKeyType *string `type:"string" json:",omitempty" enum:"EnumOfMultiRegionKeyTypeForDescribeKeyOutput"` + + PrimaryKey *PrimaryKeyForDescribeKeyOutput `type:"structure" json:",omitempty"` + + ReplicaKeys []*ReplicaKeyForDescribeKeyOutput `type:"list" json:",omitempty"` +} + +// String returns the string representation +func (s MultiRegionConfigurationForDescribeKeyOutput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s MultiRegionConfigurationForDescribeKeyOutput) GoString() string { + return s.String() +} + +// SetMultiRegionKeyType sets the MultiRegionKeyType field's value. +func (s *MultiRegionConfigurationForDescribeKeyOutput) SetMultiRegionKeyType(v string) *MultiRegionConfigurationForDescribeKeyOutput { + s.MultiRegionKeyType = &v + return s +} + +// SetPrimaryKey sets the PrimaryKey field's value. +func (s *MultiRegionConfigurationForDescribeKeyOutput) SetPrimaryKey(v *PrimaryKeyForDescribeKeyOutput) *MultiRegionConfigurationForDescribeKeyOutput { + s.PrimaryKey = v + return s +} + +// SetReplicaKeys sets the ReplicaKeys field's value. +func (s *MultiRegionConfigurationForDescribeKeyOutput) SetReplicaKeys(v []*ReplicaKeyForDescribeKeyOutput) *MultiRegionConfigurationForDescribeKeyOutput { + s.ReplicaKeys = v + return s +} + +type PrimaryKeyForDescribeKeyOutput struct { + _ struct{} `type:"structure" json:",omitempty"` + + Region *string `type:"string" json:",omitempty"` + + Trn *string `type:"string" json:",omitempty"` +} + +// String returns the string representation +func (s PrimaryKeyForDescribeKeyOutput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s PrimaryKeyForDescribeKeyOutput) GoString() string { + return s.String() +} + +// SetRegion sets the Region field's value. +func (s *PrimaryKeyForDescribeKeyOutput) SetRegion(v string) *PrimaryKeyForDescribeKeyOutput { + s.Region = &v + return s +} + +// SetTrn sets the Trn field's value. +func (s *PrimaryKeyForDescribeKeyOutput) SetTrn(v string) *PrimaryKeyForDescribeKeyOutput { + s.Trn = &v + return s +} + +type ReplicaKeyForDescribeKeyOutput struct { + _ struct{} `type:"structure" json:",omitempty"` + + Region *string `type:"string" json:",omitempty"` + + Trn *string `type:"string" json:",omitempty"` +} + +// String returns the string representation +func (s ReplicaKeyForDescribeKeyOutput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicaKeyForDescribeKeyOutput) GoString() string { + return s.String() +} + +// SetRegion sets the Region field's value. +func (s *ReplicaKeyForDescribeKeyOutput) SetRegion(v string) *ReplicaKeyForDescribeKeyOutput { + s.Region = &v + return s +} + +// SetTrn sets the Trn field's value. +func (s *ReplicaKeyForDescribeKeyOutput) SetTrn(v string) *ReplicaKeyForDescribeKeyOutput { + s.Trn = &v + return s +} + +const ( + // EnumOfMultiRegionKeyTypeForDescribeKeyOutputPrimary is a EnumOfMultiRegionKeyTypeForDescribeKeyOutput enum value + EnumOfMultiRegionKeyTypeForDescribeKeyOutputPrimary = "PRIMARY" + + // EnumOfMultiRegionKeyTypeForDescribeKeyOutputReplica is a EnumOfMultiRegionKeyTypeForDescribeKeyOutput enum value + EnumOfMultiRegionKeyTypeForDescribeKeyOutputReplica = "REPLICA" +) diff --git a/service/kms/api_describe_keys.go b/service/kms/api_describe_keys.go index 84ed3fae..a65c687d 100644 --- a/service/kms/api_describe_keys.go +++ b/service/kms/api_describe_keys.go @@ -278,6 +278,10 @@ type KeyForDescribeKeysOutput struct { LastRotationTime *string `type:"string" json:",omitempty"` + MultiRegion *string `type:"string" json:",omitempty"` + + MultiRegionConfiguration *MultiRegionConfigurationForDescribeKeysOutput `type:"structure" json:",omitempty"` + Origin *string `type:"string" json:",omitempty"` ProtectionLevel *string `type:"string" json:",omitempty"` @@ -357,6 +361,18 @@ func (s *KeyForDescribeKeysOutput) SetLastRotationTime(v string) *KeyForDescribe return s } +// SetMultiRegion sets the MultiRegion field's value. +func (s *KeyForDescribeKeysOutput) SetMultiRegion(v string) *KeyForDescribeKeysOutput { + s.MultiRegion = &v + return s +} + +// SetMultiRegionConfiguration sets the MultiRegionConfiguration field's value. +func (s *KeyForDescribeKeysOutput) SetMultiRegionConfiguration(v *MultiRegionConfigurationForDescribeKeysOutput) *KeyForDescribeKeysOutput { + s.MultiRegionConfiguration = v + return s +} + // SetOrigin sets the Origin field's value. func (s *KeyForDescribeKeysOutput) SetOrigin(v string) *KeyForDescribeKeysOutput { s.Origin = &v @@ -399,6 +415,44 @@ func (s *KeyForDescribeKeysOutput) SetUpdateDate(v int64) *KeyForDescribeKeysOut return s } +type MultiRegionConfigurationForDescribeKeysOutput struct { + _ struct{} `type:"structure" json:",omitempty"` + + MultiRegionKeyType *string `type:"string" json:",omitempty" enum:"EnumOfMultiRegionKeyTypeForDescribeKeysOutput"` + + PrimaryKey *PrimaryKeyForDescribeKeysOutput `type:"structure" json:",omitempty"` + + ReplicaKeys []*ReplicaKeyForDescribeKeysOutput `type:"list" json:",omitempty"` +} + +// String returns the string representation +func (s MultiRegionConfigurationForDescribeKeysOutput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s MultiRegionConfigurationForDescribeKeysOutput) GoString() string { + return s.String() +} + +// SetMultiRegionKeyType sets the MultiRegionKeyType field's value. +func (s *MultiRegionConfigurationForDescribeKeysOutput) SetMultiRegionKeyType(v string) *MultiRegionConfigurationForDescribeKeysOutput { + s.MultiRegionKeyType = &v + return s +} + +// SetPrimaryKey sets the PrimaryKey field's value. +func (s *MultiRegionConfigurationForDescribeKeysOutput) SetPrimaryKey(v *PrimaryKeyForDescribeKeysOutput) *MultiRegionConfigurationForDescribeKeysOutput { + s.PrimaryKey = v + return s +} + +// SetReplicaKeys sets the ReplicaKeys field's value. +func (s *MultiRegionConfigurationForDescribeKeysOutput) SetReplicaKeys(v []*ReplicaKeyForDescribeKeysOutput) *MultiRegionConfigurationForDescribeKeysOutput { + s.ReplicaKeys = v + return s +} + type PageInfoForDescribeKeysOutput struct { _ struct{} `type:"structure" json:",omitempty"` @@ -444,3 +498,71 @@ func (s *PageInfoForDescribeKeysOutput) SetTotalCount(v int32) *PageInfoForDescr s.TotalCount = &v return s } + +type PrimaryKeyForDescribeKeysOutput struct { + _ struct{} `type:"structure" json:",omitempty"` + + Region *string `type:"string" json:",omitempty"` + + Trn *string `type:"string" json:",omitempty"` +} + +// String returns the string representation +func (s PrimaryKeyForDescribeKeysOutput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s PrimaryKeyForDescribeKeysOutput) GoString() string { + return s.String() +} + +// SetRegion sets the Region field's value. +func (s *PrimaryKeyForDescribeKeysOutput) SetRegion(v string) *PrimaryKeyForDescribeKeysOutput { + s.Region = &v + return s +} + +// SetTrn sets the Trn field's value. +func (s *PrimaryKeyForDescribeKeysOutput) SetTrn(v string) *PrimaryKeyForDescribeKeysOutput { + s.Trn = &v + return s +} + +type ReplicaKeyForDescribeKeysOutput struct { + _ struct{} `type:"structure" json:",omitempty"` + + Region *string `type:"string" json:",omitempty"` + + Trn *string `type:"string" json:",omitempty"` +} + +// String returns the string representation +func (s ReplicaKeyForDescribeKeysOutput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicaKeyForDescribeKeysOutput) GoString() string { + return s.String() +} + +// SetRegion sets the Region field's value. +func (s *ReplicaKeyForDescribeKeysOutput) SetRegion(v string) *ReplicaKeyForDescribeKeysOutput { + s.Region = &v + return s +} + +// SetTrn sets the Trn field's value. +func (s *ReplicaKeyForDescribeKeysOutput) SetTrn(v string) *ReplicaKeyForDescribeKeysOutput { + s.Trn = &v + return s +} + +const ( + // EnumOfMultiRegionKeyTypeForDescribeKeysOutputPrimary is a EnumOfMultiRegionKeyTypeForDescribeKeysOutput enum value + EnumOfMultiRegionKeyTypeForDescribeKeysOutputPrimary = "PRIMARY" + + // EnumOfMultiRegionKeyTypeForDescribeKeysOutputReplica is a EnumOfMultiRegionKeyTypeForDescribeKeysOutput enum value + EnumOfMultiRegionKeyTypeForDescribeKeysOutputReplica = "REPLICA" +) diff --git a/service/kms/api_replicate_key.go b/service/kms/api_replicate_key.go new file mode 100644 index 00000000..b97149ad --- /dev/null +++ b/service/kms/api_replicate_key.go @@ -0,0 +1,514 @@ +// Code generated by volcengine with private/model/cli/gen-api/main.go. DO NOT EDIT. + +package kms + +import ( + "github.com/volcengine/volcengine-go-sdk/volcengine" + "github.com/volcengine/volcengine-go-sdk/volcengine/request" + "github.com/volcengine/volcengine-go-sdk/volcengine/response" + "github.com/volcengine/volcengine-go-sdk/volcengine/volcengineutil" +) + +const opReplicateKeyCommon = "ReplicateKey" + +// ReplicateKeyCommonRequest generates a "volcengine/request.Request" representing the +// client's request for the ReplicateKeyCommon operation. The "output" return +// value will be populated with the ReplicateKeyCommon request's response once the request completes +// successfully. +// +// Use "Send" method on the returned ReplicateKeyCommon Request to send the API call to the service. +// the "output" return value is not valid until after ReplicateKeyCommon Send returns without error. +// +// See ReplicateKeyCommon for more information on using the ReplicateKeyCommon +// API call, and error handling. +// +// // Example sending a request using the ReplicateKeyCommonRequest method. +// req, resp := client.ReplicateKeyCommonRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *KMS) ReplicateKeyCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{}) { + op := &request.Operation{ + Name: opReplicateKeyCommon, + HTTPMethod: "GET", + HTTPPath: "/", + } + + if input == nil { + input = &map[string]interface{}{} + } + + output = &map[string]interface{}{} + req = c.newRequest(op, input, output) + + return +} + +// ReplicateKeyCommon API operation for KMS. +// +// Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions +// with volcengineerr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the VOLCENGINE API reference guide for KMS's +// API operation ReplicateKeyCommon for usage and error information. +func (c *KMS) ReplicateKeyCommon(input *map[string]interface{}) (*map[string]interface{}, error) { + req, out := c.ReplicateKeyCommonRequest(input) + return out, req.Send() +} + +// ReplicateKeyCommonWithContext is the same as ReplicateKeyCommon with the addition of +// the ability to pass a context and additional request options. +// +// See ReplicateKeyCommon for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. +// In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KMS) ReplicateKeyCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error) { + req, out := c.ReplicateKeyCommonRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opReplicateKey = "ReplicateKey" + +// ReplicateKeyRequest generates a "volcengine/request.Request" representing the +// client's request for the ReplicateKey operation. The "output" return +// value will be populated with the ReplicateKeyCommon request's response once the request completes +// successfully. +// +// Use "Send" method on the returned ReplicateKeyCommon Request to send the API call to the service. +// the "output" return value is not valid until after ReplicateKeyCommon Send returns without error. +// +// See ReplicateKey for more information on using the ReplicateKey +// API call, and error handling. +// +// // Example sending a request using the ReplicateKeyRequest method. +// req, resp := client.ReplicateKeyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *KMS) ReplicateKeyRequest(input *ReplicateKeyInput) (req *request.Request, output *ReplicateKeyOutput) { + op := &request.Operation{ + Name: opReplicateKey, + HTTPMethod: "GET", + HTTPPath: "/", + } + + if input == nil { + input = &ReplicateKeyInput{} + } + + output = &ReplicateKeyOutput{} + req = c.newRequest(op, input, output) + + return +} + +// ReplicateKey API operation for KMS. +// +// Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions +// with volcengineerr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the VOLCENGINE API reference guide for KMS's +// API operation ReplicateKey for usage and error information. +func (c *KMS) ReplicateKey(input *ReplicateKeyInput) (*ReplicateKeyOutput, error) { + req, out := c.ReplicateKeyRequest(input) + return out, req.Send() +} + +// ReplicateKeyWithContext is the same as ReplicateKey with the addition of +// the ability to pass a context and additional request options. +// +// See ReplicateKey for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. +// In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KMS) ReplicateKeyWithContext(ctx volcengine.Context, input *ReplicateKeyInput, opts ...request.Option) (*ReplicateKeyOutput, error) { + req, out := c.ReplicateKeyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type ConvertReplicaKeyForReplicateKeyOutput struct { + _ struct{} `type:"structure"` + + CreationDate *int64 `type:"int64"` + + Description *string `type:"string"` + + ID *string `type:"string"` + + KeyMaterialExpireTime *string `type:"string"` + + KeyName *string `type:"string"` + + KeySpec *string `type:"string"` + + KeyState *string `type:"string"` + + KeyUsage *string `type:"string"` + + LastRotationTime *string `type:"string"` + + MultiRegion *string `type:"string"` + + MultiRegionConfiguration *MultiRegionConfigurationForReplicateKeyOutput `type:"structure"` + + Origin *string `type:"string"` + + ProtectionLevel *string `type:"string"` + + RotationState *string `type:"string"` + + ScheduleDeleteTime *string `type:"string"` + + ScheduleRotationTime *string `type:"string"` + + Trn *string `type:"string"` + + UpdateDate *int64 `type:"int64"` +} + +// String returns the string representation +func (s ConvertReplicaKeyForReplicateKeyOutput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConvertReplicaKeyForReplicateKeyOutput) GoString() string { + return s.String() +} + +// SetCreationDate sets the CreationDate field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetCreationDate(v int64) *ConvertReplicaKeyForReplicateKeyOutput { + s.CreationDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetDescription(v string) *ConvertReplicaKeyForReplicateKeyOutput { + s.Description = &v + return s +} + +// SetID sets the ID field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetID(v string) *ConvertReplicaKeyForReplicateKeyOutput { + s.ID = &v + return s +} + +// SetKeyMaterialExpireTime sets the KeyMaterialExpireTime field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetKeyMaterialExpireTime(v string) *ConvertReplicaKeyForReplicateKeyOutput { + s.KeyMaterialExpireTime = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetKeyName(v string) *ConvertReplicaKeyForReplicateKeyOutput { + s.KeyName = &v + return s +} + +// SetKeySpec sets the KeySpec field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetKeySpec(v string) *ConvertReplicaKeyForReplicateKeyOutput { + s.KeySpec = &v + return s +} + +// SetKeyState sets the KeyState field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetKeyState(v string) *ConvertReplicaKeyForReplicateKeyOutput { + s.KeyState = &v + return s +} + +// SetKeyUsage sets the KeyUsage field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetKeyUsage(v string) *ConvertReplicaKeyForReplicateKeyOutput { + s.KeyUsage = &v + return s +} + +// SetLastRotationTime sets the LastRotationTime field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetLastRotationTime(v string) *ConvertReplicaKeyForReplicateKeyOutput { + s.LastRotationTime = &v + return s +} + +// SetMultiRegion sets the MultiRegion field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetMultiRegion(v string) *ConvertReplicaKeyForReplicateKeyOutput { + s.MultiRegion = &v + return s +} + +// SetMultiRegionConfiguration sets the MultiRegionConfiguration field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetMultiRegionConfiguration(v *MultiRegionConfigurationForReplicateKeyOutput) *ConvertReplicaKeyForReplicateKeyOutput { + s.MultiRegionConfiguration = v + return s +} + +// SetOrigin sets the Origin field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetOrigin(v string) *ConvertReplicaKeyForReplicateKeyOutput { + s.Origin = &v + return s +} + +// SetProtectionLevel sets the ProtectionLevel field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetProtectionLevel(v string) *ConvertReplicaKeyForReplicateKeyOutput { + s.ProtectionLevel = &v + return s +} + +// SetRotationState sets the RotationState field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetRotationState(v string) *ConvertReplicaKeyForReplicateKeyOutput { + s.RotationState = &v + return s +} + +// SetScheduleDeleteTime sets the ScheduleDeleteTime field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetScheduleDeleteTime(v string) *ConvertReplicaKeyForReplicateKeyOutput { + s.ScheduleDeleteTime = &v + return s +} + +// SetScheduleRotationTime sets the ScheduleRotationTime field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetScheduleRotationTime(v string) *ConvertReplicaKeyForReplicateKeyOutput { + s.ScheduleRotationTime = &v + return s +} + +// SetTrn sets the Trn field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetTrn(v string) *ConvertReplicaKeyForReplicateKeyOutput { + s.Trn = &v + return s +} + +// SetUpdateDate sets the UpdateDate field's value. +func (s *ConvertReplicaKeyForReplicateKeyOutput) SetUpdateDate(v int64) *ConvertReplicaKeyForReplicateKeyOutput { + s.UpdateDate = &v + return s +} + +type MultiRegionConfigurationForReplicateKeyOutput struct { + _ struct{} `type:"structure"` + + MultiRegionKeyType *string `type:"string" enum:"EnumOfMultiRegionKeyTypeForReplicateKeyOutput"` + + PrimaryKey *PrimaryKeyForReplicateKeyOutput `type:"structure"` + + ReplicaKeys []*ReplicaKeyForReplicateKeyOutput `type:"list"` +} + +// String returns the string representation +func (s MultiRegionConfigurationForReplicateKeyOutput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s MultiRegionConfigurationForReplicateKeyOutput) GoString() string { + return s.String() +} + +// SetMultiRegionKeyType sets the MultiRegionKeyType field's value. +func (s *MultiRegionConfigurationForReplicateKeyOutput) SetMultiRegionKeyType(v string) *MultiRegionConfigurationForReplicateKeyOutput { + s.MultiRegionKeyType = &v + return s +} + +// SetPrimaryKey sets the PrimaryKey field's value. +func (s *MultiRegionConfigurationForReplicateKeyOutput) SetPrimaryKey(v *PrimaryKeyForReplicateKeyOutput) *MultiRegionConfigurationForReplicateKeyOutput { + s.PrimaryKey = v + return s +} + +// SetReplicaKeys sets the ReplicaKeys field's value. +func (s *MultiRegionConfigurationForReplicateKeyOutput) SetReplicaKeys(v []*ReplicaKeyForReplicateKeyOutput) *MultiRegionConfigurationForReplicateKeyOutput { + s.ReplicaKeys = v + return s +} + +type PrimaryKeyForReplicateKeyOutput struct { + _ struct{} `type:"structure"` + + Region *string `type:"string"` + + Trn *string `type:"string"` +} + +// String returns the string representation +func (s PrimaryKeyForReplicateKeyOutput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s PrimaryKeyForReplicateKeyOutput) GoString() string { + return s.String() +} + +// SetRegion sets the Region field's value. +func (s *PrimaryKeyForReplicateKeyOutput) SetRegion(v string) *PrimaryKeyForReplicateKeyOutput { + s.Region = &v + return s +} + +// SetTrn sets the Trn field's value. +func (s *PrimaryKeyForReplicateKeyOutput) SetTrn(v string) *PrimaryKeyForReplicateKeyOutput { + s.Trn = &v + return s +} + +type ReplicaKeyForReplicateKeyOutput struct { + _ struct{} `type:"structure"` + + Region *string `type:"string"` + + Trn *string `type:"string"` +} + +// String returns the string representation +func (s ReplicaKeyForReplicateKeyOutput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicaKeyForReplicateKeyOutput) GoString() string { + return s.String() +} + +// SetRegion sets the Region field's value. +func (s *ReplicaKeyForReplicateKeyOutput) SetRegion(v string) *ReplicaKeyForReplicateKeyOutput { + s.Region = &v + return s +} + +// SetTrn sets the Trn field's value. +func (s *ReplicaKeyForReplicateKeyOutput) SetTrn(v string) *ReplicaKeyForReplicateKeyOutput { + s.Trn = &v + return s +} + +type ReplicateKeyInput struct { + _ struct{} `type:"structure"` + + Description *string `max:"8192" type:"string"` + + KeyID *string `type:"string"` + + KeyName *string `min:"2" max:"31" type:"string"` + + KeyringName *string `min:"2" max:"31" type:"string"` + + // ReplicaRegion is a required field + ReplicaRegion *string `max:"64" type:"string" required:"true"` +} + +// String returns the string representation +func (s ReplicateKeyInput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicateKeyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ReplicateKeyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ReplicateKeyInput"} + if s.Description != nil && len(*s.Description) > 8192 { + invalidParams.Add(request.NewErrParamMaxLen("Description", 8192, *s.Description)) + } + if s.KeyName != nil && len(*s.KeyName) < 2 { + invalidParams.Add(request.NewErrParamMinLen("KeyName", 2)) + } + if s.KeyName != nil && len(*s.KeyName) > 31 { + invalidParams.Add(request.NewErrParamMaxLen("KeyName", 31, *s.KeyName)) + } + if s.KeyringName != nil && len(*s.KeyringName) < 2 { + invalidParams.Add(request.NewErrParamMinLen("KeyringName", 2)) + } + if s.KeyringName != nil && len(*s.KeyringName) > 31 { + invalidParams.Add(request.NewErrParamMaxLen("KeyringName", 31, *s.KeyringName)) + } + if s.ReplicaRegion == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicaRegion")) + } + if s.ReplicaRegion != nil && len(*s.ReplicaRegion) > 64 { + invalidParams.Add(request.NewErrParamMaxLen("ReplicaRegion", 64, *s.ReplicaRegion)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *ReplicateKeyInput) SetDescription(v string) *ReplicateKeyInput { + s.Description = &v + return s +} + +// SetKeyID sets the KeyID field's value. +func (s *ReplicateKeyInput) SetKeyID(v string) *ReplicateKeyInput { + s.KeyID = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *ReplicateKeyInput) SetKeyName(v string) *ReplicateKeyInput { + s.KeyName = &v + return s +} + +// SetKeyringName sets the KeyringName field's value. +func (s *ReplicateKeyInput) SetKeyringName(v string) *ReplicateKeyInput { + s.KeyringName = &v + return s +} + +// SetReplicaRegion sets the ReplicaRegion field's value. +func (s *ReplicateKeyInput) SetReplicaRegion(v string) *ReplicateKeyInput { + s.ReplicaRegion = &v + return s +} + +type ReplicateKeyOutput struct { + _ struct{} `type:"structure"` + + Metadata *response.ResponseMetadata + + ReplicaKey *ConvertReplicaKeyForReplicateKeyOutput `type:"structure"` +} + +// String returns the string representation +func (s ReplicateKeyOutput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicateKeyOutput) GoString() string { + return s.String() +} + +// SetReplicaKey sets the ReplicaKey field's value. +func (s *ReplicateKeyOutput) SetReplicaKey(v *ConvertReplicaKeyForReplicateKeyOutput) *ReplicateKeyOutput { + s.ReplicaKey = v + return s +} + +const ( + // EnumOfMultiRegionKeyTypeForReplicateKeyOutputPrimary is a EnumOfMultiRegionKeyTypeForReplicateKeyOutput enum value + EnumOfMultiRegionKeyTypeForReplicateKeyOutputPrimary = "PRIMARY" + + // EnumOfMultiRegionKeyTypeForReplicateKeyOutputReplica is a EnumOfMultiRegionKeyTypeForReplicateKeyOutput enum value + EnumOfMultiRegionKeyTypeForReplicateKeyOutputReplica = "REPLICA" +) diff --git a/service/kms/api_update_primary_region.go b/service/kms/api_update_primary_region.go new file mode 100644 index 00000000..0274e81c --- /dev/null +++ b/service/kms/api_update_primary_region.go @@ -0,0 +1,231 @@ +// Code generated by volcengine with private/model/cli/gen-api/main.go. DO NOT EDIT. + +package kms + +import ( + "github.com/volcengine/volcengine-go-sdk/volcengine" + "github.com/volcengine/volcengine-go-sdk/volcengine/request" + "github.com/volcengine/volcengine-go-sdk/volcengine/response" + "github.com/volcengine/volcengine-go-sdk/volcengine/volcengineutil" +) + +const opUpdatePrimaryRegionCommon = "UpdatePrimaryRegion" + +// UpdatePrimaryRegionCommonRequest generates a "volcengine/request.Request" representing the +// client's request for the UpdatePrimaryRegionCommon operation. The "output" return +// value will be populated with the UpdatePrimaryRegionCommon request's response once the request completes +// successfully. +// +// Use "Send" method on the returned UpdatePrimaryRegionCommon Request to send the API call to the service. +// the "output" return value is not valid until after UpdatePrimaryRegionCommon Send returns without error. +// +// See UpdatePrimaryRegionCommon for more information on using the UpdatePrimaryRegionCommon +// API call, and error handling. +// +// // Example sending a request using the UpdatePrimaryRegionCommonRequest method. +// req, resp := client.UpdatePrimaryRegionCommonRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *KMS) UpdatePrimaryRegionCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{}) { + op := &request.Operation{ + Name: opUpdatePrimaryRegionCommon, + HTTPMethod: "GET", + HTTPPath: "/", + } + + if input == nil { + input = &map[string]interface{}{} + } + + output = &map[string]interface{}{} + req = c.newRequest(op, input, output) + + return +} + +// UpdatePrimaryRegionCommon API operation for KMS. +// +// Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions +// with volcengineerr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the VOLCENGINE API reference guide for KMS's +// API operation UpdatePrimaryRegionCommon for usage and error information. +func (c *KMS) UpdatePrimaryRegionCommon(input *map[string]interface{}) (*map[string]interface{}, error) { + req, out := c.UpdatePrimaryRegionCommonRequest(input) + return out, req.Send() +} + +// UpdatePrimaryRegionCommonWithContext is the same as UpdatePrimaryRegionCommon with the addition of +// the ability to pass a context and additional request options. +// +// See UpdatePrimaryRegionCommon for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. +// In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KMS) UpdatePrimaryRegionCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error) { + req, out := c.UpdatePrimaryRegionCommonRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdatePrimaryRegion = "UpdatePrimaryRegion" + +// UpdatePrimaryRegionRequest generates a "volcengine/request.Request" representing the +// client's request for the UpdatePrimaryRegion operation. The "output" return +// value will be populated with the UpdatePrimaryRegionCommon request's response once the request completes +// successfully. +// +// Use "Send" method on the returned UpdatePrimaryRegionCommon Request to send the API call to the service. +// the "output" return value is not valid until after UpdatePrimaryRegionCommon Send returns without error. +// +// See UpdatePrimaryRegion for more information on using the UpdatePrimaryRegion +// API call, and error handling. +// +// // Example sending a request using the UpdatePrimaryRegionRequest method. +// req, resp := client.UpdatePrimaryRegionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *KMS) UpdatePrimaryRegionRequest(input *UpdatePrimaryRegionInput) (req *request.Request, output *UpdatePrimaryRegionOutput) { + op := &request.Operation{ + Name: opUpdatePrimaryRegion, + HTTPMethod: "GET", + HTTPPath: "/", + } + + if input == nil { + input = &UpdatePrimaryRegionInput{} + } + + output = &UpdatePrimaryRegionOutput{} + req = c.newRequest(op, input, output) + + return +} + +// UpdatePrimaryRegion API operation for KMS. +// +// Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions +// with volcengineerr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the VOLCENGINE API reference guide for KMS's +// API operation UpdatePrimaryRegion for usage and error information. +func (c *KMS) UpdatePrimaryRegion(input *UpdatePrimaryRegionInput) (*UpdatePrimaryRegionOutput, error) { + req, out := c.UpdatePrimaryRegionRequest(input) + return out, req.Send() +} + +// UpdatePrimaryRegionWithContext is the same as UpdatePrimaryRegion with the addition of +// the ability to pass a context and additional request options. +// +// See UpdatePrimaryRegion for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. +// In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KMS) UpdatePrimaryRegionWithContext(ctx volcengine.Context, input *UpdatePrimaryRegionInput, opts ...request.Option) (*UpdatePrimaryRegionOutput, error) { + req, out := c.UpdatePrimaryRegionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type UpdatePrimaryRegionInput struct { + _ struct{} `type:"structure"` + + KeyID *string `type:"string"` + + KeyName *string `min:"2" max:"31" type:"string"` + + KeyringName *string `min:"2" max:"31" type:"string"` + + // PrimaryRegion is a required field + PrimaryRegion *string `max:"64" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdatePrimaryRegionInput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdatePrimaryRegionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdatePrimaryRegionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdatePrimaryRegionInput"} + if s.KeyName != nil && len(*s.KeyName) < 2 { + invalidParams.Add(request.NewErrParamMinLen("KeyName", 2)) + } + if s.KeyName != nil && len(*s.KeyName) > 31 { + invalidParams.Add(request.NewErrParamMaxLen("KeyName", 31, *s.KeyName)) + } + if s.KeyringName != nil && len(*s.KeyringName) < 2 { + invalidParams.Add(request.NewErrParamMinLen("KeyringName", 2)) + } + if s.KeyringName != nil && len(*s.KeyringName) > 31 { + invalidParams.Add(request.NewErrParamMaxLen("KeyringName", 31, *s.KeyringName)) + } + if s.PrimaryRegion == nil { + invalidParams.Add(request.NewErrParamRequired("PrimaryRegion")) + } + if s.PrimaryRegion != nil && len(*s.PrimaryRegion) > 64 { + invalidParams.Add(request.NewErrParamMaxLen("PrimaryRegion", 64, *s.PrimaryRegion)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKeyID sets the KeyID field's value. +func (s *UpdatePrimaryRegionInput) SetKeyID(v string) *UpdatePrimaryRegionInput { + s.KeyID = &v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *UpdatePrimaryRegionInput) SetKeyName(v string) *UpdatePrimaryRegionInput { + s.KeyName = &v + return s +} + +// SetKeyringName sets the KeyringName field's value. +func (s *UpdatePrimaryRegionInput) SetKeyringName(v string) *UpdatePrimaryRegionInput { + s.KeyringName = &v + return s +} + +// SetPrimaryRegion sets the PrimaryRegion field's value. +func (s *UpdatePrimaryRegionInput) SetPrimaryRegion(v string) *UpdatePrimaryRegionInput { + s.PrimaryRegion = &v + return s +} + +type UpdatePrimaryRegionOutput struct { + _ struct{} `type:"structure"` + + Metadata *response.ResponseMetadata +} + +// String returns the string representation +func (s UpdatePrimaryRegionOutput) String() string { + return volcengineutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdatePrimaryRegionOutput) GoString() string { + return s.String() +} diff --git a/service/kms/interface_kms.go b/service/kms/interface_kms.go index 3534deaf..031a85ee 100644 --- a/service/kms/interface_kms.go +++ b/service/kms/interface_kms.go @@ -318,6 +318,14 @@ type KMSAPI interface { ReEncryptWithContext(volcengine.Context, *ReEncryptInput, ...request.Option) (*ReEncryptOutput, error) ReEncryptRequest(*ReEncryptInput) (*request.Request, *ReEncryptOutput) + ReplicateKeyCommon(*map[string]interface{}) (*map[string]interface{}, error) + ReplicateKeyCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error) + ReplicateKeyCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{}) + + ReplicateKey(*ReplicateKeyInput) (*ReplicateKeyOutput, error) + ReplicateKeyWithContext(volcengine.Context, *ReplicateKeyInput, ...request.Option) (*ReplicateKeyOutput, error) + ReplicateKeyRequest(*ReplicateKeyInput) (*request.Request, *ReplicateKeyOutput) + RestoreSecretCommon(*map[string]interface{}) (*map[string]interface{}, error) RestoreSecretCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error) RestoreSecretCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{}) @@ -374,6 +382,14 @@ type KMSAPI interface { UpdateKeyringWithContext(volcengine.Context, *UpdateKeyringInput, ...request.Option) (*UpdateKeyringOutput, error) UpdateKeyringRequest(*UpdateKeyringInput) (*request.Request, *UpdateKeyringOutput) + UpdatePrimaryRegionCommon(*map[string]interface{}) (*map[string]interface{}, error) + UpdatePrimaryRegionCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error) + UpdatePrimaryRegionCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{}) + + UpdatePrimaryRegion(*UpdatePrimaryRegionInput) (*UpdatePrimaryRegionOutput, error) + UpdatePrimaryRegionWithContext(volcengine.Context, *UpdatePrimaryRegionInput, ...request.Option) (*UpdatePrimaryRegionOutput, error) + UpdatePrimaryRegionRequest(*UpdatePrimaryRegionInput) (*request.Request, *UpdatePrimaryRegionOutput) + UpdateSecretCommon(*map[string]interface{}) (*map[string]interface{}, error) UpdateSecretCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error) UpdateSecretCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{}) diff --git a/volcengine/version.go b/volcengine/version.go index 00f9ed28..97a68cf9 100644 --- a/volcengine/version.go +++ b/volcengine/version.go @@ -8,4 +8,4 @@ package volcengine const SDKName = "volcengine-go-sdk" // SDKVersion is the version of this SDK -const SDKVersion = "1.0.178" +const SDKVersion = "1.0.179" From 77001489320875432fb612d53a7159e9eee9fe1f Mon Sep 17 00:00:00 2001 From: "xiujie.1" Date: Thu, 23 Jan 2025 18:59:28 +0800 Subject: [PATCH 2/2] update version and commitId --- meta.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta.json b/meta.json index 1ffbd6dc..e04c0997 100755 --- a/meta.json +++ b/meta.json @@ -1,4 +1,4 @@ { "lasted": "1.0.179", - "meta_commit": "6c885790dffb62b8a9a16d19391eb8c9b1e55715" + "meta_commit": "fed66b9de234a6d3a58c55d4568adb6fc4ee5b11" } \ No newline at end of file