google-cloud-channel-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
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,38 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/channel/v1/operations.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/channel/v1/operations.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.channel.v1.OperationMetadata" do
10
+ optional :operation_type, :enum, 1, "google.cloud.channel.v1.OperationMetadata.OperationType"
11
+ end
12
+ add_enum "google.cloud.channel.v1.OperationMetadata.OperationType" do
13
+ value :OPERATION_TYPE_UNSPECIFIED, 0
14
+ value :CREATE_ENTITLEMENT, 1
15
+ value :CHANGE_RENEWAL_SETTINGS, 3
16
+ value :START_PAID_SERVICE, 5
17
+ value :ACTIVATE_ENTITLEMENT, 7
18
+ value :SUSPEND_ENTITLEMENT, 8
19
+ value :CANCEL_ENTITLEMENT, 9
20
+ value :TRANSFER_ENTITLEMENTS, 10
21
+ value :TRANSFER_ENTITLEMENTS_TO_GOOGLE, 11
22
+ value :CHANGE_OFFER, 14
23
+ value :CHANGE_PARAMETERS, 15
24
+ value :PROVISION_CLOUD_IDENTITY, 16
25
+ end
26
+ end
27
+ end
28
+
29
+ module Google
30
+ module Cloud
31
+ module Channel
32
+ module V1
33
+ OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.OperationMetadata").msgclass
34
+ OperationMetadata::OperationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.OperationMetadata.OperationType").enummodule
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,48 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/channel/v1/products.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/resource_pb'
7
+ require 'google/api/annotations_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("google/cloud/channel/v1/products.proto", :syntax => :proto3) do
10
+ add_message "google.cloud.channel.v1.Product" do
11
+ optional :name, :string, 1
12
+ optional :marketing_info, :message, 2, "google.cloud.channel.v1.MarketingInfo"
13
+ end
14
+ add_message "google.cloud.channel.v1.Sku" do
15
+ optional :name, :string, 1
16
+ optional :marketing_info, :message, 2, "google.cloud.channel.v1.MarketingInfo"
17
+ optional :product, :message, 3, "google.cloud.channel.v1.Product"
18
+ end
19
+ add_message "google.cloud.channel.v1.MarketingInfo" do
20
+ optional :display_name, :string, 1
21
+ optional :description, :string, 2
22
+ optional :default_logo, :message, 3, "google.cloud.channel.v1.Media"
23
+ end
24
+ add_message "google.cloud.channel.v1.Media" do
25
+ optional :title, :string, 1
26
+ optional :content, :string, 2
27
+ optional :type, :enum, 3, "google.cloud.channel.v1.MediaType"
28
+ end
29
+ add_enum "google.cloud.channel.v1.MediaType" do
30
+ value :MEDIA_TYPE_UNSPECIFIED, 0
31
+ value :MEDIA_TYPE_IMAGE, 1
32
+ end
33
+ end
34
+ end
35
+
36
+ module Google
37
+ module Cloud
38
+ module Channel
39
+ module V1
40
+ Product = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Product").msgclass
41
+ Sku = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Sku").msgclass
42
+ MarketingInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.MarketingInfo").msgclass
43
+ Media = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Media").msgclass
44
+ MediaType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.MediaType").enummodule
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,331 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/channel/v1/service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/channel/v1/channel_partner_links_pb'
11
+ require 'google/cloud/channel/v1/common_pb'
12
+ require 'google/cloud/channel/v1/customers_pb'
13
+ require 'google/cloud/channel/v1/entitlements_pb'
14
+ require 'google/cloud/channel/v1/offers_pb'
15
+ require 'google/cloud/channel/v1/products_pb'
16
+ require 'google/longrunning/operations_pb'
17
+ require 'google/protobuf/empty_pb'
18
+ require 'google/protobuf/field_mask_pb'
19
+ Google::Protobuf::DescriptorPool.generated_pool.build do
20
+ add_file("google/cloud/channel/v1/service.proto", :syntax => :proto3) do
21
+ add_message "google.cloud.channel.v1.CheckCloudIdentityAccountsExistRequest" do
22
+ optional :parent, :string, 1
23
+ optional :domain, :string, 2
24
+ end
25
+ add_message "google.cloud.channel.v1.CloudIdentityCustomerAccount" do
26
+ optional :existing, :bool, 1
27
+ optional :owned, :bool, 2
28
+ optional :customer_name, :string, 3
29
+ optional :customer_cloud_identity_id, :string, 4
30
+ end
31
+ add_message "google.cloud.channel.v1.CheckCloudIdentityAccountsExistResponse" do
32
+ repeated :cloud_identity_accounts, :message, 1, "google.cloud.channel.v1.CloudIdentityCustomerAccount"
33
+ end
34
+ add_message "google.cloud.channel.v1.ListCustomersRequest" do
35
+ optional :parent, :string, 1
36
+ optional :page_size, :int32, 2
37
+ optional :page_token, :string, 3
38
+ end
39
+ add_message "google.cloud.channel.v1.ListCustomersResponse" do
40
+ repeated :customers, :message, 1, "google.cloud.channel.v1.Customer"
41
+ optional :next_page_token, :string, 2
42
+ end
43
+ add_message "google.cloud.channel.v1.GetCustomerRequest" do
44
+ optional :name, :string, 1
45
+ end
46
+ add_message "google.cloud.channel.v1.CreateCustomerRequest" do
47
+ optional :parent, :string, 1
48
+ optional :customer, :message, 2, "google.cloud.channel.v1.Customer"
49
+ end
50
+ add_message "google.cloud.channel.v1.UpdateCustomerRequest" do
51
+ optional :customer, :message, 2, "google.cloud.channel.v1.Customer"
52
+ optional :update_mask, :message, 3, "google.protobuf.FieldMask"
53
+ end
54
+ add_message "google.cloud.channel.v1.DeleteCustomerRequest" do
55
+ optional :name, :string, 1
56
+ end
57
+ add_message "google.cloud.channel.v1.ProvisionCloudIdentityRequest" do
58
+ optional :customer, :string, 1
59
+ optional :cloud_identity_info, :message, 2, "google.cloud.channel.v1.CloudIdentityInfo"
60
+ optional :user, :message, 3, "google.cloud.channel.v1.AdminUser"
61
+ optional :validate_only, :bool, 4
62
+ end
63
+ add_message "google.cloud.channel.v1.ListEntitlementsRequest" do
64
+ optional :parent, :string, 1
65
+ optional :page_size, :int32, 2
66
+ optional :page_token, :string, 3
67
+ end
68
+ add_message "google.cloud.channel.v1.ListEntitlementsResponse" do
69
+ repeated :entitlements, :message, 1, "google.cloud.channel.v1.Entitlement"
70
+ optional :next_page_token, :string, 2
71
+ end
72
+ add_message "google.cloud.channel.v1.ListTransferableSkusRequest" do
73
+ optional :parent, :string, 1
74
+ optional :page_size, :int32, 2
75
+ optional :page_token, :string, 3
76
+ optional :auth_token, :string, 5
77
+ optional :language_code, :string, 6
78
+ oneof :transferred_customer_identity do
79
+ optional :cloud_identity_id, :string, 4
80
+ optional :customer_name, :string, 7
81
+ end
82
+ end
83
+ add_message "google.cloud.channel.v1.ListTransferableSkusResponse" do
84
+ repeated :transferable_skus, :message, 1, "google.cloud.channel.v1.TransferableSku"
85
+ optional :next_page_token, :string, 2
86
+ end
87
+ add_message "google.cloud.channel.v1.ListTransferableOffersRequest" do
88
+ optional :parent, :string, 1
89
+ optional :page_size, :int32, 2
90
+ optional :page_token, :string, 3
91
+ optional :sku, :string, 6
92
+ optional :language_code, :string, 7
93
+ oneof :transferred_customer_identity do
94
+ optional :cloud_identity_id, :string, 4
95
+ optional :customer_name, :string, 5
96
+ end
97
+ end
98
+ add_message "google.cloud.channel.v1.ListTransferableOffersResponse" do
99
+ repeated :transferable_offers, :message, 1, "google.cloud.channel.v1.TransferableOffer"
100
+ optional :next_page_token, :string, 2
101
+ end
102
+ add_message "google.cloud.channel.v1.TransferableOffer" do
103
+ optional :offer, :message, 1, "google.cloud.channel.v1.Offer"
104
+ end
105
+ add_message "google.cloud.channel.v1.GetEntitlementRequest" do
106
+ optional :name, :string, 1
107
+ end
108
+ add_message "google.cloud.channel.v1.ListChannelPartnerLinksRequest" do
109
+ optional :parent, :string, 1
110
+ optional :page_size, :int32, 2
111
+ optional :page_token, :string, 3
112
+ optional :view, :enum, 4, "google.cloud.channel.v1.ChannelPartnerLinkView"
113
+ end
114
+ add_message "google.cloud.channel.v1.ListChannelPartnerLinksResponse" do
115
+ repeated :channel_partner_links, :message, 1, "google.cloud.channel.v1.ChannelPartnerLink"
116
+ optional :next_page_token, :string, 2
117
+ end
118
+ add_message "google.cloud.channel.v1.GetChannelPartnerLinkRequest" do
119
+ optional :name, :string, 1
120
+ optional :view, :enum, 2, "google.cloud.channel.v1.ChannelPartnerLinkView"
121
+ end
122
+ add_message "google.cloud.channel.v1.CreateChannelPartnerLinkRequest" do
123
+ optional :parent, :string, 1
124
+ optional :channel_partner_link, :message, 2, "google.cloud.channel.v1.ChannelPartnerLink"
125
+ optional :domain, :string, 3
126
+ end
127
+ add_message "google.cloud.channel.v1.UpdateChannelPartnerLinkRequest" do
128
+ optional :name, :string, 1
129
+ optional :channel_partner_link, :message, 2, "google.cloud.channel.v1.ChannelPartnerLink"
130
+ optional :update_mask, :message, 3, "google.protobuf.FieldMask"
131
+ end
132
+ add_message "google.cloud.channel.v1.CreateEntitlementRequest" do
133
+ optional :parent, :string, 1
134
+ optional :entitlement, :message, 2, "google.cloud.channel.v1.Entitlement"
135
+ optional :request_id, :string, 5
136
+ end
137
+ add_message "google.cloud.channel.v1.TransferEntitlementsRequest" do
138
+ optional :parent, :string, 1
139
+ repeated :entitlements, :message, 2, "google.cloud.channel.v1.Entitlement"
140
+ optional :auth_token, :string, 4
141
+ optional :request_id, :string, 6
142
+ end
143
+ add_message "google.cloud.channel.v1.TransferEntitlementsResponse" do
144
+ repeated :entitlements, :message, 1, "google.cloud.channel.v1.Entitlement"
145
+ end
146
+ add_message "google.cloud.channel.v1.TransferEntitlementsToGoogleRequest" do
147
+ optional :parent, :string, 1
148
+ repeated :entitlements, :message, 2, "google.cloud.channel.v1.Entitlement"
149
+ optional :request_id, :string, 3
150
+ end
151
+ add_message "google.cloud.channel.v1.ChangeParametersRequest" do
152
+ optional :name, :string, 1
153
+ repeated :parameters, :message, 2, "google.cloud.channel.v1.Parameter"
154
+ optional :request_id, :string, 4
155
+ optional :purchase_order_id, :string, 5
156
+ end
157
+ add_message "google.cloud.channel.v1.ChangeRenewalSettingsRequest" do
158
+ optional :name, :string, 1
159
+ optional :renewal_settings, :message, 4, "google.cloud.channel.v1.RenewalSettings"
160
+ optional :request_id, :string, 5
161
+ end
162
+ add_message "google.cloud.channel.v1.ChangeOfferRequest" do
163
+ optional :name, :string, 1
164
+ optional :offer, :string, 2
165
+ repeated :parameters, :message, 3, "google.cloud.channel.v1.Parameter"
166
+ optional :purchase_order_id, :string, 5
167
+ optional :request_id, :string, 6
168
+ end
169
+ add_message "google.cloud.channel.v1.StartPaidServiceRequest" do
170
+ optional :name, :string, 1
171
+ optional :request_id, :string, 3
172
+ end
173
+ add_message "google.cloud.channel.v1.CancelEntitlementRequest" do
174
+ optional :name, :string, 1
175
+ optional :request_id, :string, 3
176
+ end
177
+ add_message "google.cloud.channel.v1.SuspendEntitlementRequest" do
178
+ optional :name, :string, 1
179
+ optional :request_id, :string, 3
180
+ end
181
+ add_message "google.cloud.channel.v1.ActivateEntitlementRequest" do
182
+ optional :name, :string, 1
183
+ optional :request_id, :string, 3
184
+ end
185
+ add_message "google.cloud.channel.v1.ListProductsRequest" do
186
+ optional :account, :string, 1
187
+ optional :page_size, :int32, 2
188
+ optional :page_token, :string, 3
189
+ optional :language_code, :string, 4
190
+ end
191
+ add_message "google.cloud.channel.v1.ListProductsResponse" do
192
+ repeated :products, :message, 1, "google.cloud.channel.v1.Product"
193
+ optional :next_page_token, :string, 2
194
+ end
195
+ add_message "google.cloud.channel.v1.ListSkusRequest" do
196
+ optional :parent, :string, 1
197
+ optional :account, :string, 2
198
+ optional :page_size, :int32, 3
199
+ optional :page_token, :string, 4
200
+ optional :language_code, :string, 5
201
+ end
202
+ add_message "google.cloud.channel.v1.ListSkusResponse" do
203
+ repeated :skus, :message, 1, "google.cloud.channel.v1.Sku"
204
+ optional :next_page_token, :string, 2
205
+ end
206
+ add_message "google.cloud.channel.v1.ListOffersRequest" do
207
+ optional :parent, :string, 1
208
+ optional :page_size, :int32, 2
209
+ optional :page_token, :string, 3
210
+ optional :filter, :string, 4
211
+ optional :language_code, :string, 5
212
+ end
213
+ add_message "google.cloud.channel.v1.ListOffersResponse" do
214
+ repeated :offers, :message, 1, "google.cloud.channel.v1.Offer"
215
+ optional :next_page_token, :string, 2
216
+ end
217
+ add_message "google.cloud.channel.v1.ListPurchasableSkusRequest" do
218
+ optional :customer, :string, 1
219
+ optional :page_size, :int32, 4
220
+ optional :page_token, :string, 5
221
+ optional :language_code, :string, 6
222
+ oneof :purchase_option do
223
+ optional :create_entitlement_purchase, :message, 2, "google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase"
224
+ optional :change_offer_purchase, :message, 3, "google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase"
225
+ end
226
+ end
227
+ add_message "google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase" do
228
+ optional :product, :string, 1
229
+ end
230
+ add_message "google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase" do
231
+ optional :entitlement, :string, 1
232
+ optional :change_type, :enum, 2, "google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase.ChangeType"
233
+ end
234
+ add_enum "google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase.ChangeType" do
235
+ value :CHANGE_TYPE_UNSPECIFIED, 0
236
+ value :UPGRADE, 1
237
+ value :DOWNGRADE, 2
238
+ end
239
+ add_message "google.cloud.channel.v1.ListPurchasableSkusResponse" do
240
+ repeated :purchasable_skus, :message, 1, "google.cloud.channel.v1.PurchasableSku"
241
+ optional :next_page_token, :string, 2
242
+ end
243
+ add_message "google.cloud.channel.v1.PurchasableSku" do
244
+ optional :sku, :message, 1, "google.cloud.channel.v1.Sku"
245
+ end
246
+ add_message "google.cloud.channel.v1.ListPurchasableOffersRequest" do
247
+ optional :customer, :string, 1
248
+ optional :page_size, :int32, 4
249
+ optional :page_token, :string, 5
250
+ optional :language_code, :string, 6
251
+ oneof :purchase_option do
252
+ optional :create_entitlement_purchase, :message, 2, "google.cloud.channel.v1.ListPurchasableOffersRequest.CreateEntitlementPurchase"
253
+ optional :change_offer_purchase, :message, 3, "google.cloud.channel.v1.ListPurchasableOffersRequest.ChangeOfferPurchase"
254
+ end
255
+ end
256
+ add_message "google.cloud.channel.v1.ListPurchasableOffersRequest.CreateEntitlementPurchase" do
257
+ optional :sku, :string, 1
258
+ end
259
+ add_message "google.cloud.channel.v1.ListPurchasableOffersRequest.ChangeOfferPurchase" do
260
+ optional :entitlement, :string, 1
261
+ optional :new_sku, :string, 2
262
+ end
263
+ add_message "google.cloud.channel.v1.ListPurchasableOffersResponse" do
264
+ repeated :purchasable_offers, :message, 1, "google.cloud.channel.v1.PurchasableOffer"
265
+ optional :next_page_token, :string, 2
266
+ end
267
+ add_message "google.cloud.channel.v1.PurchasableOffer" do
268
+ optional :offer, :message, 1, "google.cloud.channel.v1.Offer"
269
+ end
270
+ end
271
+ end
272
+
273
+ module Google
274
+ module Cloud
275
+ module Channel
276
+ module V1
277
+ CheckCloudIdentityAccountsExistRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CheckCloudIdentityAccountsExistRequest").msgclass
278
+ CloudIdentityCustomerAccount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CloudIdentityCustomerAccount").msgclass
279
+ CheckCloudIdentityAccountsExistResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CheckCloudIdentityAccountsExistResponse").msgclass
280
+ ListCustomersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListCustomersRequest").msgclass
281
+ ListCustomersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListCustomersResponse").msgclass
282
+ GetCustomerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.GetCustomerRequest").msgclass
283
+ CreateCustomerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CreateCustomerRequest").msgclass
284
+ UpdateCustomerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.UpdateCustomerRequest").msgclass
285
+ DeleteCustomerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.DeleteCustomerRequest").msgclass
286
+ ProvisionCloudIdentityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ProvisionCloudIdentityRequest").msgclass
287
+ ListEntitlementsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListEntitlementsRequest").msgclass
288
+ ListEntitlementsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListEntitlementsResponse").msgclass
289
+ ListTransferableSkusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListTransferableSkusRequest").msgclass
290
+ ListTransferableSkusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListTransferableSkusResponse").msgclass
291
+ ListTransferableOffersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListTransferableOffersRequest").msgclass
292
+ ListTransferableOffersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListTransferableOffersResponse").msgclass
293
+ TransferableOffer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.TransferableOffer").msgclass
294
+ GetEntitlementRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.GetEntitlementRequest").msgclass
295
+ ListChannelPartnerLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListChannelPartnerLinksRequest").msgclass
296
+ ListChannelPartnerLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListChannelPartnerLinksResponse").msgclass
297
+ GetChannelPartnerLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.GetChannelPartnerLinkRequest").msgclass
298
+ CreateChannelPartnerLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CreateChannelPartnerLinkRequest").msgclass
299
+ UpdateChannelPartnerLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.UpdateChannelPartnerLinkRequest").msgclass
300
+ CreateEntitlementRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CreateEntitlementRequest").msgclass
301
+ TransferEntitlementsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.TransferEntitlementsRequest").msgclass
302
+ TransferEntitlementsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.TransferEntitlementsResponse").msgclass
303
+ TransferEntitlementsToGoogleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.TransferEntitlementsToGoogleRequest").msgclass
304
+ ChangeParametersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ChangeParametersRequest").msgclass
305
+ ChangeRenewalSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ChangeRenewalSettingsRequest").msgclass
306
+ ChangeOfferRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ChangeOfferRequest").msgclass
307
+ StartPaidServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.StartPaidServiceRequest").msgclass
308
+ CancelEntitlementRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CancelEntitlementRequest").msgclass
309
+ SuspendEntitlementRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.SuspendEntitlementRequest").msgclass
310
+ ActivateEntitlementRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ActivateEntitlementRequest").msgclass
311
+ ListProductsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListProductsRequest").msgclass
312
+ ListProductsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListProductsResponse").msgclass
313
+ ListSkusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListSkusRequest").msgclass
314
+ ListSkusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListSkusResponse").msgclass
315
+ ListOffersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListOffersRequest").msgclass
316
+ ListOffersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListOffersResponse").msgclass
317
+ ListPurchasableSkusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListPurchasableSkusRequest").msgclass
318
+ ListPurchasableSkusRequest::CreateEntitlementPurchase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase").msgclass
319
+ ListPurchasableSkusRequest::ChangeOfferPurchase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase").msgclass
320
+ ListPurchasableSkusRequest::ChangeOfferPurchase::ChangeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase.ChangeType").enummodule
321
+ ListPurchasableSkusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListPurchasableSkusResponse").msgclass
322
+ PurchasableSku = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PurchasableSku").msgclass
323
+ ListPurchasableOffersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListPurchasableOffersRequest").msgclass
324
+ ListPurchasableOffersRequest::CreateEntitlementPurchase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListPurchasableOffersRequest.CreateEntitlementPurchase").msgclass
325
+ ListPurchasableOffersRequest::ChangeOfferPurchase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListPurchasableOffersRequest.ChangeOfferPurchase").msgclass
326
+ ListPurchasableOffersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListPurchasableOffersResponse").msgclass
327
+ PurchasableOffer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PurchasableOffer").msgclass
328
+ end
329
+ end
330
+ end
331
+ end
@@ -0,0 +1,680 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/channel/v1/service.proto for package 'google.cloud.channel.v1'
3
+ # Original file comments:
4
+ # Copyright 2020 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/channel/v1/service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Channel
25
+ module V1
26
+ module CloudChannelService
27
+ # CloudChannelService enables Google cloud resellers and distributors to manage
28
+ # their customers, channel partners, entitlements and reports.
29
+ #
30
+ # Using this service:
31
+ # 1. Resellers or distributors can manage a customer entity.
32
+ # 2. Distributors can register an authorized reseller in their channel and then
33
+ # enable delegated admin access for the reseller.
34
+ # 3. Resellers or distributors can manage entitlements for their customers.
35
+ #
36
+ # The service primarily exposes the following resources:
37
+ # - [Customer][google.cloud.channel.v1.Customer]s: A Customer represents an entity managed by a reseller or
38
+ # distributor. A customer typically represents an enterprise. In an n-tier
39
+ # resale channel hierarchy, customers are generally represented as leaf nodes.
40
+ # Customers primarily have an Entitlement sub-resource discussed below.
41
+ #
42
+ # - [Entitlement][google.cloud.channel.v1.Entitlement]s: An Entitlement represents an entity which provides a
43
+ # customer means to start using a service. Entitlements are created or updated
44
+ # as a result of a successful fulfillment.
45
+ #
46
+ # - [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]s: A ChannelPartnerLink is an entity that identifies
47
+ # links between distributors and their indirect resellers in a channel.
48
+ class Service
49
+
50
+ include GRPC::GenericService
51
+
52
+ self.marshal_class_method = :encode
53
+ self.unmarshal_class_method = :decode
54
+ self.service_name = 'google.cloud.channel.v1.CloudChannelService'
55
+
56
+ # List downstream [Customer][google.cloud.channel.v1.Customer]s.
57
+ #
58
+ # Possible Error Codes:
59
+ #
60
+ # * PERMISSION_DENIED: If the reseller account making the request and the
61
+ # reseller account being queried for are different.
62
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
63
+ # request.
64
+ #
65
+ # Return Value:
66
+ # <br/> List of [Customer][google.cloud.channel.v1.Customer]s pertaining to the reseller or empty list if
67
+ # there are none.
68
+ rpc :ListCustomers, ::Google::Cloud::Channel::V1::ListCustomersRequest, ::Google::Cloud::Channel::V1::ListCustomersResponse
69
+ # Returns a requested [Customer][google.cloud.channel.v1.Customer] resource.
70
+ #
71
+ # Possible Error Codes:
72
+ #
73
+ # * PERMISSION_DENIED: If the reseller account making the request and the
74
+ # reseller account being queried for are different.
75
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
76
+ # request.
77
+ # * NOT_FOUND: If the customer resource doesn't exist. Usually
78
+ # the result of an invalid name parameter.
79
+ #
80
+ # Return Value:
81
+ # <br/> [Customer][google.cloud.channel.v1.Customer] resource if found, error otherwise.
82
+ rpc :GetCustomer, ::Google::Cloud::Channel::V1::GetCustomerRequest, ::Google::Cloud::Channel::V1::Customer
83
+ # Confirms the existence of Cloud Identity accounts, based on the domain and
84
+ # whether the Cloud Identity accounts are owned by the reseller.
85
+ #
86
+ # Possible Error Codes:
87
+ #
88
+ # * PERMISSION_DENIED: If the reseller account making the request and the
89
+ # reseller account being queried for are different.
90
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
91
+ # request.
92
+ # * INVALID_VALUE: Invalid domain value in the request.
93
+ # * NOT_FOUND: If there is no [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] customer
94
+ # for the domain specified in the request.
95
+ #
96
+ # Return Value:
97
+ # <br/> List of [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources if any exist for
98
+ # the domain, otherwise an error is returned.
99
+ rpc :CheckCloudIdentityAccountsExist, ::Google::Cloud::Channel::V1::CheckCloudIdentityAccountsExistRequest, ::Google::Cloud::Channel::V1::CheckCloudIdentityAccountsExistResponse
100
+ # Creates a new [Customer][google.cloud.channel.v1.Customer] resource under the reseller or distributor
101
+ # account.
102
+ #
103
+ # Possible Error Codes:
104
+ # <ul>
105
+ # <li>PERMISSION_DENIED: If the reseller account making the request and the
106
+ # reseller account being queried for are different.</li>
107
+ # <li> INVALID_ARGUMENT:
108
+ # <ul>
109
+ # <li> Missing or invalid required parameters in the request. </li>
110
+ # <li> Domain field value doesn't match the domain specified in primary
111
+ # email.</li>
112
+ # </ul>
113
+ # </li>
114
+ # </ul>
115
+ #
116
+ # Return Value:
117
+ # <br/> If successful, the newly created [Customer][google.cloud.channel.v1.Customer] resource, otherwise
118
+ # returns an error.
119
+ rpc :CreateCustomer, ::Google::Cloud::Channel::V1::CreateCustomerRequest, ::Google::Cloud::Channel::V1::Customer
120
+ # Updates an existing [Customer][google.cloud.channel.v1.Customer] resource belonging to the reseller or
121
+ # distributor.
122
+ #
123
+ # Possible Error Codes:
124
+ #
125
+ # * PERMISSION_DENIED: If the reseller account making the request and the
126
+ # reseller account being queried for are different.
127
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
128
+ # request.
129
+ # * NOT_FOUND: No [Customer][google.cloud.channel.v1.Customer] resource found for the name
130
+ # specified in the request.
131
+ #
132
+ # Return Value:
133
+ # <br/> If successful, the updated [Customer][google.cloud.channel.v1.Customer] resource, otherwise returns
134
+ # an error.
135
+ rpc :UpdateCustomer, ::Google::Cloud::Channel::V1::UpdateCustomerRequest, ::Google::Cloud::Channel::V1::Customer
136
+ # Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently and irreversibly.
137
+ #
138
+ # Possible Error Codes:
139
+ #
140
+ # * PERMISSION_DENIED: If the account making the request does not own
141
+ # this customer.
142
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
143
+ # request.
144
+ # * FAILED_PRECONDITION: If the customer has existing entitlements.
145
+ # * NOT_FOUND: No [Customer][google.cloud.channel.v1.Customer] resource found for the name
146
+ # specified in the request.
147
+ rpc :DeleteCustomer, ::Google::Cloud::Channel::V1::DeleteCustomerRequest, ::Google::Protobuf::Empty
148
+ # Creates a Cloud Identity for the given customer using the customer's
149
+ # information or the information provided here, if present.
150
+ #
151
+ # Possible Error Codes:
152
+ #
153
+ # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
154
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the request.
155
+ # * NOT_FOUND: If the customer is not found for the reseller.
156
+ # * ALREADY_EXISTS: If the customer's primary email already exists. In this
157
+ # case, retry after changing the customer's primary contact email.
158
+ # * INTERNAL: Any non-user error related to a technical issue in the
159
+ # backend. Contact Cloud Channel support in this case.
160
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
161
+ # Contact Cloud Channel support in this case.
162
+ #
163
+ # Return Value:
164
+ # <br/> Long Running Operation ID.
165
+ #
166
+ # To get the results of the operation, call the GetOperation method of
167
+ # CloudChannelOperationsService. The Operation metadata will contain an
168
+ # instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].
169
+ rpc :ProvisionCloudIdentity, ::Google::Cloud::Channel::V1::ProvisionCloudIdentityRequest, ::Google::Longrunning::Operation
170
+ # List [Entitlement][google.cloud.channel.v1.Entitlement]s belonging to a customer.
171
+ #
172
+ # Possible Error Codes:
173
+ #
174
+ # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
175
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the request.
176
+ #
177
+ # Return Value:
178
+ # <br/> List of [Entitlement][google.cloud.channel.v1.Entitlement]s belonging to the customer, or empty list if
179
+ # there are none.
180
+ rpc :ListEntitlements, ::Google::Cloud::Channel::V1::ListEntitlementsRequest, ::Google::Cloud::Channel::V1::ListEntitlementsResponse
181
+ # List [TransferableSku][google.cloud.channel.v1.TransferableSku]s of a customer based on Cloud Identity ID or
182
+ # Customer Name in the request.
183
+ #
184
+ # This method is used when a reseller lists the entitlements
185
+ # information of a customer that is not owned. The reseller should provide
186
+ # the customer's Cloud Identity ID or Customer Name.
187
+ #
188
+ # Possible Error Codes:
189
+ # <ul>
190
+ # <li>PERMISSION_DENIED, due to one of the following reasons:
191
+ # <ul>
192
+ # <li> If the customer doesn't belong to the reseller and no auth token,
193
+ # or an invalid auth token is supplied. </li> <li> If the reseller account
194
+ # making the request and the reseller account being queried for are
195
+ # different. </li>
196
+ # </ul>
197
+ # </li>
198
+ # <li> INVALID_ARGUMENT: Missing or invalid required parameters in the
199
+ # request.</li>
200
+ # </ul>
201
+ #
202
+ # Return Value:
203
+ # <br/> List of [TransferableSku][google.cloud.channel.v1.TransferableSku] for the given customer.
204
+ rpc :ListTransferableSkus, ::Google::Cloud::Channel::V1::ListTransferableSkusRequest, ::Google::Cloud::Channel::V1::ListTransferableSkusResponse
205
+ # List [TransferableOffer][google.cloud.channel.v1.TransferableOffer]s of a customer based on Cloud Identity ID or
206
+ # Customer Name in the request.
207
+ #
208
+ # This method is used when a reseller gets the entitlement
209
+ # information of a customer that is not owned. The reseller should provide
210
+ # the customer's Cloud Identity ID or Customer Name.
211
+ #
212
+ # Possible Error Codes:
213
+ #
214
+ # * PERMISSION_DENIED, due to one of the following reasons: (a) If the
215
+ # customer doesn't belong to the reseller and no auth token or invalid auth
216
+ # token is supplied. (b) If the reseller account making the request and the
217
+ # reseller account being queried for are different.
218
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
219
+ # request.
220
+ #
221
+ # Return Value:
222
+ # List of [TransferableOffer][google.cloud.channel.v1.TransferableOffer] for the given customer and SKU.
223
+ rpc :ListTransferableOffers, ::Google::Cloud::Channel::V1::ListTransferableOffersRequest, ::Google::Cloud::Channel::V1::ListTransferableOffersResponse
224
+ # Returns a requested [Entitlement][google.cloud.channel.v1.Entitlement] resource.
225
+ #
226
+ # Possible Error Codes:
227
+ #
228
+ # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
229
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
230
+ # request.
231
+ # * NOT_FOUND: If the entitlement is not found for the customer.
232
+ #
233
+ # Return Value:
234
+ # <br/> If found, the requested [Entitlement][google.cloud.channel.v1.Entitlement] resource, otherwise returns
235
+ # an error.
236
+ rpc :GetEntitlement, ::Google::Cloud::Channel::V1::GetEntitlementRequest, ::Google::Cloud::Channel::V1::Entitlement
237
+ # Creates an entitlement for a customer.
238
+ #
239
+ # Possible Error Codes:
240
+ # <ul>
241
+ # <li> PERMISSION_DENIED: If the customer doesn't belong to the reseller.
242
+ # </li> <li> INVALID_ARGUMENT: <ul>
243
+ # <li> Missing or invalid required parameters in the request. </li>
244
+ # <li> Cannot purchase an entitlement if there is already an
245
+ # entitlement for customer, for a SKU from the same product family. </li>
246
+ # <li> INVALID_VALUE: Offer passed in isn't valid. Make sure OfferId is
247
+ # valid. If it is valid, then contact Google Channel support for further
248
+ # troubleshooting. </li>
249
+ # </ul>
250
+ # </li>
251
+ # <li> NOT_FOUND: If the customer or offer resource is not found for the
252
+ # reseller. </li>
253
+ # <li> ALREADY_EXISTS: This failure can happen in the following cases:
254
+ # <ul>
255
+ # <li>If the SKU has been already purchased for the customer.</li>
256
+ # <li>If the customer's primary email already exists. In this case retry
257
+ # after changing the customer's primary contact email.
258
+ # </li>
259
+ # </ul>
260
+ # </li>
261
+ # <li> CONDITION_NOT_MET or FAILED_PRECONDITION: This
262
+ # failure can happen in the following cases:
263
+ # <ul>
264
+ # <li> Purchasing a SKU that requires domain verification and the
265
+ # domain has not been verified. </li>
266
+ # <li> Purchasing an Add-On SKU like Vault or Drive without purchasing
267
+ # the pre-requisite SKU, such as Google Workspace Business Starter. </li>
268
+ # <li> Applicable only for developer accounts: reseller and resold
269
+ # domain. Must meet the following domain naming requirements:
270
+ # <ul>
271
+ # <li> Domain names must start with goog-test. </li>
272
+ # <li> Resold domain names must include the reseller domain. </li>
273
+ # </ul>
274
+ # </li>
275
+ # </ul>
276
+ # </li>
277
+ # <li> INTERNAL: Any non-user error related to a technical issue in the
278
+ # backend. Contact Cloud Channel Support in this case. </li>
279
+ # <li> UNKNOWN: Any non-user error related to a technical issue in the
280
+ # backend. Contact Cloud Channel Support in this case. </li>
281
+ # </ul>
282
+ #
283
+ # Return Value:
284
+ # <br/> Long Running Operation ID.
285
+ #
286
+ # To get the results of the operation, call the GetOperation method of
287
+ # CloudChannelOperationsService. The Operation metadata will contain an
288
+ # instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].
289
+ rpc :CreateEntitlement, ::Google::Cloud::Channel::V1::CreateEntitlementRequest, ::Google::Longrunning::Operation
290
+ # Change parameters of the entitlement
291
+ #
292
+ # An entitlement parameters update is a long-running operation and results in
293
+ # updates to the entitlement as a result of fulfillment.
294
+ #
295
+ # Possible Error Codes:
296
+ #
297
+ # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
298
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
299
+ # request. For example, if the number of seats being changed to is greater
300
+ # than the allowed number of max seats for the resource. Or decreasing seats
301
+ # for a commitment based plan.
302
+ # * NOT_FOUND: Entitlement resource not found.
303
+ # * INTERNAL: Any non-user error related to a technical issue
304
+ # in the backend. In this case, contact Cloud Channel support.
305
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
306
+ # In this case, contact Cloud Channel support.
307
+ #
308
+ # Return Value:
309
+ # <br/> Long Running Operation ID.
310
+ #
311
+ # To get the results of the operation, call the GetOperation method of
312
+ # CloudChannelOperationsService. The Operation metadata will contain an
313
+ # instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].
314
+ rpc :ChangeParameters, ::Google::Cloud::Channel::V1::ChangeParametersRequest, ::Google::Longrunning::Operation
315
+ # Updates the renewal settings for an existing customer entitlement.
316
+ #
317
+ # An entitlement update is a long-running operation and results in updates to
318
+ # the entitlement as a result of fulfillment.
319
+ #
320
+ # Possible Error Codes:
321
+ #
322
+ # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
323
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
324
+ # request.
325
+ # * NOT_FOUND: Entitlement resource not found.
326
+ # * NOT_COMMITMENT_PLAN: Renewal Settings are only applicable for a
327
+ # commitment plan. Can't enable or disable renewal for non-commitment plans.
328
+ # * INTERNAL: Any non user error related to a technical issue in the
329
+ # backend. In this case, contact Cloud Channel support.
330
+ # * UNKNOWN: Any non user error related to a technical issue in the backend.
331
+ # In this case, contact Cloud Channel support.
332
+ #
333
+ # Return Value:
334
+ # <br/> Long Running Operation ID.
335
+ #
336
+ # To get the results of the operation, call the GetOperation method of
337
+ # CloudChannelOperationsService. The Operation metadata will contain an
338
+ # instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].
339
+ rpc :ChangeRenewalSettings, ::Google::Cloud::Channel::V1::ChangeRenewalSettingsRequest, ::Google::Longrunning::Operation
340
+ # Updates the Offer for an existing customer entitlement.
341
+ #
342
+ # An entitlement update is a long-running operation and results in updates to
343
+ # the entitlement as a result of fulfillment.
344
+ #
345
+ # Possible Error Codes:
346
+ #
347
+ # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
348
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
349
+ # request.
350
+ # * NOT_FOUND: Offer or Entitlement resource not found.
351
+ # * INTERNAL: Any non-user error related to a technical issue in the backend.
352
+ # In this case, contact Cloud Channel support.
353
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
354
+ # In this case, contact Cloud Channel support.
355
+ #
356
+ # Return Value:
357
+ # <br/> Long Running Operation ID.
358
+ #
359
+ # To get the results of the operation, call the GetOperation method of
360
+ # CloudChannelOperationsService. The Operation metadata will contain an
361
+ # instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].
362
+ rpc :ChangeOffer, ::Google::Cloud::Channel::V1::ChangeOfferRequest, ::Google::Longrunning::Operation
363
+ # Starts paid service for a trial entitlement.
364
+ #
365
+ # Starts paid service for a trial entitlement immediately. This method is
366
+ # only applicable if a plan has already been set up for a trial entitlement
367
+ # but has some trial days remaining.
368
+ #
369
+ # Possible Error Codes:
370
+ #
371
+ # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
372
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
373
+ # request.
374
+ # * NOT_FOUND: Entitlement resource not found.
375
+ # * FAILED_PRECONDITION/NOT_IN_TRIAL: This method only works for
376
+ # entitlement on trial plans.
377
+ # * INTERNAL: Any non-user error related to a technical issue in the backend.
378
+ # In this case, contact Cloud Channel support.
379
+ # * UNKNOWN: Any non-user error related to a technical issue
380
+ # in the backend. In this case, contact Cloud Channel support.
381
+ #
382
+ # Return Value:
383
+ # <br/> Long Running Operation ID.
384
+ #
385
+ # To get the results of the operation, call the GetOperation method of
386
+ # CloudChannelOperationsService. The Operation metadata will contain an
387
+ # instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].
388
+ rpc :StartPaidService, ::Google::Cloud::Channel::V1::StartPaidServiceRequest, ::Google::Longrunning::Operation
389
+ # Suspends a previously fulfilled entitlement.
390
+ # An entitlement suspension is a long-running operation.
391
+ #
392
+ # Possible Error Codes:
393
+ #
394
+ # * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
395
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
396
+ # request.
397
+ # * NOT_FOUND: Entitlement resource not found.
398
+ # * NOT_ACTIVE: Entitlement is not active.
399
+ # * INTERNAL: Any non-user error related to a technical issue in the backend.
400
+ # In this case, contact Cloud Channel support.
401
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
402
+ # In this case, contact Cloud Channel support.
403
+ #
404
+ # Return Value:
405
+ # <br/> Long Running Operation ID.
406
+ #
407
+ # To get the results of the operation, call the GetOperation method of
408
+ # CloudChannelOperationsService. The Operation metadata will contain an
409
+ # instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].
410
+ rpc :SuspendEntitlement, ::Google::Cloud::Channel::V1::SuspendEntitlementRequest, ::Google::Longrunning::Operation
411
+ # Cancels a previously fulfilled entitlement.
412
+ # An entitlement cancellation is a long-running operation.
413
+ #
414
+ # Possible Error Codes:
415
+ #
416
+ # * PERMISSION_DENIED: If the customer doesn't belong to the reseller or
417
+ # if the reseller account making the request and reseller account being
418
+ # queried for are different.
419
+ # * FAILED_PRECONDITION: If there are any Google Cloud projects linked to the
420
+ # Google Cloud entitlement's Cloud Billing subaccount.
421
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
422
+ # request.
423
+ # * NOT_FOUND: Entitlement resource not found.
424
+ # * DELETION_TYPE_NOT_ALLOWED: Cancel is only allowed for Google Workspace
425
+ # add-ons or entitlements for Google Cloud's development platform.
426
+ # * INTERNAL: Any non-user error related to a technical issue in the
427
+ # backend. In this case, contact Cloud Channel support.
428
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
429
+ # In this case, contact Cloud Channel support.
430
+ #
431
+ # Return Value:
432
+ # <br/> Long Running Operation ID.
433
+ #
434
+ # To get the results of the operation, call the GetOperation method of
435
+ # CloudChannelOperationsService. The response will contain
436
+ # google.protobuf.Empty on success. The Operation metadata will contain an
437
+ # instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].
438
+ rpc :CancelEntitlement, ::Google::Cloud::Channel::V1::CancelEntitlementRequest, ::Google::Longrunning::Operation
439
+ # Activates a previously suspended entitlement. The entitlement must be in a
440
+ # suspended state for it to be activated. Entitlements suspended for pending
441
+ # ToS acceptance can't be activated using this method. An entitlement
442
+ # activation is a long-running operation and can result in updates to
443
+ # the state of the customer entitlement.
444
+ #
445
+ # Possible Error Codes:
446
+ #
447
+ # * PERMISSION_DENIED: If the customer doesn't belong to the reseller or
448
+ # if the reseller account making the request and reseller account being
449
+ # queried for are different.
450
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
451
+ # request.
452
+ # * NOT_FOUND: Entitlement resource not found.
453
+ # * SUSPENSION_NOT_RESELLER_INITIATED: Can't activate an
454
+ # entitlement that is pending TOS acceptance. Only reseller initiated
455
+ # suspensions can be activated.
456
+ # * NOT_SUSPENDED: Can't activate entitlements that are already in ACTIVE
457
+ # state. Can only activate suspended entitlements.
458
+ # * INTERNAL: Any non-user error related to a technical issue
459
+ # in the backend. In this case, contact Cloud Channel support.
460
+ # * UNKNOWN: Any non-user error related to a technical issue in the backend.
461
+ # In this case, contact Cloud Channel support.
462
+ #
463
+ # Return Value:
464
+ # <br/> Long Running Operation ID.
465
+ #
466
+ # To get the results of the operation, call the GetOperation method of
467
+ # CloudChannelOperationsService. The Operation metadata will contain an
468
+ # instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].
469
+ rpc :ActivateEntitlement, ::Google::Cloud::Channel::V1::ActivateEntitlementRequest, ::Google::Longrunning::Operation
470
+ # Transfers customer entitlements to new reseller.
471
+ #
472
+ # Possible Error Codes:
473
+ # <ul>
474
+ # <li> PERMISSION_DENIED: If the customer doesn't belong to the
475
+ # reseller.</li> <li> INVALID_ARGUMENT: Missing or invalid required
476
+ # parameters in the request. </li> <li> NOT_FOUND: If the customer or offer
477
+ # resource is not found for the reseller. </li> <li> ALREADY_EXISTS: If the
478
+ # SKU has been already transferred for the customer. </li> <li>
479
+ # CONDITION_NOT_MET or FAILED_PRECONDITION: This failure can happen in the
480
+ # following cases: <ul>
481
+ # <li> Transferring a SKU that requires domain verification and the
482
+ # domain has not been verified. </li>
483
+ # <li> Transferring an Add-On SKU like Vault or Drive without transferring
484
+ # the pre-requisite SKU, such as G Suite Basic </li> <li> Applicable only for
485
+ # developer accounts: reseller and resold domain must follow the domain
486
+ # naming convention as follows:
487
+ # <ul>
488
+ # <li> Domain names must start with goog-test. </li>
489
+ # <li> Resold domain names must include the reseller domain. </li>
490
+ # </ul>
491
+ # </li>
492
+ # <li> All transferring entitlements must be specified. </li>
493
+ # </ul>
494
+ # </li>
495
+ # <li> INTERNAL: Any non-user error related to a technical issue in the
496
+ # backend. Please contact Cloud Channel Support in this case. </li>
497
+ # <li> UNKNOWN: Any non-user error related to a technical issue in the
498
+ # backend. Please contact Cloud Channel Support in this case. </li>
499
+ # </ul>
500
+ #
501
+ # Return Value:
502
+ # <br/> Long Running Operation ID.
503
+ #
504
+ # To get the results of the operation, call the GetOperation method of
505
+ # CloudChannelOperationsService. The Operation metadata will contain an
506
+ # instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].
507
+ rpc :TransferEntitlements, ::Google::Cloud::Channel::V1::TransferEntitlementsRequest, ::Google::Longrunning::Operation
508
+ # Transfers customer entitlements from current reseller to Google.
509
+ #
510
+ # Possible Error Codes:
511
+ # <ul>
512
+ # <li> PERMISSION_DENIED: If the customer doesn't belong to the reseller.
513
+ # </li> <li> INVALID_ARGUMENT: Missing or invalid required parameters in the
514
+ # request. </li>
515
+ # <li> NOT_FOUND: If the customer or offer resource is not found
516
+ # for the reseller. </li>
517
+ # <li> ALREADY_EXISTS: If the SKU has been already
518
+ # transferred for the customer. </li>
519
+ # <li> CONDITION_NOT_MET or FAILED_PRECONDITION: This failure can happen in
520
+ # the following cases:
521
+ # <ul>
522
+ # <li> Transferring a SKU that requires domain verification and the
523
+ # domain has not been verified. </li>
524
+ # <li> Transferring an Add-On SKU like Vault or Drive without purchasing
525
+ # the pre-requisite SKU, such as G Suite Basic </li> <li> Applicable only for
526
+ # developer accounts: reseller and resold domain must follow the domain
527
+ # naming convention as follows:
528
+ # <ul>
529
+ # <li> Domain names must start with goog-test. </li>
530
+ # <li> Resold domain names must include the reseller domain. </li>
531
+ # </ul>
532
+ # </li>
533
+ # </ul>
534
+ # </li>
535
+ # <li> INTERNAL: Any non-user error related to a technical issue in the
536
+ # backend. Please contact Cloud Channel Support in this case. </li>
537
+ # <li> UNKNOWN: Any non-user error related to a technical issue in the
538
+ # backend. Please contact Cloud Channel Support in this case.</li>
539
+ # </ul>
540
+ #
541
+ # Return Value:
542
+ # <br/> Long Running Operation ID.
543
+ #
544
+ # To get the results of the operation, call the GetOperation method of
545
+ # CloudChannelOperationsService. The response will contain
546
+ # google.protobuf.Empty on success. The Operation metadata will contain an
547
+ # instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].
548
+ rpc :TransferEntitlementsToGoogle, ::Google::Cloud::Channel::V1::TransferEntitlementsToGoogleRequest, ::Google::Longrunning::Operation
549
+ # List [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]s belonging to a distributor.
550
+ # To call this method, you must be a distributor.
551
+ #
552
+ # Possible Error Codes:
553
+ #
554
+ # * PERMISSION_DENIED: If the reseller account making the request and the
555
+ # reseller account being queried for are different.
556
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
557
+ # request.
558
+ #
559
+ # Return Value:
560
+ # <br/> If successful, returns the list of [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resources
561
+ # for the distributor account, otherwise returns an error.
562
+ rpc :ListChannelPartnerLinks, ::Google::Cloud::Channel::V1::ListChannelPartnerLinksRequest, ::Google::Cloud::Channel::V1::ListChannelPartnerLinksResponse
563
+ # Returns a requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.
564
+ # To call this method, you must be a distributor.
565
+ #
566
+ # Possible Error Codes:
567
+ #
568
+ # * PERMISSION_DENIED: If the reseller account making the request and the
569
+ # reseller account being queried for are different.
570
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
571
+ # request.
572
+ # * NOT_FOUND: ChannelPartnerLink resource not found. Results
573
+ # due invalid channel partner link name.
574
+ #
575
+ # Return Value:
576
+ # <br/> [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource if found, otherwise returns an error.
577
+ rpc :GetChannelPartnerLink, ::Google::Cloud::Channel::V1::GetChannelPartnerLinkRequest, ::Google::Cloud::Channel::V1::ChannelPartnerLink
578
+ # Initiates a channel partner link between a distributor and a reseller or
579
+ # between resellers in an n-tier reseller channel.
580
+ # To accept the invite, the invited partner should follow the invite_link_uri
581
+ # provided in the response. If the link creation is accepted, a valid link is
582
+ # set up between the two involved parties.
583
+ # To call this method, you must be a distributor.
584
+ #
585
+ # Possible Error Codes:
586
+ #
587
+ # * PERMISSION_DENIED: If the reseller account making the request and the
588
+ # reseller account being queried for are different.
589
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
590
+ # request.
591
+ # * ALREADY_EXISTS: If the ChannelPartnerLink sent in the request already
592
+ # exists.
593
+ # * NOT_FOUND: If no Cloud Identity customer exists for domain provided.
594
+ # * INTERNAL: Any non-user error related to a technical issue in the
595
+ # backend. In this case, contact Cloud Channel support.
596
+ # * UNKNOWN: Any non-user error related to a technical issue in
597
+ # the backend. In this case, contact Cloud Channel support.
598
+ #
599
+ # Return Value:
600
+ # <br/> Newly created [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource if successful,
601
+ # otherwise error is returned.
602
+ rpc :CreateChannelPartnerLink, ::Google::Cloud::Channel::V1::CreateChannelPartnerLinkRequest, ::Google::Cloud::Channel::V1::ChannelPartnerLink
603
+ # Updates a channel partner link. A distributor calls this method to change a
604
+ # link's status. For example, suspend a partner link.
605
+ # To call this method, you must be a distributor.
606
+ #
607
+ # Possible Error Codes:
608
+ # <ul>
609
+ # <li> PERMISSION_DENIED: If the reseller account making the request and the
610
+ # reseller account being queried for are different. </li>
611
+ # <li> INVALID_ARGUMENT:
612
+ # <ul>
613
+ # <li> Missing or invalid required parameters in the request. </li>
614
+ # <li> Updating link state from invited to active or suspended. </li>
615
+ # <li> Sending reseller_cloud_identity_id, invite_url or name in update
616
+ # mask. </li>
617
+ # </ul>
618
+ # </li>
619
+ # <li> NOT_FOUND: ChannelPartnerLink resource not found.</li>
620
+ # <li> INTERNAL: Any non-user error related to a technical issue in the
621
+ # backend. In this case, contact Cloud Channel support. </li>
622
+ # <li> UNKNOWN: Any non-user error related to a technical issue in the
623
+ # backend. In this case, contact Cloud Channel support.</li>
624
+ # </ul>
625
+ #
626
+ # Return Value:
627
+ # <br/> If successful, the updated [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource, otherwise
628
+ # returns an error.
629
+ rpc :UpdateChannelPartnerLink, ::Google::Cloud::Channel::V1::UpdateChannelPartnerLinkRequest, ::Google::Cloud::Channel::V1::ChannelPartnerLink
630
+ # Lists the Products the reseller is authorized to sell.
631
+ #
632
+ # Possible Error Codes:
633
+ #
634
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
635
+ # request.
636
+ rpc :ListProducts, ::Google::Cloud::Channel::V1::ListProductsRequest, ::Google::Cloud::Channel::V1::ListProductsResponse
637
+ # Lists the SKUs for a product the reseller is authorized to sell.
638
+ #
639
+ # Possible Error Codes:
640
+ #
641
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
642
+ # request.
643
+ rpc :ListSkus, ::Google::Cloud::Channel::V1::ListSkusRequest, ::Google::Cloud::Channel::V1::ListSkusResponse
644
+ # Lists the Offers the reseller can sell.
645
+ #
646
+ # Possible Error Codes:
647
+ #
648
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
649
+ # request.
650
+ rpc :ListOffers, ::Google::Cloud::Channel::V1::ListOffersRequest, ::Google::Cloud::Channel::V1::ListOffersResponse
651
+ # Lists the Purchasable SKUs for following cases:
652
+ #
653
+ # * SKUs that can be newly purchased for a customer
654
+ # * SKUs that can be upgraded/downgraded to, for an entitlement.
655
+ #
656
+ # Possible Error Codes:
657
+ #
658
+ # * PERMISSION_DENIED: If the customer doesn't belong to the reseller
659
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
660
+ # request.
661
+ rpc :ListPurchasableSkus, ::Google::Cloud::Channel::V1::ListPurchasableSkusRequest, ::Google::Cloud::Channel::V1::ListPurchasableSkusResponse
662
+ # Lists the Purchasable Offers for the following cases:
663
+ #
664
+ # * Offers that can be newly purchased for a customer
665
+ # * Offers that can be changed to, for an entitlement.
666
+ #
667
+ # Possible Error Codes:
668
+ #
669
+ # * PERMISSION_DENIED: If the customer doesn't belong to the reseller
670
+ # * INVALID_ARGUMENT: Missing or invalid required parameters in the
671
+ # request.
672
+ rpc :ListPurchasableOffers, ::Google::Cloud::Channel::V1::ListPurchasableOffersRequest, ::Google::Cloud::Channel::V1::ListPurchasableOffersResponse
673
+ end
674
+
675
+ Stub = Service.rpc_stub_class
676
+ end
677
+ end
678
+ end
679
+ end
680
+ end