google-api-client 0.18.1 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -48,6 +48,418 @@ module Google
|
|
48
48
|
@batch_path = 'batch'
|
49
49
|
end
|
50
50
|
|
51
|
+
# List the user's customer accounts.
|
52
|
+
# @param [Fixnum] page_size
|
53
|
+
# The maximum number of items to return.
|
54
|
+
# @param [String] page_token
|
55
|
+
# The next_page_token value returned from a previous List request, if any.
|
56
|
+
# @param [String] fields
|
57
|
+
# Selector specifying which fields to include in a partial response.
|
58
|
+
# @param [String] quota_user
|
59
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
60
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
61
|
+
# @param [Google::Apis::RequestOptions] options
|
62
|
+
# Request-specific options
|
63
|
+
#
|
64
|
+
# @yield [result, err] Result & error if block supplied
|
65
|
+
# @yieldparam result [Google::Apis::AndroiddeviceprovisioningV1::CustomerListCustomersResponse] parsed result object
|
66
|
+
# @yieldparam err [StandardError] error object if request failed
|
67
|
+
#
|
68
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::CustomerListCustomersResponse]
|
69
|
+
#
|
70
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
71
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
72
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
73
|
+
def list_customers(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
74
|
+
command = make_simple_command(:get, 'v1/customers', options)
|
75
|
+
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::CustomerListCustomersResponse::Representation
|
76
|
+
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::CustomerListCustomersResponse
|
77
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
78
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
79
|
+
command.query['fields'] = fields unless fields.nil?
|
80
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
81
|
+
execute_or_queue_command(command, &block)
|
82
|
+
end
|
83
|
+
|
84
|
+
# Creates a new configuration. Once created, a customer can apply the
|
85
|
+
# configuration to devices.
|
86
|
+
# @param [String] parent
|
87
|
+
# Required. The customer that manages the configuration. An API resource name
|
88
|
+
# in the format `customers/[CUSTOMER_ID]`.
|
89
|
+
# @param [Google::Apis::AndroiddeviceprovisioningV1::Configuration] configuration_object
|
90
|
+
# @param [String] fields
|
91
|
+
# Selector specifying which fields to include in a partial response.
|
92
|
+
# @param [String] quota_user
|
93
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
94
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
95
|
+
# @param [Google::Apis::RequestOptions] options
|
96
|
+
# Request-specific options
|
97
|
+
#
|
98
|
+
# @yield [result, err] Result & error if block supplied
|
99
|
+
# @yieldparam result [Google::Apis::AndroiddeviceprovisioningV1::Configuration] parsed result object
|
100
|
+
# @yieldparam err [StandardError] error object if request failed
|
101
|
+
#
|
102
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::Configuration]
|
103
|
+
#
|
104
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
105
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
106
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
107
|
+
def create_customer_configuration(parent, configuration_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
108
|
+
command = make_simple_command(:post, 'v1/{+parent}/configurations', options)
|
109
|
+
command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::Configuration::Representation
|
110
|
+
command.request_object = configuration_object
|
111
|
+
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Configuration::Representation
|
112
|
+
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Configuration
|
113
|
+
command.params['parent'] = parent unless parent.nil?
|
114
|
+
command.query['fields'] = fields unless fields.nil?
|
115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
|
+
execute_or_queue_command(command, &block)
|
117
|
+
end
|
118
|
+
|
119
|
+
# Deletes an unused configuration. The API call fails if the customer has
|
120
|
+
# devices with the configuration applied.
|
121
|
+
# @param [String] name
|
122
|
+
# Required. The configuration to delete. An API resource name in the format
|
123
|
+
# `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. If the
|
124
|
+
# configuration is applied to any devices, the API call fails.
|
125
|
+
# @param [String] fields
|
126
|
+
# Selector specifying which fields to include in a partial response.
|
127
|
+
# @param [String] quota_user
|
128
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
129
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
130
|
+
# @param [Google::Apis::RequestOptions] options
|
131
|
+
# Request-specific options
|
132
|
+
#
|
133
|
+
# @yield [result, err] Result & error if block supplied
|
134
|
+
# @yieldparam result [Google::Apis::AndroiddeviceprovisioningV1::Empty] parsed result object
|
135
|
+
# @yieldparam err [StandardError] error object if request failed
|
136
|
+
#
|
137
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::Empty]
|
138
|
+
#
|
139
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
140
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
141
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
142
|
+
def delete_customer_configuration(name, fields: nil, quota_user: nil, options: nil, &block)
|
143
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
144
|
+
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Empty::Representation
|
145
|
+
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Empty
|
146
|
+
command.params['name'] = name unless name.nil?
|
147
|
+
command.query['fields'] = fields unless fields.nil?
|
148
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
149
|
+
execute_or_queue_command(command, &block)
|
150
|
+
end
|
151
|
+
|
152
|
+
# Gets the details of a configuration.
|
153
|
+
# @param [String] name
|
154
|
+
# Required. The configuration to get. An API resource name in the format
|
155
|
+
# `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`.
|
156
|
+
# @param [String] fields
|
157
|
+
# Selector specifying which fields to include in a partial response.
|
158
|
+
# @param [String] quota_user
|
159
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
160
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
161
|
+
# @param [Google::Apis::RequestOptions] options
|
162
|
+
# Request-specific options
|
163
|
+
#
|
164
|
+
# @yield [result, err] Result & error if block supplied
|
165
|
+
# @yieldparam result [Google::Apis::AndroiddeviceprovisioningV1::Configuration] parsed result object
|
166
|
+
# @yieldparam err [StandardError] error object if request failed
|
167
|
+
#
|
168
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::Configuration]
|
169
|
+
#
|
170
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
171
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
172
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
173
|
+
def get_customer_configuration(name, fields: nil, quota_user: nil, options: nil, &block)
|
174
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
175
|
+
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Configuration::Representation
|
176
|
+
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Configuration
|
177
|
+
command.params['name'] = name unless name.nil?
|
178
|
+
command.query['fields'] = fields unless fields.nil?
|
179
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
180
|
+
execute_or_queue_command(command, &block)
|
181
|
+
end
|
182
|
+
|
183
|
+
# Lists a customer's configurations.
|
184
|
+
# @param [String] parent
|
185
|
+
# Required. The customer that manages the listed configurations. An API
|
186
|
+
# resource name in the format `customers/[CUSTOMER_ID]`.
|
187
|
+
# @param [String] fields
|
188
|
+
# Selector specifying which fields to include in a partial response.
|
189
|
+
# @param [String] quota_user
|
190
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
191
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
192
|
+
# @param [Google::Apis::RequestOptions] options
|
193
|
+
# Request-specific options
|
194
|
+
#
|
195
|
+
# @yield [result, err] Result & error if block supplied
|
196
|
+
# @yieldparam result [Google::Apis::AndroiddeviceprovisioningV1::CustomerListConfigurationsResponse] parsed result object
|
197
|
+
# @yieldparam err [StandardError] error object if request failed
|
198
|
+
#
|
199
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::CustomerListConfigurationsResponse]
|
200
|
+
#
|
201
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
202
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
203
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
204
|
+
def list_customer_configurations(parent, fields: nil, quota_user: nil, options: nil, &block)
|
205
|
+
command = make_simple_command(:get, 'v1/{+parent}/configurations', options)
|
206
|
+
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::CustomerListConfigurationsResponse::Representation
|
207
|
+
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::CustomerListConfigurationsResponse
|
208
|
+
command.params['parent'] = parent unless parent.nil?
|
209
|
+
command.query['fields'] = fields unless fields.nil?
|
210
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
211
|
+
execute_or_queue_command(command, &block)
|
212
|
+
end
|
213
|
+
|
214
|
+
# Updates a configuration's field values.
|
215
|
+
# @param [String] name
|
216
|
+
# Output only. The API resource name in the format
|
217
|
+
# `customers/[CUSTOMER_ID]/configurations/[CONFIGURATION_ID]`. Assigned by
|
218
|
+
# the server.
|
219
|
+
# @param [Google::Apis::AndroiddeviceprovisioningV1::Configuration] configuration_object
|
220
|
+
# @param [String] update_mask
|
221
|
+
# Required. The field mask applied to the target `Configuration` before
|
222
|
+
# updating the fields. To learn more about using field masks, read
|
223
|
+
# [FieldMask](/protocol-buffers/docs/reference/google.protobuf#fieldmask) in
|
224
|
+
# the Protocol Buffers documentation.
|
225
|
+
# @param [String] fields
|
226
|
+
# Selector specifying which fields to include in a partial response.
|
227
|
+
# @param [String] quota_user
|
228
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
229
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
230
|
+
# @param [Google::Apis::RequestOptions] options
|
231
|
+
# Request-specific options
|
232
|
+
#
|
233
|
+
# @yield [result, err] Result & error if block supplied
|
234
|
+
# @yieldparam result [Google::Apis::AndroiddeviceprovisioningV1::Configuration] parsed result object
|
235
|
+
# @yieldparam err [StandardError] error object if request failed
|
236
|
+
#
|
237
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::Configuration]
|
238
|
+
#
|
239
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
240
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
241
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
242
|
+
def patch_customer_configuration(name, configuration_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
243
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
244
|
+
command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::Configuration::Representation
|
245
|
+
command.request_object = configuration_object
|
246
|
+
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Configuration::Representation
|
247
|
+
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Configuration
|
248
|
+
command.params['name'] = name unless name.nil?
|
249
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
250
|
+
command.query['fields'] = fields unless fields.nil?
|
251
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
252
|
+
execute_or_queue_command(command, &block)
|
253
|
+
end
|
254
|
+
|
255
|
+
# Applies a Configuration to the device to register the device for zero-touch
|
256
|
+
# enrollment. After applying a configuration to a device, the device
|
257
|
+
# automatically provisions itself on first boot, or next factory reset.
|
258
|
+
# @param [String] parent
|
259
|
+
# Required. The customer managing the device. An API resource name in the
|
260
|
+
# format `customers/[CUSTOMER_ID]`.
|
261
|
+
# @param [Google::Apis::AndroiddeviceprovisioningV1::CustomerApplyConfigurationRequest] customer_apply_configuration_request_object
|
262
|
+
# @param [String] fields
|
263
|
+
# Selector specifying which fields to include in a partial response.
|
264
|
+
# @param [String] quota_user
|
265
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
266
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
267
|
+
# @param [Google::Apis::RequestOptions] options
|
268
|
+
# Request-specific options
|
269
|
+
#
|
270
|
+
# @yield [result, err] Result & error if block supplied
|
271
|
+
# @yieldparam result [Google::Apis::AndroiddeviceprovisioningV1::Empty] parsed result object
|
272
|
+
# @yieldparam err [StandardError] error object if request failed
|
273
|
+
#
|
274
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::Empty]
|
275
|
+
#
|
276
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
277
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
278
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
279
|
+
def apply_customer_device_configuration(parent, customer_apply_configuration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
280
|
+
command = make_simple_command(:post, 'v1/{+parent}/devices:applyConfiguration', options)
|
281
|
+
command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::CustomerApplyConfigurationRequest::Representation
|
282
|
+
command.request_object = customer_apply_configuration_request_object
|
283
|
+
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Empty::Representation
|
284
|
+
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Empty
|
285
|
+
command.params['parent'] = parent unless parent.nil?
|
286
|
+
command.query['fields'] = fields unless fields.nil?
|
287
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
288
|
+
execute_or_queue_command(command, &block)
|
289
|
+
end
|
290
|
+
|
291
|
+
# Gets the details of a device.
|
292
|
+
# @param [String] name
|
293
|
+
# Required. The device to get. An API resource name in the format
|
294
|
+
# `customers/[CUSTOMER_ID]/devices/[DEVICE_ID]`.
|
295
|
+
# @param [String] fields
|
296
|
+
# Selector specifying which fields to include in a partial response.
|
297
|
+
# @param [String] quota_user
|
298
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
299
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
300
|
+
# @param [Google::Apis::RequestOptions] options
|
301
|
+
# Request-specific options
|
302
|
+
#
|
303
|
+
# @yield [result, err] Result & error if block supplied
|
304
|
+
# @yieldparam result [Google::Apis::AndroiddeviceprovisioningV1::Device] parsed result object
|
305
|
+
# @yieldparam err [StandardError] error object if request failed
|
306
|
+
#
|
307
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::Device]
|
308
|
+
#
|
309
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
310
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
311
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
312
|
+
def get_customer_device(name, fields: nil, quota_user: nil, options: nil, &block)
|
313
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
314
|
+
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Device::Representation
|
315
|
+
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Device
|
316
|
+
command.params['name'] = name unless name.nil?
|
317
|
+
command.query['fields'] = fields unless fields.nil?
|
318
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
319
|
+
execute_or_queue_command(command, &block)
|
320
|
+
end
|
321
|
+
|
322
|
+
# Lists a customer's devices.
|
323
|
+
# @param [String] parent
|
324
|
+
# Required. The customer managing the devices. An API resource name in the
|
325
|
+
# format `customers/[CUSTOMER_ID]`.
|
326
|
+
# @param [Fixnum] page_size
|
327
|
+
# The maximum number of devices to show in a page of results. The default
|
328
|
+
# value returns all the devices in a single page.
|
329
|
+
# @param [String] page_token
|
330
|
+
# A token specifying which result page to return.
|
331
|
+
# @param [String] fields
|
332
|
+
# Selector specifying which fields to include in a partial response.
|
333
|
+
# @param [String] quota_user
|
334
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
335
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
336
|
+
# @param [Google::Apis::RequestOptions] options
|
337
|
+
# Request-specific options
|
338
|
+
#
|
339
|
+
# @yield [result, err] Result & error if block supplied
|
340
|
+
# @yieldparam result [Google::Apis::AndroiddeviceprovisioningV1::CustomerListDevicesResponse] parsed result object
|
341
|
+
# @yieldparam err [StandardError] error object if request failed
|
342
|
+
#
|
343
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::CustomerListDevicesResponse]
|
344
|
+
#
|
345
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
346
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
347
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
348
|
+
def list_customer_devices(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
349
|
+
command = make_simple_command(:get, 'v1/{+parent}/devices', options)
|
350
|
+
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::CustomerListDevicesResponse::Representation
|
351
|
+
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::CustomerListDevicesResponse
|
352
|
+
command.params['parent'] = parent unless parent.nil?
|
353
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
354
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
355
|
+
command.query['fields'] = fields unless fields.nil?
|
356
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
357
|
+
execute_or_queue_command(command, &block)
|
358
|
+
end
|
359
|
+
|
360
|
+
# Removes a configuration from device.
|
361
|
+
# @param [String] parent
|
362
|
+
# Required. The customer managing the device in the format
|
363
|
+
# `customers/[CUSTOMER_ID]`.
|
364
|
+
# @param [Google::Apis::AndroiddeviceprovisioningV1::CustomerRemoveConfigurationRequest] customer_remove_configuration_request_object
|
365
|
+
# @param [String] fields
|
366
|
+
# Selector specifying which fields to include in a partial response.
|
367
|
+
# @param [String] quota_user
|
368
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
369
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
370
|
+
# @param [Google::Apis::RequestOptions] options
|
371
|
+
# Request-specific options
|
372
|
+
#
|
373
|
+
# @yield [result, err] Result & error if block supplied
|
374
|
+
# @yieldparam result [Google::Apis::AndroiddeviceprovisioningV1::Empty] parsed result object
|
375
|
+
# @yieldparam err [StandardError] error object if request failed
|
376
|
+
#
|
377
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::Empty]
|
378
|
+
#
|
379
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
380
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
381
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
382
|
+
def remove_customer_device_configuration(parent, customer_remove_configuration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
383
|
+
command = make_simple_command(:post, 'v1/{+parent}/devices:removeConfiguration', options)
|
384
|
+
command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::CustomerRemoveConfigurationRequest::Representation
|
385
|
+
command.request_object = customer_remove_configuration_request_object
|
386
|
+
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Empty::Representation
|
387
|
+
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Empty
|
388
|
+
command.params['parent'] = parent unless parent.nil?
|
389
|
+
command.query['fields'] = fields unless fields.nil?
|
390
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
391
|
+
execute_or_queue_command(command, &block)
|
392
|
+
end
|
393
|
+
|
394
|
+
# Unclaims a device from a customer and removes it from zero-touch
|
395
|
+
# enrollment.
|
396
|
+
# After removing a device, a customer must contact their reseller to register
|
397
|
+
# the device into zero-touch enrollment again.
|
398
|
+
# @param [String] parent
|
399
|
+
# Required. The customer managing the device. An API resource name in the
|
400
|
+
# format `customers/[CUSTOMER_ID]`.
|
401
|
+
# @param [Google::Apis::AndroiddeviceprovisioningV1::CustomerUnclaimDeviceRequest] customer_unclaim_device_request_object
|
402
|
+
# @param [String] fields
|
403
|
+
# Selector specifying which fields to include in a partial response.
|
404
|
+
# @param [String] quota_user
|
405
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
406
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
407
|
+
# @param [Google::Apis::RequestOptions] options
|
408
|
+
# Request-specific options
|
409
|
+
#
|
410
|
+
# @yield [result, err] Result & error if block supplied
|
411
|
+
# @yieldparam result [Google::Apis::AndroiddeviceprovisioningV1::Empty] parsed result object
|
412
|
+
# @yieldparam err [StandardError] error object if request failed
|
413
|
+
#
|
414
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::Empty]
|
415
|
+
#
|
416
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
417
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
418
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
419
|
+
def unclaim_customer_device(parent, customer_unclaim_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
420
|
+
command = make_simple_command(:post, 'v1/{+parent}/devices:unclaim', options)
|
421
|
+
command.request_representation = Google::Apis::AndroiddeviceprovisioningV1::CustomerUnclaimDeviceRequest::Representation
|
422
|
+
command.request_object = customer_unclaim_device_request_object
|
423
|
+
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::Empty::Representation
|
424
|
+
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::Empty
|
425
|
+
command.params['parent'] = parent unless parent.nil?
|
426
|
+
command.query['fields'] = fields unless fields.nil?
|
427
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
428
|
+
execute_or_queue_command(command, &block)
|
429
|
+
end
|
430
|
+
|
431
|
+
# Lists the DPCs (device policy controllers) that support zero-touch
|
432
|
+
# enrollment.
|
433
|
+
# @param [String] parent
|
434
|
+
# Required. The customer that can use the DPCs in configurations. An API
|
435
|
+
# resource name in the format `customers/[CUSTOMER_ID]`.
|
436
|
+
# @param [String] fields
|
437
|
+
# Selector specifying which fields to include in a partial response.
|
438
|
+
# @param [String] quota_user
|
439
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
440
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
441
|
+
# @param [Google::Apis::RequestOptions] options
|
442
|
+
# Request-specific options
|
443
|
+
#
|
444
|
+
# @yield [result, err] Result & error if block supplied
|
445
|
+
# @yieldparam result [Google::Apis::AndroiddeviceprovisioningV1::CustomerListDpcsResponse] parsed result object
|
446
|
+
# @yieldparam err [StandardError] error object if request failed
|
447
|
+
#
|
448
|
+
# @return [Google::Apis::AndroiddeviceprovisioningV1::CustomerListDpcsResponse]
|
449
|
+
#
|
450
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
451
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
452
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
453
|
+
def list_customer_dpcs(parent, fields: nil, quota_user: nil, options: nil, &block)
|
454
|
+
command = make_simple_command(:get, 'v1/{+parent}/dpcs', options)
|
455
|
+
command.response_representation = Google::Apis::AndroiddeviceprovisioningV1::CustomerListDpcsResponse::Representation
|
456
|
+
command.response_class = Google::Apis::AndroiddeviceprovisioningV1::CustomerListDpcsResponse
|
457
|
+
command.params['parent'] = parent unless parent.nil?
|
458
|
+
command.query['fields'] = fields unless fields.nil?
|
459
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
460
|
+
execute_or_queue_command(command, &block)
|
461
|
+
end
|
462
|
+
|
51
463
|
# Gets the latest state of a long-running operation. Clients can use this
|
52
464
|
# method to poll the operation result at intervals as recommended by the API
|
53
465
|
# service.
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/android/management
|
27
27
|
module AndroidmanagementV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20171211'
|
30
30
|
|
31
31
|
# Manage Android devices and apps for your customers
|
32
32
|
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
|
@@ -322,6 +322,11 @@ module Google
|
|
322
322
|
# @return [String]
|
323
323
|
attr_accessor :applied_state
|
324
324
|
|
325
|
+
# Information about security related device settings on device.
|
326
|
+
# Corresponds to the JSON property `deviceSettings`
|
327
|
+
# @return [Google::Apis::AndroidmanagementV1::DeviceSettings]
|
328
|
+
attr_accessor :device_settings
|
329
|
+
|
325
330
|
# Provides user facing message with locale info. The maximum message length is
|
326
331
|
# 4096 characters.
|
327
332
|
# Corresponds to the JSON property `disabledReason`
|
@@ -467,6 +472,7 @@ module Google
|
|
467
472
|
@applied_policy_name = args[:applied_policy_name] if args.key?(:applied_policy_name)
|
468
473
|
@applied_policy_version = args[:applied_policy_version] if args.key?(:applied_policy_version)
|
469
474
|
@applied_state = args[:applied_state] if args.key?(:applied_state)
|
475
|
+
@device_settings = args[:device_settings] if args.key?(:device_settings)
|
470
476
|
@disabled_reason = args[:disabled_reason] if args.key?(:disabled_reason)
|
471
477
|
@displays = args[:displays] if args.key?(:displays)
|
472
478
|
@enrollment_time = args[:enrollment_time] if args.key?(:enrollment_time)
|
@@ -492,6 +498,63 @@ module Google
|
|
492
498
|
end
|
493
499
|
end
|
494
500
|
|
501
|
+
# Information about security related device settings on device.
|
502
|
+
class DeviceSettings
|
503
|
+
include Google::Apis::Core::Hashable
|
504
|
+
|
505
|
+
# If the ADB is enabled Settings.Global.ADB_ENABLED.
|
506
|
+
# Corresponds to the JSON property `adbEnabled`
|
507
|
+
# @return [Boolean]
|
508
|
+
attr_accessor :adb_enabled
|
509
|
+
alias_method :adb_enabled?, :adb_enabled
|
510
|
+
|
511
|
+
# If the developer mode is enabled Settings.Global.DEVELOPMENT_SETTINGS_ENABLED.
|
512
|
+
# Corresponds to the JSON property `developmentSettingsEnabled`
|
513
|
+
# @return [Boolean]
|
514
|
+
attr_accessor :development_settings_enabled
|
515
|
+
alias_method :development_settings_enabled?, :development_settings_enabled
|
516
|
+
|
517
|
+
# Encryption status from DevicePolicyManager.
|
518
|
+
# Corresponds to the JSON property `encryptionStatus`
|
519
|
+
# @return [String]
|
520
|
+
attr_accessor :encryption_status
|
521
|
+
|
522
|
+
# Device secured with PIN/password.
|
523
|
+
# Corresponds to the JSON property `isDeviceSecure`
|
524
|
+
# @return [Boolean]
|
525
|
+
attr_accessor :is_device_secure
|
526
|
+
alias_method :is_device_secure?, :is_device_secure
|
527
|
+
|
528
|
+
# Whether the storage encryption is enabled DevicePolicyManager.
|
529
|
+
# ENCRYPTION_STATUS_ACTIVE or DevicePolicyManager.
|
530
|
+
# ENCRYPTION_STATUS_ACTIVE_PER_USER in N+ devices.
|
531
|
+
# Corresponds to the JSON property `isEncrypted`
|
532
|
+
# @return [Boolean]
|
533
|
+
attr_accessor :is_encrypted
|
534
|
+
alias_method :is_encrypted?, :is_encrypted
|
535
|
+
|
536
|
+
# If installing apps from unknown sources is enabled. Settings.Secure.
|
537
|
+
# INSTALL_NON_MARKET_APPS.
|
538
|
+
# Corresponds to the JSON property `unknownSourcesEnabled`
|
539
|
+
# @return [Boolean]
|
540
|
+
attr_accessor :unknown_sources_enabled
|
541
|
+
alias_method :unknown_sources_enabled?, :unknown_sources_enabled
|
542
|
+
|
543
|
+
def initialize(**args)
|
544
|
+
update!(**args)
|
545
|
+
end
|
546
|
+
|
547
|
+
# Update properties of this object
|
548
|
+
def update!(**args)
|
549
|
+
@adb_enabled = args[:adb_enabled] if args.key?(:adb_enabled)
|
550
|
+
@development_settings_enabled = args[:development_settings_enabled] if args.key?(:development_settings_enabled)
|
551
|
+
@encryption_status = args[:encryption_status] if args.key?(:encryption_status)
|
552
|
+
@is_device_secure = args[:is_device_secure] if args.key?(:is_device_secure)
|
553
|
+
@is_encrypted = args[:is_encrypted] if args.key?(:is_encrypted)
|
554
|
+
@unknown_sources_enabled = args[:unknown_sources_enabled] if args.key?(:unknown_sources_enabled)
|
555
|
+
end
|
556
|
+
end
|
557
|
+
|
495
558
|
# Device display information.
|
496
559
|
class DisplayProp
|
497
560
|
include Google::Apis::Core::Hashable
|
@@ -2085,6 +2148,16 @@ module Google
|
|
2085
2148
|
# @return [String]
|
2086
2149
|
attr_accessor :android_build_time
|
2087
2150
|
|
2151
|
+
# The Android Device Policy app version code.
|
2152
|
+
# Corresponds to the JSON property `androidDevicePolicyVersionCode`
|
2153
|
+
# @return [Fixnum]
|
2154
|
+
attr_accessor :android_device_policy_version_code
|
2155
|
+
|
2156
|
+
# The Android Device Policy app version as displayed to the user.
|
2157
|
+
# Corresponds to the JSON property `androidDevicePolicyVersionName`
|
2158
|
+
# @return [String]
|
2159
|
+
attr_accessor :android_device_policy_version_name
|
2160
|
+
|
2088
2161
|
# The user visible Android version string, e.g. 6.0.1.
|
2089
2162
|
# Corresponds to the JSON property `androidVersion`
|
2090
2163
|
# @return [String]
|
@@ -2113,6 +2186,8 @@ module Google
|
|
2113
2186
|
def update!(**args)
|
2114
2187
|
@android_build_number = args[:android_build_number] if args.key?(:android_build_number)
|
2115
2188
|
@android_build_time = args[:android_build_time] if args.key?(:android_build_time)
|
2189
|
+
@android_device_policy_version_code = args[:android_device_policy_version_code] if args.key?(:android_device_policy_version_code)
|
2190
|
+
@android_device_policy_version_name = args[:android_device_policy_version_name] if args.key?(:android_device_policy_version_name)
|
2116
2191
|
@android_version = args[:android_version] if args.key?(:android_version)
|
2117
2192
|
@bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version)
|
2118
2193
|
@device_kernel_version = args[:device_kernel_version] if args.key?(:device_kernel_version)
|