google-apis-cloudchannel_v1 0.28.0 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudchannelV1
18
18
  # Version of the google-apis-cloudchannel_v1 gem
19
- GEM_VERSION = "0.28.0"
19
+ GEM_VERSION = "0.29.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221023"
25
+ REVISION = "20221108"
26
26
  end
27
27
  end
28
28
  end
@@ -100,6 +100,12 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class GoogleCloudChannelV1Column
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
103
109
  class GoogleCloudChannelV1CommitmentSettings
104
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
111
 
@@ -148,6 +154,12 @@ module Google
148
154
  include Google::Apis::Core::JsonObjectSupport
149
155
  end
150
156
 
157
+ class GoogleCloudChannelV1DateRange
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
151
163
  class GoogleCloudChannelV1EduData
152
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
165
 
@@ -166,6 +178,18 @@ module Google
166
178
  include Google::Apis::Core::JsonObjectSupport
167
179
  end
168
180
 
181
+ class GoogleCloudChannelV1FetchReportResultsRequest
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class GoogleCloudChannelV1FetchReportResultsResponse
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
169
193
  class GoogleCloudChannelV1ImportCustomerRequest
170
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
195
 
@@ -226,6 +250,12 @@ module Google
226
250
  include Google::Apis::Core::JsonObjectSupport
227
251
  end
228
252
 
253
+ class GoogleCloudChannelV1ListReportsResponse
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
229
259
  class GoogleCloudChannelV1ListSkusResponse
230
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
261
 
@@ -388,6 +418,36 @@ module Google
388
418
  include Google::Apis::Core::JsonObjectSupport
389
419
  end
390
420
 
421
+ class GoogleCloudChannelV1Report
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
427
+ class GoogleCloudChannelV1ReportJob
428
+ class Representation < Google::Apis::Core::JsonRepresentation; end
429
+
430
+ include Google::Apis::Core::JsonObjectSupport
431
+ end
432
+
433
+ class GoogleCloudChannelV1ReportResultsMetadata
434
+ class Representation < Google::Apis::Core::JsonRepresentation; end
435
+
436
+ include Google::Apis::Core::JsonObjectSupport
437
+ end
438
+
439
+ class GoogleCloudChannelV1ReportStatus
440
+ class Representation < Google::Apis::Core::JsonRepresentation; end
441
+
442
+ include Google::Apis::Core::JsonObjectSupport
443
+ end
444
+
445
+ class GoogleCloudChannelV1ReportValue
446
+ class Representation < Google::Apis::Core::JsonRepresentation; end
447
+
448
+ include Google::Apis::Core::JsonObjectSupport
449
+ end
450
+
391
451
  class GoogleCloudChannelV1RepricingAdjustment
392
452
  class Representation < Google::Apis::Core::JsonRepresentation; end
393
453
 
@@ -412,6 +472,24 @@ module Google
412
472
  include Google::Apis::Core::JsonObjectSupport
413
473
  end
414
474
 
475
+ class GoogleCloudChannelV1Row
476
+ class Representation < Google::Apis::Core::JsonRepresentation; end
477
+
478
+ include Google::Apis::Core::JsonObjectSupport
479
+ end
480
+
481
+ class GoogleCloudChannelV1RunReportJobRequest
482
+ class Representation < Google::Apis::Core::JsonRepresentation; end
483
+
484
+ include Google::Apis::Core::JsonObjectSupport
485
+ end
486
+
487
+ class GoogleCloudChannelV1RunReportJobResponse
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
415
493
  class GoogleCloudChannelV1Sku
416
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
417
495
 
@@ -514,6 +592,12 @@ module Google
514
592
  include Google::Apis::Core::JsonObjectSupport
515
593
  end
516
594
 
595
+ class GoogleCloudChannelV1alpha1Column
596
+ class Representation < Google::Apis::Core::JsonRepresentation; end
597
+
598
+ include Google::Apis::Core::JsonObjectSupport
599
+ end
600
+
517
601
  class GoogleCloudChannelV1alpha1CommitmentSettings
518
602
  class Representation < Google::Apis::Core::JsonRepresentation; end
519
603
 
@@ -526,6 +610,12 @@ module Google
526
610
  include Google::Apis::Core::JsonObjectSupport
527
611
  end
528
612
 
613
+ class GoogleCloudChannelV1alpha1DateRange
614
+ class Representation < Google::Apis::Core::JsonRepresentation; end
615
+
616
+ include Google::Apis::Core::JsonObjectSupport
617
+ end
618
+
529
619
  class GoogleCloudChannelV1alpha1Entitlement
530
620
  class Representation < Google::Apis::Core::JsonRepresentation; end
531
621
 
@@ -568,6 +658,36 @@ module Google
568
658
  include Google::Apis::Core::JsonObjectSupport
569
659
  end
570
660
 
661
+ class GoogleCloudChannelV1alpha1Report
662
+ class Representation < Google::Apis::Core::JsonRepresentation; end
663
+
664
+ include Google::Apis::Core::JsonObjectSupport
665
+ end
666
+
667
+ class GoogleCloudChannelV1alpha1ReportJob
668
+ class Representation < Google::Apis::Core::JsonRepresentation; end
669
+
670
+ include Google::Apis::Core::JsonObjectSupport
671
+ end
672
+
673
+ class GoogleCloudChannelV1alpha1ReportResultsMetadata
674
+ class Representation < Google::Apis::Core::JsonRepresentation; end
675
+
676
+ include Google::Apis::Core::JsonObjectSupport
677
+ end
678
+
679
+ class GoogleCloudChannelV1alpha1ReportStatus
680
+ class Representation < Google::Apis::Core::JsonRepresentation; end
681
+
682
+ include Google::Apis::Core::JsonObjectSupport
683
+ end
684
+
685
+ class GoogleCloudChannelV1alpha1RunReportJobResponse
686
+ class Representation < Google::Apis::Core::JsonRepresentation; end
687
+
688
+ include Google::Apis::Core::JsonObjectSupport
689
+ end
690
+
571
691
  class GoogleCloudChannelV1alpha1SubscriberEvent
572
692
  class Representation < Google::Apis::Core::JsonRepresentation; end
573
693
 
@@ -628,6 +748,12 @@ module Google
628
748
  include Google::Apis::Core::JsonObjectSupport
629
749
  end
630
750
 
751
+ class GoogleTypeDateTime
752
+ class Representation < Google::Apis::Core::JsonRepresentation; end
753
+
754
+ include Google::Apis::Core::JsonObjectSupport
755
+ end
756
+
631
757
  class GoogleTypeDecimal
632
758
  class Representation < Google::Apis::Core::JsonRepresentation; end
633
759
 
@@ -646,6 +772,12 @@ module Google
646
772
  include Google::Apis::Core::JsonObjectSupport
647
773
  end
648
774
 
775
+ class GoogleTypeTimeZone
776
+ class Representation < Google::Apis::Core::JsonRepresentation; end
777
+
778
+ include Google::Apis::Core::JsonObjectSupport
779
+ end
780
+
649
781
  class GoogleCloudChannelV1ActivateEntitlementRequest
650
782
  # @private
651
783
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -771,6 +903,15 @@ module Google
771
903
  end
772
904
  end
773
905
 
906
+ class GoogleCloudChannelV1Column
907
+ # @private
908
+ class Representation < Google::Apis::Core::JsonRepresentation
909
+ property :column_id, as: 'columnId'
910
+ property :data_type, as: 'dataType'
911
+ property :display_name, as: 'displayName'
912
+ end
913
+ end
914
+
774
915
  class GoogleCloudChannelV1CommitmentSettings
775
916
  # @private
776
917
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -858,6 +999,20 @@ module Google
858
999
  end
859
1000
  end
860
1001
 
1002
+ class GoogleCloudChannelV1DateRange
1003
+ # @private
1004
+ class Representation < Google::Apis::Core::JsonRepresentation
1005
+ property :invoice_end_date, as: 'invoiceEndDate', class: Google::Apis::CloudchannelV1::GoogleTypeDate, decorator: Google::Apis::CloudchannelV1::GoogleTypeDate::Representation
1006
+
1007
+ property :invoice_start_date, as: 'invoiceStartDate', class: Google::Apis::CloudchannelV1::GoogleTypeDate, decorator: Google::Apis::CloudchannelV1::GoogleTypeDate::Representation
1008
+
1009
+ property :usage_end_date_time, as: 'usageEndDateTime', class: Google::Apis::CloudchannelV1::GoogleTypeDateTime, decorator: Google::Apis::CloudchannelV1::GoogleTypeDateTime::Representation
1010
+
1011
+ property :usage_start_date_time, as: 'usageStartDateTime', class: Google::Apis::CloudchannelV1::GoogleTypeDateTime, decorator: Google::Apis::CloudchannelV1::GoogleTypeDateTime::Representation
1012
+
1013
+ end
1014
+ end
1015
+
861
1016
  class GoogleCloudChannelV1EduData
862
1017
  # @private
863
1018
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -898,6 +1053,25 @@ module Google
898
1053
  end
899
1054
  end
900
1055
 
1056
+ class GoogleCloudChannelV1FetchReportResultsRequest
1057
+ # @private
1058
+ class Representation < Google::Apis::Core::JsonRepresentation
1059
+ property :page_size, as: 'pageSize'
1060
+ property :page_token, as: 'pageToken'
1061
+ end
1062
+ end
1063
+
1064
+ class GoogleCloudChannelV1FetchReportResultsResponse
1065
+ # @private
1066
+ class Representation < Google::Apis::Core::JsonRepresentation
1067
+ property :next_page_token, as: 'nextPageToken'
1068
+ property :report_metadata, as: 'reportMetadata', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ReportResultsMetadata, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ReportResultsMetadata::Representation
1069
+
1070
+ collection :rows, as: 'rows', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Row, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Row::Representation
1071
+
1072
+ end
1073
+ end
1074
+
901
1075
  class GoogleCloudChannelV1ImportCustomerRequest
902
1076
  # @private
903
1077
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -991,6 +1165,15 @@ module Google
991
1165
  end
992
1166
  end
993
1167
 
1168
+ class GoogleCloudChannelV1ListReportsResponse
1169
+ # @private
1170
+ class Representation < Google::Apis::Core::JsonRepresentation
1171
+ property :next_page_token, as: 'nextPageToken'
1172
+ collection :reports, as: 'reports', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Report, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Report::Representation
1173
+
1174
+ end
1175
+ end
1176
+
994
1177
  class GoogleCloudChannelV1ListSkusResponse
995
1178
  # @private
996
1179
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1075,6 +1258,7 @@ module Google
1075
1258
  class Representation < Google::Apis::Core::JsonRepresentation
1076
1259
  property :constraints, as: 'constraints', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Constraints, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Constraints::Representation
1077
1260
 
1261
+ property :deal_code, as: 'dealCode'
1078
1262
  property :end_time, as: 'endTime'
1079
1263
  property :marketing_info, as: 'marketingInfo', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1MarketingInfo, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1MarketingInfo::Representation
1080
1264
 
@@ -1268,6 +1452,64 @@ module Google
1268
1452
  end
1269
1453
  end
1270
1454
 
1455
+ class GoogleCloudChannelV1Report
1456
+ # @private
1457
+ class Representation < Google::Apis::Core::JsonRepresentation
1458
+ collection :columns, as: 'columns', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Column, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Column::Representation
1459
+
1460
+ property :description, as: 'description'
1461
+ property :display_name, as: 'displayName'
1462
+ property :name, as: 'name'
1463
+ end
1464
+ end
1465
+
1466
+ class GoogleCloudChannelV1ReportJob
1467
+ # @private
1468
+ class Representation < Google::Apis::Core::JsonRepresentation
1469
+ property :name, as: 'name'
1470
+ property :report_status, as: 'reportStatus', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ReportStatus, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ReportStatus::Representation
1471
+
1472
+ end
1473
+ end
1474
+
1475
+ class GoogleCloudChannelV1ReportResultsMetadata
1476
+ # @private
1477
+ class Representation < Google::Apis::Core::JsonRepresentation
1478
+ property :date_range, as: 'dateRange', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1DateRange, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1DateRange::Representation
1479
+
1480
+ property :preceding_date_range, as: 'precedingDateRange', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1DateRange, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1DateRange::Representation
1481
+
1482
+ property :report, as: 'report', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Report, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Report::Representation
1483
+
1484
+ property :row_count, :numeric_string => true, as: 'rowCount'
1485
+ end
1486
+ end
1487
+
1488
+ class GoogleCloudChannelV1ReportStatus
1489
+ # @private
1490
+ class Representation < Google::Apis::Core::JsonRepresentation
1491
+ property :end_time, as: 'endTime'
1492
+ property :start_time, as: 'startTime'
1493
+ property :state, as: 'state'
1494
+ end
1495
+ end
1496
+
1497
+ class GoogleCloudChannelV1ReportValue
1498
+ # @private
1499
+ class Representation < Google::Apis::Core::JsonRepresentation
1500
+ property :date_time_value, as: 'dateTimeValue', class: Google::Apis::CloudchannelV1::GoogleTypeDateTime, decorator: Google::Apis::CloudchannelV1::GoogleTypeDateTime::Representation
1501
+
1502
+ property :date_value, as: 'dateValue', class: Google::Apis::CloudchannelV1::GoogleTypeDate, decorator: Google::Apis::CloudchannelV1::GoogleTypeDate::Representation
1503
+
1504
+ property :decimal_value, as: 'decimalValue', class: Google::Apis::CloudchannelV1::GoogleTypeDecimal, decorator: Google::Apis::CloudchannelV1::GoogleTypeDecimal::Representation
1505
+
1506
+ property :int_value, :numeric_string => true, as: 'intValue'
1507
+ property :money_value, as: 'moneyValue', class: Google::Apis::CloudchannelV1::GoogleTypeMoney, decorator: Google::Apis::CloudchannelV1::GoogleTypeMoney::Representation
1508
+
1509
+ property :string_value, as: 'stringValue'
1510
+ end
1511
+ end
1512
+
1271
1513
  class GoogleCloudChannelV1RepricingAdjustment
1272
1514
  # @private
1273
1515
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1304,6 +1546,34 @@ module Google
1304
1546
  end
1305
1547
  end
1306
1548
 
1549
+ class GoogleCloudChannelV1Row
1550
+ # @private
1551
+ class Representation < Google::Apis::Core::JsonRepresentation
1552
+ collection :values, as: 'values', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ReportValue, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ReportValue::Representation
1553
+
1554
+ end
1555
+ end
1556
+
1557
+ class GoogleCloudChannelV1RunReportJobRequest
1558
+ # @private
1559
+ class Representation < Google::Apis::Core::JsonRepresentation
1560
+ property :date_range, as: 'dateRange', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1DateRange, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1DateRange::Representation
1561
+
1562
+ property :filter, as: 'filter'
1563
+ property :language_code, as: 'languageCode'
1564
+ end
1565
+ end
1566
+
1567
+ class GoogleCloudChannelV1RunReportJobResponse
1568
+ # @private
1569
+ class Representation < Google::Apis::Core::JsonRepresentation
1570
+ property :report_job, as: 'reportJob', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ReportJob, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ReportJob::Representation
1571
+
1572
+ property :report_metadata, as: 'reportMetadata', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ReportResultsMetadata, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ReportResultsMetadata::Representation
1573
+
1574
+ end
1575
+ end
1576
+
1307
1577
  class GoogleCloudChannelV1Sku
1308
1578
  # @private
1309
1579
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1452,6 +1722,15 @@ module Google
1452
1722
  end
1453
1723
  end
1454
1724
 
1725
+ class GoogleCloudChannelV1alpha1Column
1726
+ # @private
1727
+ class Representation < Google::Apis::Core::JsonRepresentation
1728
+ property :column_id, as: 'columnId'
1729
+ property :data_type, as: 'dataType'
1730
+ property :display_name, as: 'displayName'
1731
+ end
1732
+ end
1733
+
1455
1734
  class GoogleCloudChannelV1alpha1CommitmentSettings
1456
1735
  # @private
1457
1736
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1470,6 +1749,20 @@ module Google
1470
1749
  end
1471
1750
  end
1472
1751
 
1752
+ class GoogleCloudChannelV1alpha1DateRange
1753
+ # @private
1754
+ class Representation < Google::Apis::Core::JsonRepresentation
1755
+ property :invoice_end_date, as: 'invoiceEndDate', class: Google::Apis::CloudchannelV1::GoogleTypeDate, decorator: Google::Apis::CloudchannelV1::GoogleTypeDate::Representation
1756
+
1757
+ property :invoice_start_date, as: 'invoiceStartDate', class: Google::Apis::CloudchannelV1::GoogleTypeDate, decorator: Google::Apis::CloudchannelV1::GoogleTypeDate::Representation
1758
+
1759
+ property :usage_end_date_time, as: 'usageEndDateTime', class: Google::Apis::CloudchannelV1::GoogleTypeDateTime, decorator: Google::Apis::CloudchannelV1::GoogleTypeDateTime::Representation
1760
+
1761
+ property :usage_start_date_time, as: 'usageStartDateTime', class: Google::Apis::CloudchannelV1::GoogleTypeDateTime, decorator: Google::Apis::CloudchannelV1::GoogleTypeDateTime::Representation
1762
+
1763
+ end
1764
+ end
1765
+
1473
1766
  class GoogleCloudChannelV1alpha1Entitlement
1474
1767
  # @private
1475
1768
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1552,6 +1845,58 @@ module Google
1552
1845
  end
1553
1846
  end
1554
1847
 
1848
+ class GoogleCloudChannelV1alpha1Report
1849
+ # @private
1850
+ class Representation < Google::Apis::Core::JsonRepresentation
1851
+ collection :columns, as: 'columns', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Column, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Column::Representation
1852
+
1853
+ property :description, as: 'description'
1854
+ property :display_name, as: 'displayName'
1855
+ property :name, as: 'name'
1856
+ end
1857
+ end
1858
+
1859
+ class GoogleCloudChannelV1alpha1ReportJob
1860
+ # @private
1861
+ class Representation < Google::Apis::Core::JsonRepresentation
1862
+ property :name, as: 'name'
1863
+ property :report_status, as: 'reportStatus', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1ReportStatus, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1ReportStatus::Representation
1864
+
1865
+ end
1866
+ end
1867
+
1868
+ class GoogleCloudChannelV1alpha1ReportResultsMetadata
1869
+ # @private
1870
+ class Representation < Google::Apis::Core::JsonRepresentation
1871
+ property :date_range, as: 'dateRange', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1DateRange, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1DateRange::Representation
1872
+
1873
+ property :preceding_date_range, as: 'precedingDateRange', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1DateRange, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1DateRange::Representation
1874
+
1875
+ property :report, as: 'report', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Report, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Report::Representation
1876
+
1877
+ property :row_count, :numeric_string => true, as: 'rowCount'
1878
+ end
1879
+ end
1880
+
1881
+ class GoogleCloudChannelV1alpha1ReportStatus
1882
+ # @private
1883
+ class Representation < Google::Apis::Core::JsonRepresentation
1884
+ property :end_time, as: 'endTime'
1885
+ property :start_time, as: 'startTime'
1886
+ property :state, as: 'state'
1887
+ end
1888
+ end
1889
+
1890
+ class GoogleCloudChannelV1alpha1RunReportJobResponse
1891
+ # @private
1892
+ class Representation < Google::Apis::Core::JsonRepresentation
1893
+ property :report_job, as: 'reportJob', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1ReportJob, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1ReportJob::Representation
1894
+
1895
+ property :report_metadata, as: 'reportMetadata', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1ReportResultsMetadata, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1ReportResultsMetadata::Representation
1896
+
1897
+ end
1898
+ end
1899
+
1555
1900
  class GoogleCloudChannelV1alpha1SubscriberEvent
1556
1901
  # @private
1557
1902
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1642,6 +1987,22 @@ module Google
1642
1987
  end
1643
1988
  end
1644
1989
 
1990
+ class GoogleTypeDateTime
1991
+ # @private
1992
+ class Representation < Google::Apis::Core::JsonRepresentation
1993
+ property :day, as: 'day'
1994
+ property :hours, as: 'hours'
1995
+ property :minutes, as: 'minutes'
1996
+ property :month, as: 'month'
1997
+ property :nanos, as: 'nanos'
1998
+ property :seconds, as: 'seconds'
1999
+ property :time_zone, as: 'timeZone', class: Google::Apis::CloudchannelV1::GoogleTypeTimeZone, decorator: Google::Apis::CloudchannelV1::GoogleTypeTimeZone::Representation
2000
+
2001
+ property :utc_offset, as: 'utcOffset'
2002
+ property :year, as: 'year'
2003
+ end
2004
+ end
2005
+
1645
2006
  class GoogleTypeDecimal
1646
2007
  # @private
1647
2008
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1674,6 +2035,14 @@ module Google
1674
2035
  property :sublocality, as: 'sublocality'
1675
2036
  end
1676
2037
  end
2038
+
2039
+ class GoogleTypeTimeZone
2040
+ # @private
2041
+ class Representation < Google::Apis::Core::JsonRepresentation
2042
+ property :id, as: 'id'
2043
+ property :version, as: 'version'
2044
+ end
2045
+ end
1677
2046
  end
1678
2047
  end
1679
2048
  end
@@ -2275,6 +2275,133 @@ module Google
2275
2275
  execute_or_queue_command(command, &block)
2276
2276
  end
2277
2277
 
2278
+ # Retrieves data generated by CloudChannelReportsService.RunReportJob.
2279
+ # @param [String] report_job
2280
+ # Required. The report job created by CloudChannelReportsService.RunReportJob.
2281
+ # Report_job uses the format: accounts/`account_id`/reportJobs/`report_job_id`
2282
+ # @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1FetchReportResultsRequest] google_cloud_channel_v1_fetch_report_results_request_object
2283
+ # @param [String] fields
2284
+ # Selector specifying which fields to include in a partial response.
2285
+ # @param [String] quota_user
2286
+ # Available to use for quota purposes for server-side applications. Can be any
2287
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2288
+ # @param [Google::Apis::RequestOptions] options
2289
+ # Request-specific options
2290
+ #
2291
+ # @yield [result, err] Result & error if block supplied
2292
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1FetchReportResultsResponse] parsed result object
2293
+ # @yieldparam err [StandardError] error object if request failed
2294
+ #
2295
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1FetchReportResultsResponse]
2296
+ #
2297
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2298
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2299
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2300
+ def fetch_account_report_job_report_results(report_job, google_cloud_channel_v1_fetch_report_results_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2301
+ command = make_simple_command(:post, 'v1/{+reportJob}:fetchReportResults', options)
2302
+ command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1FetchReportResultsRequest::Representation
2303
+ command.request_object = google_cloud_channel_v1_fetch_report_results_request_object
2304
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1FetchReportResultsResponse::Representation
2305
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1FetchReportResultsResponse
2306
+ command.params['reportJob'] = report_job unless report_job.nil?
2307
+ command.query['fields'] = fields unless fields.nil?
2308
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2309
+ execute_or_queue_command(command, &block)
2310
+ end
2311
+
2312
+ # Lists the reports that RunReportJob can run. These reports include an ID, a
2313
+ # description, and the list of columns that will be in the result.
2314
+ # @param [String] parent
2315
+ # Required. The resource name of the partner account to list available reports
2316
+ # for. Parent uses the format: accounts/`account_id`
2317
+ # @param [String] language_code
2318
+ # Optional. The BCP-47 language code, such as "en-US". If specified, the
2319
+ # response is localized to the corresponding language code if the original data
2320
+ # sources support it. Default is "en-US".
2321
+ # @param [Fixnum] page_size
2322
+ # Optional. Requested page size of the report. The server might return fewer
2323
+ # results than requested. If unspecified, returns 20 reports. The maximum value
2324
+ # is 100.
2325
+ # @param [String] page_token
2326
+ # Optional. A token that specifies a page of results beyond the first page.
2327
+ # Obtained through ListReportsResponse.next_page_token of the previous
2328
+ # CloudChannelReportsService.ListReports call.
2329
+ # @param [String] fields
2330
+ # Selector specifying which fields to include in a partial response.
2331
+ # @param [String] quota_user
2332
+ # Available to use for quota purposes for server-side applications. Can be any
2333
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2334
+ # @param [Google::Apis::RequestOptions] options
2335
+ # Request-specific options
2336
+ #
2337
+ # @yield [result, err] Result & error if block supplied
2338
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListReportsResponse] parsed result object
2339
+ # @yieldparam err [StandardError] error object if request failed
2340
+ #
2341
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListReportsResponse]
2342
+ #
2343
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2344
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2345
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2346
+ def list_account_reports(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2347
+ command = make_simple_command(:get, 'v1/{+parent}/reports', options)
2348
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListReportsResponse::Representation
2349
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListReportsResponse
2350
+ command.params['parent'] = parent unless parent.nil?
2351
+ command.query['languageCode'] = language_code unless language_code.nil?
2352
+ command.query['pageSize'] = page_size unless page_size.nil?
2353
+ command.query['pageToken'] = page_token unless page_token.nil?
2354
+ command.query['fields'] = fields unless fields.nil?
2355
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2356
+ execute_or_queue_command(command, &block)
2357
+ end
2358
+
2359
+ # Begins generation of data for a given report. The report identifier is a UID (
2360
+ # for example, `613bf59q`). Possible error codes: * PERMISSION_DENIED: The user
2361
+ # doesn't have access to this report. * INVALID_ARGUMENT: Required request
2362
+ # parameters are missing or invalid. * NOT_FOUND: The report identifier was not
2363
+ # found. * INTERNAL: Any non-user error related to a technical issue in the
2364
+ # backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related
2365
+ # to a technical issue in the backend. Contact Cloud Channel support. Return
2366
+ # value: The ID of a long-running operation. To get the results of the operation,
2367
+ # call the GetOperation method of CloudChannelOperationsService. The Operation
2368
+ # metadata contains an instance of OperationMetadata. To get the results of
2369
+ # report generation, call CloudChannelReportsService.FetchReportResults with the
2370
+ # RunReportJobResponse.report_job.
2371
+ # @param [String] name
2372
+ # Required. The report's resource name. Specifies the account and report used to
2373
+ # generate report data. The report_id identifier is a UID (for example, `
2374
+ # 613bf59q`). Name uses the format: accounts/`account_id`/reports/`report_id`
2375
+ # @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1RunReportJobRequest] google_cloud_channel_v1_run_report_job_request_object
2376
+ # @param [String] fields
2377
+ # Selector specifying which fields to include in a partial response.
2378
+ # @param [String] quota_user
2379
+ # Available to use for quota purposes for server-side applications. Can be any
2380
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2381
+ # @param [Google::Apis::RequestOptions] options
2382
+ # Request-specific options
2383
+ #
2384
+ # @yield [result, err] Result & error if block supplied
2385
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleLongrunningOperation] parsed result object
2386
+ # @yieldparam err [StandardError] error object if request failed
2387
+ #
2388
+ # @return [Google::Apis::CloudchannelV1::GoogleLongrunningOperation]
2389
+ #
2390
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2391
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2392
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2393
+ def run_account_report(name, google_cloud_channel_v1_run_report_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2394
+ command = make_simple_command(:post, 'v1/{+name}:run', options)
2395
+ command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1RunReportJobRequest::Representation
2396
+ command.request_object = google_cloud_channel_v1_run_report_job_request_object
2397
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleLongrunningOperation::Representation
2398
+ command.response_class = Google::Apis::CloudchannelV1::GoogleLongrunningOperation
2399
+ command.params['name'] = name unless name.nil?
2400
+ command.query['fields'] = fields unless fields.nil?
2401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2402
+ execute_or_queue_command(command, &block)
2403
+ end
2404
+
2278
2405
  # Starts asynchronous cancellation on a long-running operation. The server makes
2279
2406
  # a best effort to cancel the operation, but success is not guaranteed. If the
2280
2407
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -33,6 +33,9 @@ module Google
33
33
 
34
34
  # Manage users on your domain
35
35
  AUTH_APPS_ORDER = 'https://www.googleapis.com/auth/apps.order'
36
+
37
+ # View usage reports for your G Suite domain
38
+ AUTH_APPS_REPORTS_USAGE_READONLY = 'https://www.googleapis.com/auth/apps.reports.usage.readonly'
36
39
  end
37
40
  end
38
41
  end