google-cloud-channel-v1 0.21.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/channel/v1/billing_accounts_pb.rb +47 -0
  3. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/client.rb +10 -1
  4. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/operations.rb +10 -1
  5. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/client.rb +63 -0
  6. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/operations.rb +75 -0
  7. data/lib/google/cloud/channel/v1/cloud_channel_service/client.rb +165 -15
  8. data/lib/google/cloud/channel/v1/cloud_channel_service/operations.rb +10 -1
  9. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/client.rb +1053 -14
  10. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/operations.rb +75 -0
  11. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/service_stub.rb +59 -0
  12. data/lib/google/cloud/channel/v1/entitlements_pb.rb +1 -1
  13. data/lib/google/cloud/channel/v1/offers_pb.rb +1 -1
  14. data/lib/google/cloud/channel/v1/repricing_pb.rb +1 -1
  15. data/lib/google/cloud/channel/v1/service_pb.rb +7 -1
  16. data/lib/google/cloud/channel/v1/service_services_pb.rb +47 -12
  17. data/lib/google/cloud/channel/v1/version.rb +1 -1
  18. data/proto_docs/google/api/field_behavior.rb +14 -0
  19. data/proto_docs/google/cloud/channel/v1/billing_accounts.rb +48 -0
  20. data/proto_docs/google/cloud/channel/v1/customers.rb +3 -3
  21. data/proto_docs/google/cloud/channel/v1/entitlements.rb +5 -1
  22. data/proto_docs/google/cloud/channel/v1/offers.rb +3 -0
  23. data/proto_docs/google/cloud/channel/v1/repricing.rb +22 -3
  24. data/proto_docs/google/cloud/channel/v1/service.rb +75 -0
  25. metadata +7 -5
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Channel
23
+ module V1
24
+ # Represents a billing account.
25
+ # @!attribute [r] name
26
+ # @return [::String]
27
+ # Output only. Resource name of the billing account.
28
+ # Format: accounts/\\{account_id}/billingAccounts/\\{billing_account_id}.
29
+ # @!attribute [rw] display_name
30
+ # @return [::String]
31
+ # Display name of the billing account.
32
+ # @!attribute [r] create_time
33
+ # @return [::Google::Protobuf::Timestamp]
34
+ # Output only. The time when this billing account was created.
35
+ # @!attribute [r] currency_code
36
+ # @return [::String]
37
+ # Output only. The 3-letter currency code defined in ISO 4217.
38
+ # @!attribute [r] region_code
39
+ # @return [::String]
40
+ # Output only. The CLDR region code.
41
+ class BillingAccount
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -32,9 +32,9 @@ module Google
32
32
  # @!attribute [rw] org_postal_address
33
33
  # @return [::Google::Type::PostalAddress]
34
34
  # Required. The organization address for the customer. To enforce US laws and
35
- # embargoes, we require a region and zip code. You must provide valid
36
- # addresses for every customer. To set the customer's language, use the
37
- # Customer-level language code.
35
+ # embargoes, we require a region, postal code, and address lines. You must
36
+ # provide valid addresses for every customer. To set the customer's
37
+ # language, use the Customer-level language code.
38
38
  # @!attribute [rw] primary_contact_info
39
39
  # @return [::Google::Cloud::Channel::V1::ContactInfo]
40
40
  # Primary contact info.
@@ -161,7 +161,7 @@ module Google
161
161
  # @return [::String]
162
162
  # Output only. Provisioning ID of the entitlement. For Google Workspace, this
163
163
  # is the underlying Subscription ID. For Google Cloud, this is the Billing
164
- # Account ID of the billing subaccount."
164
+ # Account ID of the billing subaccount.
165
165
  # @!attribute [r] product_id
166
166
  # @return [::String]
167
167
  # Output only. The product pertaining to the provisioning resource as
@@ -272,6 +272,10 @@ module Google
272
272
 
273
273
  # SKU subscription is suspended
274
274
  SKU_SUSPENDED = 3
275
+
276
+ # The reseller is not authorized to transact on this Product. See
277
+ # https://support.google.com/channelservices/answer/9759265
278
+ CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU = 4
275
279
  end
276
280
  end
277
281
  end
@@ -104,6 +104,9 @@ module Google
104
104
 
105
105
  # Double type.
106
106
  DOUBLE = 3
107
+
108
+ # Boolean type.
109
+ BOOLEAN = 4
107
110
  end
108
111
  end
109
112
 
@@ -67,12 +67,28 @@ module Google
67
67
  # Configuration for repricing a Google bill over a period of time.
68
68
  # @!attribute [rw] entitlement_granularity
69
69
  # @return [::Google::Cloud::Channel::V1::RepricingConfig::EntitlementGranularity]
70
- # Applies the repricing configuration at the entitlement level. This is
71
- # the only supported value for CustomerRepricingConfig.
70
+ # Applies the repricing configuration at the entitlement level.
71
+ #
72
+ # Note: If a
73
+ # {::Google::Cloud::Channel::V1::ChannelPartnerRepricingConfig ChannelPartnerRepricingConfig}
74
+ # using
75
+ # {::Google::Cloud::Channel::V1::RepricingConfig::EntitlementGranularity RepricingConfig.EntitlementGranularity}
76
+ # becomes effective, then no existing or future
77
+ # {::Google::Cloud::Channel::V1::RepricingConfig::ChannelPartnerGranularity RepricingConfig.ChannelPartnerGranularity}
78
+ # will apply to the
79
+ # {::Google::Cloud::Channel::V1::RepricingConfig::EntitlementGranularity#entitlement RepricingConfig.EntitlementGranularity.entitlement}.
80
+ # This is the recommended value for both
81
+ # {::Google::Cloud::Channel::V1::CustomerRepricingConfig CustomerRepricingConfig}
82
+ # and
83
+ # {::Google::Cloud::Channel::V1::ChannelPartnerRepricingConfig ChannelPartnerRepricingConfig}.
72
84
  # @!attribute [rw] channel_partner_granularity
73
85
  # @return [::Google::Cloud::Channel::V1::RepricingConfig::ChannelPartnerGranularity]
74
86
  # Applies the repricing configuration at the channel partner level.
75
- # This is the only supported value for ChannelPartnerRepricingConfig.
87
+ # Only
88
+ # {::Google::Cloud::Channel::V1::ChannelPartnerRepricingConfig ChannelPartnerRepricingConfig}
89
+ # supports this value. Deprecated: This is no longer supported. Use
90
+ # {::Google::Cloud::Channel::V1::RepricingConfig#entitlement_granularity RepricingConfig.entitlement_granularity}
91
+ # instead.
76
92
  # @!attribute [rw] effective_invoice_month
77
93
  # @return [::Google::Type::Date]
78
94
  # Required. The YearMonth when these adjustments activate. The Day field
@@ -108,6 +124,9 @@ module Google
108
124
  # Applies the repricing configuration at the channel partner level.
109
125
  # The channel partner value is derived from the resource name. Takes an
110
126
  # empty json object.
127
+ # Deprecated: This is no longer supported. Use
128
+ # {::Google::Cloud::Channel::V1::RepricingConfig::EntitlementGranularity RepricingConfig.EntitlementGranularity}
129
+ # instead.
111
130
  class ChannelPartnerGranularity
112
131
  include ::Google::Protobuf::MessageExts
113
132
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -359,6 +359,13 @@ module Google
359
359
  # Optional. The BCP-47 language code. For example, "en-US". The
360
360
  # response will localize in the corresponding language code, if specified.
361
361
  # The default value is "en-US".
362
+ # @!attribute [rw] billing_account
363
+ # @return [::String]
364
+ # Optional. The Billing Account to look up Offers for. Format:
365
+ # accounts/\\{account_id}/billingAccounts/\\{billing_account_id}.
366
+ #
367
+ # This field is only relevant for multi-currency accounts. It should be left
368
+ # empty for single currency accounts.
362
369
  class ListTransferableOffersRequest
363
370
  include ::Google::Protobuf::MessageExts
364
371
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1016,6 +1023,13 @@ module Google
1016
1023
  # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
1017
1024
  # with the exception that zero UUID is not supported
1018
1025
  # (`00000000-0000-0000-0000-000000000000`).
1026
+ # @!attribute [rw] billing_account
1027
+ # @return [::String]
1028
+ # Optional. The billing account resource name that is used to pay for this
1029
+ # entitlement when setting up billing on a trial subscription.
1030
+ #
1031
+ # This field is only relevant for multi-currency accounts. It should be
1032
+ # left empty for single currency accounts.
1019
1033
  class ChangeOfferRequest
1020
1034
  include ::Google::Protobuf::MessageExts
1021
1035
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1384,6 +1398,10 @@ module Google
1384
1398
  # @return [::String]
1385
1399
  # Required. SKU that the result should be restricted to.
1386
1400
  # Format: products/\\{product_id}/skus/\\{sku_id}.
1401
+ # @!attribute [rw] billing_account
1402
+ # @return [::String]
1403
+ # Optional. Billing account that the result should be restricted to.
1404
+ # Format: accounts/\\{account_id}/billingAccounts/\\{billing_account_id}.
1387
1405
  class CreateEntitlementPurchase
1388
1406
  include ::Google::Protobuf::MessageExts
1389
1407
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1400,6 +1418,14 @@ module Google
1400
1418
  # Optional. Resource name of the new target SKU. Provide this SKU when
1401
1419
  # upgrading or downgrading an entitlement. Format:
1402
1420
  # products/\\{product_id}/skus/\\{sku_id}
1421
+ # @!attribute [rw] billing_account
1422
+ # @return [::String]
1423
+ # Optional. Resource name of the new target Billing Account. Provide this
1424
+ # Billing Account when setting up billing for a trial subscription. Format:
1425
+ # accounts/\\{account_id}/billingAccounts/\\{billing_account_id}.
1426
+ #
1427
+ # This field is only relevant for multi-currency accounts. It should be
1428
+ # left empty for single currency accounts.
1403
1429
  class ChangeOfferPurchase
1404
1430
  include ::Google::Protobuf::MessageExts
1405
1431
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1428,6 +1454,55 @@ module Google
1428
1454
  extend ::Google::Protobuf::MessageExts::ClassMethods
1429
1455
  end
1430
1456
 
1457
+ # Request message for QueryEligibleBillingAccounts.
1458
+ # @!attribute [rw] customer
1459
+ # @return [::String]
1460
+ # Required. The resource name of the customer to list eligible billing
1461
+ # accounts for. Format: accounts/\\{account_id}/customers/\\{customer_id}.
1462
+ # @!attribute [rw] skus
1463
+ # @return [::Array<::String>]
1464
+ # Required. List of SKUs to list eligible billing accounts for. At least one
1465
+ # SKU is required. Format: products/\\{product_id}/skus/\\{sku_id}.
1466
+ class QueryEligibleBillingAccountsRequest
1467
+ include ::Google::Protobuf::MessageExts
1468
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1469
+ end
1470
+
1471
+ # Response message for QueryEligibleBillingAccounts.
1472
+ # @!attribute [rw] sku_purchase_groups
1473
+ # @return [::Array<::Google::Cloud::Channel::V1::SkuPurchaseGroup>]
1474
+ # List of SKU purchase groups where each group represents a set of SKUs that
1475
+ # must be purchased using the same billing account. Each SKU from
1476
+ # [QueryEligibleBillingAccountsRequest.skus] will appear in exactly one SKU
1477
+ # group.
1478
+ class QueryEligibleBillingAccountsResponse
1479
+ include ::Google::Protobuf::MessageExts
1480
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1481
+ end
1482
+
1483
+ # Represents a set of SKUs that must be purchased using the same billing
1484
+ # account.
1485
+ # @!attribute [rw] skus
1486
+ # @return [::Array<::String>]
1487
+ # Resource names of the SKUs included in this group.
1488
+ # Format: products/\\{product_id}/skus/\\{sku_id}.
1489
+ # @!attribute [rw] billing_account_purchase_infos
1490
+ # @return [::Array<::Google::Cloud::Channel::V1::BillingAccountPurchaseInfo>]
1491
+ # List of billing accounts that are eligible to purhcase these SKUs.
1492
+ class SkuPurchaseGroup
1493
+ include ::Google::Protobuf::MessageExts
1494
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1495
+ end
1496
+
1497
+ # Represents a billing account that can be used to make a purchase.
1498
+ # @!attribute [rw] billing_account
1499
+ # @return [::Google::Cloud::Channel::V1::BillingAccount]
1500
+ # The billing account resource.
1501
+ class BillingAccountPurchaseInfo
1502
+ include ::Google::Protobuf::MessageExts
1503
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1504
+ end
1505
+
1431
1506
  # Request Message for RegisterSubscriber.
1432
1507
  # @!attribute [rw] account
1433
1508
  # @return [::String]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-channel-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.22.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-06-16 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -173,6 +173,7 @@ files:
173
173
  - README.md
174
174
  - lib/google-cloud-channel-v1.rb
175
175
  - lib/google/cloud/channel/v1.rb
176
+ - lib/google/cloud/channel/v1/billing_accounts_pb.rb
176
177
  - lib/google/cloud/channel/v1/channel_partner_links_pb.rb
177
178
  - lib/google/cloud/channel/v1/cloud_channel_reports_service.rb
178
179
  - lib/google/cloud/channel/v1/cloud_channel_reports_service/client.rb
@@ -212,6 +213,7 @@ files:
212
213
  - proto_docs/google/api/field_behavior.rb
213
214
  - proto_docs/google/api/launch_stage.rb
214
215
  - proto_docs/google/api/resource.rb
216
+ - proto_docs/google/cloud/channel/v1/billing_accounts.rb
215
217
  - proto_docs/google/cloud/channel/v1/channel_partner_links.rb
216
218
  - proto_docs/google/cloud/channel/v1/common.rb
217
219
  - proto_docs/google/cloud/channel/v1/customers.rb
@@ -255,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
257
  - !ruby/object:Gem::Version
256
258
  version: '0'
257
259
  requirements: []
258
- rubygems_version: 3.4.2
260
+ rubygems_version: 3.4.19
259
261
  signing_key:
260
262
  specification_version: 4
261
263
  summary: The Cloud Channel API enables Google Cloud partners to have a single unified