google-apis-cloudchannel_v1 0.37.0 → 0.39.0

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
  SHA256:
3
- metadata.gz: 3975cd7a64f0366e62ddb04b070b8d9ce8c5b40d8ba4d66df3721138877aa8ce
4
- data.tar.gz: 3eb794143d80459d83ffbc5c757006b80564b139b87ad227d9b921b3a7b499da
3
+ metadata.gz: d28304379f0790cb14575c7f858a8d6de602c1bf5dd12857b15ff474e332b1a9
4
+ data.tar.gz: a63ab259b9f7225fa1237b2aae178a36e1d3784c0a0946eb49f6eada50ad0b5a
5
5
  SHA512:
6
- metadata.gz: 7a0bd0c39e7663cfb03e84e5d848a24675606615b9096bb6e59733092f0a3e41ef6eb05ff86988cc117c15c92c3cde2c7f093d7e2245aa30eb1b67741036491a
7
- data.tar.gz: 688da17c5b5c5669653c3f4e53d54493c6a78ed59a6db83eafc35e35db9642b0712288dbc119246f86a4f8066d9397cec12dd27f2bda4b3647e7bfc912107578
6
+ metadata.gz: 22c7456bc51008c0bab016e74e520f5c602f6baa94832f4f77849310979705abe74cedbd1c095a74c68c1d59a0319b7f7db8bd4145d2084edeeda8f10c9d739d
7
+ data.tar.gz: dc69f67b0643c21bd2a3ab259f99f9e987a4e67a390844ca3f7d69f98bde0b9f5069e966a01917ea75a67885f15d7e72133e566a4e58064e9ab2a36d07decc02
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-cloudchannel_v1
2
2
 
3
+ ### v0.39.0 (2023-05-21)
4
+
5
+ * Regenerated from discovery document revision 20230516
6
+
7
+ ### v0.38.0 (2023-05-14)
8
+
9
+ * Regenerated from discovery document revision 20230510
10
+
3
11
  ### v0.37.0 (2023-04-30)
4
12
 
5
13
  * Regenerated from discovery document revision 20230426
@@ -98,6 +98,69 @@ module Google
98
98
  end
99
99
  end
100
100
 
101
+ # Represents a billing account.
102
+ class GoogleCloudChannelV1BillingAccount
103
+ include Google::Apis::Core::Hashable
104
+
105
+ # Output only. The time when this billing account was created.
106
+ # Corresponds to the JSON property `createTime`
107
+ # @return [String]
108
+ attr_accessor :create_time
109
+
110
+ # Output only. The 3-letter currency code defined in ISO 4217.
111
+ # Corresponds to the JSON property `currencyCode`
112
+ # @return [String]
113
+ attr_accessor :currency_code
114
+
115
+ # Display name of the billing account.
116
+ # Corresponds to the JSON property `displayName`
117
+ # @return [String]
118
+ attr_accessor :display_name
119
+
120
+ # Output only. Resource name of the billing account. Format: accounts/`
121
+ # account_id`/billingAccounts/`billing_account_id`.
122
+ # Corresponds to the JSON property `name`
123
+ # @return [String]
124
+ attr_accessor :name
125
+
126
+ # Output only. The CLDR region code.
127
+ # Corresponds to the JSON property `regionCode`
128
+ # @return [String]
129
+ attr_accessor :region_code
130
+
131
+ def initialize(**args)
132
+ update!(**args)
133
+ end
134
+
135
+ # Update properties of this object
136
+ def update!(**args)
137
+ @create_time = args[:create_time] if args.key?(:create_time)
138
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
139
+ @display_name = args[:display_name] if args.key?(:display_name)
140
+ @name = args[:name] if args.key?(:name)
141
+ @region_code = args[:region_code] if args.key?(:region_code)
142
+ end
143
+ end
144
+
145
+ # Represents a billing account that can be used to make a purchase.
146
+ class GoogleCloudChannelV1BillingAccountPurchaseInfo
147
+ include Google::Apis::Core::Hashable
148
+
149
+ # Represents a billing account.
150
+ # Corresponds to the JSON property `billingAccount`
151
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1BillingAccount]
152
+ attr_accessor :billing_account
153
+
154
+ def initialize(**args)
155
+ update!(**args)
156
+ end
157
+
158
+ # Update properties of this object
159
+ def update!(**args)
160
+ @billing_account = args[:billing_account] if args.key?(:billing_account)
161
+ end
162
+ end
163
+
101
164
  # Request message for CloudChannelService.CancelEntitlement.
102
165
  class GoogleCloudChannelV1CancelEntitlementRequest
103
166
  include Google::Apis::Core::Hashable
@@ -128,6 +191,14 @@ module Google
128
191
  class GoogleCloudChannelV1ChangeOfferRequest
129
192
  include Google::Apis::Core::Hashable
130
193
 
194
+ # Optional. The billing account resource name that is used to pay for this
195
+ # entitlement when setting up billing on a trial subscription. This field is
196
+ # only relevant for multi-currency accounts. It should be left empty for single
197
+ # currency accounts.
198
+ # Corresponds to the JSON property `billingAccount`
199
+ # @return [String]
200
+ attr_accessor :billing_account
201
+
131
202
  # Required. New Offer. Format: accounts/`account_id`/offers/`offer_id`.
132
203
  # Corresponds to the JSON property `offer`
133
204
  # @return [String]
@@ -162,6 +233,7 @@ module Google
162
233
 
163
234
  # Update properties of this object
164
235
  def update!(**args)
236
+ @billing_account = args[:billing_account] if args.key?(:billing_account)
165
237
  @offer = args[:offer] if args.key?(:offer)
166
238
  @parameters = args[:parameters] if args.key?(:parameters)
167
239
  @purchase_order_id = args[:purchase_order_id] if args.key?(:purchase_order_id)
@@ -1041,8 +1113,9 @@ module Google
1041
1113
  # maximum assignable units for a flexible offer OR - num_units: The total
1042
1114
  # commitment for commitment-based offers The response may additionally include
1043
1115
  # the following output-only Parameters: - assigned_units: The number of licenses
1044
- # assigned to users. For GCP billing subaccounts, the following Parameter may be
1045
- # accepted as input: - display_name: The display name of the billing subaccount.
1116
+ # assigned to users. For Google Cloud billing subaccounts, the following
1117
+ # Parameter may be accepted as input: - display_name: The display name of the
1118
+ # billing subaccount.
1046
1119
  # Corresponds to the JSON property `parameters`
1047
1120
  # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Parameter>]
1048
1121
  attr_accessor :parameters
@@ -1238,6 +1311,12 @@ module Google
1238
1311
  # @return [String]
1239
1312
  attr_accessor :page_token
1240
1313
 
1314
+ # Optional. List of keys specifying which report partitions to return. If empty,
1315
+ # returns all partitions.
1316
+ # Corresponds to the JSON property `partitionKeys`
1317
+ # @return [Array<String>]
1318
+ attr_accessor :partition_keys
1319
+
1241
1320
  def initialize(**args)
1242
1321
  update!(**args)
1243
1322
  end
@@ -1246,6 +1325,7 @@ module Google
1246
1325
  def update!(**args)
1247
1326
  @page_size = args[:page_size] if args.key?(:page_size)
1248
1327
  @page_token = args[:page_token] if args.key?(:page_token)
1328
+ @partition_keys = args[:partition_keys] if args.key?(:partition_keys)
1249
1329
  end
1250
1330
  end
1251
1331
 
@@ -1684,6 +1764,14 @@ module Google
1684
1764
  class GoogleCloudChannelV1ListTransferableOffersRequest
1685
1765
  include Google::Apis::Core::Hashable
1686
1766
 
1767
+ # Optional. The Billing Account to look up Offers for. Format: accounts/`
1768
+ # account_id`/billing_accounts/`billing_account_id`. This field is only relevant
1769
+ # for multi-currency accounts. It should be left empty for single currency
1770
+ # accounts.
1771
+ # Corresponds to the JSON property `billingAccount`
1772
+ # @return [String]
1773
+ attr_accessor :billing_account
1774
+
1687
1775
  # Customer's Cloud Identity ID
1688
1776
  # Corresponds to the JSON property `cloudIdentityId`
1689
1777
  # @return [String]
@@ -1727,6 +1815,7 @@ module Google
1727
1815
 
1728
1816
  # Update properties of this object
1729
1817
  def update!(**args)
1818
+ @billing_account = args[:billing_account] if args.key?(:billing_account)
1730
1819
  @cloud_identity_id = args[:cloud_identity_id] if args.key?(:cloud_identity_id)
1731
1820
  @customer_name = args[:customer_name] if args.key?(:customer_name)
1732
1821
  @language_code = args[:language_code] if args.key?(:language_code)
@@ -2147,7 +2236,7 @@ module Google
2147
2236
  include Google::Apis::Core::Hashable
2148
2237
 
2149
2238
  # Reseller Billing account to charge after an offer transaction. Only present
2150
- # for Google Cloud Platform offers.
2239
+ # for Google Cloud offers.
2151
2240
  # Corresponds to the JSON property `billingAccount`
2152
2241
  # @return [String]
2153
2242
  attr_accessor :billing_account
@@ -2403,8 +2492,8 @@ module Google
2403
2492
  attr_accessor :product_id
2404
2493
 
2405
2494
  # Output only. Provisioning ID of the entitlement. For Google Workspace, this is
2406
- # the underlying Subscription ID. For Google Cloud Platform, this is the Billing
2407
- # Account ID of the billing subaccount."
2495
+ # the underlying Subscription ID. For Google Cloud, this is the Billing Account
2496
+ # ID of the billing subaccount."
2408
2497
  # Corresponds to the JSON property `provisioningId`
2409
2498
  # @return [String]
2410
2499
  attr_accessor :provisioning_id
@@ -2471,6 +2560,27 @@ module Google
2471
2560
  end
2472
2561
  end
2473
2562
 
2563
+ # Response message for QueryEligibleBillingAccounts.
2564
+ class GoogleCloudChannelV1QueryEligibleBillingAccountsResponse
2565
+ include Google::Apis::Core::Hashable
2566
+
2567
+ # List of SKU purchase groups where each group represents a set of SKUs that
2568
+ # must be purchased using the same billing account. Each SKU from [
2569
+ # QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU group.
2570
+ # Corresponds to the JSON property `skuPurchaseGroups`
2571
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1SkuPurchaseGroup>]
2572
+ attr_accessor :sku_purchase_groups
2573
+
2574
+ def initialize(**args)
2575
+ update!(**args)
2576
+ end
2577
+
2578
+ # Update properties of this object
2579
+ def update!(**args)
2580
+ @sku_purchase_groups = args[:sku_purchase_groups] if args.key?(:sku_purchase_groups)
2581
+ end
2582
+ end
2583
+
2474
2584
  # Request Message for RegisterSubscriber.
2475
2585
  class GoogleCloudChannelV1RegisterSubscriberRequest
2476
2586
  include Google::Apis::Core::Hashable
@@ -2551,7 +2661,7 @@ module Google
2551
2661
  end
2552
2662
 
2553
2663
  # The ID and description of a report that was used to generate report data. For
2554
- # example, "GCP Daily Spend", "Google Workspace License Activity", etc.
2664
+ # example, "Google Cloud Daily Spend", "Google Workspace License Activity", etc.
2555
2665
  class GoogleCloudChannelV1Report
2556
2666
  include Google::Apis::Core::Hashable
2557
2667
 
@@ -2634,7 +2744,7 @@ module Google
2634
2744
  attr_accessor :preceding_date_range
2635
2745
 
2636
2746
  # The ID and description of a report that was used to generate report data. For
2637
- # example, "GCP Daily Spend", "Google Workspace License Activity", etc.
2747
+ # example, "Google Cloud Daily Spend", "Google Workspace License Activity", etc.
2638
2748
  # Corresponds to the JSON property `report`
2639
2749
  # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Report]
2640
2750
  attr_accessor :report
@@ -2899,6 +3009,12 @@ module Google
2899
3009
  class GoogleCloudChannelV1Row
2900
3010
  include Google::Apis::Core::Hashable
2901
3011
 
3012
+ # The key for the partition this row belongs to. This field is empty if the
3013
+ # report is not partitioned.
3014
+ # Corresponds to the JSON property `partitionKey`
3015
+ # @return [String]
3016
+ attr_accessor :partition_key
3017
+
2902
3018
  # The list of values in the row.
2903
3019
  # Corresponds to the JSON property `values`
2904
3020
  # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1ReportValue>]
@@ -2910,6 +3026,7 @@ module Google
2910
3026
 
2911
3027
  # Update properties of this object
2912
3028
  def update!(**args)
3029
+ @partition_key = args[:partition_key] if args.key?(:partition_key)
2913
3030
  @values = args[:values] if args.key?(:values)
2914
3031
  end
2915
3032
  end
@@ -3035,6 +3152,32 @@ module Google
3035
3152
  end
3036
3153
  end
3037
3154
 
3155
+ # Represents a set of SKUs that must be purchased using the same billing account.
3156
+ class GoogleCloudChannelV1SkuPurchaseGroup
3157
+ include Google::Apis::Core::Hashable
3158
+
3159
+ # List of billing accounts that are eligible to purhcase these SKUs.
3160
+ # Corresponds to the JSON property `billingAccountPurchaseInfos`
3161
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1BillingAccountPurchaseInfo>]
3162
+ attr_accessor :billing_account_purchase_infos
3163
+
3164
+ # Resource names of the SKUs included in this group. Format: products/`
3165
+ # product_id`/skus/`sku_id`.
3166
+ # Corresponds to the JSON property `skus`
3167
+ # @return [Array<String>]
3168
+ attr_accessor :skus
3169
+
3170
+ def initialize(**args)
3171
+ update!(**args)
3172
+ end
3173
+
3174
+ # Update properties of this object
3175
+ def update!(**args)
3176
+ @billing_account_purchase_infos = args[:billing_account_purchase_infos] if args.key?(:billing_account_purchase_infos)
3177
+ @skus = args[:skus] if args.key?(:skus)
3178
+ end
3179
+ end
3180
+
3038
3181
  # Request message for CloudChannelService.StartPaidService.
3039
3182
  class GoogleCloudChannelV1StartPaidServiceRequest
3040
3183
  include Google::Apis::Core::Hashable
@@ -3723,8 +3866,9 @@ module Google
3723
3866
  # maximum assignable units for a flexible offer OR - num_units: The total
3724
3867
  # commitment for commitment-based offers The response may additionally include
3725
3868
  # the following output-only Parameters: - assigned_units: The number of licenses
3726
- # assigned to users. For GCP billing subaccounts, the following Parameter may be
3727
- # accepted as input: - display_name: The display name of the billing subaccount.
3869
+ # assigned to users. For Google Cloud billing subaccounts, the following
3870
+ # Parameter may be accepted as input: - display_name: The display name of the
3871
+ # billing subaccount.
3728
3872
  # Corresponds to the JSON property `parameters`
3729
3873
  # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Parameter>]
3730
3874
  attr_accessor :parameters
@@ -3904,8 +4048,8 @@ module Google
3904
4048
  attr_accessor :product_id
3905
4049
 
3906
4050
  # Output only. Provisioning ID of the entitlement. For Google Workspace, this is
3907
- # the underlying Subscription ID. For Google Cloud Platform, this is the Billing
3908
- # Account ID of the billing subaccount."
4051
+ # the underlying Subscription ID. For Google Cloud, this is the Billing Account
4052
+ # ID of the billing subaccount."
3909
4053
  # Corresponds to the JSON property `provisioningId`
3910
4054
  # @return [String]
3911
4055
  attr_accessor :provisioning_id
@@ -3990,7 +4134,7 @@ module Google
3990
4134
  end
3991
4135
 
3992
4136
  # The ID and description of a report that was used to generate report data. For
3993
- # example, "GCP Daily Spend", "Google Workspace License Activity", etc.
4137
+ # example, "Google Cloud Daily Spend", "Google Workspace License Activity", etc.
3994
4138
  class GoogleCloudChannelV1alpha1Report
3995
4139
  include Google::Apis::Core::Hashable
3996
4140
 
@@ -4073,7 +4217,7 @@ module Google
4073
4217
  attr_accessor :preceding_date_range
4074
4218
 
4075
4219
  # The ID and description of a report that was used to generate report data. For
4076
- # example, "GCP Daily Spend", "Google Workspace License Activity", etc.
4220
+ # example, "Google Cloud Daily Spend", "Google Workspace License Activity", etc.
4077
4221
  # Corresponds to the JSON property `report`
4078
4222
  # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Report]
4079
4223
  attr_accessor :report
@@ -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.37.0"
19
+ GEM_VERSION = "0.39.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230426"
25
+ REVISION = "20230516"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,18 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class GoogleCloudChannelV1BillingAccount
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleCloudChannelV1BillingAccountPurchaseInfo
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
43
55
  class GoogleCloudChannelV1CancelEntitlementRequest
44
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
57
 
@@ -418,6 +430,12 @@ module Google
418
430
  include Google::Apis::Core::JsonObjectSupport
419
431
  end
420
432
 
433
+ class GoogleCloudChannelV1QueryEligibleBillingAccountsResponse
434
+ class Representation < Google::Apis::Core::JsonRepresentation; end
435
+
436
+ include Google::Apis::Core::JsonObjectSupport
437
+ end
438
+
421
439
  class GoogleCloudChannelV1RegisterSubscriberRequest
422
440
  class Representation < Google::Apis::Core::JsonRepresentation; end
423
441
 
@@ -526,6 +544,12 @@ module Google
526
544
  include Google::Apis::Core::JsonObjectSupport
527
545
  end
528
546
 
547
+ class GoogleCloudChannelV1SkuPurchaseGroup
548
+ class Representation < Google::Apis::Core::JsonRepresentation; end
549
+
550
+ include Google::Apis::Core::JsonObjectSupport
551
+ end
552
+
529
553
  class GoogleCloudChannelV1StartPaidServiceRequest
530
554
  class Representation < Google::Apis::Core::JsonRepresentation; end
531
555
 
@@ -831,6 +855,25 @@ module Google
831
855
  end
832
856
  end
833
857
 
858
+ class GoogleCloudChannelV1BillingAccount
859
+ # @private
860
+ class Representation < Google::Apis::Core::JsonRepresentation
861
+ property :create_time, as: 'createTime'
862
+ property :currency_code, as: 'currencyCode'
863
+ property :display_name, as: 'displayName'
864
+ property :name, as: 'name'
865
+ property :region_code, as: 'regionCode'
866
+ end
867
+ end
868
+
869
+ class GoogleCloudChannelV1BillingAccountPurchaseInfo
870
+ # @private
871
+ class Representation < Google::Apis::Core::JsonRepresentation
872
+ property :billing_account, as: 'billingAccount', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1BillingAccount, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1BillingAccount::Representation
873
+
874
+ end
875
+ end
876
+
834
877
  class GoogleCloudChannelV1CancelEntitlementRequest
835
878
  # @private
836
879
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -841,6 +884,7 @@ module Google
841
884
  class GoogleCloudChannelV1ChangeOfferRequest
842
885
  # @private
843
886
  class Representation < Google::Apis::Core::JsonRepresentation
887
+ property :billing_account, as: 'billingAccount'
844
888
  property :offer, as: 'offer'
845
889
  collection :parameters, as: 'parameters', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Parameter, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Parameter::Representation
846
890
 
@@ -1121,6 +1165,7 @@ module Google
1121
1165
  class Representation < Google::Apis::Core::JsonRepresentation
1122
1166
  property :page_size, as: 'pageSize'
1123
1167
  property :page_token, as: 'pageToken'
1168
+ collection :partition_keys, as: 'partitionKeys'
1124
1169
  end
1125
1170
  end
1126
1171
 
@@ -1267,6 +1312,7 @@ module Google
1267
1312
  class GoogleCloudChannelV1ListTransferableOffersRequest
1268
1313
  # @private
1269
1314
  class Representation < Google::Apis::Core::JsonRepresentation
1315
+ property :billing_account, as: 'billingAccount'
1270
1316
  property :cloud_identity_id, as: 'cloudIdentityId'
1271
1317
  property :customer_name, as: 'customerName'
1272
1318
  property :language_code, as: 'languageCode'
@@ -1499,6 +1545,14 @@ module Google
1499
1545
  end
1500
1546
  end
1501
1547
 
1548
+ class GoogleCloudChannelV1QueryEligibleBillingAccountsResponse
1549
+ # @private
1550
+ class Representation < Google::Apis::Core::JsonRepresentation
1551
+ collection :sku_purchase_groups, as: 'skuPurchaseGroups', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1SkuPurchaseGroup, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1SkuPurchaseGroup::Representation
1552
+
1553
+ end
1554
+ end
1555
+
1502
1556
  class GoogleCloudChannelV1RegisterSubscriberRequest
1503
1557
  # @private
1504
1558
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1631,6 +1685,7 @@ module Google
1631
1685
  class GoogleCloudChannelV1Row
1632
1686
  # @private
1633
1687
  class Representation < Google::Apis::Core::JsonRepresentation
1688
+ property :partition_key, as: 'partitionKey'
1634
1689
  collection :values, as: 'values', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ReportValue, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ReportValue::Representation
1635
1690
 
1636
1691
  end
@@ -1674,6 +1729,15 @@ module Google
1674
1729
  end
1675
1730
  end
1676
1731
 
1732
+ class GoogleCloudChannelV1SkuPurchaseGroup
1733
+ # @private
1734
+ class Representation < Google::Apis::Core::JsonRepresentation
1735
+ collection :billing_account_purchase_infos, as: 'billingAccountPurchaseInfos', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1BillingAccountPurchaseInfo, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1BillingAccountPurchaseInfo::Representation
1736
+
1737
+ collection :skus, as: 'skus'
1738
+ end
1739
+ end
1740
+
1677
1741
  class GoogleCloudChannelV1StartPaidServiceRequest
1678
1742
  # @private
1679
1743
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1188,12 +1188,21 @@ module Google
1188
1188
  # @param [String] customer
1189
1189
  # Required. The resource name of the customer to list Offers for. Format:
1190
1190
  # accounts/`account_id`/customers/`customer_id`.
1191
+ # @param [String] change_offer_purchase_billing_account
1192
+ # Optional. Resource name of the new target Billing Account. Provide this
1193
+ # Billing Account when setting up billing for a trial subscription. Format:
1194
+ # accounts/`account_id`/billing_accounts/`billing_account_id`. This field is
1195
+ # only relevant for multi-currency accounts. It should be left empty for single
1196
+ # currency accounts.
1191
1197
  # @param [String] change_offer_purchase_entitlement
1192
1198
  # Required. Resource name of the entitlement. Format: accounts/`account_id`/
1193
1199
  # customers/`customer_id`/entitlements/`entitlement_id`
1194
1200
  # @param [String] change_offer_purchase_new_sku
1195
1201
  # Optional. Resource name of the new target SKU. Provide this SKU when upgrading
1196
1202
  # or downgrading an entitlement. Format: products/`product_id`/skus/`sku_id`
1203
+ # @param [String] create_entitlement_purchase_billing_account
1204
+ # Optional. Billing account that the result should be restricted to. Format:
1205
+ # accounts/`account_id`/billing_accounts/`billing_account_id`.
1197
1206
  # @param [String] create_entitlement_purchase_sku
1198
1207
  # Required. SKU that the result should be restricted to. Format: products/`
1199
1208
  # product_id`/skus/`sku_id`.
@@ -1224,13 +1233,15 @@ module Google
1224
1233
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1225
1234
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1226
1235
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1227
- def list_account_customer_purchasable_offers(customer, change_offer_purchase_entitlement: nil, change_offer_purchase_new_sku: nil, create_entitlement_purchase_sku: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1236
+ def list_account_customer_purchasable_offers(customer, change_offer_purchase_billing_account: nil, change_offer_purchase_entitlement: nil, change_offer_purchase_new_sku: nil, create_entitlement_purchase_billing_account: nil, create_entitlement_purchase_sku: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1228
1237
  command = make_simple_command(:get, 'v1/{+customer}:listPurchasableOffers', options)
1229
1238
  command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListPurchasableOffersResponse::Representation
1230
1239
  command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListPurchasableOffersResponse
1231
1240
  command.params['customer'] = customer unless customer.nil?
1241
+ command.query['changeOfferPurchase.billingAccount'] = change_offer_purchase_billing_account unless change_offer_purchase_billing_account.nil?
1232
1242
  command.query['changeOfferPurchase.entitlement'] = change_offer_purchase_entitlement unless change_offer_purchase_entitlement.nil?
1233
1243
  command.query['changeOfferPurchase.newSku'] = change_offer_purchase_new_sku unless change_offer_purchase_new_sku.nil?
1244
+ command.query['createEntitlementPurchase.billingAccount'] = create_entitlement_purchase_billing_account unless create_entitlement_purchase_billing_account.nil?
1234
1245
  command.query['createEntitlementPurchase.sku'] = create_entitlement_purchase_sku unless create_entitlement_purchase_sku.nil?
1235
1246
  command.query['languageCode'] = language_code unless language_code.nil?
1236
1247
  command.query['pageSize'] = page_size unless page_size.nil?
@@ -1385,6 +1396,46 @@ module Google
1385
1396
  execute_or_queue_command(command, &block)
1386
1397
  end
1387
1398
 
1399
+ # Lists the billing accounts that are eligible to purchase particular SKUs for a
1400
+ # given customer. Possible error codes: * PERMISSION_DENIED: The customer doesn'
1401
+ # t belong to the reseller. * INVALID_ARGUMENT: Required request parameters are
1402
+ # missing or invalid. Return value: Based on the provided list of SKUs, returns
1403
+ # a list of SKU groups that must be purchased using the same billing account and
1404
+ # the billing accounts eligible to purchase each SKU group.
1405
+ # @param [String] customer
1406
+ # Required. The resource name of the customer to list eligible billing accounts
1407
+ # for. Format: accounts/`account_id`/customers/`customer_id`.
1408
+ # @param [Array<String>, String] skus
1409
+ # Required. List of SKUs to list eligible billing accounts for. At least one SKU
1410
+ # is required. Format: products/`product_id`/skus/`sku_id`.
1411
+ # @param [String] fields
1412
+ # Selector specifying which fields to include in a partial response.
1413
+ # @param [String] quota_user
1414
+ # Available to use for quota purposes for server-side applications. Can be any
1415
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1416
+ # @param [Google::Apis::RequestOptions] options
1417
+ # Request-specific options
1418
+ #
1419
+ # @yield [result, err] Result & error if block supplied
1420
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1QueryEligibleBillingAccountsResponse] parsed result object
1421
+ # @yieldparam err [StandardError] error object if request failed
1422
+ #
1423
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1QueryEligibleBillingAccountsResponse]
1424
+ #
1425
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1426
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1427
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1428
+ def query_account_customer_eligible_billing_accounts(customer, skus: nil, fields: nil, quota_user: nil, options: nil, &block)
1429
+ command = make_simple_command(:get, 'v1/{+customer}:queryEligibleBillingAccounts', options)
1430
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1QueryEligibleBillingAccountsResponse::Representation
1431
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1QueryEligibleBillingAccountsResponse
1432
+ command.params['customer'] = customer unless customer.nil?
1433
+ command.query['skus'] = skus unless skus.nil?
1434
+ command.query['fields'] = fields unless fields.nil?
1435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1436
+ execute_or_queue_command(command, &block)
1437
+ end
1438
+
1388
1439
  # Transfers customer entitlements to new reseller. Possible error codes: *
1389
1440
  # PERMISSION_DENIED: The customer doesn't belong to the reseller. *
1390
1441
  # INVALID_ARGUMENT: Required request parameters are missing or invalid. *
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudchannel_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.37.0
4
+ version: 0.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-30 00:00:00.000000000 Z
11
+ date: 2023-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudchannel_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.37.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.39.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudchannel_v1
63
63
  post_install_message:
64
64
  rdoc_options: []