google-apis-cloudchannel_v1 0.18.0 → 0.19.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: da589c813aabcda087aff0b9a54a564c315df8ce053e17be3493e2ff9db35519
4
- data.tar.gz: 81a560f1274ed9504cdef29d013bb8a9d768bba6025c5cbde08585d6233c552b
3
+ metadata.gz: 762f96cb9b2fcd18d3fadcc5b15626b8ca87f4b021155a8d4a6868ed3706ab4b
4
+ data.tar.gz: 9030af66b73fc09a0495344e9a66f745c51bf2cbd05b813fdb24d0ea8a061be8
5
5
  SHA512:
6
- metadata.gz: 48d00a9387e3fa086cfa2abdd0e56f3b353d4b4774f841d18e551b3559099b068c1e5e8cdadc23663026c093aca53230eb2bc5ddf52beeea1eeed1c7da742925
7
- data.tar.gz: d2be8c9b41f225e093eba4d4c1e1ae0474834238c3d0fb5b760db75d1f91644cf35e4d9f1594e970560c96db80084e00341c888f25d416f436ac457010efbb37
6
+ metadata.gz: f141c01e5c550645808f7b9830a8692bfeea3e853964e6b3f83cd3896d8c86770ed8c5e1a0c49225bd2f4a53b612af10db12beb738e1b57bf9cc31cadfb21159
7
+ data.tar.gz: 5e6d1f1b1b99d67e73db2ee06bae893ec709690c093655257cc2e8a5c2f85798148e0debf2fd917aa7eac788996d651925b6b99c952959687369cd33a54ed102
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-cloudchannel_v1
2
2
 
3
+ ### v0.19.0 (2022-04-26)
4
+
5
+ * Regenerated from discovery document revision 20220422
6
+
3
7
  ### v0.18.0 (2022-04-07)
4
8
 
5
9
  * Regenerated from discovery document revision 20220324
@@ -305,6 +305,42 @@ module Google
305
305
  end
306
306
  end
307
307
 
308
+ # Configuration for how a distributor will rebill a channel partner (also known
309
+ # as a distributor-authorized reseller).
310
+ class GoogleCloudChannelV1ChannelPartnerRepricingConfig
311
+ include Google::Apis::Core::Hashable
312
+
313
+ # Output only. Resource name of the ChannelPartnerRepricingConfig. Format:
314
+ # accounts/`account_id`/channelPartnerLinks/`channel_partner_id`/
315
+ # channelPartnerRepricingConfigs/`id`.
316
+ # Corresponds to the JSON property `name`
317
+ # @return [String]
318
+ attr_accessor :name
319
+
320
+ # Configuration for repricing a Google bill over a period of time.
321
+ # Corresponds to the JSON property `repricingConfig`
322
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfig]
323
+ attr_accessor :repricing_config
324
+
325
+ # Output only. Timestamp of an update to the repricing rule. If `update_time` is
326
+ # after RepricingConfig.effective_invoice_month then it indicates this was set
327
+ # mid-month.
328
+ # Corresponds to the JSON property `updateTime`
329
+ # @return [String]
330
+ attr_accessor :update_time
331
+
332
+ def initialize(**args)
333
+ update!(**args)
334
+ end
335
+
336
+ # Update properties of this object
337
+ def update!(**args)
338
+ @name = args[:name] if args.key?(:name)
339
+ @repricing_config = args[:repricing_config] if args.key?(:repricing_config)
340
+ @update_time = args[:update_time] if args.key?(:update_time)
341
+ end
342
+ end
343
+
308
344
  # Request message for CloudChannelService.CheckCloudIdentityAccountsExist.
309
345
  class GoogleCloudChannelV1CheckCloudIdentityAccountsExistRequest
310
346
  include Google::Apis::Core::Hashable
@@ -746,6 +782,40 @@ module Google
746
782
  end
747
783
  end
748
784
 
785
+ # Configuration for how a reseller will reprice a Customer.
786
+ class GoogleCloudChannelV1CustomerRepricingConfig
787
+ include Google::Apis::Core::Hashable
788
+
789
+ # Output only. Resource name of the CustomerRepricingConfig. Format: accounts/`
790
+ # account_id`/customers/`customer_id`/customerRepricingConfigs/`id`.
791
+ # Corresponds to the JSON property `name`
792
+ # @return [String]
793
+ attr_accessor :name
794
+
795
+ # Configuration for repricing a Google bill over a period of time.
796
+ # Corresponds to the JSON property `repricingConfig`
797
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfig]
798
+ attr_accessor :repricing_config
799
+
800
+ # Output only. Timestamp of an update to the repricing rule. If `update_time` is
801
+ # after RepricingConfig.effective_invoice_month then it indicates this was set
802
+ # mid-month.
803
+ # Corresponds to the JSON property `updateTime`
804
+ # @return [String]
805
+ attr_accessor :update_time
806
+
807
+ def initialize(**args)
808
+ update!(**args)
809
+ end
810
+
811
+ # Update properties of this object
812
+ def update!(**args)
813
+ @name = args[:name] if args.key?(:name)
814
+ @repricing_config = args[:repricing_config] if args.key?(:repricing_config)
815
+ @update_time = args[:update_time] if args.key?(:update_time)
816
+ end
817
+ end
818
+
749
819
  # Required Edu Attributes
750
820
  class GoogleCloudChannelV1EduData
751
821
  include Google::Apis::Core::Hashable
@@ -982,6 +1052,58 @@ module Google
982
1052
  end
983
1053
  end
984
1054
 
1055
+ # Response message for CloudChannelService.ListChannelPartnerRepricingConfigs.
1056
+ class GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse
1057
+ include Google::Apis::Core::Hashable
1058
+
1059
+ # The repricing configs for this channel partner.
1060
+ # Corresponds to the JSON property `channelPartnerRepricingConfigs`
1061
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig>]
1062
+ attr_accessor :channel_partner_repricing_configs
1063
+
1064
+ # A token to retrieve the next page of results. Pass to
1065
+ # ListChannelPartnerRepricingConfigsRequest.page_token to obtain that page.
1066
+ # Corresponds to the JSON property `nextPageToken`
1067
+ # @return [String]
1068
+ attr_accessor :next_page_token
1069
+
1070
+ def initialize(**args)
1071
+ update!(**args)
1072
+ end
1073
+
1074
+ # Update properties of this object
1075
+ def update!(**args)
1076
+ @channel_partner_repricing_configs = args[:channel_partner_repricing_configs] if args.key?(:channel_partner_repricing_configs)
1077
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1078
+ end
1079
+ end
1080
+
1081
+ # Response message for CloudChannelService.ListCustomerRepricingConfigs.
1082
+ class GoogleCloudChannelV1ListCustomerRepricingConfigsResponse
1083
+ include Google::Apis::Core::Hashable
1084
+
1085
+ # The repricing configs for this channel partner.
1086
+ # Corresponds to the JSON property `customerRepricingConfigs`
1087
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig>]
1088
+ attr_accessor :customer_repricing_configs
1089
+
1090
+ # A token to retrieve the next page of results. Pass to
1091
+ # ListCustomerRepricingConfigsRequest.page_token to obtain that page.
1092
+ # Corresponds to the JSON property `nextPageToken`
1093
+ # @return [String]
1094
+ attr_accessor :next_page_token
1095
+
1096
+ def initialize(**args)
1097
+ update!(**args)
1098
+ end
1099
+
1100
+ # Update properties of this object
1101
+ def update!(**args)
1102
+ @customer_repricing_configs = args[:customer_repricing_configs] if args.key?(:customer_repricing_configs)
1103
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1104
+ end
1105
+ end
1106
+
985
1107
  # Response message for CloudChannelService.ListCustomers.
986
1108
  class GoogleCloudChannelV1ListCustomersResponse
987
1109
  include Google::Apis::Core::Hashable
@@ -1598,6 +1720,29 @@ module Google
1598
1720
  end
1599
1721
  end
1600
1722
 
1723
+ # An adjustment that applies a flat markup or markdown to an entire bill.
1724
+ class GoogleCloudChannelV1PercentageAdjustment
1725
+ include Google::Apis::Core::Hashable
1726
+
1727
+ # A representation of a decimal value, such as 2.5. Clients may convert values
1728
+ # into language-native decimal formats, such as Java's BigDecimal or Python's
1729
+ # decimal.Decimal. [BigDecimal]: https://docs.oracle.com/en/java/javase/11/docs/
1730
+ # api/java.base/java/math/BigDecimal.html [decimal.Decimal]: https://docs.python.
1731
+ # org/3/library/decimal.html
1732
+ # Corresponds to the JSON property `percentage`
1733
+ # @return [Google::Apis::CloudchannelV1::GoogleTypeDecimal]
1734
+ attr_accessor :percentage
1735
+
1736
+ def initialize(**args)
1737
+ update!(**args)
1738
+ end
1739
+
1740
+ # Update properties of this object
1741
+ def update!(**args)
1742
+ @percentage = args[:percentage] if args.key?(:percentage)
1743
+ end
1744
+ end
1745
+
1601
1746
  # Represents period in days/months/years.
1602
1747
  class GoogleCloudChannelV1Period
1603
1748
  include Google::Apis::Core::Hashable
@@ -2031,6 +2176,111 @@ module Google
2031
2176
  end
2032
2177
  end
2033
2178
 
2179
+ # A type that represents the various adjustments you can apply to a bill.
2180
+ class GoogleCloudChannelV1RepricingAdjustment
2181
+ include Google::Apis::Core::Hashable
2182
+
2183
+ # An adjustment that applies a flat markup or markdown to an entire bill.
2184
+ # Corresponds to the JSON property `percentageAdjustment`
2185
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1PercentageAdjustment]
2186
+ attr_accessor :percentage_adjustment
2187
+
2188
+ def initialize(**args)
2189
+ update!(**args)
2190
+ end
2191
+
2192
+ # Update properties of this object
2193
+ def update!(**args)
2194
+ @percentage_adjustment = args[:percentage_adjustment] if args.key?(:percentage_adjustment)
2195
+ end
2196
+ end
2197
+
2198
+ # Configuration for repricing a Google bill over a period of time.
2199
+ class GoogleCloudChannelV1RepricingConfig
2200
+ include Google::Apis::Core::Hashable
2201
+
2202
+ # A type that represents the various adjustments you can apply to a bill.
2203
+ # Corresponds to the JSON property `adjustment`
2204
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingAdjustment]
2205
+ attr_accessor :adjustment
2206
+
2207
+ # Applies the repricing configuration at the channel partner level. The channel
2208
+ # partner value is derived from the resource name. Takes an empty json object.
2209
+ # Corresponds to the JSON property `channelPartnerGranularity`
2210
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfigChannelPartnerGranularity]
2211
+ attr_accessor :channel_partner_granularity
2212
+
2213
+ # Represents a whole or partial calendar date, such as a birthday. The time of
2214
+ # day and time zone are either specified elsewhere or are insignificant. The
2215
+ # date is relative to the Gregorian Calendar. This can represent one of the
2216
+ # following: * A full date, with non-zero year, month, and day values. * A month
2217
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
2218
+ # with a zero month and a zero day. * A year and month, with a zero day (for
2219
+ # example, a credit card expiration date). Related types: * google.type.
2220
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
2221
+ # Corresponds to the JSON property `effectiveInvoiceMonth`
2222
+ # @return [Google::Apis::CloudchannelV1::GoogleTypeDate]
2223
+ attr_accessor :effective_invoice_month
2224
+
2225
+ # Applies the repricing configuration at the entitlement level.
2226
+ # Corresponds to the JSON property `entitlementGranularity`
2227
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfigEntitlementGranularity]
2228
+ attr_accessor :entitlement_granularity
2229
+
2230
+ # Required. The RebillingBasis to use for this bill. Specifies the relative cost
2231
+ # based on repricing costs you will apply.
2232
+ # Corresponds to the JSON property `rebillingBasis`
2233
+ # @return [String]
2234
+ attr_accessor :rebilling_basis
2235
+
2236
+ def initialize(**args)
2237
+ update!(**args)
2238
+ end
2239
+
2240
+ # Update properties of this object
2241
+ def update!(**args)
2242
+ @adjustment = args[:adjustment] if args.key?(:adjustment)
2243
+ @channel_partner_granularity = args[:channel_partner_granularity] if args.key?(:channel_partner_granularity)
2244
+ @effective_invoice_month = args[:effective_invoice_month] if args.key?(:effective_invoice_month)
2245
+ @entitlement_granularity = args[:entitlement_granularity] if args.key?(:entitlement_granularity)
2246
+ @rebilling_basis = args[:rebilling_basis] if args.key?(:rebilling_basis)
2247
+ end
2248
+ end
2249
+
2250
+ # Applies the repricing configuration at the channel partner level. The channel
2251
+ # partner value is derived from the resource name. Takes an empty json object.
2252
+ class GoogleCloudChannelV1RepricingConfigChannelPartnerGranularity
2253
+ include Google::Apis::Core::Hashable
2254
+
2255
+ def initialize(**args)
2256
+ update!(**args)
2257
+ end
2258
+
2259
+ # Update properties of this object
2260
+ def update!(**args)
2261
+ end
2262
+ end
2263
+
2264
+ # Applies the repricing configuration at the entitlement level.
2265
+ class GoogleCloudChannelV1RepricingConfigEntitlementGranularity
2266
+ include Google::Apis::Core::Hashable
2267
+
2268
+ # Resource name of the entitlement. Format: accounts/`account_id`/customers/`
2269
+ # customer_id`/entitlements/`entitlement_id`
2270
+ # Corresponds to the JSON property `entitlement`
2271
+ # @return [String]
2272
+ attr_accessor :entitlement
2273
+
2274
+ def initialize(**args)
2275
+ update!(**args)
2276
+ end
2277
+
2278
+ # Update properties of this object
2279
+ def update!(**args)
2280
+ @entitlement = args[:entitlement] if args.key?(:entitlement)
2281
+ end
2282
+ end
2283
+
2034
2284
  # Represents a product's purchasable Stock Keeping Unit (SKU). SKUs represent
2035
2285
  # the different variations of the product. For example, Google Workspace
2036
2286
  # Business Standard and Google Workspace Business Plus are Google Workspace
@@ -3138,6 +3388,103 @@ module Google
3138
3388
  end
3139
3389
  end
3140
3390
 
3391
+ # Represents a whole or partial calendar date, such as a birthday. The time of
3392
+ # day and time zone are either specified elsewhere or are insignificant. The
3393
+ # date is relative to the Gregorian Calendar. This can represent one of the
3394
+ # following: * A full date, with non-zero year, month, and day values. * A month
3395
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
3396
+ # with a zero month and a zero day. * A year and month, with a zero day (for
3397
+ # example, a credit card expiration date). Related types: * google.type.
3398
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
3399
+ class GoogleTypeDate
3400
+ include Google::Apis::Core::Hashable
3401
+
3402
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
3403
+ # specify a year by itself or a year and month where the day isn't significant.
3404
+ # Corresponds to the JSON property `day`
3405
+ # @return [Fixnum]
3406
+ attr_accessor :day
3407
+
3408
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
3409
+ # and day.
3410
+ # Corresponds to the JSON property `month`
3411
+ # @return [Fixnum]
3412
+ attr_accessor :month
3413
+
3414
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
3415
+ # year.
3416
+ # Corresponds to the JSON property `year`
3417
+ # @return [Fixnum]
3418
+ attr_accessor :year
3419
+
3420
+ def initialize(**args)
3421
+ update!(**args)
3422
+ end
3423
+
3424
+ # Update properties of this object
3425
+ def update!(**args)
3426
+ @day = args[:day] if args.key?(:day)
3427
+ @month = args[:month] if args.key?(:month)
3428
+ @year = args[:year] if args.key?(:year)
3429
+ end
3430
+ end
3431
+
3432
+ # A representation of a decimal value, such as 2.5. Clients may convert values
3433
+ # into language-native decimal formats, such as Java's BigDecimal or Python's
3434
+ # decimal.Decimal. [BigDecimal]: https://docs.oracle.com/en/java/javase/11/docs/
3435
+ # api/java.base/java/math/BigDecimal.html [decimal.Decimal]: https://docs.python.
3436
+ # org/3/library/decimal.html
3437
+ class GoogleTypeDecimal
3438
+ include Google::Apis::Core::Hashable
3439
+
3440
+ # The decimal value, as a string. The string representation consists of an
3441
+ # optional sign, `+` (`U+002B`) or `-` (`U+002D`), followed by a sequence of
3442
+ # zero or more decimal digits ("the integer"), optionally followed by a fraction,
3443
+ # optionally followed by an exponent. The fraction consists of a decimal point
3444
+ # followed by zero or more decimal digits. The string must contain at least one
3445
+ # digit in either the integer or the fraction. The number formed by the sign,
3446
+ # the integer and the fraction is referred to as the significand. The exponent
3447
+ # consists of the character `e` (`U+0065`) or `E` (`U+0045`) followed by one or
3448
+ # more decimal digits. Services **should** normalize decimal values before
3449
+ # storing them by: - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
3450
+ # - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - Coercing
3451
+ # the exponent character to lower-case (`2.5E8` -> `2.5e8`). - Removing an
3452
+ # explicitly-provided zero exponent (`2.5e0` -> `2.5`). Services **may** perform
3453
+ # additional normalization based on its own needs and the internal decimal
3454
+ # implementation selected, such as shifting the decimal point and exponent value
3455
+ # together (example: `2.5e-1` <-> `0.25`). Additionally, services **may**
3456
+ # preserve trailing zeroes in the fraction to indicate increased precision, but
3457
+ # are not required to do so. Note that only the `.` character is supported to
3458
+ # divide the integer and the fraction; `,` **should not** be supported
3459
+ # regardless of locale. Additionally, thousand separators **should not** be
3460
+ # supported. If a service does support them, values **must** be normalized. The
3461
+ # ENBF grammar is: DecimalString = [Sign] Significand [Exponent]; Sign = '+' | '-
3462
+ # '; Significand = Digits '.' | [Digits] '.' Digits; Exponent = ('e' | 'E') [
3463
+ # Sign] Digits; Digits = ` '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' |
3464
+ # '9' `; Services **should** clearly document the range of supported values, the
3465
+ # maximum supported precision (total number of digits), and, if applicable, the
3466
+ # scale (number of digits after the decimal point), as well as how it behaves
3467
+ # when receiving out-of-bounds values. Services **may** choose to accept values
3468
+ # passed as input even when the value has a higher precision or scale than the
3469
+ # service supports, and **should** round the value to fit the supported scale.
3470
+ # Alternatively, the service **may** error with `400 Bad Request` (`
3471
+ # INVALID_ARGUMENT` in gRPC) if precision would be lost. Services **should**
3472
+ # error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service
3473
+ # receives a value outside of the supported range.
3474
+ # Corresponds to the JSON property `value`
3475
+ # @return [String]
3476
+ attr_accessor :value
3477
+
3478
+ def initialize(**args)
3479
+ update!(**args)
3480
+ end
3481
+
3482
+ # Update properties of this object
3483
+ def update!(**args)
3484
+ @value = args[:value] if args.key?(:value)
3485
+ end
3486
+ end
3487
+
3141
3488
  # Represents an amount of money with its currency type.
3142
3489
  class GoogleTypeMoney
3143
3490
  include Google::Apis::Core::Hashable
@@ -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.18.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220324"
25
+ REVISION = "20220422"
26
26
  end
27
27
  end
28
28
  end
@@ -70,6 +70,12 @@ module Google
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
+ class GoogleCloudChannelV1ChannelPartnerRepricingConfig
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
73
79
  class GoogleCloudChannelV1CheckCloudIdentityAccountsExistRequest
74
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
81
 
@@ -136,6 +142,12 @@ module Google
136
142
  include Google::Apis::Core::JsonObjectSupport
137
143
  end
138
144
 
145
+ class GoogleCloudChannelV1CustomerRepricingConfig
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
139
151
  class GoogleCloudChannelV1EduData
140
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
153
 
@@ -166,6 +178,18 @@ module Google
166
178
  include Google::Apis::Core::JsonObjectSupport
167
179
  end
168
180
 
181
+ class GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class GoogleCloudChannelV1ListCustomerRepricingConfigsResponse
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
169
193
  class GoogleCloudChannelV1ListCustomersResponse
170
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
195
 
@@ -274,6 +298,12 @@ module Google
274
298
  include Google::Apis::Core::JsonObjectSupport
275
299
  end
276
300
 
301
+ class GoogleCloudChannelV1PercentageAdjustment
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
277
307
  class GoogleCloudChannelV1Period
278
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
309
 
@@ -358,6 +388,30 @@ module Google
358
388
  include Google::Apis::Core::JsonObjectSupport
359
389
  end
360
390
 
391
+ class GoogleCloudChannelV1RepricingAdjustment
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
397
+ class GoogleCloudChannelV1RepricingConfig
398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
399
+
400
+ include Google::Apis::Core::JsonObjectSupport
401
+ end
402
+
403
+ class GoogleCloudChannelV1RepricingConfigChannelPartnerGranularity
404
+ class Representation < Google::Apis::Core::JsonRepresentation; end
405
+
406
+ include Google::Apis::Core::JsonObjectSupport
407
+ end
408
+
409
+ class GoogleCloudChannelV1RepricingConfigEntitlementGranularity
410
+ class Representation < Google::Apis::Core::JsonRepresentation; end
411
+
412
+ include Google::Apis::Core::JsonObjectSupport
413
+ end
414
+
361
415
  class GoogleCloudChannelV1Sku
362
416
  class Representation < Google::Apis::Core::JsonRepresentation; end
363
417
 
@@ -562,6 +616,18 @@ module Google
562
616
  include Google::Apis::Core::JsonObjectSupport
563
617
  end
564
618
 
619
+ class GoogleTypeDate
620
+ class Representation < Google::Apis::Core::JsonRepresentation; end
621
+
622
+ include Google::Apis::Core::JsonObjectSupport
623
+ end
624
+
625
+ class GoogleTypeDecimal
626
+ class Representation < Google::Apis::Core::JsonRepresentation; end
627
+
628
+ include Google::Apis::Core::JsonObjectSupport
629
+ end
630
+
565
631
  class GoogleTypeMoney
566
632
  class Representation < Google::Apis::Core::JsonRepresentation; end
567
633
 
@@ -649,6 +715,16 @@ module Google
649
715
  end
650
716
  end
651
717
 
718
+ class GoogleCloudChannelV1ChannelPartnerRepricingConfig
719
+ # @private
720
+ class Representation < Google::Apis::Core::JsonRepresentation
721
+ property :name, as: 'name'
722
+ property :repricing_config, as: 'repricingConfig', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfig, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfig::Representation
723
+
724
+ property :update_time, as: 'updateTime'
725
+ end
726
+ end
727
+
652
728
  class GoogleCloudChannelV1CheckCloudIdentityAccountsExistRequest
653
729
  # @private
654
730
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -766,6 +842,16 @@ module Google
766
842
  end
767
843
  end
768
844
 
845
+ class GoogleCloudChannelV1CustomerRepricingConfig
846
+ # @private
847
+ class Representation < Google::Apis::Core::JsonRepresentation
848
+ property :name, as: 'name'
849
+ property :repricing_config, as: 'repricingConfig', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfig, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfig::Representation
850
+
851
+ property :update_time, as: 'updateTime'
852
+ end
853
+ end
854
+
769
855
  class GoogleCloudChannelV1EduData
770
856
  # @private
771
857
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -827,6 +913,24 @@ module Google
827
913
  end
828
914
  end
829
915
 
916
+ class GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse
917
+ # @private
918
+ class Representation < Google::Apis::Core::JsonRepresentation
919
+ collection :channel_partner_repricing_configs, as: 'channelPartnerRepricingConfigs', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig::Representation
920
+
921
+ property :next_page_token, as: 'nextPageToken'
922
+ end
923
+ end
924
+
925
+ class GoogleCloudChannelV1ListCustomerRepricingConfigsResponse
926
+ # @private
927
+ class Representation < Google::Apis::Core::JsonRepresentation
928
+ collection :customer_repricing_configs, as: 'customerRepricingConfigs', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig::Representation
929
+
930
+ property :next_page_token, as: 'nextPageToken'
931
+ end
932
+ end
933
+
830
934
  class GoogleCloudChannelV1ListCustomersResponse
831
935
  # @private
832
936
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1013,6 +1117,14 @@ module Google
1013
1117
  end
1014
1118
  end
1015
1119
 
1120
+ class GoogleCloudChannelV1PercentageAdjustment
1121
+ # @private
1122
+ class Representation < Google::Apis::Core::JsonRepresentation
1123
+ property :percentage, as: 'percentage', class: Google::Apis::CloudchannelV1::GoogleTypeDecimal, decorator: Google::Apis::CloudchannelV1::GoogleTypeDecimal::Representation
1124
+
1125
+ end
1126
+ end
1127
+
1016
1128
  class GoogleCloudChannelV1Period
1017
1129
  # @private
1018
1130
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1150,6 +1262,42 @@ module Google
1150
1262
  end
1151
1263
  end
1152
1264
 
1265
+ class GoogleCloudChannelV1RepricingAdjustment
1266
+ # @private
1267
+ class Representation < Google::Apis::Core::JsonRepresentation
1268
+ property :percentage_adjustment, as: 'percentageAdjustment', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1PercentageAdjustment, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1PercentageAdjustment::Representation
1269
+
1270
+ end
1271
+ end
1272
+
1273
+ class GoogleCloudChannelV1RepricingConfig
1274
+ # @private
1275
+ class Representation < Google::Apis::Core::JsonRepresentation
1276
+ property :adjustment, as: 'adjustment', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingAdjustment, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingAdjustment::Representation
1277
+
1278
+ property :channel_partner_granularity, as: 'channelPartnerGranularity', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfigChannelPartnerGranularity, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfigChannelPartnerGranularity::Representation
1279
+
1280
+ property :effective_invoice_month, as: 'effectiveInvoiceMonth', class: Google::Apis::CloudchannelV1::GoogleTypeDate, decorator: Google::Apis::CloudchannelV1::GoogleTypeDate::Representation
1281
+
1282
+ property :entitlement_granularity, as: 'entitlementGranularity', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfigEntitlementGranularity, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1RepricingConfigEntitlementGranularity::Representation
1283
+
1284
+ property :rebilling_basis, as: 'rebillingBasis'
1285
+ end
1286
+ end
1287
+
1288
+ class GoogleCloudChannelV1RepricingConfigChannelPartnerGranularity
1289
+ # @private
1290
+ class Representation < Google::Apis::Core::JsonRepresentation
1291
+ end
1292
+ end
1293
+
1294
+ class GoogleCloudChannelV1RepricingConfigEntitlementGranularity
1295
+ # @private
1296
+ class Representation < Google::Apis::Core::JsonRepresentation
1297
+ property :entitlement, as: 'entitlement'
1298
+ end
1299
+ end
1300
+
1153
1301
  class GoogleCloudChannelV1Sku
1154
1302
  # @private
1155
1303
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1469,6 +1617,22 @@ module Google
1469
1617
  end
1470
1618
  end
1471
1619
 
1620
+ class GoogleTypeDate
1621
+ # @private
1622
+ class Representation < Google::Apis::Core::JsonRepresentation
1623
+ property :day, as: 'day'
1624
+ property :month, as: 'month'
1625
+ property :year, as: 'year'
1626
+ end
1627
+ end
1628
+
1629
+ class GoogleTypeDecimal
1630
+ # @private
1631
+ class Representation < Google::Apis::Core::JsonRepresentation
1632
+ property :value, as: 'value'
1633
+ end
1634
+ end
1635
+
1472
1636
  class GoogleTypeMoney
1473
1637
  # @private
1474
1638
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -493,6 +493,247 @@ module Google
493
493
  execute_or_queue_command(command, &block)
494
494
  end
495
495
 
496
+ # Creates a ChannelPartnerRepricingConfig. Call this method to set modifications
497
+ # for a specific ChannelPartner's bill. You can only create configs if the
498
+ # RepricingConfig.effective_invoice_month is a future month. If needed, you can
499
+ # create a config for the current month, with some restrictions. When creating a
500
+ # config for a future month, make sure there are no existing configs for that
501
+ # RepricingConfig.effective_invoice_month. The following restrictions are for
502
+ # creating configs in the current month. * This functionality is reserved for
503
+ # recovering from an erroneous config, and should not be used for regular
504
+ # business cases. * The new config will not modify exports used with other
505
+ # configs. Changes to the config may be immediate, but may take up to 24 hours. *
506
+ # There is a limit of ten configs for any ChannelPartner or RepricingConfig.
507
+ # effective_invoice_month. * The contained ChannelPartnerRepricingConfig.
508
+ # repricing_config vaule must be different from the value used in the current
509
+ # config for a ChannelPartner. Possible Error Codes: * PERMISSION_DENIED: If the
510
+ # account making the request and the account being queried are different. *
511
+ # INVALID_ARGUMENT: Missing or invalid required parameters in the request. Also
512
+ # displays if the updated config is for the current month or past months. *
513
+ # NOT_FOUND: The ChannelPartnerRepricingConfig specified does not exist or is
514
+ # not associated with the given account. * INTERNAL: Any non-user error related
515
+ # to technical issues in the backend. In this case, contact Cloud Channel
516
+ # support. Return Value: If successful, the updated
517
+ # ChannelPartnerRepricingConfig resource, otherwise returns an error.
518
+ # @param [String] parent
519
+ # Required. The resource name of the ChannelPartner that will receive the
520
+ # repricing config. Parent uses the format: accounts/`account_id`/
521
+ # channelPartnerLinks/`channel_partner_id`
522
+ # @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig] google_cloud_channel_v1_channel_partner_repricing_config_object
523
+ # @param [String] fields
524
+ # Selector specifying which fields to include in a partial response.
525
+ # @param [String] quota_user
526
+ # Available to use for quota purposes for server-side applications. Can be any
527
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
528
+ # @param [Google::Apis::RequestOptions] options
529
+ # Request-specific options
530
+ #
531
+ # @yield [result, err] Result & error if block supplied
532
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig] parsed result object
533
+ # @yieldparam err [StandardError] error object if request failed
534
+ #
535
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig]
536
+ #
537
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
538
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
539
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
540
+ def create_account_channel_partner_link_channel_partner_repricing_config(parent, google_cloud_channel_v1_channel_partner_repricing_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
541
+ command = make_simple_command(:post, 'v1/{+parent}/channelPartnerRepricingConfigs', options)
542
+ command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig::Representation
543
+ command.request_object = google_cloud_channel_v1_channel_partner_repricing_config_object
544
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig::Representation
545
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig
546
+ command.params['parent'] = parent unless parent.nil?
547
+ command.query['fields'] = fields unless fields.nil?
548
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
549
+ execute_or_queue_command(command, &block)
550
+ end
551
+
552
+ # Deletes the given ChannelPartnerRepricingConfig permanently. You can only
553
+ # delete configs if their RepricingConfig.effective_invoice_month is set to a
554
+ # date after the current month. Possible error codes: * PERMISSION_DENIED: The
555
+ # account making the request does not own this customer. * INVALID_ARGUMENT:
556
+ # Required request parameters are missing or invalid. * FAILED_PRECONDITION: The
557
+ # ChannelPartnerRepricingConfig is active or in the past. * NOT_FOUND: No
558
+ # ChannelPartnerRepricingConfig found for the name in the request.
559
+ # @param [String] name
560
+ # Required. The resource name of the channel partner repricing config rule to
561
+ # delete.
562
+ # @param [String] fields
563
+ # Selector specifying which fields to include in a partial response.
564
+ # @param [String] quota_user
565
+ # Available to use for quota purposes for server-side applications. Can be any
566
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
567
+ # @param [Google::Apis::RequestOptions] options
568
+ # Request-specific options
569
+ #
570
+ # @yield [result, err] Result & error if block supplied
571
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleProtobufEmpty] parsed result object
572
+ # @yieldparam err [StandardError] error object if request failed
573
+ #
574
+ # @return [Google::Apis::CloudchannelV1::GoogleProtobufEmpty]
575
+ #
576
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
577
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
578
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
579
+ def delete_account_channel_partner_link_channel_partner_repricing_config(name, fields: nil, quota_user: nil, options: nil, &block)
580
+ command = make_simple_command(:delete, 'v1/{+name}', options)
581
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleProtobufEmpty::Representation
582
+ command.response_class = Google::Apis::CloudchannelV1::GoogleProtobufEmpty
583
+ command.params['name'] = name unless name.nil?
584
+ command.query['fields'] = fields unless fields.nil?
585
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
586
+ execute_or_queue_command(command, &block)
587
+ end
588
+
589
+ # Gets information about how a Distributor modifies their bill before sending it
590
+ # to a ChannelPartner. Possible Error Codes: * PERMISSION_DENIED: If the account
591
+ # making the request and the account being queried are different. * NOT_FOUND:
592
+ # The ChannelPartnerRepricingConfig was not found. * INTERNAL: Any non-user
593
+ # error related to technical issues in the backend. In this case, contact Cloud
594
+ # Channel support. Return Value: If successful, the
595
+ # ChannelPartnerRepricingConfig resource, otherwise returns an error.
596
+ # @param [String] name
597
+ # Required. The resource name of the ChannelPartnerRepricingConfig Format:
598
+ # accounts/`account_id`/channelPartnerLinks/`channel_partner_id`/
599
+ # channelPartnerRepricingConfigs/`id`.
600
+ # @param [String] fields
601
+ # Selector specifying which fields to include in a partial response.
602
+ # @param [String] quota_user
603
+ # Available to use for quota purposes for server-side applications. Can be any
604
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
605
+ # @param [Google::Apis::RequestOptions] options
606
+ # Request-specific options
607
+ #
608
+ # @yield [result, err] Result & error if block supplied
609
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig] parsed result object
610
+ # @yieldparam err [StandardError] error object if request failed
611
+ #
612
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig]
613
+ #
614
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
615
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
616
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
617
+ def get_account_channel_partner_link_channel_partner_repricing_config(name, fields: nil, quota_user: nil, options: nil, &block)
618
+ command = make_simple_command(:get, 'v1/{+name}', options)
619
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig::Representation
620
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig
621
+ command.params['name'] = name unless name.nil?
622
+ command.query['fields'] = fields unless fields.nil?
623
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
624
+ execute_or_queue_command(command, &block)
625
+ end
626
+
627
+ # Lists information about how a Reseller modifies their bill before sending it
628
+ # to a ChannelPartner. Possible Error Codes: * PERMISSION_DENIED: If the account
629
+ # making the request and the account being queried are different. * NOT_FOUND:
630
+ # The ChannelPartnerRepricingConfig specified does not exist or is not
631
+ # associated with the given account. * INTERNAL: Any non-user error related to
632
+ # technical issues in the backend. In this case, contact Cloud Channel support.
633
+ # Return Value: If successful, the ChannelPartnerRepricingConfig resources. The
634
+ # data for each resource is displayed in the ascending order of: * channel
635
+ # partner ID * RepricingConfig.effective_invoice_month *
636
+ # ChannelPartnerRepricingConfig.update_time If unsuccessful, returns an error.
637
+ # @param [String] parent
638
+ # Required. The resource name of the account's ChannelPartnerLink. Parent uses
639
+ # the format: accounts/`account_id`/channelPartnerLinks/`channel_partner_id`.
640
+ # Supports accounts/`account_id`/channelPartnerLinks/- to retrieve configs for
641
+ # all channel partners.
642
+ # @param [String] filter
643
+ # Optional. A filter for [CloudChannelService.ListChannelPartnerRepricingConfigs]
644
+ # results (channel_partner_link only). You can use this filter when you support
645
+ # a BatchGet-like query. To use the filter, you must set `parent=accounts/`
646
+ # account_id`/channelPartnerLinks/-`. Example: `channel_partner_link = accounts/
647
+ # account_id/channelPartnerLinks/c1` OR `channel_partner_link = accounts/
648
+ # account_id/channelPartnerLinks/c2`.
649
+ # @param [Fixnum] page_size
650
+ # Optional. The maximum number of repricing configs to return. The service may
651
+ # return fewer than this value. If unspecified, returns a maximum of 50 rules.
652
+ # The maximum value is 100; values above 100 will be coerced to 100.
653
+ # @param [String] page_token
654
+ # Optional. A token identifying a page of results beyond the first page.
655
+ # Obtained through ListChannelPartnerRepricingConfigsResponse.next_page_token of
656
+ # the previous CloudChannelService.ListChannelPartnerRepricingConfigs call.
657
+ # @param [String] fields
658
+ # Selector specifying which fields to include in a partial response.
659
+ # @param [String] quota_user
660
+ # Available to use for quota purposes for server-side applications. Can be any
661
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
662
+ # @param [Google::Apis::RequestOptions] options
663
+ # Request-specific options
664
+ #
665
+ # @yield [result, err] Result & error if block supplied
666
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse] parsed result object
667
+ # @yieldparam err [StandardError] error object if request failed
668
+ #
669
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse]
670
+ #
671
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
672
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
673
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
674
+ def list_account_channel_partner_link_channel_partner_repricing_configs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
675
+ command = make_simple_command(:get, 'v1/{+parent}/channelPartnerRepricingConfigs', options)
676
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse::Representation
677
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse
678
+ command.params['parent'] = parent unless parent.nil?
679
+ command.query['filter'] = filter unless filter.nil?
680
+ command.query['pageSize'] = page_size unless page_size.nil?
681
+ command.query['pageToken'] = page_token unless page_token.nil?
682
+ command.query['fields'] = fields unless fields.nil?
683
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
684
+ execute_or_queue_command(command, &block)
685
+ end
686
+
687
+ # Updates a ChannelPartnerRepricingConfig. Call this method to set modifications
688
+ # for a specific ChannelPartner's bill. This method overwrites the existing
689
+ # CustomerRepricingConfig. You can only update configs if the RepricingConfig.
690
+ # effective_invoice_month is a future month. To make changes to configs for the
691
+ # current month, use CreateChannelPartnerRepricingConfig, taking note of its
692
+ # restrictions. You cannot update the RepricingConfig.effective_invoice_month.
693
+ # When updating a config in the future: * This config must already exist.
694
+ # Possible Error Codes: * PERMISSION_DENIED: If the account making the request
695
+ # and the account being queried are different. * INVALID_ARGUMENT: Missing or
696
+ # invalid required parameters in the request. Also displays if the updated
697
+ # config is for the current month or past months. * NOT_FOUND: The
698
+ # ChannelPartnerRepricingConfig specified does not exist or is not associated
699
+ # with the given account. * INTERNAL: Any non-user error related to technical
700
+ # issues in the backend. In this case, contact Cloud Channel support. Return
701
+ # Value: If successful, the updated ChannelPartnerRepricingConfig resource,
702
+ # otherwise returns an error.
703
+ # @param [String] name
704
+ # Output only. Resource name of the ChannelPartnerRepricingConfig. Format:
705
+ # accounts/`account_id`/channelPartnerLinks/`channel_partner_id`/
706
+ # channelPartnerRepricingConfigs/`id`.
707
+ # @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig] google_cloud_channel_v1_channel_partner_repricing_config_object
708
+ # @param [String] fields
709
+ # Selector specifying which fields to include in a partial response.
710
+ # @param [String] quota_user
711
+ # Available to use for quota purposes for server-side applications. Can be any
712
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
713
+ # @param [Google::Apis::RequestOptions] options
714
+ # Request-specific options
715
+ #
716
+ # @yield [result, err] Result & error if block supplied
717
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig] parsed result object
718
+ # @yieldparam err [StandardError] error object if request failed
719
+ #
720
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig]
721
+ #
722
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
723
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
724
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
725
+ def patch_account_channel_partner_link_channel_partner_repricing_config(name, google_cloud_channel_v1_channel_partner_repricing_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
726
+ command = make_simple_command(:patch, 'v1/{+name}', options)
727
+ command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig::Representation
728
+ command.request_object = google_cloud_channel_v1_channel_partner_repricing_config_object
729
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig::Representation
730
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ChannelPartnerRepricingConfig
731
+ command.params['name'] = name unless name.nil?
732
+ command.query['fields'] = fields unless fields.nil?
733
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
734
+ execute_or_queue_command(command, &block)
735
+ end
736
+
496
737
  # Creates a new Customer resource under the reseller or distributor account.
497
738
  # Possible error codes: * PERMISSION_DENIED: The reseller account making the
498
739
  # request is different from the reseller account in the API request. *
@@ -1246,6 +1487,244 @@ module Google
1246
1487
  execute_or_queue_command(command, &block)
1247
1488
  end
1248
1489
 
1490
+ # Creates a CustomerRepricingConfig. Call this method to set modifications for a
1491
+ # specific customer's bill. You can only create configs if the RepricingConfig.
1492
+ # effective_invoice_month is a future month. If needed, you can create a config
1493
+ # for the current month, with some restrictions. When creating a config for a
1494
+ # future month, make sure there are no existing configs for that RepricingConfig.
1495
+ # effective_invoice_month. The following restrictions are for creating configs
1496
+ # in the current month. * This functionality is reserved for recovering from an
1497
+ # erroneous config, and should not be used for regular business cases. * The new
1498
+ # config will not modify exports used with other configs. Changes to the config
1499
+ # may be immediate, but may take up to 24 hours. * There is a limit of ten
1500
+ # configs for any RepricingConfig.EntitlementGranularity.entitlement or
1501
+ # RepricingConfig.effective_invoice_month. * The contained
1502
+ # CustomerRepricingConfig.repricing_config vaule must be different from the
1503
+ # value used in the current config for a RepricingConfig.EntitlementGranularity.
1504
+ # entitlement. Possible Error Codes: * PERMISSION_DENIED: If the account making
1505
+ # the request and the account being queried are different. * INVALID_ARGUMENT:
1506
+ # Missing or invalid required parameters in the request. Also displays if the
1507
+ # updated config is for the current month or past months. * NOT_FOUND: The
1508
+ # CustomerRepricingConfig specified does not exist or is not associated with the
1509
+ # given account. * INTERNAL: Any non-user error related to technical issues in
1510
+ # the backend. In this case, contact Cloud Channel support. Return Value: If
1511
+ # successful, the updated CustomerRepricingConfig resource, otherwise returns an
1512
+ # error.
1513
+ # @param [String] parent
1514
+ # Required. The resource name of the customer that will receive this repricing
1515
+ # config. Parent uses the format: accounts/`account_id`/customers/`customer_id`
1516
+ # @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig] google_cloud_channel_v1_customer_repricing_config_object
1517
+ # @param [String] fields
1518
+ # Selector specifying which fields to include in a partial response.
1519
+ # @param [String] quota_user
1520
+ # Available to use for quota purposes for server-side applications. Can be any
1521
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1522
+ # @param [Google::Apis::RequestOptions] options
1523
+ # Request-specific options
1524
+ #
1525
+ # @yield [result, err] Result & error if block supplied
1526
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig] parsed result object
1527
+ # @yieldparam err [StandardError] error object if request failed
1528
+ #
1529
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig]
1530
+ #
1531
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1532
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1533
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1534
+ def create_account_customer_customer_repricing_config(parent, google_cloud_channel_v1_customer_repricing_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1535
+ command = make_simple_command(:post, 'v1/{+parent}/customerRepricingConfigs', options)
1536
+ command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig::Representation
1537
+ command.request_object = google_cloud_channel_v1_customer_repricing_config_object
1538
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig::Representation
1539
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig
1540
+ command.params['parent'] = parent unless parent.nil?
1541
+ command.query['fields'] = fields unless fields.nil?
1542
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1543
+ execute_or_queue_command(command, &block)
1544
+ end
1545
+
1546
+ # Deletes the given CustomerRepricingConfig permanently. You can only delete
1547
+ # configs if their RepricingConfig.effective_invoice_month is set to a date
1548
+ # after the current month. Possible error codes: * PERMISSION_DENIED: The
1549
+ # account making the request does not own this customer. * INVALID_ARGUMENT:
1550
+ # Required request parameters are missing or invalid. * FAILED_PRECONDITION: The
1551
+ # CustomerRepricingConfig is active or in the past. * NOT_FOUND: No
1552
+ # CustomerRepricingConfig found for the name in the request.
1553
+ # @param [String] name
1554
+ # Required. The resource name of the customer repricing config rule to delete.
1555
+ # Format: accounts/`account_id`/customers/`customer_id`/customerRepricingConfigs/
1556
+ # `id`.
1557
+ # @param [String] fields
1558
+ # Selector specifying which fields to include in a partial response.
1559
+ # @param [String] quota_user
1560
+ # Available to use for quota purposes for server-side applications. Can be any
1561
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1562
+ # @param [Google::Apis::RequestOptions] options
1563
+ # Request-specific options
1564
+ #
1565
+ # @yield [result, err] Result & error if block supplied
1566
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleProtobufEmpty] parsed result object
1567
+ # @yieldparam err [StandardError] error object if request failed
1568
+ #
1569
+ # @return [Google::Apis::CloudchannelV1::GoogleProtobufEmpty]
1570
+ #
1571
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1572
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1573
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1574
+ def delete_account_customer_customer_repricing_config(name, fields: nil, quota_user: nil, options: nil, &block)
1575
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1576
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleProtobufEmpty::Representation
1577
+ command.response_class = Google::Apis::CloudchannelV1::GoogleProtobufEmpty
1578
+ command.params['name'] = name unless name.nil?
1579
+ command.query['fields'] = fields unless fields.nil?
1580
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1581
+ execute_or_queue_command(command, &block)
1582
+ end
1583
+
1584
+ # Gets information about how a Reseller modifies their bill before sending it to
1585
+ # a Customer. Possible Error Codes: * PERMISSION_DENIED: If the account making
1586
+ # the request and the account being queried are different. * NOT_FOUND: The
1587
+ # CustomerRepricingConfig was not found. * INTERNAL: Any non-user error related
1588
+ # to technical issues in the backend. In this case, contact Cloud Channel
1589
+ # support. Return Value: If successful, the CustomerRepricingConfig resource,
1590
+ # otherwise returns an error.
1591
+ # @param [String] name
1592
+ # Required. The resource name of the CustomerRepricingConfig. Format: accounts/`
1593
+ # account_id`/customers/`customer_id`/customerRepricingConfigs/`id`.
1594
+ # @param [String] fields
1595
+ # Selector specifying which fields to include in a partial response.
1596
+ # @param [String] quota_user
1597
+ # Available to use for quota purposes for server-side applications. Can be any
1598
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1599
+ # @param [Google::Apis::RequestOptions] options
1600
+ # Request-specific options
1601
+ #
1602
+ # @yield [result, err] Result & error if block supplied
1603
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig] parsed result object
1604
+ # @yieldparam err [StandardError] error object if request failed
1605
+ #
1606
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig]
1607
+ #
1608
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1609
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1610
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1611
+ def get_account_customer_customer_repricing_config(name, fields: nil, quota_user: nil, options: nil, &block)
1612
+ command = make_simple_command(:get, 'v1/{+name}', options)
1613
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig::Representation
1614
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig
1615
+ command.params['name'] = name unless name.nil?
1616
+ command.query['fields'] = fields unless fields.nil?
1617
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1618
+ execute_or_queue_command(command, &block)
1619
+ end
1620
+
1621
+ # Lists information about how a Reseller modifies their bill before sending it
1622
+ # to a Customer. Possible Error Codes: * PERMISSION_DENIED: If the account
1623
+ # making the request and the account being queried are different. * NOT_FOUND:
1624
+ # The CustomerRepricingConfig specified does not exist or is not associated with
1625
+ # the given account. * INTERNAL: Any non-user error related to technical issues
1626
+ # in the backend. In this case, contact Cloud Channel support. Return Value: If
1627
+ # successful, the CustomerRepricingConfig resources. The data for each resource
1628
+ # is displayed in the ascending order of: * customer ID * RepricingConfig.
1629
+ # EntitlementGranularity.entitlement * RepricingConfig.effective_invoice_month *
1630
+ # CustomerRepricingConfig.update_time If unsuccessful, returns an error.
1631
+ # @param [String] parent
1632
+ # Required. The resource name of the customer. Parent uses the format: accounts/`
1633
+ # account_id`/customers/`customer_id`. Supports accounts/`account_id`/customers/-
1634
+ # to retrieve configs for all customers.
1635
+ # @param [String] filter
1636
+ # Optional. A filter for [CloudChannelService.ListCustomerRepricingConfigs]
1637
+ # results (customer only). You can use this filter when you support a BatchGet-
1638
+ # like query. To use the filter, you must set `parent=accounts/`account_id`/
1639
+ # customers/-`. Example: customer = accounts/account_id/customers/c1 OR customer
1640
+ # = accounts/account_id/customers/c2.
1641
+ # @param [Fixnum] page_size
1642
+ # Optional. The maximum number of repricing configs to return. The service may
1643
+ # return fewer than this value. If unspecified, returns a maximum of 50 rules.
1644
+ # The maximum value is 100; values above 100 will be coerced to 100.
1645
+ # @param [String] page_token
1646
+ # Optional. A token identifying a page of results beyond the first page.
1647
+ # Obtained through ListCustomerRepricingConfigsResponse.next_page_token of the
1648
+ # previous CloudChannelService.ListCustomerRepricingConfigs call.
1649
+ # @param [String] fields
1650
+ # Selector specifying which fields to include in a partial response.
1651
+ # @param [String] quota_user
1652
+ # Available to use for quota purposes for server-side applications. Can be any
1653
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1654
+ # @param [Google::Apis::RequestOptions] options
1655
+ # Request-specific options
1656
+ #
1657
+ # @yield [result, err] Result & error if block supplied
1658
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListCustomerRepricingConfigsResponse] parsed result object
1659
+ # @yieldparam err [StandardError] error object if request failed
1660
+ #
1661
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListCustomerRepricingConfigsResponse]
1662
+ #
1663
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1664
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1665
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1666
+ def list_account_customer_customer_repricing_configs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1667
+ command = make_simple_command(:get, 'v1/{+parent}/customerRepricingConfigs', options)
1668
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListCustomerRepricingConfigsResponse::Representation
1669
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListCustomerRepricingConfigsResponse
1670
+ command.params['parent'] = parent unless parent.nil?
1671
+ command.query['filter'] = filter unless filter.nil?
1672
+ command.query['pageSize'] = page_size unless page_size.nil?
1673
+ command.query['pageToken'] = page_token unless page_token.nil?
1674
+ command.query['fields'] = fields unless fields.nil?
1675
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1676
+ execute_or_queue_command(command, &block)
1677
+ end
1678
+
1679
+ # Updates a CustomerRepricingConfig. Call this method to set modifications for a
1680
+ # specific customer's bill. This method overwrites the existing
1681
+ # CustomerRepricingConfig. You can only update configs if the RepricingConfig.
1682
+ # effective_invoice_month is a future month. To make changes to configs for the
1683
+ # current month, use CreateCustomerRepricingConfig, taking note of its
1684
+ # restrictions. You cannot update the RepricingConfig.effective_invoice_month.
1685
+ # When updating a config in the future: * This config must already exist.
1686
+ # Possible Error Codes: * PERMISSION_DENIED: If the account making the request
1687
+ # and the account being queried are different. * INVALID_ARGUMENT: Missing or
1688
+ # invalid required parameters in the request. Also displays if the updated
1689
+ # config is for the current month or past months. * NOT_FOUND: The
1690
+ # CustomerRepricingConfig specified does not exist or is not associated with the
1691
+ # given account. * INTERNAL: Any non-user error related to technical issues in
1692
+ # the backend. In this case, contact Cloud Channel support. Return Value: If
1693
+ # successful, the updated CustomerRepricingConfig resource, otherwise returns an
1694
+ # error.
1695
+ # @param [String] name
1696
+ # Output only. Resource name of the CustomerRepricingConfig. Format: accounts/`
1697
+ # account_id`/customers/`customer_id`/customerRepricingConfigs/`id`.
1698
+ # @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig] google_cloud_channel_v1_customer_repricing_config_object
1699
+ # @param [String] fields
1700
+ # Selector specifying which fields to include in a partial response.
1701
+ # @param [String] quota_user
1702
+ # Available to use for quota purposes for server-side applications. Can be any
1703
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1704
+ # @param [Google::Apis::RequestOptions] options
1705
+ # Request-specific options
1706
+ #
1707
+ # @yield [result, err] Result & error if block supplied
1708
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig] parsed result object
1709
+ # @yieldparam err [StandardError] error object if request failed
1710
+ #
1711
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig]
1712
+ #
1713
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1714
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1715
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1716
+ def patch_account_customer_customer_repricing_config(name, google_cloud_channel_v1_customer_repricing_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1717
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1718
+ command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig::Representation
1719
+ command.request_object = google_cloud_channel_v1_customer_repricing_config_object
1720
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig::Representation
1721
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1CustomerRepricingConfig
1722
+ command.params['name'] = name unless name.nil?
1723
+ command.query['fields'] = fields unless fields.nil?
1724
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1725
+ execute_or_queue_command(command, &block)
1726
+ end
1727
+
1249
1728
  # Activates a previously suspended entitlement. Entitlements suspended for
1250
1729
  # pending ToS acceptance can't be activated using this method. An entitlement
1251
1730
  # activation is a long-running operation and it updates the state of the
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.18.0
4
+ version: 0.19.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: 2022-04-11 00:00:00.000000000 Z
11
+ date: 2022-05-02 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.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.19.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: []