google-apis-cloudchannel_v1 0.39.0 → 0.40.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: d28304379f0790cb14575c7f858a8d6de602c1bf5dd12857b15ff474e332b1a9
4
- data.tar.gz: a63ab259b9f7225fa1237b2aae178a36e1d3784c0a0946eb49f6eada50ad0b5a
3
+ metadata.gz: 7631e31d75178158ceebc9d4de3db4edf70b5e93160cd37069087fbe0e504e10
4
+ data.tar.gz: dbb8fc4481cb97100eccdc1f4bf00a357fbf37d60814b5e136c4b6c58a954caa
5
5
  SHA512:
6
- metadata.gz: 22c7456bc51008c0bab016e74e520f5c602f6baa94832f4f77849310979705abe74cedbd1c095a74c68c1d59a0319b7f7db8bd4145d2084edeeda8f10c9d739d
7
- data.tar.gz: dc69f67b0643c21bd2a3ab259f99f9e987a4e67a390844ca3f7d69f98bde0b9f5069e966a01917ea75a67885f15d7e72133e566a4e58064e9ab2a36d07decc02
6
+ metadata.gz: 62ffb92126b7e4a33a94658a9a2abcfcdfdaae6224eb755aba480cbfc79b2507fa498b1eaf151b9bd6ed3a1372e1b6c78fb4b6fd28148c0ba7b7167021fae853
7
+ data.tar.gz: 0f59d7ee9f65afedc2ee6817ff58a858c7fbac1342e8a398a3665f6504c14527203e279a3afb4d1ed7559d66e0fc0777820bc1b0c8c65d6e6d686be57a64bd58
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-cloudchannel_v1
2
2
 
3
+ ### v0.40.0 (2023-06-18)
4
+
5
+ * Regenerated from discovery document revision 20230613
6
+
3
7
  ### v0.39.0 (2023-05-21)
4
8
 
5
9
  * Regenerated from discovery document revision 20230516
@@ -98,6 +98,45 @@ module Google
98
98
  end
99
99
  end
100
100
 
101
+ # Represents the Billable SKU information.
102
+ class GoogleCloudChannelV1BillableSku
103
+ include Google::Apis::Core::Hashable
104
+
105
+ # Resource name of Service which contains Repricing SKU. Format: services/`
106
+ # service`. Example: "services/B7D9-FDCB-15D8".
107
+ # Corresponds to the JSON property `service`
108
+ # @return [String]
109
+ attr_accessor :service
110
+
111
+ # Unique human readable name for the Service.
112
+ # Corresponds to the JSON property `serviceDisplayName`
113
+ # @return [String]
114
+ attr_accessor :service_display_name
115
+
116
+ # Resource name of Billable SKU. Format: billableSkus/`sku`. Example:
117
+ # billableSkus/6E1B-6634-470F".
118
+ # Corresponds to the JSON property `sku`
119
+ # @return [String]
120
+ attr_accessor :sku
121
+
122
+ # Unique human readable name for the SKU.
123
+ # Corresponds to the JSON property `skuDisplayName`
124
+ # @return [String]
125
+ attr_accessor :sku_display_name
126
+
127
+ def initialize(**args)
128
+ update!(**args)
129
+ end
130
+
131
+ # Update properties of this object
132
+ def update!(**args)
133
+ @service = args[:service] if args.key?(:service)
134
+ @service_display_name = args[:service_display_name] if args.key?(:service_display_name)
135
+ @sku = args[:sku] if args.key?(:sku)
136
+ @sku_display_name = args[:sku_display_name] if args.key?(:sku_display_name)
137
+ end
138
+ end
139
+
101
140
  # Represents a billing account.
102
141
  class GoogleCloudChannelV1BillingAccount
103
142
  include Google::Apis::Core::Hashable
@@ -1703,6 +1742,58 @@ module Google
1703
1742
  end
1704
1743
  end
1705
1744
 
1745
+ # Response message for ListSkuGroupBillableSkus.
1746
+ class GoogleCloudChannelV1ListSkuGroupBillableSkusResponse
1747
+ include Google::Apis::Core::Hashable
1748
+
1749
+ # The list of billable SKUs in the requested SKU group.
1750
+ # Corresponds to the JSON property `billableSkus`
1751
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1BillableSku>]
1752
+ attr_accessor :billable_skus
1753
+
1754
+ # A token to retrieve the next page of results. Pass to ListSkuGroupBillableSkus.
1755
+ # page_token to obtain that page.
1756
+ # Corresponds to the JSON property `nextPageToken`
1757
+ # @return [String]
1758
+ attr_accessor :next_page_token
1759
+
1760
+ def initialize(**args)
1761
+ update!(**args)
1762
+ end
1763
+
1764
+ # Update properties of this object
1765
+ def update!(**args)
1766
+ @billable_skus = args[:billable_skus] if args.key?(:billable_skus)
1767
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1768
+ end
1769
+ end
1770
+
1771
+ # Response message for ListSkuGroups.
1772
+ class GoogleCloudChannelV1ListSkuGroupsResponse
1773
+ include Google::Apis::Core::Hashable
1774
+
1775
+ # A token to retrieve the next page of results. Pass to ListSkuGroups.page_token
1776
+ # to obtain that page.
1777
+ # Corresponds to the JSON property `nextPageToken`
1778
+ # @return [String]
1779
+ attr_accessor :next_page_token
1780
+
1781
+ # The list of SKU groups requested.
1782
+ # Corresponds to the JSON property `skuGroups`
1783
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1SkuGroup>]
1784
+ attr_accessor :sku_groups
1785
+
1786
+ def initialize(**args)
1787
+ update!(**args)
1788
+ end
1789
+
1790
+ # Update properties of this object
1791
+ def update!(**args)
1792
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1793
+ @sku_groups = args[:sku_groups] if args.key?(:sku_groups)
1794
+ end
1795
+ end
1796
+
1706
1797
  # Response message for ListSkus.
1707
1798
  class GoogleCloudChannelV1ListSkusResponse
1708
1799
  include Google::Apis::Core::Hashable
@@ -1765,7 +1856,7 @@ module Google
1765
1856
  include Google::Apis::Core::Hashable
1766
1857
 
1767
1858
  # Optional. The Billing Account to look up Offers for. Format: accounts/`
1768
- # account_id`/billing_accounts/`billing_account_id`. This field is only relevant
1859
+ # account_id`/billingAccounts/`billing_account_id`. This field is only relevant
1769
1860
  # for multi-currency accounts. It should be left empty for single currency
1770
1861
  # accounts.
1771
1862
  # Corresponds to the JSON property `billingAccount`
@@ -3130,6 +3221,32 @@ module Google
3130
3221
  end
3131
3222
  end
3132
3223
 
3224
+ # Represents the SKU group information.
3225
+ class GoogleCloudChannelV1SkuGroup
3226
+ include Google::Apis::Core::Hashable
3227
+
3228
+ # Unique human readable identifier for the SKU group.
3229
+ # Corresponds to the JSON property `displayName`
3230
+ # @return [String]
3231
+ attr_accessor :display_name
3232
+
3233
+ # Resource name of SKU group. Format: accounts/`account`/skuGroups/`sku_group`.
3234
+ # Example: "accounts/C01234/skuGroups/3d50fd57-3157-4577-a5a9-a219b8490041".
3235
+ # Corresponds to the JSON property `name`
3236
+ # @return [String]
3237
+ attr_accessor :name
3238
+
3239
+ def initialize(**args)
3240
+ update!(**args)
3241
+ end
3242
+
3243
+ # Update properties of this object
3244
+ def update!(**args)
3245
+ @display_name = args[:display_name] if args.key?(:display_name)
3246
+ @name = args[:name] if args.key?(:name)
3247
+ end
3248
+ end
3249
+
3133
3250
  # A condition that applies the override if a line item SKU is found in the SKU
3134
3251
  # group.
3135
3252
  class GoogleCloudChannelV1SkuGroupCondition
@@ -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.39.0"
19
+ GEM_VERSION = "0.40.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 = "20230516"
25
+ REVISION = "20230613"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,12 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class GoogleCloudChannelV1BillableSku
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class GoogleCloudChannelV1BillingAccount
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
@@ -286,6 +292,18 @@ module Google
286
292
  include Google::Apis::Core::JsonObjectSupport
287
293
  end
288
294
 
295
+ class GoogleCloudChannelV1ListSkuGroupBillableSkusResponse
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class GoogleCloudChannelV1ListSkuGroupsResponse
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
289
307
  class GoogleCloudChannelV1ListSkusResponse
290
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
291
309
 
@@ -538,6 +556,12 @@ module Google
538
556
  include Google::Apis::Core::JsonObjectSupport
539
557
  end
540
558
 
559
+ class GoogleCloudChannelV1SkuGroup
560
+ class Representation < Google::Apis::Core::JsonRepresentation; end
561
+
562
+ include Google::Apis::Core::JsonObjectSupport
563
+ end
564
+
541
565
  class GoogleCloudChannelV1SkuGroupCondition
542
566
  class Representation < Google::Apis::Core::JsonRepresentation; end
543
567
 
@@ -855,6 +879,16 @@ module Google
855
879
  end
856
880
  end
857
881
 
882
+ class GoogleCloudChannelV1BillableSku
883
+ # @private
884
+ class Representation < Google::Apis::Core::JsonRepresentation
885
+ property :service, as: 'service'
886
+ property :service_display_name, as: 'serviceDisplayName'
887
+ property :sku, as: 'sku'
888
+ property :sku_display_name, as: 'skuDisplayName'
889
+ end
890
+ end
891
+
858
892
  class GoogleCloudChannelV1BillingAccount
859
893
  # @private
860
894
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1291,6 +1325,24 @@ module Google
1291
1325
  end
1292
1326
  end
1293
1327
 
1328
+ class GoogleCloudChannelV1ListSkuGroupBillableSkusResponse
1329
+ # @private
1330
+ class Representation < Google::Apis::Core::JsonRepresentation
1331
+ collection :billable_skus, as: 'billableSkus', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1BillableSku, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1BillableSku::Representation
1332
+
1333
+ property :next_page_token, as: 'nextPageToken'
1334
+ end
1335
+ end
1336
+
1337
+ class GoogleCloudChannelV1ListSkuGroupsResponse
1338
+ # @private
1339
+ class Representation < Google::Apis::Core::JsonRepresentation
1340
+ property :next_page_token, as: 'nextPageToken'
1341
+ collection :sku_groups, as: 'skuGroups', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1SkuGroup, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1SkuGroup::Representation
1342
+
1343
+ end
1344
+ end
1345
+
1294
1346
  class GoogleCloudChannelV1ListSkusResponse
1295
1347
  # @private
1296
1348
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1722,6 +1774,14 @@ module Google
1722
1774
  end
1723
1775
  end
1724
1776
 
1777
+ class GoogleCloudChannelV1SkuGroup
1778
+ # @private
1779
+ class Representation < Google::Apis::Core::JsonRepresentation
1780
+ property :display_name, as: 'displayName'
1781
+ property :name, as: 'name'
1782
+ end
1783
+ end
1784
+
1725
1785
  class GoogleCloudChannelV1SkuGroupCondition
1726
1786
  # @private
1727
1787
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1191,8 +1191,8 @@ module Google
1191
1191
  # @param [String] change_offer_purchase_billing_account
1192
1192
  # Optional. Resource name of the new target Billing Account. Provide this
1193
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
1194
+ # accounts/`account_id`/billingAccounts/`billing_account_id`. This field is only
1195
+ # relevant for multi-currency accounts. It should be left empty for single
1196
1196
  # currency accounts.
1197
1197
  # @param [String] change_offer_purchase_entitlement
1198
1198
  # Required. Resource name of the entitlement. Format: accounts/`account_id`/
@@ -1202,7 +1202,7 @@ module Google
1202
1202
  # or downgrading an entitlement. Format: products/`product_id`/skus/`sku_id`
1203
1203
  # @param [String] create_entitlement_purchase_billing_account
1204
1204
  # Optional. Billing account that the result should be restricted to. Format:
1205
- # accounts/`account_id`/billing_accounts/`billing_account_id`.
1205
+ # accounts/`account_id`/billingAccounts/`billing_account_id`.
1206
1206
  # @param [String] create_entitlement_purchase_sku
1207
1207
  # Required. SKU that the result should be restricted to. Format: products/`
1208
1208
  # product_id`/skus/`sku_id`.
@@ -2513,6 +2513,104 @@ module Google
2513
2513
  execute_or_queue_command(command, &block)
2514
2514
  end
2515
2515
 
2516
+ # Lists the Rebilling supported SKU groups the account is authorized to sell.
2517
+ # Reference: https://cloud.google.com/skus/sku-groups Possible Error Codes: *
2518
+ # PERMISSION_DENIED: If the account making the request and the account being
2519
+ # queried are different, or the account doesn't exist. * INTERNAL: Any non-user
2520
+ # error related to technical issues in the backend. In this case, contact Cloud
2521
+ # Channel support. Return Value: If successful, the SkuGroup resources. The data
2522
+ # for each resource is displayed in the alphabetical order of SKU group display
2523
+ # name. The data for each resource is displayed in the ascending order of
2524
+ # SkuGroup.display_name If unsuccessful, returns an error.
2525
+ # @param [String] parent
2526
+ # Required. The resource name of the account from which to list SKU groups.
2527
+ # Parent uses the format: accounts/`account`.
2528
+ # @param [Fixnum] page_size
2529
+ # Optional. The maximum number of SKU groups to return. The service may return
2530
+ # fewer than this value. If unspecified, returns a maximum of 1000 SKU groups.
2531
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
2532
+ # @param [String] page_token
2533
+ # Optional. A token identifying a page of results beyond the first page.
2534
+ # Obtained through ListSkuGroups.next_page_token of the previous
2535
+ # CloudChannelService.ListSkuGroups call.
2536
+ # @param [String] fields
2537
+ # Selector specifying which fields to include in a partial response.
2538
+ # @param [String] quota_user
2539
+ # Available to use for quota purposes for server-side applications. Can be any
2540
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2541
+ # @param [Google::Apis::RequestOptions] options
2542
+ # Request-specific options
2543
+ #
2544
+ # @yield [result, err] Result & error if block supplied
2545
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSkuGroupsResponse] parsed result object
2546
+ # @yieldparam err [StandardError] error object if request failed
2547
+ #
2548
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSkuGroupsResponse]
2549
+ #
2550
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2551
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2552
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2553
+ def list_account_sku_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2554
+ command = make_simple_command(:get, 'v1/{+parent}/skuGroups', options)
2555
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSkuGroupsResponse::Representation
2556
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSkuGroupsResponse
2557
+ command.params['parent'] = parent unless parent.nil?
2558
+ command.query['pageSize'] = page_size unless page_size.nil?
2559
+ command.query['pageToken'] = page_token unless page_token.nil?
2560
+ command.query['fields'] = fields unless fields.nil?
2561
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2562
+ execute_or_queue_command(command, &block)
2563
+ end
2564
+
2565
+ # Lists the Billable SKUs in a given SKU group. Possible error codes:
2566
+ # PERMISSION_DENIED: If the account making the request and the account being
2567
+ # queried for are different, or the account doesn't exist. INVALID_ARGUMENT:
2568
+ # Missing or invalid required parameters in the request. INTERNAL: Any non-user
2569
+ # error related to technical issue in the backend. In this case, contact cloud
2570
+ # channel support. Return Value: If successful, the BillableSku resources. The
2571
+ # data for each resource is displayed in the ascending order of: * BillableSku.
2572
+ # service_display_name * BillableSku.sku_display_name If unsuccessful, returns
2573
+ # an error.
2574
+ # @param [String] parent
2575
+ # Required. Resource name of the SKU group. Format: accounts/`account`/skuGroups/
2576
+ # `sku_group`.
2577
+ # @param [Fixnum] page_size
2578
+ # Optional. The maximum number of SKUs to return. The service may return fewer
2579
+ # than this value. If unspecified, returns a maximum of 100000 SKUs. The maximum
2580
+ # value is 100000; values above 100000 will be coerced to 100000.
2581
+ # @param [String] page_token
2582
+ # Optional. A token identifying a page of results beyond the first page.
2583
+ # Obtained through ListSkuGroupBillableSkus.next_page_token of the previous
2584
+ # CloudChannelService.ListSkuGroupBillableSkus call.
2585
+ # @param [String] fields
2586
+ # Selector specifying which fields to include in a partial response.
2587
+ # @param [String] quota_user
2588
+ # Available to use for quota purposes for server-side applications. Can be any
2589
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2590
+ # @param [Google::Apis::RequestOptions] options
2591
+ # Request-specific options
2592
+ #
2593
+ # @yield [result, err] Result & error if block supplied
2594
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSkuGroupBillableSkusResponse] parsed result object
2595
+ # @yieldparam err [StandardError] error object if request failed
2596
+ #
2597
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSkuGroupBillableSkusResponse]
2598
+ #
2599
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2600
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2601
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2602
+ def list_account_sku_group_billable_skus(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2603
+ command = make_simple_command(:get, 'v1/{+parent}/billableSkus', options)
2604
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSkuGroupBillableSkusResponse::Representation
2605
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListSkuGroupBillableSkusResponse
2606
+ command.params['parent'] = parent unless parent.nil?
2607
+ command.query['pageSize'] = page_size unless page_size.nil?
2608
+ command.query['pageToken'] = page_token unless page_token.nil?
2609
+ command.query['fields'] = fields unless fields.nil?
2610
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2611
+ execute_or_queue_command(command, &block)
2612
+ end
2613
+
2516
2614
  # Starts asynchronous cancellation on a long-running operation. The server makes
2517
2615
  # a best effort to cancel the operation, but success is not guaranteed. If the
2518
2616
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
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.39.0
4
+ version: 0.40.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-05-21 00:00:00.000000000 Z
11
+ date: 2023-06-25 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.39.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.40.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: []