@maxim_mazurok/gapi.client.cloudchannel-v1 0.0.20220811

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.
package/index.d.ts ADDED
@@ -0,0 +1,3882 @@
1
+ /* Type definitions for non-npm package Cloud Channel API v1 0.0 */
2
+ // Project: https://cloud.google.com/channel
3
+ // Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
4
+ // Nick Amoscato <https://github.com/namoscato>
5
+ // Declan Vong <https://github.com/declanvong>
6
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
+ // TypeScript Version: 2.8
8
+
9
+ // IMPORTANT
10
+ // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
+ // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
+ // Generated from: https://cloudchannel.googleapis.com/$discovery/rest?version=v1
13
+ // Revision: 20220811
14
+
15
+ /// <reference types="gapi.client" />
16
+
17
+ declare namespace gapi.client {
18
+ /** Load Cloud Channel API v1 */
19
+ function load(urlOrObject: "https://cloudchannel.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
20
+ /** @deprecated Please load APIs with discovery documents. */
21
+ function load(name: "cloudchannel", version: "v1"): Promise<void>;
22
+ /** @deprecated Please load APIs with discovery documents. */
23
+ function load(name: "cloudchannel", version: "v1", callback: () => any): void;
24
+
25
+ namespace cloudchannel {
26
+ interface GoogleCloudChannelV1ActivateEntitlementRequest {
27
+ /**
28
+ * Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete. For example, you make an
29
+ * initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request
30
+ * ID. If it did, it will ignore the second request. The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) with the exception that zero UUID is not supported
31
+ * (`00000000-0000-0000-0000-000000000000`).
32
+ */
33
+ requestId?: string;
34
+ }
35
+ interface GoogleCloudChannelV1AdminUser {
36
+ /** Primary email of the admin user. */
37
+ email?: string;
38
+ /** Family name of the admin user. */
39
+ familyName?: string;
40
+ /** Given name of the admin user. */
41
+ givenName?: string;
42
+ }
43
+ interface GoogleCloudChannelV1alpha1AssociationInfo {
44
+ /** The name of the base entitlement, for which this entitlement is an add-on. */
45
+ baseEntitlement?: string;
46
+ }
47
+ interface GoogleCloudChannelV1alpha1ChannelPartnerEvent {
48
+ /** Resource name for the Channel Partner Link. Channel_partner uses the format: accounts/{account_id}/channelPartnerLinks/{channel_partner_id} */
49
+ channelPartner?: string;
50
+ /** Type of event performed on the Channel Partner. */
51
+ eventType?: string;
52
+ }
53
+ interface GoogleCloudChannelV1alpha1CommitmentSettings {
54
+ /** Output only. Commitment end timestamp. */
55
+ endTime?: string;
56
+ /** Optional. Renewal settings applicable for a commitment-based Offer. */
57
+ renewalSettings?: GoogleCloudChannelV1alpha1RenewalSettings;
58
+ /** Output only. Commitment start timestamp. */
59
+ startTime?: string;
60
+ }
61
+ interface GoogleCloudChannelV1alpha1CustomerEvent {
62
+ /** Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id} */
63
+ customer?: string;
64
+ /** Type of event which happened on the customer. */
65
+ eventType?: string;
66
+ }
67
+ interface GoogleCloudChannelV1alpha1Entitlement {
68
+ /** The current number of users that are assigned a license for the product defined in provisioned_service.skuId. Read-only. Deprecated: Use `parameters` instead. */
69
+ assignedUnits?: number;
70
+ /** Association information to other entitlements. */
71
+ associationInfo?: GoogleCloudChannelV1alpha1AssociationInfo;
72
+ /**
73
+ * Cloud Identity ID of a channel partner who will be the direct reseller for the customer's order. This field is generally used in 2-tier ordering, where the order is placed by a
74
+ * top-level distributor on behalf of their channel partner or reseller. Required for distributors. Deprecated: `channel_partner_id` has been moved to the Customer.
75
+ */
76
+ channelPartnerId?: string;
77
+ /** Commitment settings for a commitment-based Offer. Required for commitment based offers. */
78
+ commitmentSettings?: GoogleCloudChannelV1alpha1CommitmentSettings;
79
+ /** Output only. The time at which the entitlement is created. */
80
+ createTime?: string;
81
+ /**
82
+ * Maximum number of units for a non commitment-based Offer, such as Flexible, Trial or Free entitlements. For commitment-based entitlements, this is a read-only field, which only the
83
+ * internal support team can update. Deprecated: Use `parameters` instead.
84
+ */
85
+ maxUnits?: number;
86
+ /** Output only. Resource name of an entitlement in the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}. */
87
+ name?: string;
88
+ /**
89
+ * Number of units for a commitment-based Offer. For example, for seat-based Offers, this would be the number of seats; for license-based Offers, this would be the number of licenses.
90
+ * Required for creating commitment-based Offers. Deprecated: Use `parameters` instead.
91
+ */
92
+ numUnits?: number;
93
+ /** Required. The offer resource name for which the entitlement is to be created. Takes the form: accounts/{account_id}/offers/{offer_id}. */
94
+ offer?: string;
95
+ /**
96
+ * Extended entitlement parameters. When creating an entitlement, valid parameter names and values are defined in the Offer.parameter_definitions. The response may include the
97
+ * following output-only Parameters: - assigned_units: The number of licenses assigned to users. - max_units: The maximum assignable units for a flexible offer. - num_units: The total
98
+ * commitment for commitment-based offers.
99
+ */
100
+ parameters?: GoogleCloudChannelV1alpha1Parameter[];
101
+ /** Output only. Service provisioning details for the entitlement. */
102
+ provisionedService?: GoogleCloudChannelV1alpha1ProvisionedService;
103
+ /** Output only. Current provisioning state of the entitlement. */
104
+ provisioningState?: string;
105
+ /**
106
+ * Optional. This purchase order (PO) information is for resellers to use for their company tracking usage. If a purchaseOrderId value is given, it appears in the API responses and
107
+ * shows up in the invoice. The property accepts up to 80 plain text characters. This is only supported for Google Workspace entitlements.
108
+ */
109
+ purchaseOrderId?: string;
110
+ /** Output only. Enumerable of all current suspension reasons for an entitlement. */
111
+ suspensionReasons?: string[];
112
+ /** Output only. Settings for trial offers. */
113
+ trialSettings?: GoogleCloudChannelV1alpha1TrialSettings;
114
+ /** Output only. The time at which the entitlement is updated. */
115
+ updateTime?: string;
116
+ }
117
+ interface GoogleCloudChannelV1alpha1EntitlementEvent {
118
+ /** Resource name of an entitlement of the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
119
+ entitlement?: string;
120
+ /** Type of event which happened on the entitlement. */
121
+ eventType?: string;
122
+ }
123
+ interface GoogleCloudChannelV1alpha1OperationMetadata {
124
+ /** The RPC that initiated this Long Running Operation. */
125
+ operationType?: string;
126
+ }
127
+ interface GoogleCloudChannelV1alpha1Parameter {
128
+ /**
129
+ * Output only. Specifies whether this parameter is allowed to be changed. For example, for a Google Workspace Business Starter entitlement in commitment plan, num_units is editable
130
+ * when entitlement is active.
131
+ */
132
+ editable?: boolean;
133
+ /** Name of the parameter. */
134
+ name?: string;
135
+ /** Value of the parameter. */
136
+ value?: GoogleCloudChannelV1alpha1Value;
137
+ }
138
+ interface GoogleCloudChannelV1alpha1Period {
139
+ /** Total duration of Period Type defined. */
140
+ duration?: number;
141
+ /** Period Type. */
142
+ periodType?: string;
143
+ }
144
+ interface GoogleCloudChannelV1alpha1ProvisionedService {
145
+ /** Output only. The product pertaining to the provisioning resource as specified in the Offer. */
146
+ productId?: string;
147
+ /**
148
+ * Output only. Provisioning ID of the entitlement. For Google Workspace, this is the underlying Subscription ID. For Google Cloud Platform, this is the Billing Account ID of the
149
+ * billing subaccount."
150
+ */
151
+ provisioningId?: string;
152
+ /** Output only. The SKU pertaining to the provisioning resource as specified in the Offer. */
153
+ skuId?: string;
154
+ }
155
+ interface GoogleCloudChannelV1alpha1RenewalSettings {
156
+ /** If true, disables commitment-based offer on renewal and switches to flexible or pay as you go. Deprecated: Use `payment_plan` instead. */
157
+ disableCommitment?: boolean;
158
+ /** If false, the plan will be completed at the end date. */
159
+ enableRenewal?: boolean;
160
+ /** Describes how frequently the reseller will be billed, such as once per month. */
161
+ paymentCycle?: GoogleCloudChannelV1alpha1Period;
162
+ /** Set if enable_renewal=true. Deprecated: Use `payment_cycle` instead. */
163
+ paymentOption?: string;
164
+ /** Describes how a reseller will be billed. */
165
+ paymentPlan?: string;
166
+ /** If true and enable_renewal = true, the unit (for example seats or licenses) will be set to the number of active units at renewal time. */
167
+ resizeUnitCount?: boolean;
168
+ }
169
+ interface GoogleCloudChannelV1alpha1SubscriberEvent {
170
+ /** Channel Partner event sent as part of Pub/Sub event to partners. */
171
+ channelPartnerEvent?: GoogleCloudChannelV1alpha1ChannelPartnerEvent;
172
+ /** Customer event sent as part of Pub/Sub event to partners. */
173
+ customerEvent?: GoogleCloudChannelV1alpha1CustomerEvent;
174
+ /** Entitlement event sent as part of Pub/Sub event to partners. */
175
+ entitlementEvent?: GoogleCloudChannelV1alpha1EntitlementEvent;
176
+ }
177
+ interface GoogleCloudChannelV1alpha1TransferEntitlementsResponse {
178
+ /** The transferred entitlements. */
179
+ entitlements?: GoogleCloudChannelV1alpha1Entitlement[];
180
+ }
181
+ interface GoogleCloudChannelV1alpha1TrialSettings {
182
+ /** Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example [Epoch converter](https://www.epochconverter.com). */
183
+ endTime?: string;
184
+ /** Determines if the entitlement is in a trial or not: * `true` - The entitlement is in trial. * `false` - The entitlement is not in trial. */
185
+ trial?: boolean;
186
+ }
187
+ interface GoogleCloudChannelV1alpha1Value {
188
+ /** Represents a boolean value. */
189
+ boolValue?: boolean;
190
+ /** Represents a double value. */
191
+ doubleValue?: number;
192
+ /** Represents an int64 value. */
193
+ int64Value?: string;
194
+ /** Represents an 'Any' proto value. */
195
+ protoValue?: { [P in string]: any };
196
+ /** Represents a string value. */
197
+ stringValue?: string;
198
+ }
199
+ interface GoogleCloudChannelV1AssociationInfo {
200
+ /** The name of the base entitlement, for which this entitlement is an add-on. */
201
+ baseEntitlement?: string;
202
+ }
203
+ interface GoogleCloudChannelV1CancelEntitlementRequest {
204
+ /**
205
+ * Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete. For example, you make an
206
+ * initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request
207
+ * ID. If it did, it will ignore the second request. The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) with the exception that zero UUID is not supported
208
+ * (`00000000-0000-0000-0000-000000000000`).
209
+ */
210
+ requestId?: string;
211
+ }
212
+ interface GoogleCloudChannelV1ChangeOfferRequest {
213
+ /** Required. New Offer. Format: accounts/{account_id}/offers/{offer_id}. */
214
+ offer?: string;
215
+ /** Optional. Parameters needed to purchase the Offer. To view the available Parameters refer to the Offer.parameter_definitions from the desired offer. */
216
+ parameters?: GoogleCloudChannelV1Parameter[];
217
+ /** Optional. Purchase order id provided by the reseller. */
218
+ purchaseOrderId?: string;
219
+ /**
220
+ * Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete. For example, you make an
221
+ * initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request
222
+ * ID. If it did, it will ignore the second request. The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) with the exception that zero UUID is not supported
223
+ * (`00000000-0000-0000-0000-000000000000`).
224
+ */
225
+ requestId?: string;
226
+ }
227
+ interface GoogleCloudChannelV1ChangeParametersRequest {
228
+ /**
229
+ * Required. Entitlement parameters to update. You can only change editable parameters. To view the available Parameters for a request, refer to the Offer.parameter_definitions from
230
+ * the desired offer.
231
+ */
232
+ parameters?: GoogleCloudChannelV1Parameter[];
233
+ /** Optional. Purchase order ID provided by the reseller. */
234
+ purchaseOrderId?: string;
235
+ /**
236
+ * Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete. For example, you make an
237
+ * initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request
238
+ * ID. If it did, it will ignore the second request. The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) with the exception that zero UUID is not supported
239
+ * (`00000000-0000-0000-0000-000000000000`).
240
+ */
241
+ requestId?: string;
242
+ }
243
+ interface GoogleCloudChannelV1ChangeRenewalSettingsRequest {
244
+ /** Required. New renewal settings. */
245
+ renewalSettings?: GoogleCloudChannelV1RenewalSettings;
246
+ /**
247
+ * Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete. For example, you make an
248
+ * initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request
249
+ * ID. If it did, it will ignore the second request. The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) with the exception that zero UUID is not supported
250
+ * (`00000000-0000-0000-0000-000000000000`).
251
+ */
252
+ requestId?: string;
253
+ }
254
+ interface GoogleCloudChannelV1ChannelPartnerLink {
255
+ /** Output only. Cloud Identity info of the channel partner (IR). */
256
+ channelPartnerCloudIdentityInfo?: GoogleCloudChannelV1CloudIdentityInfo;
257
+ /** Output only. Timestamp of when the channel partner link is created. */
258
+ createTime?: string;
259
+ /** Output only. URI of the web page where partner accepts the link invitation. */
260
+ inviteLinkUri?: string;
261
+ /** Required. State of the channel partner link. */
262
+ linkState?: string;
263
+ /** Output only. Resource name for the channel partner link, in the format accounts/{account_id}/channelPartnerLinks/{id}. */
264
+ name?: string;
265
+ /** Output only. Public identifier that a customer must use to generate a transfer token to move to this distributor-reseller combination. */
266
+ publicId?: string;
267
+ /** Required. Cloud Identity ID of the linked reseller. */
268
+ resellerCloudIdentityId?: string;
269
+ /** Output only. Timestamp of when the channel partner link is updated. */
270
+ updateTime?: string;
271
+ }
272
+ interface GoogleCloudChannelV1ChannelPartnerRepricingConfig {
273
+ /** Output only. Resource name of the ChannelPartnerRepricingConfig. Format: accounts/{account_id}/channelPartnerLinks/{channel_partner_id}/channelPartnerRepricingConfigs/{id}. */
274
+ name?: string;
275
+ /** Required. The configuration for bill modifications made by a reseller before sending it to ChannelPartner. */
276
+ repricingConfig?: GoogleCloudChannelV1RepricingConfig;
277
+ /** Output only. Timestamp of an update to the repricing rule. If `update_time` is after RepricingConfig.effective_invoice_month then it indicates this was set mid-month. */
278
+ updateTime?: string;
279
+ }
280
+ interface GoogleCloudChannelV1CheckCloudIdentityAccountsExistRequest {
281
+ /** Required. Domain to fetch for Cloud Identity account customer. */
282
+ domain?: string;
283
+ }
284
+ interface GoogleCloudChannelV1CheckCloudIdentityAccountsExistResponse {
285
+ /** The Cloud Identity accounts associated with the domain. */
286
+ cloudIdentityAccounts?: GoogleCloudChannelV1CloudIdentityCustomerAccount[];
287
+ }
288
+ interface GoogleCloudChannelV1CloudIdentityCustomerAccount {
289
+ /** If existing = true, the Cloud Identity ID of the customer. */
290
+ customerCloudIdentityId?: string;
291
+ /** If owned = true, the name of the customer that owns the Cloud Identity account. Customer_name uses the format: accounts/{account_id}/customers/{customer_id} */
292
+ customerName?: string;
293
+ /** Returns true if a Cloud Identity account exists for a specific domain. */
294
+ existing?: boolean;
295
+ /** Returns true if the Cloud Identity account is associated with a customer of the Channel Services partner. */
296
+ owned?: boolean;
297
+ }
298
+ interface GoogleCloudChannelV1CloudIdentityInfo {
299
+ /** Output only. URI of Customer's Admin console dashboard. */
300
+ adminConsoleUri?: string;
301
+ /** The alternate email. */
302
+ alternateEmail?: string;
303
+ /** CustomerType indicates verification type needed for using services. */
304
+ customerType?: string;
305
+ /** Edu information about the customer. */
306
+ eduData?: GoogleCloudChannelV1EduData;
307
+ /**
308
+ * Output only. Whether the domain is verified. This field is not returned for a Customer's cloud_identity_info resource. Partners can use the domains.get() method of the Workspace
309
+ * SDK's Directory API, or listen to the PRIMARY_DOMAIN_VERIFIED Pub/Sub event in to track domain verification of their resolve Workspace customers.
310
+ */
311
+ isDomainVerified?: boolean;
312
+ /** Language code. */
313
+ languageCode?: string;
314
+ /** Phone number associated with the Cloud Identity. */
315
+ phoneNumber?: string;
316
+ /** Output only. The primary domain name. */
317
+ primaryDomain?: string;
318
+ }
319
+ interface GoogleCloudChannelV1CommitmentSettings {
320
+ /** Output only. Commitment end timestamp. */
321
+ endTime?: string;
322
+ /** Optional. Renewal settings applicable for a commitment-based Offer. */
323
+ renewalSettings?: GoogleCloudChannelV1RenewalSettings;
324
+ /** Output only. Commitment start timestamp. */
325
+ startTime?: string;
326
+ }
327
+ interface GoogleCloudChannelV1Constraints {
328
+ /** Represents constraints required to purchase the Offer for a customer. */
329
+ customerConstraints?: GoogleCloudChannelV1CustomerConstraints;
330
+ }
331
+ interface GoogleCloudChannelV1ContactInfo {
332
+ /** Output only. The customer account contact's display name, formatted as a combination of the customer's first and last name. */
333
+ displayName?: string;
334
+ /**
335
+ * The customer account's contact email. Required for entitlements that create admin.google.com accounts, and serves as the customer's username for those accounts. Use this email to
336
+ * invite Team customers.
337
+ */
338
+ email?: string;
339
+ /** The customer account contact's first name. Optional for Team customers. */
340
+ firstName?: string;
341
+ /** The customer account contact's last name. Optional for Team customers. */
342
+ lastName?: string;
343
+ /** The customer account's contact phone number. */
344
+ phone?: string;
345
+ /** Optional. The customer account contact's job title. */
346
+ title?: string;
347
+ }
348
+ interface GoogleCloudChannelV1CreateEntitlementRequest {
349
+ /** Required. The entitlement to create. */
350
+ entitlement?: GoogleCloudChannelV1Entitlement;
351
+ /**
352
+ * Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete. For example, you make an
353
+ * initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request
354
+ * ID. If it did, it will ignore the second request. The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) with the exception that zero UUID is not supported
355
+ * (`00000000-0000-0000-0000-000000000000`).
356
+ */
357
+ requestId?: string;
358
+ }
359
+ interface GoogleCloudChannelV1Customer {
360
+ /**
361
+ * Secondary contact email. You need to provide an alternate email to create different domains if a primary contact email already exists. Users will receive a notification with
362
+ * credentials when you create an admin.google.com account. Secondary emails are also recovery email addresses. Alternate emails are optional when you create Team customers.
363
+ */
364
+ alternateEmail?: string;
365
+ /** Cloud Identity ID of the customer's channel partner. Populated only if a channel partner exists for this customer. */
366
+ channelPartnerId?: string;
367
+ /** Output only. The customer's Cloud Identity ID if the customer has a Cloud Identity resource. */
368
+ cloudIdentityId?: string;
369
+ /** Output only. Cloud Identity information for the customer. Populated only if a Cloud Identity account exists for this customer. */
370
+ cloudIdentityInfo?: GoogleCloudChannelV1CloudIdentityInfo;
371
+ /** Output only. Time when the customer was created. */
372
+ createTime?: string;
373
+ /** Required. The customer's primary domain. Must match the primary contact email's domain. */
374
+ domain?: string;
375
+ /** Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. */
376
+ languageCode?: string;
377
+ /** Output only. Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id} */
378
+ name?: string;
379
+ /** Required. Name of the organization that the customer entity represents. */
380
+ orgDisplayName?: string;
381
+ /**
382
+ * Required. The organization address for the customer. To enforce US laws and embargoes, we require a region and zip code. You must provide valid addresses for every customer. To set
383
+ * the customer's language, use the Customer-level language code.
384
+ */
385
+ orgPostalAddress?: GoogleTypePostalAddress;
386
+ /** Primary contact info. */
387
+ primaryContactInfo?: GoogleCloudChannelV1ContactInfo;
388
+ /** Output only. Time when the customer was updated. */
389
+ updateTime?: string;
390
+ }
391
+ interface GoogleCloudChannelV1CustomerConstraints {
392
+ /** Allowed Customer Type. */
393
+ allowedCustomerTypes?: string[];
394
+ /** Allowed geographical regions of the customer. */
395
+ allowedRegions?: string[];
396
+ /** Allowed Promotional Order Type. Present for Promotional offers. */
397
+ promotionalOrderTypes?: string[];
398
+ }
399
+ interface GoogleCloudChannelV1CustomerEvent {
400
+ /** Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id} */
401
+ customer?: string;
402
+ /** Type of event which happened on the customer. */
403
+ eventType?: string;
404
+ }
405
+ interface GoogleCloudChannelV1CustomerRepricingConfig {
406
+ /** Output only. Resource name of the CustomerRepricingConfig. Format: accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. */
407
+ name?: string;
408
+ /** Required. The configuration for bill modifications made by a reseller before sending it to customers. */
409
+ repricingConfig?: GoogleCloudChannelV1RepricingConfig;
410
+ /** Output only. Timestamp of an update to the repricing rule. If `update_time` is after RepricingConfig.effective_invoice_month then it indicates this was set mid-month. */
411
+ updateTime?: string;
412
+ }
413
+ interface GoogleCloudChannelV1EduData {
414
+ /** Size of the institute. */
415
+ instituteSize?: string;
416
+ /** Designated institute type of customer. */
417
+ instituteType?: string;
418
+ /** Web address for the edu customer's institution. */
419
+ website?: string;
420
+ }
421
+ interface GoogleCloudChannelV1Entitlement {
422
+ /** Association information to other entitlements. */
423
+ associationInfo?: GoogleCloudChannelV1AssociationInfo;
424
+ /** Commitment settings for a commitment-based Offer. Required for commitment based offers. */
425
+ commitmentSettings?: GoogleCloudChannelV1CommitmentSettings;
426
+ /** Output only. The time at which the entitlement is created. */
427
+ createTime?: string;
428
+ /** Output only. Resource name of an entitlement in the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}. */
429
+ name?: string;
430
+ /** Required. The offer resource name for which the entitlement is to be created. Takes the form: accounts/{account_id}/offers/{offer_id}. */
431
+ offer?: string;
432
+ /**
433
+ * Extended entitlement parameters. When creating an entitlement, valid parameter names and values are defined in the Offer.parameter_definitions. The response may include the
434
+ * following output-only Parameters: - assigned_units: The number of licenses assigned to users. - max_units: The maximum assignable units for a flexible offer. - num_units: The total
435
+ * commitment for commitment-based offers.
436
+ */
437
+ parameters?: GoogleCloudChannelV1Parameter[];
438
+ /** Output only. Service provisioning details for the entitlement. */
439
+ provisionedService?: GoogleCloudChannelV1ProvisionedService;
440
+ /** Output only. Current provisioning state of the entitlement. */
441
+ provisioningState?: string;
442
+ /**
443
+ * Optional. This purchase order (PO) information is for resellers to use for their company tracking usage. If a purchaseOrderId value is given, it appears in the API responses and
444
+ * shows up in the invoice. The property accepts up to 80 plain text characters. This is only supported for Google Workspace entitlements.
445
+ */
446
+ purchaseOrderId?: string;
447
+ /** Output only. Enumerable of all current suspension reasons for an entitlement. */
448
+ suspensionReasons?: string[];
449
+ /** Output only. Settings for trial offers. */
450
+ trialSettings?: GoogleCloudChannelV1TrialSettings;
451
+ /** Output only. The time at which the entitlement is updated. */
452
+ updateTime?: string;
453
+ }
454
+ interface GoogleCloudChannelV1EntitlementEvent {
455
+ /** Resource name of an entitlement of the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
456
+ entitlement?: string;
457
+ /** Type of event which happened on the entitlement. */
458
+ eventType?: string;
459
+ }
460
+ interface GoogleCloudChannelV1ImportCustomerRequest {
461
+ /**
462
+ * Optional. The super admin of the resold customer generates this token to authorize a reseller to access their Cloud Identity and purchase entitlements on their behalf. You can omit
463
+ * this token after authorization. See https://support.google.com/a/answer/7643790 for more details.
464
+ */
465
+ authToken?: string;
466
+ /**
467
+ * Optional. Cloud Identity ID of a channel partner who will be the direct reseller for the customer's order. This field is required for 2-tier transfer scenarios and can be provided
468
+ * via the request Parent binding as well.
469
+ */
470
+ channelPartnerId?: string;
471
+ /** Required. Customer's Cloud Identity ID */
472
+ cloudIdentityId?: string;
473
+ /** Optional. Specifies the customer that will receive imported Cloud Identity information. Format: accounts/{account_id}/customers/{customer_id} */
474
+ customer?: string;
475
+ /** Required. Customer domain. */
476
+ domain?: string;
477
+ /** Required. Choose to overwrite an existing customer if found. This must be set to true if there is an existing customer with a conflicting region code or domain. */
478
+ overwriteIfExists?: boolean;
479
+ }
480
+ interface GoogleCloudChannelV1ListChannelPartnerLinksResponse {
481
+ /** The Channel partner links for a reseller. */
482
+ channelPartnerLinks?: GoogleCloudChannelV1ChannelPartnerLink[];
483
+ /** A token to retrieve the next page of results. Pass to ListChannelPartnerLinksRequest.page_token to obtain that page. */
484
+ nextPageToken?: string;
485
+ }
486
+ interface GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse {
487
+ /** The repricing configs for this channel partner. */
488
+ channelPartnerRepricingConfigs?: GoogleCloudChannelV1ChannelPartnerRepricingConfig[];
489
+ /** A token to retrieve the next page of results. Pass to ListChannelPartnerRepricingConfigsRequest.page_token to obtain that page. */
490
+ nextPageToken?: string;
491
+ }
492
+ interface GoogleCloudChannelV1ListCustomerRepricingConfigsResponse {
493
+ /** The repricing configs for this channel partner. */
494
+ customerRepricingConfigs?: GoogleCloudChannelV1CustomerRepricingConfig[];
495
+ /** A token to retrieve the next page of results. Pass to ListCustomerRepricingConfigsRequest.page_token to obtain that page. */
496
+ nextPageToken?: string;
497
+ }
498
+ interface GoogleCloudChannelV1ListCustomersResponse {
499
+ /** The customers belonging to a reseller or distributor. */
500
+ customers?: GoogleCloudChannelV1Customer[];
501
+ /** A token to retrieve the next page of results. Pass to ListCustomersRequest.page_token to obtain that page. */
502
+ nextPageToken?: string;
503
+ }
504
+ interface GoogleCloudChannelV1ListEntitlementsResponse {
505
+ /** The reseller customer's entitlements. */
506
+ entitlements?: GoogleCloudChannelV1Entitlement[];
507
+ /** A token to list the next page of results. Pass to ListEntitlementsRequest.page_token to obtain that page. */
508
+ nextPageToken?: string;
509
+ }
510
+ interface GoogleCloudChannelV1ListOffersResponse {
511
+ /** A token to retrieve the next page of results. */
512
+ nextPageToken?: string;
513
+ /** The list of Offers requested. */
514
+ offers?: GoogleCloudChannelV1Offer[];
515
+ }
516
+ interface GoogleCloudChannelV1ListProductsResponse {
517
+ /** A token to retrieve the next page of results. */
518
+ nextPageToken?: string;
519
+ /** List of Products requested. */
520
+ products?: GoogleCloudChannelV1Product[];
521
+ }
522
+ interface GoogleCloudChannelV1ListPurchasableOffersResponse {
523
+ /** A token to retrieve the next page of results. */
524
+ nextPageToken?: string;
525
+ /** The list of Offers requested. */
526
+ purchasableOffers?: GoogleCloudChannelV1PurchasableOffer[];
527
+ }
528
+ interface GoogleCloudChannelV1ListPurchasableSkusResponse {
529
+ /** A token to retrieve the next page of results. */
530
+ nextPageToken?: string;
531
+ /** The list of SKUs requested. */
532
+ purchasableSkus?: GoogleCloudChannelV1PurchasableSku[];
533
+ }
534
+ interface GoogleCloudChannelV1ListSkusResponse {
535
+ /** A token to retrieve the next page of results. */
536
+ nextPageToken?: string;
537
+ /** The list of SKUs requested. */
538
+ skus?: GoogleCloudChannelV1Sku[];
539
+ }
540
+ interface GoogleCloudChannelV1ListSubscribersResponse {
541
+ /** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
542
+ nextPageToken?: string;
543
+ /** List of service accounts which have subscriber access to the topic. */
544
+ serviceAccounts?: string[];
545
+ /** Name of the topic registered with the reseller. */
546
+ topic?: string;
547
+ }
548
+ interface GoogleCloudChannelV1ListTransferableOffersRequest {
549
+ /** Customer's Cloud Identity ID */
550
+ cloudIdentityId?: string;
551
+ /** A reseller should create a customer and use the resource name of that customer here. */
552
+ customerName?: string;
553
+ /** Optional. The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified. The default value is "en-US". */
554
+ languageCode?: string;
555
+ /**
556
+ * Requested page size. Server might return fewer results than requested. If unspecified, returns at most 100 offers. The maximum value is 1000; the server will coerce values above
557
+ * 1000.
558
+ */
559
+ pageSize?: number;
560
+ /**
561
+ * A token for a page of results other than the first page. Obtained using ListTransferableOffersResponse.next_page_token of the previous CloudChannelService.ListTransferableOffers
562
+ * call.
563
+ */
564
+ pageToken?: string;
565
+ /** Required. The SKU to look up Offers for. */
566
+ sku?: string;
567
+ }
568
+ interface GoogleCloudChannelV1ListTransferableOffersResponse {
569
+ /** A token to retrieve the next page of results. Pass to ListTransferableOffersRequest.page_token to obtain that page. */
570
+ nextPageToken?: string;
571
+ /** Information about Offers for a customer that can be used for transfer. */
572
+ transferableOffers?: GoogleCloudChannelV1TransferableOffer[];
573
+ }
574
+ interface GoogleCloudChannelV1ListTransferableSkusRequest {
575
+ /**
576
+ * The super admin of the resold customer generates this token to authorize a reseller to access their Cloud Identity and purchase entitlements on their behalf. You can omit this token
577
+ * after authorization. See https://support.google.com/a/answer/7643790 for more details.
578
+ */
579
+ authToken?: string;
580
+ /** Customer's Cloud Identity ID */
581
+ cloudIdentityId?: string;
582
+ /** A reseller is required to create a customer and use the resource name of the created customer here. Customer_name uses the format: accounts/{account_id}/customers/{customer_id} */
583
+ customerName?: string;
584
+ /** The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified. The default value is "en-US". Optional. */
585
+ languageCode?: string;
586
+ /**
587
+ * The requested page size. Server might return fewer results than requested. If unspecified, returns at most 100 SKUs. The maximum value is 1000; the server will coerce values above
588
+ * 1000. Optional.
589
+ */
590
+ pageSize?: number;
591
+ /**
592
+ * A token for a page of results other than the first page. Obtained using ListTransferableSkusResponse.next_page_token of the previous CloudChannelService.ListTransferableSkus call.
593
+ * Optional.
594
+ */
595
+ pageToken?: string;
596
+ }
597
+ interface GoogleCloudChannelV1ListTransferableSkusResponse {
598
+ /** A token to retrieve the next page of results. Pass to ListTransferableSkusRequest.page_token to obtain that page. */
599
+ nextPageToken?: string;
600
+ /** Information about existing SKUs for a customer that needs a transfer. */
601
+ transferableSkus?: GoogleCloudChannelV1TransferableSku[];
602
+ }
603
+ interface GoogleCloudChannelV1MarketingInfo {
604
+ /** Default logo. */
605
+ defaultLogo?: GoogleCloudChannelV1Media;
606
+ /** Human readable description. Description can contain HTML. */
607
+ description?: string;
608
+ /** Human readable name. */
609
+ displayName?: string;
610
+ }
611
+ interface GoogleCloudChannelV1Media {
612
+ /** URL of the media. */
613
+ content?: string;
614
+ /** Title of the media. */
615
+ title?: string;
616
+ /** Type of the media. */
617
+ type?: string;
618
+ }
619
+ interface GoogleCloudChannelV1Offer {
620
+ /** Constraints on transacting the Offer. */
621
+ constraints?: GoogleCloudChannelV1Constraints;
622
+ /** Output only. End of the Offer validity time. */
623
+ endTime?: string;
624
+ /** Marketing information for the Offer. */
625
+ marketingInfo?: GoogleCloudChannelV1MarketingInfo;
626
+ /** Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id} */
627
+ name?: string;
628
+ /** Parameters required to use current Offer to purchase. */
629
+ parameterDefinitions?: GoogleCloudChannelV1ParameterDefinition[];
630
+ /** Describes the payment plan for the Offer. */
631
+ plan?: GoogleCloudChannelV1Plan;
632
+ /** Price for each monetizable resource type. */
633
+ priceByResources?: GoogleCloudChannelV1PriceByResource[];
634
+ /** SKU the offer is associated with. */
635
+ sku?: GoogleCloudChannelV1Sku;
636
+ /** Start of the Offer validity time. */
637
+ startTime?: string;
638
+ }
639
+ interface GoogleCloudChannelV1OperationMetadata {
640
+ /** The RPC that initiated this Long Running Operation. */
641
+ operationType?: string;
642
+ }
643
+ interface GoogleCloudChannelV1Parameter {
644
+ /**
645
+ * Output only. Specifies whether this parameter is allowed to be changed. For example, for a Google Workspace Business Starter entitlement in commitment plan, num_units is editable
646
+ * when entitlement is active.
647
+ */
648
+ editable?: boolean;
649
+ /** Name of the parameter. */
650
+ name?: string;
651
+ /** Value of the parameter. */
652
+ value?: GoogleCloudChannelV1Value;
653
+ }
654
+ interface GoogleCloudChannelV1ParameterDefinition {
655
+ /** If not empty, parameter values must be drawn from this list. For example, [us-west1, us-west2, ...] Applicable to STRING parameter type. */
656
+ allowedValues?: GoogleCloudChannelV1Value[];
657
+ /**
658
+ * Maximum value of the parameter, if applicable. Inclusive. For example, maximum seats when purchasing Google Workspace Business Standard. Applicable to INT64 and DOUBLE parameter
659
+ * types.
660
+ */
661
+ maxValue?: GoogleCloudChannelV1Value;
662
+ /** Minimal value of the parameter, if applicable. Inclusive. For example, minimal commitment when purchasing Anthos is 0.01. Applicable to INT64 and DOUBLE parameter types. */
663
+ minValue?: GoogleCloudChannelV1Value;
664
+ /** Name of the parameter. */
665
+ name?: string;
666
+ /** If set to true, parameter is optional to purchase this Offer. */
667
+ optional?: boolean;
668
+ /** Data type of the parameter. Minimal value, Maximum value and allowed values will use specified data type here. */
669
+ parameterType?: string;
670
+ }
671
+ interface GoogleCloudChannelV1PercentageAdjustment {
672
+ /** The percentage of the bill to adjust. For example: Mark down by 1% => "-1.00" Mark up by 1% => "1.00" Pass-Through => "0.00" */
673
+ percentage?: GoogleTypeDecimal;
674
+ }
675
+ interface GoogleCloudChannelV1Period {
676
+ /** Total duration of Period Type defined. */
677
+ duration?: number;
678
+ /** Period Type. */
679
+ periodType?: string;
680
+ }
681
+ interface GoogleCloudChannelV1Plan {
682
+ /** Reseller Billing account to charge after an offer transaction. Only present for Google Cloud Platform offers. */
683
+ billingAccount?: string;
684
+ /** Describes how frequently the reseller will be billed, such as once per month. */
685
+ paymentCycle?: GoogleCloudChannelV1Period;
686
+ /** Describes how a reseller will be billed. */
687
+ paymentPlan?: string;
688
+ /** Specifies when the payment needs to happen. */
689
+ paymentType?: string;
690
+ /**
691
+ * Present for Offers with a trial period. For trial-only Offers, a paid service needs to start before the trial period ends for continued service. For Regular Offers with a trial
692
+ * period, the regular pricing goes into effect when trial period ends, or if paid service is started before the end of the trial period.
693
+ */
694
+ trialPeriod?: GoogleCloudChannelV1Period;
695
+ }
696
+ interface GoogleCloudChannelV1Price {
697
+ /** Base price. */
698
+ basePrice?: GoogleTypeMoney;
699
+ /** Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2. */
700
+ discount?: number;
701
+ /** Effective Price after applying the discounts. */
702
+ effectivePrice?: GoogleTypeMoney;
703
+ /** Link to external price list, such as link to Google Voice rate card. */
704
+ externalPriceUri?: string;
705
+ }
706
+ interface GoogleCloudChannelV1PriceByResource {
707
+ /** Price of the Offer. Present if there are no price phases. */
708
+ price?: GoogleCloudChannelV1Price;
709
+ /** Specifies the price by time range. */
710
+ pricePhases?: GoogleCloudChannelV1PricePhase[];
711
+ /** Resource Type. Example: SEAT */
712
+ resourceType?: string;
713
+ }
714
+ interface GoogleCloudChannelV1PricePhase {
715
+ /** Defines first period for the phase. */
716
+ firstPeriod?: number;
717
+ /** Defines first period for the phase. */
718
+ lastPeriod?: number;
719
+ /** Defines the phase period type. */
720
+ periodType?: string;
721
+ /** Price of the phase. Present if there are no price tiers. */
722
+ price?: GoogleCloudChannelV1Price;
723
+ /** Price by the resource tiers. */
724
+ priceTiers?: GoogleCloudChannelV1PriceTier[];
725
+ }
726
+ interface GoogleCloudChannelV1PriceTier {
727
+ /** First resource for which the tier price applies. */
728
+ firstResource?: number;
729
+ /** Last resource for which the tier price applies. */
730
+ lastResource?: number;
731
+ /** Price of the tier. */
732
+ price?: GoogleCloudChannelV1Price;
733
+ }
734
+ interface GoogleCloudChannelV1Product {
735
+ /** Marketing information for the product. */
736
+ marketingInfo?: GoogleCloudChannelV1MarketingInfo;
737
+ /** Resource Name of the Product. Format: products/{product_id} */
738
+ name?: string;
739
+ }
740
+ interface GoogleCloudChannelV1ProvisionCloudIdentityRequest {
741
+ /** CloudIdentity-specific customer information. */
742
+ cloudIdentityInfo?: GoogleCloudChannelV1CloudIdentityInfo;
743
+ /** Admin user information. */
744
+ user?: GoogleCloudChannelV1AdminUser;
745
+ /** Validate the request and preview the review, but do not post it. */
746
+ validateOnly?: boolean;
747
+ }
748
+ interface GoogleCloudChannelV1ProvisionedService {
749
+ /** Output only. The product pertaining to the provisioning resource as specified in the Offer. */
750
+ productId?: string;
751
+ /**
752
+ * Output only. Provisioning ID of the entitlement. For Google Workspace, this is the underlying Subscription ID. For Google Cloud Platform, this is the Billing Account ID of the
753
+ * billing subaccount."
754
+ */
755
+ provisioningId?: string;
756
+ /** Output only. The SKU pertaining to the provisioning resource as specified in the Offer. */
757
+ skuId?: string;
758
+ }
759
+ interface GoogleCloudChannelV1PurchasableOffer {
760
+ /** Offer. */
761
+ offer?: GoogleCloudChannelV1Offer;
762
+ }
763
+ interface GoogleCloudChannelV1PurchasableSku {
764
+ /** SKU */
765
+ sku?: GoogleCloudChannelV1Sku;
766
+ }
767
+ interface GoogleCloudChannelV1RegisterSubscriberRequest {
768
+ /** Required. Service account that provides subscriber access to the registered topic. */
769
+ serviceAccount?: string;
770
+ }
771
+ interface GoogleCloudChannelV1RegisterSubscriberResponse {
772
+ /** Name of the topic the subscriber will listen to. */
773
+ topic?: string;
774
+ }
775
+ interface GoogleCloudChannelV1RenewalSettings {
776
+ /** If false, the plan will be completed at the end date. */
777
+ enableRenewal?: boolean;
778
+ /** Describes how frequently the reseller will be billed, such as once per month. */
779
+ paymentCycle?: GoogleCloudChannelV1Period;
780
+ /** Describes how a reseller will be billed. */
781
+ paymentPlan?: string;
782
+ /** If true and enable_renewal = true, the unit (for example seats or licenses) will be set to the number of active units at renewal time. */
783
+ resizeUnitCount?: boolean;
784
+ }
785
+ interface GoogleCloudChannelV1RepricingAdjustment {
786
+ /** Flat markup or markdown on an entire bill. */
787
+ percentageAdjustment?: GoogleCloudChannelV1PercentageAdjustment;
788
+ }
789
+ interface GoogleCloudChannelV1RepricingConfig {
790
+ /** Required. Information about the adjustment. */
791
+ adjustment?: GoogleCloudChannelV1RepricingAdjustment;
792
+ /** Applies the repricing configuration at the channel partner level. This is the only supported value for ChannelPartnerRepricingConfig. */
793
+ channelPartnerGranularity?: any;
794
+ /** Required. The YearMonth when these adjustments activate. The Day field needs to be "0" since we only accept YearMonth repricing boundaries. */
795
+ effectiveInvoiceMonth?: GoogleTypeDate;
796
+ /** Applies the repricing configuration at the entitlement level. This is the only supported value for CustomerRepricingConfig. */
797
+ entitlementGranularity?: GoogleCloudChannelV1RepricingConfigEntitlementGranularity;
798
+ /** Required. The RebillingBasis to use for this bill. Specifies the relative cost based on repricing costs you will apply. */
799
+ rebillingBasis?: string;
800
+ }
801
+ // tslint:disable-next-line:no-empty-interface
802
+ interface GoogleCloudChannelV1RepricingConfigChannelPartnerGranularity {
803
+ }
804
+ interface GoogleCloudChannelV1RepricingConfigEntitlementGranularity {
805
+ /** Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
806
+ entitlement?: string;
807
+ }
808
+ interface GoogleCloudChannelV1Sku {
809
+ /** Marketing information for the SKU. */
810
+ marketingInfo?: GoogleCloudChannelV1MarketingInfo;
811
+ /** Resource Name of the SKU. Format: products/{product_id}/skus/{sku_id} */
812
+ name?: string;
813
+ /** Product the SKU is associated with. */
814
+ product?: GoogleCloudChannelV1Product;
815
+ }
816
+ interface GoogleCloudChannelV1StartPaidServiceRequest {
817
+ /**
818
+ * Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete. For example, you make an
819
+ * initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request
820
+ * ID. If it did, it will ignore the second request. The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) with the exception that zero UUID is not supported
821
+ * (`00000000-0000-0000-0000-000000000000`).
822
+ */
823
+ requestId?: string;
824
+ }
825
+ interface GoogleCloudChannelV1SubscriberEvent {
826
+ /** Customer event sent as part of Pub/Sub event to partners. */
827
+ customerEvent?: GoogleCloudChannelV1CustomerEvent;
828
+ /** Entitlement event sent as part of Pub/Sub event to partners. */
829
+ entitlementEvent?: GoogleCloudChannelV1EntitlementEvent;
830
+ }
831
+ interface GoogleCloudChannelV1SuspendEntitlementRequest {
832
+ /**
833
+ * Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete. For example, you make an
834
+ * initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request
835
+ * ID. If it did, it will ignore the second request. The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) with the exception that zero UUID is not supported
836
+ * (`00000000-0000-0000-0000-000000000000`).
837
+ */
838
+ requestId?: string;
839
+ }
840
+ interface GoogleCloudChannelV1TransferableOffer {
841
+ /** Offer with parameter constraints updated to allow the Transfer. */
842
+ offer?: GoogleCloudChannelV1Offer;
843
+ }
844
+ interface GoogleCloudChannelV1TransferableSku {
845
+ /** Optional. The customer to transfer has an entitlement with the populated legacy SKU. */
846
+ legacySku?: GoogleCloudChannelV1Sku;
847
+ /** The SKU pertaining to the provisioning resource as specified in the Offer. */
848
+ sku?: GoogleCloudChannelV1Sku;
849
+ /** Describes the transfer eligibility of a SKU. */
850
+ transferEligibility?: GoogleCloudChannelV1TransferEligibility;
851
+ }
852
+ interface GoogleCloudChannelV1TransferEligibility {
853
+ /** Localized description if reseller is not eligible to transfer the SKU. */
854
+ description?: string;
855
+ /** Specified the reason for ineligibility. */
856
+ ineligibilityReason?: string;
857
+ /** Whether reseller is eligible to transfer the SKU. */
858
+ isEligible?: boolean;
859
+ }
860
+ interface GoogleCloudChannelV1TransferEntitlementsRequest {
861
+ /**
862
+ * The super admin of the resold customer generates this token to authorize a reseller to access their Cloud Identity and purchase entitlements on their behalf. You can omit this token
863
+ * after authorization. See https://support.google.com/a/answer/7643790 for more details.
864
+ */
865
+ authToken?: string;
866
+ /** Required. The new entitlements to create or transfer. */
867
+ entitlements?: GoogleCloudChannelV1Entitlement[];
868
+ /**
869
+ * Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete. For example, you make an
870
+ * initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request
871
+ * ID. If it did, it will ignore the second request. The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) with the exception that zero UUID is not supported
872
+ * (`00000000-0000-0000-0000-000000000000`).
873
+ */
874
+ requestId?: string;
875
+ }
876
+ interface GoogleCloudChannelV1TransferEntitlementsResponse {
877
+ /** The transferred entitlements. */
878
+ entitlements?: GoogleCloudChannelV1Entitlement[];
879
+ }
880
+ interface GoogleCloudChannelV1TransferEntitlementsToGoogleRequest {
881
+ /** Required. The entitlements to transfer to Google. */
882
+ entitlements?: GoogleCloudChannelV1Entitlement[];
883
+ /**
884
+ * Optional. You can specify an optional unique request ID, and if you need to retry your request, the server will know to ignore the request if it's complete. For example, you make an
885
+ * initial request and the request times out. If you make the request again with the same request ID, the server can check if it received the original operation with the same request
886
+ * ID. If it did, it will ignore the second request. The request ID must be a valid [UUID](https://tools.ietf.org/html/rfc4122) with the exception that zero UUID is not supported
887
+ * (`00000000-0000-0000-0000-000000000000`).
888
+ */
889
+ requestId?: string;
890
+ }
891
+ interface GoogleCloudChannelV1TrialSettings {
892
+ /** Date when the trial ends. The value is in milliseconds using the UNIX Epoch format. See an example [Epoch converter](https://www.epochconverter.com). */
893
+ endTime?: string;
894
+ /** Determines if the entitlement is in a trial or not: * `true` - The entitlement is in trial. * `false` - The entitlement is not in trial. */
895
+ trial?: boolean;
896
+ }
897
+ interface GoogleCloudChannelV1UnregisterSubscriberRequest {
898
+ /** Required. Service account to unregister from subscriber access to the topic. */
899
+ serviceAccount?: string;
900
+ }
901
+ interface GoogleCloudChannelV1UnregisterSubscriberResponse {
902
+ /** Name of the topic the service account subscriber access was removed from. */
903
+ topic?: string;
904
+ }
905
+ interface GoogleCloudChannelV1UpdateChannelPartnerLinkRequest {
906
+ /** Required. The channel partner link to update. Only channel_partner_link.link_state is allowed for updates. */
907
+ channelPartnerLink?: GoogleCloudChannelV1ChannelPartnerLink;
908
+ /** Required. The update mask that applies to the resource. The only allowable value for an update mask is channel_partner_link.link_state. */
909
+ updateMask?: string;
910
+ }
911
+ interface GoogleCloudChannelV1Value {
912
+ /** Represents a boolean value. */
913
+ boolValue?: boolean;
914
+ /** Represents a double value. */
915
+ doubleValue?: number;
916
+ /** Represents an int64 value. */
917
+ int64Value?: string;
918
+ /** Represents an 'Any' proto value. */
919
+ protoValue?: { [P in string]: any };
920
+ /** Represents a string value. */
921
+ stringValue?: string;
922
+ }
923
+ // tslint:disable-next-line:no-empty-interface
924
+ interface GoogleLongrunningCancelOperationRequest {
925
+ }
926
+ interface GoogleLongrunningListOperationsResponse {
927
+ /** The standard List next-page token. */
928
+ nextPageToken?: string;
929
+ /** A list of operations that matches the specified filter in the request. */
930
+ operations?: GoogleLongrunningOperation[];
931
+ }
932
+ interface GoogleLongrunningOperation {
933
+ /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
934
+ done?: boolean;
935
+ /** The error result of the operation in case of failure or cancellation. */
936
+ error?: GoogleRpcStatus;
937
+ /**
938
+ * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
939
+ * metadata. Any method that returns a long-running operation should document the metadata type, if any.
940
+ */
941
+ metadata?: { [P in string]: any };
942
+ /**
943
+ * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending
944
+ * with `operations/{unique_id}`.
945
+ */
946
+ name?: string;
947
+ /**
948
+ * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
949
+ * original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the
950
+ * original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
951
+ */
952
+ response?: { [P in string]: any };
953
+ }
954
+ // tslint:disable-next-line:no-empty-interface
955
+ interface GoogleProtobufEmpty {
956
+ }
957
+ interface GoogleRpcStatus {
958
+ /** The status code, which should be an enum value of google.rpc.Code. */
959
+ code?: number;
960
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
961
+ details?: Array<{ [P in string]: any }>;
962
+ /**
963
+ * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
964
+ * client.
965
+ */
966
+ message?: string;
967
+ }
968
+ interface GoogleTypeDate {
969
+ /** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
970
+ day?: number;
971
+ /** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */
972
+ month?: number;
973
+ /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
974
+ year?: number;
975
+ }
976
+ interface GoogleTypeDecimal {
977
+ /**
978
+ * The decimal value, as a string. The string representation consists of an optional sign, `+` (`U+002B`) or `-` (`U+002D`), followed by a sequence of zero or more decimal digits ("the
979
+ * integer"), optionally followed by a fraction, optionally followed by an exponent. The fraction consists of a decimal point followed by zero or more decimal digits. The string must
980
+ * contain at least one digit in either the integer or the fraction. The number formed by the sign, the integer and the fraction is referred to as the significand. The exponent
981
+ * consists of the character `e` (`U+0065`) or `E` (`U+0045`) followed by one or more decimal digits. Services **should** normalize decimal values before storing them by: - Removing an
982
+ * explicitly-provided `+` sign (`+2.5` -> `2.5`). - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). - Coercing the exponent character to lower-case (`2.5E8` ->
983
+ * `2.5e8`). - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). Services **may** perform additional normalization based on its own needs and the internal decimal
984
+ * implementation selected, such as shifting the decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). Additionally, services **may** preserve trailing zeroes in
985
+ * the fraction to indicate increased precision, but are not required to do so. Note that only the `.` character is supported to divide the integer and the fraction; `,` **should not**
986
+ * be supported regardless of locale. Additionally, thousand separators **should not** be supported. If a service does support them, values **must** be normalized. The ENBF grammar is:
987
+ * DecimalString = [Sign] Significand [Exponent]; Sign = '+' | '-'; Significand = Digits '.' | [Digits] '.' Digits; Exponent = ('e' | 'E') [Sign] Digits; Digits = { '0' | '1' | '2' |
988
+ * '3' | '4' | '5' | '6' | '7' | '8' | '9' }; Services **should** clearly document the range of supported values, the maximum supported precision (total number of digits), and, if
989
+ * applicable, the scale (number of digits after the decimal point), as well as how it behaves when receiving out-of-bounds values. Services **may** choose to accept values passed as
990
+ * input even when the value has a higher precision or scale than the service supports, and **should** round the value to fit the supported scale. Alternatively, the service **may**
991
+ * error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if precision would be lost. Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) if the service
992
+ * receives a value outside of the supported range.
993
+ */
994
+ value?: string;
995
+ }
996
+ interface GoogleTypeMoney {
997
+ /** The three-letter currency code defined in ISO 4217. */
998
+ currencyCode?: string;
999
+ /**
1000
+ * Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units`
1001
+ * is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and
1002
+ * `nanos`=-750,000,000.
1003
+ */
1004
+ nanos?: number;
1005
+ /** The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. */
1006
+ units?: string;
1007
+ }
1008
+ interface GoogleTypePostalAddress {
1009
+ /**
1010
+ * Unstructured address lines describing the lower levels of an address. Because values in address_lines do not have type information and may sometimes contain multiple values in a
1011
+ * single field (e.g. "Austin, TX"), it is important that the line order is clear. The order of address lines should be "envelope order" for the country/region of the address. In
1012
+ * places where this can vary (e.g. Japan), address_language is used to make it explicit (e.g. "ja" for large-to-small ordering and "ja-Latn" or "en" for small-to-large). This way, the
1013
+ * most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a region_code with all remaining
1014
+ * information placed in the address_lines. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of
1015
+ * the address components until it was at least partially resolved. Creating an address only containing a region_code and address_lines, and then geocoding is the recommended way to
1016
+ * handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas).
1017
+ */
1018
+ addressLines?: string[];
1019
+ /**
1020
+ * Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture.
1021
+ * Specifically, for Spain this is the province and not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal
1022
+ * addresses. E.g. in Switzerland this should be left unpopulated.
1023
+ */
1024
+ administrativeArea?: string;
1025
+ /**
1026
+ * Optional. BCP-47 language code of the contents of this address (if known). This is often the UI language of the input form or is expected to match one of the languages used in the
1027
+ * address' country/region, or their transliterated equivalents. This can affect formatting in certain countries, but is not critical to the correctness of the data and will never
1028
+ * affect any validation or other non-formatting related operations. If this value is not known, it should be omitted (rather than specifying a possibly incorrect default). Examples:
1029
+ * "zh-Hant", "ja", "ja-Latn", "en".
1030
+ */
1031
+ languageCode?: string;
1032
+ /**
1033
+ * Optional. Generally refers to the city/town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do
1034
+ * not fit into this structure well, leave locality empty and use address_lines.
1035
+ */
1036
+ locality?: string;
1037
+ /** Optional. The name of the organization at the address. */
1038
+ organization?: string;
1039
+ /**
1040
+ * Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts
1041
+ * of the address (e.g. state/zip validation in the U.S.A.).
1042
+ */
1043
+ postalCode?: string;
1044
+ /** Optional. The recipient at the address. This field may, under certain circumstances, contain multiline information. For example, it might contain "care of" information. */
1045
+ recipients?: string[];
1046
+ /**
1047
+ * Required. CLDR region code of the country/region of the address. This is never inferred and it is up to the user to ensure the value is correct. See https://cldr.unicode.org/ and
1048
+ * https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details. Example: "CH" for Switzerland.
1049
+ */
1050
+ regionCode?: string;
1051
+ /** The schema revision of the `PostalAddress`. This must be set to 0, which is the latest revision. All new revisions **must** be backward compatible with old revisions. */
1052
+ revision?: number;
1053
+ /**
1054
+ * Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number
1055
+ * (e.g. "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
1056
+ */
1057
+ sortingCode?: string;
1058
+ /** Optional. Sublocality of the address. For example, this can be neighborhoods, boroughs, districts. */
1059
+ sublocality?: string;
1060
+ }
1061
+ interface ChannelPartnerRepricingConfigsResource {
1062
+ /**
1063
+ * Creates a ChannelPartnerRepricingConfig. Call this method to set modifications for a specific ChannelPartner's bill. You can only create configs if the
1064
+ * RepricingConfig.effective_invoice_month is a future month. If needed, you can create a config for the current month, with some restrictions. When creating a config for a future
1065
+ * month, make sure there are no existing configs for that RepricingConfig.effective_invoice_month. The following restrictions are for creating configs in the current month. * This
1066
+ * functionality is reserved for recovering from an erroneous config, and should not be used for regular business cases. * The new config will not modify exports used with other
1067
+ * configs. Changes to the config may be immediate, but may take up to 24 hours. * There is a limit of ten configs for any ChannelPartner or RepricingConfig.effective_invoice_month. *
1068
+ * The contained ChannelPartnerRepricingConfig.repricing_config vaule must be different from the value used in the current config for a ChannelPartner. Possible Error Codes: *
1069
+ * PERMISSION_DENIED: If the account making the request and the account being queried are different. * INVALID_ARGUMENT: Missing or invalid required parameters in the request. Also
1070
+ * displays if the updated config is for the current month or past months. * NOT_FOUND: The ChannelPartnerRepricingConfig specified does not exist or is not associated with the given
1071
+ * account. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the updated
1072
+ * ChannelPartnerRepricingConfig resource, otherwise returns an error.
1073
+ */
1074
+ create(request: {
1075
+ /** V1 error format. */
1076
+ "$.xgafv"?: string;
1077
+ /** OAuth access token. */
1078
+ access_token?: string;
1079
+ /** Data format for response. */
1080
+ alt?: string;
1081
+ /** JSONP */
1082
+ callback?: string;
1083
+ /** Selector specifying which fields to include in a partial response. */
1084
+ fields?: string;
1085
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1086
+ key?: string;
1087
+ /** OAuth 2.0 token for the current user. */
1088
+ oauth_token?: string;
1089
+ /** Required. The resource name of the ChannelPartner that will receive the repricing config. Parent uses the format: accounts/{account_id}/channelPartnerLinks/{channel_partner_id} */
1090
+ parent: string;
1091
+ /** Returns response with indentations and line breaks. */
1092
+ prettyPrint?: boolean;
1093
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1094
+ quotaUser?: string;
1095
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1096
+ upload_protocol?: string;
1097
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1098
+ uploadType?: string;
1099
+ /** Request body */
1100
+ resource: GoogleCloudChannelV1ChannelPartnerRepricingConfig;
1101
+ }): Request<GoogleCloudChannelV1ChannelPartnerRepricingConfig>;
1102
+ create(request: {
1103
+ /** V1 error format. */
1104
+ "$.xgafv"?: string;
1105
+ /** OAuth access token. */
1106
+ access_token?: string;
1107
+ /** Data format for response. */
1108
+ alt?: string;
1109
+ /** JSONP */
1110
+ callback?: string;
1111
+ /** Selector specifying which fields to include in a partial response. */
1112
+ fields?: string;
1113
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1114
+ key?: string;
1115
+ /** OAuth 2.0 token for the current user. */
1116
+ oauth_token?: string;
1117
+ /** Required. The resource name of the ChannelPartner that will receive the repricing config. Parent uses the format: accounts/{account_id}/channelPartnerLinks/{channel_partner_id} */
1118
+ parent: string;
1119
+ /** Returns response with indentations and line breaks. */
1120
+ prettyPrint?: boolean;
1121
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1122
+ quotaUser?: string;
1123
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1124
+ upload_protocol?: string;
1125
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1126
+ uploadType?: string;
1127
+ },
1128
+ body: GoogleCloudChannelV1ChannelPartnerRepricingConfig): Request<GoogleCloudChannelV1ChannelPartnerRepricingConfig>;
1129
+ /**
1130
+ * Deletes the given ChannelPartnerRepricingConfig permanently. You can only delete configs if their RepricingConfig.effective_invoice_month is set to a date after the current month.
1131
+ * Possible error codes: * PERMISSION_DENIED: The account making the request does not own this customer. * INVALID_ARGUMENT: Required request parameters are missing or invalid. *
1132
+ * FAILED_PRECONDITION: The ChannelPartnerRepricingConfig is active or in the past. * NOT_FOUND: No ChannelPartnerRepricingConfig found for the name in the request.
1133
+ */
1134
+ delete(request?: {
1135
+ /** V1 error format. */
1136
+ "$.xgafv"?: string;
1137
+ /** OAuth access token. */
1138
+ access_token?: string;
1139
+ /** Data format for response. */
1140
+ alt?: string;
1141
+ /** JSONP */
1142
+ callback?: string;
1143
+ /** Selector specifying which fields to include in a partial response. */
1144
+ fields?: string;
1145
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1146
+ key?: string;
1147
+ /** Required. The resource name of the channel partner repricing config rule to delete. */
1148
+ name: string;
1149
+ /** OAuth 2.0 token for the current user. */
1150
+ oauth_token?: string;
1151
+ /** Returns response with indentations and line breaks. */
1152
+ prettyPrint?: boolean;
1153
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1154
+ quotaUser?: string;
1155
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1156
+ upload_protocol?: string;
1157
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1158
+ uploadType?: string;
1159
+ }): Request<{}>;
1160
+ /**
1161
+ * Gets information about how a Distributor modifies their bill before sending it to a ChannelPartner. Possible Error Codes: * PERMISSION_DENIED: If the account making the request and
1162
+ * the account being queried are different. * NOT_FOUND: The ChannelPartnerRepricingConfig was not found. * INTERNAL: Any non-user error related to technical issues in the backend. In
1163
+ * this case, contact Cloud Channel support. Return Value: If successful, the ChannelPartnerRepricingConfig resource, otherwise returns an error.
1164
+ */
1165
+ get(request?: {
1166
+ /** V1 error format. */
1167
+ "$.xgafv"?: string;
1168
+ /** OAuth access token. */
1169
+ access_token?: string;
1170
+ /** Data format for response. */
1171
+ alt?: string;
1172
+ /** JSONP */
1173
+ callback?: string;
1174
+ /** Selector specifying which fields to include in a partial response. */
1175
+ fields?: string;
1176
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1177
+ key?: string;
1178
+ /** Required. The resource name of the ChannelPartnerRepricingConfig Format: accounts/{account_id}/channelPartnerLinks/{channel_partner_id}/channelPartnerRepricingConfigs/{id}. */
1179
+ name: string;
1180
+ /** OAuth 2.0 token for the current user. */
1181
+ oauth_token?: string;
1182
+ /** Returns response with indentations and line breaks. */
1183
+ prettyPrint?: boolean;
1184
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1185
+ quotaUser?: string;
1186
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1187
+ upload_protocol?: string;
1188
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1189
+ uploadType?: string;
1190
+ }): Request<GoogleCloudChannelV1ChannelPartnerRepricingConfig>;
1191
+ /**
1192
+ * Lists information about how a Reseller modifies their bill before sending it to a ChannelPartner. Possible Error Codes: * PERMISSION_DENIED: If the account making the request and
1193
+ * the account being queried are different. * NOT_FOUND: The ChannelPartnerRepricingConfig specified does not exist or is not associated with the given account. * INTERNAL: Any
1194
+ * non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the ChannelPartnerRepricingConfig resources. The
1195
+ * data for each resource is displayed in the ascending order of: * channel partner ID * RepricingConfig.effective_invoice_month * ChannelPartnerRepricingConfig.update_time If
1196
+ * unsuccessful, returns an error.
1197
+ */
1198
+ list(request?: {
1199
+ /** V1 error format. */
1200
+ "$.xgafv"?: string;
1201
+ /** OAuth access token. */
1202
+ access_token?: string;
1203
+ /** Data format for response. */
1204
+ alt?: string;
1205
+ /** JSONP */
1206
+ callback?: string;
1207
+ /** Selector specifying which fields to include in a partial response. */
1208
+ fields?: string;
1209
+ /**
1210
+ * Optional. A filter for [CloudChannelService.ListChannelPartnerRepricingConfigs] results (channel_partner_link only). You can use this filter when you support a BatchGet-like
1211
+ * query. To use the filter, you must set `parent=accounts/{account_id}/channelPartnerLinks/-`. Example: `channel_partner_link = accounts/account_id/channelPartnerLinks/c1` OR
1212
+ * `channel_partner_link = accounts/account_id/channelPartnerLinks/c2`.
1213
+ */
1214
+ filter?: string;
1215
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1216
+ key?: string;
1217
+ /** OAuth 2.0 token for the current user. */
1218
+ oauth_token?: string;
1219
+ /**
1220
+ * Optional. The maximum number of repricing configs to return. The service may return fewer than this value. If unspecified, returns a maximum of 50 rules. The maximum value is
1221
+ * 100; values above 100 will be coerced to 100.
1222
+ */
1223
+ pageSize?: number;
1224
+ /**
1225
+ * Optional. A token identifying a page of results beyond the first page. Obtained through ListChannelPartnerRepricingConfigsResponse.next_page_token of the previous
1226
+ * CloudChannelService.ListChannelPartnerRepricingConfigs call.
1227
+ */
1228
+ pageToken?: string;
1229
+ /**
1230
+ * Required. The resource name of the account's ChannelPartnerLink. Parent uses the format: accounts/{account_id}/channelPartnerLinks/{channel_partner_id}. Supports
1231
+ * accounts/{account_id}/channelPartnerLinks/- to retrieve configs for all channel partners.
1232
+ */
1233
+ parent: string;
1234
+ /** Returns response with indentations and line breaks. */
1235
+ prettyPrint?: boolean;
1236
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1237
+ quotaUser?: string;
1238
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1239
+ upload_protocol?: string;
1240
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1241
+ uploadType?: string;
1242
+ }): Request<GoogleCloudChannelV1ListChannelPartnerRepricingConfigsResponse>;
1243
+ /**
1244
+ * Updates a ChannelPartnerRepricingConfig. Call this method to set modifications for a specific ChannelPartner's bill. This method overwrites the existing CustomerRepricingConfig. You
1245
+ * can only update configs if the RepricingConfig.effective_invoice_month is a future month. To make changes to configs for the current month, use CreateChannelPartnerRepricingConfig,
1246
+ * taking note of its restrictions. You cannot update the RepricingConfig.effective_invoice_month. When updating a config in the future: * This config must already exist. Possible
1247
+ * Error Codes: * PERMISSION_DENIED: If the account making the request and the account being queried are different. * INVALID_ARGUMENT: Missing or invalid required parameters in the
1248
+ * request. Also displays if the updated config is for the current month or past months. * NOT_FOUND: The ChannelPartnerRepricingConfig specified does not exist or is not associated
1249
+ * with the given account. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the
1250
+ * updated ChannelPartnerRepricingConfig resource, otherwise returns an error.
1251
+ */
1252
+ patch(request: {
1253
+ /** V1 error format. */
1254
+ "$.xgafv"?: string;
1255
+ /** OAuth access token. */
1256
+ access_token?: string;
1257
+ /** Data format for response. */
1258
+ alt?: string;
1259
+ /** JSONP */
1260
+ callback?: string;
1261
+ /** Selector specifying which fields to include in a partial response. */
1262
+ fields?: string;
1263
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1264
+ key?: string;
1265
+ /** Output only. Resource name of the ChannelPartnerRepricingConfig. Format: accounts/{account_id}/channelPartnerLinks/{channel_partner_id}/channelPartnerRepricingConfigs/{id}. */
1266
+ name: string;
1267
+ /** OAuth 2.0 token for the current user. */
1268
+ oauth_token?: string;
1269
+ /** Returns response with indentations and line breaks. */
1270
+ prettyPrint?: boolean;
1271
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1272
+ quotaUser?: string;
1273
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1274
+ upload_protocol?: string;
1275
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1276
+ uploadType?: string;
1277
+ /** Request body */
1278
+ resource: GoogleCloudChannelV1ChannelPartnerRepricingConfig;
1279
+ }): Request<GoogleCloudChannelV1ChannelPartnerRepricingConfig>;
1280
+ patch(request: {
1281
+ /** V1 error format. */
1282
+ "$.xgafv"?: string;
1283
+ /** OAuth access token. */
1284
+ access_token?: string;
1285
+ /** Data format for response. */
1286
+ alt?: string;
1287
+ /** JSONP */
1288
+ callback?: string;
1289
+ /** Selector specifying which fields to include in a partial response. */
1290
+ fields?: string;
1291
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1292
+ key?: string;
1293
+ /** Output only. Resource name of the ChannelPartnerRepricingConfig. Format: accounts/{account_id}/channelPartnerLinks/{channel_partner_id}/channelPartnerRepricingConfigs/{id}. */
1294
+ name: string;
1295
+ /** OAuth 2.0 token for the current user. */
1296
+ oauth_token?: string;
1297
+ /** Returns response with indentations and line breaks. */
1298
+ prettyPrint?: boolean;
1299
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1300
+ quotaUser?: string;
1301
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1302
+ upload_protocol?: string;
1303
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1304
+ uploadType?: string;
1305
+ },
1306
+ body: GoogleCloudChannelV1ChannelPartnerRepricingConfig): Request<GoogleCloudChannelV1ChannelPartnerRepricingConfig>;
1307
+ }
1308
+ interface CustomersResource {
1309
+ /**
1310
+ * Creates a new Customer resource under the reseller or distributor account. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the
1311
+ * reseller account in the API request. * INVALID_ARGUMENT: * Required request parameters are missing or invalid. * Domain field value doesn't match the primary email domain. Return
1312
+ * value: The newly created Customer resource.
1313
+ */
1314
+ create(request: {
1315
+ /** V1 error format. */
1316
+ "$.xgafv"?: string;
1317
+ /** OAuth access token. */
1318
+ access_token?: string;
1319
+ /** Data format for response. */
1320
+ alt?: string;
1321
+ /** JSONP */
1322
+ callback?: string;
1323
+ /** Selector specifying which fields to include in a partial response. */
1324
+ fields?: string;
1325
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1326
+ key?: string;
1327
+ /** OAuth 2.0 token for the current user. */
1328
+ oauth_token?: string;
1329
+ /** Required. The resource name of reseller account in which to create the customer. Parent uses the format: accounts/{account_id} */
1330
+ parent: string;
1331
+ /** Returns response with indentations and line breaks. */
1332
+ prettyPrint?: boolean;
1333
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1334
+ quotaUser?: string;
1335
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1336
+ upload_protocol?: string;
1337
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1338
+ uploadType?: string;
1339
+ /** Request body */
1340
+ resource: GoogleCloudChannelV1Customer;
1341
+ }): Request<GoogleCloudChannelV1Customer>;
1342
+ create(request: {
1343
+ /** V1 error format. */
1344
+ "$.xgafv"?: string;
1345
+ /** OAuth access token. */
1346
+ access_token?: string;
1347
+ /** Data format for response. */
1348
+ alt?: string;
1349
+ /** JSONP */
1350
+ callback?: string;
1351
+ /** Selector specifying which fields to include in a partial response. */
1352
+ fields?: string;
1353
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1354
+ key?: string;
1355
+ /** OAuth 2.0 token for the current user. */
1356
+ oauth_token?: string;
1357
+ /** Required. The resource name of reseller account in which to create the customer. Parent uses the format: accounts/{account_id} */
1358
+ parent: string;
1359
+ /** Returns response with indentations and line breaks. */
1360
+ prettyPrint?: boolean;
1361
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1362
+ quotaUser?: string;
1363
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1364
+ upload_protocol?: string;
1365
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1366
+ uploadType?: string;
1367
+ },
1368
+ body: GoogleCloudChannelV1Customer): Request<GoogleCloudChannelV1Customer>;
1369
+ /**
1370
+ * Deletes the given Customer permanently. Possible error codes: * PERMISSION_DENIED: The account making the request does not own this customer. * INVALID_ARGUMENT: Required request
1371
+ * parameters are missing or invalid. * FAILED_PRECONDITION: The customer has existing entitlements. * NOT_FOUND: No Customer resource found for the name in the request.
1372
+ */
1373
+ delete(request?: {
1374
+ /** V1 error format. */
1375
+ "$.xgafv"?: string;
1376
+ /** OAuth access token. */
1377
+ access_token?: string;
1378
+ /** Data format for response. */
1379
+ alt?: string;
1380
+ /** JSONP */
1381
+ callback?: string;
1382
+ /** Selector specifying which fields to include in a partial response. */
1383
+ fields?: string;
1384
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1385
+ key?: string;
1386
+ /** Required. The resource name of the customer to delete. */
1387
+ name: string;
1388
+ /** OAuth 2.0 token for the current user. */
1389
+ oauth_token?: string;
1390
+ /** Returns response with indentations and line breaks. */
1391
+ prettyPrint?: boolean;
1392
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1393
+ quotaUser?: string;
1394
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1395
+ upload_protocol?: string;
1396
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1397
+ uploadType?: string;
1398
+ }): Request<{}>;
1399
+ /**
1400
+ * Returns the requested Customer resource. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API
1401
+ * request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer resource doesn't exist. Usually the result of an invalid name parameter.
1402
+ * Return value: The Customer resource.
1403
+ */
1404
+ get(request?: {
1405
+ /** V1 error format. */
1406
+ "$.xgafv"?: string;
1407
+ /** OAuth access token. */
1408
+ access_token?: string;
1409
+ /** Data format for response. */
1410
+ alt?: string;
1411
+ /** JSONP */
1412
+ callback?: string;
1413
+ /** Selector specifying which fields to include in a partial response. */
1414
+ fields?: string;
1415
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1416
+ key?: string;
1417
+ /** Required. The resource name of the customer to retrieve. Name uses the format: accounts/{account_id}/customers/{customer_id} */
1418
+ name: string;
1419
+ /** OAuth 2.0 token for the current user. */
1420
+ oauth_token?: string;
1421
+ /** Returns response with indentations and line breaks. */
1422
+ prettyPrint?: boolean;
1423
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1424
+ quotaUser?: string;
1425
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1426
+ upload_protocol?: string;
1427
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1428
+ uploadType?: string;
1429
+ }): Request<GoogleCloudChannelV1Customer>;
1430
+ /**
1431
+ * Imports a Customer from the Cloud Identity associated with the provided Cloud Identity ID or domain before a TransferEntitlements call. If a linked Customer already exists and
1432
+ * overwrite_if_exists is true, it will update that Customer's data. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller
1433
+ * account in the API request. * NOT_FOUND: Cloud Identity doesn't exist or was deleted. * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is expired or invalid. *
1434
+ * ALREADY_EXISTS: A customer already exists and has conflicting critical fields. Requires an overwrite. Return value: The Customer.
1435
+ */
1436
+ import(request: {
1437
+ /** V1 error format. */
1438
+ "$.xgafv"?: string;
1439
+ /** OAuth access token. */
1440
+ access_token?: string;
1441
+ /** Data format for response. */
1442
+ alt?: string;
1443
+ /** JSONP */
1444
+ callback?: string;
1445
+ /** Selector specifying which fields to include in a partial response. */
1446
+ fields?: string;
1447
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1448
+ key?: string;
1449
+ /** OAuth 2.0 token for the current user. */
1450
+ oauth_token?: string;
1451
+ /** Required. The resource name of the reseller's account. Parent takes the format: accounts/{account_id} or accounts/{account_id}/channelPartnerLinks/{channel_partner_id} */
1452
+ parent: string;
1453
+ /** Returns response with indentations and line breaks. */
1454
+ prettyPrint?: boolean;
1455
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1456
+ quotaUser?: string;
1457
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1458
+ upload_protocol?: string;
1459
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1460
+ uploadType?: string;
1461
+ /** Request body */
1462
+ resource: GoogleCloudChannelV1ImportCustomerRequest;
1463
+ }): Request<GoogleCloudChannelV1Customer>;
1464
+ import(request: {
1465
+ /** V1 error format. */
1466
+ "$.xgafv"?: string;
1467
+ /** OAuth access token. */
1468
+ access_token?: string;
1469
+ /** Data format for response. */
1470
+ alt?: string;
1471
+ /** JSONP */
1472
+ callback?: string;
1473
+ /** Selector specifying which fields to include in a partial response. */
1474
+ fields?: string;
1475
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1476
+ key?: string;
1477
+ /** OAuth 2.0 token for the current user. */
1478
+ oauth_token?: string;
1479
+ /** Required. The resource name of the reseller's account. Parent takes the format: accounts/{account_id} or accounts/{account_id}/channelPartnerLinks/{channel_partner_id} */
1480
+ parent: string;
1481
+ /** Returns response with indentations and line breaks. */
1482
+ prettyPrint?: boolean;
1483
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1484
+ quotaUser?: string;
1485
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1486
+ upload_protocol?: string;
1487
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1488
+ uploadType?: string;
1489
+ },
1490
+ body: GoogleCloudChannelV1ImportCustomerRequest): Request<GoogleCloudChannelV1Customer>;
1491
+ /**
1492
+ * List Customers. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT:
1493
+ * Required request parameters are missing or invalid. Return value: List of Customers, or an empty list if there are no customers.
1494
+ */
1495
+ list(request?: {
1496
+ /** V1 error format. */
1497
+ "$.xgafv"?: string;
1498
+ /** OAuth access token. */
1499
+ access_token?: string;
1500
+ /** Data format for response. */
1501
+ alt?: string;
1502
+ /** JSONP */
1503
+ callback?: string;
1504
+ /** Selector specifying which fields to include in a partial response. */
1505
+ fields?: string;
1506
+ /**
1507
+ * Optional. Filters applied to the [CloudChannelService.ListCustomers] results. See https://cloud.google.com/channel/docs/concepts/google-cloud/filter-customers for more
1508
+ * information.
1509
+ */
1510
+ filter?: string;
1511
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1512
+ key?: string;
1513
+ /** OAuth 2.0 token for the current user. */
1514
+ oauth_token?: string;
1515
+ /** Optional. The maximum number of customers to return. The service may return fewer than this value. If unspecified, returns at most 10 customers. The maximum value is 50. */
1516
+ pageSize?: number;
1517
+ /**
1518
+ * Optional. A token identifying a page of results other than the first page. Obtained through ListCustomersResponse.next_page_token of the previous
1519
+ * CloudChannelService.ListCustomers call.
1520
+ */
1521
+ pageToken?: string;
1522
+ /** Required. The resource name of the reseller account to list customers from. Parent uses the format: accounts/{account_id}. */
1523
+ parent: string;
1524
+ /** Returns response with indentations and line breaks. */
1525
+ prettyPrint?: boolean;
1526
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1527
+ quotaUser?: string;
1528
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1529
+ upload_protocol?: string;
1530
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1531
+ uploadType?: string;
1532
+ }): Request<GoogleCloudChannelV1ListCustomersResponse>;
1533
+ /**
1534
+ * Updates an existing Customer resource for the reseller or distributor. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the
1535
+ * reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: No Customer resource found for the name in the request.
1536
+ * Return value: The updated Customer resource.
1537
+ */
1538
+ patch(request: {
1539
+ /** V1 error format. */
1540
+ "$.xgafv"?: string;
1541
+ /** OAuth access token. */
1542
+ access_token?: string;
1543
+ /** Data format for response. */
1544
+ alt?: string;
1545
+ /** JSONP */
1546
+ callback?: string;
1547
+ /** Selector specifying which fields to include in a partial response. */
1548
+ fields?: string;
1549
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1550
+ key?: string;
1551
+ /** Output only. Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id} */
1552
+ name: string;
1553
+ /** OAuth 2.0 token for the current user. */
1554
+ oauth_token?: string;
1555
+ /** Returns response with indentations and line breaks. */
1556
+ prettyPrint?: boolean;
1557
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1558
+ quotaUser?: string;
1559
+ /** The update mask that applies to the resource. Optional. */
1560
+ updateMask?: string;
1561
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1562
+ upload_protocol?: string;
1563
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1564
+ uploadType?: string;
1565
+ /** Request body */
1566
+ resource: GoogleCloudChannelV1Customer;
1567
+ }): Request<GoogleCloudChannelV1Customer>;
1568
+ patch(request: {
1569
+ /** V1 error format. */
1570
+ "$.xgafv"?: string;
1571
+ /** OAuth access token. */
1572
+ access_token?: string;
1573
+ /** Data format for response. */
1574
+ alt?: string;
1575
+ /** JSONP */
1576
+ callback?: string;
1577
+ /** Selector specifying which fields to include in a partial response. */
1578
+ fields?: string;
1579
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1580
+ key?: string;
1581
+ /** Output only. Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id} */
1582
+ name: string;
1583
+ /** OAuth 2.0 token for the current user. */
1584
+ oauth_token?: string;
1585
+ /** Returns response with indentations and line breaks. */
1586
+ prettyPrint?: boolean;
1587
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1588
+ quotaUser?: string;
1589
+ /** The update mask that applies to the resource. Optional. */
1590
+ updateMask?: string;
1591
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1592
+ upload_protocol?: string;
1593
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1594
+ uploadType?: string;
1595
+ },
1596
+ body: GoogleCloudChannelV1Customer): Request<GoogleCloudChannelV1Customer>;
1597
+ }
1598
+ interface ChannelPartnerLinksResource {
1599
+ /**
1600
+ * Initiates a channel partner link between a distributor and a reseller, or between resellers in an n-tier reseller channel. Invited partners need to follow the invite_link_uri
1601
+ * provided in the response to accept. After accepting the invitation, a link is set up between the two parties. You must be a distributor to call this method. Possible error codes: *
1602
+ * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or
1603
+ * invalid. * ALREADY_EXISTS: The ChannelPartnerLink sent in the request already exists. * NOT_FOUND: No Cloud Identity customer exists for provided domain. * INTERNAL: Any non-user
1604
+ * error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel
1605
+ * support. Return value: The new ChannelPartnerLink resource.
1606
+ */
1607
+ create(request: {
1608
+ /** V1 error format. */
1609
+ "$.xgafv"?: string;
1610
+ /** OAuth access token. */
1611
+ access_token?: string;
1612
+ /** Data format for response. */
1613
+ alt?: string;
1614
+ /** JSONP */
1615
+ callback?: string;
1616
+ /** Selector specifying which fields to include in a partial response. */
1617
+ fields?: string;
1618
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1619
+ key?: string;
1620
+ /** OAuth 2.0 token for the current user. */
1621
+ oauth_token?: string;
1622
+ /** Required. Create a channel partner link for the provided reseller account's resource name. Parent uses the format: accounts/{account_id} */
1623
+ parent: string;
1624
+ /** Returns response with indentations and line breaks. */
1625
+ prettyPrint?: boolean;
1626
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1627
+ quotaUser?: string;
1628
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1629
+ upload_protocol?: string;
1630
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1631
+ uploadType?: string;
1632
+ /** Request body */
1633
+ resource: GoogleCloudChannelV1ChannelPartnerLink;
1634
+ }): Request<GoogleCloudChannelV1ChannelPartnerLink>;
1635
+ create(request: {
1636
+ /** V1 error format. */
1637
+ "$.xgafv"?: string;
1638
+ /** OAuth access token. */
1639
+ access_token?: string;
1640
+ /** Data format for response. */
1641
+ alt?: string;
1642
+ /** JSONP */
1643
+ callback?: string;
1644
+ /** Selector specifying which fields to include in a partial response. */
1645
+ fields?: string;
1646
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1647
+ key?: string;
1648
+ /** OAuth 2.0 token for the current user. */
1649
+ oauth_token?: string;
1650
+ /** Required. Create a channel partner link for the provided reseller account's resource name. Parent uses the format: accounts/{account_id} */
1651
+ parent: string;
1652
+ /** Returns response with indentations and line breaks. */
1653
+ prettyPrint?: boolean;
1654
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1655
+ quotaUser?: string;
1656
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1657
+ upload_protocol?: string;
1658
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1659
+ uploadType?: string;
1660
+ },
1661
+ body: GoogleCloudChannelV1ChannelPartnerLink): Request<GoogleCloudChannelV1ChannelPartnerLink>;
1662
+ /**
1663
+ * Returns the requested ChannelPartnerLink resource. You must be a distributor to call this method. Possible error codes: * PERMISSION_DENIED: The reseller account making the request
1664
+ * is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: ChannelPartnerLink resource not found
1665
+ * because of an invalid channel partner link name. Return value: The ChannelPartnerLink resource.
1666
+ */
1667
+ get(request?: {
1668
+ /** V1 error format. */
1669
+ "$.xgafv"?: string;
1670
+ /** OAuth access token. */
1671
+ access_token?: string;
1672
+ /** Data format for response. */
1673
+ alt?: string;
1674
+ /** JSONP */
1675
+ callback?: string;
1676
+ /** Selector specifying which fields to include in a partial response. */
1677
+ fields?: string;
1678
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1679
+ key?: string;
1680
+ /**
1681
+ * Required. The resource name of the channel partner link to retrieve. Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} where {id} is the Cloud Identity ID of
1682
+ * the partner.
1683
+ */
1684
+ name: string;
1685
+ /** OAuth 2.0 token for the current user. */
1686
+ oauth_token?: string;
1687
+ /** Returns response with indentations and line breaks. */
1688
+ prettyPrint?: boolean;
1689
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1690
+ quotaUser?: string;
1691
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1692
+ upload_protocol?: string;
1693
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1694
+ uploadType?: string;
1695
+ /** Optional. The level of granularity the ChannelPartnerLink will display. */
1696
+ view?: string;
1697
+ }): Request<GoogleCloudChannelV1ChannelPartnerLink>;
1698
+ /**
1699
+ * List ChannelPartnerLinks belonging to a distributor. You must be a distributor to call this method. Possible error codes: * PERMISSION_DENIED: The reseller account making the
1700
+ * request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. Return value: The list of the distributor
1701
+ * account's ChannelPartnerLink resources.
1702
+ */
1703
+ list(request?: {
1704
+ /** V1 error format. */
1705
+ "$.xgafv"?: string;
1706
+ /** OAuth access token. */
1707
+ access_token?: string;
1708
+ /** Data format for response. */
1709
+ alt?: string;
1710
+ /** JSONP */
1711
+ callback?: string;
1712
+ /** Selector specifying which fields to include in a partial response. */
1713
+ fields?: string;
1714
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1715
+ key?: string;
1716
+ /** OAuth 2.0 token for the current user. */
1717
+ oauth_token?: string;
1718
+ /**
1719
+ * Optional. Requested page size. Server might return fewer results than requested. If unspecified, server will pick a default size (25). The maximum value is 200; the server will
1720
+ * coerce values above 200.
1721
+ */
1722
+ pageSize?: number;
1723
+ /**
1724
+ * Optional. A token for a page of results other than the first page. Obtained using ListChannelPartnerLinksResponse.next_page_token of the previous
1725
+ * CloudChannelService.ListChannelPartnerLinks call.
1726
+ */
1727
+ pageToken?: string;
1728
+ /** Required. The resource name of the reseller account for listing channel partner links. Parent uses the format: accounts/{account_id} */
1729
+ parent: string;
1730
+ /** Returns response with indentations and line breaks. */
1731
+ prettyPrint?: boolean;
1732
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1733
+ quotaUser?: string;
1734
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1735
+ upload_protocol?: string;
1736
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1737
+ uploadType?: string;
1738
+ /** Optional. The level of granularity the ChannelPartnerLink will display. */
1739
+ view?: string;
1740
+ }): Request<GoogleCloudChannelV1ListChannelPartnerLinksResponse>;
1741
+ /**
1742
+ * Updates a channel partner link. Distributors call this method to change a link's status. For example, to suspend a partner link. You must be a distributor to call this method.
1743
+ * Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: * Required request
1744
+ * parameters are missing or invalid. * Link state cannot change from invited to active or suspended. * Cannot send reseller_cloud_identity_id, invite_url, or name in update mask. *
1745
+ * NOT_FOUND: ChannelPartnerLink resource not found. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user
1746
+ * error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The updated ChannelPartnerLink resource.
1747
+ */
1748
+ patch(request: {
1749
+ /** V1 error format. */
1750
+ "$.xgafv"?: string;
1751
+ /** OAuth access token. */
1752
+ access_token?: string;
1753
+ /** Data format for response. */
1754
+ alt?: string;
1755
+ /** JSONP */
1756
+ callback?: string;
1757
+ /** Selector specifying which fields to include in a partial response. */
1758
+ fields?: string;
1759
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1760
+ key?: string;
1761
+ /**
1762
+ * Required. The resource name of the channel partner link to cancel. Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} where {id} is the Cloud Identity ID of
1763
+ * the partner.
1764
+ */
1765
+ name: string;
1766
+ /** OAuth 2.0 token for the current user. */
1767
+ oauth_token?: string;
1768
+ /** Returns response with indentations and line breaks. */
1769
+ prettyPrint?: boolean;
1770
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1771
+ quotaUser?: string;
1772
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1773
+ upload_protocol?: string;
1774
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1775
+ uploadType?: string;
1776
+ /** Request body */
1777
+ resource: GoogleCloudChannelV1UpdateChannelPartnerLinkRequest;
1778
+ }): Request<GoogleCloudChannelV1ChannelPartnerLink>;
1779
+ patch(request: {
1780
+ /** V1 error format. */
1781
+ "$.xgafv"?: string;
1782
+ /** OAuth access token. */
1783
+ access_token?: string;
1784
+ /** Data format for response. */
1785
+ alt?: string;
1786
+ /** JSONP */
1787
+ callback?: string;
1788
+ /** Selector specifying which fields to include in a partial response. */
1789
+ fields?: string;
1790
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1791
+ key?: string;
1792
+ /**
1793
+ * Required. The resource name of the channel partner link to cancel. Name uses the format: accounts/{account_id}/channelPartnerLinks/{id} where {id} is the Cloud Identity ID of
1794
+ * the partner.
1795
+ */
1796
+ name: string;
1797
+ /** OAuth 2.0 token for the current user. */
1798
+ oauth_token?: string;
1799
+ /** Returns response with indentations and line breaks. */
1800
+ prettyPrint?: boolean;
1801
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1802
+ quotaUser?: string;
1803
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1804
+ upload_protocol?: string;
1805
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1806
+ uploadType?: string;
1807
+ },
1808
+ body: GoogleCloudChannelV1UpdateChannelPartnerLinkRequest): Request<GoogleCloudChannelV1ChannelPartnerLink>;
1809
+ channelPartnerRepricingConfigs: ChannelPartnerRepricingConfigsResource;
1810
+ customers: CustomersResource;
1811
+ }
1812
+ interface CustomerRepricingConfigsResource {
1813
+ /**
1814
+ * Creates a CustomerRepricingConfig. Call this method to set modifications for a specific customer's bill. You can only create configs if the RepricingConfig.effective_invoice_month
1815
+ * is a future month. If needed, you can create a config for the current month, with some restrictions. When creating a config for a future month, make sure there are no existing
1816
+ * configs for that RepricingConfig.effective_invoice_month. The following restrictions are for creating configs in the current month. * This functionality is reserved for recovering
1817
+ * from an erroneous config, and should not be used for regular business cases. * The new config will not modify exports used with other configs. Changes to the config may be
1818
+ * immediate, but may take up to 24 hours. * There is a limit of ten configs for any RepricingConfig.EntitlementGranularity.entitlement or RepricingConfig.effective_invoice_month. *
1819
+ * The contained CustomerRepricingConfig.repricing_config vaule must be different from the value used in the current config for a RepricingConfig.EntitlementGranularity.entitlement.
1820
+ * Possible Error Codes: * PERMISSION_DENIED: If the account making the request and the account being queried are different. * INVALID_ARGUMENT: Missing or invalid required parameters
1821
+ * in the request. Also displays if the updated config is for the current month or past months. * NOT_FOUND: The CustomerRepricingConfig specified does not exist or is not associated
1822
+ * with the given account. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the
1823
+ * updated CustomerRepricingConfig resource, otherwise returns an error.
1824
+ */
1825
+ create(request: {
1826
+ /** V1 error format. */
1827
+ "$.xgafv"?: string;
1828
+ /** OAuth access token. */
1829
+ access_token?: string;
1830
+ /** Data format for response. */
1831
+ alt?: string;
1832
+ /** JSONP */
1833
+ callback?: string;
1834
+ /** Selector specifying which fields to include in a partial response. */
1835
+ fields?: string;
1836
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1837
+ key?: string;
1838
+ /** OAuth 2.0 token for the current user. */
1839
+ oauth_token?: string;
1840
+ /** Required. The resource name of the customer that will receive this repricing config. Parent uses the format: accounts/{account_id}/customers/{customer_id} */
1841
+ parent: string;
1842
+ /** Returns response with indentations and line breaks. */
1843
+ prettyPrint?: boolean;
1844
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1845
+ quotaUser?: string;
1846
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1847
+ upload_protocol?: string;
1848
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1849
+ uploadType?: string;
1850
+ /** Request body */
1851
+ resource: GoogleCloudChannelV1CustomerRepricingConfig;
1852
+ }): Request<GoogleCloudChannelV1CustomerRepricingConfig>;
1853
+ create(request: {
1854
+ /** V1 error format. */
1855
+ "$.xgafv"?: string;
1856
+ /** OAuth access token. */
1857
+ access_token?: string;
1858
+ /** Data format for response. */
1859
+ alt?: string;
1860
+ /** JSONP */
1861
+ callback?: string;
1862
+ /** Selector specifying which fields to include in a partial response. */
1863
+ fields?: string;
1864
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1865
+ key?: string;
1866
+ /** OAuth 2.0 token for the current user. */
1867
+ oauth_token?: string;
1868
+ /** Required. The resource name of the customer that will receive this repricing config. Parent uses the format: accounts/{account_id}/customers/{customer_id} */
1869
+ parent: string;
1870
+ /** Returns response with indentations and line breaks. */
1871
+ prettyPrint?: boolean;
1872
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1873
+ quotaUser?: string;
1874
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1875
+ upload_protocol?: string;
1876
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1877
+ uploadType?: string;
1878
+ },
1879
+ body: GoogleCloudChannelV1CustomerRepricingConfig): Request<GoogleCloudChannelV1CustomerRepricingConfig>;
1880
+ /**
1881
+ * Deletes the given CustomerRepricingConfig permanently. You can only delete configs if their RepricingConfig.effective_invoice_month is set to a date after the current month.
1882
+ * Possible error codes: * PERMISSION_DENIED: The account making the request does not own this customer. * INVALID_ARGUMENT: Required request parameters are missing or invalid. *
1883
+ * FAILED_PRECONDITION: The CustomerRepricingConfig is active or in the past. * NOT_FOUND: No CustomerRepricingConfig found for the name in the request.
1884
+ */
1885
+ delete(request?: {
1886
+ /** V1 error format. */
1887
+ "$.xgafv"?: string;
1888
+ /** OAuth access token. */
1889
+ access_token?: string;
1890
+ /** Data format for response. */
1891
+ alt?: string;
1892
+ /** JSONP */
1893
+ callback?: string;
1894
+ /** Selector specifying which fields to include in a partial response. */
1895
+ fields?: string;
1896
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1897
+ key?: string;
1898
+ /** Required. The resource name of the customer repricing config rule to delete. Format: accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. */
1899
+ name: string;
1900
+ /** OAuth 2.0 token for the current user. */
1901
+ oauth_token?: string;
1902
+ /** Returns response with indentations and line breaks. */
1903
+ prettyPrint?: boolean;
1904
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1905
+ quotaUser?: string;
1906
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1907
+ upload_protocol?: string;
1908
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1909
+ uploadType?: string;
1910
+ }): Request<{}>;
1911
+ /**
1912
+ * Gets information about how a Reseller modifies their bill before sending it to a Customer. Possible Error Codes: * PERMISSION_DENIED: If the account making the request and the
1913
+ * account being queried are different. * NOT_FOUND: The CustomerRepricingConfig was not found. * INTERNAL: Any non-user error related to technical issues in the backend. In this case,
1914
+ * contact Cloud Channel support. Return Value: If successful, the CustomerRepricingConfig resource, otherwise returns an error.
1915
+ */
1916
+ get(request?: {
1917
+ /** V1 error format. */
1918
+ "$.xgafv"?: string;
1919
+ /** OAuth access token. */
1920
+ access_token?: string;
1921
+ /** Data format for response. */
1922
+ alt?: string;
1923
+ /** JSONP */
1924
+ callback?: string;
1925
+ /** Selector specifying which fields to include in a partial response. */
1926
+ fields?: string;
1927
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1928
+ key?: string;
1929
+ /** Required. The resource name of the CustomerRepricingConfig. Format: accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. */
1930
+ name: string;
1931
+ /** OAuth 2.0 token for the current user. */
1932
+ oauth_token?: string;
1933
+ /** Returns response with indentations and line breaks. */
1934
+ prettyPrint?: boolean;
1935
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1936
+ quotaUser?: string;
1937
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1938
+ upload_protocol?: string;
1939
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1940
+ uploadType?: string;
1941
+ }): Request<GoogleCloudChannelV1CustomerRepricingConfig>;
1942
+ /**
1943
+ * Lists information about how a Reseller modifies their bill before sending it to a Customer. Possible Error Codes: * PERMISSION_DENIED: If the account making the request and the
1944
+ * account being queried are different. * NOT_FOUND: The CustomerRepricingConfig specified does not exist or is not associated with the given account. * INTERNAL: Any non-user error
1945
+ * related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the CustomerRepricingConfig resources. The data for each
1946
+ * resource is displayed in the ascending order of: * customer ID * RepricingConfig.EntitlementGranularity.entitlement * RepricingConfig.effective_invoice_month *
1947
+ * CustomerRepricingConfig.update_time If unsuccessful, returns an error.
1948
+ */
1949
+ list(request?: {
1950
+ /** V1 error format. */
1951
+ "$.xgafv"?: string;
1952
+ /** OAuth access token. */
1953
+ access_token?: string;
1954
+ /** Data format for response. */
1955
+ alt?: string;
1956
+ /** JSONP */
1957
+ callback?: string;
1958
+ /** Selector specifying which fields to include in a partial response. */
1959
+ fields?: string;
1960
+ /**
1961
+ * Optional. A filter for [CloudChannelService.ListCustomerRepricingConfigs] results (customer only). You can use this filter when you support a BatchGet-like query. To use the
1962
+ * filter, you must set `parent=accounts/{account_id}/customers/-`. Example: customer = accounts/account_id/customers/c1 OR customer = accounts/account_id/customers/c2.
1963
+ */
1964
+ filter?: string;
1965
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1966
+ key?: string;
1967
+ /** OAuth 2.0 token for the current user. */
1968
+ oauth_token?: string;
1969
+ /**
1970
+ * Optional. The maximum number of repricing configs to return. The service may return fewer than this value. If unspecified, returns a maximum of 50 rules. The maximum value is
1971
+ * 100; values above 100 will be coerced to 100.
1972
+ */
1973
+ pageSize?: number;
1974
+ /**
1975
+ * Optional. A token identifying a page of results beyond the first page. Obtained through ListCustomerRepricingConfigsResponse.next_page_token of the previous
1976
+ * CloudChannelService.ListCustomerRepricingConfigs call.
1977
+ */
1978
+ pageToken?: string;
1979
+ /**
1980
+ * Required. The resource name of the customer. Parent uses the format: accounts/{account_id}/customers/{customer_id}. Supports accounts/{account_id}/customers/- to retrieve
1981
+ * configs for all customers.
1982
+ */
1983
+ parent: string;
1984
+ /** Returns response with indentations and line breaks. */
1985
+ prettyPrint?: boolean;
1986
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1987
+ quotaUser?: string;
1988
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1989
+ upload_protocol?: string;
1990
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1991
+ uploadType?: string;
1992
+ }): Request<GoogleCloudChannelV1ListCustomerRepricingConfigsResponse>;
1993
+ /**
1994
+ * Updates a CustomerRepricingConfig. Call this method to set modifications for a specific customer's bill. This method overwrites the existing CustomerRepricingConfig. You can only
1995
+ * update configs if the RepricingConfig.effective_invoice_month is a future month. To make changes to configs for the current month, use CreateCustomerRepricingConfig, taking note of
1996
+ * its restrictions. You cannot update the RepricingConfig.effective_invoice_month. When updating a config in the future: * This config must already exist. Possible Error Codes: *
1997
+ * PERMISSION_DENIED: If the account making the request and the account being queried are different. * INVALID_ARGUMENT: Missing or invalid required parameters in the request. Also
1998
+ * displays if the updated config is for the current month or past months. * NOT_FOUND: The CustomerRepricingConfig specified does not exist or is not associated with the given
1999
+ * account. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the updated
2000
+ * CustomerRepricingConfig resource, otherwise returns an error.
2001
+ */
2002
+ patch(request: {
2003
+ /** V1 error format. */
2004
+ "$.xgafv"?: string;
2005
+ /** OAuth access token. */
2006
+ access_token?: string;
2007
+ /** Data format for response. */
2008
+ alt?: string;
2009
+ /** JSONP */
2010
+ callback?: string;
2011
+ /** Selector specifying which fields to include in a partial response. */
2012
+ fields?: string;
2013
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2014
+ key?: string;
2015
+ /** Output only. Resource name of the CustomerRepricingConfig. Format: accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. */
2016
+ name: string;
2017
+ /** OAuth 2.0 token for the current user. */
2018
+ oauth_token?: string;
2019
+ /** Returns response with indentations and line breaks. */
2020
+ prettyPrint?: boolean;
2021
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2022
+ quotaUser?: string;
2023
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2024
+ upload_protocol?: string;
2025
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2026
+ uploadType?: string;
2027
+ /** Request body */
2028
+ resource: GoogleCloudChannelV1CustomerRepricingConfig;
2029
+ }): Request<GoogleCloudChannelV1CustomerRepricingConfig>;
2030
+ patch(request: {
2031
+ /** V1 error format. */
2032
+ "$.xgafv"?: string;
2033
+ /** OAuth access token. */
2034
+ access_token?: string;
2035
+ /** Data format for response. */
2036
+ alt?: string;
2037
+ /** JSONP */
2038
+ callback?: string;
2039
+ /** Selector specifying which fields to include in a partial response. */
2040
+ fields?: string;
2041
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2042
+ key?: string;
2043
+ /** Output only. Resource name of the CustomerRepricingConfig. Format: accounts/{account_id}/customers/{customer_id}/customerRepricingConfigs/{id}. */
2044
+ name: string;
2045
+ /** OAuth 2.0 token for the current user. */
2046
+ oauth_token?: string;
2047
+ /** Returns response with indentations and line breaks. */
2048
+ prettyPrint?: boolean;
2049
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2050
+ quotaUser?: string;
2051
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2052
+ upload_protocol?: string;
2053
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2054
+ uploadType?: string;
2055
+ },
2056
+ body: GoogleCloudChannelV1CustomerRepricingConfig): Request<GoogleCloudChannelV1CustomerRepricingConfig>;
2057
+ }
2058
+ interface EntitlementsResource {
2059
+ /**
2060
+ * Activates a previously suspended entitlement. Entitlements suspended for pending ToS acceptance can't be activated using this method. An entitlement activation is a long-running
2061
+ * operation and it updates the state of the customer entitlement. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller
2062
+ * account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * SUSPENSION_NOT_RESELLER_INITIATED:
2063
+ * Can only activate reseller-initiated suspensions and entitlements that have accepted the TOS. * NOT_SUSPENDED: Can only activate suspended entitlements not in an ACTIVE state. *
2064
+ * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend.
2065
+ * Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService.
2066
+ * The Operation metadata will contain an instance of OperationMetadata.
2067
+ */
2068
+ activate(request: {
2069
+ /** V1 error format. */
2070
+ "$.xgafv"?: string;
2071
+ /** OAuth access token. */
2072
+ access_token?: string;
2073
+ /** Data format for response. */
2074
+ alt?: string;
2075
+ /** JSONP */
2076
+ callback?: string;
2077
+ /** Selector specifying which fields to include in a partial response. */
2078
+ fields?: string;
2079
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2080
+ key?: string;
2081
+ /** Required. The resource name of the entitlement to activate. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2082
+ name: string;
2083
+ /** OAuth 2.0 token for the current user. */
2084
+ oauth_token?: string;
2085
+ /** Returns response with indentations and line breaks. */
2086
+ prettyPrint?: boolean;
2087
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2088
+ quotaUser?: string;
2089
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2090
+ upload_protocol?: string;
2091
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2092
+ uploadType?: string;
2093
+ /** Request body */
2094
+ resource: GoogleCloudChannelV1ActivateEntitlementRequest;
2095
+ }): Request<GoogleLongrunningOperation>;
2096
+ activate(request: {
2097
+ /** V1 error format. */
2098
+ "$.xgafv"?: string;
2099
+ /** OAuth access token. */
2100
+ access_token?: string;
2101
+ /** Data format for response. */
2102
+ alt?: string;
2103
+ /** JSONP */
2104
+ callback?: string;
2105
+ /** Selector specifying which fields to include in a partial response. */
2106
+ fields?: string;
2107
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2108
+ key?: string;
2109
+ /** Required. The resource name of the entitlement to activate. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2110
+ name: string;
2111
+ /** OAuth 2.0 token for the current user. */
2112
+ oauth_token?: string;
2113
+ /** Returns response with indentations and line breaks. */
2114
+ prettyPrint?: boolean;
2115
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2116
+ quotaUser?: string;
2117
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2118
+ upload_protocol?: string;
2119
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2120
+ uploadType?: string;
2121
+ },
2122
+ body: GoogleCloudChannelV1ActivateEntitlementRequest): Request<GoogleLongrunningOperation>;
2123
+ /**
2124
+ * Cancels a previously fulfilled entitlement. An entitlement cancellation is a long-running operation. Possible error codes: * PERMISSION_DENIED: The reseller account making the
2125
+ * request is different from the reseller account in the API request. * FAILED_PRECONDITION: There are Google Cloud projects linked to the Google Cloud entitlement's Cloud Billing
2126
+ * subaccount. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * DELETION_TYPE_NOT_ALLOWED: Cancel is only allowed
2127
+ * for Google Workspace add-ons, or entitlements for Google Cloud's development platform. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud
2128
+ * Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get
2129
+ * the results of the operation, call the GetOperation method of CloudChannelOperationsService. The response will contain google.protobuf.Empty on success. The Operation metadata will
2130
+ * contain an instance of OperationMetadata.
2131
+ */
2132
+ cancel(request: {
2133
+ /** V1 error format. */
2134
+ "$.xgafv"?: string;
2135
+ /** OAuth access token. */
2136
+ access_token?: string;
2137
+ /** Data format for response. */
2138
+ alt?: string;
2139
+ /** JSONP */
2140
+ callback?: string;
2141
+ /** Selector specifying which fields to include in a partial response. */
2142
+ fields?: string;
2143
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2144
+ key?: string;
2145
+ /** Required. The resource name of the entitlement to cancel. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2146
+ name: string;
2147
+ /** OAuth 2.0 token for the current user. */
2148
+ oauth_token?: string;
2149
+ /** Returns response with indentations and line breaks. */
2150
+ prettyPrint?: boolean;
2151
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2152
+ quotaUser?: string;
2153
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2154
+ upload_protocol?: string;
2155
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2156
+ uploadType?: string;
2157
+ /** Request body */
2158
+ resource: GoogleCloudChannelV1CancelEntitlementRequest;
2159
+ }): Request<GoogleLongrunningOperation>;
2160
+ cancel(request: {
2161
+ /** V1 error format. */
2162
+ "$.xgafv"?: string;
2163
+ /** OAuth access token. */
2164
+ access_token?: string;
2165
+ /** Data format for response. */
2166
+ alt?: string;
2167
+ /** JSONP */
2168
+ callback?: string;
2169
+ /** Selector specifying which fields to include in a partial response. */
2170
+ fields?: string;
2171
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2172
+ key?: string;
2173
+ /** Required. The resource name of the entitlement to cancel. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2174
+ name: string;
2175
+ /** OAuth 2.0 token for the current user. */
2176
+ oauth_token?: string;
2177
+ /** Returns response with indentations and line breaks. */
2178
+ prettyPrint?: boolean;
2179
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2180
+ quotaUser?: string;
2181
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2182
+ upload_protocol?: string;
2183
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2184
+ uploadType?: string;
2185
+ },
2186
+ body: GoogleCloudChannelV1CancelEntitlementRequest): Request<GoogleLongrunningOperation>;
2187
+ /**
2188
+ * Updates the Offer for an existing customer entitlement. An entitlement update is a long-running operation and it updates the entitlement as a result of fulfillment. Possible error
2189
+ * codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Offer or Entitlement
2190
+ * resource not found. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical
2191
+ * issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of
2192
+ * CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
2193
+ */
2194
+ changeOffer(request: {
2195
+ /** V1 error format. */
2196
+ "$.xgafv"?: string;
2197
+ /** OAuth access token. */
2198
+ access_token?: string;
2199
+ /** Data format for response. */
2200
+ alt?: string;
2201
+ /** JSONP */
2202
+ callback?: string;
2203
+ /** Selector specifying which fields to include in a partial response. */
2204
+ fields?: string;
2205
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2206
+ key?: string;
2207
+ /** Required. The resource name of the entitlement to update. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2208
+ name: string;
2209
+ /** OAuth 2.0 token for the current user. */
2210
+ oauth_token?: string;
2211
+ /** Returns response with indentations and line breaks. */
2212
+ prettyPrint?: boolean;
2213
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2214
+ quotaUser?: string;
2215
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2216
+ upload_protocol?: string;
2217
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2218
+ uploadType?: string;
2219
+ /** Request body */
2220
+ resource: GoogleCloudChannelV1ChangeOfferRequest;
2221
+ }): Request<GoogleLongrunningOperation>;
2222
+ changeOffer(request: {
2223
+ /** V1 error format. */
2224
+ "$.xgafv"?: string;
2225
+ /** OAuth access token. */
2226
+ access_token?: string;
2227
+ /** Data format for response. */
2228
+ alt?: string;
2229
+ /** JSONP */
2230
+ callback?: string;
2231
+ /** Selector specifying which fields to include in a partial response. */
2232
+ fields?: string;
2233
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2234
+ key?: string;
2235
+ /** Required. The resource name of the entitlement to update. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2236
+ name: string;
2237
+ /** OAuth 2.0 token for the current user. */
2238
+ oauth_token?: string;
2239
+ /** Returns response with indentations and line breaks. */
2240
+ prettyPrint?: boolean;
2241
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2242
+ quotaUser?: string;
2243
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2244
+ upload_protocol?: string;
2245
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2246
+ uploadType?: string;
2247
+ },
2248
+ body: GoogleCloudChannelV1ChangeOfferRequest): Request<GoogleLongrunningOperation>;
2249
+ /**
2250
+ * Change parameters of the entitlement. An entitlement update is a long-running operation and it updates the entitlement as a result of fulfillment. Possible error codes: *
2251
+ * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. For example, the number of seats being
2252
+ * changed is greater than the allowed number of max seats, or decreasing seats for a commitment based plan. * NOT_FOUND: Entitlement resource not found. * INTERNAL: Any non-user error
2253
+ * related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.
2254
+ * Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will
2255
+ * contain an instance of OperationMetadata.
2256
+ */
2257
+ changeParameters(request: {
2258
+ /** V1 error format. */
2259
+ "$.xgafv"?: string;
2260
+ /** OAuth access token. */
2261
+ access_token?: string;
2262
+ /** Data format for response. */
2263
+ alt?: string;
2264
+ /** JSONP */
2265
+ callback?: string;
2266
+ /** Selector specifying which fields to include in a partial response. */
2267
+ fields?: string;
2268
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2269
+ key?: string;
2270
+ /** Required. The name of the entitlement to update. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2271
+ name: string;
2272
+ /** OAuth 2.0 token for the current user. */
2273
+ oauth_token?: string;
2274
+ /** Returns response with indentations and line breaks. */
2275
+ prettyPrint?: boolean;
2276
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2277
+ quotaUser?: string;
2278
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2279
+ upload_protocol?: string;
2280
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2281
+ uploadType?: string;
2282
+ /** Request body */
2283
+ resource: GoogleCloudChannelV1ChangeParametersRequest;
2284
+ }): Request<GoogleLongrunningOperation>;
2285
+ changeParameters(request: {
2286
+ /** V1 error format. */
2287
+ "$.xgafv"?: string;
2288
+ /** OAuth access token. */
2289
+ access_token?: string;
2290
+ /** Data format for response. */
2291
+ alt?: string;
2292
+ /** JSONP */
2293
+ callback?: string;
2294
+ /** Selector specifying which fields to include in a partial response. */
2295
+ fields?: string;
2296
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2297
+ key?: string;
2298
+ /** Required. The name of the entitlement to update. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2299
+ name: string;
2300
+ /** OAuth 2.0 token for the current user. */
2301
+ oauth_token?: string;
2302
+ /** Returns response with indentations and line breaks. */
2303
+ prettyPrint?: boolean;
2304
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2305
+ quotaUser?: string;
2306
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2307
+ upload_protocol?: string;
2308
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2309
+ uploadType?: string;
2310
+ },
2311
+ body: GoogleCloudChannelV1ChangeParametersRequest): Request<GoogleLongrunningOperation>;
2312
+ /**
2313
+ * Updates the renewal settings for an existing customer entitlement. An entitlement update is a long-running operation and it updates the entitlement as a result of fulfillment.
2314
+ * Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND:
2315
+ * Entitlement resource not found. * NOT_COMMITMENT_PLAN: Renewal Settings are only applicable for a commitment plan. Can't enable or disable renewals for non-commitment plans. *
2316
+ * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend.
2317
+ * Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService.
2318
+ * The Operation metadata will contain an instance of OperationMetadata.
2319
+ */
2320
+ changeRenewalSettings(request: {
2321
+ /** V1 error format. */
2322
+ "$.xgafv"?: string;
2323
+ /** OAuth access token. */
2324
+ access_token?: string;
2325
+ /** Data format for response. */
2326
+ alt?: string;
2327
+ /** JSONP */
2328
+ callback?: string;
2329
+ /** Selector specifying which fields to include in a partial response. */
2330
+ fields?: string;
2331
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2332
+ key?: string;
2333
+ /** Required. The name of the entitlement to update. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2334
+ name: string;
2335
+ /** OAuth 2.0 token for the current user. */
2336
+ oauth_token?: string;
2337
+ /** Returns response with indentations and line breaks. */
2338
+ prettyPrint?: boolean;
2339
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2340
+ quotaUser?: string;
2341
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2342
+ upload_protocol?: string;
2343
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2344
+ uploadType?: string;
2345
+ /** Request body */
2346
+ resource: GoogleCloudChannelV1ChangeRenewalSettingsRequest;
2347
+ }): Request<GoogleLongrunningOperation>;
2348
+ changeRenewalSettings(request: {
2349
+ /** V1 error format. */
2350
+ "$.xgafv"?: string;
2351
+ /** OAuth access token. */
2352
+ access_token?: string;
2353
+ /** Data format for response. */
2354
+ alt?: string;
2355
+ /** JSONP */
2356
+ callback?: string;
2357
+ /** Selector specifying which fields to include in a partial response. */
2358
+ fields?: string;
2359
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2360
+ key?: string;
2361
+ /** Required. The name of the entitlement to update. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2362
+ name: string;
2363
+ /** OAuth 2.0 token for the current user. */
2364
+ oauth_token?: string;
2365
+ /** Returns response with indentations and line breaks. */
2366
+ prettyPrint?: boolean;
2367
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2368
+ quotaUser?: string;
2369
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2370
+ upload_protocol?: string;
2371
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2372
+ uploadType?: string;
2373
+ },
2374
+ body: GoogleCloudChannelV1ChangeRenewalSettingsRequest): Request<GoogleLongrunningOperation>;
2375
+ /**
2376
+ * Creates an entitlement for a customer. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: * Required request parameters are
2377
+ * missing or invalid. * There is already a customer entitlement for a SKU from the same product family. * INVALID_VALUE: Make sure the OfferId is valid. If it is, contact Google
2378
+ * Channel support for further troubleshooting. * NOT_FOUND: The customer or offer resource was not found. * ALREADY_EXISTS: * The SKU was already purchased for the customer. * The
2379
+ * customer's primary email already exists. Retry after changing the customer's primary contact email. * CONDITION_NOT_MET or FAILED_PRECONDITION: * The domain required for purchasing
2380
+ * a SKU has not been verified. * A pre-requisite SKU required to purchase an Add-On SKU is missing. For example, Google Workspace Business Starter is required to purchase Vault or
2381
+ * Drive. * (Developer accounts only) Reseller and resold domain must meet the following naming requirements: * Domain names must start with goog-test. * Domain names must include the
2382
+ * reseller domain. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical
2383
+ * issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of
2384
+ * CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
2385
+ */
2386
+ create(request: {
2387
+ /** V1 error format. */
2388
+ "$.xgafv"?: string;
2389
+ /** OAuth access token. */
2390
+ access_token?: string;
2391
+ /** Data format for response. */
2392
+ alt?: string;
2393
+ /** JSONP */
2394
+ callback?: string;
2395
+ /** Selector specifying which fields to include in a partial response. */
2396
+ fields?: string;
2397
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2398
+ key?: string;
2399
+ /** OAuth 2.0 token for the current user. */
2400
+ oauth_token?: string;
2401
+ /** Required. The resource name of the reseller's customer account in which to create the entitlement. Parent uses the format: accounts/{account_id}/customers/{customer_id} */
2402
+ parent: string;
2403
+ /** Returns response with indentations and line breaks. */
2404
+ prettyPrint?: boolean;
2405
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2406
+ quotaUser?: string;
2407
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2408
+ upload_protocol?: string;
2409
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2410
+ uploadType?: string;
2411
+ /** Request body */
2412
+ resource: GoogleCloudChannelV1CreateEntitlementRequest;
2413
+ }): Request<GoogleLongrunningOperation>;
2414
+ create(request: {
2415
+ /** V1 error format. */
2416
+ "$.xgafv"?: string;
2417
+ /** OAuth access token. */
2418
+ access_token?: string;
2419
+ /** Data format for response. */
2420
+ alt?: string;
2421
+ /** JSONP */
2422
+ callback?: string;
2423
+ /** Selector specifying which fields to include in a partial response. */
2424
+ fields?: string;
2425
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2426
+ key?: string;
2427
+ /** OAuth 2.0 token for the current user. */
2428
+ oauth_token?: string;
2429
+ /** Required. The resource name of the reseller's customer account in which to create the entitlement. Parent uses the format: accounts/{account_id}/customers/{customer_id} */
2430
+ parent: string;
2431
+ /** Returns response with indentations and line breaks. */
2432
+ prettyPrint?: boolean;
2433
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2434
+ quotaUser?: string;
2435
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2436
+ upload_protocol?: string;
2437
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2438
+ uploadType?: string;
2439
+ },
2440
+ body: GoogleCloudChannelV1CreateEntitlementRequest): Request<GoogleLongrunningOperation>;
2441
+ /**
2442
+ * Returns the requested Entitlement resource. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters
2443
+ * are missing or invalid. * NOT_FOUND: The customer entitlement was not found. Return value: The requested Entitlement resource.
2444
+ */
2445
+ get(request?: {
2446
+ /** V1 error format. */
2447
+ "$.xgafv"?: string;
2448
+ /** OAuth access token. */
2449
+ access_token?: string;
2450
+ /** Data format for response. */
2451
+ alt?: string;
2452
+ /** JSONP */
2453
+ callback?: string;
2454
+ /** Selector specifying which fields to include in a partial response. */
2455
+ fields?: string;
2456
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2457
+ key?: string;
2458
+ /** Required. The resource name of the entitlement to retrieve. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2459
+ name: string;
2460
+ /** OAuth 2.0 token for the current user. */
2461
+ oauth_token?: string;
2462
+ /** Returns response with indentations and line breaks. */
2463
+ prettyPrint?: boolean;
2464
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2465
+ quotaUser?: string;
2466
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2467
+ upload_protocol?: string;
2468
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2469
+ uploadType?: string;
2470
+ }): Request<GoogleCloudChannelV1Entitlement>;
2471
+ /**
2472
+ * Lists Entitlements belonging to a customer. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters
2473
+ * are missing or invalid. Return value: A list of the customer's Entitlements.
2474
+ */
2475
+ list(request?: {
2476
+ /** V1 error format. */
2477
+ "$.xgafv"?: string;
2478
+ /** OAuth access token. */
2479
+ access_token?: string;
2480
+ /** Data format for response. */
2481
+ alt?: string;
2482
+ /** JSONP */
2483
+ callback?: string;
2484
+ /** Selector specifying which fields to include in a partial response. */
2485
+ fields?: string;
2486
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2487
+ key?: string;
2488
+ /** OAuth 2.0 token for the current user. */
2489
+ oauth_token?: string;
2490
+ /**
2491
+ * Optional. Requested page size. Server might return fewer results than requested. If unspecified, return at most 50 entitlements. The maximum value is 100; the server will coerce
2492
+ * values above 100.
2493
+ */
2494
+ pageSize?: number;
2495
+ /**
2496
+ * Optional. A token for a page of results other than the first page. Obtained using ListEntitlementsResponse.next_page_token of the previous CloudChannelService.ListEntitlements
2497
+ * call.
2498
+ */
2499
+ pageToken?: string;
2500
+ /** Required. The resource name of the reseller's customer account to list entitlements for. Parent uses the format: accounts/{account_id}/customers/{customer_id} */
2501
+ parent: string;
2502
+ /** Returns response with indentations and line breaks. */
2503
+ prettyPrint?: boolean;
2504
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2505
+ quotaUser?: string;
2506
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2507
+ upload_protocol?: string;
2508
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2509
+ uploadType?: string;
2510
+ }): Request<GoogleCloudChannelV1ListEntitlementsResponse>;
2511
+ /**
2512
+ * Returns the requested Offer resource. Possible error codes: * PERMISSION_DENIED: The entitlement doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are
2513
+ * missing or invalid. * NOT_FOUND: Entitlement or offer was not found. Return value: The Offer resource.
2514
+ */
2515
+ lookupOffer(request?: {
2516
+ /** V1 error format. */
2517
+ "$.xgafv"?: string;
2518
+ /** OAuth access token. */
2519
+ access_token?: string;
2520
+ /** Data format for response. */
2521
+ alt?: string;
2522
+ /** JSONP */
2523
+ callback?: string;
2524
+ /** Required. The resource name of the entitlement to retrieve the Offer. Entitlement uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2525
+ entitlement: string;
2526
+ /** Selector specifying which fields to include in a partial response. */
2527
+ fields?: string;
2528
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2529
+ key?: string;
2530
+ /** OAuth 2.0 token for the current user. */
2531
+ oauth_token?: string;
2532
+ /** Returns response with indentations and line breaks. */
2533
+ prettyPrint?: boolean;
2534
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2535
+ quotaUser?: string;
2536
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2537
+ upload_protocol?: string;
2538
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2539
+ uploadType?: string;
2540
+ }): Request<GoogleCloudChannelV1Offer>;
2541
+ /**
2542
+ * Starts paid service for a trial entitlement. Starts paid service for a trial entitlement immediately. This method is only applicable if a plan is set up for a trial entitlement but
2543
+ * has some trial days remaining. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or
2544
+ * invalid. * NOT_FOUND: Entitlement resource not found. * FAILED_PRECONDITION/NOT_IN_TRIAL: This method only works for entitlement on trial plans. * INTERNAL: Any non-user error
2545
+ * related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support.
2546
+ * Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will
2547
+ * contain an instance of OperationMetadata.
2548
+ */
2549
+ startPaidService(request: {
2550
+ /** V1 error format. */
2551
+ "$.xgafv"?: string;
2552
+ /** OAuth access token. */
2553
+ access_token?: string;
2554
+ /** Data format for response. */
2555
+ alt?: string;
2556
+ /** JSONP */
2557
+ callback?: string;
2558
+ /** Selector specifying which fields to include in a partial response. */
2559
+ fields?: string;
2560
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2561
+ key?: string;
2562
+ /** Required. The name of the entitlement to start a paid service for. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2563
+ name: string;
2564
+ /** OAuth 2.0 token for the current user. */
2565
+ oauth_token?: string;
2566
+ /** Returns response with indentations and line breaks. */
2567
+ prettyPrint?: boolean;
2568
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2569
+ quotaUser?: string;
2570
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2571
+ upload_protocol?: string;
2572
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2573
+ uploadType?: string;
2574
+ /** Request body */
2575
+ resource: GoogleCloudChannelV1StartPaidServiceRequest;
2576
+ }): Request<GoogleLongrunningOperation>;
2577
+ startPaidService(request: {
2578
+ /** V1 error format. */
2579
+ "$.xgafv"?: string;
2580
+ /** OAuth access token. */
2581
+ access_token?: string;
2582
+ /** Data format for response. */
2583
+ alt?: string;
2584
+ /** JSONP */
2585
+ callback?: string;
2586
+ /** Selector specifying which fields to include in a partial response. */
2587
+ fields?: string;
2588
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2589
+ key?: string;
2590
+ /** Required. The name of the entitlement to start a paid service for. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2591
+ name: string;
2592
+ /** OAuth 2.0 token for the current user. */
2593
+ oauth_token?: string;
2594
+ /** Returns response with indentations and line breaks. */
2595
+ prettyPrint?: boolean;
2596
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2597
+ quotaUser?: string;
2598
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2599
+ upload_protocol?: string;
2600
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2601
+ uploadType?: string;
2602
+ },
2603
+ body: GoogleCloudChannelV1StartPaidServiceRequest): Request<GoogleLongrunningOperation>;
2604
+ /**
2605
+ * Suspends a previously fulfilled entitlement. An entitlement suspension is a long-running operation. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the
2606
+ * reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * NOT_ACTIVE: Entitlement is not active. * INTERNAL:
2607
+ * Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact
2608
+ * Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The
2609
+ * Operation metadata will contain an instance of OperationMetadata.
2610
+ */
2611
+ suspend(request: {
2612
+ /** V1 error format. */
2613
+ "$.xgafv"?: string;
2614
+ /** OAuth access token. */
2615
+ access_token?: string;
2616
+ /** Data format for response. */
2617
+ alt?: string;
2618
+ /** JSONP */
2619
+ callback?: string;
2620
+ /** Selector specifying which fields to include in a partial response. */
2621
+ fields?: string;
2622
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2623
+ key?: string;
2624
+ /** Required. The resource name of the entitlement to suspend. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2625
+ name: string;
2626
+ /** OAuth 2.0 token for the current user. */
2627
+ oauth_token?: string;
2628
+ /** Returns response with indentations and line breaks. */
2629
+ prettyPrint?: boolean;
2630
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2631
+ quotaUser?: string;
2632
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2633
+ upload_protocol?: string;
2634
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2635
+ uploadType?: string;
2636
+ /** Request body */
2637
+ resource: GoogleCloudChannelV1SuspendEntitlementRequest;
2638
+ }): Request<GoogleLongrunningOperation>;
2639
+ suspend(request: {
2640
+ /** V1 error format. */
2641
+ "$.xgafv"?: string;
2642
+ /** OAuth access token. */
2643
+ access_token?: string;
2644
+ /** Data format for response. */
2645
+ alt?: string;
2646
+ /** JSONP */
2647
+ callback?: string;
2648
+ /** Selector specifying which fields to include in a partial response. */
2649
+ fields?: string;
2650
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2651
+ key?: string;
2652
+ /** Required. The resource name of the entitlement to suspend. Name uses the format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2653
+ name: string;
2654
+ /** OAuth 2.0 token for the current user. */
2655
+ oauth_token?: string;
2656
+ /** Returns response with indentations and line breaks. */
2657
+ prettyPrint?: boolean;
2658
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2659
+ quotaUser?: string;
2660
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2661
+ upload_protocol?: string;
2662
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2663
+ uploadType?: string;
2664
+ },
2665
+ body: GoogleCloudChannelV1SuspendEntitlementRequest): Request<GoogleLongrunningOperation>;
2666
+ }
2667
+ interface CustomersResource {
2668
+ /**
2669
+ * Creates a new Customer resource under the reseller or distributor account. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the
2670
+ * reseller account in the API request. * INVALID_ARGUMENT: * Required request parameters are missing or invalid. * Domain field value doesn't match the primary email domain. Return
2671
+ * value: The newly created Customer resource.
2672
+ */
2673
+ create(request: {
2674
+ /** V1 error format. */
2675
+ "$.xgafv"?: string;
2676
+ /** OAuth access token. */
2677
+ access_token?: string;
2678
+ /** Data format for response. */
2679
+ alt?: string;
2680
+ /** JSONP */
2681
+ callback?: string;
2682
+ /** Selector specifying which fields to include in a partial response. */
2683
+ fields?: string;
2684
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2685
+ key?: string;
2686
+ /** OAuth 2.0 token for the current user. */
2687
+ oauth_token?: string;
2688
+ /** Required. The resource name of reseller account in which to create the customer. Parent uses the format: accounts/{account_id} */
2689
+ parent: string;
2690
+ /** Returns response with indentations and line breaks. */
2691
+ prettyPrint?: boolean;
2692
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2693
+ quotaUser?: string;
2694
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2695
+ upload_protocol?: string;
2696
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2697
+ uploadType?: string;
2698
+ /** Request body */
2699
+ resource: GoogleCloudChannelV1Customer;
2700
+ }): Request<GoogleCloudChannelV1Customer>;
2701
+ create(request: {
2702
+ /** V1 error format. */
2703
+ "$.xgafv"?: string;
2704
+ /** OAuth access token. */
2705
+ access_token?: string;
2706
+ /** Data format for response. */
2707
+ alt?: string;
2708
+ /** JSONP */
2709
+ callback?: string;
2710
+ /** Selector specifying which fields to include in a partial response. */
2711
+ fields?: string;
2712
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2713
+ key?: string;
2714
+ /** OAuth 2.0 token for the current user. */
2715
+ oauth_token?: string;
2716
+ /** Required. The resource name of reseller account in which to create the customer. Parent uses the format: accounts/{account_id} */
2717
+ parent: string;
2718
+ /** Returns response with indentations and line breaks. */
2719
+ prettyPrint?: boolean;
2720
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2721
+ quotaUser?: string;
2722
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2723
+ upload_protocol?: string;
2724
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2725
+ uploadType?: string;
2726
+ },
2727
+ body: GoogleCloudChannelV1Customer): Request<GoogleCloudChannelV1Customer>;
2728
+ /**
2729
+ * Deletes the given Customer permanently. Possible error codes: * PERMISSION_DENIED: The account making the request does not own this customer. * INVALID_ARGUMENT: Required request
2730
+ * parameters are missing or invalid. * FAILED_PRECONDITION: The customer has existing entitlements. * NOT_FOUND: No Customer resource found for the name in the request.
2731
+ */
2732
+ delete(request?: {
2733
+ /** V1 error format. */
2734
+ "$.xgafv"?: string;
2735
+ /** OAuth access token. */
2736
+ access_token?: string;
2737
+ /** Data format for response. */
2738
+ alt?: string;
2739
+ /** JSONP */
2740
+ callback?: string;
2741
+ /** Selector specifying which fields to include in a partial response. */
2742
+ fields?: string;
2743
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2744
+ key?: string;
2745
+ /** Required. The resource name of the customer to delete. */
2746
+ name: string;
2747
+ /** OAuth 2.0 token for the current user. */
2748
+ oauth_token?: string;
2749
+ /** Returns response with indentations and line breaks. */
2750
+ prettyPrint?: boolean;
2751
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2752
+ quotaUser?: string;
2753
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2754
+ upload_protocol?: string;
2755
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2756
+ uploadType?: string;
2757
+ }): Request<{}>;
2758
+ /**
2759
+ * Returns the requested Customer resource. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API
2760
+ * request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer resource doesn't exist. Usually the result of an invalid name parameter.
2761
+ * Return value: The Customer resource.
2762
+ */
2763
+ get(request?: {
2764
+ /** V1 error format. */
2765
+ "$.xgafv"?: string;
2766
+ /** OAuth access token. */
2767
+ access_token?: string;
2768
+ /** Data format for response. */
2769
+ alt?: string;
2770
+ /** JSONP */
2771
+ callback?: string;
2772
+ /** Selector specifying which fields to include in a partial response. */
2773
+ fields?: string;
2774
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2775
+ key?: string;
2776
+ /** Required. The resource name of the customer to retrieve. Name uses the format: accounts/{account_id}/customers/{customer_id} */
2777
+ name: string;
2778
+ /** OAuth 2.0 token for the current user. */
2779
+ oauth_token?: string;
2780
+ /** Returns response with indentations and line breaks. */
2781
+ prettyPrint?: boolean;
2782
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2783
+ quotaUser?: string;
2784
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2785
+ upload_protocol?: string;
2786
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2787
+ uploadType?: string;
2788
+ }): Request<GoogleCloudChannelV1Customer>;
2789
+ /**
2790
+ * Imports a Customer from the Cloud Identity associated with the provided Cloud Identity ID or domain before a TransferEntitlements call. If a linked Customer already exists and
2791
+ * overwrite_if_exists is true, it will update that Customer's data. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller
2792
+ * account in the API request. * NOT_FOUND: Cloud Identity doesn't exist or was deleted. * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is expired or invalid. *
2793
+ * ALREADY_EXISTS: A customer already exists and has conflicting critical fields. Requires an overwrite. Return value: The Customer.
2794
+ */
2795
+ import(request: {
2796
+ /** V1 error format. */
2797
+ "$.xgafv"?: string;
2798
+ /** OAuth access token. */
2799
+ access_token?: string;
2800
+ /** Data format for response. */
2801
+ alt?: string;
2802
+ /** JSONP */
2803
+ callback?: string;
2804
+ /** Selector specifying which fields to include in a partial response. */
2805
+ fields?: string;
2806
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2807
+ key?: string;
2808
+ /** OAuth 2.0 token for the current user. */
2809
+ oauth_token?: string;
2810
+ /** Required. The resource name of the reseller's account. Parent takes the format: accounts/{account_id} or accounts/{account_id}/channelPartnerLinks/{channel_partner_id} */
2811
+ parent: string;
2812
+ /** Returns response with indentations and line breaks. */
2813
+ prettyPrint?: boolean;
2814
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2815
+ quotaUser?: string;
2816
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2817
+ upload_protocol?: string;
2818
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2819
+ uploadType?: string;
2820
+ /** Request body */
2821
+ resource: GoogleCloudChannelV1ImportCustomerRequest;
2822
+ }): Request<GoogleCloudChannelV1Customer>;
2823
+ import(request: {
2824
+ /** V1 error format. */
2825
+ "$.xgafv"?: string;
2826
+ /** OAuth access token. */
2827
+ access_token?: string;
2828
+ /** Data format for response. */
2829
+ alt?: string;
2830
+ /** JSONP */
2831
+ callback?: string;
2832
+ /** Selector specifying which fields to include in a partial response. */
2833
+ fields?: string;
2834
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2835
+ key?: string;
2836
+ /** OAuth 2.0 token for the current user. */
2837
+ oauth_token?: string;
2838
+ /** Required. The resource name of the reseller's account. Parent takes the format: accounts/{account_id} or accounts/{account_id}/channelPartnerLinks/{channel_partner_id} */
2839
+ parent: string;
2840
+ /** Returns response with indentations and line breaks. */
2841
+ prettyPrint?: boolean;
2842
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2843
+ quotaUser?: string;
2844
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2845
+ upload_protocol?: string;
2846
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2847
+ uploadType?: string;
2848
+ },
2849
+ body: GoogleCloudChannelV1ImportCustomerRequest): Request<GoogleCloudChannelV1Customer>;
2850
+ /**
2851
+ * List Customers. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT:
2852
+ * Required request parameters are missing or invalid. Return value: List of Customers, or an empty list if there are no customers.
2853
+ */
2854
+ list(request?: {
2855
+ /** V1 error format. */
2856
+ "$.xgafv"?: string;
2857
+ /** OAuth access token. */
2858
+ access_token?: string;
2859
+ /** Data format for response. */
2860
+ alt?: string;
2861
+ /** JSONP */
2862
+ callback?: string;
2863
+ /** Selector specifying which fields to include in a partial response. */
2864
+ fields?: string;
2865
+ /**
2866
+ * Optional. Filters applied to the [CloudChannelService.ListCustomers] results. See https://cloud.google.com/channel/docs/concepts/google-cloud/filter-customers for more
2867
+ * information.
2868
+ */
2869
+ filter?: string;
2870
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2871
+ key?: string;
2872
+ /** OAuth 2.0 token for the current user. */
2873
+ oauth_token?: string;
2874
+ /** Optional. The maximum number of customers to return. The service may return fewer than this value. If unspecified, returns at most 10 customers. The maximum value is 50. */
2875
+ pageSize?: number;
2876
+ /**
2877
+ * Optional. A token identifying a page of results other than the first page. Obtained through ListCustomersResponse.next_page_token of the previous
2878
+ * CloudChannelService.ListCustomers call.
2879
+ */
2880
+ pageToken?: string;
2881
+ /** Required. The resource name of the reseller account to list customers from. Parent uses the format: accounts/{account_id}. */
2882
+ parent: string;
2883
+ /** Returns response with indentations and line breaks. */
2884
+ prettyPrint?: boolean;
2885
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2886
+ quotaUser?: string;
2887
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2888
+ upload_protocol?: string;
2889
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2890
+ uploadType?: string;
2891
+ }): Request<GoogleCloudChannelV1ListCustomersResponse>;
2892
+ /**
2893
+ * Lists the following: * Offers that you can purchase for a customer. * Offers that you can change for an entitlement. Possible error codes: * PERMISSION_DENIED: The customer doesn't
2894
+ * belong to the reseller * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2895
+ */
2896
+ listPurchasableOffers(request?: {
2897
+ /** V1 error format. */
2898
+ "$.xgafv"?: string;
2899
+ /** OAuth access token. */
2900
+ access_token?: string;
2901
+ /** Data format for response. */
2902
+ alt?: string;
2903
+ /** JSONP */
2904
+ callback?: string;
2905
+ /** Required. Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2906
+ "changeOfferPurchase.entitlement"?: string;
2907
+ /** Optional. Resource name of the new target SKU. Provide this SKU when upgrading or downgrading an entitlement. Format: products/{product_id}/skus/{sku_id} */
2908
+ "changeOfferPurchase.newSku"?: string;
2909
+ /** Required. SKU that the result should be restricted to. Format: products/{product_id}/skus/{sku_id}. */
2910
+ "createEntitlementPurchase.sku"?: string;
2911
+ /** Required. The resource name of the customer to list Offers for. Format: accounts/{account_id}/customers/{customer_id}. */
2912
+ customer: string;
2913
+ /** Selector specifying which fields to include in a partial response. */
2914
+ fields?: string;
2915
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2916
+ key?: string;
2917
+ /** Optional. The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified. The default value is "en-US". */
2918
+ languageCode?: string;
2919
+ /** OAuth 2.0 token for the current user. */
2920
+ oauth_token?: string;
2921
+ /**
2922
+ * Optional. Requested page size. Server might return fewer results than requested. If unspecified, returns at most 100 Offers. The maximum value is 1000; the server will coerce
2923
+ * values above 1000.
2924
+ */
2925
+ pageSize?: number;
2926
+ /** Optional. A token for a page of results other than the first page. */
2927
+ pageToken?: string;
2928
+ /** Returns response with indentations and line breaks. */
2929
+ prettyPrint?: boolean;
2930
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2931
+ quotaUser?: string;
2932
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2933
+ upload_protocol?: string;
2934
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2935
+ uploadType?: string;
2936
+ }): Request<GoogleCloudChannelV1ListPurchasableOffersResponse>;
2937
+ /**
2938
+ * Lists the following: * SKUs that you can purchase for a customer * SKUs that you can upgrade or downgrade for an entitlement. Possible error codes: * PERMISSION_DENIED: The customer
2939
+ * doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid.
2940
+ */
2941
+ listPurchasableSkus(request?: {
2942
+ /** V1 error format. */
2943
+ "$.xgafv"?: string;
2944
+ /** OAuth access token. */
2945
+ access_token?: string;
2946
+ /** Data format for response. */
2947
+ alt?: string;
2948
+ /** JSONP */
2949
+ callback?: string;
2950
+ /** Required. Change Type for the entitlement. */
2951
+ "changeOfferPurchase.changeType"?: string;
2952
+ /** Required. Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} */
2953
+ "changeOfferPurchase.entitlement"?: string;
2954
+ /** Required. List SKUs belonging to this Product. Format: products/{product_id}. Supports products/- to retrieve SKUs for all products. */
2955
+ "createEntitlementPurchase.product"?: string;
2956
+ /** Required. The resource name of the customer to list SKUs for. Format: accounts/{account_id}/customers/{customer_id}. */
2957
+ customer: string;
2958
+ /** Selector specifying which fields to include in a partial response. */
2959
+ fields?: string;
2960
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2961
+ key?: string;
2962
+ /** Optional. The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified. The default value is "en-US". */
2963
+ languageCode?: string;
2964
+ /** OAuth 2.0 token for the current user. */
2965
+ oauth_token?: string;
2966
+ /**
2967
+ * Optional. Requested page size. Server might return fewer results than requested. If unspecified, returns at most 100 SKUs. The maximum value is 1000; the server will coerce
2968
+ * values above 1000.
2969
+ */
2970
+ pageSize?: number;
2971
+ /** Optional. A token for a page of results other than the first page. */
2972
+ pageToken?: string;
2973
+ /** Returns response with indentations and line breaks. */
2974
+ prettyPrint?: boolean;
2975
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2976
+ quotaUser?: string;
2977
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2978
+ upload_protocol?: string;
2979
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2980
+ uploadType?: string;
2981
+ }): Request<GoogleCloudChannelV1ListPurchasableSkusResponse>;
2982
+ /**
2983
+ * Updates an existing Customer resource for the reseller or distributor. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the
2984
+ * reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: No Customer resource found for the name in the request.
2985
+ * Return value: The updated Customer resource.
2986
+ */
2987
+ patch(request: {
2988
+ /** V1 error format. */
2989
+ "$.xgafv"?: string;
2990
+ /** OAuth access token. */
2991
+ access_token?: string;
2992
+ /** Data format for response. */
2993
+ alt?: string;
2994
+ /** JSONP */
2995
+ callback?: string;
2996
+ /** Selector specifying which fields to include in a partial response. */
2997
+ fields?: string;
2998
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2999
+ key?: string;
3000
+ /** Output only. Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id} */
3001
+ name: string;
3002
+ /** OAuth 2.0 token for the current user. */
3003
+ oauth_token?: string;
3004
+ /** Returns response with indentations and line breaks. */
3005
+ prettyPrint?: boolean;
3006
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3007
+ quotaUser?: string;
3008
+ /** The update mask that applies to the resource. Optional. */
3009
+ updateMask?: string;
3010
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3011
+ upload_protocol?: string;
3012
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3013
+ uploadType?: string;
3014
+ /** Request body */
3015
+ resource: GoogleCloudChannelV1Customer;
3016
+ }): Request<GoogleCloudChannelV1Customer>;
3017
+ patch(request: {
3018
+ /** V1 error format. */
3019
+ "$.xgafv"?: string;
3020
+ /** OAuth access token. */
3021
+ access_token?: string;
3022
+ /** Data format for response. */
3023
+ alt?: string;
3024
+ /** JSONP */
3025
+ callback?: string;
3026
+ /** Selector specifying which fields to include in a partial response. */
3027
+ fields?: string;
3028
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3029
+ key?: string;
3030
+ /** Output only. Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id} */
3031
+ name: string;
3032
+ /** OAuth 2.0 token for the current user. */
3033
+ oauth_token?: string;
3034
+ /** Returns response with indentations and line breaks. */
3035
+ prettyPrint?: boolean;
3036
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3037
+ quotaUser?: string;
3038
+ /** The update mask that applies to the resource. Optional. */
3039
+ updateMask?: string;
3040
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3041
+ upload_protocol?: string;
3042
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3043
+ uploadType?: string;
3044
+ },
3045
+ body: GoogleCloudChannelV1Customer): Request<GoogleCloudChannelV1Customer>;
3046
+ /**
3047
+ * Creates a Cloud Identity for the given customer using the customer's information, or the information provided here. Possible error codes: * PERMISSION_DENIED: The customer doesn't
3048
+ * belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer was not found. * ALREADY_EXISTS: The customer's primary
3049
+ * email already exists. Retry after changing the customer's primary contact email. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel
3050
+ * support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the
3051
+ * results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata contains an instance of OperationMetadata.
3052
+ */
3053
+ provisionCloudIdentity(request: {
3054
+ /** V1 error format. */
3055
+ "$.xgafv"?: string;
3056
+ /** OAuth access token. */
3057
+ access_token?: string;
3058
+ /** Data format for response. */
3059
+ alt?: string;
3060
+ /** JSONP */
3061
+ callback?: string;
3062
+ /** Required. Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id} */
3063
+ customer: string;
3064
+ /** Selector specifying which fields to include in a partial response. */
3065
+ fields?: string;
3066
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3067
+ key?: string;
3068
+ /** OAuth 2.0 token for the current user. */
3069
+ oauth_token?: string;
3070
+ /** Returns response with indentations and line breaks. */
3071
+ prettyPrint?: boolean;
3072
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3073
+ quotaUser?: string;
3074
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3075
+ upload_protocol?: string;
3076
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3077
+ uploadType?: string;
3078
+ /** Request body */
3079
+ resource: GoogleCloudChannelV1ProvisionCloudIdentityRequest;
3080
+ }): Request<GoogleLongrunningOperation>;
3081
+ provisionCloudIdentity(request: {
3082
+ /** V1 error format. */
3083
+ "$.xgafv"?: string;
3084
+ /** OAuth access token. */
3085
+ access_token?: string;
3086
+ /** Data format for response. */
3087
+ alt?: string;
3088
+ /** JSONP */
3089
+ callback?: string;
3090
+ /** Required. Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id} */
3091
+ customer: string;
3092
+ /** Selector specifying which fields to include in a partial response. */
3093
+ fields?: string;
3094
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3095
+ key?: string;
3096
+ /** OAuth 2.0 token for the current user. */
3097
+ oauth_token?: string;
3098
+ /** Returns response with indentations and line breaks. */
3099
+ prettyPrint?: boolean;
3100
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3101
+ quotaUser?: string;
3102
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3103
+ upload_protocol?: string;
3104
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3105
+ uploadType?: string;
3106
+ },
3107
+ body: GoogleCloudChannelV1ProvisionCloudIdentityRequest): Request<GoogleLongrunningOperation>;
3108
+ /**
3109
+ * Transfers customer entitlements to new reseller. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request
3110
+ * parameters are missing or invalid. * NOT_FOUND: The customer or offer resource was not found. * ALREADY_EXISTS: The SKU was already transferred for the customer. * CONDITION_NOT_MET
3111
+ * or FAILED_PRECONDITION: * The SKU requires domain verification to transfer, but the domain is not verified. * An Add-On SKU (example, Vault or Drive) is missing the pre-requisite
3112
+ * SKU (example, G Suite Basic). * (Developer accounts only) Reseller and resold domain must meet the following naming requirements: * Domain names must start with goog-test. * Domain
3113
+ * names must include the reseller domain. * Specify all transferring entitlements. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel
3114
+ * support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the
3115
+ * results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
3116
+ */
3117
+ transferEntitlements(request: {
3118
+ /** V1 error format. */
3119
+ "$.xgafv"?: string;
3120
+ /** OAuth access token. */
3121
+ access_token?: string;
3122
+ /** Data format for response. */
3123
+ alt?: string;
3124
+ /** JSONP */
3125
+ callback?: string;
3126
+ /** Selector specifying which fields to include in a partial response. */
3127
+ fields?: string;
3128
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3129
+ key?: string;
3130
+ /** OAuth 2.0 token for the current user. */
3131
+ oauth_token?: string;
3132
+ /** Required. The resource name of the reseller's customer account that will receive transferred entitlements. Parent uses the format: accounts/{account_id}/customers/{customer_id} */
3133
+ parent: string;
3134
+ /** Returns response with indentations and line breaks. */
3135
+ prettyPrint?: boolean;
3136
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3137
+ quotaUser?: string;
3138
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3139
+ upload_protocol?: string;
3140
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3141
+ uploadType?: string;
3142
+ /** Request body */
3143
+ resource: GoogleCloudChannelV1TransferEntitlementsRequest;
3144
+ }): Request<GoogleLongrunningOperation>;
3145
+ transferEntitlements(request: {
3146
+ /** V1 error format. */
3147
+ "$.xgafv"?: string;
3148
+ /** OAuth access token. */
3149
+ access_token?: string;
3150
+ /** Data format for response. */
3151
+ alt?: string;
3152
+ /** JSONP */
3153
+ callback?: string;
3154
+ /** Selector specifying which fields to include in a partial response. */
3155
+ fields?: string;
3156
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3157
+ key?: string;
3158
+ /** OAuth 2.0 token for the current user. */
3159
+ oauth_token?: string;
3160
+ /** Required. The resource name of the reseller's customer account that will receive transferred entitlements. Parent uses the format: accounts/{account_id}/customers/{customer_id} */
3161
+ parent: string;
3162
+ /** Returns response with indentations and line breaks. */
3163
+ prettyPrint?: boolean;
3164
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3165
+ quotaUser?: string;
3166
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3167
+ upload_protocol?: string;
3168
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3169
+ uploadType?: string;
3170
+ },
3171
+ body: GoogleCloudChannelV1TransferEntitlementsRequest): Request<GoogleLongrunningOperation>;
3172
+ /**
3173
+ * Transfers customer entitlements from their current reseller to Google. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT:
3174
+ * Required request parameters are missing or invalid. * NOT_FOUND: The customer or offer resource was not found. * ALREADY_EXISTS: The SKU was already transferred for the customer. *
3175
+ * CONDITION_NOT_MET or FAILED_PRECONDITION: * The SKU requires domain verification to transfer, but the domain is not verified. * An Add-On SKU (example, Vault or Drive) is missing
3176
+ * the pre-requisite SKU (example, G Suite Basic). * (Developer accounts only) Reseller and resold domain must meet the following naming requirements: * Domain names must start with
3177
+ * goog-test. * Domain names must include the reseller domain. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any
3178
+ * non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation,
3179
+ * call the GetOperation method of CloudChannelOperationsService. The response will contain google.protobuf.Empty on success. The Operation metadata will contain an instance of
3180
+ * OperationMetadata.
3181
+ */
3182
+ transferEntitlementsToGoogle(request: {
3183
+ /** V1 error format. */
3184
+ "$.xgafv"?: string;
3185
+ /** OAuth access token. */
3186
+ access_token?: string;
3187
+ /** Data format for response. */
3188
+ alt?: string;
3189
+ /** JSONP */
3190
+ callback?: string;
3191
+ /** Selector specifying which fields to include in a partial response. */
3192
+ fields?: string;
3193
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3194
+ key?: string;
3195
+ /** OAuth 2.0 token for the current user. */
3196
+ oauth_token?: string;
3197
+ /** Required. The resource name of the reseller's customer account where the entitlements transfer from. Parent uses the format: accounts/{account_id}/customers/{customer_id} */
3198
+ parent: string;
3199
+ /** Returns response with indentations and line breaks. */
3200
+ prettyPrint?: boolean;
3201
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3202
+ quotaUser?: string;
3203
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3204
+ upload_protocol?: string;
3205
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3206
+ uploadType?: string;
3207
+ /** Request body */
3208
+ resource: GoogleCloudChannelV1TransferEntitlementsToGoogleRequest;
3209
+ }): Request<GoogleLongrunningOperation>;
3210
+ transferEntitlementsToGoogle(request: {
3211
+ /** V1 error format. */
3212
+ "$.xgafv"?: string;
3213
+ /** OAuth access token. */
3214
+ access_token?: string;
3215
+ /** Data format for response. */
3216
+ alt?: string;
3217
+ /** JSONP */
3218
+ callback?: string;
3219
+ /** Selector specifying which fields to include in a partial response. */
3220
+ fields?: string;
3221
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3222
+ key?: string;
3223
+ /** OAuth 2.0 token for the current user. */
3224
+ oauth_token?: string;
3225
+ /** Required. The resource name of the reseller's customer account where the entitlements transfer from. Parent uses the format: accounts/{account_id}/customers/{customer_id} */
3226
+ parent: string;
3227
+ /** Returns response with indentations and line breaks. */
3228
+ prettyPrint?: boolean;
3229
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3230
+ quotaUser?: string;
3231
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3232
+ upload_protocol?: string;
3233
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3234
+ uploadType?: string;
3235
+ },
3236
+ body: GoogleCloudChannelV1TransferEntitlementsToGoogleRequest): Request<GoogleLongrunningOperation>;
3237
+ customerRepricingConfigs: CustomerRepricingConfigsResource;
3238
+ entitlements: EntitlementsResource;
3239
+ }
3240
+ interface OffersResource {
3241
+ /** Lists the Offers the reseller can sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid. */
3242
+ list(request?: {
3243
+ /** V1 error format. */
3244
+ "$.xgafv"?: string;
3245
+ /** OAuth access token. */
3246
+ access_token?: string;
3247
+ /** Data format for response. */
3248
+ alt?: string;
3249
+ /** JSONP */
3250
+ callback?: string;
3251
+ /** Selector specifying which fields to include in a partial response. */
3252
+ fields?: string;
3253
+ /**
3254
+ * Optional. The expression to filter results by name (name of the Offer), sku.name (name of the SKU), or sku.product.name (name of the Product). Example 1:
3255
+ * sku.product.name=products/p1 AND sku.name!=products/p1/skus/s1 Example 2: name=accounts/a1/offers/o1
3256
+ */
3257
+ filter?: string;
3258
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3259
+ key?: string;
3260
+ /** Optional. The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified. The default value is "en-US". */
3261
+ languageCode?: string;
3262
+ /** OAuth 2.0 token for the current user. */
3263
+ oauth_token?: string;
3264
+ /**
3265
+ * Optional. Requested page size. Server might return fewer results than requested. If unspecified, returns at most 500 Offers. The maximum value is 1000; the server will coerce
3266
+ * values above 1000.
3267
+ */
3268
+ pageSize?: number;
3269
+ /** Optional. A token for a page of results other than the first page. */
3270
+ pageToken?: string;
3271
+ /** Required. The resource name of the reseller account from which to list Offers. Parent uses the format: accounts/{account_id}. */
3272
+ parent: string;
3273
+ /** Returns response with indentations and line breaks. */
3274
+ prettyPrint?: boolean;
3275
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3276
+ quotaUser?: string;
3277
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3278
+ upload_protocol?: string;
3279
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3280
+ uploadType?: string;
3281
+ }): Request<GoogleCloudChannelV1ListOffersResponse>;
3282
+ }
3283
+ interface AccountsResource {
3284
+ /**
3285
+ * Confirms the existence of Cloud Identity accounts based on the domain and if the Cloud Identity accounts are owned by the reseller. Possible error codes: * PERMISSION_DENIED: The
3286
+ * reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. *
3287
+ * INVALID_VALUE: Invalid domain value in the request. Return value: A list of CloudIdentityCustomerAccount resources for the domain (may be empty) Note: in the v1alpha1 version of the
3288
+ * API, a NOT_FOUND error returns if no CloudIdentityCustomerAccount resources match the domain.
3289
+ */
3290
+ checkCloudIdentityAccountsExist(request: {
3291
+ /** V1 error format. */
3292
+ "$.xgafv"?: string;
3293
+ /** OAuth access token. */
3294
+ access_token?: string;
3295
+ /** Data format for response. */
3296
+ alt?: string;
3297
+ /** JSONP */
3298
+ callback?: string;
3299
+ /** Selector specifying which fields to include in a partial response. */
3300
+ fields?: string;
3301
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3302
+ key?: string;
3303
+ /** OAuth 2.0 token for the current user. */
3304
+ oauth_token?: string;
3305
+ /** Required. The reseller account's resource name. Parent uses the format: accounts/{account_id} */
3306
+ parent: string;
3307
+ /** Returns response with indentations and line breaks. */
3308
+ prettyPrint?: boolean;
3309
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3310
+ quotaUser?: string;
3311
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3312
+ upload_protocol?: string;
3313
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3314
+ uploadType?: string;
3315
+ /** Request body */
3316
+ resource: GoogleCloudChannelV1CheckCloudIdentityAccountsExistRequest;
3317
+ }): Request<GoogleCloudChannelV1CheckCloudIdentityAccountsExistResponse>;
3318
+ checkCloudIdentityAccountsExist(request: {
3319
+ /** V1 error format. */
3320
+ "$.xgafv"?: string;
3321
+ /** OAuth access token. */
3322
+ access_token?: string;
3323
+ /** Data format for response. */
3324
+ alt?: string;
3325
+ /** JSONP */
3326
+ callback?: string;
3327
+ /** Selector specifying which fields to include in a partial response. */
3328
+ fields?: string;
3329
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3330
+ key?: string;
3331
+ /** OAuth 2.0 token for the current user. */
3332
+ oauth_token?: string;
3333
+ /** Required. The reseller account's resource name. Parent uses the format: accounts/{account_id} */
3334
+ parent: string;
3335
+ /** Returns response with indentations and line breaks. */
3336
+ prettyPrint?: boolean;
3337
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3338
+ quotaUser?: string;
3339
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3340
+ upload_protocol?: string;
3341
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3342
+ uploadType?: string;
3343
+ },
3344
+ body: GoogleCloudChannelV1CheckCloudIdentityAccountsExistRequest): Request<GoogleCloudChannelV1CheckCloudIdentityAccountsExistResponse>;
3345
+ /**
3346
+ * Lists service accounts with subscriber privileges on the Cloud Pub/Sub topic created for this Channel Services account. Possible error codes: * PERMISSION_DENIED: The reseller
3347
+ * account making the request and the provided reseller account are different, or the impersonated user is not a super admin. * INVALID_ARGUMENT: Required request parameters are
3348
+ * missing or invalid. * NOT_FOUND: The topic resource doesn't exist. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. *
3349
+ * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: A list of service email addresses.
3350
+ */
3351
+ listSubscribers(request?: {
3352
+ /** V1 error format. */
3353
+ "$.xgafv"?: string;
3354
+ /** OAuth access token. */
3355
+ access_token?: string;
3356
+ /** Required. Resource name of the account. */
3357
+ account: string;
3358
+ /** Data format for response. */
3359
+ alt?: string;
3360
+ /** JSONP */
3361
+ callback?: string;
3362
+ /** Selector specifying which fields to include in a partial response. */
3363
+ fields?: string;
3364
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3365
+ key?: string;
3366
+ /** OAuth 2.0 token for the current user. */
3367
+ oauth_token?: string;
3368
+ /**
3369
+ * Optional. The maximum number of service accounts to return. The service may return fewer than this value. If unspecified, returns at most 100 service accounts. The maximum value
3370
+ * is 1000; the server will coerce values above 1000.
3371
+ */
3372
+ pageSize?: number;
3373
+ /**
3374
+ * Optional. A page token, received from a previous `ListSubscribers` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
3375
+ * `ListSubscribers` must match the call that provided the page token.
3376
+ */
3377
+ pageToken?: string;
3378
+ /** Returns response with indentations and line breaks. */
3379
+ prettyPrint?: boolean;
3380
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3381
+ quotaUser?: string;
3382
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3383
+ upload_protocol?: string;
3384
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3385
+ uploadType?: string;
3386
+ }): Request<GoogleCloudChannelV1ListSubscribersResponse>;
3387
+ /**
3388
+ * List TransferableOffers of a customer based on Cloud Identity ID or Customer Name in the request. Use this method when a reseller gets the entitlement information of an unowned
3389
+ * customer. The reseller should provide the customer's Cloud Identity ID or Customer Name. Possible error codes: * PERMISSION_DENIED: * The customer doesn't belong to the reseller and
3390
+ * has no auth token. * The supplied auth token is invalid. * The reseller account making the request is different from the reseller account in the query. * INVALID_ARGUMENT: Required
3391
+ * request parameters are missing or invalid. Return value: List of TransferableOffer for the given customer and SKU.
3392
+ */
3393
+ listTransferableOffers(request: {
3394
+ /** V1 error format. */
3395
+ "$.xgafv"?: string;
3396
+ /** OAuth access token. */
3397
+ access_token?: string;
3398
+ /** Data format for response. */
3399
+ alt?: string;
3400
+ /** JSONP */
3401
+ callback?: string;
3402
+ /** Selector specifying which fields to include in a partial response. */
3403
+ fields?: string;
3404
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3405
+ key?: string;
3406
+ /** OAuth 2.0 token for the current user. */
3407
+ oauth_token?: string;
3408
+ /** Required. The resource name of the reseller's account. */
3409
+ parent: string;
3410
+ /** Returns response with indentations and line breaks. */
3411
+ prettyPrint?: boolean;
3412
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3413
+ quotaUser?: string;
3414
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3415
+ upload_protocol?: string;
3416
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3417
+ uploadType?: string;
3418
+ /** Request body */
3419
+ resource: GoogleCloudChannelV1ListTransferableOffersRequest;
3420
+ }): Request<GoogleCloudChannelV1ListTransferableOffersResponse>;
3421
+ listTransferableOffers(request: {
3422
+ /** V1 error format. */
3423
+ "$.xgafv"?: string;
3424
+ /** OAuth access token. */
3425
+ access_token?: string;
3426
+ /** Data format for response. */
3427
+ alt?: string;
3428
+ /** JSONP */
3429
+ callback?: string;
3430
+ /** Selector specifying which fields to include in a partial response. */
3431
+ fields?: string;
3432
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3433
+ key?: string;
3434
+ /** OAuth 2.0 token for the current user. */
3435
+ oauth_token?: string;
3436
+ /** Required. The resource name of the reseller's account. */
3437
+ parent: string;
3438
+ /** Returns response with indentations and line breaks. */
3439
+ prettyPrint?: boolean;
3440
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3441
+ quotaUser?: string;
3442
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3443
+ upload_protocol?: string;
3444
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3445
+ uploadType?: string;
3446
+ },
3447
+ body: GoogleCloudChannelV1ListTransferableOffersRequest): Request<GoogleCloudChannelV1ListTransferableOffersResponse>;
3448
+ /**
3449
+ * List TransferableSkus of a customer based on the Cloud Identity ID or Customer Name in the request. Use this method to list the entitlements information of an unowned customer. You
3450
+ * should provide the customer's Cloud Identity ID or Customer Name. Possible error codes: * PERMISSION_DENIED: * The customer doesn't belong to the reseller and has no auth token. *
3451
+ * The supplied auth token is invalid. * The reseller account making the request is different from the reseller account in the query. * INVALID_ARGUMENT: Required request parameters
3452
+ * are missing or invalid. Return value: A list of the customer's TransferableSku.
3453
+ */
3454
+ listTransferableSkus(request: {
3455
+ /** V1 error format. */
3456
+ "$.xgafv"?: string;
3457
+ /** OAuth access token. */
3458
+ access_token?: string;
3459
+ /** Data format for response. */
3460
+ alt?: string;
3461
+ /** JSONP */
3462
+ callback?: string;
3463
+ /** Selector specifying which fields to include in a partial response. */
3464
+ fields?: string;
3465
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3466
+ key?: string;
3467
+ /** OAuth 2.0 token for the current user. */
3468
+ oauth_token?: string;
3469
+ /** Required. The reseller account's resource name. Parent uses the format: accounts/{account_id} */
3470
+ parent: string;
3471
+ /** Returns response with indentations and line breaks. */
3472
+ prettyPrint?: boolean;
3473
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3474
+ quotaUser?: string;
3475
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3476
+ upload_protocol?: string;
3477
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3478
+ uploadType?: string;
3479
+ /** Request body */
3480
+ resource: GoogleCloudChannelV1ListTransferableSkusRequest;
3481
+ }): Request<GoogleCloudChannelV1ListTransferableSkusResponse>;
3482
+ listTransferableSkus(request: {
3483
+ /** V1 error format. */
3484
+ "$.xgafv"?: string;
3485
+ /** OAuth access token. */
3486
+ access_token?: string;
3487
+ /** Data format for response. */
3488
+ alt?: string;
3489
+ /** JSONP */
3490
+ callback?: string;
3491
+ /** Selector specifying which fields to include in a partial response. */
3492
+ fields?: string;
3493
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3494
+ key?: string;
3495
+ /** OAuth 2.0 token for the current user. */
3496
+ oauth_token?: string;
3497
+ /** Required. The reseller account's resource name. Parent uses the format: accounts/{account_id} */
3498
+ parent: string;
3499
+ /** Returns response with indentations and line breaks. */
3500
+ prettyPrint?: boolean;
3501
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3502
+ quotaUser?: string;
3503
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3504
+ upload_protocol?: string;
3505
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3506
+ uploadType?: string;
3507
+ },
3508
+ body: GoogleCloudChannelV1ListTransferableSkusRequest): Request<GoogleCloudChannelV1ListTransferableSkusResponse>;
3509
+ /**
3510
+ * Registers a service account with subscriber privileges on the Cloud Pub/Sub topic for this Channel Services account. After you create a subscriber, you get the events through
3511
+ * SubscriberEvent Possible error codes: * PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a
3512
+ * super admin. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud
3513
+ * Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The topic name with the registered service
3514
+ * email address.
3515
+ */
3516
+ register(request: {
3517
+ /** V1 error format. */
3518
+ "$.xgafv"?: string;
3519
+ /** OAuth access token. */
3520
+ access_token?: string;
3521
+ /** Required. Resource name of the account. */
3522
+ account: string;
3523
+ /** Data format for response. */
3524
+ alt?: string;
3525
+ /** JSONP */
3526
+ callback?: string;
3527
+ /** Selector specifying which fields to include in a partial response. */
3528
+ fields?: string;
3529
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3530
+ key?: string;
3531
+ /** OAuth 2.0 token for the current user. */
3532
+ oauth_token?: string;
3533
+ /** Returns response with indentations and line breaks. */
3534
+ prettyPrint?: boolean;
3535
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3536
+ quotaUser?: string;
3537
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3538
+ upload_protocol?: string;
3539
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3540
+ uploadType?: string;
3541
+ /** Request body */
3542
+ resource: GoogleCloudChannelV1RegisterSubscriberRequest;
3543
+ }): Request<GoogleCloudChannelV1RegisterSubscriberResponse>;
3544
+ register(request: {
3545
+ /** V1 error format. */
3546
+ "$.xgafv"?: string;
3547
+ /** OAuth access token. */
3548
+ access_token?: string;
3549
+ /** Required. Resource name of the account. */
3550
+ account: string;
3551
+ /** Data format for response. */
3552
+ alt?: string;
3553
+ /** JSONP */
3554
+ callback?: string;
3555
+ /** Selector specifying which fields to include in a partial response. */
3556
+ fields?: string;
3557
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3558
+ key?: string;
3559
+ /** OAuth 2.0 token for the current user. */
3560
+ oauth_token?: string;
3561
+ /** Returns response with indentations and line breaks. */
3562
+ prettyPrint?: boolean;
3563
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3564
+ quotaUser?: string;
3565
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3566
+ upload_protocol?: string;
3567
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3568
+ uploadType?: string;
3569
+ },
3570
+ body: GoogleCloudChannelV1RegisterSubscriberRequest): Request<GoogleCloudChannelV1RegisterSubscriberResponse>;
3571
+ /**
3572
+ * Unregisters a service account with subscriber privileges on the Cloud Pub/Sub topic created for this Channel Services account. If there are no service accounts left with subscriber
3573
+ * privileges, this deletes the topic. You can call ListSubscribers to check for these accounts. Possible error codes: * PERMISSION_DENIED: The reseller account making the request and
3574
+ * the provided reseller account are different, or the impersonated user is not a super admin. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The
3575
+ * topic resource doesn't exist. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a
3576
+ * technical issue in the backend. Contact Cloud Channel support. Return value: The topic name that unregistered the service email address. Returns a success response if the service
3577
+ * email address wasn't registered with the topic.
3578
+ */
3579
+ unregister(request: {
3580
+ /** V1 error format. */
3581
+ "$.xgafv"?: string;
3582
+ /** OAuth access token. */
3583
+ access_token?: string;
3584
+ /** Required. Resource name of the account. */
3585
+ account: string;
3586
+ /** Data format for response. */
3587
+ alt?: string;
3588
+ /** JSONP */
3589
+ callback?: string;
3590
+ /** Selector specifying which fields to include in a partial response. */
3591
+ fields?: string;
3592
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3593
+ key?: string;
3594
+ /** OAuth 2.0 token for the current user. */
3595
+ oauth_token?: string;
3596
+ /** Returns response with indentations and line breaks. */
3597
+ prettyPrint?: boolean;
3598
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3599
+ quotaUser?: string;
3600
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3601
+ upload_protocol?: string;
3602
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3603
+ uploadType?: string;
3604
+ /** Request body */
3605
+ resource: GoogleCloudChannelV1UnregisterSubscriberRequest;
3606
+ }): Request<GoogleCloudChannelV1UnregisterSubscriberResponse>;
3607
+ unregister(request: {
3608
+ /** V1 error format. */
3609
+ "$.xgafv"?: string;
3610
+ /** OAuth access token. */
3611
+ access_token?: string;
3612
+ /** Required. Resource name of the account. */
3613
+ account: string;
3614
+ /** Data format for response. */
3615
+ alt?: string;
3616
+ /** JSONP */
3617
+ callback?: string;
3618
+ /** Selector specifying which fields to include in a partial response. */
3619
+ fields?: string;
3620
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3621
+ key?: string;
3622
+ /** OAuth 2.0 token for the current user. */
3623
+ oauth_token?: string;
3624
+ /** Returns response with indentations and line breaks. */
3625
+ prettyPrint?: boolean;
3626
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3627
+ quotaUser?: string;
3628
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3629
+ upload_protocol?: string;
3630
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3631
+ uploadType?: string;
3632
+ },
3633
+ body: GoogleCloudChannelV1UnregisterSubscriberRequest): Request<GoogleCloudChannelV1UnregisterSubscriberResponse>;
3634
+ channelPartnerLinks: ChannelPartnerLinksResource;
3635
+ customers: CustomersResource;
3636
+ offers: OffersResource;
3637
+ }
3638
+ interface OperationsResource {
3639
+ /**
3640
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support
3641
+ * this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the
3642
+ * operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
3643
+ * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
3644
+ */
3645
+ cancel(request: {
3646
+ /** V1 error format. */
3647
+ "$.xgafv"?: string;
3648
+ /** OAuth access token. */
3649
+ access_token?: string;
3650
+ /** Data format for response. */
3651
+ alt?: string;
3652
+ /** JSONP */
3653
+ callback?: string;
3654
+ /** Selector specifying which fields to include in a partial response. */
3655
+ fields?: string;
3656
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3657
+ key?: string;
3658
+ /** The name of the operation resource to be cancelled. */
3659
+ name: string;
3660
+ /** OAuth 2.0 token for the current user. */
3661
+ oauth_token?: string;
3662
+ /** Returns response with indentations and line breaks. */
3663
+ prettyPrint?: boolean;
3664
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3665
+ quotaUser?: string;
3666
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3667
+ upload_protocol?: string;
3668
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3669
+ uploadType?: string;
3670
+ /** Request body */
3671
+ resource: GoogleLongrunningCancelOperationRequest;
3672
+ }): Request<{}>;
3673
+ cancel(request: {
3674
+ /** V1 error format. */
3675
+ "$.xgafv"?: string;
3676
+ /** OAuth access token. */
3677
+ access_token?: string;
3678
+ /** Data format for response. */
3679
+ alt?: string;
3680
+ /** JSONP */
3681
+ callback?: string;
3682
+ /** Selector specifying which fields to include in a partial response. */
3683
+ fields?: string;
3684
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3685
+ key?: string;
3686
+ /** The name of the operation resource to be cancelled. */
3687
+ name: string;
3688
+ /** OAuth 2.0 token for the current user. */
3689
+ oauth_token?: string;
3690
+ /** Returns response with indentations and line breaks. */
3691
+ prettyPrint?: boolean;
3692
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3693
+ quotaUser?: string;
3694
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3695
+ upload_protocol?: string;
3696
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3697
+ uploadType?: string;
3698
+ },
3699
+ body: GoogleLongrunningCancelOperationRequest): Request<{}>;
3700
+ /**
3701
+ * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't
3702
+ * support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
3703
+ */
3704
+ delete(request?: {
3705
+ /** V1 error format. */
3706
+ "$.xgafv"?: string;
3707
+ /** OAuth access token. */
3708
+ access_token?: string;
3709
+ /** Data format for response. */
3710
+ alt?: string;
3711
+ /** JSONP */
3712
+ callback?: string;
3713
+ /** Selector specifying which fields to include in a partial response. */
3714
+ fields?: string;
3715
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3716
+ key?: string;
3717
+ /** The name of the operation resource to be deleted. */
3718
+ name: string;
3719
+ /** OAuth 2.0 token for the current user. */
3720
+ oauth_token?: string;
3721
+ /** Returns response with indentations and line breaks. */
3722
+ prettyPrint?: boolean;
3723
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3724
+ quotaUser?: string;
3725
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3726
+ upload_protocol?: string;
3727
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3728
+ uploadType?: string;
3729
+ }): Request<{}>;
3730
+ /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
3731
+ get(request?: {
3732
+ /** V1 error format. */
3733
+ "$.xgafv"?: string;
3734
+ /** OAuth access token. */
3735
+ access_token?: string;
3736
+ /** Data format for response. */
3737
+ alt?: string;
3738
+ /** JSONP */
3739
+ callback?: string;
3740
+ /** Selector specifying which fields to include in a partial response. */
3741
+ fields?: string;
3742
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3743
+ key?: string;
3744
+ /** The name of the operation resource. */
3745
+ name: string;
3746
+ /** OAuth 2.0 token for the current user. */
3747
+ oauth_token?: string;
3748
+ /** Returns response with indentations and line breaks. */
3749
+ prettyPrint?: boolean;
3750
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3751
+ quotaUser?: string;
3752
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3753
+ upload_protocol?: string;
3754
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3755
+ uploadType?: string;
3756
+ }): Request<GoogleLongrunningOperation>;
3757
+ /**
3758
+ * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
3759
+ * to override the binding to use different resource name schemes, such as `users/*‍/operations`. To override the binding, API services can add a binding such as
3760
+ * `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
3761
+ * ensure the name binding is the parent resource, without the operations collection id.
3762
+ */
3763
+ list(request?: {
3764
+ /** V1 error format. */
3765
+ "$.xgafv"?: string;
3766
+ /** OAuth access token. */
3767
+ access_token?: string;
3768
+ /** Data format for response. */
3769
+ alt?: string;
3770
+ /** JSONP */
3771
+ callback?: string;
3772
+ /** Selector specifying which fields to include in a partial response. */
3773
+ fields?: string;
3774
+ /** The standard list filter. */
3775
+ filter?: string;
3776
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3777
+ key?: string;
3778
+ /** The name of the operation's parent resource. */
3779
+ name: string;
3780
+ /** OAuth 2.0 token for the current user. */
3781
+ oauth_token?: string;
3782
+ /** The standard list page size. */
3783
+ pageSize?: number;
3784
+ /** The standard list page token. */
3785
+ pageToken?: string;
3786
+ /** Returns response with indentations and line breaks. */
3787
+ prettyPrint?: boolean;
3788
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3789
+ quotaUser?: string;
3790
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3791
+ upload_protocol?: string;
3792
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3793
+ uploadType?: string;
3794
+ }): Request<GoogleLongrunningListOperationsResponse>;
3795
+ }
3796
+ interface SkusResource {
3797
+ /** Lists the SKUs for a product the reseller is authorized to sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid. */
3798
+ list(request?: {
3799
+ /** V1 error format. */
3800
+ "$.xgafv"?: string;
3801
+ /** OAuth access token. */
3802
+ access_token?: string;
3803
+ /** Required. Resource name of the reseller. Format: accounts/{account_id}. */
3804
+ account?: string;
3805
+ /** Data format for response. */
3806
+ alt?: string;
3807
+ /** JSONP */
3808
+ callback?: string;
3809
+ /** Selector specifying which fields to include in a partial response. */
3810
+ fields?: string;
3811
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3812
+ key?: string;
3813
+ /** Optional. The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified. The default value is "en-US". */
3814
+ languageCode?: string;
3815
+ /** OAuth 2.0 token for the current user. */
3816
+ oauth_token?: string;
3817
+ /**
3818
+ * Optional. Requested page size. Server might return fewer results than requested. If unspecified, returns at most 100 SKUs. The maximum value is 1000; the server will coerce
3819
+ * values above 1000.
3820
+ */
3821
+ pageSize?: number;
3822
+ /** Optional. A token for a page of results other than the first page. Optional. */
3823
+ pageToken?: string;
3824
+ /** Required. The resource name of the Product to list SKUs for. Parent uses the format: products/{product_id}. Supports products/- to retrieve SKUs for all products. */
3825
+ parent: string;
3826
+ /** Returns response with indentations and line breaks. */
3827
+ prettyPrint?: boolean;
3828
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3829
+ quotaUser?: string;
3830
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3831
+ upload_protocol?: string;
3832
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3833
+ uploadType?: string;
3834
+ }): Request<GoogleCloudChannelV1ListSkusResponse>;
3835
+ }
3836
+ interface ProductsResource {
3837
+ /** Lists the Products the reseller is authorized to sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid. */
3838
+ list(request?: {
3839
+ /** V1 error format. */
3840
+ "$.xgafv"?: string;
3841
+ /** OAuth access token. */
3842
+ access_token?: string;
3843
+ /** Required. The resource name of the reseller account. Format: accounts/{account_id}. */
3844
+ account?: string;
3845
+ /** Data format for response. */
3846
+ alt?: string;
3847
+ /** JSONP */
3848
+ callback?: string;
3849
+ /** Selector specifying which fields to include in a partial response. */
3850
+ fields?: string;
3851
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3852
+ key?: string;
3853
+ /** Optional. The BCP-47 language code. For example, "en-US". The response will localize in the corresponding language code, if specified. The default value is "en-US". */
3854
+ languageCode?: string;
3855
+ /** OAuth 2.0 token for the current user. */
3856
+ oauth_token?: string;
3857
+ /**
3858
+ * Optional. Requested page size. Server might return fewer results than requested. If unspecified, returns at most 100 Products. The maximum value is 1000; the server will coerce
3859
+ * values above 1000.
3860
+ */
3861
+ pageSize?: number;
3862
+ /** Optional. A token for a page of results other than the first page. */
3863
+ pageToken?: string;
3864
+ /** Returns response with indentations and line breaks. */
3865
+ prettyPrint?: boolean;
3866
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3867
+ quotaUser?: string;
3868
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3869
+ upload_protocol?: string;
3870
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3871
+ uploadType?: string;
3872
+ }): Request<GoogleCloudChannelV1ListProductsResponse>;
3873
+ skus: SkusResource;
3874
+ }
3875
+
3876
+ const accounts: AccountsResource;
3877
+
3878
+ const operations: OperationsResource;
3879
+
3880
+ const products: ProductsResource;
3881
+ }
3882
+ }