google-cloud-channel-v1 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +75 -0
  6. data/lib/google-cloud-channel-v1.rb +21 -0
  7. data/lib/google/cloud/channel/v1.rb +38 -0
  8. data/lib/google/cloud/channel/v1/channel_partner_links_pb.rb +47 -0
  9. data/lib/google/cloud/channel/v1/cloud_channel_service.rb +70 -0
  10. data/lib/google/cloud/channel/v1/cloud_channel_service/client.rb +3498 -0
  11. data/lib/google/cloud/channel/v1/cloud_channel_service/credentials.rb +51 -0
  12. data/lib/google/cloud/channel/v1/cloud_channel_service/operations.rb +570 -0
  13. data/lib/google/cloud/channel/v1/cloud_channel_service/paths.rb +100 -0
  14. data/lib/google/cloud/channel/v1/common_pb.rb +76 -0
  15. data/lib/google/cloud/channel/v1/customers_pb.rb +48 -0
  16. data/lib/google/cloud/channel/v1/entitlements_pb.rb +110 -0
  17. data/lib/google/cloud/channel/v1/offers_pb.rb +142 -0
  18. data/lib/google/cloud/channel/v1/operations_pb.rb +38 -0
  19. data/lib/google/cloud/channel/v1/products_pb.rb +48 -0
  20. data/lib/google/cloud/channel/v1/service_pb.rb +331 -0
  21. data/lib/google/cloud/channel/v1/service_services_pb.rb +680 -0
  22. data/lib/google/cloud/channel/v1/version.rb +28 -0
  23. data/proto_docs/README.md +4 -0
  24. data/proto_docs/google/api/field_behavior.rb +59 -0
  25. data/proto_docs/google/api/resource.rb +283 -0
  26. data/proto_docs/google/cloud/channel/v1/channel_partner_links.rb +92 -0
  27. data/proto_docs/google/cloud/channel/v1/common.rb +155 -0
  28. data/proto_docs/google/cloud/channel/v1/customers.rb +111 -0
  29. data/proto_docs/google/cloud/channel/v1/entitlements.rb +255 -0
  30. data/proto_docs/google/cloud/channel/v1/offers.rb +344 -0
  31. data/proto_docs/google/cloud/channel/v1/operations.rb +74 -0
  32. data/proto_docs/google/cloud/channel/v1/products.rb +98 -0
  33. data/proto_docs/google/cloud/channel/v1/service.rb +1013 -0
  34. data/proto_docs/google/longrunning/operations.rb +150 -0
  35. data/proto_docs/google/protobuf/any.rb +138 -0
  36. data/proto_docs/google/protobuf/empty.rb +36 -0
  37. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  38. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  39. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  40. data/proto_docs/google/rpc/status.rb +46 -0
  41. data/proto_docs/google/type/money.rb +43 -0
  42. data/proto_docs/google/type/postal_address.rb +135 -0
  43. metadata +225 -0
@@ -0,0 +1,1013 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#check_cloud_identity_accounts_exist CloudChannelService.CheckCloudIdentityAccountsExist}.
25
+ # @!attribute [rw] parent
26
+ # @return [::String]
27
+ # Required. The resource name of the reseller account.
28
+ # The parent takes the format: accounts/\\{account_id}
29
+ # @!attribute [rw] domain
30
+ # @return [::String]
31
+ # Required. Domain for which the Cloud Identity account customer is fetched.
32
+ class CheckCloudIdentityAccountsExistRequest
33
+ include ::Google::Protobuf::MessageExts
34
+ extend ::Google::Protobuf::MessageExts::ClassMethods
35
+ end
36
+
37
+ # Entity representing a Cloud Identity account which may or may not be
38
+ # associated with a Channel Services API partner.
39
+ # @!attribute [rw] existing
40
+ # @return [::Boolean]
41
+ # True if a Cloud Identity account exists for a specific domain.
42
+ # @!attribute [rw] owned
43
+ # @return [::Boolean]
44
+ # True if the Cloud Identity account is associated with a customer
45
+ # belonging to the Channel Services partner making the API call.
46
+ # @!attribute [rw] customer_name
47
+ # @return [::String]
48
+ # Name of the customer that owns the Cloud Identity account. This field is
49
+ # populated ONLY if owned = true.
50
+ # The customer_name takes the format:
51
+ # accounts/\\{account_id}/customers/\\{customer_id}
52
+ # @!attribute [rw] customer_cloud_identity_id
53
+ # @return [::String]
54
+ # Cloud Identity ID of the customer. This field is populated ONLY if
55
+ # existing = true.
56
+ class CloudIdentityCustomerAccount
57
+ include ::Google::Protobuf::MessageExts
58
+ extend ::Google::Protobuf::MessageExts::ClassMethods
59
+ end
60
+
61
+ # Response message for
62
+ # {::Google::Cloud::Channel::V1::CloudChannelService::Client#check_cloud_identity_accounts_exist CloudChannelService.CheckCloudIdentityAccountsExist}.
63
+ # @!attribute [rw] cloud_identity_accounts
64
+ # @return [::Array<::Google::Cloud::Channel::V1::CloudIdentityCustomerAccount>]
65
+ # The Cloud Identity accounts associated with the domain.
66
+ class CheckCloudIdentityAccountsExistResponse
67
+ include ::Google::Protobuf::MessageExts
68
+ extend ::Google::Protobuf::MessageExts::ClassMethods
69
+ end
70
+
71
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_customers CloudChannelService.ListCustomers}
72
+ # @!attribute [rw] parent
73
+ # @return [::String]
74
+ # Required. The resource name of the reseller account from which to list customers.
75
+ # The parent takes the format: accounts/\\{account_id}.
76
+ # @!attribute [rw] page_size
77
+ # @return [::Integer]
78
+ # Optional. The maximum number of customers to return. The service may return fewer
79
+ # than this value. If unspecified, at most 10 customers will be returned. The
80
+ # maximum value is 50; values about 50 will be coerced to 50.
81
+ # @!attribute [rw] page_token
82
+ # @return [::String]
83
+ # Optional. A token identifying a page of results, if other than the first one.
84
+ # Typically obtained via
85
+ # {::Google::Cloud::Channel::V1::ListCustomersResponse#next_page_token ListCustomersResponse.next_page_token} of the previous
86
+ # {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_customers CloudChannelService.ListCustomers} call.
87
+ class ListCustomersRequest
88
+ include ::Google::Protobuf::MessageExts
89
+ extend ::Google::Protobuf::MessageExts::ClassMethods
90
+ end
91
+
92
+ # Response message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_customers CloudChannelService.ListCustomers}.
93
+ # @!attribute [rw] customers
94
+ # @return [::Array<::Google::Cloud::Channel::V1::Customer>]
95
+ # The customers belonging to the reseller or distributor.
96
+ # @!attribute [rw] next_page_token
97
+ # @return [::String]
98
+ # A token to retrieve the next page of results.
99
+ # Pass to {::Google::Cloud::Channel::V1::ListCustomersRequest#page_token ListCustomersRequest.page_token} to obtain that page.
100
+ class ListCustomersResponse
101
+ include ::Google::Protobuf::MessageExts
102
+ extend ::Google::Protobuf::MessageExts::ClassMethods
103
+ end
104
+
105
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#get_customer CloudChannelService.GetCustomer}.
106
+ # @!attribute [rw] name
107
+ # @return [::String]
108
+ # Required. The resource name of the customer to retrieve.
109
+ # The name takes the format: accounts/\\{account_id}/customers/\\{customer_id}
110
+ class GetCustomerRequest
111
+ include ::Google::Protobuf::MessageExts
112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
113
+ end
114
+
115
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#create_customer CloudChannelService.CreateCustomer}
116
+ # @!attribute [rw] parent
117
+ # @return [::String]
118
+ # Required. The resource name of reseller account in which to create the customer.
119
+ # The parent takes the format: accounts/\\{account_id}
120
+ # @!attribute [rw] customer
121
+ # @return [::Google::Cloud::Channel::V1::Customer]
122
+ # Required. The customer to create.
123
+ class CreateCustomerRequest
124
+ include ::Google::Protobuf::MessageExts
125
+ extend ::Google::Protobuf::MessageExts::ClassMethods
126
+ end
127
+
128
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#update_customer CloudChannelService.UpdateCustomer}.
129
+ # @!attribute [rw] customer
130
+ # @return [::Google::Cloud::Channel::V1::Customer]
131
+ # Required. New contents of the customer.
132
+ # @!attribute [rw] update_mask
133
+ # @return [::Google::Protobuf::FieldMask]
134
+ # The update mask that applies to the resource.
135
+ # Optional.
136
+ class UpdateCustomerRequest
137
+ include ::Google::Protobuf::MessageExts
138
+ extend ::Google::Protobuf::MessageExts::ClassMethods
139
+ end
140
+
141
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#delete_customer CloudChannelService.DeleteCustomer}.
142
+ # @!attribute [rw] name
143
+ # @return [::String]
144
+ # Required. The resource name of the customer to delete.
145
+ class DeleteCustomerRequest
146
+ include ::Google::Protobuf::MessageExts
147
+ extend ::Google::Protobuf::MessageExts::ClassMethods
148
+ end
149
+
150
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#provision_cloud_identity CloudChannelService.ProvisionCloudIdentity}
151
+ # @!attribute [rw] customer
152
+ # @return [::String]
153
+ # Required. Resource name of the customer.
154
+ # Format: accounts/\\{account_id}/customers/\\{customer_id}
155
+ # @!attribute [rw] cloud_identity_info
156
+ # @return [::Google::Cloud::Channel::V1::CloudIdentityInfo]
157
+ # CloudIdentity-specific customer information.
158
+ # @!attribute [rw] user
159
+ # @return [::Google::Cloud::Channel::V1::AdminUser]
160
+ # Admin user information.
161
+ # @!attribute [rw] validate_only
162
+ # @return [::Boolean]
163
+ # If set, validate the request and preview the review, but do not actually
164
+ # post it.
165
+ class ProvisionCloudIdentityRequest
166
+ include ::Google::Protobuf::MessageExts
167
+ extend ::Google::Protobuf::MessageExts::ClassMethods
168
+ end
169
+
170
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_entitlements CloudChannelService.ListEntitlements}
171
+ # @!attribute [rw] parent
172
+ # @return [::String]
173
+ # Required. The resource name of the reseller's customer account for which to list
174
+ # entitlements.
175
+ # The parent takes the format: accounts/\\{account_id}/customers/\\{customer_id}
176
+ # @!attribute [rw] page_size
177
+ # @return [::Integer]
178
+ # Optional. Requested page size. Server might return fewer results than requested.
179
+ # If unspecified, at most 50 entitlements will be returned.
180
+ # The maximum value is 100; values above 100 will be coerced to 100.
181
+ # @!attribute [rw] page_token
182
+ # @return [::String]
183
+ # Optional. A token identifying a page of results, if other than the first one.
184
+ # Typically obtained via
185
+ # {::Google::Cloud::Channel::V1::ListEntitlementsResponse#next_page_token ListEntitlementsResponse.next_page_token} of the previous
186
+ # {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_entitlements CloudChannelService.ListEntitlements} call.
187
+ class ListEntitlementsRequest
188
+ include ::Google::Protobuf::MessageExts
189
+ extend ::Google::Protobuf::MessageExts::ClassMethods
190
+ end
191
+
192
+ # Response message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_entitlements CloudChannelService.ListEntitlements}.
193
+ # @!attribute [rw] entitlements
194
+ # @return [::Array<::Google::Cloud::Channel::V1::Entitlement>]
195
+ # The entitlements belonging to the reseller's customer.
196
+ # @!attribute [rw] next_page_token
197
+ # @return [::String]
198
+ # A token to List next page of results.
199
+ # Pass to {::Google::Cloud::Channel::V1::ListEntitlementsRequest#page_token ListEntitlementsRequest.page_token} to obtain that page.
200
+ class ListEntitlementsResponse
201
+ include ::Google::Protobuf::MessageExts
202
+ extend ::Google::Protobuf::MessageExts::ClassMethods
203
+ end
204
+
205
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_transferable_skus CloudChannelService.ListTransferableSkus}
206
+ # @!attribute [rw] cloud_identity_id
207
+ # @return [::String]
208
+ # Customer's Cloud Identity ID
209
+ # @!attribute [rw] customer_name
210
+ # @return [::String]
211
+ # A reseller is required to create a customer and use the resource name of
212
+ # the created customer here.
213
+ # The customer_name takes the format:
214
+ # accounts/\\{account_id}/customers/\\{customer_id}
215
+ # @!attribute [rw] parent
216
+ # @return [::String]
217
+ # Required. The resource name of the reseller's account.
218
+ # The parent takes the format: accounts/\\{account_id}
219
+ # @!attribute [rw] page_size
220
+ # @return [::Integer]
221
+ # Requested page size. Server might return fewer results than requested.
222
+ # If unspecified, at most 100 SKUs will be returned.
223
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
224
+ # Optional.
225
+ # @!attribute [rw] page_token
226
+ # @return [::String]
227
+ # A token identifying a page of results, if other than the first one.
228
+ # Typically obtained via
229
+ # {::Google::Cloud::Channel::V1::ListTransferableSkusResponse#next_page_token ListTransferableSkusResponse.next_page_token} of the previous
230
+ # {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_transferable_skus CloudChannelService.ListTransferableSkus} call.
231
+ # Optional.
232
+ # @!attribute [rw] auth_token
233
+ # @return [::String]
234
+ # This token is generated by the Super Admin of the resold customer to
235
+ # authorize a reseller to access their Cloud Identity and purchase
236
+ # entitlements on their behalf. This token can be omitted once the
237
+ # authorization is generated. See https://support.google.com/a/answer/7643790
238
+ # for more details.
239
+ # @!attribute [rw] language_code
240
+ # @return [::String]
241
+ # The BCP-47 language code, such as "en-US". If specified, the
242
+ # response will be localized to the corresponding language code. Default is
243
+ # "en-US".
244
+ # Optional.
245
+ class ListTransferableSkusRequest
246
+ include ::Google::Protobuf::MessageExts
247
+ extend ::Google::Protobuf::MessageExts::ClassMethods
248
+ end
249
+
250
+ # Response message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_transferable_skus CloudChannelService.ListTransferableSkus}.
251
+ # @!attribute [rw] transferable_skus
252
+ # @return [::Array<::Google::Cloud::Channel::V1::TransferableSku>]
253
+ # Information about existing SKUs for a customer that would need to be
254
+ # transferred.
255
+ # @!attribute [rw] next_page_token
256
+ # @return [::String]
257
+ # A token to retrieve the next page of results.
258
+ # Pass to {::Google::Cloud::Channel::V1::ListTransferableSkusRequest#page_token ListTransferableSkusRequest.page_token} to obtain
259
+ # that page.
260
+ class ListTransferableSkusResponse
261
+ include ::Google::Protobuf::MessageExts
262
+ extend ::Google::Protobuf::MessageExts::ClassMethods
263
+ end
264
+
265
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_transferable_offers CloudChannelService.ListTransferableOffers}
266
+ # @!attribute [rw] cloud_identity_id
267
+ # @return [::String]
268
+ # Customer's Cloud Identity ID
269
+ # @!attribute [rw] customer_name
270
+ # @return [::String]
271
+ # A reseller should create a customer and use the resource name of
272
+ # the created customer here.
273
+ # @!attribute [rw] parent
274
+ # @return [::String]
275
+ # Required. The resource name of the reseller's account.
276
+ # @!attribute [rw] page_size
277
+ # @return [::Integer]
278
+ # Requested page size. Server might return fewer results than requested.
279
+ # If unspecified, at most 100 Offers will be returned.
280
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
281
+ # @!attribute [rw] page_token
282
+ # @return [::String]
283
+ # A token identifying a page of results, if other than the first one.
284
+ # Typically obtained via
285
+ # {::Google::Cloud::Channel::V1::ListTransferableOffersResponse#next_page_token ListTransferableOffersResponse.next_page_token} of the previous
286
+ # {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_transferable_offers CloudChannelService.ListTransferableOffers} call.
287
+ # @!attribute [rw] sku
288
+ # @return [::String]
289
+ # Required. SKU for which the Offers are being looked up.
290
+ # @!attribute [rw] language_code
291
+ # @return [::String]
292
+ # The BCP-47 language code, such as "en-US". If specified, the
293
+ # response will be localized to the corresponding language code. Default is
294
+ # "en-US".
295
+ class ListTransferableOffersRequest
296
+ include ::Google::Protobuf::MessageExts
297
+ extend ::Google::Protobuf::MessageExts::ClassMethods
298
+ end
299
+
300
+ # Response message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_transferable_offers CloudChannelService.ListTransferableOffers}.
301
+ # @!attribute [rw] transferable_offers
302
+ # @return [::Array<::Google::Cloud::Channel::V1::TransferableOffer>]
303
+ # Information about Offers for a customer that can be used for
304
+ # transfer.
305
+ # @!attribute [rw] next_page_token
306
+ # @return [::String]
307
+ # A token to retrieve the next page of results.
308
+ # Pass to {::Google::Cloud::Channel::V1::ListTransferableOffersRequest#page_token ListTransferableOffersRequest.page_token} to obtain
309
+ # that page.
310
+ class ListTransferableOffersResponse
311
+ include ::Google::Protobuf::MessageExts
312
+ extend ::Google::Protobuf::MessageExts::ClassMethods
313
+ end
314
+
315
+ # TransferableOffer represents an Offer that can be used in Transfer.
316
+ # Read-only.
317
+ # @!attribute [rw] offer
318
+ # @return [::Google::Cloud::Channel::V1::Offer]
319
+ # Offer with parameter constraints updated to allow the Transfer.
320
+ class TransferableOffer
321
+ include ::Google::Protobuf::MessageExts
322
+ extend ::Google::Protobuf::MessageExts::ClassMethods
323
+ end
324
+
325
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#get_entitlement CloudChannelService.GetEntitlement}.
326
+ # @!attribute [rw] name
327
+ # @return [::String]
328
+ # Required. The resource name of the entitlement to retrieve.
329
+ # The name takes the format:
330
+ # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{id}
331
+ class GetEntitlementRequest
332
+ include ::Google::Protobuf::MessageExts
333
+ extend ::Google::Protobuf::MessageExts::ClassMethods
334
+ end
335
+
336
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_channel_partner_links CloudChannelService.ListChannelPartnerLinks}
337
+ # @!attribute [rw] parent
338
+ # @return [::String]
339
+ # Required. The resource name of the reseller account for listing channel partner
340
+ # links.
341
+ # The parent takes the format: accounts/\\{account_id}
342
+ # @!attribute [rw] page_size
343
+ # @return [::Integer]
344
+ # Optional. Requested page size. Server might return fewer results than requested.
345
+ # If unspecified, server will pick a default size (25).
346
+ # The maximum value is 200, values above 200 will be coerced to 200.
347
+ # @!attribute [rw] page_token
348
+ # @return [::String]
349
+ # Optional. A token identifying a page of results, if other than the first one.
350
+ # Typically obtained via
351
+ # {::Google::Cloud::Channel::V1::ListChannelPartnerLinksResponse#next_page_token ListChannelPartnerLinksResponse.next_page_token} of the previous
352
+ # {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_channel_partner_links CloudChannelService.ListChannelPartnerLinks} call.
353
+ # @!attribute [rw] view
354
+ # @return [::Google::Cloud::Channel::V1::ChannelPartnerLinkView]
355
+ # Optional. The level of granularity the ChannelPartnerLink will display.
356
+ class ListChannelPartnerLinksRequest
357
+ include ::Google::Protobuf::MessageExts
358
+ extend ::Google::Protobuf::MessageExts::ClassMethods
359
+ end
360
+
361
+ # Response message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_channel_partner_links CloudChannelService.ListChannelPartnerLinks}.
362
+ # @!attribute [rw] channel_partner_links
363
+ # @return [::Array<::Google::Cloud::Channel::V1::ChannelPartnerLink>]
364
+ # The Channel partner links for a reseller.
365
+ # @!attribute [rw] next_page_token
366
+ # @return [::String]
367
+ # A token to retrieve the next page of results.
368
+ # Pass to {::Google::Cloud::Channel::V1::ListChannelPartnerLinksRequest#page_token ListChannelPartnerLinksRequest.page_token} to obtain that page.
369
+ class ListChannelPartnerLinksResponse
370
+ include ::Google::Protobuf::MessageExts
371
+ extend ::Google::Protobuf::MessageExts::ClassMethods
372
+ end
373
+
374
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#get_channel_partner_link CloudChannelService.GetChannelPartnerLink}.
375
+ # @!attribute [rw] name
376
+ # @return [::String]
377
+ # Required. The resource name of the channel partner link to retrieve.
378
+ # The name takes the format: accounts/\\{account_id}/channelPartnerLinks/\\{id}
379
+ # where \\{id} is the Cloud Identity ID of the partner.
380
+ # @!attribute [rw] view
381
+ # @return [::Google::Cloud::Channel::V1::ChannelPartnerLinkView]
382
+ # Optional. The level of granularity the ChannelPartnerLink will display.
383
+ class GetChannelPartnerLinkRequest
384
+ include ::Google::Protobuf::MessageExts
385
+ extend ::Google::Protobuf::MessageExts::ClassMethods
386
+ end
387
+
388
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#create_channel_partner_link CloudChannelService.CreateChannelPartnerLink}
389
+ # @!attribute [rw] parent
390
+ # @return [::String]
391
+ # Required. The resource name of reseller's account for which to create a channel
392
+ # partner link.
393
+ # The parent takes the format: accounts/\\{account_id}
394
+ # @!attribute [rw] channel_partner_link
395
+ # @return [::Google::Cloud::Channel::V1::ChannelPartnerLink]
396
+ # Required. The channel partner link to create.
397
+ # Either channel_partner_link.reseller_cloud_identity_id or domain can be
398
+ # used to create a link.
399
+ # @!attribute [rw] domain
400
+ # @return [::String]
401
+ # Optional. The invited partner's domain. Either domain or
402
+ # channel_partner_link.reseller_cloud_identity_id can be used to create a
403
+ # link.
404
+ class CreateChannelPartnerLinkRequest
405
+ include ::Google::Protobuf::MessageExts
406
+ extend ::Google::Protobuf::MessageExts::ClassMethods
407
+ end
408
+
409
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#update_channel_partner_link CloudChannelService.UpdateChannelPartnerLink}
410
+ # @!attribute [rw] name
411
+ # @return [::String]
412
+ # Required. The resource name of the channel partner link to cancel.
413
+ # The name takes the format: accounts/\\{account_id}/channelPartnerLinks/\\{id}
414
+ # where \\{id} is the Cloud Identity ID of the partner.
415
+ # @!attribute [rw] channel_partner_link
416
+ # @return [::Google::Cloud::Channel::V1::ChannelPartnerLink]
417
+ # Required. The channel partner link to update. Only field
418
+ # channel_partner_link.link_state is allowed to be updated.
419
+ # @!attribute [rw] update_mask
420
+ # @return [::Google::Protobuf::FieldMask]
421
+ # Required. The update mask that applies to the resource.
422
+ # The only allowable value for update mask is
423
+ # channel_partner_link.link_state.
424
+ class UpdateChannelPartnerLinkRequest
425
+ include ::Google::Protobuf::MessageExts
426
+ extend ::Google::Protobuf::MessageExts::ClassMethods
427
+ end
428
+
429
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#create_entitlement CloudChannelService.CreateEntitlement}
430
+ # @!attribute [rw] parent
431
+ # @return [::String]
432
+ # Required. The resource name of reseller's customer account in which to create the
433
+ # entitlement.
434
+ # The parent takes the format: accounts/\\{account_id}/customers/\\{customer_id}
435
+ # @!attribute [rw] entitlement
436
+ # @return [::Google::Cloud::Channel::V1::Entitlement]
437
+ # Required. The entitlement to create.
438
+ # @!attribute [rw] request_id
439
+ # @return [::String]
440
+ # Optional. An optional request ID to identify requests. Specify a unique request ID so
441
+ # that if you must retry your request, the server will know to ignore the
442
+ # request if it has already been completed.
443
+ #
444
+ # For example, consider a situation where you make an initial request and
445
+ # the request times out. If you make the request again with the same
446
+ # request ID, the server can check if the original operation with the same
447
+ # request ID was received, and if so, will ignore the second request.
448
+ #
449
+ # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
450
+ # with the exception that zero UUID is not supported
451
+ # (`00000000-0000-0000-0000-000000000000`).
452
+ class CreateEntitlementRequest
453
+ include ::Google::Protobuf::MessageExts
454
+ extend ::Google::Protobuf::MessageExts::ClassMethods
455
+ end
456
+
457
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#transfer_entitlements CloudChannelService.TransferEntitlements}.
458
+ # @!attribute [rw] parent
459
+ # @return [::String]
460
+ # Required. The resource name of reseller's customer account where the entitlements
461
+ # transfer to.
462
+ # The parent takes the format: accounts/\\{account_id}/customers/\\{customer_id}
463
+ # @!attribute [rw] entitlements
464
+ # @return [::Array<::Google::Cloud::Channel::V1::Entitlement>]
465
+ # Required. The new entitlements to be created or transferred.
466
+ # @!attribute [rw] auth_token
467
+ # @return [::String]
468
+ # This token is generated by the Super Admin of the resold customer to
469
+ # authorize a reseller to access their Cloud Identity and purchase
470
+ # entitlements on their behalf. This token can be omitted once the
471
+ # authorization is generated. See https://support.google.com/a/answer/7643790
472
+ # for more details.
473
+ # @!attribute [rw] request_id
474
+ # @return [::String]
475
+ # Optional. An optional request ID to identify requests. Specify a unique request ID so
476
+ # that if you must retry your request, the server will know to ignore the
477
+ # request if it has already been completed.
478
+ #
479
+ # For example, consider a situation where you make an initial request and
480
+ # the request times out. If you make the request again with the same
481
+ # request ID, the server can check if the original operation with the same
482
+ # request ID was received, and if so, will ignore the second request.
483
+ #
484
+ # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
485
+ # with the exception that zero UUID is not supported
486
+ # (`00000000-0000-0000-0000-000000000000`).
487
+ class TransferEntitlementsRequest
488
+ include ::Google::Protobuf::MessageExts
489
+ extend ::Google::Protobuf::MessageExts::ClassMethods
490
+ end
491
+
492
+ # Response message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#transfer_entitlements CloudChannelService.TransferEntitlements}.
493
+ # This will be put into the response field of google.longrunning.Operation.
494
+ # @!attribute [rw] entitlements
495
+ # @return [::Array<::Google::Cloud::Channel::V1::Entitlement>]
496
+ # The entitlements that have been transferred.
497
+ class TransferEntitlementsResponse
498
+ include ::Google::Protobuf::MessageExts
499
+ extend ::Google::Protobuf::MessageExts::ClassMethods
500
+ end
501
+
502
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#transfer_entitlements_to_google CloudChannelService.TransferEntitlementsToGoogle}.
503
+ # @!attribute [rw] parent
504
+ # @return [::String]
505
+ # Required. The resource name of reseller's customer account where the entitlements
506
+ # transfer from.
507
+ # The parent takes the format: accounts/\\{account_id}/customers/\\{customer_id}
508
+ # @!attribute [rw] entitlements
509
+ # @return [::Array<::Google::Cloud::Channel::V1::Entitlement>]
510
+ # Required. The entitlements to be transferred to Google.
511
+ # @!attribute [rw] request_id
512
+ # @return [::String]
513
+ # Optional. An optional request ID to identify requests. Specify a unique request ID so
514
+ # that if you must retry your request, the server will know to ignore the
515
+ # request if it has already been completed.
516
+ #
517
+ # For example, consider a situation where you make an initial request and
518
+ # the request times out. If you make the request again with the same
519
+ # request ID, the server can check if the original operation with the same
520
+ # request ID was received, and if so, will ignore the second request.
521
+ #
522
+ # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
523
+ # with the exception that zero UUID is not supported
524
+ # (`00000000-0000-0000-0000-000000000000`).
525
+ class TransferEntitlementsToGoogleRequest
526
+ include ::Google::Protobuf::MessageExts
527
+ extend ::Google::Protobuf::MessageExts::ClassMethods
528
+ end
529
+
530
+ # Request message for [CloudChannelService.ChangeParametersRequest][].
531
+ # @!attribute [rw] name
532
+ # @return [::String]
533
+ # Required. The name of the entitlement to update.
534
+ # The name takes the format:
535
+ # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
536
+ # @!attribute [rw] parameters
537
+ # @return [::Array<::Google::Cloud::Channel::V1::Parameter>]
538
+ # Required. Entitlement parameters to update. Only editable parameters are allowed to
539
+ # be changed.
540
+ # @!attribute [rw] request_id
541
+ # @return [::String]
542
+ # Optional. An optional request ID to identify requests. Specify a unique request ID so
543
+ # that if you must retry your request, the server will know to ignore the
544
+ # request if it has already been completed.
545
+ #
546
+ # For example, consider a situation where you make an initial request and
547
+ # the request times out. If you make the request again with the same
548
+ # request ID, the server can check if the original operation with the same
549
+ # request ID was received, and if so, will ignore the second request.
550
+ #
551
+ # The request ID must be
552
+ # a valid [UUID](https://tools.ietf.org/html/rfc4122) with the exception that
553
+ # zero UUID is not supported
554
+ # (`00000000-0000-0000-0000-000000000000`).
555
+ # @!attribute [rw] purchase_order_id
556
+ # @return [::String]
557
+ # Optional. Purchase order ID provided by the reseller.
558
+ class ChangeParametersRequest
559
+ include ::Google::Protobuf::MessageExts
560
+ extend ::Google::Protobuf::MessageExts::ClassMethods
561
+ end
562
+
563
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#change_renewal_settings CloudChannelService.ChangeRenewalSettings}.
564
+ # @!attribute [rw] name
565
+ # @return [::String]
566
+ # Required. The name of the entitlement to update.
567
+ # The name takes the format:
568
+ # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
569
+ # @!attribute [rw] renewal_settings
570
+ # @return [::Google::Cloud::Channel::V1::RenewalSettings]
571
+ # Required. New renewal settings.
572
+ # @!attribute [rw] request_id
573
+ # @return [::String]
574
+ # Optional. A request ID to identify requests. Specify a unique request ID so
575
+ # that if you must retry your request, the server will know to ignore the
576
+ # request if it has already been completed.
577
+ #
578
+ # For example, consider a situation where you make an initial request and
579
+ # the request times out. If you make the request again with the same
580
+ # request ID, the server can check if the original operation with the same
581
+ # request ID was received, and if so, will ignore the second request.
582
+ #
583
+ # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
584
+ # with the exception that zero UUID is not supported
585
+ # (`00000000-0000-0000-0000-000000000000`).
586
+ class ChangeRenewalSettingsRequest
587
+ include ::Google::Protobuf::MessageExts
588
+ extend ::Google::Protobuf::MessageExts::ClassMethods
589
+ end
590
+
591
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#change_offer CloudChannelService.ChangeOffer}.
592
+ # @!attribute [rw] name
593
+ # @return [::String]
594
+ # Required. The name of the entitlement to update.
595
+ # Format:
596
+ # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
597
+ # @!attribute [rw] offer
598
+ # @return [::String]
599
+ # Required. New Offer.
600
+ # Format: accounts/\\{account_id}/offers/\\{offer_id}.
601
+ # @!attribute [rw] parameters
602
+ # @return [::Array<::Google::Cloud::Channel::V1::Parameter>]
603
+ # Optional. Parameters needed to purchase the Offer.
604
+ # @!attribute [rw] purchase_order_id
605
+ # @return [::String]
606
+ # Optional. Purchase order id provided by the reseller.
607
+ # @!attribute [rw] request_id
608
+ # @return [::String]
609
+ # Optional. An optional request ID to identify requests. Specify a unique request ID so
610
+ # that if you must retry your request, the server will know to ignore the
611
+ # request if it has already been completed.
612
+ #
613
+ # For example, consider a situation where you make an initial request and
614
+ # the request times out. If you make the request again with the same
615
+ # request ID, the server can check if the original operation with the same
616
+ # request ID was received, and if so, will ignore the second request.
617
+ #
618
+ # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
619
+ # with the exception that zero UUID is not supported
620
+ # (`00000000-0000-0000-0000-000000000000`).
621
+ class ChangeOfferRequest
622
+ include ::Google::Protobuf::MessageExts
623
+ extend ::Google::Protobuf::MessageExts::ClassMethods
624
+ end
625
+
626
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#start_paid_service CloudChannelService.StartPaidService}.
627
+ # @!attribute [rw] name
628
+ # @return [::String]
629
+ # Required. The name of the entitlement for which paid service is being started.
630
+ # The name takes the format:
631
+ # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
632
+ # @!attribute [rw] request_id
633
+ # @return [::String]
634
+ # Optional. An optional request ID to identify requests. Specify a unique request ID so
635
+ # that if you must retry your request, the server will know to ignore the
636
+ # request if it has already been completed.
637
+ #
638
+ # For example, consider a situation where you make an initial request and
639
+ # the request times out. If you make the request again with the same
640
+ # request ID, the server can check if the original operation with the same
641
+ # request ID was received, and if so, will ignore the second request.
642
+ #
643
+ # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
644
+ # with the exception that zero UUID is not supported
645
+ # (`00000000-0000-0000-0000-000000000000`).
646
+ class StartPaidServiceRequest
647
+ include ::Google::Protobuf::MessageExts
648
+ extend ::Google::Protobuf::MessageExts::ClassMethods
649
+ end
650
+
651
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#cancel_entitlement CloudChannelService.CancelEntitlement}.
652
+ # @!attribute [rw] name
653
+ # @return [::String]
654
+ # Required. The resource name of the entitlement to cancel.
655
+ # The name takes the format:
656
+ # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
657
+ # @!attribute [rw] request_id
658
+ # @return [::String]
659
+ # Optional. An optional request ID to identify requests. Specify a unique request ID so
660
+ # that if you must retry your request, the server will know to ignore the
661
+ # request if it has already been completed.
662
+ #
663
+ # For example, consider a situation where you make an initial request and
664
+ # the request times out. If you make the request again with the same
665
+ # request ID, the server can check if the original operation with the same
666
+ # request ID was received, and if so, will ignore the second request.
667
+ #
668
+ # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
669
+ # with the exception that zero UUID is not supported
670
+ # (`00000000-0000-0000-0000-000000000000`).
671
+ class CancelEntitlementRequest
672
+ include ::Google::Protobuf::MessageExts
673
+ extend ::Google::Protobuf::MessageExts::ClassMethods
674
+ end
675
+
676
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#suspend_entitlement CloudChannelService.SuspendEntitlement}.
677
+ # @!attribute [rw] name
678
+ # @return [::String]
679
+ # Required. The resource name of the entitlement to suspend.
680
+ # The name takes the format:
681
+ # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
682
+ # @!attribute [rw] request_id
683
+ # @return [::String]
684
+ # Optional. An optional request ID to identify requests. Specify a unique request ID so
685
+ # that if you must retry your request, the server will know to ignore the
686
+ # request if it has already been completed.
687
+ #
688
+ # For example, consider a situation where you make an initial request and
689
+ # the request times out. If you make the request again with the same
690
+ # request ID, the server can check if the original operation with the same
691
+ # request ID was received, and if so, will ignore the second request.
692
+ #
693
+ # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
694
+ # with the exception that zero UUID is not supported
695
+ # (`00000000-0000-0000-0000-000000000000`).
696
+ class SuspendEntitlementRequest
697
+ include ::Google::Protobuf::MessageExts
698
+ extend ::Google::Protobuf::MessageExts::ClassMethods
699
+ end
700
+
701
+ # Request message for {::Google::Cloud::Channel::V1::CloudChannelService::Client#activate_entitlement CloudChannelService.ActivateEntitlement}.
702
+ # @!attribute [rw] name
703
+ # @return [::String]
704
+ # Required. The resource name of the entitlement to activate.
705
+ # The name takes the format:
706
+ # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
707
+ # @!attribute [rw] request_id
708
+ # @return [::String]
709
+ # Optional. An optional request ID to identify requests. Specify a unique request ID so
710
+ # that if you must retry your request, the server will know to ignore the
711
+ # request if it has already been completed.
712
+ #
713
+ # For example, consider a situation where you make an initial request and
714
+ # the request times out. If you make the request again with the same
715
+ # request ID, the server can check if the original operation with the same
716
+ # request ID was received, and if so, will ignore the second request.
717
+ #
718
+ # The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122)
719
+ # with the exception that zero UUID is not supported
720
+ # (`00000000-0000-0000-0000-000000000000`).
721
+ class ActivateEntitlementRequest
722
+ include ::Google::Protobuf::MessageExts
723
+ extend ::Google::Protobuf::MessageExts::ClassMethods
724
+ end
725
+
726
+ # Request message for ListProducts.
727
+ # @!attribute [rw] account
728
+ # @return [::String]
729
+ # Required. The resource name of the reseller account.
730
+ # Format: accounts/\\{account_id}.
731
+ # @!attribute [rw] page_size
732
+ # @return [::Integer]
733
+ # Optional. Requested page size. Server might return fewer results than requested.
734
+ # If unspecified, at most 100 Products will be returned.
735
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
736
+ # @!attribute [rw] page_token
737
+ # @return [::String]
738
+ # Optional. A token identifying a page of results, if other than the first one.
739
+ # @!attribute [rw] language_code
740
+ # @return [::String]
741
+ # Optional. The BCP-47 language code, such as "en-US". If specified, the
742
+ # response will be localized to the corresponding language code. Default is
743
+ # "en-US".
744
+ class ListProductsRequest
745
+ include ::Google::Protobuf::MessageExts
746
+ extend ::Google::Protobuf::MessageExts::ClassMethods
747
+ end
748
+
749
+ # Response message for ListProducts.
750
+ # @!attribute [rw] products
751
+ # @return [::Array<::Google::Cloud::Channel::V1::Product>]
752
+ # List of Products requested.
753
+ # @!attribute [rw] next_page_token
754
+ # @return [::String]
755
+ # A token to retrieve the next page of results.
756
+ class ListProductsResponse
757
+ include ::Google::Protobuf::MessageExts
758
+ extend ::Google::Protobuf::MessageExts::ClassMethods
759
+ end
760
+
761
+ # Request message for ListSkus.
762
+ # @!attribute [rw] parent
763
+ # @return [::String]
764
+ # Required. The resource name of the Product for which to list SKUs.
765
+ # The parent takes the format: products/\\{product_id}.
766
+ # Supports products/- to retrieve SKUs for all products.
767
+ # @!attribute [rw] account
768
+ # @return [::String]
769
+ # Required. Resource name of the reseller.
770
+ # Format: accounts/\\{account_id}.
771
+ # @!attribute [rw] page_size
772
+ # @return [::Integer]
773
+ # Optional. Requested page size. Server might return fewer results than requested.
774
+ # If unspecified, at most 100 SKUs will be returned.
775
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
776
+ # @!attribute [rw] page_token
777
+ # @return [::String]
778
+ # Optional. A token identifying a page of results, if other than the first one.
779
+ # Optional.
780
+ # @!attribute [rw] language_code
781
+ # @return [::String]
782
+ # Optional. The BCP-47 language code, such as "en-US". If specified, the
783
+ # response will be localized to the corresponding language code. Default is
784
+ # "en-US".
785
+ class ListSkusRequest
786
+ include ::Google::Protobuf::MessageExts
787
+ extend ::Google::Protobuf::MessageExts::ClassMethods
788
+ end
789
+
790
+ # Response message for ListSkus.
791
+ # @!attribute [rw] skus
792
+ # @return [::Array<::Google::Cloud::Channel::V1::Sku>]
793
+ # The list of SKUs requested.
794
+ # @!attribute [rw] next_page_token
795
+ # @return [::String]
796
+ # A token to retrieve the next page of results.
797
+ class ListSkusResponse
798
+ include ::Google::Protobuf::MessageExts
799
+ extend ::Google::Protobuf::MessageExts::ClassMethods
800
+ end
801
+
802
+ # Request message for ListOffers.
803
+ # @!attribute [rw] parent
804
+ # @return [::String]
805
+ # Required. The resource name of the reseller account from which to list Offers.
806
+ # The parent takes the format: accounts/\\{account_id}.
807
+ # @!attribute [rw] page_size
808
+ # @return [::Integer]
809
+ # Optional. Requested page size. Server might return fewer results than requested.
810
+ # If unspecified, at most 500 Offers will be returned.
811
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
812
+ # @!attribute [rw] page_token
813
+ # @return [::String]
814
+ # Optional. A token identifying a page of results, if other than the first one.
815
+ # @!attribute [rw] filter
816
+ # @return [::String]
817
+ # Optional. The expression to filter results by name (name of
818
+ # the Offer), sku.name (name of the SKU) or sku.product.name (name of the
819
+ # Product).
820
+ # Example 1: sku.product.name=products/p1 AND sku.name!=products/p1/skus/s1
821
+ # Example 2: name=accounts/a1/offers/o1
822
+ # @!attribute [rw] language_code
823
+ # @return [::String]
824
+ # Optional. The BCP-47 language code, such as "en-US". If specified, the
825
+ # response will be localized to the corresponding language code. Default is
826
+ # "en-US".
827
+ class ListOffersRequest
828
+ include ::Google::Protobuf::MessageExts
829
+ extend ::Google::Protobuf::MessageExts::ClassMethods
830
+ end
831
+
832
+ # Response message for ListOffers.
833
+ # @!attribute [rw] offers
834
+ # @return [::Array<::Google::Cloud::Channel::V1::Offer>]
835
+ # The list of Offers requested.
836
+ # @!attribute [rw] next_page_token
837
+ # @return [::String]
838
+ # A token to retrieve the next page of results.
839
+ class ListOffersResponse
840
+ include ::Google::Protobuf::MessageExts
841
+ extend ::Google::Protobuf::MessageExts::ClassMethods
842
+ end
843
+
844
+ # Request message for ListPurchasableSkus.
845
+ # @!attribute [rw] create_entitlement_purchase
846
+ # @return [::Google::Cloud::Channel::V1::ListPurchasableSkusRequest::CreateEntitlementPurchase]
847
+ # List SKUs for CreateEntitlement purchase.
848
+ # @!attribute [rw] change_offer_purchase
849
+ # @return [::Google::Cloud::Channel::V1::ListPurchasableSkusRequest::ChangeOfferPurchase]
850
+ # List SKUs for ChangeOffer purchase with a new SKU.
851
+ # @!attribute [rw] customer
852
+ # @return [::String]
853
+ # Required. The resource name of the customer for which to list SKUs.
854
+ # Format: accounts/\\{account_id}/customers/\\{customer_id}.
855
+ # @!attribute [rw] page_size
856
+ # @return [::Integer]
857
+ # Optional. Requested page size. Server might return fewer results than requested.
858
+ # If unspecified, at most 100 SKUs will be returned.
859
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
860
+ # @!attribute [rw] page_token
861
+ # @return [::String]
862
+ # Optional. A token identifying a page of results, if other than the first one.
863
+ # @!attribute [rw] language_code
864
+ # @return [::String]
865
+ # Optional. The BCP-47 language code, such as "en-US". If specified, the
866
+ # response will be localized to the corresponding language code. Default is
867
+ # "en-US".
868
+ class ListPurchasableSkusRequest
869
+ include ::Google::Protobuf::MessageExts
870
+ extend ::Google::Protobuf::MessageExts::ClassMethods
871
+
872
+ # List SKUs for a new entitlement. Make the purchase using
873
+ # {::Google::Cloud::Channel::V1::CloudChannelService::Client#create_entitlement CloudChannelService.CreateEntitlement}.
874
+ # @!attribute [rw] product
875
+ # @return [::String]
876
+ # Required. List SKUs belonging to this Product.
877
+ # Format: products/\\{product_id}.
878
+ # Supports products/- to retrieve SKUs for all products.
879
+ class CreateEntitlementPurchase
880
+ include ::Google::Protobuf::MessageExts
881
+ extend ::Google::Protobuf::MessageExts::ClassMethods
882
+ end
883
+
884
+ # List SKUs for upgrading or downgrading an entitlement. Make the purchase
885
+ # using {::Google::Cloud::Channel::V1::CloudChannelService::Client#change_offer CloudChannelService.ChangeOffer}.
886
+ # @!attribute [rw] entitlement
887
+ # @return [::String]
888
+ # Required. Resource name of the entitlement.
889
+ # Format:
890
+ # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
891
+ # @!attribute [rw] change_type
892
+ # @return [::Google::Cloud::Channel::V1::ListPurchasableSkusRequest::ChangeOfferPurchase::ChangeType]
893
+ # Required. Change Type for the entitlement.
894
+ class ChangeOfferPurchase
895
+ include ::Google::Protobuf::MessageExts
896
+ extend ::Google::Protobuf::MessageExts::ClassMethods
897
+
898
+ # Change Type enum.
899
+ module ChangeType
900
+ # Not used.
901
+ CHANGE_TYPE_UNSPECIFIED = 0
902
+
903
+ # SKU is an upgrade on the current entitlement.
904
+ UPGRADE = 1
905
+
906
+ # SKU is a downgrade on the current entitlement.
907
+ DOWNGRADE = 2
908
+ end
909
+ end
910
+ end
911
+
912
+ # Response message for ListPurchasableSkus.
913
+ # @!attribute [rw] purchasable_skus
914
+ # @return [::Array<::Google::Cloud::Channel::V1::PurchasableSku>]
915
+ # The list of SKUs requested.
916
+ # @!attribute [rw] next_page_token
917
+ # @return [::String]
918
+ # A token to retrieve the next page of results.
919
+ class ListPurchasableSkusResponse
920
+ include ::Google::Protobuf::MessageExts
921
+ extend ::Google::Protobuf::MessageExts::ClassMethods
922
+ end
923
+
924
+ # SKU that can be used for a puchase. This is used in ListPurchasableSku API
925
+ # response.
926
+ # @!attribute [rw] sku
927
+ # @return [::Google::Cloud::Channel::V1::Sku]
928
+ # SKU
929
+ class PurchasableSku
930
+ include ::Google::Protobuf::MessageExts
931
+ extend ::Google::Protobuf::MessageExts::ClassMethods
932
+ end
933
+
934
+ # Request message for ListPurchasableOffers.
935
+ # @!attribute [rw] create_entitlement_purchase
936
+ # @return [::Google::Cloud::Channel::V1::ListPurchasableOffersRequest::CreateEntitlementPurchase]
937
+ # List Offers for CreateEntitlement purchase.
938
+ # @!attribute [rw] change_offer_purchase
939
+ # @return [::Google::Cloud::Channel::V1::ListPurchasableOffersRequest::ChangeOfferPurchase]
940
+ # List Offers for ChangeOffer purchase.
941
+ # @!attribute [rw] customer
942
+ # @return [::String]
943
+ # Required. The resource name of the customer for which to list Offers.
944
+ # Format: accounts/\\{account_id}/customers/\\{customer_id}.
945
+ # @!attribute [rw] page_size
946
+ # @return [::Integer]
947
+ # Optional. Requested page size. Server might return fewer results than requested.
948
+ # If unspecified, at most 100 Offers will be returned.
949
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
950
+ # @!attribute [rw] page_token
951
+ # @return [::String]
952
+ # Optional. A token identifying a page of results, if other than the first one.
953
+ # @!attribute [rw] language_code
954
+ # @return [::String]
955
+ # Optional. The BCP-47 language code, such as "en-US". If specified, the
956
+ # response will be localized to the corresponding language code. Default is
957
+ # "en-US".
958
+ class ListPurchasableOffersRequest
959
+ include ::Google::Protobuf::MessageExts
960
+ extend ::Google::Protobuf::MessageExts::ClassMethods
961
+
962
+ # List Offers for CreateEntitlement purchase.
963
+ # @!attribute [rw] sku
964
+ # @return [::String]
965
+ # Required. SKU that the result should be restricted to.
966
+ # Format: products/\\{product_id}/skus/\\{sku_id}.
967
+ class CreateEntitlementPurchase
968
+ include ::Google::Protobuf::MessageExts
969
+ extend ::Google::Protobuf::MessageExts::ClassMethods
970
+ end
971
+
972
+ # List Offers for ChangeOffer purchase.
973
+ # @!attribute [rw] entitlement
974
+ # @return [::String]
975
+ # Required. Resource name of the entitlement.
976
+ # Format:
977
+ # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
978
+ # @!attribute [rw] new_sku
979
+ # @return [::String]
980
+ # Optional. Resource name of the SKU that is being changed to. Should be provided if
981
+ # upgrading or downgrading an entitlement. Format:
982
+ # products/\\{product_id}/skus/\\{sku_id}
983
+ class ChangeOfferPurchase
984
+ include ::Google::Protobuf::MessageExts
985
+ extend ::Google::Protobuf::MessageExts::ClassMethods
986
+ end
987
+ end
988
+
989
+ # Response message for ListPurchasableOffers.
990
+ # @!attribute [rw] purchasable_offers
991
+ # @return [::Array<::Google::Cloud::Channel::V1::PurchasableOffer>]
992
+ # The list of Offers requested.
993
+ # @!attribute [rw] next_page_token
994
+ # @return [::String]
995
+ # A token to retrieve the next page of results.
996
+ class ListPurchasableOffersResponse
997
+ include ::Google::Protobuf::MessageExts
998
+ extend ::Google::Protobuf::MessageExts::ClassMethods
999
+ end
1000
+
1001
+ # Offer that can be puchased for a customer. This is used in
1002
+ # ListPurchasableOffer API response.
1003
+ # @!attribute [rw] offer
1004
+ # @return [::Google::Cloud::Channel::V1::Offer]
1005
+ # Offer.
1006
+ class PurchasableOffer
1007
+ include ::Google::Protobuf::MessageExts
1008
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1009
+ end
1010
+ end
1011
+ end
1012
+ end
1013
+ end