@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 +3882 -0
- package/package.json +20 -0
- package/readme.md +123 -0
- package/tests.ts +1187 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/tests.ts
ADDED
|
@@ -0,0 +1,1187 @@
|
|
|
1
|
+
/* This is stub file for gapi.client.cloudchannel-v1 definition tests */
|
|
2
|
+
// IMPORTANT
|
|
3
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
+
|
|
6
|
+
// Revision: 20220811
|
|
7
|
+
|
|
8
|
+
gapi.load('client', async () => {
|
|
9
|
+
/** now we can use gapi.client */
|
|
10
|
+
|
|
11
|
+
await gapi.client.load('https://cloudchannel.googleapis.com/$discovery/rest?version=v1');
|
|
12
|
+
/** now we can use gapi.client.cloudchannel */
|
|
13
|
+
|
|
14
|
+
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
+
/** declare client_id registered in Google Developers Console */
|
|
16
|
+
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
+
const scope = [
|
|
18
|
+
/** Manage users on your domain */
|
|
19
|
+
'https://www.googleapis.com/auth/apps.order',
|
|
20
|
+
];
|
|
21
|
+
const immediate = false;
|
|
22
|
+
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
23
|
+
if (authResult && !authResult.error) {
|
|
24
|
+
/** handle successful authorization */
|
|
25
|
+
run();
|
|
26
|
+
} else {
|
|
27
|
+
/** handle authorization error */
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
async function run() {
|
|
32
|
+
/**
|
|
33
|
+
* 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
|
|
34
|
+
* reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * INVALID_VALUE:
|
|
35
|
+
* 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 API, a NOT_FOUND
|
|
36
|
+
* error returns if no CloudIdentityCustomerAccount resources match the domain.
|
|
37
|
+
*/
|
|
38
|
+
await gapi.client.cloudchannel.accounts.checkCloudIdentityAccountsExist({
|
|
39
|
+
parent: "Test string",
|
|
40
|
+
}, {
|
|
41
|
+
domain: "Test string",
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* 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 account
|
|
45
|
+
* 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 missing or
|
|
46
|
+
* 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. * UNKNOWN: Any
|
|
47
|
+
* non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: A list of service email addresses.
|
|
48
|
+
*/
|
|
49
|
+
await gapi.client.cloudchannel.accounts.listSubscribers({
|
|
50
|
+
account: "Test string",
|
|
51
|
+
pageSize: 42,
|
|
52
|
+
pageToken: "Test string",
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* 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
|
|
56
|
+
* 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 has
|
|
57
|
+
* 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 request
|
|
58
|
+
* parameters are missing or invalid. Return value: List of TransferableOffer for the given customer and SKU.
|
|
59
|
+
*/
|
|
60
|
+
await gapi.client.cloudchannel.accounts.listTransferableOffers({
|
|
61
|
+
parent: "Test string",
|
|
62
|
+
}, {
|
|
63
|
+
cloudIdentityId: "Test string",
|
|
64
|
+
customerName: "Test string",
|
|
65
|
+
languageCode: "Test string",
|
|
66
|
+
pageSize: 42,
|
|
67
|
+
pageToken: "Test string",
|
|
68
|
+
sku: "Test string",
|
|
69
|
+
});
|
|
70
|
+
/**
|
|
71
|
+
* 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
|
|
72
|
+
* 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. * The
|
|
73
|
+
* 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 are
|
|
74
|
+
* missing or invalid. Return value: A list of the customer's TransferableSku.
|
|
75
|
+
*/
|
|
76
|
+
await gapi.client.cloudchannel.accounts.listTransferableSkus({
|
|
77
|
+
parent: "Test string",
|
|
78
|
+
}, {
|
|
79
|
+
authToken: "Test string",
|
|
80
|
+
cloudIdentityId: "Test string",
|
|
81
|
+
customerName: "Test string",
|
|
82
|
+
languageCode: "Test string",
|
|
83
|
+
pageSize: 42,
|
|
84
|
+
pageToken: "Test string",
|
|
85
|
+
});
|
|
86
|
+
/**
|
|
87
|
+
* 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
|
|
88
|
+
* 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
|
|
89
|
+
* 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 Channel
|
|
90
|
+
* 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 email
|
|
91
|
+
* address.
|
|
92
|
+
*/
|
|
93
|
+
await gapi.client.cloudchannel.accounts.register({
|
|
94
|
+
account: "Test string",
|
|
95
|
+
}, {
|
|
96
|
+
serviceAccount: "Test string",
|
|
97
|
+
});
|
|
98
|
+
/**
|
|
99
|
+
* 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
|
|
100
|
+
* 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 the
|
|
101
|
+
* 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 topic
|
|
102
|
+
* 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 technical
|
|
103
|
+
* 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 email address
|
|
104
|
+
* wasn't registered with the topic.
|
|
105
|
+
*/
|
|
106
|
+
await gapi.client.cloudchannel.accounts.unregister({
|
|
107
|
+
account: "Test string",
|
|
108
|
+
}, {
|
|
109
|
+
serviceAccount: "Test string",
|
|
110
|
+
});
|
|
111
|
+
/**
|
|
112
|
+
* 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 provided
|
|
113
|
+
* 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: *
|
|
114
|
+
* 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
|
|
115
|
+
* 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 error
|
|
116
|
+
* 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.
|
|
117
|
+
* Return value: The new ChannelPartnerLink resource.
|
|
118
|
+
*/
|
|
119
|
+
await gapi.client.cloudchannel.accounts.channelPartnerLinks.create({
|
|
120
|
+
parent: "Test string",
|
|
121
|
+
}, {
|
|
122
|
+
channelPartnerCloudIdentityInfo: {
|
|
123
|
+
adminConsoleUri: "Test string",
|
|
124
|
+
alternateEmail: "Test string",
|
|
125
|
+
customerType: "Test string",
|
|
126
|
+
eduData: {
|
|
127
|
+
instituteSize: "Test string",
|
|
128
|
+
instituteType: "Test string",
|
|
129
|
+
website: "Test string",
|
|
130
|
+
},
|
|
131
|
+
isDomainVerified: true,
|
|
132
|
+
languageCode: "Test string",
|
|
133
|
+
phoneNumber: "Test string",
|
|
134
|
+
primaryDomain: "Test string",
|
|
135
|
+
},
|
|
136
|
+
createTime: "Test string",
|
|
137
|
+
inviteLinkUri: "Test string",
|
|
138
|
+
linkState: "Test string",
|
|
139
|
+
name: "Test string",
|
|
140
|
+
publicId: "Test string",
|
|
141
|
+
resellerCloudIdentityId: "Test string",
|
|
142
|
+
updateTime: "Test string",
|
|
143
|
+
});
|
|
144
|
+
/**
|
|
145
|
+
* 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 is
|
|
146
|
+
* different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: ChannelPartnerLink resource not found
|
|
147
|
+
* because of an invalid channel partner link name. Return value: The ChannelPartnerLink resource.
|
|
148
|
+
*/
|
|
149
|
+
await gapi.client.cloudchannel.accounts.channelPartnerLinks.get({
|
|
150
|
+
name: "Test string",
|
|
151
|
+
view: "Test string",
|
|
152
|
+
});
|
|
153
|
+
/**
|
|
154
|
+
* 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 request is
|
|
155
|
+
* 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 account's
|
|
156
|
+
* ChannelPartnerLink resources.
|
|
157
|
+
*/
|
|
158
|
+
await gapi.client.cloudchannel.accounts.channelPartnerLinks.list({
|
|
159
|
+
pageSize: 42,
|
|
160
|
+
pageToken: "Test string",
|
|
161
|
+
parent: "Test string",
|
|
162
|
+
view: "Test string",
|
|
163
|
+
});
|
|
164
|
+
/**
|
|
165
|
+
* 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. Possible
|
|
166
|
+
* error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: * Required request parameters
|
|
167
|
+
* 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. * NOT_FOUND:
|
|
168
|
+
* 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 error related
|
|
169
|
+
* to a technical issue in the backend. Contact Cloud Channel support. Return value: The updated ChannelPartnerLink resource.
|
|
170
|
+
*/
|
|
171
|
+
await gapi.client.cloudchannel.accounts.channelPartnerLinks.patch({
|
|
172
|
+
name: "Test string",
|
|
173
|
+
}, {
|
|
174
|
+
channelPartnerLink: {
|
|
175
|
+
channelPartnerCloudIdentityInfo: {
|
|
176
|
+
adminConsoleUri: "Test string",
|
|
177
|
+
alternateEmail: "Test string",
|
|
178
|
+
customerType: "Test string",
|
|
179
|
+
eduData: {
|
|
180
|
+
instituteSize: "Test string",
|
|
181
|
+
instituteType: "Test string",
|
|
182
|
+
website: "Test string",
|
|
183
|
+
},
|
|
184
|
+
isDomainVerified: true,
|
|
185
|
+
languageCode: "Test string",
|
|
186
|
+
phoneNumber: "Test string",
|
|
187
|
+
primaryDomain: "Test string",
|
|
188
|
+
},
|
|
189
|
+
createTime: "Test string",
|
|
190
|
+
inviteLinkUri: "Test string",
|
|
191
|
+
linkState: "Test string",
|
|
192
|
+
name: "Test string",
|
|
193
|
+
publicId: "Test string",
|
|
194
|
+
resellerCloudIdentityId: "Test string",
|
|
195
|
+
updateTime: "Test string",
|
|
196
|
+
},
|
|
197
|
+
updateMask: "Test string",
|
|
198
|
+
});
|
|
199
|
+
/**
|
|
200
|
+
* Creates a ChannelPartnerRepricingConfig. Call this method to set modifications for a specific ChannelPartner's bill. You can only create configs if the
|
|
201
|
+
* 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 month,
|
|
202
|
+
* 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 functionality
|
|
203
|
+
* 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 configs. Changes to the
|
|
204
|
+
* 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. * The contained
|
|
205
|
+
* ChannelPartnerRepricingConfig.repricing_config vaule must be different from the value used in the current config for a ChannelPartner. Possible Error Codes: * PERMISSION_DENIED: If the
|
|
206
|
+
* account making the request and the account being queried are different. * INVALID_ARGUMENT: Missing or invalid required parameters in the request. Also displays if the updated config is
|
|
207
|
+
* for the current month or past months. * NOT_FOUND: The ChannelPartnerRepricingConfig specified does not exist or is not associated with the given account. * INTERNAL: Any non-user error
|
|
208
|
+
* related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the updated ChannelPartnerRepricingConfig resource, otherwise
|
|
209
|
+
* returns an error.
|
|
210
|
+
*/
|
|
211
|
+
await gapi.client.cloudchannel.accounts.channelPartnerLinks.channelPartnerRepricingConfigs.create({
|
|
212
|
+
parent: "Test string",
|
|
213
|
+
}, {
|
|
214
|
+
name: "Test string",
|
|
215
|
+
repricingConfig: {
|
|
216
|
+
adjustment: {
|
|
217
|
+
percentageAdjustment: {
|
|
218
|
+
percentage: {
|
|
219
|
+
value: "Test string",
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
channelPartnerGranularity: {
|
|
224
|
+
},
|
|
225
|
+
effectiveInvoiceMonth: {
|
|
226
|
+
day: 42,
|
|
227
|
+
month: 42,
|
|
228
|
+
year: 42,
|
|
229
|
+
},
|
|
230
|
+
entitlementGranularity: {
|
|
231
|
+
entitlement: "Test string",
|
|
232
|
+
},
|
|
233
|
+
rebillingBasis: "Test string",
|
|
234
|
+
},
|
|
235
|
+
updateTime: "Test string",
|
|
236
|
+
});
|
|
237
|
+
/**
|
|
238
|
+
* 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.
|
|
239
|
+
* Possible error codes: * PERMISSION_DENIED: The account making the request does not own this customer. * INVALID_ARGUMENT: Required request parameters are missing or invalid. *
|
|
240
|
+
* FAILED_PRECONDITION: The ChannelPartnerRepricingConfig is active or in the past. * NOT_FOUND: No ChannelPartnerRepricingConfig found for the name in the request.
|
|
241
|
+
*/
|
|
242
|
+
await gapi.client.cloudchannel.accounts.channelPartnerLinks.channelPartnerRepricingConfigs.delete({
|
|
243
|
+
name: "Test string",
|
|
244
|
+
});
|
|
245
|
+
/**
|
|
246
|
+
* 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 the
|
|
247
|
+
* 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 this
|
|
248
|
+
* case, contact Cloud Channel support. Return Value: If successful, the ChannelPartnerRepricingConfig resource, otherwise returns an error.
|
|
249
|
+
*/
|
|
250
|
+
await gapi.client.cloudchannel.accounts.channelPartnerLinks.channelPartnerRepricingConfigs.get({
|
|
251
|
+
name: "Test string",
|
|
252
|
+
});
|
|
253
|
+
/**
|
|
254
|
+
* 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 the
|
|
255
|
+
* account being queried are different. * NOT_FOUND: The ChannelPartnerRepricingConfig specified does not exist or is not associated with the given account. * INTERNAL: Any non-user error
|
|
256
|
+
* related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the ChannelPartnerRepricingConfig resources. The data for each
|
|
257
|
+
* resource is displayed in the ascending order of: * channel partner ID * RepricingConfig.effective_invoice_month * ChannelPartnerRepricingConfig.update_time If unsuccessful, returns an
|
|
258
|
+
* error.
|
|
259
|
+
*/
|
|
260
|
+
await gapi.client.cloudchannel.accounts.channelPartnerLinks.channelPartnerRepricingConfigs.list({
|
|
261
|
+
filter: "Test string",
|
|
262
|
+
pageSize: 42,
|
|
263
|
+
pageToken: "Test string",
|
|
264
|
+
parent: "Test string",
|
|
265
|
+
});
|
|
266
|
+
/**
|
|
267
|
+
* Updates a ChannelPartnerRepricingConfig. Call this method to set modifications for a specific ChannelPartner's bill. This method overwrites the existing CustomerRepricingConfig. You can
|
|
268
|
+
* only update configs if the RepricingConfig.effective_invoice_month is a future month. To make changes to configs for the current month, use CreateChannelPartnerRepricingConfig, taking
|
|
269
|
+
* 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 Error Codes: *
|
|
270
|
+
* 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
|
|
271
|
+
* 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
|
|
272
|
+
* 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
|
|
273
|
+
* ChannelPartnerRepricingConfig resource, otherwise returns an error.
|
|
274
|
+
*/
|
|
275
|
+
await gapi.client.cloudchannel.accounts.channelPartnerLinks.channelPartnerRepricingConfigs.patch({
|
|
276
|
+
name: "Test string",
|
|
277
|
+
}, {
|
|
278
|
+
name: "Test string",
|
|
279
|
+
repricingConfig: {
|
|
280
|
+
adjustment: {
|
|
281
|
+
percentageAdjustment: {
|
|
282
|
+
percentage: {
|
|
283
|
+
value: "Test string",
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
channelPartnerGranularity: {
|
|
288
|
+
},
|
|
289
|
+
effectiveInvoiceMonth: {
|
|
290
|
+
day: 42,
|
|
291
|
+
month: 42,
|
|
292
|
+
year: 42,
|
|
293
|
+
},
|
|
294
|
+
entitlementGranularity: {
|
|
295
|
+
entitlement: "Test string",
|
|
296
|
+
},
|
|
297
|
+
rebillingBasis: "Test string",
|
|
298
|
+
},
|
|
299
|
+
updateTime: "Test string",
|
|
300
|
+
});
|
|
301
|
+
/**
|
|
302
|
+
* 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
|
|
303
|
+
* 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 value:
|
|
304
|
+
* The newly created Customer resource.
|
|
305
|
+
*/
|
|
306
|
+
await gapi.client.cloudchannel.accounts.channelPartnerLinks.customers.create({
|
|
307
|
+
parent: "Test string",
|
|
308
|
+
}, {
|
|
309
|
+
alternateEmail: "Test string",
|
|
310
|
+
channelPartnerId: "Test string",
|
|
311
|
+
cloudIdentityId: "Test string",
|
|
312
|
+
cloudIdentityInfo: {
|
|
313
|
+
adminConsoleUri: "Test string",
|
|
314
|
+
alternateEmail: "Test string",
|
|
315
|
+
customerType: "Test string",
|
|
316
|
+
eduData: {
|
|
317
|
+
instituteSize: "Test string",
|
|
318
|
+
instituteType: "Test string",
|
|
319
|
+
website: "Test string",
|
|
320
|
+
},
|
|
321
|
+
isDomainVerified: true,
|
|
322
|
+
languageCode: "Test string",
|
|
323
|
+
phoneNumber: "Test string",
|
|
324
|
+
primaryDomain: "Test string",
|
|
325
|
+
},
|
|
326
|
+
createTime: "Test string",
|
|
327
|
+
domain: "Test string",
|
|
328
|
+
languageCode: "Test string",
|
|
329
|
+
name: "Test string",
|
|
330
|
+
orgDisplayName: "Test string",
|
|
331
|
+
orgPostalAddress: {
|
|
332
|
+
addressLines: [
|
|
333
|
+
"Test string"
|
|
334
|
+
],
|
|
335
|
+
administrativeArea: "Test string",
|
|
336
|
+
languageCode: "Test string",
|
|
337
|
+
locality: "Test string",
|
|
338
|
+
organization: "Test string",
|
|
339
|
+
postalCode: "Test string",
|
|
340
|
+
recipients: [
|
|
341
|
+
"Test string"
|
|
342
|
+
],
|
|
343
|
+
regionCode: "Test string",
|
|
344
|
+
revision: 42,
|
|
345
|
+
sortingCode: "Test string",
|
|
346
|
+
sublocality: "Test string",
|
|
347
|
+
},
|
|
348
|
+
primaryContactInfo: {
|
|
349
|
+
displayName: "Test string",
|
|
350
|
+
email: "Test string",
|
|
351
|
+
firstName: "Test string",
|
|
352
|
+
lastName: "Test string",
|
|
353
|
+
phone: "Test string",
|
|
354
|
+
title: "Test string",
|
|
355
|
+
},
|
|
356
|
+
updateTime: "Test string",
|
|
357
|
+
});
|
|
358
|
+
/**
|
|
359
|
+
* Deletes the given Customer permanently. Possible error codes: * PERMISSION_DENIED: The account making the request does not own this customer. * INVALID_ARGUMENT: Required request
|
|
360
|
+
* parameters are missing or invalid. * FAILED_PRECONDITION: The customer has existing entitlements. * NOT_FOUND: No Customer resource found for the name in the request.
|
|
361
|
+
*/
|
|
362
|
+
await gapi.client.cloudchannel.accounts.channelPartnerLinks.customers.delete({
|
|
363
|
+
name: "Test string",
|
|
364
|
+
});
|
|
365
|
+
/**
|
|
366
|
+
* 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 request. *
|
|
367
|
+
* 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. Return value:
|
|
368
|
+
* The Customer resource.
|
|
369
|
+
*/
|
|
370
|
+
await gapi.client.cloudchannel.accounts.channelPartnerLinks.customers.get({
|
|
371
|
+
name: "Test string",
|
|
372
|
+
});
|
|
373
|
+
/**
|
|
374
|
+
* 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
|
|
375
|
+
* 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
|
|
376
|
+
* 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. *
|
|
377
|
+
* ALREADY_EXISTS: A customer already exists and has conflicting critical fields. Requires an overwrite. Return value: The Customer.
|
|
378
|
+
*/
|
|
379
|
+
await gapi.client.cloudchannel.accounts.channelPartnerLinks.customers.import({
|
|
380
|
+
parent: "Test string",
|
|
381
|
+
}, {
|
|
382
|
+
authToken: "Test string",
|
|
383
|
+
channelPartnerId: "Test string",
|
|
384
|
+
cloudIdentityId: "Test string",
|
|
385
|
+
customer: "Test string",
|
|
386
|
+
domain: "Test string",
|
|
387
|
+
overwriteIfExists: true,
|
|
388
|
+
});
|
|
389
|
+
/**
|
|
390
|
+
* 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:
|
|
391
|
+
* Required request parameters are missing or invalid. Return value: List of Customers, or an empty list if there are no customers.
|
|
392
|
+
*/
|
|
393
|
+
await gapi.client.cloudchannel.accounts.channelPartnerLinks.customers.list({
|
|
394
|
+
filter: "Test string",
|
|
395
|
+
pageSize: 42,
|
|
396
|
+
pageToken: "Test string",
|
|
397
|
+
parent: "Test string",
|
|
398
|
+
});
|
|
399
|
+
/**
|
|
400
|
+
* 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 reseller
|
|
401
|
+
* 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. Return value:
|
|
402
|
+
* The updated Customer resource.
|
|
403
|
+
*/
|
|
404
|
+
await gapi.client.cloudchannel.accounts.channelPartnerLinks.customers.patch({
|
|
405
|
+
name: "Test string",
|
|
406
|
+
updateMask: "Test string",
|
|
407
|
+
}, {
|
|
408
|
+
alternateEmail: "Test string",
|
|
409
|
+
channelPartnerId: "Test string",
|
|
410
|
+
cloudIdentityId: "Test string",
|
|
411
|
+
cloudIdentityInfo: {
|
|
412
|
+
adminConsoleUri: "Test string",
|
|
413
|
+
alternateEmail: "Test string",
|
|
414
|
+
customerType: "Test string",
|
|
415
|
+
eduData: {
|
|
416
|
+
instituteSize: "Test string",
|
|
417
|
+
instituteType: "Test string",
|
|
418
|
+
website: "Test string",
|
|
419
|
+
},
|
|
420
|
+
isDomainVerified: true,
|
|
421
|
+
languageCode: "Test string",
|
|
422
|
+
phoneNumber: "Test string",
|
|
423
|
+
primaryDomain: "Test string",
|
|
424
|
+
},
|
|
425
|
+
createTime: "Test string",
|
|
426
|
+
domain: "Test string",
|
|
427
|
+
languageCode: "Test string",
|
|
428
|
+
name: "Test string",
|
|
429
|
+
orgDisplayName: "Test string",
|
|
430
|
+
orgPostalAddress: {
|
|
431
|
+
addressLines: [
|
|
432
|
+
"Test string"
|
|
433
|
+
],
|
|
434
|
+
administrativeArea: "Test string",
|
|
435
|
+
languageCode: "Test string",
|
|
436
|
+
locality: "Test string",
|
|
437
|
+
organization: "Test string",
|
|
438
|
+
postalCode: "Test string",
|
|
439
|
+
recipients: [
|
|
440
|
+
"Test string"
|
|
441
|
+
],
|
|
442
|
+
regionCode: "Test string",
|
|
443
|
+
revision: 42,
|
|
444
|
+
sortingCode: "Test string",
|
|
445
|
+
sublocality: "Test string",
|
|
446
|
+
},
|
|
447
|
+
primaryContactInfo: {
|
|
448
|
+
displayName: "Test string",
|
|
449
|
+
email: "Test string",
|
|
450
|
+
firstName: "Test string",
|
|
451
|
+
lastName: "Test string",
|
|
452
|
+
phone: "Test string",
|
|
453
|
+
title: "Test string",
|
|
454
|
+
},
|
|
455
|
+
updateTime: "Test string",
|
|
456
|
+
});
|
|
457
|
+
/**
|
|
458
|
+
* 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
|
|
459
|
+
* 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 value:
|
|
460
|
+
* The newly created Customer resource.
|
|
461
|
+
*/
|
|
462
|
+
await gapi.client.cloudchannel.accounts.customers.create({
|
|
463
|
+
parent: "Test string",
|
|
464
|
+
}, {
|
|
465
|
+
alternateEmail: "Test string",
|
|
466
|
+
channelPartnerId: "Test string",
|
|
467
|
+
cloudIdentityId: "Test string",
|
|
468
|
+
cloudIdentityInfo: {
|
|
469
|
+
adminConsoleUri: "Test string",
|
|
470
|
+
alternateEmail: "Test string",
|
|
471
|
+
customerType: "Test string",
|
|
472
|
+
eduData: {
|
|
473
|
+
instituteSize: "Test string",
|
|
474
|
+
instituteType: "Test string",
|
|
475
|
+
website: "Test string",
|
|
476
|
+
},
|
|
477
|
+
isDomainVerified: true,
|
|
478
|
+
languageCode: "Test string",
|
|
479
|
+
phoneNumber: "Test string",
|
|
480
|
+
primaryDomain: "Test string",
|
|
481
|
+
},
|
|
482
|
+
createTime: "Test string",
|
|
483
|
+
domain: "Test string",
|
|
484
|
+
languageCode: "Test string",
|
|
485
|
+
name: "Test string",
|
|
486
|
+
orgDisplayName: "Test string",
|
|
487
|
+
orgPostalAddress: {
|
|
488
|
+
addressLines: [
|
|
489
|
+
"Test string"
|
|
490
|
+
],
|
|
491
|
+
administrativeArea: "Test string",
|
|
492
|
+
languageCode: "Test string",
|
|
493
|
+
locality: "Test string",
|
|
494
|
+
organization: "Test string",
|
|
495
|
+
postalCode: "Test string",
|
|
496
|
+
recipients: [
|
|
497
|
+
"Test string"
|
|
498
|
+
],
|
|
499
|
+
regionCode: "Test string",
|
|
500
|
+
revision: 42,
|
|
501
|
+
sortingCode: "Test string",
|
|
502
|
+
sublocality: "Test string",
|
|
503
|
+
},
|
|
504
|
+
primaryContactInfo: {
|
|
505
|
+
displayName: "Test string",
|
|
506
|
+
email: "Test string",
|
|
507
|
+
firstName: "Test string",
|
|
508
|
+
lastName: "Test string",
|
|
509
|
+
phone: "Test string",
|
|
510
|
+
title: "Test string",
|
|
511
|
+
},
|
|
512
|
+
updateTime: "Test string",
|
|
513
|
+
});
|
|
514
|
+
/**
|
|
515
|
+
* Deletes the given Customer permanently. Possible error codes: * PERMISSION_DENIED: The account making the request does not own this customer. * INVALID_ARGUMENT: Required request
|
|
516
|
+
* parameters are missing or invalid. * FAILED_PRECONDITION: The customer has existing entitlements. * NOT_FOUND: No Customer resource found for the name in the request.
|
|
517
|
+
*/
|
|
518
|
+
await gapi.client.cloudchannel.accounts.customers.delete({
|
|
519
|
+
name: "Test string",
|
|
520
|
+
});
|
|
521
|
+
/**
|
|
522
|
+
* 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 request. *
|
|
523
|
+
* 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. Return value:
|
|
524
|
+
* The Customer resource.
|
|
525
|
+
*/
|
|
526
|
+
await gapi.client.cloudchannel.accounts.customers.get({
|
|
527
|
+
name: "Test string",
|
|
528
|
+
});
|
|
529
|
+
/**
|
|
530
|
+
* 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
|
|
531
|
+
* 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
|
|
532
|
+
* 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. *
|
|
533
|
+
* ALREADY_EXISTS: A customer already exists and has conflicting critical fields. Requires an overwrite. Return value: The Customer.
|
|
534
|
+
*/
|
|
535
|
+
await gapi.client.cloudchannel.accounts.customers.import({
|
|
536
|
+
parent: "Test string",
|
|
537
|
+
}, {
|
|
538
|
+
authToken: "Test string",
|
|
539
|
+
channelPartnerId: "Test string",
|
|
540
|
+
cloudIdentityId: "Test string",
|
|
541
|
+
customer: "Test string",
|
|
542
|
+
domain: "Test string",
|
|
543
|
+
overwriteIfExists: true,
|
|
544
|
+
});
|
|
545
|
+
/**
|
|
546
|
+
* 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:
|
|
547
|
+
* Required request parameters are missing or invalid. Return value: List of Customers, or an empty list if there are no customers.
|
|
548
|
+
*/
|
|
549
|
+
await gapi.client.cloudchannel.accounts.customers.list({
|
|
550
|
+
filter: "Test string",
|
|
551
|
+
pageSize: 42,
|
|
552
|
+
pageToken: "Test string",
|
|
553
|
+
parent: "Test string",
|
|
554
|
+
});
|
|
555
|
+
/**
|
|
556
|
+
* 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
|
|
557
|
+
* belong to the reseller * INVALID_ARGUMENT: Required request parameters are missing or invalid.
|
|
558
|
+
*/
|
|
559
|
+
await gapi.client.cloudchannel.accounts.customers.listPurchasableOffers({
|
|
560
|
+
"changeOfferPurchase.entitlement": "Test string",
|
|
561
|
+
"changeOfferPurchase.newSku": "Test string",
|
|
562
|
+
"createEntitlementPurchase.sku": "Test string",
|
|
563
|
+
customer: "Test string",
|
|
564
|
+
languageCode: "Test string",
|
|
565
|
+
pageSize: 42,
|
|
566
|
+
pageToken: "Test string",
|
|
567
|
+
});
|
|
568
|
+
/**
|
|
569
|
+
* 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
|
|
570
|
+
* doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid.
|
|
571
|
+
*/
|
|
572
|
+
await gapi.client.cloudchannel.accounts.customers.listPurchasableSkus({
|
|
573
|
+
"changeOfferPurchase.changeType": "Test string",
|
|
574
|
+
"changeOfferPurchase.entitlement": "Test string",
|
|
575
|
+
"createEntitlementPurchase.product": "Test string",
|
|
576
|
+
customer: "Test string",
|
|
577
|
+
languageCode: "Test string",
|
|
578
|
+
pageSize: 42,
|
|
579
|
+
pageToken: "Test string",
|
|
580
|
+
});
|
|
581
|
+
/**
|
|
582
|
+
* 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 reseller
|
|
583
|
+
* 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. Return value:
|
|
584
|
+
* The updated Customer resource.
|
|
585
|
+
*/
|
|
586
|
+
await gapi.client.cloudchannel.accounts.customers.patch({
|
|
587
|
+
name: "Test string",
|
|
588
|
+
updateMask: "Test string",
|
|
589
|
+
}, {
|
|
590
|
+
alternateEmail: "Test string",
|
|
591
|
+
channelPartnerId: "Test string",
|
|
592
|
+
cloudIdentityId: "Test string",
|
|
593
|
+
cloudIdentityInfo: {
|
|
594
|
+
adminConsoleUri: "Test string",
|
|
595
|
+
alternateEmail: "Test string",
|
|
596
|
+
customerType: "Test string",
|
|
597
|
+
eduData: {
|
|
598
|
+
instituteSize: "Test string",
|
|
599
|
+
instituteType: "Test string",
|
|
600
|
+
website: "Test string",
|
|
601
|
+
},
|
|
602
|
+
isDomainVerified: true,
|
|
603
|
+
languageCode: "Test string",
|
|
604
|
+
phoneNumber: "Test string",
|
|
605
|
+
primaryDomain: "Test string",
|
|
606
|
+
},
|
|
607
|
+
createTime: "Test string",
|
|
608
|
+
domain: "Test string",
|
|
609
|
+
languageCode: "Test string",
|
|
610
|
+
name: "Test string",
|
|
611
|
+
orgDisplayName: "Test string",
|
|
612
|
+
orgPostalAddress: {
|
|
613
|
+
addressLines: [
|
|
614
|
+
"Test string"
|
|
615
|
+
],
|
|
616
|
+
administrativeArea: "Test string",
|
|
617
|
+
languageCode: "Test string",
|
|
618
|
+
locality: "Test string",
|
|
619
|
+
organization: "Test string",
|
|
620
|
+
postalCode: "Test string",
|
|
621
|
+
recipients: [
|
|
622
|
+
"Test string"
|
|
623
|
+
],
|
|
624
|
+
regionCode: "Test string",
|
|
625
|
+
revision: 42,
|
|
626
|
+
sortingCode: "Test string",
|
|
627
|
+
sublocality: "Test string",
|
|
628
|
+
},
|
|
629
|
+
primaryContactInfo: {
|
|
630
|
+
displayName: "Test string",
|
|
631
|
+
email: "Test string",
|
|
632
|
+
firstName: "Test string",
|
|
633
|
+
lastName: "Test string",
|
|
634
|
+
phone: "Test string",
|
|
635
|
+
title: "Test string",
|
|
636
|
+
},
|
|
637
|
+
updateTime: "Test string",
|
|
638
|
+
});
|
|
639
|
+
/**
|
|
640
|
+
* 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
|
|
641
|
+
* 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 email
|
|
642
|
+
* 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 support. *
|
|
643
|
+
* 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 results of the
|
|
644
|
+
* operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata contains an instance of OperationMetadata.
|
|
645
|
+
*/
|
|
646
|
+
await gapi.client.cloudchannel.accounts.customers.provisionCloudIdentity({
|
|
647
|
+
customer: "Test string",
|
|
648
|
+
}, {
|
|
649
|
+
cloudIdentityInfo: {
|
|
650
|
+
adminConsoleUri: "Test string",
|
|
651
|
+
alternateEmail: "Test string",
|
|
652
|
+
customerType: "Test string",
|
|
653
|
+
eduData: {
|
|
654
|
+
instituteSize: "Test string",
|
|
655
|
+
instituteType: "Test string",
|
|
656
|
+
website: "Test string",
|
|
657
|
+
},
|
|
658
|
+
isDomainVerified: true,
|
|
659
|
+
languageCode: "Test string",
|
|
660
|
+
phoneNumber: "Test string",
|
|
661
|
+
primaryDomain: "Test string",
|
|
662
|
+
},
|
|
663
|
+
user: {
|
|
664
|
+
email: "Test string",
|
|
665
|
+
familyName: "Test string",
|
|
666
|
+
givenName: "Test string",
|
|
667
|
+
},
|
|
668
|
+
validateOnly: true,
|
|
669
|
+
});
|
|
670
|
+
/**
|
|
671
|
+
* Transfers customer entitlements to new reseller. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters
|
|
672
|
+
* 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 or
|
|
673
|
+
* 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 SKU
|
|
674
|
+
* (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 names
|
|
675
|
+
* 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 support. *
|
|
676
|
+
* 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 results of the
|
|
677
|
+
* operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
|
|
678
|
+
*/
|
|
679
|
+
await gapi.client.cloudchannel.accounts.customers.transferEntitlements({
|
|
680
|
+
parent: "Test string",
|
|
681
|
+
}, {
|
|
682
|
+
authToken: "Test string",
|
|
683
|
+
entitlements: [
|
|
684
|
+
{
|
|
685
|
+
associationInfo: {
|
|
686
|
+
baseEntitlement: "Test string",
|
|
687
|
+
},
|
|
688
|
+
commitmentSettings: {
|
|
689
|
+
endTime: "Test string",
|
|
690
|
+
renewalSettings: {
|
|
691
|
+
enableRenewal: true,
|
|
692
|
+
paymentCycle: {
|
|
693
|
+
duration: 42,
|
|
694
|
+
periodType: "Test string",
|
|
695
|
+
},
|
|
696
|
+
paymentPlan: "Test string",
|
|
697
|
+
resizeUnitCount: true,
|
|
698
|
+
},
|
|
699
|
+
startTime: "Test string",
|
|
700
|
+
},
|
|
701
|
+
createTime: "Test string",
|
|
702
|
+
name: "Test string",
|
|
703
|
+
offer: "Test string",
|
|
704
|
+
parameters: [
|
|
705
|
+
{
|
|
706
|
+
editable: true,
|
|
707
|
+
name: "Test string",
|
|
708
|
+
value: {
|
|
709
|
+
boolValue: true,
|
|
710
|
+
doubleValue: 42,
|
|
711
|
+
int64Value: "Test string",
|
|
712
|
+
protoValue: {
|
|
713
|
+
A: 42
|
|
714
|
+
},
|
|
715
|
+
stringValue: "Test string",
|
|
716
|
+
},
|
|
717
|
+
}
|
|
718
|
+
],
|
|
719
|
+
provisionedService: {
|
|
720
|
+
productId: "Test string",
|
|
721
|
+
provisioningId: "Test string",
|
|
722
|
+
skuId: "Test string",
|
|
723
|
+
},
|
|
724
|
+
provisioningState: "Test string",
|
|
725
|
+
purchaseOrderId: "Test string",
|
|
726
|
+
suspensionReasons: [
|
|
727
|
+
"Test string"
|
|
728
|
+
],
|
|
729
|
+
trialSettings: {
|
|
730
|
+
endTime: "Test string",
|
|
731
|
+
trial: true,
|
|
732
|
+
},
|
|
733
|
+
updateTime: "Test string",
|
|
734
|
+
}
|
|
735
|
+
],
|
|
736
|
+
requestId: "Test string",
|
|
737
|
+
});
|
|
738
|
+
/**
|
|
739
|
+
* Transfers customer entitlements from their current reseller to Google. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT:
|
|
740
|
+
* 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. *
|
|
741
|
+
* 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 the
|
|
742
|
+
* 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 goog-test.
|
|
743
|
+
* * 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 non-user error
|
|
744
|
+
* 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, call the GetOperation
|
|
745
|
+
* method of CloudChannelOperationsService. The response will contain google.protobuf.Empty on success. The Operation metadata will contain an instance of OperationMetadata.
|
|
746
|
+
*/
|
|
747
|
+
await gapi.client.cloudchannel.accounts.customers.transferEntitlementsToGoogle({
|
|
748
|
+
parent: "Test string",
|
|
749
|
+
}, {
|
|
750
|
+
entitlements: [
|
|
751
|
+
{
|
|
752
|
+
associationInfo: {
|
|
753
|
+
baseEntitlement: "Test string",
|
|
754
|
+
},
|
|
755
|
+
commitmentSettings: {
|
|
756
|
+
endTime: "Test string",
|
|
757
|
+
renewalSettings: {
|
|
758
|
+
enableRenewal: true,
|
|
759
|
+
paymentCycle: {
|
|
760
|
+
duration: 42,
|
|
761
|
+
periodType: "Test string",
|
|
762
|
+
},
|
|
763
|
+
paymentPlan: "Test string",
|
|
764
|
+
resizeUnitCount: true,
|
|
765
|
+
},
|
|
766
|
+
startTime: "Test string",
|
|
767
|
+
},
|
|
768
|
+
createTime: "Test string",
|
|
769
|
+
name: "Test string",
|
|
770
|
+
offer: "Test string",
|
|
771
|
+
parameters: [
|
|
772
|
+
{
|
|
773
|
+
editable: true,
|
|
774
|
+
name: "Test string",
|
|
775
|
+
value: {
|
|
776
|
+
boolValue: true,
|
|
777
|
+
doubleValue: 42,
|
|
778
|
+
int64Value: "Test string",
|
|
779
|
+
protoValue: {
|
|
780
|
+
A: 42
|
|
781
|
+
},
|
|
782
|
+
stringValue: "Test string",
|
|
783
|
+
},
|
|
784
|
+
}
|
|
785
|
+
],
|
|
786
|
+
provisionedService: {
|
|
787
|
+
productId: "Test string",
|
|
788
|
+
provisioningId: "Test string",
|
|
789
|
+
skuId: "Test string",
|
|
790
|
+
},
|
|
791
|
+
provisioningState: "Test string",
|
|
792
|
+
purchaseOrderId: "Test string",
|
|
793
|
+
suspensionReasons: [
|
|
794
|
+
"Test string"
|
|
795
|
+
],
|
|
796
|
+
trialSettings: {
|
|
797
|
+
endTime: "Test string",
|
|
798
|
+
trial: true,
|
|
799
|
+
},
|
|
800
|
+
updateTime: "Test string",
|
|
801
|
+
}
|
|
802
|
+
],
|
|
803
|
+
requestId: "Test string",
|
|
804
|
+
});
|
|
805
|
+
/**
|
|
806
|
+
* 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 is a
|
|
807
|
+
* 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 configs for
|
|
808
|
+
* that RepricingConfig.effective_invoice_month. The following restrictions are for creating configs in the current month. * This functionality is reserved for recovering from an erroneous
|
|
809
|
+
* 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 immediate, but may take up to
|
|
810
|
+
* 24 hours. * There is a limit of ten configs for any RepricingConfig.EntitlementGranularity.entitlement or RepricingConfig.effective_invoice_month. * The contained
|
|
811
|
+
* CustomerRepricingConfig.repricing_config vaule must be different from the value used in the current config for a RepricingConfig.EntitlementGranularity.entitlement. Possible Error
|
|
812
|
+
* 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 request.
|
|
813
|
+
* 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 with the given
|
|
814
|
+
* 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
|
|
815
|
+
* CustomerRepricingConfig resource, otherwise returns an error.
|
|
816
|
+
*/
|
|
817
|
+
await gapi.client.cloudchannel.accounts.customers.customerRepricingConfigs.create({
|
|
818
|
+
parent: "Test string",
|
|
819
|
+
}, {
|
|
820
|
+
name: "Test string",
|
|
821
|
+
repricingConfig: {
|
|
822
|
+
adjustment: {
|
|
823
|
+
percentageAdjustment: {
|
|
824
|
+
percentage: {
|
|
825
|
+
value: "Test string",
|
|
826
|
+
},
|
|
827
|
+
},
|
|
828
|
+
},
|
|
829
|
+
channelPartnerGranularity: {
|
|
830
|
+
},
|
|
831
|
+
effectiveInvoiceMonth: {
|
|
832
|
+
day: 42,
|
|
833
|
+
month: 42,
|
|
834
|
+
year: 42,
|
|
835
|
+
},
|
|
836
|
+
entitlementGranularity: {
|
|
837
|
+
entitlement: "Test string",
|
|
838
|
+
},
|
|
839
|
+
rebillingBasis: "Test string",
|
|
840
|
+
},
|
|
841
|
+
updateTime: "Test string",
|
|
842
|
+
});
|
|
843
|
+
/**
|
|
844
|
+
* 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. Possible
|
|
845
|
+
* error codes: * PERMISSION_DENIED: The account making the request does not own this customer. * INVALID_ARGUMENT: Required request parameters are missing or invalid. *
|
|
846
|
+
* FAILED_PRECONDITION: The CustomerRepricingConfig is active or in the past. * NOT_FOUND: No CustomerRepricingConfig found for the name in the request.
|
|
847
|
+
*/
|
|
848
|
+
await gapi.client.cloudchannel.accounts.customers.customerRepricingConfigs.delete({
|
|
849
|
+
name: "Test string",
|
|
850
|
+
});
|
|
851
|
+
/**
|
|
852
|
+
* 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 account
|
|
853
|
+
* 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, contact
|
|
854
|
+
* Cloud Channel support. Return Value: If successful, the CustomerRepricingConfig resource, otherwise returns an error.
|
|
855
|
+
*/
|
|
856
|
+
await gapi.client.cloudchannel.accounts.customers.customerRepricingConfigs.get({
|
|
857
|
+
name: "Test string",
|
|
858
|
+
});
|
|
859
|
+
/**
|
|
860
|
+
* 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 account
|
|
861
|
+
* 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 related to
|
|
862
|
+
* technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the CustomerRepricingConfig resources. The data for each resource is displayed
|
|
863
|
+
* in the ascending order of: * customer ID * RepricingConfig.EntitlementGranularity.entitlement * RepricingConfig.effective_invoice_month * CustomerRepricingConfig.update_time If
|
|
864
|
+
* unsuccessful, returns an error.
|
|
865
|
+
*/
|
|
866
|
+
await gapi.client.cloudchannel.accounts.customers.customerRepricingConfigs.list({
|
|
867
|
+
filter: "Test string",
|
|
868
|
+
pageSize: 42,
|
|
869
|
+
pageToken: "Test string",
|
|
870
|
+
parent: "Test string",
|
|
871
|
+
});
|
|
872
|
+
/**
|
|
873
|
+
* Updates a CustomerRepricingConfig. Call this method to set modifications for a specific customer's bill. This method overwrites the existing CustomerRepricingConfig. You can only update
|
|
874
|
+
* 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 its
|
|
875
|
+
* restrictions. You cannot update the RepricingConfig.effective_invoice_month. When updating a config in the future: * This config must already exist. Possible Error Codes: *
|
|
876
|
+
* 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
|
|
877
|
+
* 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 account. *
|
|
878
|
+
* 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 CustomerRepricingConfig
|
|
879
|
+
* resource, otherwise returns an error.
|
|
880
|
+
*/
|
|
881
|
+
await gapi.client.cloudchannel.accounts.customers.customerRepricingConfigs.patch({
|
|
882
|
+
name: "Test string",
|
|
883
|
+
}, {
|
|
884
|
+
name: "Test string",
|
|
885
|
+
repricingConfig: {
|
|
886
|
+
adjustment: {
|
|
887
|
+
percentageAdjustment: {
|
|
888
|
+
percentage: {
|
|
889
|
+
value: "Test string",
|
|
890
|
+
},
|
|
891
|
+
},
|
|
892
|
+
},
|
|
893
|
+
channelPartnerGranularity: {
|
|
894
|
+
},
|
|
895
|
+
effectiveInvoiceMonth: {
|
|
896
|
+
day: 42,
|
|
897
|
+
month: 42,
|
|
898
|
+
year: 42,
|
|
899
|
+
},
|
|
900
|
+
entitlementGranularity: {
|
|
901
|
+
entitlement: "Test string",
|
|
902
|
+
},
|
|
903
|
+
rebillingBasis: "Test string",
|
|
904
|
+
},
|
|
905
|
+
updateTime: "Test string",
|
|
906
|
+
});
|
|
907
|
+
/**
|
|
908
|
+
* 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
|
|
909
|
+
* 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 account
|
|
910
|
+
* in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * SUSPENSION_NOT_RESELLER_INITIATED: Can only
|
|
911
|
+
* activate reseller-initiated suspensions and entitlements that have accepted the TOS. * NOT_SUSPENDED: Can only activate suspended entitlements not in an ACTIVE state. * INTERNAL: Any
|
|
912
|
+
* 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 Cloud
|
|
913
|
+
* 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 Operation
|
|
914
|
+
* metadata will contain an instance of OperationMetadata.
|
|
915
|
+
*/
|
|
916
|
+
await gapi.client.cloudchannel.accounts.customers.entitlements.activate({
|
|
917
|
+
name: "Test string",
|
|
918
|
+
}, {
|
|
919
|
+
requestId: "Test string",
|
|
920
|
+
});
|
|
921
|
+
/**
|
|
922
|
+
* Cancels a previously fulfilled entitlement. An entitlement cancellation is a long-running operation. Possible error codes: * PERMISSION_DENIED: The reseller account making the request
|
|
923
|
+
* 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 subaccount. *
|
|
924
|
+
* INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * DELETION_TYPE_NOT_ALLOWED: Cancel is only allowed for Google
|
|
925
|
+
* 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 Channel support. *
|
|
926
|
+
* 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 results of the
|
|
927
|
+
* operation, call the GetOperation method of CloudChannelOperationsService. The response will contain google.protobuf.Empty on success. The Operation metadata will contain an instance of
|
|
928
|
+
* OperationMetadata.
|
|
929
|
+
*/
|
|
930
|
+
await gapi.client.cloudchannel.accounts.customers.entitlements.cancel({
|
|
931
|
+
name: "Test string",
|
|
932
|
+
}, {
|
|
933
|
+
requestId: "Test string",
|
|
934
|
+
});
|
|
935
|
+
/**
|
|
936
|
+
* 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
|
|
937
|
+
* 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
|
|
938
|
+
* 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 issue
|
|
939
|
+
* 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
|
|
940
|
+
* CloudChannelOperationsService. The Operation metadata will contain an instance of OperationMetadata.
|
|
941
|
+
*/
|
|
942
|
+
await gapi.client.cloudchannel.accounts.customers.entitlements.changeOffer({
|
|
943
|
+
name: "Test string",
|
|
944
|
+
}, {
|
|
945
|
+
offer: "Test string",
|
|
946
|
+
parameters: [
|
|
947
|
+
{
|
|
948
|
+
editable: true,
|
|
949
|
+
name: "Test string",
|
|
950
|
+
value: {
|
|
951
|
+
boolValue: true,
|
|
952
|
+
doubleValue: 42,
|
|
953
|
+
int64Value: "Test string",
|
|
954
|
+
protoValue: {
|
|
955
|
+
A: 42
|
|
956
|
+
},
|
|
957
|
+
stringValue: "Test string",
|
|
958
|
+
},
|
|
959
|
+
}
|
|
960
|
+
],
|
|
961
|
+
purchaseOrderId: "Test string",
|
|
962
|
+
requestId: "Test string",
|
|
963
|
+
});
|
|
964
|
+
/**
|
|
965
|
+
* 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: *
|
|
966
|
+
* 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 changed is
|
|
967
|
+
* 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 related to a
|
|
968
|
+
* 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. Return value:
|
|
969
|
+
* The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance
|
|
970
|
+
* of OperationMetadata.
|
|
971
|
+
*/
|
|
972
|
+
await gapi.client.cloudchannel.accounts.customers.entitlements.changeParameters({
|
|
973
|
+
name: "Test string",
|
|
974
|
+
}, {
|
|
975
|
+
parameters: [
|
|
976
|
+
{
|
|
977
|
+
editable: true,
|
|
978
|
+
name: "Test string",
|
|
979
|
+
value: {
|
|
980
|
+
boolValue: true,
|
|
981
|
+
doubleValue: 42,
|
|
982
|
+
int64Value: "Test string",
|
|
983
|
+
protoValue: {
|
|
984
|
+
A: 42
|
|
985
|
+
},
|
|
986
|
+
stringValue: "Test string",
|
|
987
|
+
},
|
|
988
|
+
}
|
|
989
|
+
],
|
|
990
|
+
purchaseOrderId: "Test string",
|
|
991
|
+
requestId: "Test string",
|
|
992
|
+
});
|
|
993
|
+
/**
|
|
994
|
+
* 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. Possible
|
|
995
|
+
* error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource
|
|
996
|
+
* not found. * NOT_COMMITMENT_PLAN: Renewal Settings are only applicable for a commitment plan. Can't enable or disable renewals for non-commitment plans. * INTERNAL: Any non-user error
|
|
997
|
+
* 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.
|
|
998
|
+
* 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 contain
|
|
999
|
+
* an instance of OperationMetadata.
|
|
1000
|
+
*/
|
|
1001
|
+
await gapi.client.cloudchannel.accounts.customers.entitlements.changeRenewalSettings({
|
|
1002
|
+
name: "Test string",
|
|
1003
|
+
}, {
|
|
1004
|
+
renewalSettings: {
|
|
1005
|
+
enableRenewal: true,
|
|
1006
|
+
paymentCycle: {
|
|
1007
|
+
duration: 42,
|
|
1008
|
+
periodType: "Test string",
|
|
1009
|
+
},
|
|
1010
|
+
paymentPlan: "Test string",
|
|
1011
|
+
resizeUnitCount: true,
|
|
1012
|
+
},
|
|
1013
|
+
requestId: "Test string",
|
|
1014
|
+
});
|
|
1015
|
+
/**
|
|
1016
|
+
* 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
|
|
1017
|
+
* 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 Channel
|
|
1018
|
+
* 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 customer's
|
|
1019
|
+
* primary email already exists. Retry after changing the customer's primary contact email. * CONDITION_NOT_MET or FAILED_PRECONDITION: * The domain required for purchasing a SKU has not
|
|
1020
|
+
* 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 Drive. * (Developer
|
|
1021
|
+
* accounts only) Reseller and resold domain must meet the following naming requirements: * Domain names must start with goog-test. * Domain names must include the reseller domain. *
|
|
1022
|
+
* 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.
|
|
1023
|
+
* 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. The
|
|
1024
|
+
* Operation metadata will contain an instance of OperationMetadata.
|
|
1025
|
+
*/
|
|
1026
|
+
await gapi.client.cloudchannel.accounts.customers.entitlements.create({
|
|
1027
|
+
parent: "Test string",
|
|
1028
|
+
}, {
|
|
1029
|
+
entitlement: {
|
|
1030
|
+
associationInfo: {
|
|
1031
|
+
baseEntitlement: "Test string",
|
|
1032
|
+
},
|
|
1033
|
+
commitmentSettings: {
|
|
1034
|
+
endTime: "Test string",
|
|
1035
|
+
renewalSettings: {
|
|
1036
|
+
enableRenewal: true,
|
|
1037
|
+
paymentCycle: {
|
|
1038
|
+
duration: 42,
|
|
1039
|
+
periodType: "Test string",
|
|
1040
|
+
},
|
|
1041
|
+
paymentPlan: "Test string",
|
|
1042
|
+
resizeUnitCount: true,
|
|
1043
|
+
},
|
|
1044
|
+
startTime: "Test string",
|
|
1045
|
+
},
|
|
1046
|
+
createTime: "Test string",
|
|
1047
|
+
name: "Test string",
|
|
1048
|
+
offer: "Test string",
|
|
1049
|
+
parameters: [
|
|
1050
|
+
{
|
|
1051
|
+
editable: true,
|
|
1052
|
+
name: "Test string",
|
|
1053
|
+
value: {
|
|
1054
|
+
boolValue: true,
|
|
1055
|
+
doubleValue: 42,
|
|
1056
|
+
int64Value: "Test string",
|
|
1057
|
+
protoValue: {
|
|
1058
|
+
A: 42
|
|
1059
|
+
},
|
|
1060
|
+
stringValue: "Test string",
|
|
1061
|
+
},
|
|
1062
|
+
}
|
|
1063
|
+
],
|
|
1064
|
+
provisionedService: {
|
|
1065
|
+
productId: "Test string",
|
|
1066
|
+
provisioningId: "Test string",
|
|
1067
|
+
skuId: "Test string",
|
|
1068
|
+
},
|
|
1069
|
+
provisioningState: "Test string",
|
|
1070
|
+
purchaseOrderId: "Test string",
|
|
1071
|
+
suspensionReasons: [
|
|
1072
|
+
"Test string"
|
|
1073
|
+
],
|
|
1074
|
+
trialSettings: {
|
|
1075
|
+
endTime: "Test string",
|
|
1076
|
+
trial: true,
|
|
1077
|
+
},
|
|
1078
|
+
updateTime: "Test string",
|
|
1079
|
+
},
|
|
1080
|
+
requestId: "Test string",
|
|
1081
|
+
});
|
|
1082
|
+
/**
|
|
1083
|
+
* Returns the requested Entitlement resource. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are
|
|
1084
|
+
* missing or invalid. * NOT_FOUND: The customer entitlement was not found. Return value: The requested Entitlement resource.
|
|
1085
|
+
*/
|
|
1086
|
+
await gapi.client.cloudchannel.accounts.customers.entitlements.get({
|
|
1087
|
+
name: "Test string",
|
|
1088
|
+
});
|
|
1089
|
+
/**
|
|
1090
|
+
* Lists Entitlements belonging to a customer. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are
|
|
1091
|
+
* missing or invalid. Return value: A list of the customer's Entitlements.
|
|
1092
|
+
*/
|
|
1093
|
+
await gapi.client.cloudchannel.accounts.customers.entitlements.list({
|
|
1094
|
+
pageSize: 42,
|
|
1095
|
+
pageToken: "Test string",
|
|
1096
|
+
parent: "Test string",
|
|
1097
|
+
});
|
|
1098
|
+
/**
|
|
1099
|
+
* Returns the requested Offer resource. Possible error codes: * PERMISSION_DENIED: The entitlement doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are
|
|
1100
|
+
* missing or invalid. * NOT_FOUND: Entitlement or offer was not found. Return value: The Offer resource.
|
|
1101
|
+
*/
|
|
1102
|
+
await gapi.client.cloudchannel.accounts.customers.entitlements.lookupOffer({
|
|
1103
|
+
entitlement: "Test string",
|
|
1104
|
+
});
|
|
1105
|
+
/**
|
|
1106
|
+
* 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 has
|
|
1107
|
+
* 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
|
|
1108
|
+
* 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 related
|
|
1109
|
+
* 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. Return
|
|
1110
|
+
* 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 contain an
|
|
1111
|
+
* instance of OperationMetadata.
|
|
1112
|
+
*/
|
|
1113
|
+
await gapi.client.cloudchannel.accounts.customers.entitlements.startPaidService({
|
|
1114
|
+
name: "Test string",
|
|
1115
|
+
}, {
|
|
1116
|
+
requestId: "Test string",
|
|
1117
|
+
});
|
|
1118
|
+
/**
|
|
1119
|
+
* 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
|
|
1120
|
+
* reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * NOT_ACTIVE: Entitlement is not active. * INTERNAL: Any
|
|
1121
|
+
* 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 Cloud
|
|
1122
|
+
* 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 Operation
|
|
1123
|
+
* metadata will contain an instance of OperationMetadata.
|
|
1124
|
+
*/
|
|
1125
|
+
await gapi.client.cloudchannel.accounts.customers.entitlements.suspend({
|
|
1126
|
+
name: "Test string",
|
|
1127
|
+
}, {
|
|
1128
|
+
requestId: "Test string",
|
|
1129
|
+
});
|
|
1130
|
+
/** Lists the Offers the reseller can sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid. */
|
|
1131
|
+
await gapi.client.cloudchannel.accounts.offers.list({
|
|
1132
|
+
filter: "Test string",
|
|
1133
|
+
languageCode: "Test string",
|
|
1134
|
+
pageSize: 42,
|
|
1135
|
+
pageToken: "Test string",
|
|
1136
|
+
parent: "Test string",
|
|
1137
|
+
});
|
|
1138
|
+
/**
|
|
1139
|
+
* 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 this
|
|
1140
|
+
* method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation
|
|
1141
|
+
* completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of
|
|
1142
|
+
* 1, corresponding to `Code.CANCELLED`.
|
|
1143
|
+
*/
|
|
1144
|
+
await gapi.client.cloudchannel.operations.cancel({
|
|
1145
|
+
name: "Test string",
|
|
1146
|
+
}, {
|
|
1147
|
+
});
|
|
1148
|
+
/**
|
|
1149
|
+
* 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 support
|
|
1150
|
+
* this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
1151
|
+
*/
|
|
1152
|
+
await gapi.client.cloudchannel.operations.delete({
|
|
1153
|
+
name: "Test string",
|
|
1154
|
+
});
|
|
1155
|
+
/** 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. */
|
|
1156
|
+
await gapi.client.cloudchannel.operations.get({
|
|
1157
|
+
name: "Test string",
|
|
1158
|
+
});
|
|
1159
|
+
/**
|
|
1160
|
+
* 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 to
|
|
1161
|
+
* 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
|
|
1162
|
+
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
1163
|
+
* ensure the name binding is the parent resource, without the operations collection id.
|
|
1164
|
+
*/
|
|
1165
|
+
await gapi.client.cloudchannel.operations.list({
|
|
1166
|
+
filter: "Test string",
|
|
1167
|
+
name: "Test string",
|
|
1168
|
+
pageSize: 42,
|
|
1169
|
+
pageToken: "Test string",
|
|
1170
|
+
});
|
|
1171
|
+
/** Lists the Products the reseller is authorized to sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid. */
|
|
1172
|
+
await gapi.client.cloudchannel.products.list({
|
|
1173
|
+
account: "Test string",
|
|
1174
|
+
languageCode: "Test string",
|
|
1175
|
+
pageSize: 42,
|
|
1176
|
+
pageToken: "Test string",
|
|
1177
|
+
});
|
|
1178
|
+
/** Lists the SKUs for a product the reseller is authorized to sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid. */
|
|
1179
|
+
await gapi.client.cloudchannel.products.skus.list({
|
|
1180
|
+
account: "Test string",
|
|
1181
|
+
languageCode: "Test string",
|
|
1182
|
+
pageSize: 42,
|
|
1183
|
+
pageToken: "Test string",
|
|
1184
|
+
parent: "Test string",
|
|
1185
|
+
});
|
|
1186
|
+
}
|
|
1187
|
+
});
|