tencentcloud-sdk-tse 3.0.675 → 3.0.676

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c30422199edcf1877cb41f89b8f3348c10ef22cb
4
- data.tar.gz: 863a424629f7cd25444808008f287f0ac19f3e96
3
+ metadata.gz: 7c81b26b1f6bd2055c8cc161513b92ec0602daba
4
+ data.tar.gz: b0137581f0c1d3e3421390008afa88e7da152b93
5
5
  SHA512:
6
- metadata.gz: 1831f8bf7c465ca6d8411db1af101a9a205ac51b3db456296feafe14d2876d001963b875c387eaf3d3ea47d52668eed96b2cd57c58c7ddd1cca5bf3e4b5ffa90
7
- data.tar.gz: 0f5b48fdc60e4983f6af2b63c0faf6ec3bcbf55701a9d9ed0ba532ba10b90b444d5cd5d48216b83b98a2fe158d09cbc2c5a2da35019cbb871235a76c6e9f36d1
6
+ metadata.gz: 32c30830e5f364a8f26b41ad2ca1b4fd60b2a11e6a5f837d92b883fd37e2c23b027f148a0279adf46046179cc5341ce5723d01ee3a0819d8ebcec0dabdbb378d
7
+ data.tar.gz: 1649b10e4d3881b498665c3cc02f66688f34e4e8b329b002653f0657daee4fe881078e6865e11371dbd5dab1bf51d17faf96d7faaaba5df09c6d0f353e6f034b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.675
1
+ 3.0.676
@@ -989,6 +989,30 @@ module TencentCloud
989
989
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
990
990
  end
991
991
 
992
+ # 更新云原生网关证书
993
+
994
+ # @param request: Request instance for ModifyCloudNativeAPIGatewayCertificate.
995
+ # @type request: :class:`Tencentcloud::tse::V20201207::ModifyCloudNativeAPIGatewayCertificateRequest`
996
+ # @rtype: :class:`Tencentcloud::tse::V20201207::ModifyCloudNativeAPIGatewayCertificateResponse`
997
+ def ModifyCloudNativeAPIGatewayCertificate(request)
998
+ body = send_request('ModifyCloudNativeAPIGatewayCertificate', request.serialize)
999
+ response = JSON.parse(body)
1000
+ if response['Response'].key?('Error') == false
1001
+ model = ModifyCloudNativeAPIGatewayCertificateResponse.new
1002
+ model.deserialize(response['Response'])
1003
+ model
1004
+ else
1005
+ code = response['Response']['Error']['Code']
1006
+ message = response['Response']['Error']['Message']
1007
+ reqid = response['Response']['RequestId']
1008
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1009
+ end
1010
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1011
+ raise e
1012
+ rescue StandardError => e
1013
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1014
+ end
1015
+
992
1016
  # 修改云原生网关路由
993
1017
 
994
1018
  # @param request: Request instance for ModifyCloudNativeAPIGatewayRoute.
@@ -658,8 +658,8 @@ module TencentCloud
658
658
 
659
659
  attr_accessor :StrategyId, :StrategyName, :CreateTime, :ModifyTime, :Description, :Config, :GatewayId, :CronConfig, :MaxReplicas
660
660
  extend Gem::Deprecate
661
- deprecate :MaxReplicas, :none, 2023, 9
662
- deprecate :MaxReplicas=, :none, 2023, 9
661
+ deprecate :MaxReplicas, :none, 2023, 10
662
+ deprecate :MaxReplicas=, :none, 2023, 10
663
663
 
664
664
  def initialize(strategyid=nil, strategyname=nil, createtime=nil, modifytime=nil, description=nil, config=nil, gatewayid=nil, cronconfig=nil, maxreplicas=nil)
665
665
  @StrategyId = strategyid
@@ -721,14 +721,14 @@ module TencentCloud
721
721
 
722
722
  attr_accessor :MaxReplicas, :Metrics, :Enabled, :CreateTime, :ModifyTime, :StrategyId, :AutoScalerId, :Behavior
723
723
  extend Gem::Deprecate
724
- deprecate :CreateTime, :none, 2023, 9
725
- deprecate :CreateTime=, :none, 2023, 9
726
- deprecate :ModifyTime, :none, 2023, 9
727
- deprecate :ModifyTime=, :none, 2023, 9
728
- deprecate :StrategyId, :none, 2023, 9
729
- deprecate :StrategyId=, :none, 2023, 9
730
- deprecate :AutoScalerId, :none, 2023, 9
731
- deprecate :AutoScalerId=, :none, 2023, 9
724
+ deprecate :CreateTime, :none, 2023, 10
725
+ deprecate :CreateTime=, :none, 2023, 10
726
+ deprecate :ModifyTime, :none, 2023, 10
727
+ deprecate :ModifyTime=, :none, 2023, 10
728
+ deprecate :StrategyId, :none, 2023, 10
729
+ deprecate :StrategyId=, :none, 2023, 10
730
+ deprecate :AutoScalerId, :none, 2023, 10
731
+ deprecate :AutoScalerId=, :none, 2023, 10
732
732
 
733
733
  def initialize(maxreplicas=nil, metrics=nil, enabled=nil, createtime=nil, modifytime=nil, strategyid=nil, autoscalerid=nil, behavior=nil)
734
734
  @MaxReplicas = maxreplicas
@@ -815,12 +815,12 @@ module TencentCloud
815
815
 
816
816
  attr_accessor :Enabled, :Params, :CreateTime, :ModifyTime, :StrategyId
817
817
  extend Gem::Deprecate
818
- deprecate :CreateTime, :none, 2023, 9
819
- deprecate :CreateTime=, :none, 2023, 9
820
- deprecate :ModifyTime, :none, 2023, 9
821
- deprecate :ModifyTime=, :none, 2023, 9
822
- deprecate :StrategyId, :none, 2023, 9
823
- deprecate :StrategyId=, :none, 2023, 9
818
+ deprecate :CreateTime, :none, 2023, 10
819
+ deprecate :CreateTime=, :none, 2023, 10
820
+ deprecate :ModifyTime, :none, 2023, 10
821
+ deprecate :ModifyTime=, :none, 2023, 10
822
+ deprecate :StrategyId, :none, 2023, 10
823
+ deprecate :StrategyId=, :none, 2023, 10
824
824
 
825
825
  def initialize(enabled=nil, params=nil, createtime=nil, modifytime=nil, strategyid=nil)
826
826
  @Enabled = enabled
@@ -960,10 +960,10 @@ module TencentCloud
960
960
 
961
961
  attr_accessor :GatewayId, :BindDomains, :CertId, :Name, :Key, :Crt
962
962
  extend Gem::Deprecate
963
- deprecate :Key, :none, 2023, 9
964
- deprecate :Key=, :none, 2023, 9
965
- deprecate :Crt, :none, 2023, 9
966
- deprecate :Crt=, :none, 2023, 9
963
+ deprecate :Key, :none, 2023, 10
964
+ deprecate :Key=, :none, 2023, 10
965
+ deprecate :Crt, :none, 2023, 10
966
+ deprecate :Crt=, :none, 2023, 10
967
967
 
968
968
  def initialize(gatewayid=nil, binddomains=nil, certid=nil, name=nil, key=nil, crt=nil)
969
969
  @GatewayId = gatewayid
@@ -1240,8 +1240,8 @@ module TencentCloud
1240
1240
 
1241
1241
  attr_accessor :GatewayId, :ServiceID, :RouteName, :Methods, :Hosts, :Paths, :Protocols, :PreserveHost, :HttpsRedirectStatusCode, :StripPath, :ForceHttps, :DestinationPorts, :Headers
1242
1242
  extend Gem::Deprecate
1243
- deprecate :ForceHttps, :none, 2023, 9
1244
- deprecate :ForceHttps=, :none, 2023, 9
1243
+ deprecate :ForceHttps, :none, 2023, 10
1244
+ deprecate :ForceHttps=, :none, 2023, 10
1245
1245
 
1246
1246
  def initialize(gatewayid=nil, serviceid=nil, routename=nil, methods=nil, hosts=nil, paths=nil, protocols=nil, preservehost=nil, httpsredirectstatuscode=nil, strippath=nil, forcehttps=nil, destinationports=nil, headers=nil)
1247
1247
  @GatewayId = gatewayid
@@ -3864,8 +3864,8 @@ module TencentCloud
3864
3864
 
3865
3865
  attr_accessor :Total, :CertificatesList, :Pages
3866
3866
  extend Gem::Deprecate
3867
- deprecate :Pages, :none, 2023, 9
3868
- deprecate :Pages=, :none, 2023, 9
3867
+ deprecate :Pages, :none, 2023, 10
3868
+ deprecate :Pages=, :none, 2023, 10
3869
3869
 
3870
3870
  def initialize(total=nil, certificateslist=nil, pages=nil)
3871
3871
  @Total = total
@@ -4006,8 +4006,8 @@ module TencentCloud
4006
4006
 
4007
4007
  attr_accessor :ID, :Name, :Methods, :Paths, :Hosts, :Protocols, :PreserveHost, :HttpsRedirectStatusCode, :StripPath, :CreatedTime, :ForceHttps, :ServiceName, :ServiceID, :DestinationPorts, :Headers
4008
4008
  extend Gem::Deprecate
4009
- deprecate :ForceHttps, :none, 2023, 9
4010
- deprecate :ForceHttps=, :none, 2023, 9
4009
+ deprecate :ForceHttps, :none, 2023, 10
4010
+ deprecate :ForceHttps=, :none, 2023, 10
4011
4011
 
4012
4012
  def initialize(id=nil, name=nil, methods=nil, paths=nil, hosts=nil, protocols=nil, preservehost=nil, httpsredirectstatuscode=nil, strippath=nil, createdtime=nil, forcehttps=nil, servicename=nil, serviceid=nil, destinationports=nil, headers=nil)
4013
4013
  @ID = id
@@ -4491,6 +4491,73 @@ module TencentCloud
4491
4491
  end
4492
4492
  end
4493
4493
 
4494
+ # ModifyCloudNativeAPIGatewayCertificate请求参数结构体
4495
+ class ModifyCloudNativeAPIGatewayCertificateRequest < TencentCloud::Common::AbstractModel
4496
+ # @param GatewayId: 网关ID
4497
+ # @type GatewayId: String
4498
+ # @param Id: 证书id
4499
+ # @type Id: String
4500
+ # @param Name: 证书名称,即将废弃
4501
+ # @type Name: String
4502
+ # @param Key: 证书私钥,CertSource为native时必填。
4503
+ # @type Key: String
4504
+ # @param Crt: 证书pem格式,CertSource为native时必填。
4505
+ # @type Crt: String
4506
+ # @param BindDomains: 绑定的域名,即将废弃
4507
+ # @type BindDomains: Array
4508
+ # @param CertId: ssl平台证书 Id,CertSource为ssl时必填。
4509
+ # @type CertId: String
4510
+ # @param CertSource: 证书来源
4511
+ # - ssl (ssl平台证书),默认值
4512
+ # - native (kong自定义证书)
4513
+ # @type CertSource: String
4514
+
4515
+ attr_accessor :GatewayId, :Id, :Name, :Key, :Crt, :BindDomains, :CertId, :CertSource
4516
+ extend Gem::Deprecate
4517
+ deprecate :Name, :none, 2023, 10
4518
+ deprecate :Name=, :none, 2023, 10
4519
+ deprecate :BindDomains, :none, 2023, 10
4520
+ deprecate :BindDomains=, :none, 2023, 10
4521
+
4522
+ def initialize(gatewayid=nil, id=nil, name=nil, key=nil, crt=nil, binddomains=nil, certid=nil, certsource=nil)
4523
+ @GatewayId = gatewayid
4524
+ @Id = id
4525
+ @Name = name
4526
+ @Key = key
4527
+ @Crt = crt
4528
+ @BindDomains = binddomains
4529
+ @CertId = certid
4530
+ @CertSource = certsource
4531
+ end
4532
+
4533
+ def deserialize(params)
4534
+ @GatewayId = params['GatewayId']
4535
+ @Id = params['Id']
4536
+ @Name = params['Name']
4537
+ @Key = params['Key']
4538
+ @Crt = params['Crt']
4539
+ @BindDomains = params['BindDomains']
4540
+ @CertId = params['CertId']
4541
+ @CertSource = params['CertSource']
4542
+ end
4543
+ end
4544
+
4545
+ # ModifyCloudNativeAPIGatewayCertificate返回参数结构体
4546
+ class ModifyCloudNativeAPIGatewayCertificateResponse < TencentCloud::Common::AbstractModel
4547
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4548
+ # @type RequestId: String
4549
+
4550
+ attr_accessor :RequestId
4551
+
4552
+ def initialize(requestid=nil)
4553
+ @RequestId = requestid
4554
+ end
4555
+
4556
+ def deserialize(params)
4557
+ @RequestId = params['RequestId']
4558
+ end
4559
+ end
4560
+
4494
4561
  # ModifyCloudNativeAPIGateway请求参数结构体
4495
4562
  class ModifyCloudNativeAPIGatewayRequest < TencentCloud::Common::AbstractModel
4496
4563
  # @param GatewayId: 云原生API网关实例ID。
@@ -4634,8 +4701,8 @@ module TencentCloud
4634
4701
 
4635
4702
  attr_accessor :GatewayId, :ServiceID, :RouteID, :RouteName, :Methods, :Hosts, :Paths, :Protocols, :PreserveHost, :HttpsRedirectStatusCode, :StripPath, :ForceHttps, :DestinationPorts, :Headers
4636
4703
  extend Gem::Deprecate
4637
- deprecate :ForceHttps, :none, 2023, 9
4638
- deprecate :ForceHttps=, :none, 2023, 9
4704
+ deprecate :ForceHttps, :none, 2023, 10
4705
+ deprecate :ForceHttps=, :none, 2023, 10
4639
4706
 
4640
4707
  def initialize(gatewayid=nil, serviceid=nil, routeid=nil, routename=nil, methods=nil, hosts=nil, paths=nil, protocols=nil, preservehost=nil, httpsredirectstatuscode=nil, strippath=nil, forcehttps=nil, destinationports=nil, headers=nil)
4641
4708
  @GatewayId = gatewayid
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tse
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.675
4
+ version: 3.0.676
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-12 00:00:00.000000000 Z
11
+ date: 2023-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common