tencentcloud-sdk-tdid 3.0.1006 → 3.0.1007
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/v20210519/client.rb +4 -1
- data/lib/v20210519/models.rb +50 -17
- 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: 583f3d4bc9647f9bcb64ddf699e8fae64d61f921
|
4
|
+
data.tar.gz: 73d87c14e1b65999c8fc097783f85b76aa9b02a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37acb06083e79509db3ffdaa483cd47ff073a076758719463cb8b4c6a18c4509d70d0635e3ab7b092b16585d09edec58c8d7ccffce7cf616eb2f6f7613c12aad
|
7
|
+
data.tar.gz: 4d4b0cc8e5a799565e68668fedcb6a3ab494b2a72a39c9e0e067b1fea8c3d0d3125f7094ecdd2e07271b22401559c07d46fc7580ce33b67500488296a6441db0
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1007
|
data/lib/v20210519/client.rb
CHANGED
@@ -389,7 +389,10 @@ module TencentCloud
|
|
389
389
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
390
|
end
|
391
391
|
|
392
|
-
#
|
392
|
+
# 1. 首次更新凭证状态基于不同场景参数有所差异,分以下两种场景:
|
393
|
+
# (1) 颁发凭证的DID是本腾讯云账号创建
|
394
|
+
# (2) 颁发凭证的DID是非本腾讯云账号创建(此调用方式也适用于场景1)
|
395
|
+
# 2. 首次更新过凭证状态后,凭证状态已绑定该账号的链上用户,后续更新凭证状态只需参数CredentialStatus即可, OperateCredential和OriginCredential参数均不需要
|
393
396
|
|
394
397
|
# @param request: Request instance for UpdateCredentialState.
|
395
398
|
# @type request: :class:`Tencentcloud::tdid::V20210519::UpdateCredentialStateRequest`
|
data/lib/v20210519/models.rb
CHANGED
@@ -79,14 +79,17 @@ module TencentCloud
|
|
79
79
|
# @type PolicyJson: String
|
80
80
|
# @param DAPId: DID应用ID
|
81
81
|
# @type DAPId: Integer
|
82
|
+
# @param UAPId: 用户应用ID
|
83
|
+
# @type UAPId: Integer
|
82
84
|
|
83
|
-
attr_accessor :PolicyId, :CredentialData, :PolicyJson, :DAPId
|
85
|
+
attr_accessor :PolicyId, :CredentialData, :PolicyJson, :DAPId, :UAPId
|
84
86
|
|
85
|
-
def initialize(policyid=nil, credentialdata=nil, policyjson=nil, dapid=nil)
|
87
|
+
def initialize(policyid=nil, credentialdata=nil, policyjson=nil, dapid=nil, uapid=nil)
|
86
88
|
@PolicyId = policyid
|
87
89
|
@CredentialData = credentialdata
|
88
90
|
@PolicyJson = policyjson
|
89
91
|
@DAPId = dapid
|
92
|
+
@UAPId = uapid
|
90
93
|
end
|
91
94
|
|
92
95
|
def deserialize(params)
|
@@ -94,6 +97,7 @@ module TencentCloud
|
|
94
97
|
@CredentialData = params['CredentialData']
|
95
98
|
@PolicyJson = params['PolicyJson']
|
96
99
|
@DAPId = params['DAPId']
|
100
|
+
@UAPId = params['UAPId']
|
97
101
|
end
|
98
102
|
end
|
99
103
|
|
@@ -121,6 +125,8 @@ module TencentCloud
|
|
121
125
|
class CreatePresentationRequest < TencentCloud::Common::AbstractModel
|
122
126
|
# @param DAPId: DID应用id
|
123
127
|
# @type DAPId: Integer
|
128
|
+
# @param UAPId: 用户应用id
|
129
|
+
# @type UAPId: Integer
|
124
130
|
# @param Credentials: 凭证列表
|
125
131
|
# @type Credentials: Array
|
126
132
|
# @param Did: VP持有人的DID标识
|
@@ -134,10 +140,11 @@ module TencentCloud
|
|
134
140
|
# @param CredentialList: 可验证凭证证明列表
|
135
141
|
# @type CredentialList: Array
|
136
142
|
|
137
|
-
attr_accessor :DAPId, :Credentials, :Did, :VerifyCode, :PolicyJson, :Unsigned, :CredentialList
|
143
|
+
attr_accessor :DAPId, :UAPId, :Credentials, :Did, :VerifyCode, :PolicyJson, :Unsigned, :CredentialList
|
138
144
|
|
139
|
-
def initialize(dapid=nil, credentials=nil, did=nil, verifycode=nil, policyjson=nil, unsigned=nil, credentiallist=nil)
|
145
|
+
def initialize(dapid=nil, uapid=nil, credentials=nil, did=nil, verifycode=nil, policyjson=nil, unsigned=nil, credentiallist=nil)
|
140
146
|
@DAPId = dapid
|
147
|
+
@UAPId = uapid
|
141
148
|
@Credentials = credentials
|
142
149
|
@Did = did
|
143
150
|
@VerifyCode = verifycode
|
@@ -148,6 +155,7 @@ module TencentCloud
|
|
148
155
|
|
149
156
|
def deserialize(params)
|
150
157
|
@DAPId = params['DAPId']
|
158
|
+
@UAPId = params['UAPId']
|
151
159
|
@Credentials = params['Credentials']
|
152
160
|
@Did = params['Did']
|
153
161
|
@VerifyCode = params['VerifyCode']
|
@@ -354,6 +362,30 @@ module TencentCloud
|
|
354
362
|
end
|
355
363
|
end
|
356
364
|
|
365
|
+
# 设置凭证状态信息
|
366
|
+
class CredentialStatusInfo < TencentCloud::Common::AbstractModel
|
367
|
+
# @param Id: 凭证唯一id
|
368
|
+
# @type Id: String
|
369
|
+
# @param Issuer: 凭证状态(0:吊销;1:有效)
|
370
|
+
# @type Issuer: String
|
371
|
+
# @param Status: 凭证颁发者Did
|
372
|
+
# @type Status: Integer
|
373
|
+
|
374
|
+
attr_accessor :Id, :Issuer, :Status
|
375
|
+
|
376
|
+
def initialize(id=nil, issuer=nil, status=nil)
|
377
|
+
@Id = id
|
378
|
+
@Issuer = issuer
|
379
|
+
@Status = status
|
380
|
+
end
|
381
|
+
|
382
|
+
def deserialize(params)
|
383
|
+
@Id = params['Id']
|
384
|
+
@Issuer = params['Issuer']
|
385
|
+
@Status = params['Status']
|
386
|
+
end
|
387
|
+
end
|
388
|
+
|
357
389
|
# DeactivateTDid请求参数结构体
|
358
390
|
class DeactivateTDidRequest < TencentCloud::Common::AbstractModel
|
359
391
|
# @param Did: DID标识符
|
@@ -444,10 +476,8 @@ module TencentCloud
|
|
444
476
|
# GetAppSummary返回参数结构体
|
445
477
|
class GetAppSummaryResponse < TencentCloud::Common::AbstractModel
|
446
478
|
# @param AppCounter: 用户参与应用的统计指标
|
447
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
448
479
|
# @type AppCounter: :class:`Tencentcloud::Tdid.v20210519.models.ResourceCounterData`
|
449
480
|
# @param UserCounter: 用户创建资源的统计指标
|
450
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
451
481
|
# @type UserCounter: :class:`Tencentcloud::Tdid.v20210519.models.ResourceCounterData`
|
452
482
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
453
483
|
# @type RequestId: String
|
@@ -496,7 +526,6 @@ module TencentCloud
|
|
496
526
|
# GetCredentialState返回参数结构体
|
497
527
|
class GetCredentialStateResponse < TencentCloud::Common::AbstractModel
|
498
528
|
# @param CredentialState: 凭证状态信息
|
499
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
500
529
|
# @type CredentialState: :class:`Tencentcloud::Tdid.v20210519.models.CredentialState`
|
501
530
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
502
531
|
# @type RequestId: String
|
@@ -598,7 +627,6 @@ module TencentCloud
|
|
598
627
|
# GetTDidByObjectId返回参数结构体
|
599
628
|
class GetTDidByObjectIdResponse < TencentCloud::Common::AbstractModel
|
600
629
|
# @param Did: DID标识
|
601
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
602
630
|
# @type Did: String
|
603
631
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
604
632
|
# @type RequestId: String
|
@@ -846,19 +874,14 @@ module TencentCloud
|
|
846
874
|
# 资源计数统计数据
|
847
875
|
class ResourceCounterData < TencentCloud::Common::AbstractModel
|
848
876
|
# @param DidCnt: DID总数
|
849
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
850
877
|
# @type DidCnt: Integer
|
851
878
|
# @param VCCnt: VC总数
|
852
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
853
879
|
# @type VCCnt: Integer
|
854
880
|
# @param CPTCnt: CPT总数
|
855
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
856
881
|
# @type CPTCnt: Integer
|
857
882
|
# @param VerifyCnt: VC验证总数
|
858
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
859
883
|
# @type VerifyCnt: Integer
|
860
884
|
# @param AuthCnt: 权威机构数量
|
861
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
862
885
|
# @type AuthCnt: Integer
|
863
886
|
|
864
887
|
attr_accessor :DidCnt, :VCCnt, :CPTCnt, :VerifyCnt, :AuthCnt
|
@@ -942,26 +965,36 @@ module TencentCloud
|
|
942
965
|
class UpdateCredentialStateRequest < TencentCloud::Common::AbstractModel
|
943
966
|
# @param DAPId: DID应用Id
|
944
967
|
# @type DAPId: Integer
|
945
|
-
# @param OperateCredential: 更新VC状态的临时凭证内容,通过创建凭证接口(CreateCredential)生成并签名,凭证类型为:OperateCredential,
|
968
|
+
# @param OperateCredential: 更新VC状态的临时凭证内容,通过创建凭证接口(CreateCredential)生成并签名,凭证类型为:OperateCredential, 为安全起见凭证过期时间不适合太长,如设置为1分钟内
|
946
969
|
# @type OperateCredential: String
|
970
|
+
# @param OriginCredential: 待更新凭证状态的原始凭证内容
|
971
|
+
# @type OriginCredential: String
|
972
|
+
# @param CredentialStatus: 凭证状态信息
|
973
|
+
# @type CredentialStatus: :class:`Tencentcloud::Tdid.v20210519.models.CredentialStatusInfo`
|
947
974
|
|
948
|
-
attr_accessor :DAPId, :OperateCredential
|
975
|
+
attr_accessor :DAPId, :OperateCredential, :OriginCredential, :CredentialStatus
|
949
976
|
|
950
|
-
def initialize(dapid=nil, operatecredential=nil)
|
977
|
+
def initialize(dapid=nil, operatecredential=nil, origincredential=nil, credentialstatus=nil)
|
951
978
|
@DAPId = dapid
|
952
979
|
@OperateCredential = operatecredential
|
980
|
+
@OriginCredential = origincredential
|
981
|
+
@CredentialStatus = credentialstatus
|
953
982
|
end
|
954
983
|
|
955
984
|
def deserialize(params)
|
956
985
|
@DAPId = params['DAPId']
|
957
986
|
@OperateCredential = params['OperateCredential']
|
987
|
+
@OriginCredential = params['OriginCredential']
|
988
|
+
unless params['CredentialStatus'].nil?
|
989
|
+
@CredentialStatus = CredentialStatusInfo.new
|
990
|
+
@CredentialStatus.deserialize(params['CredentialStatus'])
|
991
|
+
end
|
958
992
|
end
|
959
993
|
end
|
960
994
|
|
961
995
|
# UpdateCredentialState返回参数结构体
|
962
996
|
class UpdateCredentialStateResponse < TencentCloud::Common::AbstractModel
|
963
997
|
# @param Result: 更新是否成功
|
964
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
965
998
|
# @type Result: Boolean
|
966
999
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
967
1000
|
# @type RequestId: String
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-tdid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1007
|
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-02-
|
11
|
+
date: 2025-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|