tencentcloud-sdk-tcr 3.0.1209 → 3.0.1213
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190924/client.rb +24 -0
- data/lib/v20190924/models.rb +55 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 109bb2c5d2059c82da3b445fddb260660f336593
|
|
4
|
+
data.tar.gz: 53d84548df508a9d74136a9549518fdec6c4f272
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9c70a122d00aa4726c4477208353f336619148a97b9276c90273afe0dc30f64159e8af8cc7eec4b030c748d01005f587663be43ae3bc6186470645df8ca9684
|
|
7
|
+
data.tar.gz: 0c34e235c76222c704c66d44ca4ccd5423fb5ab7dd4873149aa359c3c18988525b06c13dcf8869b34c88811846ecf87bcb0460836d27b090ef3f0ea4317034ef
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1213
|
data/lib/v20190924/client.rb
CHANGED
|
@@ -149,6 +149,30 @@ module TencentCloud
|
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
+
# 创建 GC 作业
|
|
153
|
+
|
|
154
|
+
# @param request: Request instance for CreateGCJob.
|
|
155
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::CreateGCJobRequest`
|
|
156
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::CreateGCJobResponse`
|
|
157
|
+
def CreateGCJob(request)
|
|
158
|
+
body = send_request('CreateGCJob', request.serialize)
|
|
159
|
+
response = JSON.parse(body)
|
|
160
|
+
if response['Response'].key?('Error') == false
|
|
161
|
+
model = CreateGCJobResponse.new
|
|
162
|
+
model.deserialize(response['Response'])
|
|
163
|
+
model
|
|
164
|
+
else
|
|
165
|
+
code = response['Response']['Error']['Code']
|
|
166
|
+
message = response['Response']['Error']['Message']
|
|
167
|
+
reqid = response['Response']['RequestId']
|
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
169
|
+
end
|
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
171
|
+
raise e
|
|
172
|
+
rescue StandardError => e
|
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
174
|
+
end
|
|
175
|
+
|
|
152
176
|
# 创建镜像加速服务
|
|
153
177
|
|
|
154
178
|
# @param request: Request instance for CreateImageAccelerationService.
|
data/lib/v20190924/models.rb
CHANGED
|
@@ -340,6 +340,45 @@ module TencentCloud
|
|
|
340
340
|
end
|
|
341
341
|
end
|
|
342
342
|
|
|
343
|
+
# CreateGCJob请求参数结构体
|
|
344
|
+
class CreateGCJobRequest < TencentCloud::Common::AbstractModel
|
|
345
|
+
# @param RegistryId: 实例 Id
|
|
346
|
+
# @type RegistryId: String
|
|
347
|
+
# @param GCParameters: GC 参数
|
|
348
|
+
# @type GCParameters: :class:`Tencentcloud::Tcr.v20190924.models.GCParameters`
|
|
349
|
+
|
|
350
|
+
attr_accessor :RegistryId, :GCParameters
|
|
351
|
+
|
|
352
|
+
def initialize(registryid=nil, gcparameters=nil)
|
|
353
|
+
@RegistryId = registryid
|
|
354
|
+
@GCParameters = gcparameters
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
def deserialize(params)
|
|
358
|
+
@RegistryId = params['RegistryId']
|
|
359
|
+
unless params['GCParameters'].nil?
|
|
360
|
+
@GCParameters = GCParameters.new
|
|
361
|
+
@GCParameters.deserialize(params['GCParameters'])
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
# CreateGCJob返回参数结构体
|
|
367
|
+
class CreateGCJobResponse < TencentCloud::Common::AbstractModel
|
|
368
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
369
|
+
# @type RequestId: String
|
|
370
|
+
|
|
371
|
+
attr_accessor :RequestId
|
|
372
|
+
|
|
373
|
+
def initialize(requestid=nil)
|
|
374
|
+
@RequestId = requestid
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
def deserialize(params)
|
|
378
|
+
@RequestId = params['RequestId']
|
|
379
|
+
end
|
|
380
|
+
end
|
|
381
|
+
|
|
343
382
|
# CreateImageAccelerationService请求参数结构体
|
|
344
383
|
class CreateImageAccelerationServiceRequest < TencentCloud::Common::AbstractModel
|
|
345
384
|
# @param RegistryId: 实例Id
|
|
@@ -4800,6 +4839,22 @@ module TencentCloud
|
|
|
4800
4839
|
end
|
|
4801
4840
|
end
|
|
4802
4841
|
|
|
4842
|
+
# GC 参数
|
|
4843
|
+
class GCParameters < TencentCloud::Common::AbstractModel
|
|
4844
|
+
# @param Dryrun: 模拟运行
|
|
4845
|
+
# @type Dryrun: Boolean
|
|
4846
|
+
|
|
4847
|
+
attr_accessor :Dryrun
|
|
4848
|
+
|
|
4849
|
+
def initialize(dryrun=nil)
|
|
4850
|
+
@Dryrun = dryrun
|
|
4851
|
+
end
|
|
4852
|
+
|
|
4853
|
+
def deserialize(params)
|
|
4854
|
+
@Dryrun = params['Dryrun']
|
|
4855
|
+
end
|
|
4856
|
+
end
|
|
4857
|
+
|
|
4803
4858
|
# Header KV
|
|
4804
4859
|
class Header < TencentCloud::Common::AbstractModel
|
|
4805
4860
|
# @param Key: Header Key
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-tcr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1213
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-02-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|