tencentcloud-sdk-cam 3.0.840 → 3.0.842

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: 8f5ed4a9dcc70693f460b82fd99946dafea5472a
4
- data.tar.gz: fdce01afb2b0c25f776f5d067e96cc38a3124c24
3
+ metadata.gz: af477c2406c95dcc19321c8f3c19f95c2eb2bf67
4
+ data.tar.gz: 58dbb615a4606fe5236c13216e372769caa74f34
5
5
  SHA512:
6
- metadata.gz: 3b1ad7ea07a97ea7a3dd2a8c02a43e032d752a75279e8b91664ae290b2f90a02fcdd137d5dee389619a5b92a8708b56606520517d9533c475106b28727a762f7
7
- data.tar.gz: 75cdf33bf79574c075af69bcf6cb2f1041aaaf4281df4a9ec3d719c8a3910eb6dd5d39884dfed975cb8bbacfecd84aa57759d3406903d2ba3be0c247575822a5
6
+ metadata.gz: ae3fe9c438181b79dcee13b5ddbf77201fbfe4b85340ebafc4799ba59a2d402d155005d223f7622cc75f7e0a47c00542c2ea66cf52516c68fce614fc635aa783
7
+ data.tar.gz: 4654212e58ee8b195b625821e04e4bd4d669d8e0347c7f6a409fa0cb5af9bce0f8b91d3483c16a0364e233e6fd53c8d61945216d844fa95b04972671fb5f7201
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.840
1
+ 3.0.842
@@ -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.842
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-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common