tencentcloud-sdk-tcr 3.0.635 → 3.0.636

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: 79bc6e011b82317edeed17ca016af0c95cb0cc09
4
- data.tar.gz: 478df57c31cfad0ad111d8251ad0dc95c87f8f47
3
+ metadata.gz: f0d84c6d027441c7c70d20661b9a059871cef804
4
+ data.tar.gz: 79de2f419e8425328b6629c3bb9f6f3dbe819b80
5
5
  SHA512:
6
- metadata.gz: 48638a1548905400bdf5c48a78f29850138fec61dcc9a8d2c7720bc4853d0dbc35700aac23ca1c4c22c02d3489ef7cea7ebb333ef38d7adb6f5c9950c48acc09
7
- data.tar.gz: 93340485aa190cfc261fd80bf8f10c851338bb2d2d6246d3e8a6b4f22a9e5b6dfe5650aa12f04a7174d35b013abe831fe54eef2fb2f732dbde3a3d23c5ea9f21
6
+ metadata.gz: 9003f0a175206ae3db4e9533da9edbf74d7d06456943f09d9e0f8a42b3471f54586010dad8cb0269fed3fd263efe4898f1d7b192b22c1e6a13e92bc085299877
7
+ data.tar.gz: 075be0a09f8d857f18eb933304d71d18fc3d29ca06cefd36eb19326fff4681c852c14f5ae119c050f597b59eb1f091746d0d0525ea06ccb58eb4f3582e96f59d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.635
1
+ 3.0.636
@@ -2191,6 +2191,30 @@ module TencentCloud
2191
2191
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2192
2192
  end
2193
2193
 
2194
+ # 用于在企业版镜像仓库中复制镜像版本
2195
+
2196
+ # @param request: Request instance for DuplicateImage.
2197
+ # @type request: :class:`Tencentcloud::tcr::V20190924::DuplicateImageRequest`
2198
+ # @rtype: :class:`Tencentcloud::tcr::V20190924::DuplicateImageResponse`
2199
+ def DuplicateImage(request)
2200
+ body = send_request('DuplicateImage', request.serialize)
2201
+ response = JSON.parse(body)
2202
+ if response['Response'].key?('Error') == false
2203
+ model = DuplicateImageResponse.new
2204
+ model.deserialize(response['Response'])
2205
+ model
2206
+ else
2207
+ code = response['Response']['Error']['Code']
2208
+ message = response['Response']['Error']['Message']
2209
+ reqid = response['Response']['RequestId']
2210
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2211
+ end
2212
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2213
+ raise e
2214
+ rescue StandardError => e
2215
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2216
+ end
2217
+
2194
2218
  # 用于在个人版镜像仓库中复制镜像版本
2195
2219
 
2196
2220
  # @param request: Request instance for DuplicateImagePersonal.
@@ -4696,6 +4696,66 @@ module TencentCloud
4696
4696
  end
4697
4697
  end
4698
4698
 
4699
+ # DuplicateImage请求参数结构体
4700
+ class DuplicateImageRequest < TencentCloud::Common::AbstractModel
4701
+ # @param RegistryId: 实例id
4702
+ # @type RegistryId: String
4703
+ # @param SourceNamespace: 源命名空间名称
4704
+ # @type SourceNamespace: String
4705
+ # @param SourceRepo: 源镜像仓库名称
4706
+ # @type SourceRepo: String
4707
+ # @param SourceReference: 源镜像tag或digest值,目前仅支持tag
4708
+ # @type SourceReference: String
4709
+ # @param DestinationTag: 目标镜像版本
4710
+ # @type DestinationTag: String
4711
+ # @param DestinationNamespace: 目标命名空间,不填默认与源一致
4712
+ # @type DestinationNamespace: String
4713
+ # @param DestinationRepo: 目标镜像仓库,不填默认与源一致
4714
+ # @type DestinationRepo: String
4715
+ # @param Override: 是否覆盖
4716
+ # @type Override: Boolean
4717
+
4718
+ attr_accessor :RegistryId, :SourceNamespace, :SourceRepo, :SourceReference, :DestinationTag, :DestinationNamespace, :DestinationRepo, :Override
4719
+
4720
+ def initialize(registryid=nil, sourcenamespace=nil, sourcerepo=nil, sourcereference=nil, destinationtag=nil, destinationnamespace=nil, destinationrepo=nil, override=nil)
4721
+ @RegistryId = registryid
4722
+ @SourceNamespace = sourcenamespace
4723
+ @SourceRepo = sourcerepo
4724
+ @SourceReference = sourcereference
4725
+ @DestinationTag = destinationtag
4726
+ @DestinationNamespace = destinationnamespace
4727
+ @DestinationRepo = destinationrepo
4728
+ @Override = override
4729
+ end
4730
+
4731
+ def deserialize(params)
4732
+ @RegistryId = params['RegistryId']
4733
+ @SourceNamespace = params['SourceNamespace']
4734
+ @SourceRepo = params['SourceRepo']
4735
+ @SourceReference = params['SourceReference']
4736
+ @DestinationTag = params['DestinationTag']
4737
+ @DestinationNamespace = params['DestinationNamespace']
4738
+ @DestinationRepo = params['DestinationRepo']
4739
+ @Override = params['Override']
4740
+ end
4741
+ end
4742
+
4743
+ # DuplicateImage返回参数结构体
4744
+ class DuplicateImageResponse < TencentCloud::Common::AbstractModel
4745
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4746
+ # @type RequestId: String
4747
+
4748
+ attr_accessor :RequestId
4749
+
4750
+ def initialize(requestid=nil)
4751
+ @RequestId = requestid
4752
+ end
4753
+
4754
+ def deserialize(params)
4755
+ @RequestId = params['RequestId']
4756
+ end
4757
+ end
4758
+
4699
4759
  # 用于获取收藏仓库的响应
4700
4760
  class FavorResp < TencentCloud::Common::AbstractModel
4701
4761
  # @param TotalCount: 收藏仓库的总数
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.635
4
+ version: 3.0.636
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-08-14 00:00:00.000000000 Z
11
+ date: 2023-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common