tencentcloud-sdk-organization 3.0.591 → 3.0.593

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: 311849fea48e02cbd6bce92f88f0cd92b175532b
4
- data.tar.gz: e3ba3194c96d345fa358fbfe01b4aa540aa08eef
3
+ metadata.gz: e8a8aa3b5506b4ffc28a8f3a9c68fea8eeac54d8
4
+ data.tar.gz: 545d320dd51ba397c6972fa4956c7699a9faaade
5
5
  SHA512:
6
- metadata.gz: c85f4dce90e49cf7793968e874b23a5ccb0a6cfd466d1caedb073d665d69e44297e909c41ad0d29eb9ea047ff312f321cbd9e63a43456661d20f73bf9e6182cb
7
- data.tar.gz: 3a2b335492e795d67f4c569decd56c22a6025a2f1a74fb26891914f7cb3cbf48eec22debb1553d8174fc697ce0d421177cd12ebe5da919bcf0ab2b183f5b9b5d
6
+ metadata.gz: f04e1942a4a95617d63477209d4caba294d057e4c752a0f808f92a5cd616c13d7a6d57c1f978fe63eef6179b25c2ad76522ff9654918313d9056836cade087ce
7
+ data.tar.gz: eb6654a539ee482664b6f574f55ea011960094113c04b5d5a675624c8106b261cbe31f61bfbac84ba6d8bc8200216b4534b18460a7f6edf0c6756067cb816f99
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.591
1
+ 3.0.593
@@ -269,6 +269,78 @@ module TencentCloud
269
269
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
270
  end
271
271
 
272
+ # 以成员维度获取组织财务信息
273
+
274
+ # @param request: Request instance for DescribeOrganizationFinancialByMember.
275
+ # @type request: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationFinancialByMemberRequest`
276
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationFinancialByMemberResponse`
277
+ def DescribeOrganizationFinancialByMember(request)
278
+ body = send_request('DescribeOrganizationFinancialByMember', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = DescribeOrganizationFinancialByMemberResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
296
+ # 以月维度获取组织财务信息趋势
297
+
298
+ # @param request: Request instance for DescribeOrganizationFinancialByMonth.
299
+ # @type request: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationFinancialByMonthRequest`
300
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationFinancialByMonthResponse`
301
+ def DescribeOrganizationFinancialByMonth(request)
302
+ body = send_request('DescribeOrganizationFinancialByMonth', request.serialize)
303
+ response = JSON.parse(body)
304
+ if response['Response'].key?('Error') == false
305
+ model = DescribeOrganizationFinancialByMonthResponse.new
306
+ model.deserialize(response['Response'])
307
+ model
308
+ else
309
+ code = response['Response']['Error']['Code']
310
+ message = response['Response']['Error']['Message']
311
+ reqid = response['Response']['RequestId']
312
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
313
+ end
314
+ rescue TencentCloud::Common::TencentCloudSDKException => e
315
+ raise e
316
+ rescue StandardError => e
317
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
+ end
319
+
320
+ # 以产品维度获取组织财务信息
321
+
322
+ # @param request: Request instance for DescribeOrganizationFinancialByProduct.
323
+ # @type request: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationFinancialByProductRequest`
324
+ # @rtype: :class:`Tencentcloud::organization::V20210331::DescribeOrganizationFinancialByProductResponse`
325
+ def DescribeOrganizationFinancialByProduct(request)
326
+ body = send_request('DescribeOrganizationFinancialByProduct', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = DescribeOrganizationFinancialByProductResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
272
344
  # 获取组织成员被绑定授权关系的子账号列表
273
345
 
274
346
  # @param request: Request instance for DescribeOrganizationMemberAuthAccounts.
@@ -458,6 +458,210 @@ module TencentCloud
458
458
  end
459
459
  end
460
460
 
461
+ # DescribeOrganizationFinancialByMember请求参数结构体
462
+ class DescribeOrganizationFinancialByMemberRequest < TencentCloud::Common::AbstractModel
463
+ # @param Month: 查询开始月份。格式:yyyy-mm,例如:2021-01。
464
+ # @type Month: String
465
+ # @param Limit: 限制数目。取值范围:1~50,默认值:10
466
+ # @type Limit: Integer
467
+ # @param Offset: 偏移量。取值是limit的整数倍,默认值 : 0
468
+ # @type Offset: Integer
469
+ # @param EndMonth: 查询结束月份。格式:yyyy-mm,例如:2021-01,默认值为查询开始月份。
470
+ # @type EndMonth: String
471
+ # @param MemberUins: 查询成员列表。 最大100个
472
+ # @type MemberUins: Array
473
+ # @param ProductCodes: 查询产品列表。 最大100个
474
+ # @type ProductCodes: Array
475
+
476
+ attr_accessor :Month, :Limit, :Offset, :EndMonth, :MemberUins, :ProductCodes
477
+
478
+ def initialize(month=nil, limit=nil, offset=nil, endmonth=nil, memberuins=nil, productcodes=nil)
479
+ @Month = month
480
+ @Limit = limit
481
+ @Offset = offset
482
+ @EndMonth = endmonth
483
+ @MemberUins = memberuins
484
+ @ProductCodes = productcodes
485
+ end
486
+
487
+ def deserialize(params)
488
+ @Month = params['Month']
489
+ @Limit = params['Limit']
490
+ @Offset = params['Offset']
491
+ @EndMonth = params['EndMonth']
492
+ @MemberUins = params['MemberUins']
493
+ @ProductCodes = params['ProductCodes']
494
+ end
495
+ end
496
+
497
+ # DescribeOrganizationFinancialByMember返回参数结构体
498
+ class DescribeOrganizationFinancialByMemberResponse < TencentCloud::Common::AbstractModel
499
+ # @param TotalCost: 当月总消耗。
500
+ # 注意:此字段可能返回 null,表示取不到有效值。
501
+ # @type TotalCost: Float
502
+ # @param Items: 成员消耗详情。
503
+ # 注意:此字段可能返回 null,表示取不到有效值。
504
+ # @type Items: Array
505
+ # @param Total: 总数目。
506
+ # 注意:此字段可能返回 null,表示取不到有效值。
507
+ # @type Total: Integer
508
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
509
+ # @type RequestId: String
510
+
511
+ attr_accessor :TotalCost, :Items, :Total, :RequestId
512
+
513
+ def initialize(totalcost=nil, items=nil, total=nil, requestid=nil)
514
+ @TotalCost = totalcost
515
+ @Items = items
516
+ @Total = total
517
+ @RequestId = requestid
518
+ end
519
+
520
+ def deserialize(params)
521
+ @TotalCost = params['TotalCost']
522
+ unless params['Items'].nil?
523
+ @Items = []
524
+ params['Items'].each do |i|
525
+ orgmemberfinancial_tmp = OrgMemberFinancial.new
526
+ orgmemberfinancial_tmp.deserialize(i)
527
+ @Items << orgmemberfinancial_tmp
528
+ end
529
+ end
530
+ @Total = params['Total']
531
+ @RequestId = params['RequestId']
532
+ end
533
+ end
534
+
535
+ # DescribeOrganizationFinancialByMonth请求参数结构体
536
+ class DescribeOrganizationFinancialByMonthRequest < TencentCloud::Common::AbstractModel
537
+ # @param Limit: 查询月数。取值范围:1~6,默认值:6
538
+ # @type Limit: Integer
539
+ # @param EndMonth: 查询结束月份。格式:yyyy-mm,例如:2021-01
540
+ # @type EndMonth: String
541
+ # @param MemberUins: 查询成员列表。 最大100个
542
+ # @type MemberUins: Array
543
+ # @param ProductCodes: 查询产品列表。 最大100个
544
+ # @type ProductCodes: Array
545
+
546
+ attr_accessor :Limit, :EndMonth, :MemberUins, :ProductCodes
547
+
548
+ def initialize(limit=nil, endmonth=nil, memberuins=nil, productcodes=nil)
549
+ @Limit = limit
550
+ @EndMonth = endmonth
551
+ @MemberUins = memberuins
552
+ @ProductCodes = productcodes
553
+ end
554
+
555
+ def deserialize(params)
556
+ @Limit = params['Limit']
557
+ @EndMonth = params['EndMonth']
558
+ @MemberUins = params['MemberUins']
559
+ @ProductCodes = params['ProductCodes']
560
+ end
561
+ end
562
+
563
+ # DescribeOrganizationFinancialByMonth返回参数结构体
564
+ class DescribeOrganizationFinancialByMonthResponse < TencentCloud::Common::AbstractModel
565
+ # @param Items: 产品消耗详情。
566
+ # 注意:此字段可能返回 null,表示取不到有效值。
567
+ # @type Items: Array
568
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
569
+ # @type RequestId: String
570
+
571
+ attr_accessor :Items, :RequestId
572
+
573
+ def initialize(items=nil, requestid=nil)
574
+ @Items = items
575
+ @RequestId = requestid
576
+ end
577
+
578
+ def deserialize(params)
579
+ unless params['Items'].nil?
580
+ @Items = []
581
+ params['Items'].each do |i|
582
+ orgfinancialbymonth_tmp = OrgFinancialByMonth.new
583
+ orgfinancialbymonth_tmp.deserialize(i)
584
+ @Items << orgfinancialbymonth_tmp
585
+ end
586
+ end
587
+ @RequestId = params['RequestId']
588
+ end
589
+ end
590
+
591
+ # DescribeOrganizationFinancialByProduct请求参数结构体
592
+ class DescribeOrganizationFinancialByProductRequest < TencentCloud::Common::AbstractModel
593
+ # @param Month: 查询开始月份。格式:yyyy-mm,例如:2021-01
594
+ # @type Month: String
595
+ # @param Limit: 限制数目。取值范围:1~50,默认值:10
596
+ # @type Limit: Integer
597
+ # @param Offset: 偏移量。取值是limit的整数倍,默认值 : 0
598
+ # @type Offset: Integer
599
+ # @param EndMonth: 查询结束月份。格式:yyyy-mm,例如:2021-01,默认值为查询开始月份
600
+ # @type EndMonth: String
601
+ # @param MemberUins: 查询成员列表。 最大100个
602
+ # @type MemberUins: Array
603
+ # @param ProductCodes: 查询产品列表。 最大100个
604
+ # @type ProductCodes: Array
605
+
606
+ attr_accessor :Month, :Limit, :Offset, :EndMonth, :MemberUins, :ProductCodes
607
+
608
+ def initialize(month=nil, limit=nil, offset=nil, endmonth=nil, memberuins=nil, productcodes=nil)
609
+ @Month = month
610
+ @Limit = limit
611
+ @Offset = offset
612
+ @EndMonth = endmonth
613
+ @MemberUins = memberuins
614
+ @ProductCodes = productcodes
615
+ end
616
+
617
+ def deserialize(params)
618
+ @Month = params['Month']
619
+ @Limit = params['Limit']
620
+ @Offset = params['Offset']
621
+ @EndMonth = params['EndMonth']
622
+ @MemberUins = params['MemberUins']
623
+ @ProductCodes = params['ProductCodes']
624
+ end
625
+ end
626
+
627
+ # DescribeOrganizationFinancialByProduct返回参数结构体
628
+ class DescribeOrganizationFinancialByProductResponse < TencentCloud::Common::AbstractModel
629
+ # @param TotalCost: 当月总消耗。
630
+ # 注意:此字段可能返回 null,表示取不到有效值。
631
+ # @type TotalCost: Float
632
+ # @param Items: 产品消耗详情。
633
+ # 注意:此字段可能返回 null,表示取不到有效值。
634
+ # @type Items: Array
635
+ # @param Total: 总数目。
636
+ # 注意:此字段可能返回 null,表示取不到有效值。
637
+ # @type Total: Integer
638
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
639
+ # @type RequestId: String
640
+
641
+ attr_accessor :TotalCost, :Items, :Total, :RequestId
642
+
643
+ def initialize(totalcost=nil, items=nil, total=nil, requestid=nil)
644
+ @TotalCost = totalcost
645
+ @Items = items
646
+ @Total = total
647
+ @RequestId = requestid
648
+ end
649
+
650
+ def deserialize(params)
651
+ @TotalCost = params['TotalCost']
652
+ unless params['Items'].nil?
653
+ @Items = []
654
+ params['Items'].each do |i|
655
+ orgproductfinancial_tmp = OrgProductFinancial.new
656
+ orgproductfinancial_tmp.deserialize(i)
657
+ @Items << orgproductfinancial_tmp
658
+ end
659
+ end
660
+ @Total = params['Total']
661
+ @RequestId = params['RequestId']
662
+ end
663
+ end
664
+
461
665
  # DescribeOrganizationMemberAuthAccounts请求参数结构体
462
666
  class DescribeOrganizationMemberAuthAccountsRequest < TencentCloud::Common::AbstractModel
463
667
  # @param Offset: 偏移量。
@@ -1122,6 +1326,38 @@ module TencentCloud
1122
1326
  end
1123
1327
  end
1124
1328
 
1329
+ # 按月获取组织财务信息
1330
+ class OrgFinancialByMonth < TencentCloud::Common::AbstractModel
1331
+ # @param Id: 记录ID。
1332
+ # 注意:此字段可能返回 null,表示取不到有效值。
1333
+ # @type Id: Integer
1334
+ # @param Month: 月份,格式:yyyy-mm,示例:2021-01。
1335
+ # 注意:此字段可能返回 null,表示取不到有效值。
1336
+ # @type Month: String
1337
+ # @param TotalCost: 消耗金额,单元:元。
1338
+ # 注意:此字段可能返回 null,表示取不到有效值。
1339
+ # @type TotalCost: Float
1340
+ # @param GrowthRate: 比上月增长率%。正数增长,负数下降,空值无法统计。
1341
+ # 注意:此字段可能返回 null,表示取不到有效值。
1342
+ # @type GrowthRate: String
1343
+
1344
+ attr_accessor :Id, :Month, :TotalCost, :GrowthRate
1345
+
1346
+ def initialize(id=nil, month=nil, totalcost=nil, growthrate=nil)
1347
+ @Id = id
1348
+ @Month = month
1349
+ @TotalCost = totalcost
1350
+ @GrowthRate = growthrate
1351
+ end
1352
+
1353
+ def deserialize(params)
1354
+ @Id = params['Id']
1355
+ @Month = params['Month']
1356
+ @TotalCost = params['TotalCost']
1357
+ @GrowthRate = params['GrowthRate']
1358
+ end
1359
+ end
1360
+
1125
1361
  # 组织身份
1126
1362
  class OrgIdentity < TencentCloud::Common::AbstractModel
1127
1363
  # @param IdentityId: 身份ID。
@@ -1386,6 +1622,38 @@ module TencentCloud
1386
1622
  end
1387
1623
  end
1388
1624
 
1625
+ # 组织成员财务信息。
1626
+ class OrgMemberFinancial < TencentCloud::Common::AbstractModel
1627
+ # @param MemberUin: 成员Uin。
1628
+ # 注意:此字段可能返回 null,表示取不到有效值。
1629
+ # @type MemberUin: Integer
1630
+ # @param MemberName: 成员名称。
1631
+ # 注意:此字段可能返回 null,表示取不到有效值。
1632
+ # @type MemberName: String
1633
+ # @param TotalCost: 消耗金额,单位:元。
1634
+ # 注意:此字段可能返回 null,表示取不到有效值。
1635
+ # @type TotalCost: Float
1636
+ # @param Ratio: 占比%。
1637
+ # 注意:此字段可能返回 null,表示取不到有效值。
1638
+ # @type Ratio: String
1639
+
1640
+ attr_accessor :MemberUin, :MemberName, :TotalCost, :Ratio
1641
+
1642
+ def initialize(memberuin=nil, membername=nil, totalcost=nil, ratio=nil)
1643
+ @MemberUin = memberuin
1644
+ @MemberName = membername
1645
+ @TotalCost = totalcost
1646
+ @Ratio = ratio
1647
+ end
1648
+
1649
+ def deserialize(params)
1650
+ @MemberUin = params['MemberUin']
1651
+ @MemberName = params['MemberName']
1652
+ @TotalCost = params['TotalCost']
1653
+ @Ratio = params['Ratio']
1654
+ end
1655
+ end
1656
+
1389
1657
  # 组织成员被授权的策略
1390
1658
  class OrgMemberPolicy < TencentCloud::Common::AbstractModel
1391
1659
  # @param PolicyId: 策略ID。
@@ -1500,6 +1768,38 @@ module TencentCloud
1500
1768
  end
1501
1769
  end
1502
1770
 
1771
+ # 组织产品财务信息
1772
+ class OrgProductFinancial < TencentCloud::Common::AbstractModel
1773
+ # @param ProductName: 产品Code。
1774
+ # 注意:此字段可能返回 null,表示取不到有效值。
1775
+ # @type ProductName: String
1776
+ # @param ProductCode: 产品名。
1777
+ # 注意:此字段可能返回 null,表示取不到有效值。
1778
+ # @type ProductCode: String
1779
+ # @param TotalCost: 产品消耗,单位:元。
1780
+ # 注意:此字段可能返回 null,表示取不到有效值。
1781
+ # @type TotalCost: Float
1782
+ # @param Ratio: 占比%。
1783
+ # 注意:此字段可能返回 null,表示取不到有效值。
1784
+ # @type Ratio: String
1785
+
1786
+ attr_accessor :ProductName, :ProductCode, :TotalCost, :Ratio
1787
+
1788
+ def initialize(productname=nil, productcode=nil, totalcost=nil, ratio=nil)
1789
+ @ProductName = productname
1790
+ @ProductCode = productcode
1791
+ @TotalCost = totalcost
1792
+ @Ratio = ratio
1793
+ end
1794
+
1795
+ def deserialize(params)
1796
+ @ProductName = params['ProductName']
1797
+ @ProductCode = params['ProductCode']
1798
+ @TotalCost = params['TotalCost']
1799
+ @Ratio = params['Ratio']
1800
+ end
1801
+ end
1802
+
1503
1803
  # UpdateOrganizationMemberEmailBind请求参数结构体
1504
1804
  class UpdateOrganizationMemberEmailBindRequest < TencentCloud::Common::AbstractModel
1505
1805
  # @param MemberUin: 成员Uin
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-organization
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.591
4
+ version: 3.0.593
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-13 00:00:00.000000000 Z
11
+ date: 2023-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common