tencentcloud-sdk-tcr 3.0.1116 → 3.0.1186
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 +48 -0
- data/lib/v20190924/models.rb +188 -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: 0aa89629e57e7881a9ce815c083916e440b2f19b
|
|
4
|
+
data.tar.gz: 4c8c4fb4b13a315b6b35b707323a32d802944a37
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4068565574d1b39ae6f09b65611087c7f395dac9b49478456eafd76842239842c831d5a5b07dd79c161ef64fb17325f40013edada862f619bb21561959f4d61
|
|
7
|
+
data.tar.gz: 29ca520262136ffa2ef4f850798d879a04f8b48c9003ca0010fbf092d349961acb69ca17c813bfa29568b3097db517af1de511e4aa12c58ba88fc07c3c2341dd
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1186
|
data/lib/v20190924/client.rb
CHANGED
|
@@ -965,6 +965,30 @@ module TencentCloud
|
|
|
965
965
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
966
966
|
end
|
|
967
967
|
|
|
968
|
+
# 删除实例同步规则
|
|
969
|
+
|
|
970
|
+
# @param request: Request instance for DeleteReplicationRule.
|
|
971
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::DeleteReplicationRuleRequest`
|
|
972
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::DeleteReplicationRuleResponse`
|
|
973
|
+
def DeleteReplicationRule(request)
|
|
974
|
+
body = send_request('DeleteReplicationRule', request.serialize)
|
|
975
|
+
response = JSON.parse(body)
|
|
976
|
+
if response['Response'].key?('Error') == false
|
|
977
|
+
model = DeleteReplicationRuleResponse.new
|
|
978
|
+
model.deserialize(response['Response'])
|
|
979
|
+
model
|
|
980
|
+
else
|
|
981
|
+
code = response['Response']['Error']['Code']
|
|
982
|
+
message = response['Response']['Error']['Message']
|
|
983
|
+
reqid = response['Response']['RequestId']
|
|
984
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
985
|
+
end
|
|
986
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
987
|
+
raise e
|
|
988
|
+
rescue StandardError => e
|
|
989
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
990
|
+
end
|
|
991
|
+
|
|
968
992
|
# 删除镜像仓库
|
|
969
993
|
|
|
970
994
|
# @param request: Request instance for DeleteRepository.
|
|
@@ -1807,6 +1831,30 @@ module TencentCloud
|
|
|
1807
1831
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1808
1832
|
end
|
|
1809
1833
|
|
|
1834
|
+
# 获取实例同步规则列表
|
|
1835
|
+
|
|
1836
|
+
# @param request: Request instance for DescribeReplicationPolicies.
|
|
1837
|
+
# @type request: :class:`Tencentcloud::tcr::V20190924::DescribeReplicationPoliciesRequest`
|
|
1838
|
+
# @rtype: :class:`Tencentcloud::tcr::V20190924::DescribeReplicationPoliciesResponse`
|
|
1839
|
+
def DescribeReplicationPolicies(request)
|
|
1840
|
+
body = send_request('DescribeReplicationPolicies', request.serialize)
|
|
1841
|
+
response = JSON.parse(body)
|
|
1842
|
+
if response['Response'].key?('Error') == false
|
|
1843
|
+
model = DescribeReplicationPoliciesResponse.new
|
|
1844
|
+
model.deserialize(response['Response'])
|
|
1845
|
+
model
|
|
1846
|
+
else
|
|
1847
|
+
code = response['Response']['Error']['Code']
|
|
1848
|
+
message = response['Response']['Error']['Message']
|
|
1849
|
+
reqid = response['Response']['RequestId']
|
|
1850
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
1851
|
+
end
|
|
1852
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
1853
|
+
raise e
|
|
1854
|
+
rescue StandardError => e
|
|
1855
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1856
|
+
end
|
|
1857
|
+
|
|
1810
1858
|
# 查询镜像仓库列表或指定镜像仓库信息
|
|
1811
1859
|
|
|
1812
1860
|
# @param request: Request instance for DescribeRepositories.
|
data/lib/v20190924/models.rb
CHANGED
|
@@ -1908,6 +1908,46 @@ module TencentCloud
|
|
|
1908
1908
|
end
|
|
1909
1909
|
end
|
|
1910
1910
|
|
|
1911
|
+
# DeleteReplicationRule请求参数结构体
|
|
1912
|
+
class DeleteReplicationRuleRequest < TencentCloud::Common::AbstractModel
|
|
1913
|
+
# @param SourceRegistryId: 源实例ID
|
|
1914
|
+
# @type SourceRegistryId: String
|
|
1915
|
+
# @param RuleName: 同步规则名称
|
|
1916
|
+
# @type RuleName: String
|
|
1917
|
+
# @param Description: 规则描述
|
|
1918
|
+
# @type Description: String
|
|
1919
|
+
|
|
1920
|
+
attr_accessor :SourceRegistryId, :RuleName, :Description
|
|
1921
|
+
|
|
1922
|
+
def initialize(sourceregistryid=nil, rulename=nil, description=nil)
|
|
1923
|
+
@SourceRegistryId = sourceregistryid
|
|
1924
|
+
@RuleName = rulename
|
|
1925
|
+
@Description = description
|
|
1926
|
+
end
|
|
1927
|
+
|
|
1928
|
+
def deserialize(params)
|
|
1929
|
+
@SourceRegistryId = params['SourceRegistryId']
|
|
1930
|
+
@RuleName = params['RuleName']
|
|
1931
|
+
@Description = params['Description']
|
|
1932
|
+
end
|
|
1933
|
+
end
|
|
1934
|
+
|
|
1935
|
+
# DeleteReplicationRule返回参数结构体
|
|
1936
|
+
class DeleteReplicationRuleResponse < TencentCloud::Common::AbstractModel
|
|
1937
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1938
|
+
# @type RequestId: String
|
|
1939
|
+
|
|
1940
|
+
attr_accessor :RequestId
|
|
1941
|
+
|
|
1942
|
+
def initialize(requestid=nil)
|
|
1943
|
+
@RequestId = requestid
|
|
1944
|
+
end
|
|
1945
|
+
|
|
1946
|
+
def deserialize(params)
|
|
1947
|
+
@RequestId = params['RequestId']
|
|
1948
|
+
end
|
|
1949
|
+
end
|
|
1950
|
+
|
|
1911
1951
|
# DeleteRepositoryPersonal请求参数结构体
|
|
1912
1952
|
class DeleteRepositoryPersonalRequest < TencentCloud::Common::AbstractModel
|
|
1913
1953
|
# @param RepoName: 仓库名称
|
|
@@ -3676,6 +3716,63 @@ module TencentCloud
|
|
|
3676
3716
|
end
|
|
3677
3717
|
end
|
|
3678
3718
|
|
|
3719
|
+
# DescribeReplicationPolicies请求参数结构体
|
|
3720
|
+
class DescribeReplicationPoliciesRequest < TencentCloud::Common::AbstractModel
|
|
3721
|
+
# @param RegistryId: 实例ID
|
|
3722
|
+
# @type RegistryId: String
|
|
3723
|
+
# @param Page: 页数,默认为1
|
|
3724
|
+
# @type Page: Integer
|
|
3725
|
+
# @param PageSize: 每页展示个数,默认为100
|
|
3726
|
+
# @type PageSize: Integer
|
|
3727
|
+
|
|
3728
|
+
attr_accessor :RegistryId, :Page, :PageSize
|
|
3729
|
+
|
|
3730
|
+
def initialize(registryid=nil, page=nil, pagesize=nil)
|
|
3731
|
+
@RegistryId = registryid
|
|
3732
|
+
@Page = page
|
|
3733
|
+
@PageSize = pagesize
|
|
3734
|
+
end
|
|
3735
|
+
|
|
3736
|
+
def deserialize(params)
|
|
3737
|
+
@RegistryId = params['RegistryId']
|
|
3738
|
+
@Page = params['Page']
|
|
3739
|
+
@PageSize = params['PageSize']
|
|
3740
|
+
end
|
|
3741
|
+
end
|
|
3742
|
+
|
|
3743
|
+
# DescribeReplicationPolicies返回参数结构体
|
|
3744
|
+
class DescribeReplicationPoliciesResponse < TencentCloud::Common::AbstractModel
|
|
3745
|
+
# @param ReplicationPolicyInfoList: 实例同步策略列表
|
|
3746
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3747
|
+
# @type ReplicationPolicyInfoList: Array
|
|
3748
|
+
# @param TotalCount: 策略总数
|
|
3749
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3750
|
+
# @type TotalCount: Integer
|
|
3751
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3752
|
+
# @type RequestId: String
|
|
3753
|
+
|
|
3754
|
+
attr_accessor :ReplicationPolicyInfoList, :TotalCount, :RequestId
|
|
3755
|
+
|
|
3756
|
+
def initialize(replicationpolicyinfolist=nil, totalcount=nil, requestid=nil)
|
|
3757
|
+
@ReplicationPolicyInfoList = replicationpolicyinfolist
|
|
3758
|
+
@TotalCount = totalcount
|
|
3759
|
+
@RequestId = requestid
|
|
3760
|
+
end
|
|
3761
|
+
|
|
3762
|
+
def deserialize(params)
|
|
3763
|
+
unless params['ReplicationPolicyInfoList'].nil?
|
|
3764
|
+
@ReplicationPolicyInfoList = []
|
|
3765
|
+
params['ReplicationPolicyInfoList'].each do |i|
|
|
3766
|
+
replicationpolicyinfo_tmp = ReplicationPolicyInfo.new
|
|
3767
|
+
replicationpolicyinfo_tmp.deserialize(i)
|
|
3768
|
+
@ReplicationPolicyInfoList << replicationpolicyinfo_tmp
|
|
3769
|
+
end
|
|
3770
|
+
end
|
|
3771
|
+
@TotalCount = params['TotalCount']
|
|
3772
|
+
@RequestId = params['RequestId']
|
|
3773
|
+
end
|
|
3774
|
+
end
|
|
3775
|
+
|
|
3679
3776
|
# DescribeRepositories请求参数结构体
|
|
3680
3777
|
class DescribeRepositoriesRequest < TencentCloud::Common::AbstractModel
|
|
3681
3778
|
# @param RegistryId: 实例Id
|
|
@@ -5759,6 +5856,28 @@ module TencentCloud
|
|
|
5759
5856
|
end
|
|
5760
5857
|
end
|
|
5761
5858
|
|
|
5859
|
+
# 策略过滤条件
|
|
5860
|
+
class PolicyFilter < TencentCloud::Common::AbstractModel
|
|
5861
|
+
# @param Type: 策略过滤类型
|
|
5862
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
5863
|
+
# @type Type: String
|
|
5864
|
+
# @param Value: 策略过滤值
|
|
5865
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
5866
|
+
# @type Value: String
|
|
5867
|
+
|
|
5868
|
+
attr_accessor :Type, :Value
|
|
5869
|
+
|
|
5870
|
+
def initialize(type=nil, value=nil)
|
|
5871
|
+
@Type = type
|
|
5872
|
+
@Value = value
|
|
5873
|
+
end
|
|
5874
|
+
|
|
5875
|
+
def deserialize(params)
|
|
5876
|
+
@Type = params['Type']
|
|
5877
|
+
@Value = params['Value']
|
|
5878
|
+
end
|
|
5879
|
+
end
|
|
5880
|
+
|
|
5762
5881
|
# 地域信息
|
|
5763
5882
|
class Region < TencentCloud::Common::AbstractModel
|
|
5764
5883
|
# @param Alias: gz
|
|
@@ -6071,6 +6190,75 @@ module TencentCloud
|
|
|
6071
6190
|
end
|
|
6072
6191
|
end
|
|
6073
6192
|
|
|
6193
|
+
# 实例复制/实例同步策略信息ID
|
|
6194
|
+
class ReplicationPolicyInfo < TencentCloud::Common::AbstractModel
|
|
6195
|
+
# @param ID: 策略ID
|
|
6196
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6197
|
+
# @type ID: Integer
|
|
6198
|
+
# @param Name: 策略名字
|
|
6199
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6200
|
+
# @type Name: String
|
|
6201
|
+
# @param Description: 策略描述信息
|
|
6202
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6203
|
+
# @type Description: String
|
|
6204
|
+
# @param Filters: 策略过滤条件
|
|
6205
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6206
|
+
# @type Filters: Array
|
|
6207
|
+
# @param Override: 是否覆盖对端同名镜像
|
|
6208
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6209
|
+
# @type Override: Boolean
|
|
6210
|
+
# @param Enabled: 是否开启
|
|
6211
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6212
|
+
# @type Enabled: Boolean
|
|
6213
|
+
# @param SrcResource: 源信息
|
|
6214
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6215
|
+
# @type SrcResource: String
|
|
6216
|
+
# @param DestResource: 目的资源
|
|
6217
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6218
|
+
# @type DestResource: String
|
|
6219
|
+
# @param CreationTime: 创建时间
|
|
6220
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6221
|
+
# @type CreationTime: String
|
|
6222
|
+
# @param UpdateTime: 更新时间
|
|
6223
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
6224
|
+
# @type UpdateTime: String
|
|
6225
|
+
|
|
6226
|
+
attr_accessor :ID, :Name, :Description, :Filters, :Override, :Enabled, :SrcResource, :DestResource, :CreationTime, :UpdateTime
|
|
6227
|
+
|
|
6228
|
+
def initialize(id=nil, name=nil, description=nil, filters=nil, override=nil, enabled=nil, srcresource=nil, destresource=nil, creationtime=nil, updatetime=nil)
|
|
6229
|
+
@ID = id
|
|
6230
|
+
@Name = name
|
|
6231
|
+
@Description = description
|
|
6232
|
+
@Filters = filters
|
|
6233
|
+
@Override = override
|
|
6234
|
+
@Enabled = enabled
|
|
6235
|
+
@SrcResource = srcresource
|
|
6236
|
+
@DestResource = destresource
|
|
6237
|
+
@CreationTime = creationtime
|
|
6238
|
+
@UpdateTime = updatetime
|
|
6239
|
+
end
|
|
6240
|
+
|
|
6241
|
+
def deserialize(params)
|
|
6242
|
+
@ID = params['ID']
|
|
6243
|
+
@Name = params['Name']
|
|
6244
|
+
@Description = params['Description']
|
|
6245
|
+
unless params['Filters'].nil?
|
|
6246
|
+
@Filters = []
|
|
6247
|
+
params['Filters'].each do |i|
|
|
6248
|
+
policyfilter_tmp = PolicyFilter.new
|
|
6249
|
+
policyfilter_tmp.deserialize(i)
|
|
6250
|
+
@Filters << policyfilter_tmp
|
|
6251
|
+
end
|
|
6252
|
+
end
|
|
6253
|
+
@Override = params['Override']
|
|
6254
|
+
@Enabled = params['Enabled']
|
|
6255
|
+
@SrcResource = params['SrcResource']
|
|
6256
|
+
@DestResource = params['DestResource']
|
|
6257
|
+
@CreationTime = params['CreationTime']
|
|
6258
|
+
@UpdateTime = params['UpdateTime']
|
|
6259
|
+
end
|
|
6260
|
+
end
|
|
6261
|
+
|
|
6074
6262
|
# 企业版复制实例
|
|
6075
6263
|
class ReplicationRegistry < TencentCloud::Common::AbstractModel
|
|
6076
6264
|
# @param RegistryId: 主实例ID
|
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.1186
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|