tencentcloud-sdk-teo 3.0.652 → 3.0.653

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58ac32f5c0b093b4449de754fec45d80d1b2709c
4
- data.tar.gz: db1f84d25989d42ae6c561ba70ba8b927c4743a7
3
+ metadata.gz: a5d8457fd261d308db9dbc11e1591b7e32b55c51
4
+ data.tar.gz: 18e8e9ff9d2d85ec20980097e93c3d620888cbdc
5
5
  SHA512:
6
- metadata.gz: f2e2e05d09107d7a17601093c9f9e8655074e9b2fb95a3d1313af29c557fd33f8f1f12c73f1eae7e7e1d7d4bae43df773fa87e8d3376ed931a0873177d689428
7
- data.tar.gz: f8573ab2e855515d6e911a94fe492c88b13fffdaf83b4229958076ba6c3f71be6e76597b6ceee49da53f1bd388ad9fbe4fcdf2a575ee2d41bc5bd85212c2840d
6
+ metadata.gz: b243fbb9652c406637a38513abdfe05a10c6dc6c9033ee60e94994b78ba2aa8ccca7d0e773d7f5e5c9dddee755b72ba3ac419785ecca9d7b6b86935899db295e
7
+ data.tar.gz: d97c0e691c26d586746420c7a6a2426f4c64320a6d4003026e419f76338ce622af8f65c7225daf8402cfd168c0ffe7e3eccbfbffb9c68ff431630f3d36cce729
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.652
1
+ 3.0.653
@@ -319,6 +319,30 @@ module TencentCloud
319
319
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
320
320
  end
321
321
 
322
+ # 创建共享 CNAME
323
+
324
+ # @param request: Request instance for CreateSharedCNAME.
325
+ # @type request: :class:`Tencentcloud::teo::V20220901::CreateSharedCNAMERequest`
326
+ # @rtype: :class:`Tencentcloud::teo::V20220901::CreateSharedCNAMEResponse`
327
+ def CreateSharedCNAME(request)
328
+ body = send_request('CreateSharedCNAME', request.serialize)
329
+ response = JSON.parse(body)
330
+ if response['Response'].key?('Error') == false
331
+ model = CreateSharedCNAMEResponse.new
332
+ model.deserialize(response['Response'])
333
+ model
334
+ else
335
+ code = response['Response']['Error']['Code']
336
+ message = response['Response']['Error']['Message']
337
+ reqid = response['Response']['RequestId']
338
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
339
+ end
340
+ rescue TencentCloud::Common::TencentCloudSDKException => e
341
+ raise e
342
+ rescue StandardError => e
343
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
344
+ end
345
+
322
346
  # 用于用户接入新的站点。
323
347
 
324
348
  # @param request: Request instance for CreateZone.
@@ -1230,8 +1230,8 @@ module TencentCloud
1230
1230
 
1231
1231
  attr_accessor :Switch, :CacheTime, :IgnoreCacheControl
1232
1232
  extend Gem::Deprecate
1233
- deprecate :IgnoreCacheControl, :none, 2023, 8
1234
- deprecate :IgnoreCacheControl=, :none, 2023, 8
1233
+ deprecate :IgnoreCacheControl, :none, 2023, 9
1234
+ deprecate :IgnoreCacheControl=, :none, 2023, 9
1235
1235
 
1236
1236
  def initialize(switch=nil, cachetime=nil, ignorecachecontrol=nil)
1237
1237
  @Switch = switch
@@ -2010,8 +2010,8 @@ module TencentCloud
2010
2010
 
2011
2011
  attr_accessor :ZoneId, :Type, :Method, :Targets, :EncodeUrl
2012
2012
  extend Gem::Deprecate
2013
- deprecate :EncodeUrl, :none, 2023, 8
2014
- deprecate :EncodeUrl=, :none, 2023, 8
2013
+ deprecate :EncodeUrl, :none, 2023, 9
2014
+ deprecate :EncodeUrl=, :none, 2023, 9
2015
2015
 
2016
2016
  def initialize(zoneid=nil, type=nil, method=nil, targets=nil, encodeurl=nil)
2017
2017
  @ZoneId = zoneid
@@ -2166,6 +2166,52 @@ module TencentCloud
2166
2166
  end
2167
2167
  end
2168
2168
 
2169
+ # CreateSharedCNAME请求参数结构体
2170
+ class CreateSharedCNAMERequest < TencentCloud::Common::AbstractModel
2171
+ # @param ZoneId: 共享 CNAME 所属站点的 ID。
2172
+ # @type ZoneId: String
2173
+ # @param SharedCNAMEPrefix: 共享 CNAME 前缀。请输入合法的域名前缀,例如"test-api"、"test-api.com",限制输入 50 个字符。
2174
+ # 共享 CNAME 完整格式为:<自定义前缀>+<zoneid中的12位随机字符串>+"share.eo.dnse[0-5].com"。例如前缀传入 example.com,EO 会为您创建共享 CNAME:example.com.sai2ig51kaa5.eo.dns2.com
2175
+ # 示例值:example.com
2176
+ # @type SharedCNAMEPrefix: String
2177
+ # @param Description: 描述。可输入 1-50 个任意字符。
2178
+ # @type Description: String
2179
+
2180
+ attr_accessor :ZoneId, :SharedCNAMEPrefix, :Description
2181
+
2182
+ def initialize(zoneid=nil, sharedcnameprefix=nil, description=nil)
2183
+ @ZoneId = zoneid
2184
+ @SharedCNAMEPrefix = sharedcnameprefix
2185
+ @Description = description
2186
+ end
2187
+
2188
+ def deserialize(params)
2189
+ @ZoneId = params['ZoneId']
2190
+ @SharedCNAMEPrefix = params['SharedCNAMEPrefix']
2191
+ @Description = params['Description']
2192
+ end
2193
+ end
2194
+
2195
+ # CreateSharedCNAME返回参数结构体
2196
+ class CreateSharedCNAMEResponse < TencentCloud::Common::AbstractModel
2197
+ # @param SharedCNAME: 共享 CNAME。格式为:<自定义前缀>+<ZoneId中的12位随机字符串>+"share.eo.dnse[0-5].com"
2198
+ # @type SharedCNAME: String
2199
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2200
+ # @type RequestId: String
2201
+
2202
+ attr_accessor :SharedCNAME, :RequestId
2203
+
2204
+ def initialize(sharedcname=nil, requestid=nil)
2205
+ @SharedCNAME = sharedcname
2206
+ @RequestId = requestid
2207
+ end
2208
+
2209
+ def deserialize(params)
2210
+ @SharedCNAME = params['SharedCNAME']
2211
+ @RequestId = params['RequestId']
2212
+ end
2213
+ end
2214
+
2169
2215
  # CreateZone请求参数结构体
2170
2216
  class CreateZoneRequest < TencentCloud::Common::AbstractModel
2171
2217
  # @param ZoneName: 站点名称。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-teo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.652
4
+ version: 3.0.653
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-09-05 00:00:00.000000000 Z
11
+ date: 2023-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common