tencentcloud-sdk-tcr 3.0.483 → 3.0.485
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190924/client.rb +0 -24
- data/lib/v20190924/models.rb +0 -44
- 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: 29d721c48442209e66366851df18043d8ab41393
|
4
|
+
data.tar.gz: 11b87d523bb1a3d4e5c22f1f6210085a0823e328
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb75018e6a821f19fe4fedbe76d4906ff39cdcf4b1bea1de613075621b85059dda04d56226cec357f5042bb6dac86537d39be2311c93311a3edb3aa0515af347
|
7
|
+
data.tar.gz: f297f6c6171dc55c3d1385d3ea541892cba5c455671db630963be3438e859b3ed88b2d62fa2f3c3fd788eec68a0c82a8e21ecfd57ec5c2185422f0c521d44ebe
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.485
|
data/lib/v20190924/client.rb
CHANGED
@@ -463,30 +463,6 @@ module TencentCloud
|
|
463
463
|
|
464
464
|
# 创建实例公网访问白名单策略
|
465
465
|
|
466
|
-
# @param request: Request instance for CreateSecurityPolicies.
|
467
|
-
# @type request: :class:`Tencentcloud::tcr::V20190924::CreateSecurityPoliciesRequest`
|
468
|
-
# @rtype: :class:`Tencentcloud::tcr::V20190924::CreateSecurityPoliciesResponse`
|
469
|
-
def CreateSecurityPolicies(request)
|
470
|
-
body = send_request('CreateSecurityPolicies', request.serialize)
|
471
|
-
response = JSON.parse(body)
|
472
|
-
if response['Response'].key?('Error') == false
|
473
|
-
model = CreateSecurityPoliciesResponse.new
|
474
|
-
model.deserialize(response['Response'])
|
475
|
-
model
|
476
|
-
else
|
477
|
-
code = response['Response']['Error']['Code']
|
478
|
-
message = response['Response']['Error']['Message']
|
479
|
-
reqid = response['Response']['RequestId']
|
480
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
481
|
-
end
|
482
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
483
|
-
raise e
|
484
|
-
rescue StandardError => e
|
485
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
|
-
end
|
487
|
-
|
488
|
-
# 创建实例公网访问白名单策略
|
489
|
-
|
490
466
|
# @param request: Request instance for CreateSecurityPolicy.
|
491
467
|
# @type request: :class:`Tencentcloud::tcr::V20190924::CreateSecurityPolicyRequest`
|
492
468
|
# @rtype: :class:`Tencentcloud::tcr::V20190924::CreateSecurityPolicyResponse`
|
data/lib/v20190924/models.rb
CHANGED
@@ -936,50 +936,6 @@ module TencentCloud
|
|
936
936
|
end
|
937
937
|
end
|
938
938
|
|
939
|
-
# CreateSecurityPolicies请求参数结构体
|
940
|
-
class CreateSecurityPoliciesRequest < TencentCloud::Common::AbstractModel
|
941
|
-
# @param RegistryId: 实例Id
|
942
|
-
# @type RegistryId: String
|
943
|
-
# @param CidrBlock: 192.168.0.0/24
|
944
|
-
# @type CidrBlock: String
|
945
|
-
# @param Description: 描述
|
946
|
-
# @type Description: String
|
947
|
-
|
948
|
-
attr_accessor :RegistryId, :CidrBlock, :Description
|
949
|
-
|
950
|
-
def initialize(registryid=nil, cidrblock=nil, description=nil)
|
951
|
-
@RegistryId = registryid
|
952
|
-
@CidrBlock = cidrblock
|
953
|
-
@Description = description
|
954
|
-
end
|
955
|
-
|
956
|
-
def deserialize(params)
|
957
|
-
@RegistryId = params['RegistryId']
|
958
|
-
@CidrBlock = params['CidrBlock']
|
959
|
-
@Description = params['Description']
|
960
|
-
end
|
961
|
-
end
|
962
|
-
|
963
|
-
# CreateSecurityPolicies返回参数结构体
|
964
|
-
class CreateSecurityPoliciesResponse < TencentCloud::Common::AbstractModel
|
965
|
-
# @param RegistryId: 实例Id
|
966
|
-
# @type RegistryId: String
|
967
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
968
|
-
# @type RequestId: String
|
969
|
-
|
970
|
-
attr_accessor :RegistryId, :RequestId
|
971
|
-
|
972
|
-
def initialize(registryid=nil, requestid=nil)
|
973
|
-
@RegistryId = registryid
|
974
|
-
@RequestId = requestid
|
975
|
-
end
|
976
|
-
|
977
|
-
def deserialize(params)
|
978
|
-
@RegistryId = params['RegistryId']
|
979
|
-
@RequestId = params['RequestId']
|
980
|
-
end
|
981
|
-
end
|
982
|
-
|
983
939
|
# CreateSecurityPolicy请求参数结构体
|
984
940
|
class CreateSecurityPolicyRequest < TencentCloud::Common::AbstractModel
|
985
941
|
# @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.485
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|