@maxim_mazurok/gapi.client.androiddeviceprovisioning-v1 0.0.20220808
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 +1612 -0
- package/package.json +20 -0
- package/readme.md +57 -0
- package/tests.ts +331 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,1612 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Android Device Provisioning Partner API v1 0.0 */
|
|
2
|
+
// Project: https://developers.google.com/zero-touch/
|
|
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://androiddeviceprovisioning.googleapis.com/$discovery/rest?version=v1
|
|
13
|
+
// Revision: 20220808
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Android Device Provisioning Partner API v1 */
|
|
19
|
+
function load(urlOrObject: "https://androiddeviceprovisioning.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "androiddeviceprovisioning", version: "v1"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "androiddeviceprovisioning", version: "v1", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace androiddeviceprovisioning {
|
|
26
|
+
interface ClaimDeviceRequest {
|
|
27
|
+
/** Required. The ID of the customer for whom the device is being claimed. */
|
|
28
|
+
customerId?: string;
|
|
29
|
+
/** Required. Required. The device identifier of the device to claim. */
|
|
30
|
+
deviceIdentifier?: DeviceIdentifier;
|
|
31
|
+
/** Optional. The metadata to attach to the device. */
|
|
32
|
+
deviceMetadata?: DeviceMetadata;
|
|
33
|
+
/** Required. The section type of the device's provisioning record. */
|
|
34
|
+
sectionType?: string;
|
|
35
|
+
}
|
|
36
|
+
interface ClaimDeviceResponse {
|
|
37
|
+
/** The device ID of the claimed device. */
|
|
38
|
+
deviceId?: string;
|
|
39
|
+
/** The resource name of the device in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. */
|
|
40
|
+
deviceName?: string;
|
|
41
|
+
}
|
|
42
|
+
interface ClaimDevicesRequest {
|
|
43
|
+
/** Required. A list of device claims. */
|
|
44
|
+
claims?: PartnerClaim[];
|
|
45
|
+
}
|
|
46
|
+
interface Company {
|
|
47
|
+
/** Optional. Email address of customer's users in the admin role. Each email address must be associated with a Google Account. */
|
|
48
|
+
adminEmails?: string[];
|
|
49
|
+
/** Output only. The ID of the company. Assigned by the server. */
|
|
50
|
+
companyId?: string;
|
|
51
|
+
/** Required. The name of the company. For example _XYZ Corp_. Displayed to the company's employees in the zero-touch enrollment portal. */
|
|
52
|
+
companyName?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Input only. The preferred locale of the customer represented as a BCP47 language code. This field is validated on input and requests containing unsupported language codes will be
|
|
55
|
+
* rejected. Supported language codes: Arabic (ar) Chinese (Hong Kong) (zh-HK) Chinese (Simplified) (zh-CN) Chinese (Traditional) (zh-TW) Czech (cs) Danish (da) Dutch (nl) English (UK)
|
|
56
|
+
* (en-GB) English (US) (en-US) Filipino (fil) Finnish (fi) French (fr) German (de) Hebrew (iw) Hindi (hi) Hungarian (hu) Indonesian (id) Italian (it) Japanese (ja) Korean (ko)
|
|
57
|
+
* Norwegian (Bokmal) (no) Polish (pl) Portuguese (Brazil) (pt-BR) Portuguese (Portugal) (pt-PT) Russian (ru) Spanish (es) Spanish (Latin America) (es-419) Swedish (sv) Thai (th)
|
|
58
|
+
* Turkish (tr) Ukrainian (uk) Vietnamese (vi)
|
|
59
|
+
*/
|
|
60
|
+
languageCode?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Output only. The API resource name of the company. The resource name is one of the following formats: * `partners/[PARTNER_ID]/customers/[CUSTOMER_ID]` *
|
|
63
|
+
* `partners/[PARTNER_ID]/vendors/[VENDOR_ID]` * `partners/[PARTNER_ID]/vendors/[VENDOR_ID]/customers/[CUSTOMER_ID]` Assigned by the server.
|
|
64
|
+
*/
|
|
65
|
+
name?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Required. Input only. Email address of customer's users in the owner role. At least one `owner_email` is required. Owners share the same access as admins but can also add, delete,
|
|
68
|
+
* and edit your organization's portal users.
|
|
69
|
+
*/
|
|
70
|
+
ownerEmails?: string[];
|
|
71
|
+
/**
|
|
72
|
+
* Input only. If set to true, welcome email will not be sent to the customer. It is recommended to skip the welcome email if devices will be claimed with additional DEVICE_PROTECTION
|
|
73
|
+
* service, as the customer will receive separate emails at device claim time. This field is ignored if this is not a Zero-touch customer.
|
|
74
|
+
*/
|
|
75
|
+
skipWelcomeEmail?: boolean;
|
|
76
|
+
/** Output only. Whether any user from the company has accepted the latest Terms of Service (ToS). See TermsStatus. */
|
|
77
|
+
termsStatus?: string;
|
|
78
|
+
}
|
|
79
|
+
interface Configuration {
|
|
80
|
+
/** Required. The name of the organization. Zero-touch enrollment shows this organization name to device users during device provisioning. */
|
|
81
|
+
companyName?: string;
|
|
82
|
+
/** Output only. The ID of the configuration. Assigned by the server. */
|
|
83
|
+
configurationId?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Required. A short name that describes the configuration's purpose. For example, _Sales team_ or _Temporary employees_. The zero-touch enrollment portal displays this name to IT
|
|
86
|
+
* admins.
|
|
87
|
+
*/
|
|
88
|
+
configurationName?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Required. The email address that device users can contact to get help. Zero-touch enrollment shows this email address to device users before device provisioning. The value is
|
|
91
|
+
* validated on input.
|
|
92
|
+
*/
|
|
93
|
+
contactEmail?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Required. The telephone number that device users can call, using another device, to get help. Zero-touch enrollment shows this number to device users before device provisioning.
|
|
96
|
+
* Accepts numerals, spaces, the plus sign, hyphens, and parentheses.
|
|
97
|
+
*/
|
|
98
|
+
contactPhone?: string;
|
|
99
|
+
/**
|
|
100
|
+
* A message, containing one or two sentences, to help device users get help or give them more details about what’s happening to their device. Zero-touch enrollment shows this message
|
|
101
|
+
* before the device is provisioned.
|
|
102
|
+
*/
|
|
103
|
+
customMessage?: string;
|
|
104
|
+
/** The JSON-formatted EMM provisioning extras that are passed to the DPC. */
|
|
105
|
+
dpcExtras?: string;
|
|
106
|
+
/** Required. The resource name of the selected DPC (device policy controller) in the format `customers/[CUSTOMER_ID]/dpcs/*`. To list the supported DPCs, call `customers.dpcs.list`. */
|
|
107
|
+
dpcResourcePath?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Required. Whether this is the default configuration that zero-touch enrollment applies to any new devices the organization purchases in the future. Only one customer configuration
|
|
110
|
+
* can be the default. Setting this value to `true`, changes the previous default configuration's `isDefault` value to `false`.
|
|
111
|
+
*/
|
|
112
|
+
isDefault?: boolean;
|
|
113
|
+
/** Output only. The API resource name in the format `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. Assigned by the server. */
|
|
114
|
+
name?: string;
|
|
115
|
+
}
|
|
116
|
+
interface CreateCustomerRequest {
|
|
117
|
+
/**
|
|
118
|
+
* Required. The company data to populate the new customer. Must contain a value for `companyName` and at least one `owner_email` that's associated with a Google Account. The values
|
|
119
|
+
* for `companyId` and `name` must be empty.
|
|
120
|
+
*/
|
|
121
|
+
customer?: Company;
|
|
122
|
+
}
|
|
123
|
+
interface CustomerApplyConfigurationRequest {
|
|
124
|
+
/** Required. The configuration applied to the device in the format `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. */
|
|
125
|
+
configuration?: string;
|
|
126
|
+
/** Required. The device the configuration is applied to. There are custom validations in ApplyConfigurationRequestValidator */
|
|
127
|
+
device?: DeviceReference;
|
|
128
|
+
}
|
|
129
|
+
interface CustomerListConfigurationsResponse {
|
|
130
|
+
/** The configurations. */
|
|
131
|
+
configurations?: Configuration[];
|
|
132
|
+
}
|
|
133
|
+
interface CustomerListCustomersResponse {
|
|
134
|
+
/** The customer accounts the calling user is a member of. */
|
|
135
|
+
customers?: Company[];
|
|
136
|
+
/** A token used to access the next page of results. Omitted if no further results are available. */
|
|
137
|
+
nextPageToken?: string;
|
|
138
|
+
}
|
|
139
|
+
interface CustomerListDevicesResponse {
|
|
140
|
+
/** The customer's devices. */
|
|
141
|
+
devices?: Device[];
|
|
142
|
+
/** A token used to access the next page of results. Omitted if no further results are available. */
|
|
143
|
+
nextPageToken?: string;
|
|
144
|
+
}
|
|
145
|
+
interface CustomerListDpcsResponse {
|
|
146
|
+
/** The list of DPCs available to the customer that support zero-touch enrollment. */
|
|
147
|
+
dpcs?: Dpc[];
|
|
148
|
+
}
|
|
149
|
+
interface CustomerRemoveConfigurationRequest {
|
|
150
|
+
/** Required. The device to remove the configuration from. There are custom validations in RemoveConfigurationRequestValidator */
|
|
151
|
+
device?: DeviceReference;
|
|
152
|
+
}
|
|
153
|
+
interface CustomerUnclaimDeviceRequest {
|
|
154
|
+
/** Required. The device to unclaim. There are custom validations in UnclaimDeviceRequestValidator. */
|
|
155
|
+
device?: DeviceReference;
|
|
156
|
+
}
|
|
157
|
+
interface Device {
|
|
158
|
+
/**
|
|
159
|
+
* Output only. The provisioning claims for a device. Devices claimed for zero-touch enrollment have a claim with the type `SECTION_TYPE_ZERO_TOUCH`. Call `partners.devices.unclaim` or
|
|
160
|
+
* `partners.devices.unclaimAsync` to remove the device from zero-touch enrollment.
|
|
161
|
+
*/
|
|
162
|
+
claims?: DeviceClaim[];
|
|
163
|
+
/** Not available to resellers. */
|
|
164
|
+
configuration?: string;
|
|
165
|
+
/** Output only. The ID of the device. Assigned by the server. */
|
|
166
|
+
deviceId?: string;
|
|
167
|
+
/** The hardware IDs that identify a manufactured device. To learn more, read [Identifiers](https://developers.google.com/zero-touch/guides/identifiers). */
|
|
168
|
+
deviceIdentifier?: DeviceIdentifier;
|
|
169
|
+
/** The metadata attached to the device. Structured as key-value pairs. To learn more, read [Device metadata](https://developers.google.com/zero-touch/guides/metadata). */
|
|
170
|
+
deviceMetadata?: DeviceMetadata;
|
|
171
|
+
/** Output only. The API resource name in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. Assigned by the server. */
|
|
172
|
+
name?: string;
|
|
173
|
+
}
|
|
174
|
+
interface DeviceClaim {
|
|
175
|
+
/** The Additional service registered for the device. */
|
|
176
|
+
additionalService?: string;
|
|
177
|
+
/** The ID of the Customer that purchased the device. */
|
|
178
|
+
ownerCompanyId?: string;
|
|
179
|
+
/** The ID of the reseller that claimed the device. */
|
|
180
|
+
resellerId?: string;
|
|
181
|
+
/** Output only. The type of claim made on the device. */
|
|
182
|
+
sectionType?: string;
|
|
183
|
+
/** The timestamp when the device will exit ‘vacation mode’. This value is present iff the device is in 'vacation mode'. */
|
|
184
|
+
vacationModeExpireTime?: string;
|
|
185
|
+
/** The timestamp when the device was put into ‘vacation mode’. This value is present iff the device is in 'vacation mode'. */
|
|
186
|
+
vacationModeStartTime?: string;
|
|
187
|
+
}
|
|
188
|
+
interface DeviceIdentifier {
|
|
189
|
+
/** The device’s IMEI number. Validated on input. */
|
|
190
|
+
imei?: string;
|
|
191
|
+
/**
|
|
192
|
+
* The device manufacturer’s name. Matches the device's built-in value returned from `android.os.Build.MANUFACTURER`. Allowed values are listed in
|
|
193
|
+
* [manufacturers](/zero-touch/resources/manufacturer-names#manufacturers-names).
|
|
194
|
+
*/
|
|
195
|
+
manufacturer?: string;
|
|
196
|
+
/** The device’s MEID number. */
|
|
197
|
+
meid?: string;
|
|
198
|
+
/**
|
|
199
|
+
* The device model's name. Matches the device's built-in value returned from `android.os.Build.MODEL`. Allowed values are listed in
|
|
200
|
+
* [models](/zero-touch/resources/manufacturer-names#model-names).
|
|
201
|
+
*/
|
|
202
|
+
model?: string;
|
|
203
|
+
/** The manufacturer's serial number for the device. This value might not be unique across different device models. */
|
|
204
|
+
serialNumber?: string;
|
|
205
|
+
}
|
|
206
|
+
interface DeviceMetadata {
|
|
207
|
+
/** Metadata entries recorded as key-value pairs. */
|
|
208
|
+
entries?: { [P in string]: string };
|
|
209
|
+
}
|
|
210
|
+
interface DeviceReference {
|
|
211
|
+
/** The ID of the device. */
|
|
212
|
+
deviceId?: string;
|
|
213
|
+
/** The hardware IDs of the device. */
|
|
214
|
+
deviceIdentifier?: DeviceIdentifier;
|
|
215
|
+
}
|
|
216
|
+
interface DevicesLongRunningOperationMetadata {
|
|
217
|
+
/** The number of metadata updates in the operation. This might be different from the number of updates in the request if the API can't parse some of the updates. */
|
|
218
|
+
devicesCount?: number;
|
|
219
|
+
/** The processing status of the operation. */
|
|
220
|
+
processingStatus?: string;
|
|
221
|
+
/** The processing progress of the operation. Measured as a number from 0 to 100. A value of 10O doesnt always mean the operation completed—check for the inclusion of a `done` field. */
|
|
222
|
+
progress?: number;
|
|
223
|
+
}
|
|
224
|
+
interface DevicesLongRunningOperationResponse {
|
|
225
|
+
/** The processing status for each device in the operation. One `PerDeviceStatus` per device. The list order matches the items in the original request. */
|
|
226
|
+
perDeviceStatus?: OperationPerDevice[];
|
|
227
|
+
/** A summary of how many items in the operation the server processed successfully. Updated as the operation progresses. */
|
|
228
|
+
successCount?: number;
|
|
229
|
+
}
|
|
230
|
+
interface Dpc {
|
|
231
|
+
/** Output only. The title of the DPC app in Google Play. For example, _Google Apps Device Policy_. Useful in an application's user interface. */
|
|
232
|
+
dpcName?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Output only. The API resource name in the format `customers/[CUSTOMER_ID]/dpcs/[DPC_ID]`. Assigned by the server. To maintain a reference to a DPC across customer accounts, persist
|
|
235
|
+
* and match the last path component (`DPC_ID`).
|
|
236
|
+
*/
|
|
237
|
+
name?: string;
|
|
238
|
+
/** Output only. The DPC's Android application ID that looks like a Java package name. Zero-touch enrollment installs the DPC app onto a device using this identifier. */
|
|
239
|
+
packageName?: string;
|
|
240
|
+
}
|
|
241
|
+
// tslint:disable-next-line:no-empty-interface
|
|
242
|
+
interface Empty {
|
|
243
|
+
}
|
|
244
|
+
interface FindDevicesByDeviceIdentifierRequest {
|
|
245
|
+
/** Required. Required. The device identifier to search for. */
|
|
246
|
+
deviceIdentifier?: DeviceIdentifier;
|
|
247
|
+
/** Required. The maximum number of devices to show in a page of results. Must be between 1 and 100 inclusive. */
|
|
248
|
+
limit?: string;
|
|
249
|
+
/** A token specifying which result page to return. */
|
|
250
|
+
pageToken?: string;
|
|
251
|
+
}
|
|
252
|
+
interface FindDevicesByDeviceIdentifierResponse {
|
|
253
|
+
/** Found devices. */
|
|
254
|
+
devices?: Device[];
|
|
255
|
+
/** A token used to access the next page of results. Omitted if no further results are available. */
|
|
256
|
+
nextPageToken?: string;
|
|
257
|
+
/** The total count of items in the list irrespective of pagination. */
|
|
258
|
+
totalSize?: number;
|
|
259
|
+
}
|
|
260
|
+
interface FindDevicesByOwnerRequest {
|
|
261
|
+
/** Required. The list of customer IDs to search for. */
|
|
262
|
+
customerId?: string[];
|
|
263
|
+
/** Required. The maximum number of devices to show in a page of results. Must be between 1 and 100 inclusive. */
|
|
264
|
+
limit?: string;
|
|
265
|
+
/** A token specifying which result page to return. */
|
|
266
|
+
pageToken?: string;
|
|
267
|
+
/** Required. The section type of the device's provisioning record. */
|
|
268
|
+
sectionType?: string;
|
|
269
|
+
}
|
|
270
|
+
interface FindDevicesByOwnerResponse {
|
|
271
|
+
/** The customer's devices. */
|
|
272
|
+
devices?: Device[];
|
|
273
|
+
/** A token used to access the next page of results. Omitted if no further results are available. */
|
|
274
|
+
nextPageToken?: string;
|
|
275
|
+
/** The total count of items in the list irrespective of pagination. */
|
|
276
|
+
totalSize?: number;
|
|
277
|
+
}
|
|
278
|
+
interface ListCustomersResponse {
|
|
279
|
+
/** List of customers related to this reseller partner. */
|
|
280
|
+
customers?: Company[];
|
|
281
|
+
/** A token to retrieve the next page of results. Omitted if no further results are available. */
|
|
282
|
+
nextPageToken?: string;
|
|
283
|
+
/** The total count of items in the list irrespective of pagination. */
|
|
284
|
+
totalSize?: number;
|
|
285
|
+
}
|
|
286
|
+
interface ListVendorCustomersResponse {
|
|
287
|
+
/** List of customers of the vendor. */
|
|
288
|
+
customers?: Company[];
|
|
289
|
+
/** A token to retrieve the next page of results. Omitted if no further results are available. */
|
|
290
|
+
nextPageToken?: string;
|
|
291
|
+
/** The total count of items in the list irrespective of pagination. */
|
|
292
|
+
totalSize?: number;
|
|
293
|
+
}
|
|
294
|
+
interface ListVendorsResponse {
|
|
295
|
+
/** A token to retrieve the next page of results. Omitted if no further results are available. */
|
|
296
|
+
nextPageToken?: string;
|
|
297
|
+
/** The total count of items in the list irrespective of pagination. */
|
|
298
|
+
totalSize?: number;
|
|
299
|
+
/** List of vendors of the reseller partner. Fields `name`, `companyId` and `companyName` are populated to the Company object. */
|
|
300
|
+
vendors?: Company[];
|
|
301
|
+
}
|
|
302
|
+
interface Operation {
|
|
303
|
+
/** 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. */
|
|
304
|
+
done?: boolean;
|
|
305
|
+
/**
|
|
306
|
+
* This field will always be not set if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. In this case, error information for each device is set in
|
|
307
|
+
* `response.perDeviceStatus.result.status`.
|
|
308
|
+
*/
|
|
309
|
+
error?: Status;
|
|
310
|
+
/** This field will contain a `DevicesLongRunningOperationMetadata` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. */
|
|
311
|
+
metadata?: { [P in string]: any };
|
|
312
|
+
/**
|
|
313
|
+
* 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
|
|
314
|
+
* with `operations/{unique_id}`.
|
|
315
|
+
*/
|
|
316
|
+
name?: string;
|
|
317
|
+
/** This field will contain a `DevicesLongRunningOperationResponse` object if the operation is created by `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. */
|
|
318
|
+
response?: { [P in string]: any };
|
|
319
|
+
}
|
|
320
|
+
interface OperationPerDevice {
|
|
321
|
+
/** A copy of the original device-claim request received by the server. */
|
|
322
|
+
claim?: PartnerClaim;
|
|
323
|
+
/** The processing result for each device. */
|
|
324
|
+
result?: PerDeviceStatusInBatch;
|
|
325
|
+
/** A copy of the original device-unclaim request received by the server. */
|
|
326
|
+
unclaim?: PartnerUnclaim;
|
|
327
|
+
/** A copy of the original metadata-update request received by the server. */
|
|
328
|
+
updateMetadata?: UpdateMetadataArguments;
|
|
329
|
+
}
|
|
330
|
+
interface PartnerClaim {
|
|
331
|
+
/** Required. The ID of the customer for whom the device is being claimed. */
|
|
332
|
+
customerId?: string;
|
|
333
|
+
/** Required. Required. Device identifier of the device. */
|
|
334
|
+
deviceIdentifier?: DeviceIdentifier;
|
|
335
|
+
/** Required. The metadata to attach to the device at claim. */
|
|
336
|
+
deviceMetadata?: DeviceMetadata;
|
|
337
|
+
/** Required. The section type of the device's provisioning record. */
|
|
338
|
+
sectionType?: string;
|
|
339
|
+
}
|
|
340
|
+
interface PartnerUnclaim {
|
|
341
|
+
/** Required. Device ID of the device. */
|
|
342
|
+
deviceId?: string;
|
|
343
|
+
/** Required. Device identifier of the device. */
|
|
344
|
+
deviceIdentifier?: DeviceIdentifier;
|
|
345
|
+
/** Required. The section type of the device's provisioning record. */
|
|
346
|
+
sectionType?: string;
|
|
347
|
+
/** Optional. The duration of the vacation unlock starting from when the request is processed. (1 day is treated as 24 hours) */
|
|
348
|
+
vacationModeDays?: number;
|
|
349
|
+
/** Optional. The expiration time of the vacation unlock. */
|
|
350
|
+
vacationModeExpireTime?: string;
|
|
351
|
+
}
|
|
352
|
+
interface PerDeviceStatusInBatch {
|
|
353
|
+
/** If processing succeeds, the device ID of the device. */
|
|
354
|
+
deviceId?: string;
|
|
355
|
+
/** If processing fails, the error type. */
|
|
356
|
+
errorIdentifier?: string;
|
|
357
|
+
/** If processing fails, a developer message explaining what went wrong. */
|
|
358
|
+
errorMessage?: string;
|
|
359
|
+
/** The result status of the device after processing. */
|
|
360
|
+
status?: string;
|
|
361
|
+
}
|
|
362
|
+
interface Status {
|
|
363
|
+
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
364
|
+
code?: number;
|
|
365
|
+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
366
|
+
details?: Array<{ [P in string]: any }>;
|
|
367
|
+
/**
|
|
368
|
+
* 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
|
|
369
|
+
* client.
|
|
370
|
+
*/
|
|
371
|
+
message?: string;
|
|
372
|
+
}
|
|
373
|
+
interface UnclaimDeviceRequest {
|
|
374
|
+
/** Required. The device ID returned by `ClaimDevice`. */
|
|
375
|
+
deviceId?: string;
|
|
376
|
+
/** Required. The device identifier you used when you claimed this device. */
|
|
377
|
+
deviceIdentifier?: DeviceIdentifier;
|
|
378
|
+
/** Required. The section type of the device's provisioning record. */
|
|
379
|
+
sectionType?: string;
|
|
380
|
+
/** The duration of the vacation unlock starting from when the request is processed. (1 day is treated as 24 hours) */
|
|
381
|
+
vacationModeDays?: number;
|
|
382
|
+
/** The expiration time of the vacation unlock. */
|
|
383
|
+
vacationModeExpireTime?: string;
|
|
384
|
+
}
|
|
385
|
+
interface UnclaimDevicesRequest {
|
|
386
|
+
/** Required. The list of devices to unclaim. */
|
|
387
|
+
unclaims?: PartnerUnclaim[];
|
|
388
|
+
}
|
|
389
|
+
interface UpdateDeviceMetadataInBatchRequest {
|
|
390
|
+
/** Required. The list of metadata updates. */
|
|
391
|
+
updates?: UpdateMetadataArguments[];
|
|
392
|
+
}
|
|
393
|
+
interface UpdateDeviceMetadataRequest {
|
|
394
|
+
/** Required. The metadata to attach to the device. */
|
|
395
|
+
deviceMetadata?: DeviceMetadata;
|
|
396
|
+
}
|
|
397
|
+
interface UpdateMetadataArguments {
|
|
398
|
+
/** Required. Device ID of the device. */
|
|
399
|
+
deviceId?: string;
|
|
400
|
+
/** Required. Device identifier. */
|
|
401
|
+
deviceIdentifier?: DeviceIdentifier;
|
|
402
|
+
/** Required. The metadata to update. */
|
|
403
|
+
deviceMetadata?: DeviceMetadata;
|
|
404
|
+
}
|
|
405
|
+
interface ConfigurationsResource {
|
|
406
|
+
/** Creates a new configuration. Once created, a customer can apply the configuration to devices. */
|
|
407
|
+
create(request: {
|
|
408
|
+
/** V1 error format. */
|
|
409
|
+
"$.xgafv"?: string;
|
|
410
|
+
/** OAuth access token. */
|
|
411
|
+
access_token?: string;
|
|
412
|
+
/** Data format for response. */
|
|
413
|
+
alt?: string;
|
|
414
|
+
/** JSONP */
|
|
415
|
+
callback?: string;
|
|
416
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
417
|
+
fields?: string;
|
|
418
|
+
/** 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. */
|
|
419
|
+
key?: string;
|
|
420
|
+
/** OAuth 2.0 token for the current user. */
|
|
421
|
+
oauth_token?: string;
|
|
422
|
+
/**
|
|
423
|
+
* Required. The customer that manages the configuration. An API resource name in the format `customers/[CUSTOMER_ID]`. This field has custom validation in
|
|
424
|
+
* CreateConfigurationRequestValidator
|
|
425
|
+
*/
|
|
426
|
+
parent: string;
|
|
427
|
+
/** Returns response with indentations and line breaks. */
|
|
428
|
+
prettyPrint?: boolean;
|
|
429
|
+
/** 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. */
|
|
430
|
+
quotaUser?: string;
|
|
431
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
432
|
+
upload_protocol?: string;
|
|
433
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
434
|
+
uploadType?: string;
|
|
435
|
+
/** Request body */
|
|
436
|
+
resource: Configuration;
|
|
437
|
+
}): Request<Configuration>;
|
|
438
|
+
create(request: {
|
|
439
|
+
/** V1 error format. */
|
|
440
|
+
"$.xgafv"?: string;
|
|
441
|
+
/** OAuth access token. */
|
|
442
|
+
access_token?: string;
|
|
443
|
+
/** Data format for response. */
|
|
444
|
+
alt?: string;
|
|
445
|
+
/** JSONP */
|
|
446
|
+
callback?: string;
|
|
447
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
448
|
+
fields?: string;
|
|
449
|
+
/** 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. */
|
|
450
|
+
key?: string;
|
|
451
|
+
/** OAuth 2.0 token for the current user. */
|
|
452
|
+
oauth_token?: string;
|
|
453
|
+
/**
|
|
454
|
+
* Required. The customer that manages the configuration. An API resource name in the format `customers/[CUSTOMER_ID]`. This field has custom validation in
|
|
455
|
+
* CreateConfigurationRequestValidator
|
|
456
|
+
*/
|
|
457
|
+
parent: string;
|
|
458
|
+
/** Returns response with indentations and line breaks. */
|
|
459
|
+
prettyPrint?: boolean;
|
|
460
|
+
/** 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. */
|
|
461
|
+
quotaUser?: string;
|
|
462
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
463
|
+
upload_protocol?: string;
|
|
464
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
465
|
+
uploadType?: string;
|
|
466
|
+
},
|
|
467
|
+
body: Configuration): Request<Configuration>;
|
|
468
|
+
/** Deletes an unused configuration. The API call fails if the customer has devices with the configuration applied. */
|
|
469
|
+
delete(request?: {
|
|
470
|
+
/** V1 error format. */
|
|
471
|
+
"$.xgafv"?: string;
|
|
472
|
+
/** OAuth access token. */
|
|
473
|
+
access_token?: string;
|
|
474
|
+
/** Data format for response. */
|
|
475
|
+
alt?: string;
|
|
476
|
+
/** JSONP */
|
|
477
|
+
callback?: string;
|
|
478
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
479
|
+
fields?: string;
|
|
480
|
+
/** 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. */
|
|
481
|
+
key?: string;
|
|
482
|
+
/**
|
|
483
|
+
* Required. The configuration to delete. An API resource name in the format `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. If the configuration is applied to any
|
|
484
|
+
* devices, the API call fails.
|
|
485
|
+
*/
|
|
486
|
+
name: string;
|
|
487
|
+
/** OAuth 2.0 token for the current user. */
|
|
488
|
+
oauth_token?: string;
|
|
489
|
+
/** Returns response with indentations and line breaks. */
|
|
490
|
+
prettyPrint?: boolean;
|
|
491
|
+
/** 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. */
|
|
492
|
+
quotaUser?: string;
|
|
493
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
494
|
+
upload_protocol?: string;
|
|
495
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
496
|
+
uploadType?: string;
|
|
497
|
+
}): Request<{}>;
|
|
498
|
+
/** Gets the details of a configuration. */
|
|
499
|
+
get(request?: {
|
|
500
|
+
/** V1 error format. */
|
|
501
|
+
"$.xgafv"?: string;
|
|
502
|
+
/** OAuth access token. */
|
|
503
|
+
access_token?: string;
|
|
504
|
+
/** Data format for response. */
|
|
505
|
+
alt?: string;
|
|
506
|
+
/** JSONP */
|
|
507
|
+
callback?: string;
|
|
508
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
509
|
+
fields?: string;
|
|
510
|
+
/** 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. */
|
|
511
|
+
key?: string;
|
|
512
|
+
/** Required. The configuration to get. An API resource name in the format `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. */
|
|
513
|
+
name: string;
|
|
514
|
+
/** OAuth 2.0 token for the current user. */
|
|
515
|
+
oauth_token?: string;
|
|
516
|
+
/** Returns response with indentations and line breaks. */
|
|
517
|
+
prettyPrint?: boolean;
|
|
518
|
+
/** 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. */
|
|
519
|
+
quotaUser?: string;
|
|
520
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
521
|
+
upload_protocol?: string;
|
|
522
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
523
|
+
uploadType?: string;
|
|
524
|
+
}): Request<Configuration>;
|
|
525
|
+
/** Lists a customer's configurations. */
|
|
526
|
+
list(request?: {
|
|
527
|
+
/** V1 error format. */
|
|
528
|
+
"$.xgafv"?: string;
|
|
529
|
+
/** OAuth access token. */
|
|
530
|
+
access_token?: string;
|
|
531
|
+
/** Data format for response. */
|
|
532
|
+
alt?: string;
|
|
533
|
+
/** JSONP */
|
|
534
|
+
callback?: string;
|
|
535
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
536
|
+
fields?: string;
|
|
537
|
+
/** 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. */
|
|
538
|
+
key?: string;
|
|
539
|
+
/** OAuth 2.0 token for the current user. */
|
|
540
|
+
oauth_token?: string;
|
|
541
|
+
/** Required. The customer that manages the listed configurations. An API resource name in the format `customers/[CUSTOMER_ID]`. */
|
|
542
|
+
parent: string;
|
|
543
|
+
/** Returns response with indentations and line breaks. */
|
|
544
|
+
prettyPrint?: boolean;
|
|
545
|
+
/** 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. */
|
|
546
|
+
quotaUser?: string;
|
|
547
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
548
|
+
upload_protocol?: string;
|
|
549
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
550
|
+
uploadType?: string;
|
|
551
|
+
}): Request<CustomerListConfigurationsResponse>;
|
|
552
|
+
/** Updates a configuration's field values. */
|
|
553
|
+
patch(request: {
|
|
554
|
+
/** V1 error format. */
|
|
555
|
+
"$.xgafv"?: string;
|
|
556
|
+
/** OAuth access token. */
|
|
557
|
+
access_token?: string;
|
|
558
|
+
/** Data format for response. */
|
|
559
|
+
alt?: string;
|
|
560
|
+
/** JSONP */
|
|
561
|
+
callback?: string;
|
|
562
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
563
|
+
fields?: string;
|
|
564
|
+
/** 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. */
|
|
565
|
+
key?: string;
|
|
566
|
+
/** Output only. The API resource name in the format `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. Assigned by the server. */
|
|
567
|
+
name: string;
|
|
568
|
+
/** OAuth 2.0 token for the current user. */
|
|
569
|
+
oauth_token?: string;
|
|
570
|
+
/** Returns response with indentations and line breaks. */
|
|
571
|
+
prettyPrint?: boolean;
|
|
572
|
+
/** 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. */
|
|
573
|
+
quotaUser?: string;
|
|
574
|
+
/**
|
|
575
|
+
* Required. The field mask applied to the target `Configuration` before updating the fields. To learn more about using field masks, read
|
|
576
|
+
* [FieldMask](/protocol-buffers/docs/reference/google.protobuf#fieldmask) in the Protocol Buffers documentation.
|
|
577
|
+
*/
|
|
578
|
+
updateMask?: string;
|
|
579
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
580
|
+
upload_protocol?: string;
|
|
581
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
582
|
+
uploadType?: string;
|
|
583
|
+
/** Request body */
|
|
584
|
+
resource: Configuration;
|
|
585
|
+
}): Request<Configuration>;
|
|
586
|
+
patch(request: {
|
|
587
|
+
/** V1 error format. */
|
|
588
|
+
"$.xgafv"?: string;
|
|
589
|
+
/** OAuth access token. */
|
|
590
|
+
access_token?: string;
|
|
591
|
+
/** Data format for response. */
|
|
592
|
+
alt?: string;
|
|
593
|
+
/** JSONP */
|
|
594
|
+
callback?: string;
|
|
595
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
596
|
+
fields?: string;
|
|
597
|
+
/** 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. */
|
|
598
|
+
key?: string;
|
|
599
|
+
/** Output only. The API resource name in the format `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. Assigned by the server. */
|
|
600
|
+
name: string;
|
|
601
|
+
/** OAuth 2.0 token for the current user. */
|
|
602
|
+
oauth_token?: string;
|
|
603
|
+
/** Returns response with indentations and line breaks. */
|
|
604
|
+
prettyPrint?: boolean;
|
|
605
|
+
/** 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. */
|
|
606
|
+
quotaUser?: string;
|
|
607
|
+
/**
|
|
608
|
+
* Required. The field mask applied to the target `Configuration` before updating the fields. To learn more about using field masks, read
|
|
609
|
+
* [FieldMask](/protocol-buffers/docs/reference/google.protobuf#fieldmask) in the Protocol Buffers documentation.
|
|
610
|
+
*/
|
|
611
|
+
updateMask?: string;
|
|
612
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
613
|
+
upload_protocol?: string;
|
|
614
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
615
|
+
uploadType?: string;
|
|
616
|
+
},
|
|
617
|
+
body: Configuration): Request<Configuration>;
|
|
618
|
+
}
|
|
619
|
+
interface DevicesResource {
|
|
620
|
+
/**
|
|
621
|
+
* Applies a Configuration to the device to register the device for zero-touch enrollment. After applying a configuration to a device, the device automatically provisions itself on
|
|
622
|
+
* first boot, or next factory reset.
|
|
623
|
+
*/
|
|
624
|
+
applyConfiguration(request: {
|
|
625
|
+
/** V1 error format. */
|
|
626
|
+
"$.xgafv"?: string;
|
|
627
|
+
/** OAuth access token. */
|
|
628
|
+
access_token?: string;
|
|
629
|
+
/** Data format for response. */
|
|
630
|
+
alt?: string;
|
|
631
|
+
/** JSONP */
|
|
632
|
+
callback?: string;
|
|
633
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
634
|
+
fields?: string;
|
|
635
|
+
/** 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. */
|
|
636
|
+
key?: string;
|
|
637
|
+
/** OAuth 2.0 token for the current user. */
|
|
638
|
+
oauth_token?: string;
|
|
639
|
+
/** Required. The customer managing the device. An API resource name in the format `customers/[CUSTOMER_ID]`. */
|
|
640
|
+
parent: string;
|
|
641
|
+
/** Returns response with indentations and line breaks. */
|
|
642
|
+
prettyPrint?: boolean;
|
|
643
|
+
/** 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. */
|
|
644
|
+
quotaUser?: string;
|
|
645
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
646
|
+
upload_protocol?: string;
|
|
647
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
648
|
+
uploadType?: string;
|
|
649
|
+
/** Request body */
|
|
650
|
+
resource: CustomerApplyConfigurationRequest;
|
|
651
|
+
}): Request<{}>;
|
|
652
|
+
applyConfiguration(request: {
|
|
653
|
+
/** V1 error format. */
|
|
654
|
+
"$.xgafv"?: string;
|
|
655
|
+
/** OAuth access token. */
|
|
656
|
+
access_token?: string;
|
|
657
|
+
/** Data format for response. */
|
|
658
|
+
alt?: string;
|
|
659
|
+
/** JSONP */
|
|
660
|
+
callback?: string;
|
|
661
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
662
|
+
fields?: string;
|
|
663
|
+
/** 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. */
|
|
664
|
+
key?: string;
|
|
665
|
+
/** OAuth 2.0 token for the current user. */
|
|
666
|
+
oauth_token?: string;
|
|
667
|
+
/** Required. The customer managing the device. An API resource name in the format `customers/[CUSTOMER_ID]`. */
|
|
668
|
+
parent: string;
|
|
669
|
+
/** Returns response with indentations and line breaks. */
|
|
670
|
+
prettyPrint?: boolean;
|
|
671
|
+
/** 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. */
|
|
672
|
+
quotaUser?: string;
|
|
673
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
674
|
+
upload_protocol?: string;
|
|
675
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
676
|
+
uploadType?: string;
|
|
677
|
+
},
|
|
678
|
+
body: CustomerApplyConfigurationRequest): Request<{}>;
|
|
679
|
+
/** Gets the details of a device. */
|
|
680
|
+
get(request?: {
|
|
681
|
+
/** V1 error format. */
|
|
682
|
+
"$.xgafv"?: string;
|
|
683
|
+
/** OAuth access token. */
|
|
684
|
+
access_token?: string;
|
|
685
|
+
/** Data format for response. */
|
|
686
|
+
alt?: string;
|
|
687
|
+
/** JSONP */
|
|
688
|
+
callback?: string;
|
|
689
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
690
|
+
fields?: string;
|
|
691
|
+
/** 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. */
|
|
692
|
+
key?: string;
|
|
693
|
+
/** Required. The device to get. An API resource name in the format `customers/[CUSTOMER_ID]/devices/[DEVICE_ID]`. */
|
|
694
|
+
name: string;
|
|
695
|
+
/** OAuth 2.0 token for the current user. */
|
|
696
|
+
oauth_token?: string;
|
|
697
|
+
/** Returns response with indentations and line breaks. */
|
|
698
|
+
prettyPrint?: boolean;
|
|
699
|
+
/** 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. */
|
|
700
|
+
quotaUser?: string;
|
|
701
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
702
|
+
upload_protocol?: string;
|
|
703
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
704
|
+
uploadType?: string;
|
|
705
|
+
}): Request<Device>;
|
|
706
|
+
/** Lists a customer's devices. */
|
|
707
|
+
list(request?: {
|
|
708
|
+
/** V1 error format. */
|
|
709
|
+
"$.xgafv"?: string;
|
|
710
|
+
/** OAuth access token. */
|
|
711
|
+
access_token?: string;
|
|
712
|
+
/** Data format for response. */
|
|
713
|
+
alt?: string;
|
|
714
|
+
/** JSONP */
|
|
715
|
+
callback?: string;
|
|
716
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
717
|
+
fields?: string;
|
|
718
|
+
/** 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. */
|
|
719
|
+
key?: string;
|
|
720
|
+
/** OAuth 2.0 token for the current user. */
|
|
721
|
+
oauth_token?: string;
|
|
722
|
+
/** The maximum number of devices to show in a page of results. Must be between 1 and 100 inclusive. */
|
|
723
|
+
pageSize?: string;
|
|
724
|
+
/** A token specifying which result page to return. */
|
|
725
|
+
pageToken?: string;
|
|
726
|
+
/** Required. The customer managing the devices. An API resource name in the format `customers/[CUSTOMER_ID]`. */
|
|
727
|
+
parent: string;
|
|
728
|
+
/** Returns response with indentations and line breaks. */
|
|
729
|
+
prettyPrint?: boolean;
|
|
730
|
+
/** 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. */
|
|
731
|
+
quotaUser?: string;
|
|
732
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
733
|
+
upload_protocol?: string;
|
|
734
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
735
|
+
uploadType?: string;
|
|
736
|
+
}): Request<CustomerListDevicesResponse>;
|
|
737
|
+
/** Removes a configuration from device. */
|
|
738
|
+
removeConfiguration(request: {
|
|
739
|
+
/** V1 error format. */
|
|
740
|
+
"$.xgafv"?: string;
|
|
741
|
+
/** OAuth access token. */
|
|
742
|
+
access_token?: string;
|
|
743
|
+
/** Data format for response. */
|
|
744
|
+
alt?: string;
|
|
745
|
+
/** JSONP */
|
|
746
|
+
callback?: string;
|
|
747
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
748
|
+
fields?: string;
|
|
749
|
+
/** 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. */
|
|
750
|
+
key?: string;
|
|
751
|
+
/** OAuth 2.0 token for the current user. */
|
|
752
|
+
oauth_token?: string;
|
|
753
|
+
/** Required. The customer managing the device in the format `customers/[CUSTOMER_ID]`. */
|
|
754
|
+
parent: string;
|
|
755
|
+
/** Returns response with indentations and line breaks. */
|
|
756
|
+
prettyPrint?: boolean;
|
|
757
|
+
/** 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. */
|
|
758
|
+
quotaUser?: string;
|
|
759
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
760
|
+
upload_protocol?: string;
|
|
761
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
762
|
+
uploadType?: string;
|
|
763
|
+
/** Request body */
|
|
764
|
+
resource: CustomerRemoveConfigurationRequest;
|
|
765
|
+
}): Request<{}>;
|
|
766
|
+
removeConfiguration(request: {
|
|
767
|
+
/** V1 error format. */
|
|
768
|
+
"$.xgafv"?: string;
|
|
769
|
+
/** OAuth access token. */
|
|
770
|
+
access_token?: string;
|
|
771
|
+
/** Data format for response. */
|
|
772
|
+
alt?: string;
|
|
773
|
+
/** JSONP */
|
|
774
|
+
callback?: string;
|
|
775
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
776
|
+
fields?: string;
|
|
777
|
+
/** 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. */
|
|
778
|
+
key?: string;
|
|
779
|
+
/** OAuth 2.0 token for the current user. */
|
|
780
|
+
oauth_token?: string;
|
|
781
|
+
/** Required. The customer managing the device in the format `customers/[CUSTOMER_ID]`. */
|
|
782
|
+
parent: string;
|
|
783
|
+
/** Returns response with indentations and line breaks. */
|
|
784
|
+
prettyPrint?: boolean;
|
|
785
|
+
/** 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. */
|
|
786
|
+
quotaUser?: string;
|
|
787
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
788
|
+
upload_protocol?: string;
|
|
789
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
790
|
+
uploadType?: string;
|
|
791
|
+
},
|
|
792
|
+
body: CustomerRemoveConfigurationRequest): Request<{}>;
|
|
793
|
+
/**
|
|
794
|
+
* Unclaims a device from a customer and removes it from zero-touch enrollment. After removing a device, a customer must contact their reseller to register the device into zero-touch
|
|
795
|
+
* enrollment again.
|
|
796
|
+
*/
|
|
797
|
+
unclaim(request: {
|
|
798
|
+
/** V1 error format. */
|
|
799
|
+
"$.xgafv"?: string;
|
|
800
|
+
/** OAuth access token. */
|
|
801
|
+
access_token?: string;
|
|
802
|
+
/** Data format for response. */
|
|
803
|
+
alt?: string;
|
|
804
|
+
/** JSONP */
|
|
805
|
+
callback?: string;
|
|
806
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
807
|
+
fields?: string;
|
|
808
|
+
/** 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. */
|
|
809
|
+
key?: string;
|
|
810
|
+
/** OAuth 2.0 token for the current user. */
|
|
811
|
+
oauth_token?: string;
|
|
812
|
+
/** Required. The customer managing the device. An API resource name in the format `customers/[CUSTOMER_ID]`. */
|
|
813
|
+
parent: string;
|
|
814
|
+
/** Returns response with indentations and line breaks. */
|
|
815
|
+
prettyPrint?: boolean;
|
|
816
|
+
/** 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. */
|
|
817
|
+
quotaUser?: string;
|
|
818
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
819
|
+
upload_protocol?: string;
|
|
820
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
821
|
+
uploadType?: string;
|
|
822
|
+
/** Request body */
|
|
823
|
+
resource: CustomerUnclaimDeviceRequest;
|
|
824
|
+
}): Request<{}>;
|
|
825
|
+
unclaim(request: {
|
|
826
|
+
/** V1 error format. */
|
|
827
|
+
"$.xgafv"?: string;
|
|
828
|
+
/** OAuth access token. */
|
|
829
|
+
access_token?: string;
|
|
830
|
+
/** Data format for response. */
|
|
831
|
+
alt?: string;
|
|
832
|
+
/** JSONP */
|
|
833
|
+
callback?: string;
|
|
834
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
835
|
+
fields?: string;
|
|
836
|
+
/** 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. */
|
|
837
|
+
key?: string;
|
|
838
|
+
/** OAuth 2.0 token for the current user. */
|
|
839
|
+
oauth_token?: string;
|
|
840
|
+
/** Required. The customer managing the device. An API resource name in the format `customers/[CUSTOMER_ID]`. */
|
|
841
|
+
parent: string;
|
|
842
|
+
/** Returns response with indentations and line breaks. */
|
|
843
|
+
prettyPrint?: boolean;
|
|
844
|
+
/** 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. */
|
|
845
|
+
quotaUser?: string;
|
|
846
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
847
|
+
upload_protocol?: string;
|
|
848
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
849
|
+
uploadType?: string;
|
|
850
|
+
},
|
|
851
|
+
body: CustomerUnclaimDeviceRequest): Request<{}>;
|
|
852
|
+
}
|
|
853
|
+
interface DpcsResource {
|
|
854
|
+
/** Lists the DPCs (device policy controllers) that support zero-touch enrollment. */
|
|
855
|
+
list(request?: {
|
|
856
|
+
/** V1 error format. */
|
|
857
|
+
"$.xgafv"?: string;
|
|
858
|
+
/** OAuth access token. */
|
|
859
|
+
access_token?: string;
|
|
860
|
+
/** Data format for response. */
|
|
861
|
+
alt?: string;
|
|
862
|
+
/** JSONP */
|
|
863
|
+
callback?: string;
|
|
864
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
865
|
+
fields?: string;
|
|
866
|
+
/** 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. */
|
|
867
|
+
key?: string;
|
|
868
|
+
/** OAuth 2.0 token for the current user. */
|
|
869
|
+
oauth_token?: string;
|
|
870
|
+
/** Required. The customer that can use the DPCs in configurations. An API resource name in the format `customers/[CUSTOMER_ID]`. */
|
|
871
|
+
parent: string;
|
|
872
|
+
/** Returns response with indentations and line breaks. */
|
|
873
|
+
prettyPrint?: boolean;
|
|
874
|
+
/** 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. */
|
|
875
|
+
quotaUser?: string;
|
|
876
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
877
|
+
upload_protocol?: string;
|
|
878
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
879
|
+
uploadType?: string;
|
|
880
|
+
}): Request<CustomerListDpcsResponse>;
|
|
881
|
+
}
|
|
882
|
+
interface CustomersResource {
|
|
883
|
+
/** Lists the user's customer accounts. */
|
|
884
|
+
list(request?: {
|
|
885
|
+
/** V1 error format. */
|
|
886
|
+
"$.xgafv"?: string;
|
|
887
|
+
/** OAuth access token. */
|
|
888
|
+
access_token?: string;
|
|
889
|
+
/** Data format for response. */
|
|
890
|
+
alt?: string;
|
|
891
|
+
/** JSONP */
|
|
892
|
+
callback?: string;
|
|
893
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
894
|
+
fields?: string;
|
|
895
|
+
/** 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. */
|
|
896
|
+
key?: string;
|
|
897
|
+
/** OAuth 2.0 token for the current user. */
|
|
898
|
+
oauth_token?: string;
|
|
899
|
+
/** The maximum number of customers to show in a page of results. A number between 1 and 100 (inclusive). */
|
|
900
|
+
pageSize?: number;
|
|
901
|
+
/** A token specifying which result page to return. This field has custom validations in ListCustomersRequestValidator */
|
|
902
|
+
pageToken?: string;
|
|
903
|
+
/** Returns response with indentations and line breaks. */
|
|
904
|
+
prettyPrint?: boolean;
|
|
905
|
+
/** 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. */
|
|
906
|
+
quotaUser?: string;
|
|
907
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
908
|
+
upload_protocol?: string;
|
|
909
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
910
|
+
uploadType?: string;
|
|
911
|
+
}): Request<CustomerListCustomersResponse>;
|
|
912
|
+
configurations: ConfigurationsResource;
|
|
913
|
+
devices: DevicesResource;
|
|
914
|
+
dpcs: DpcsResource;
|
|
915
|
+
}
|
|
916
|
+
interface OperationsResource {
|
|
917
|
+
/** 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. */
|
|
918
|
+
get(request?: {
|
|
919
|
+
/** V1 error format. */
|
|
920
|
+
"$.xgafv"?: string;
|
|
921
|
+
/** OAuth access token. */
|
|
922
|
+
access_token?: string;
|
|
923
|
+
/** Data format for response. */
|
|
924
|
+
alt?: string;
|
|
925
|
+
/** JSONP */
|
|
926
|
+
callback?: string;
|
|
927
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
928
|
+
fields?: string;
|
|
929
|
+
/** 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. */
|
|
930
|
+
key?: string;
|
|
931
|
+
/** The name of the operation resource. */
|
|
932
|
+
name: string;
|
|
933
|
+
/** OAuth 2.0 token for the current user. */
|
|
934
|
+
oauth_token?: string;
|
|
935
|
+
/** Returns response with indentations and line breaks. */
|
|
936
|
+
prettyPrint?: boolean;
|
|
937
|
+
/** 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. */
|
|
938
|
+
quotaUser?: string;
|
|
939
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
940
|
+
upload_protocol?: string;
|
|
941
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
942
|
+
uploadType?: string;
|
|
943
|
+
}): Request<Operation>;
|
|
944
|
+
}
|
|
945
|
+
interface CustomersResource {
|
|
946
|
+
/**
|
|
947
|
+
* Creates a customer for zero-touch enrollment. After the method returns successfully, admin and owner roles can manage devices and EMM configs by calling API methods or using their
|
|
948
|
+
* zero-touch enrollment portal. The customer receives an email that welcomes them to zero-touch enrollment and explains how to sign into the portal.
|
|
949
|
+
*/
|
|
950
|
+
create(request: {
|
|
951
|
+
/** V1 error format. */
|
|
952
|
+
"$.xgafv"?: string;
|
|
953
|
+
/** OAuth access token. */
|
|
954
|
+
access_token?: string;
|
|
955
|
+
/** Data format for response. */
|
|
956
|
+
alt?: string;
|
|
957
|
+
/** JSONP */
|
|
958
|
+
callback?: string;
|
|
959
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
960
|
+
fields?: string;
|
|
961
|
+
/** 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. */
|
|
962
|
+
key?: string;
|
|
963
|
+
/** OAuth 2.0 token for the current user. */
|
|
964
|
+
oauth_token?: string;
|
|
965
|
+
/** Required. The parent resource ID in the format `partners/[PARTNER_ID]` that identifies the reseller. */
|
|
966
|
+
parent: string;
|
|
967
|
+
/** Returns response with indentations and line breaks. */
|
|
968
|
+
prettyPrint?: boolean;
|
|
969
|
+
/** 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. */
|
|
970
|
+
quotaUser?: string;
|
|
971
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
972
|
+
upload_protocol?: string;
|
|
973
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
974
|
+
uploadType?: string;
|
|
975
|
+
/** Request body */
|
|
976
|
+
resource: CreateCustomerRequest;
|
|
977
|
+
}): Request<Company>;
|
|
978
|
+
create(request: {
|
|
979
|
+
/** V1 error format. */
|
|
980
|
+
"$.xgafv"?: string;
|
|
981
|
+
/** OAuth access token. */
|
|
982
|
+
access_token?: string;
|
|
983
|
+
/** Data format for response. */
|
|
984
|
+
alt?: string;
|
|
985
|
+
/** JSONP */
|
|
986
|
+
callback?: string;
|
|
987
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
988
|
+
fields?: string;
|
|
989
|
+
/** 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. */
|
|
990
|
+
key?: string;
|
|
991
|
+
/** OAuth 2.0 token for the current user. */
|
|
992
|
+
oauth_token?: string;
|
|
993
|
+
/** Required. The parent resource ID in the format `partners/[PARTNER_ID]` that identifies the reseller. */
|
|
994
|
+
parent: string;
|
|
995
|
+
/** Returns response with indentations and line breaks. */
|
|
996
|
+
prettyPrint?: boolean;
|
|
997
|
+
/** 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. */
|
|
998
|
+
quotaUser?: string;
|
|
999
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1000
|
+
upload_protocol?: string;
|
|
1001
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1002
|
+
uploadType?: string;
|
|
1003
|
+
},
|
|
1004
|
+
body: CreateCustomerRequest): Request<Company>;
|
|
1005
|
+
/**
|
|
1006
|
+
* Lists the customers that are enrolled to the reseller identified by the `partnerId` argument. This list includes customers that the reseller created and customers that enrolled
|
|
1007
|
+
* themselves using the portal.
|
|
1008
|
+
*/
|
|
1009
|
+
list(request?: {
|
|
1010
|
+
/** V1 error format. */
|
|
1011
|
+
"$.xgafv"?: string;
|
|
1012
|
+
/** OAuth access token. */
|
|
1013
|
+
access_token?: string;
|
|
1014
|
+
/** Data format for response. */
|
|
1015
|
+
alt?: string;
|
|
1016
|
+
/** JSONP */
|
|
1017
|
+
callback?: string;
|
|
1018
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1019
|
+
fields?: string;
|
|
1020
|
+
/** 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. */
|
|
1021
|
+
key?: string;
|
|
1022
|
+
/** OAuth 2.0 token for the current user. */
|
|
1023
|
+
oauth_token?: string;
|
|
1024
|
+
/** The maximum number of results to be returned. If not specified or 0, all the records are returned. */
|
|
1025
|
+
pageSize?: number;
|
|
1026
|
+
/** A token identifying a page of results returned by the server. */
|
|
1027
|
+
pageToken?: string;
|
|
1028
|
+
/** Required. The ID of the reseller partner. */
|
|
1029
|
+
partnerId: string;
|
|
1030
|
+
/** Returns response with indentations and line breaks. */
|
|
1031
|
+
prettyPrint?: boolean;
|
|
1032
|
+
/** 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. */
|
|
1033
|
+
quotaUser?: string;
|
|
1034
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1035
|
+
upload_protocol?: string;
|
|
1036
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1037
|
+
uploadType?: string;
|
|
1038
|
+
}): Request<ListCustomersResponse>;
|
|
1039
|
+
}
|
|
1040
|
+
interface DevicesResource {
|
|
1041
|
+
/** Claims a device for a customer and adds it to zero-touch enrollment. If the device is already claimed by another customer, the call returns an error. */
|
|
1042
|
+
claim(request: {
|
|
1043
|
+
/** V1 error format. */
|
|
1044
|
+
"$.xgafv"?: string;
|
|
1045
|
+
/** OAuth access token. */
|
|
1046
|
+
access_token?: string;
|
|
1047
|
+
/** Data format for response. */
|
|
1048
|
+
alt?: string;
|
|
1049
|
+
/** JSONP */
|
|
1050
|
+
callback?: string;
|
|
1051
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1052
|
+
fields?: string;
|
|
1053
|
+
/** 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. */
|
|
1054
|
+
key?: string;
|
|
1055
|
+
/** OAuth 2.0 token for the current user. */
|
|
1056
|
+
oauth_token?: string;
|
|
1057
|
+
/** Required. The ID of the reseller partner. */
|
|
1058
|
+
partnerId: string;
|
|
1059
|
+
/** Returns response with indentations and line breaks. */
|
|
1060
|
+
prettyPrint?: boolean;
|
|
1061
|
+
/** 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. */
|
|
1062
|
+
quotaUser?: string;
|
|
1063
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1064
|
+
upload_protocol?: string;
|
|
1065
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1066
|
+
uploadType?: string;
|
|
1067
|
+
/** Request body */
|
|
1068
|
+
resource: ClaimDeviceRequest;
|
|
1069
|
+
}): Request<ClaimDeviceResponse>;
|
|
1070
|
+
claim(request: {
|
|
1071
|
+
/** V1 error format. */
|
|
1072
|
+
"$.xgafv"?: string;
|
|
1073
|
+
/** OAuth access token. */
|
|
1074
|
+
access_token?: string;
|
|
1075
|
+
/** Data format for response. */
|
|
1076
|
+
alt?: string;
|
|
1077
|
+
/** JSONP */
|
|
1078
|
+
callback?: string;
|
|
1079
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1080
|
+
fields?: string;
|
|
1081
|
+
/** 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. */
|
|
1082
|
+
key?: string;
|
|
1083
|
+
/** OAuth 2.0 token for the current user. */
|
|
1084
|
+
oauth_token?: string;
|
|
1085
|
+
/** Required. The ID of the reseller partner. */
|
|
1086
|
+
partnerId: string;
|
|
1087
|
+
/** Returns response with indentations and line breaks. */
|
|
1088
|
+
prettyPrint?: boolean;
|
|
1089
|
+
/** 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. */
|
|
1090
|
+
quotaUser?: string;
|
|
1091
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1092
|
+
upload_protocol?: string;
|
|
1093
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1094
|
+
uploadType?: string;
|
|
1095
|
+
},
|
|
1096
|
+
body: ClaimDeviceRequest): Request<ClaimDeviceResponse>;
|
|
1097
|
+
/**
|
|
1098
|
+
* Claims a batch of devices for a customer asynchronously. Adds the devices to zero-touch enrollment. To learn more, read [Long‑running batch
|
|
1099
|
+
* operations](/zero-touch/guides/how-it-works#operations).
|
|
1100
|
+
*/
|
|
1101
|
+
claimAsync(request: {
|
|
1102
|
+
/** V1 error format. */
|
|
1103
|
+
"$.xgafv"?: string;
|
|
1104
|
+
/** OAuth access token. */
|
|
1105
|
+
access_token?: string;
|
|
1106
|
+
/** Data format for response. */
|
|
1107
|
+
alt?: string;
|
|
1108
|
+
/** JSONP */
|
|
1109
|
+
callback?: string;
|
|
1110
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1111
|
+
fields?: string;
|
|
1112
|
+
/** 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. */
|
|
1113
|
+
key?: string;
|
|
1114
|
+
/** OAuth 2.0 token for the current user. */
|
|
1115
|
+
oauth_token?: string;
|
|
1116
|
+
/** Required. The ID of the reseller partner. */
|
|
1117
|
+
partnerId: string;
|
|
1118
|
+
/** Returns response with indentations and line breaks. */
|
|
1119
|
+
prettyPrint?: boolean;
|
|
1120
|
+
/** 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. */
|
|
1121
|
+
quotaUser?: string;
|
|
1122
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1123
|
+
upload_protocol?: string;
|
|
1124
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1125
|
+
uploadType?: string;
|
|
1126
|
+
/** Request body */
|
|
1127
|
+
resource: ClaimDevicesRequest;
|
|
1128
|
+
}): Request<Operation>;
|
|
1129
|
+
claimAsync(request: {
|
|
1130
|
+
/** V1 error format. */
|
|
1131
|
+
"$.xgafv"?: string;
|
|
1132
|
+
/** OAuth access token. */
|
|
1133
|
+
access_token?: string;
|
|
1134
|
+
/** Data format for response. */
|
|
1135
|
+
alt?: string;
|
|
1136
|
+
/** JSONP */
|
|
1137
|
+
callback?: string;
|
|
1138
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1139
|
+
fields?: string;
|
|
1140
|
+
/** 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. */
|
|
1141
|
+
key?: string;
|
|
1142
|
+
/** OAuth 2.0 token for the current user. */
|
|
1143
|
+
oauth_token?: string;
|
|
1144
|
+
/** Required. The ID of the reseller partner. */
|
|
1145
|
+
partnerId: string;
|
|
1146
|
+
/** Returns response with indentations and line breaks. */
|
|
1147
|
+
prettyPrint?: boolean;
|
|
1148
|
+
/** 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. */
|
|
1149
|
+
quotaUser?: string;
|
|
1150
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1151
|
+
upload_protocol?: string;
|
|
1152
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1153
|
+
uploadType?: string;
|
|
1154
|
+
},
|
|
1155
|
+
body: ClaimDevicesRequest): Request<Operation>;
|
|
1156
|
+
/** Finds devices by hardware identifiers, such as IMEI. */
|
|
1157
|
+
findByIdentifier(request: {
|
|
1158
|
+
/** V1 error format. */
|
|
1159
|
+
"$.xgafv"?: string;
|
|
1160
|
+
/** OAuth access token. */
|
|
1161
|
+
access_token?: string;
|
|
1162
|
+
/** Data format for response. */
|
|
1163
|
+
alt?: string;
|
|
1164
|
+
/** JSONP */
|
|
1165
|
+
callback?: string;
|
|
1166
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1167
|
+
fields?: string;
|
|
1168
|
+
/** 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. */
|
|
1169
|
+
key?: string;
|
|
1170
|
+
/** OAuth 2.0 token for the current user. */
|
|
1171
|
+
oauth_token?: string;
|
|
1172
|
+
/** Required. The ID of the reseller partner. */
|
|
1173
|
+
partnerId: string;
|
|
1174
|
+
/** Returns response with indentations and line breaks. */
|
|
1175
|
+
prettyPrint?: boolean;
|
|
1176
|
+
/** 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. */
|
|
1177
|
+
quotaUser?: string;
|
|
1178
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1179
|
+
upload_protocol?: string;
|
|
1180
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1181
|
+
uploadType?: string;
|
|
1182
|
+
/** Request body */
|
|
1183
|
+
resource: FindDevicesByDeviceIdentifierRequest;
|
|
1184
|
+
}): Request<FindDevicesByDeviceIdentifierResponse>;
|
|
1185
|
+
findByIdentifier(request: {
|
|
1186
|
+
/** V1 error format. */
|
|
1187
|
+
"$.xgafv"?: string;
|
|
1188
|
+
/** OAuth access token. */
|
|
1189
|
+
access_token?: string;
|
|
1190
|
+
/** Data format for response. */
|
|
1191
|
+
alt?: string;
|
|
1192
|
+
/** JSONP */
|
|
1193
|
+
callback?: string;
|
|
1194
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1195
|
+
fields?: string;
|
|
1196
|
+
/** 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. */
|
|
1197
|
+
key?: string;
|
|
1198
|
+
/** OAuth 2.0 token for the current user. */
|
|
1199
|
+
oauth_token?: string;
|
|
1200
|
+
/** Required. The ID of the reseller partner. */
|
|
1201
|
+
partnerId: string;
|
|
1202
|
+
/** Returns response with indentations and line breaks. */
|
|
1203
|
+
prettyPrint?: boolean;
|
|
1204
|
+
/** 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. */
|
|
1205
|
+
quotaUser?: string;
|
|
1206
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1207
|
+
upload_protocol?: string;
|
|
1208
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1209
|
+
uploadType?: string;
|
|
1210
|
+
},
|
|
1211
|
+
body: FindDevicesByDeviceIdentifierRequest): Request<FindDevicesByDeviceIdentifierResponse>;
|
|
1212
|
+
/**
|
|
1213
|
+
* Finds devices claimed for customers. The results only contain devices registered to the reseller that's identified by the `partnerId` argument. The customer's devices purchased from
|
|
1214
|
+
* other resellers don't appear in the results.
|
|
1215
|
+
*/
|
|
1216
|
+
findByOwner(request: {
|
|
1217
|
+
/** V1 error format. */
|
|
1218
|
+
"$.xgafv"?: string;
|
|
1219
|
+
/** OAuth access token. */
|
|
1220
|
+
access_token?: string;
|
|
1221
|
+
/** Data format for response. */
|
|
1222
|
+
alt?: string;
|
|
1223
|
+
/** JSONP */
|
|
1224
|
+
callback?: string;
|
|
1225
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1226
|
+
fields?: string;
|
|
1227
|
+
/** 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. */
|
|
1228
|
+
key?: string;
|
|
1229
|
+
/** OAuth 2.0 token for the current user. */
|
|
1230
|
+
oauth_token?: string;
|
|
1231
|
+
/** Required. The ID of the reseller partner. */
|
|
1232
|
+
partnerId: string;
|
|
1233
|
+
/** Returns response with indentations and line breaks. */
|
|
1234
|
+
prettyPrint?: boolean;
|
|
1235
|
+
/** 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. */
|
|
1236
|
+
quotaUser?: string;
|
|
1237
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1238
|
+
upload_protocol?: string;
|
|
1239
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1240
|
+
uploadType?: string;
|
|
1241
|
+
/** Request body */
|
|
1242
|
+
resource: FindDevicesByOwnerRequest;
|
|
1243
|
+
}): Request<FindDevicesByOwnerResponse>;
|
|
1244
|
+
findByOwner(request: {
|
|
1245
|
+
/** V1 error format. */
|
|
1246
|
+
"$.xgafv"?: string;
|
|
1247
|
+
/** OAuth access token. */
|
|
1248
|
+
access_token?: string;
|
|
1249
|
+
/** Data format for response. */
|
|
1250
|
+
alt?: string;
|
|
1251
|
+
/** JSONP */
|
|
1252
|
+
callback?: string;
|
|
1253
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1254
|
+
fields?: string;
|
|
1255
|
+
/** 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. */
|
|
1256
|
+
key?: string;
|
|
1257
|
+
/** OAuth 2.0 token for the current user. */
|
|
1258
|
+
oauth_token?: string;
|
|
1259
|
+
/** Required. The ID of the reseller partner. */
|
|
1260
|
+
partnerId: string;
|
|
1261
|
+
/** Returns response with indentations and line breaks. */
|
|
1262
|
+
prettyPrint?: boolean;
|
|
1263
|
+
/** 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. */
|
|
1264
|
+
quotaUser?: string;
|
|
1265
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1266
|
+
upload_protocol?: string;
|
|
1267
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1268
|
+
uploadType?: string;
|
|
1269
|
+
},
|
|
1270
|
+
body: FindDevicesByOwnerRequest): Request<FindDevicesByOwnerResponse>;
|
|
1271
|
+
/** Gets a device. */
|
|
1272
|
+
get(request?: {
|
|
1273
|
+
/** V1 error format. */
|
|
1274
|
+
"$.xgafv"?: string;
|
|
1275
|
+
/** OAuth access token. */
|
|
1276
|
+
access_token?: string;
|
|
1277
|
+
/** Data format for response. */
|
|
1278
|
+
alt?: string;
|
|
1279
|
+
/** JSONP */
|
|
1280
|
+
callback?: string;
|
|
1281
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1282
|
+
fields?: string;
|
|
1283
|
+
/** 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. */
|
|
1284
|
+
key?: string;
|
|
1285
|
+
/** Required. The device API resource name in the format `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. */
|
|
1286
|
+
name: string;
|
|
1287
|
+
/** OAuth 2.0 token for the current user. */
|
|
1288
|
+
oauth_token?: string;
|
|
1289
|
+
/** Returns response with indentations and line breaks. */
|
|
1290
|
+
prettyPrint?: boolean;
|
|
1291
|
+
/** 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. */
|
|
1292
|
+
quotaUser?: string;
|
|
1293
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1294
|
+
upload_protocol?: string;
|
|
1295
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1296
|
+
uploadType?: string;
|
|
1297
|
+
}): Request<Device>;
|
|
1298
|
+
/** Updates reseller metadata associated with the device. */
|
|
1299
|
+
metadata(request: {
|
|
1300
|
+
/** V1 error format. */
|
|
1301
|
+
"$.xgafv"?: string;
|
|
1302
|
+
/** OAuth access token. */
|
|
1303
|
+
access_token?: string;
|
|
1304
|
+
/** Data format for response. */
|
|
1305
|
+
alt?: string;
|
|
1306
|
+
/** JSONP */
|
|
1307
|
+
callback?: string;
|
|
1308
|
+
/** Required. The ID of the device. */
|
|
1309
|
+
deviceId: string;
|
|
1310
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1311
|
+
fields?: string;
|
|
1312
|
+
/** 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. */
|
|
1313
|
+
key?: string;
|
|
1314
|
+
/** Required. The owner of the newly set metadata. Set this to the partner ID. */
|
|
1315
|
+
metadataOwnerId: string;
|
|
1316
|
+
/** OAuth 2.0 token for the current user. */
|
|
1317
|
+
oauth_token?: string;
|
|
1318
|
+
/** Returns response with indentations and line breaks. */
|
|
1319
|
+
prettyPrint?: boolean;
|
|
1320
|
+
/** 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. */
|
|
1321
|
+
quotaUser?: string;
|
|
1322
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1323
|
+
upload_protocol?: string;
|
|
1324
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1325
|
+
uploadType?: string;
|
|
1326
|
+
/** Request body */
|
|
1327
|
+
resource: UpdateDeviceMetadataRequest;
|
|
1328
|
+
}): Request<DeviceMetadata>;
|
|
1329
|
+
metadata(request: {
|
|
1330
|
+
/** V1 error format. */
|
|
1331
|
+
"$.xgafv"?: string;
|
|
1332
|
+
/** OAuth access token. */
|
|
1333
|
+
access_token?: string;
|
|
1334
|
+
/** Data format for response. */
|
|
1335
|
+
alt?: string;
|
|
1336
|
+
/** JSONP */
|
|
1337
|
+
callback?: string;
|
|
1338
|
+
/** Required. The ID of the device. */
|
|
1339
|
+
deviceId: string;
|
|
1340
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1341
|
+
fields?: string;
|
|
1342
|
+
/** 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. */
|
|
1343
|
+
key?: string;
|
|
1344
|
+
/** Required. The owner of the newly set metadata. Set this to the partner ID. */
|
|
1345
|
+
metadataOwnerId: string;
|
|
1346
|
+
/** OAuth 2.0 token for the current user. */
|
|
1347
|
+
oauth_token?: string;
|
|
1348
|
+
/** Returns response with indentations and line breaks. */
|
|
1349
|
+
prettyPrint?: boolean;
|
|
1350
|
+
/** 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. */
|
|
1351
|
+
quotaUser?: string;
|
|
1352
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1353
|
+
upload_protocol?: string;
|
|
1354
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1355
|
+
uploadType?: string;
|
|
1356
|
+
},
|
|
1357
|
+
body: UpdateDeviceMetadataRequest): Request<DeviceMetadata>;
|
|
1358
|
+
/** Unclaims a device from a customer and removes it from zero-touch enrollment. */
|
|
1359
|
+
unclaim(request: {
|
|
1360
|
+
/** V1 error format. */
|
|
1361
|
+
"$.xgafv"?: string;
|
|
1362
|
+
/** OAuth access token. */
|
|
1363
|
+
access_token?: string;
|
|
1364
|
+
/** Data format for response. */
|
|
1365
|
+
alt?: string;
|
|
1366
|
+
/** JSONP */
|
|
1367
|
+
callback?: string;
|
|
1368
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1369
|
+
fields?: string;
|
|
1370
|
+
/** 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. */
|
|
1371
|
+
key?: string;
|
|
1372
|
+
/** OAuth 2.0 token for the current user. */
|
|
1373
|
+
oauth_token?: string;
|
|
1374
|
+
/** Required. The ID of the reseller partner. */
|
|
1375
|
+
partnerId: string;
|
|
1376
|
+
/** Returns response with indentations and line breaks. */
|
|
1377
|
+
prettyPrint?: boolean;
|
|
1378
|
+
/** 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. */
|
|
1379
|
+
quotaUser?: string;
|
|
1380
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1381
|
+
upload_protocol?: string;
|
|
1382
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1383
|
+
uploadType?: string;
|
|
1384
|
+
/** Request body */
|
|
1385
|
+
resource: UnclaimDeviceRequest;
|
|
1386
|
+
}): Request<{}>;
|
|
1387
|
+
unclaim(request: {
|
|
1388
|
+
/** V1 error format. */
|
|
1389
|
+
"$.xgafv"?: string;
|
|
1390
|
+
/** OAuth access token. */
|
|
1391
|
+
access_token?: string;
|
|
1392
|
+
/** Data format for response. */
|
|
1393
|
+
alt?: string;
|
|
1394
|
+
/** JSONP */
|
|
1395
|
+
callback?: string;
|
|
1396
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1397
|
+
fields?: string;
|
|
1398
|
+
/** 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. */
|
|
1399
|
+
key?: string;
|
|
1400
|
+
/** OAuth 2.0 token for the current user. */
|
|
1401
|
+
oauth_token?: string;
|
|
1402
|
+
/** Required. The ID of the reseller partner. */
|
|
1403
|
+
partnerId: string;
|
|
1404
|
+
/** Returns response with indentations and line breaks. */
|
|
1405
|
+
prettyPrint?: boolean;
|
|
1406
|
+
/** 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. */
|
|
1407
|
+
quotaUser?: string;
|
|
1408
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1409
|
+
upload_protocol?: string;
|
|
1410
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1411
|
+
uploadType?: string;
|
|
1412
|
+
},
|
|
1413
|
+
body: UnclaimDeviceRequest): Request<{}>;
|
|
1414
|
+
/**
|
|
1415
|
+
* Unclaims a batch of devices for a customer asynchronously. Removes the devices from zero-touch enrollment. To learn more, read [Long‑running batch
|
|
1416
|
+
* operations](/zero-touch/guides/how-it-works#operations).
|
|
1417
|
+
*/
|
|
1418
|
+
unclaimAsync(request: {
|
|
1419
|
+
/** V1 error format. */
|
|
1420
|
+
"$.xgafv"?: string;
|
|
1421
|
+
/** OAuth access token. */
|
|
1422
|
+
access_token?: string;
|
|
1423
|
+
/** Data format for response. */
|
|
1424
|
+
alt?: string;
|
|
1425
|
+
/** JSONP */
|
|
1426
|
+
callback?: string;
|
|
1427
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1428
|
+
fields?: string;
|
|
1429
|
+
/** 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. */
|
|
1430
|
+
key?: string;
|
|
1431
|
+
/** OAuth 2.0 token for the current user. */
|
|
1432
|
+
oauth_token?: string;
|
|
1433
|
+
/** Required. The reseller partner ID. */
|
|
1434
|
+
partnerId: string;
|
|
1435
|
+
/** Returns response with indentations and line breaks. */
|
|
1436
|
+
prettyPrint?: boolean;
|
|
1437
|
+
/** 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. */
|
|
1438
|
+
quotaUser?: string;
|
|
1439
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1440
|
+
upload_protocol?: string;
|
|
1441
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1442
|
+
uploadType?: string;
|
|
1443
|
+
/** Request body */
|
|
1444
|
+
resource: UnclaimDevicesRequest;
|
|
1445
|
+
}): Request<Operation>;
|
|
1446
|
+
unclaimAsync(request: {
|
|
1447
|
+
/** V1 error format. */
|
|
1448
|
+
"$.xgafv"?: string;
|
|
1449
|
+
/** OAuth access token. */
|
|
1450
|
+
access_token?: string;
|
|
1451
|
+
/** Data format for response. */
|
|
1452
|
+
alt?: string;
|
|
1453
|
+
/** JSONP */
|
|
1454
|
+
callback?: string;
|
|
1455
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1456
|
+
fields?: string;
|
|
1457
|
+
/** 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. */
|
|
1458
|
+
key?: string;
|
|
1459
|
+
/** OAuth 2.0 token for the current user. */
|
|
1460
|
+
oauth_token?: string;
|
|
1461
|
+
/** Required. The reseller partner ID. */
|
|
1462
|
+
partnerId: string;
|
|
1463
|
+
/** Returns response with indentations and line breaks. */
|
|
1464
|
+
prettyPrint?: boolean;
|
|
1465
|
+
/** 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. */
|
|
1466
|
+
quotaUser?: string;
|
|
1467
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1468
|
+
upload_protocol?: string;
|
|
1469
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1470
|
+
uploadType?: string;
|
|
1471
|
+
},
|
|
1472
|
+
body: UnclaimDevicesRequest): Request<Operation>;
|
|
1473
|
+
/**
|
|
1474
|
+
* Updates the reseller metadata attached to a batch of devices. This method updates devices asynchronously and returns an `Operation` that can be used to track progress. Read
|
|
1475
|
+
* [Long‑running batch operations](/zero-touch/guides/how-it-works#operations).
|
|
1476
|
+
*/
|
|
1477
|
+
updateMetadataAsync(request: {
|
|
1478
|
+
/** V1 error format. */
|
|
1479
|
+
"$.xgafv"?: string;
|
|
1480
|
+
/** OAuth access token. */
|
|
1481
|
+
access_token?: string;
|
|
1482
|
+
/** Data format for response. */
|
|
1483
|
+
alt?: string;
|
|
1484
|
+
/** JSONP */
|
|
1485
|
+
callback?: string;
|
|
1486
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1487
|
+
fields?: string;
|
|
1488
|
+
/** 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. */
|
|
1489
|
+
key?: string;
|
|
1490
|
+
/** OAuth 2.0 token for the current user. */
|
|
1491
|
+
oauth_token?: string;
|
|
1492
|
+
/** Required. The reseller partner ID. */
|
|
1493
|
+
partnerId: string;
|
|
1494
|
+
/** Returns response with indentations and line breaks. */
|
|
1495
|
+
prettyPrint?: boolean;
|
|
1496
|
+
/** 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. */
|
|
1497
|
+
quotaUser?: string;
|
|
1498
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1499
|
+
upload_protocol?: string;
|
|
1500
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1501
|
+
uploadType?: string;
|
|
1502
|
+
/** Request body */
|
|
1503
|
+
resource: UpdateDeviceMetadataInBatchRequest;
|
|
1504
|
+
}): Request<Operation>;
|
|
1505
|
+
updateMetadataAsync(request: {
|
|
1506
|
+
/** V1 error format. */
|
|
1507
|
+
"$.xgafv"?: string;
|
|
1508
|
+
/** OAuth access token. */
|
|
1509
|
+
access_token?: string;
|
|
1510
|
+
/** Data format for response. */
|
|
1511
|
+
alt?: string;
|
|
1512
|
+
/** JSONP */
|
|
1513
|
+
callback?: string;
|
|
1514
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1515
|
+
fields?: string;
|
|
1516
|
+
/** 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. */
|
|
1517
|
+
key?: string;
|
|
1518
|
+
/** OAuth 2.0 token for the current user. */
|
|
1519
|
+
oauth_token?: string;
|
|
1520
|
+
/** Required. The reseller partner ID. */
|
|
1521
|
+
partnerId: string;
|
|
1522
|
+
/** Returns response with indentations and line breaks. */
|
|
1523
|
+
prettyPrint?: boolean;
|
|
1524
|
+
/** 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. */
|
|
1525
|
+
quotaUser?: string;
|
|
1526
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1527
|
+
upload_protocol?: string;
|
|
1528
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1529
|
+
uploadType?: string;
|
|
1530
|
+
},
|
|
1531
|
+
body: UpdateDeviceMetadataInBatchRequest): Request<Operation>;
|
|
1532
|
+
}
|
|
1533
|
+
interface CustomersResource {
|
|
1534
|
+
/** Lists the customers of the vendor. */
|
|
1535
|
+
list(request?: {
|
|
1536
|
+
/** V1 error format. */
|
|
1537
|
+
"$.xgafv"?: string;
|
|
1538
|
+
/** OAuth access token. */
|
|
1539
|
+
access_token?: string;
|
|
1540
|
+
/** Data format for response. */
|
|
1541
|
+
alt?: string;
|
|
1542
|
+
/** JSONP */
|
|
1543
|
+
callback?: string;
|
|
1544
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1545
|
+
fields?: string;
|
|
1546
|
+
/** 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. */
|
|
1547
|
+
key?: string;
|
|
1548
|
+
/** OAuth 2.0 token for the current user. */
|
|
1549
|
+
oauth_token?: string;
|
|
1550
|
+
/** The maximum number of results to be returned. */
|
|
1551
|
+
pageSize?: number;
|
|
1552
|
+
/** A token identifying a page of results returned by the server. */
|
|
1553
|
+
pageToken?: string;
|
|
1554
|
+
/** Required. The resource name in the format `partners/[PARTNER_ID]/vendors/[VENDOR_ID]`. */
|
|
1555
|
+
parent: string;
|
|
1556
|
+
/** Returns response with indentations and line breaks. */
|
|
1557
|
+
prettyPrint?: boolean;
|
|
1558
|
+
/** 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. */
|
|
1559
|
+
quotaUser?: string;
|
|
1560
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1561
|
+
upload_protocol?: string;
|
|
1562
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1563
|
+
uploadType?: string;
|
|
1564
|
+
}): Request<ListVendorCustomersResponse>;
|
|
1565
|
+
}
|
|
1566
|
+
interface VendorsResource {
|
|
1567
|
+
/** Lists the vendors of the partner. */
|
|
1568
|
+
list(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
|
+
/** OAuth 2.0 token for the current user. */
|
|
1582
|
+
oauth_token?: string;
|
|
1583
|
+
/** The maximum number of results to be returned. */
|
|
1584
|
+
pageSize?: number;
|
|
1585
|
+
/** A token identifying a page of results returned by the server. */
|
|
1586
|
+
pageToken?: string;
|
|
1587
|
+
/** Required. The resource name in the format `partners/[PARTNER_ID]`. */
|
|
1588
|
+
parent: string;
|
|
1589
|
+
/** Returns response with indentations and line breaks. */
|
|
1590
|
+
prettyPrint?: boolean;
|
|
1591
|
+
/** 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. */
|
|
1592
|
+
quotaUser?: string;
|
|
1593
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1594
|
+
upload_protocol?: string;
|
|
1595
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1596
|
+
uploadType?: string;
|
|
1597
|
+
}): Request<ListVendorsResponse>;
|
|
1598
|
+
customers: CustomersResource;
|
|
1599
|
+
}
|
|
1600
|
+
interface PartnersResource {
|
|
1601
|
+
customers: CustomersResource;
|
|
1602
|
+
devices: DevicesResource;
|
|
1603
|
+
vendors: VendorsResource;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
const customers: CustomersResource;
|
|
1607
|
+
|
|
1608
|
+
const operations: OperationsResource;
|
|
1609
|
+
|
|
1610
|
+
const partners: PartnersResource;
|
|
1611
|
+
}
|
|
1612
|
+
}
|