google-api-client 0.18.1 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +32 -0
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +349 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +153 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +412 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +75 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +22 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +56 -0
- data/generated/google/apis/bigquery_v2/representations.rb +20 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +15 -4
- data/generated/google/apis/calendar_v3/representations.rb +1 -0
- data/generated/google/apis/calendar_v3/service.rb +8 -4
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +9 -2
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +3 -3
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +8 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +19 -18
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +2 -2
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +256 -63
- data/generated/google/apis/compute_alpha/representations.rb +44 -1
- data/generated/google/apis/compute_alpha/service.rb +217 -2
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +776 -46
- data/generated/google/apis/compute_beta/representations.rb +254 -0
- data/generated/google/apis/compute_beta/service.rb +1070 -13
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +83 -46
- data/generated/google/apis/compute_v1/service.rb +4 -2
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +52 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +19 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +31 -11
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +70 -4
- data/generated/google/apis/dlp_v2beta1/representations.rb +1 -0
- data/generated/google/apis/dlp_v2beta2.rb +1 -1
- data/generated/google/apis/dlp_v2beta2/classes.rb +124 -30
- data/generated/google/apis/dlp_v2beta2/representations.rb +2 -0
- data/generated/google/apis/dlp_v2beta2/service.rb +14 -10
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +0 -56
- data/generated/google/apis/iam_v1/representations.rb +0 -18
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +8 -6
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +8 -6
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +22 -5
- data/generated/google/apis/ml_v1/service.rb +19 -5
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +2 -2
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +10 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +6 -5
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +6 -5
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +283 -0
- data/generated/google/apis/sheets_v4/representations.rb +90 -0
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +115 -4
- data/generated/google/apis/storage_v1/representations.rb +23 -0
- data/generated/google/apis/storage_v1/service.rb +44 -1
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +11 -4
- data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -6
- data/generated/google/apis/consumersurveys_v2.rb +0 -40
- data/generated/google/apis/consumersurveys_v2/classes.rb +0 -736
- data/generated/google/apis/consumersurveys_v2/representations.rb +0 -343
- data/generated/google/apis/consumersurveys_v2/service.rb +0 -478
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e0adcf383f70db56325a505ef6a69879cc2d3ab0
|
|
4
|
+
data.tar.gz: 912b04bfbc3209e4f5d1969e24b9940ea6137c83
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5aef5f589f90ad67402f8c1c150843252c0235ee94d45706d16b10e845a4df0b415814e249635ed4fe0ed270601a9a1db12d9b4add9a23988a7f5d0233194af8
|
|
7
|
+
data.tar.gz: 9fe9e813e67eadd9ca060733bfd33a103af772c32c46063d7ab688a8c8fa48393784dd65b611985f1c651bed553676ca3cf51ec8def2283e3a73b2d1fe6727d8
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
# 0.19.0
|
|
2
|
+
* Breaking changes:
|
|
3
|
+
* Deleted `consumersurveys_v2`
|
|
4
|
+
* Backwards compatible changes:
|
|
5
|
+
* Updated `androiddeviceprovisioning_v1`
|
|
6
|
+
* Updated `androidmanagement_v1`
|
|
7
|
+
* Updated `bigquery_v2`
|
|
8
|
+
* Updated `calendar_v3`
|
|
9
|
+
* Updated `cloudfunctions_v1`
|
|
10
|
+
* Updated `cloudfunctions_v1beta2`
|
|
11
|
+
* Updated `cloudtasks_v2beta2`
|
|
12
|
+
* Updated `compute_alpha`
|
|
13
|
+
* Updated `compute_beta`
|
|
14
|
+
* Updated `compute_v1`
|
|
15
|
+
* Updated `deploymentmanager_alpha`
|
|
16
|
+
* Updated `dialogflow_v2beta1`
|
|
17
|
+
* Updated `dlp_v2beta1`
|
|
18
|
+
* Updated `dlp_v2beta2`
|
|
19
|
+
* Updated `iam_v1`
|
|
20
|
+
* Updated `logging_v2`
|
|
21
|
+
* Updated `logging_v2beta1`
|
|
22
|
+
* Updated `ml_v1`
|
|
23
|
+
* Updated `runtimeconfig_v1beta1`
|
|
24
|
+
* Updated `servicecontrol_v1`
|
|
25
|
+
* Updated `servicemanagement_v1`
|
|
26
|
+
* Updated `serviceuser_v1`
|
|
27
|
+
* Updated `sheets_v4`
|
|
28
|
+
* Updated `speech_v1`
|
|
29
|
+
* Updated `storage_v1`
|
|
30
|
+
* Updated `tpu_v1alpha1`
|
|
31
|
+
* Updated `youtube_partner_v1`
|
|
32
|
+
|
|
1
33
|
# 0.18.1
|
|
2
34
|
* Backwards compatible changes:
|
|
3
35
|
* Added `cloudshell_v1`
|
|
@@ -149,6 +149,106 @@ module Google
|
|
|
149
149
|
end
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
+
# A configuration collects the provisioning options for Android devices. Each
|
|
153
|
+
# configuration combines the following:
|
|
154
|
+
# * The EMM device policy controller (DPC) installed on the devices.
|
|
155
|
+
# * EMM policies enforced on the devices.
|
|
156
|
+
# * Metadata displayed on the device to help users during setup.
|
|
157
|
+
# Customers can add as many configurations as they need. However, zero-touch
|
|
158
|
+
# enrollment works best when a customer sets a default configuration that's
|
|
159
|
+
# applied to any new devices the organization purchases.
|
|
160
|
+
class Configuration
|
|
161
|
+
include Google::Apis::Core::Hashable
|
|
162
|
+
|
|
163
|
+
# Required. The name of the organization. Zero-touch enrollment shows this
|
|
164
|
+
# organization name to device users during device provisioning.
|
|
165
|
+
# Corresponds to the JSON property `companyName`
|
|
166
|
+
# @return [String]
|
|
167
|
+
attr_accessor :company_name
|
|
168
|
+
|
|
169
|
+
# Output only. The ID of the configuration. Assigned by the server.
|
|
170
|
+
# Corresponds to the JSON property `configurationId`
|
|
171
|
+
# @return [Fixnum]
|
|
172
|
+
attr_accessor :configuration_id
|
|
173
|
+
|
|
174
|
+
# Required. A short name that describes the configuration's purpose. For
|
|
175
|
+
# example, _Sales team_ or _Temporary employees_. The zero-touch enrollment
|
|
176
|
+
# portal displays this name to IT admins.
|
|
177
|
+
# Corresponds to the JSON property `configurationName`
|
|
178
|
+
# @return [String]
|
|
179
|
+
attr_accessor :configuration_name
|
|
180
|
+
|
|
181
|
+
# Required. The email address that device users can contact to get help.
|
|
182
|
+
# Zero-touch enrollment shows this email address to device users before
|
|
183
|
+
# device provisioning. The value is validated on input.
|
|
184
|
+
# Corresponds to the JSON property `contactEmail`
|
|
185
|
+
# @return [String]
|
|
186
|
+
attr_accessor :contact_email
|
|
187
|
+
|
|
188
|
+
# Required. The telephone number that device users can call, using another
|
|
189
|
+
# device, to get help. Zero-touch enrollment shows this number to device
|
|
190
|
+
# users before device provisioning. Accepts numerals, spaces, the plus sign,
|
|
191
|
+
# hyphens, and parentheses.
|
|
192
|
+
# Corresponds to the JSON property `contactPhone`
|
|
193
|
+
# @return [String]
|
|
194
|
+
attr_accessor :contact_phone
|
|
195
|
+
|
|
196
|
+
# A message, containing one or two sentences, to help device users get help
|
|
197
|
+
# or give them more details about what’s happening to their device.
|
|
198
|
+
# Zero-touch enrollment shows this message before the device is provisioned.
|
|
199
|
+
# Corresponds to the JSON property `customMessage`
|
|
200
|
+
# @return [String]
|
|
201
|
+
attr_accessor :custom_message
|
|
202
|
+
|
|
203
|
+
# The JSON-formatted EMM provisioning extras that are passed to the DPC.
|
|
204
|
+
# Corresponds to the JSON property `dpcExtras`
|
|
205
|
+
# @return [String]
|
|
206
|
+
attr_accessor :dpc_extras
|
|
207
|
+
|
|
208
|
+
# Required. The resource name of the selected DPC (device policy controller)
|
|
209
|
+
# in the format `customers/[CUSTOMER_ID]/dpcs/*`. To list the supported DPCs,
|
|
210
|
+
# call
|
|
211
|
+
# `customers.dpcs.list`.
|
|
212
|
+
# Corresponds to the JSON property `dpcResourcePath`
|
|
213
|
+
# @return [String]
|
|
214
|
+
attr_accessor :dpc_resource_path
|
|
215
|
+
|
|
216
|
+
# Required. Whether this is the default configuration that zero-touch
|
|
217
|
+
# enrollment applies to any new devices the organization purchases in the
|
|
218
|
+
# future. Only one customer configuration can be the default. Setting this
|
|
219
|
+
# value to `true`, changes the previous default configuration's `isDefault`
|
|
220
|
+
# value to `false`.
|
|
221
|
+
# Corresponds to the JSON property `isDefault`
|
|
222
|
+
# @return [Boolean]
|
|
223
|
+
attr_accessor :is_default
|
|
224
|
+
alias_method :is_default?, :is_default
|
|
225
|
+
|
|
226
|
+
# Output only. The API resource name in the format
|
|
227
|
+
# `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. Assigned by
|
|
228
|
+
# the server.
|
|
229
|
+
# Corresponds to the JSON property `name`
|
|
230
|
+
# @return [String]
|
|
231
|
+
attr_accessor :name
|
|
232
|
+
|
|
233
|
+
def initialize(**args)
|
|
234
|
+
update!(**args)
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Update properties of this object
|
|
238
|
+
def update!(**args)
|
|
239
|
+
@company_name = args[:company_name] if args.key?(:company_name)
|
|
240
|
+
@configuration_id = args[:configuration_id] if args.key?(:configuration_id)
|
|
241
|
+
@configuration_name = args[:configuration_name] if args.key?(:configuration_name)
|
|
242
|
+
@contact_email = args[:contact_email] if args.key?(:contact_email)
|
|
243
|
+
@contact_phone = args[:contact_phone] if args.key?(:contact_phone)
|
|
244
|
+
@custom_message = args[:custom_message] if args.key?(:custom_message)
|
|
245
|
+
@dpc_extras = args[:dpc_extras] if args.key?(:dpc_extras)
|
|
246
|
+
@dpc_resource_path = args[:dpc_resource_path] if args.key?(:dpc_resource_path)
|
|
247
|
+
@is_default = args[:is_default] if args.key?(:is_default)
|
|
248
|
+
@name = args[:name] if args.key?(:name)
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
|
|
152
252
|
# Request message to create a customer.
|
|
153
253
|
class CreateCustomerRequest
|
|
154
254
|
include Google::Apis::Core::Hashable
|
|
@@ -168,6 +268,182 @@ module Google
|
|
|
168
268
|
end
|
|
169
269
|
end
|
|
170
270
|
|
|
271
|
+
# Request message for customer to assign a configuration to device.
|
|
272
|
+
class CustomerApplyConfigurationRequest
|
|
273
|
+
include Google::Apis::Core::Hashable
|
|
274
|
+
|
|
275
|
+
# Required. The configuration applied to the device in the format
|
|
276
|
+
# `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`.
|
|
277
|
+
# Corresponds to the JSON property `configuration`
|
|
278
|
+
# @return [String]
|
|
279
|
+
attr_accessor :configuration
|
|
280
|
+
|
|
281
|
+
# A `DeviceReference` is an API abstraction that lets you supply a _device_
|
|
282
|
+
# argument to a method using one of the following identifier types:
|
|
283
|
+
# * A numeric API resource ID.
|
|
284
|
+
# * Real-world hardware IDs, such as IMEI number, belonging to the manufactured
|
|
285
|
+
# device.
|
|
286
|
+
# Methods that operate on devices take a `DeviceReference` as a parameter type
|
|
287
|
+
# because it's more flexible for the caller. To learn more about device
|
|
288
|
+
# identifiers, read [Identifiers](/zero-touch/guides/identifiers).
|
|
289
|
+
# Corresponds to the JSON property `device`
|
|
290
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceReference]
|
|
291
|
+
attr_accessor :device
|
|
292
|
+
|
|
293
|
+
def initialize(**args)
|
|
294
|
+
update!(**args)
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# Update properties of this object
|
|
298
|
+
def update!(**args)
|
|
299
|
+
@configuration = args[:configuration] if args.key?(:configuration)
|
|
300
|
+
@device = args[:device] if args.key?(:device)
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# Response message of customer's listing configuration.
|
|
305
|
+
class CustomerListConfigurationsResponse
|
|
306
|
+
include Google::Apis::Core::Hashable
|
|
307
|
+
|
|
308
|
+
# The configurations.
|
|
309
|
+
# Corresponds to the JSON property `configurations`
|
|
310
|
+
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Configuration>]
|
|
311
|
+
attr_accessor :configurations
|
|
312
|
+
|
|
313
|
+
def initialize(**args)
|
|
314
|
+
update!(**args)
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# Update properties of this object
|
|
318
|
+
def update!(**args)
|
|
319
|
+
@configurations = args[:configurations] if args.key?(:configurations)
|
|
320
|
+
end
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# Response message for listing my customers.
|
|
324
|
+
class CustomerListCustomersResponse
|
|
325
|
+
include Google::Apis::Core::Hashable
|
|
326
|
+
|
|
327
|
+
# Customers the current user can act as.
|
|
328
|
+
# Corresponds to the JSON property `customers`
|
|
329
|
+
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Company>]
|
|
330
|
+
attr_accessor :customers
|
|
331
|
+
|
|
332
|
+
# Token to retrieve the next page of results, or empty if there are no
|
|
333
|
+
# more results in the list.
|
|
334
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
335
|
+
# @return [String]
|
|
336
|
+
attr_accessor :next_page_token
|
|
337
|
+
|
|
338
|
+
def initialize(**args)
|
|
339
|
+
update!(**args)
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# Update properties of this object
|
|
343
|
+
def update!(**args)
|
|
344
|
+
@customers = args[:customers] if args.key?(:customers)
|
|
345
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# Response message of customer's liting devices.
|
|
350
|
+
class CustomerListDevicesResponse
|
|
351
|
+
include Google::Apis::Core::Hashable
|
|
352
|
+
|
|
353
|
+
# The customer's devices.
|
|
354
|
+
# Corresponds to the JSON property `devices`
|
|
355
|
+
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Device>]
|
|
356
|
+
attr_accessor :devices
|
|
357
|
+
|
|
358
|
+
# A token used to access the next page of results. Omitted if no further
|
|
359
|
+
# results are available.
|
|
360
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
361
|
+
# @return [String]
|
|
362
|
+
attr_accessor :next_page_token
|
|
363
|
+
|
|
364
|
+
def initialize(**args)
|
|
365
|
+
update!(**args)
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
# Update properties of this object
|
|
369
|
+
def update!(**args)
|
|
370
|
+
@devices = args[:devices] if args.key?(:devices)
|
|
371
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
372
|
+
end
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
# Response message of customer's listing DPCs.
|
|
376
|
+
class CustomerListDpcsResponse
|
|
377
|
+
include Google::Apis::Core::Hashable
|
|
378
|
+
|
|
379
|
+
# The list of DPCs available to the customer that support zero-touch
|
|
380
|
+
# enrollment.
|
|
381
|
+
# Corresponds to the JSON property `dpcs`
|
|
382
|
+
# @return [Array<Google::Apis::AndroiddeviceprovisioningV1::Dpc>]
|
|
383
|
+
attr_accessor :dpcs
|
|
384
|
+
|
|
385
|
+
def initialize(**args)
|
|
386
|
+
update!(**args)
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# Update properties of this object
|
|
390
|
+
def update!(**args)
|
|
391
|
+
@dpcs = args[:dpcs] if args.key?(:dpcs)
|
|
392
|
+
end
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# Request message for customer to remove the configuration from device.
|
|
396
|
+
class CustomerRemoveConfigurationRequest
|
|
397
|
+
include Google::Apis::Core::Hashable
|
|
398
|
+
|
|
399
|
+
# A `DeviceReference` is an API abstraction that lets you supply a _device_
|
|
400
|
+
# argument to a method using one of the following identifier types:
|
|
401
|
+
# * A numeric API resource ID.
|
|
402
|
+
# * Real-world hardware IDs, such as IMEI number, belonging to the manufactured
|
|
403
|
+
# device.
|
|
404
|
+
# Methods that operate on devices take a `DeviceReference` as a parameter type
|
|
405
|
+
# because it's more flexible for the caller. To learn more about device
|
|
406
|
+
# identifiers, read [Identifiers](/zero-touch/guides/identifiers).
|
|
407
|
+
# Corresponds to the JSON property `device`
|
|
408
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceReference]
|
|
409
|
+
attr_accessor :device
|
|
410
|
+
|
|
411
|
+
def initialize(**args)
|
|
412
|
+
update!(**args)
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
# Update properties of this object
|
|
416
|
+
def update!(**args)
|
|
417
|
+
@device = args[:device] if args.key?(:device)
|
|
418
|
+
end
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# Request message for customer to unclaim a device.
|
|
422
|
+
class CustomerUnclaimDeviceRequest
|
|
423
|
+
include Google::Apis::Core::Hashable
|
|
424
|
+
|
|
425
|
+
# A `DeviceReference` is an API abstraction that lets you supply a _device_
|
|
426
|
+
# argument to a method using one of the following identifier types:
|
|
427
|
+
# * A numeric API resource ID.
|
|
428
|
+
# * Real-world hardware IDs, such as IMEI number, belonging to the manufactured
|
|
429
|
+
# device.
|
|
430
|
+
# Methods that operate on devices take a `DeviceReference` as a parameter type
|
|
431
|
+
# because it's more flexible for the caller. To learn more about device
|
|
432
|
+
# identifiers, read [Identifiers](/zero-touch/guides/identifiers).
|
|
433
|
+
# Corresponds to the JSON property `device`
|
|
434
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceReference]
|
|
435
|
+
attr_accessor :device
|
|
436
|
+
|
|
437
|
+
def initialize(**args)
|
|
438
|
+
update!(**args)
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
# Update properties of this object
|
|
442
|
+
def update!(**args)
|
|
443
|
+
@device = args[:device] if args.key?(:device)
|
|
444
|
+
end
|
|
445
|
+
end
|
|
446
|
+
|
|
171
447
|
# An Android device registered for zero-touch enrollment.
|
|
172
448
|
class Device
|
|
173
449
|
include Google::Apis::Core::Hashable
|
|
@@ -315,6 +591,39 @@ module Google
|
|
|
315
591
|
end
|
|
316
592
|
end
|
|
317
593
|
|
|
594
|
+
# A `DeviceReference` is an API abstraction that lets you supply a _device_
|
|
595
|
+
# argument to a method using one of the following identifier types:
|
|
596
|
+
# * A numeric API resource ID.
|
|
597
|
+
# * Real-world hardware IDs, such as IMEI number, belonging to the manufactured
|
|
598
|
+
# device.
|
|
599
|
+
# Methods that operate on devices take a `DeviceReference` as a parameter type
|
|
600
|
+
# because it's more flexible for the caller. To learn more about device
|
|
601
|
+
# identifiers, read [Identifiers](/zero-touch/guides/identifiers).
|
|
602
|
+
class DeviceReference
|
|
603
|
+
include Google::Apis::Core::Hashable
|
|
604
|
+
|
|
605
|
+
# The ID of the device.
|
|
606
|
+
# Corresponds to the JSON property `deviceId`
|
|
607
|
+
# @return [Fixnum]
|
|
608
|
+
attr_accessor :device_id
|
|
609
|
+
|
|
610
|
+
# Encapsulates hardware and product IDs to identify a manufactured device. To
|
|
611
|
+
# learn more, read [Identifiers](/zero-touch/guides/identifiers).
|
|
612
|
+
# Corresponds to the JSON property `deviceIdentifier`
|
|
613
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier]
|
|
614
|
+
attr_accessor :device_identifier
|
|
615
|
+
|
|
616
|
+
def initialize(**args)
|
|
617
|
+
update!(**args)
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
# Update properties of this object
|
|
621
|
+
def update!(**args)
|
|
622
|
+
@device_id = args[:device_id] if args.key?(:device_id)
|
|
623
|
+
@device_identifier = args[:device_identifier] if args.key?(:device_identifier)
|
|
624
|
+
end
|
|
625
|
+
end
|
|
626
|
+
|
|
318
627
|
# Long running operation metadata.
|
|
319
628
|
class DevicesLongRunningOperationMetadata
|
|
320
629
|
include Google::Apis::Core::Hashable
|
|
@@ -372,6 +681,46 @@ module Google
|
|
|
372
681
|
end
|
|
373
682
|
end
|
|
374
683
|
|
|
684
|
+
# An EMM's DPC ([device policy controller](/android/work/dpc/build-dpc)).
|
|
685
|
+
# Zero-touch enrollment installs a DPC (listed in the `Configuration`) on a
|
|
686
|
+
# device to maintain the customer's mobile policies. All the DPCs listed by the
|
|
687
|
+
# API support zero-touch enrollment and are available in Google Play.
|
|
688
|
+
class Dpc
|
|
689
|
+
include Google::Apis::Core::Hashable
|
|
690
|
+
|
|
691
|
+
# Output only. The title of the DPC app in Google Play. For example, _Google
|
|
692
|
+
# Apps Device Policy_. Useful in an application's user interface.
|
|
693
|
+
# Corresponds to the JSON property `dpcName`
|
|
694
|
+
# @return [String]
|
|
695
|
+
attr_accessor :dpc_name
|
|
696
|
+
|
|
697
|
+
# Output only. The API resource name in the format
|
|
698
|
+
# `customers/[CUSTOMER_ID]/dpcs/[DPC_ID]`. Assigned by
|
|
699
|
+
# the server. To maintain a reference to a DPC across customer accounts,
|
|
700
|
+
# persist and match the last path component (`DPC_ID`).
|
|
701
|
+
# Corresponds to the JSON property `name`
|
|
702
|
+
# @return [String]
|
|
703
|
+
attr_accessor :name
|
|
704
|
+
|
|
705
|
+
# Output only. The DPC's Android application ID that looks like a Java
|
|
706
|
+
# package name. Zero-touch enrollment installs the DPC app onto a device
|
|
707
|
+
# using this identifier.
|
|
708
|
+
# Corresponds to the JSON property `packageName`
|
|
709
|
+
# @return [String]
|
|
710
|
+
attr_accessor :package_name
|
|
711
|
+
|
|
712
|
+
def initialize(**args)
|
|
713
|
+
update!(**args)
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
# Update properties of this object
|
|
717
|
+
def update!(**args)
|
|
718
|
+
@dpc_name = args[:dpc_name] if args.key?(:dpc_name)
|
|
719
|
+
@name = args[:name] if args.key?(:name)
|
|
720
|
+
@package_name = args[:package_name] if args.key?(:package_name)
|
|
721
|
+
end
|
|
722
|
+
end
|
|
723
|
+
|
|
375
724
|
# A generic empty message that you can re-use to avoid defining duplicated
|
|
376
725
|
# empty messages in your APIs. A typical example is to use it as the request
|
|
377
726
|
# or the response type of an API method. For instance:
|
|
@@ -46,12 +46,60 @@ module Google
|
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
class Configuration
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
49
55
|
class CreateCustomerRequest
|
|
50
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
57
|
|
|
52
58
|
include Google::Apis::Core::JsonObjectSupport
|
|
53
59
|
end
|
|
54
60
|
|
|
61
|
+
class CustomerApplyConfigurationRequest
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
+
|
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
class CustomerListConfigurationsResponse
|
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
+
|
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
class CustomerListCustomersResponse
|
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
|
+
|
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
class CustomerListDevicesResponse
|
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
|
+
|
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
class CustomerListDpcsResponse
|
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
|
+
|
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
class CustomerRemoveConfigurationRequest
|
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
|
+
|
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
class CustomerUnclaimDeviceRequest
|
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
|
+
|
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
101
|
+
end
|
|
102
|
+
|
|
55
103
|
class Device
|
|
56
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
105
|
|
|
@@ -76,6 +124,12 @@ module Google
|
|
|
76
124
|
include Google::Apis::Core::JsonObjectSupport
|
|
77
125
|
end
|
|
78
126
|
|
|
127
|
+
class DeviceReference
|
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
|
+
|
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
131
|
+
end
|
|
132
|
+
|
|
79
133
|
class DevicesLongRunningOperationMetadata
|
|
80
134
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
135
|
|
|
@@ -88,6 +142,12 @@ module Google
|
|
|
88
142
|
include Google::Apis::Core::JsonObjectSupport
|
|
89
143
|
end
|
|
90
144
|
|
|
145
|
+
class Dpc
|
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
|
+
|
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
149
|
+
end
|
|
150
|
+
|
|
91
151
|
class Empty
|
|
92
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
153
|
|
|
@@ -227,6 +287,22 @@ module Google
|
|
|
227
287
|
end
|
|
228
288
|
end
|
|
229
289
|
|
|
290
|
+
class Configuration
|
|
291
|
+
# @private
|
|
292
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
293
|
+
property :company_name, as: 'companyName'
|
|
294
|
+
property :configuration_id, :numeric_string => true, as: 'configurationId'
|
|
295
|
+
property :configuration_name, as: 'configurationName'
|
|
296
|
+
property :contact_email, as: 'contactEmail'
|
|
297
|
+
property :contact_phone, as: 'contactPhone'
|
|
298
|
+
property :custom_message, as: 'customMessage'
|
|
299
|
+
property :dpc_extras, as: 'dpcExtras'
|
|
300
|
+
property :dpc_resource_path, as: 'dpcResourcePath'
|
|
301
|
+
property :is_default, as: 'isDefault'
|
|
302
|
+
property :name, as: 'name'
|
|
303
|
+
end
|
|
304
|
+
end
|
|
305
|
+
|
|
230
306
|
class CreateCustomerRequest
|
|
231
307
|
# @private
|
|
232
308
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -235,6 +311,65 @@ module Google
|
|
|
235
311
|
end
|
|
236
312
|
end
|
|
237
313
|
|
|
314
|
+
class CustomerApplyConfigurationRequest
|
|
315
|
+
# @private
|
|
316
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
317
|
+
property :configuration, as: 'configuration'
|
|
318
|
+
property :device, as: 'device', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceReference, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceReference::Representation
|
|
319
|
+
|
|
320
|
+
end
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
class CustomerListConfigurationsResponse
|
|
324
|
+
# @private
|
|
325
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
326
|
+
collection :configurations, as: 'configurations', class: Google::Apis::AndroiddeviceprovisioningV1::Configuration, decorator: Google::Apis::AndroiddeviceprovisioningV1::Configuration::Representation
|
|
327
|
+
|
|
328
|
+
end
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
class CustomerListCustomersResponse
|
|
332
|
+
# @private
|
|
333
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
334
|
+
collection :customers, as: 'customers', class: Google::Apis::AndroiddeviceprovisioningV1::Company, decorator: Google::Apis::AndroiddeviceprovisioningV1::Company::Representation
|
|
335
|
+
|
|
336
|
+
property :next_page_token, as: 'nextPageToken'
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
class CustomerListDevicesResponse
|
|
341
|
+
# @private
|
|
342
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
343
|
+
collection :devices, as: 'devices', class: Google::Apis::AndroiddeviceprovisioningV1::Device, decorator: Google::Apis::AndroiddeviceprovisioningV1::Device::Representation
|
|
344
|
+
|
|
345
|
+
property :next_page_token, as: 'nextPageToken'
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
class CustomerListDpcsResponse
|
|
350
|
+
# @private
|
|
351
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
352
|
+
collection :dpcs, as: 'dpcs', class: Google::Apis::AndroiddeviceprovisioningV1::Dpc, decorator: Google::Apis::AndroiddeviceprovisioningV1::Dpc::Representation
|
|
353
|
+
|
|
354
|
+
end
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
class CustomerRemoveConfigurationRequest
|
|
358
|
+
# @private
|
|
359
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
360
|
+
property :device, as: 'device', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceReference, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceReference::Representation
|
|
361
|
+
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
class CustomerUnclaimDeviceRequest
|
|
366
|
+
# @private
|
|
367
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
368
|
+
property :device, as: 'device', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceReference, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceReference::Representation
|
|
369
|
+
|
|
370
|
+
end
|
|
371
|
+
end
|
|
372
|
+
|
|
238
373
|
class Device
|
|
239
374
|
# @private
|
|
240
375
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -275,6 +410,15 @@ module Google
|
|
|
275
410
|
end
|
|
276
411
|
end
|
|
277
412
|
|
|
413
|
+
class DeviceReference
|
|
414
|
+
# @private
|
|
415
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
416
|
+
property :device_id, :numeric_string => true, as: 'deviceId'
|
|
417
|
+
property :device_identifier, as: 'deviceIdentifier', class: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier, decorator: Google::Apis::AndroiddeviceprovisioningV1::DeviceIdentifier::Representation
|
|
418
|
+
|
|
419
|
+
end
|
|
420
|
+
end
|
|
421
|
+
|
|
278
422
|
class DevicesLongRunningOperationMetadata
|
|
279
423
|
# @private
|
|
280
424
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -293,6 +437,15 @@ module Google
|
|
|
293
437
|
end
|
|
294
438
|
end
|
|
295
439
|
|
|
440
|
+
class Dpc
|
|
441
|
+
# @private
|
|
442
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
443
|
+
property :dpc_name, as: 'dpcName'
|
|
444
|
+
property :name, as: 'name'
|
|
445
|
+
property :package_name, as: 'packageName'
|
|
446
|
+
end
|
|
447
|
+
end
|
|
448
|
+
|
|
296
449
|
class Empty
|
|
297
450
|
# @private
|
|
298
451
|
class Representation < Google::Apis::Core::JsonRepresentation
|