tencentcloud-sdk-cam 3.0.840 → 3.0.841

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f5ed4a9dcc70693f460b82fd99946dafea5472a
4
- data.tar.gz: fdce01afb2b0c25f776f5d067e96cc38a3124c24
3
+ metadata.gz: dde258fc7736e90047f4b607a408817e8ea180d1
4
+ data.tar.gz: a9b79c76b89857a2101987611157c2c246a61ae6
5
5
  SHA512:
6
- metadata.gz: 3b1ad7ea07a97ea7a3dd2a8c02a43e032d752a75279e8b91664ae290b2f90a02fcdd137d5dee389619a5b92a8708b56606520517d9533c475106b28727a762f7
7
- data.tar.gz: 75cdf33bf79574c075af69bcf6cb2f1041aaaf4281df4a9ec3d719c8a3910eb6dd5d39884dfed975cb8bbacfecd84aa57759d3406903d2ba3be0c247575822a5
6
+ metadata.gz: 788d5f35377ed4e52bec98bd7489416ed28d9cedad890aae728b8a8717402e275732aec8da8afd6da956a7be9e2f6969aae265f152df3b2b8457f647bdaed068
7
+ data.tar.gz: 4bdcac9f98f6e284ce5650dbc4ee592b0369b8f0c10431beb9e4571d4ad9845988b13d46069e084f0e4490f75a8748355903e47f9877bac4c37f2ff333d551a4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.840
1
+ 3.0.841
@@ -149,6 +149,30 @@ module TencentCloud
149
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
150
  end
151
151
 
152
+ # 获取数据流认证Token
153
+
154
+ # @param request: Request instance for BuildDataFlowAuthToken.
155
+ # @type request: :class:`Tencentcloud::cam::V20190116::BuildDataFlowAuthTokenRequest`
156
+ # @rtype: :class:`Tencentcloud::cam::V20190116::BuildDataFlowAuthTokenResponse`
157
+ def BuildDataFlowAuthToken(request)
158
+ body = send_request('BuildDataFlowAuthToken', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = BuildDataFlowAuthTokenResponse.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
  # 验证自定义多因子Token
153
177
 
154
178
  # @param request: Request instance for ConsumeCustomMFAToken.
@@ -539,6 +539,97 @@ module TencentCloud
539
539
  end
540
540
  end
541
541
 
542
+ # 认证凭据Token
543
+ class AuthToken < TencentCloud::Common::AbstractModel
544
+ # @param Token: 认证Token
545
+ # @type Token: String
546
+ # @param CurrentTime: 服务器时间戳
547
+ # 注意:此字段可能返回 null,表示取不到有效值。
548
+ # @type CurrentTime: Integer
549
+ # @param NextRotationTime: 毫秒时间戳,根据轮转周期准确计算得到
550
+ # 注意:此字段可能返回 null,表示取不到有效值。
551
+ # @type NextRotationTime: Integer
552
+ # @param LastRotationTimeCost: 毫秒,如果轮转失败则为 -1
553
+ # 注意:此字段可能返回 null,表示取不到有效值。
554
+ # @type LastRotationTimeCost: Integer
555
+ # @param RotationStatus: 成功:success
556
+ # 失败:failed
557
+ # 注意:此字段可能返回 null,表示取不到有效值。
558
+ # @type RotationStatus: String
559
+ # @param RotationMessage: 成功:success
560
+ # 失败:失败信息
561
+ # 注意:此字段可能返回 null,表示取不到有效值。
562
+ # @type RotationMessage: String
563
+
564
+ attr_accessor :Token, :CurrentTime, :NextRotationTime, :LastRotationTimeCost, :RotationStatus, :RotationMessage
565
+
566
+ def initialize(token=nil, currenttime=nil, nextrotationtime=nil, lastrotationtimecost=nil, rotationstatus=nil, rotationmessage=nil)
567
+ @Token = token
568
+ @CurrentTime = currenttime
569
+ @NextRotationTime = nextrotationtime
570
+ @LastRotationTimeCost = lastrotationtimecost
571
+ @RotationStatus = rotationstatus
572
+ @RotationMessage = rotationmessage
573
+ end
574
+
575
+ def deserialize(params)
576
+ @Token = params['Token']
577
+ @CurrentTime = params['CurrentTime']
578
+ @NextRotationTime = params['NextRotationTime']
579
+ @LastRotationTimeCost = params['LastRotationTimeCost']
580
+ @RotationStatus = params['RotationStatus']
581
+ @RotationMessage = params['RotationMessage']
582
+ end
583
+ end
584
+
585
+ # BuildDataFlowAuthToken请求参数结构体
586
+ class BuildDataFlowAuthTokenRequest < TencentCloud::Common::AbstractModel
587
+ # @param ResourceId: 资源ID
588
+ # @type ResourceId: String
589
+ # @param ResourceRegion: 资源地域
590
+ # @type ResourceRegion: String
591
+ # @param ResourceAccount: 资源用户名
592
+ # @type ResourceAccount: String
593
+
594
+ attr_accessor :ResourceId, :ResourceRegion, :ResourceAccount
595
+
596
+ def initialize(resourceid=nil, resourceregion=nil, resourceaccount=nil)
597
+ @ResourceId = resourceid
598
+ @ResourceRegion = resourceregion
599
+ @ResourceAccount = resourceaccount
600
+ end
601
+
602
+ def deserialize(params)
603
+ @ResourceId = params['ResourceId']
604
+ @ResourceRegion = params['ResourceRegion']
605
+ @ResourceAccount = params['ResourceAccount']
606
+ end
607
+ end
608
+
609
+ # BuildDataFlowAuthToken返回参数结构体
610
+ class BuildDataFlowAuthTokenResponse < TencentCloud::Common::AbstractModel
611
+ # @param Credentials: 认证凭据AuthToken信息
612
+ # 注意:此字段可能返回 null,表示取不到有效值。
613
+ # @type Credentials: :class:`Tencentcloud::Cam.v20190116.models.AuthToken`
614
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
615
+ # @type RequestId: String
616
+
617
+ attr_accessor :Credentials, :RequestId
618
+
619
+ def initialize(credentials=nil, requestid=nil)
620
+ @Credentials = credentials
621
+ @RequestId = requestid
622
+ end
623
+
624
+ def deserialize(params)
625
+ unless params['Credentials'].nil?
626
+ @Credentials = AuthToken.new
627
+ @Credentials.deserialize(params['Credentials'])
628
+ end
629
+ @RequestId = params['RequestId']
630
+ end
631
+ end
632
+
542
633
  # ConsumeCustomMFAToken请求参数结构体
543
634
  class ConsumeCustomMFATokenRequest < TencentCloud::Common::AbstractModel
544
635
  # @param MFAToken: 自定义多因子验证Token
@@ -2086,8 +2177,8 @@ module TencentCloud
2086
2177
 
2087
2178
  attr_accessor :Policies, :Roles, :Idps, :User, :Group, :Member, :IdentityProviders, :RequestId
2088
2179
  extend Gem::Deprecate
2089
- deprecate :Idps, :none, 2024, 5
2090
- deprecate :Idps=, :none, 2024, 5
2180
+ deprecate :Idps, :none, 2024, 6
2181
+ deprecate :Idps=, :none, 2024, 6
2091
2182
 
2092
2183
  def initialize(policies=nil, roles=nil, idps=nil, user=nil, group=nil, member=nil, identityproviders=nil, requestid=nil)
2093
2184
  @Policies = policies
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cam
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.840
4
+ version: 3.0.841
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-09 00:00:00.000000000 Z
11
+ date: 2024-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common