google-apis-devicerun_v1 0.1.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.
@@ -0,0 +1,464 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module DevicerunV1
23
+ # Device Run API
24
+ #
25
+ # The Device Run API allows management, scheduling, and execution of automated
26
+ # sessions and workloads across device catalogs.
27
+ #
28
+ # @example
29
+ # require 'google/apis/devicerun_v1'
30
+ #
31
+ # Devicerun = Google::Apis::DevicerunV1 # Alias the module
32
+ # service = Devicerun::DeviceRunService.new
33
+ #
34
+ # @see https://docs.cloud.google.com/developer-device-platform/device-run
35
+ class DeviceRunService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://devicerun.$UNIVERSE_DOMAIN$/"
37
+
38
+ # @return [String]
39
+ # API key. Your API key identifies your project and provides you with API access,
40
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
41
+ attr_accessor :key
42
+
43
+ # @return [String]
44
+ # Available to use for quota purposes for server-side applications. Can be any
45
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
46
+ attr_accessor :quota_user
47
+
48
+ def initialize
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
50
+ client_name: 'google-apis-devicerun_v1',
51
+ client_version: Google::Apis::DevicerunV1::GEM_VERSION)
52
+ @batch_path = 'batch'
53
+ end
54
+
55
+ # Gets information about a location.
56
+ # @param [String] name
57
+ # Resource name for the location.
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
+ # @param [String] quota_user
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # @param [Google::Apis::RequestOptions] options
64
+ # Request-specific options
65
+ #
66
+ # @yield [result, err] Result & error if block supplied
67
+ # @yieldparam result [Google::Apis::DevicerunV1::Location] parsed result object
68
+ # @yieldparam err [StandardError] error object if request failed
69
+ #
70
+ # @return [Google::Apis::DevicerunV1::Location]
71
+ #
72
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
75
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:get, 'v1/{+name}', options)
77
+ command.response_representation = Google::Apis::DevicerunV1::Location::Representation
78
+ command.response_class = Google::Apis::DevicerunV1::Location
79
+ command.params['name'] = name unless name.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Lists information about the supported locations for this service. This method
86
+ # lists locations based on the resource scope provided in the
87
+ # ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
88
+ # the method lists the public locations available to all projects. * **Project-
89
+ # specific locations**: If `name` follows the format `projects/`project``, the
90
+ # method lists locations visible to that specific project. This includes public,
91
+ # private, or other project-specific locations enabled for the project. For gRPC
92
+ # and client library implementations, the resource name is passed as the `name`
93
+ # field. For direct service calls, the resource name is incorporated into the
94
+ # request path based on the specific service implementation and version.
95
+ # @param [String] name
96
+ # The resource that owns the locations collection, if applicable.
97
+ # @param [Array<String>, String] extra_location_types
98
+ # Optional. Do not use this field unless explicitly documented otherwise. This
99
+ # is primarily for internal usage.
100
+ # @param [String] filter
101
+ # A filter to narrow down results to a preferred subset. The filtering language
102
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
103
+ # in [AIP-160](https://google.aip.dev/160).
104
+ # @param [Fixnum] page_size
105
+ # The maximum number of results to return. If not set, the service selects a
106
+ # default.
107
+ # @param [String] page_token
108
+ # A page token received from the `next_page_token` field in the response. Send
109
+ # that page token to receive the subsequent page.
110
+ # @param [String] fields
111
+ # Selector specifying which fields to include in a partial response.
112
+ # @param [String] quota_user
113
+ # Available to use for quota purposes for server-side applications. Can be any
114
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
115
+ # @param [Google::Apis::RequestOptions] options
116
+ # Request-specific options
117
+ #
118
+ # @yield [result, err] Result & error if block supplied
119
+ # @yieldparam result [Google::Apis::DevicerunV1::ListLocationsResponse] parsed result object
120
+ # @yieldparam err [StandardError] error object if request failed
121
+ #
122
+ # @return [Google::Apis::DevicerunV1::ListLocationsResponse]
123
+ #
124
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
125
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
126
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
127
+ def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
128
+ command = make_simple_command(:get, 'v1/{+name}/locations', options)
129
+ command.response_representation = Google::Apis::DevicerunV1::ListLocationsResponse::Representation
130
+ command.response_class = Google::Apis::DevicerunV1::ListLocationsResponse
131
+ command.params['name'] = name unless name.nil?
132
+ command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
133
+ command.query['filter'] = filter unless filter.nil?
134
+ command.query['pageSize'] = page_size unless page_size.nil?
135
+ command.query['pageToken'] = page_token unless page_token.nil?
136
+ command.query['fields'] = fields unless fields.nil?
137
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
138
+ execute_or_queue_command(command, &block)
139
+ end
140
+
141
+ # Returns information about a specific device.
142
+ # @param [String] name
143
+ # Required. The name of the device. Format: `projects/`project`/locations/global/
144
+ # devices/`device``.
145
+ # @param [String] fields
146
+ # Selector specifying which fields to include in a partial response.
147
+ # @param [String] quota_user
148
+ # Available to use for quota purposes for server-side applications. Can be any
149
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
150
+ # @param [Google::Apis::RequestOptions] options
151
+ # Request-specific options
152
+ #
153
+ # @yield [result, err] Result & error if block supplied
154
+ # @yieldparam result [Google::Apis::DevicerunV1::CatalogDevice] parsed result object
155
+ # @yieldparam err [StandardError] error object if request failed
156
+ #
157
+ # @return [Google::Apis::DevicerunV1::CatalogDevice]
158
+ #
159
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
160
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
161
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
162
+ def get_project_location_device(name, fields: nil, quota_user: nil, options: nil, &block)
163
+ command = make_simple_command(:get, 'v1/{+name}', options)
164
+ command.response_representation = Google::Apis::DevicerunV1::CatalogDevice::Representation
165
+ command.response_class = Google::Apis::DevicerunV1::CatalogDevice
166
+ command.params['name'] = name unless name.nil?
167
+ command.query['fields'] = fields unless fields.nil?
168
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
169
+ execute_or_queue_command(command, &block)
170
+ end
171
+
172
+ # Lists all devices.
173
+ # @param [String] parent
174
+ # Required. The parent of the collection of devices. Format: `projects/`project`/
175
+ # locations/global`.
176
+ # @param [String] filter
177
+ # Optional. An AIP-160 (https://google.aip.dev/160) filter expression
178
+ # restricting which devices are returned. An empty filter returns all devices.
179
+ # Filtering is supported over the `Device` fields, including nested fields via
180
+ # dot-path. Enum and string values must be double-quoted. Examples: * `platform =
181
+ # "ANDROID"` * `platform = "ANDROID" AND os_version = "34"` * `hardware_type = "
182
+ # PHYSICAL" AND form_factor = "PHONE"` * `android_details.build_type = "
183
+ # userdebug"` * `availability.capacity = "HIGH"`
184
+ # @param [Fixnum] page_size
185
+ # Optional. The maximum number of devices to return. The server may return fewer
186
+ # items than this value.
187
+ # @param [String] page_token
188
+ # Optional. A page token, received from a previous `ListDevices` call. Provide
189
+ # this to receive the subsequent page. When paginating, all other parameters
190
+ # provided to `ListDevices` must match the call that provided the page token.
191
+ # @param [String] fields
192
+ # Selector specifying which fields to include in a partial response.
193
+ # @param [String] quota_user
194
+ # Available to use for quota purposes for server-side applications. Can be any
195
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
196
+ # @param [Google::Apis::RequestOptions] options
197
+ # Request-specific options
198
+ #
199
+ # @yield [result, err] Result & error if block supplied
200
+ # @yieldparam result [Google::Apis::DevicerunV1::CatalogListDevicesResponse] parsed result object
201
+ # @yieldparam err [StandardError] error object if request failed
202
+ #
203
+ # @return [Google::Apis::DevicerunV1::CatalogListDevicesResponse]
204
+ #
205
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
206
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
207
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
208
+ def list_project_location_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
209
+ command = make_simple_command(:get, 'v1/{+parent}/devices', options)
210
+ command.response_representation = Google::Apis::DevicerunV1::CatalogListDevicesResponse::Representation
211
+ command.response_class = Google::Apis::DevicerunV1::CatalogListDevicesResponse
212
+ command.params['parent'] = parent unless parent.nil?
213
+ command.query['filter'] = filter unless filter.nil?
214
+ command.query['pageSize'] = page_size unless page_size.nil?
215
+ command.query['pageToken'] = page_token unless page_token.nil?
216
+ command.query['fields'] = fields unless fields.nil?
217
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
218
+ execute_or_queue_command(command, &block)
219
+ end
220
+
221
+ # Starts asynchronous cancellation on a long-running operation. The server makes
222
+ # a best effort to cancel the operation, but success is not guaranteed. If the
223
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
224
+ # Clients can use Operations.GetOperation or other methods to check whether the
225
+ # cancellation succeeded or whether the operation completed despite cancellation.
226
+ # On successful cancellation, the operation is not deleted; instead, it becomes
227
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
228
+ # , corresponding to `Code.CANCELLED`.
229
+ # @param [String] name
230
+ # The name of the operation resource to be cancelled.
231
+ # @param [Google::Apis::DevicerunV1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
232
+ # @param [String] fields
233
+ # Selector specifying which fields to include in a partial response.
234
+ # @param [String] quota_user
235
+ # Available to use for quota purposes for server-side applications. Can be any
236
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
237
+ # @param [Google::Apis::RequestOptions] options
238
+ # Request-specific options
239
+ #
240
+ # @yield [result, err] Result & error if block supplied
241
+ # @yieldparam result [Google::Apis::DevicerunV1::Empty] parsed result object
242
+ # @yieldparam err [StandardError] error object if request failed
243
+ #
244
+ # @return [Google::Apis::DevicerunV1::Empty]
245
+ #
246
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
247
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
248
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
249
+ def cancel_project_location_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
250
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
251
+ command.request_representation = Google::Apis::DevicerunV1::GoogleLongrunningCancelOperationRequest::Representation
252
+ command.request_object = google_longrunning_cancel_operation_request_object
253
+ command.response_representation = Google::Apis::DevicerunV1::Empty::Representation
254
+ command.response_class = Google::Apis::DevicerunV1::Empty
255
+ command.params['name'] = name unless name.nil?
256
+ command.query['fields'] = fields unless fields.nil?
257
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
258
+ execute_or_queue_command(command, &block)
259
+ end
260
+
261
+ # Deletes a long-running operation. This method indicates that the client is no
262
+ # longer interested in the operation result. It does not cancel the operation.
263
+ # If the server doesn't support this method, it returns `google.rpc.Code.
264
+ # UNIMPLEMENTED`.
265
+ # @param [String] name
266
+ # The name of the operation resource to be deleted.
267
+ # @param [String] fields
268
+ # Selector specifying which fields to include in a partial response.
269
+ # @param [String] quota_user
270
+ # Available to use for quota purposes for server-side applications. Can be any
271
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
272
+ # @param [Google::Apis::RequestOptions] options
273
+ # Request-specific options
274
+ #
275
+ # @yield [result, err] Result & error if block supplied
276
+ # @yieldparam result [Google::Apis::DevicerunV1::Empty] parsed result object
277
+ # @yieldparam err [StandardError] error object if request failed
278
+ #
279
+ # @return [Google::Apis::DevicerunV1::Empty]
280
+ #
281
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
282
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
283
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
284
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
285
+ command = make_simple_command(:delete, 'v1/{+name}', options)
286
+ command.response_representation = Google::Apis::DevicerunV1::Empty::Representation
287
+ command.response_class = Google::Apis::DevicerunV1::Empty
288
+ command.params['name'] = name unless name.nil?
289
+ command.query['fields'] = fields unless fields.nil?
290
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
291
+ execute_or_queue_command(command, &block)
292
+ end
293
+
294
+ # Gets the latest state of a long-running operation. Clients can use this method
295
+ # to poll the operation result at intervals as recommended by the API service.
296
+ # @param [String] name
297
+ # The name of the operation resource.
298
+ # @param [String] fields
299
+ # Selector specifying which fields to include in a partial response.
300
+ # @param [String] quota_user
301
+ # Available to use for quota purposes for server-side applications. Can be any
302
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
303
+ # @param [Google::Apis::RequestOptions] options
304
+ # Request-specific options
305
+ #
306
+ # @yield [result, err] Result & error if block supplied
307
+ # @yieldparam result [Google::Apis::DevicerunV1::GoogleLongrunningOperation] parsed result object
308
+ # @yieldparam err [StandardError] error object if request failed
309
+ #
310
+ # @return [Google::Apis::DevicerunV1::GoogleLongrunningOperation]
311
+ #
312
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
313
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
314
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
315
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
316
+ command = make_simple_command(:get, 'v1/{+name}', options)
317
+ command.response_representation = Google::Apis::DevicerunV1::GoogleLongrunningOperation::Representation
318
+ command.response_class = Google::Apis::DevicerunV1::GoogleLongrunningOperation
319
+ command.params['name'] = name unless name.nil?
320
+ command.query['fields'] = fields unless fields.nil?
321
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
322
+ execute_or_queue_command(command, &block)
323
+ end
324
+
325
+ # Lists operations that match the specified filter in the request. If the server
326
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
327
+ # @param [String] name
328
+ # The name of the operation's parent resource.
329
+ # @param [String] filter
330
+ # The standard list filter.
331
+ # @param [Fixnum] page_size
332
+ # The standard list page size.
333
+ # @param [String] page_token
334
+ # The standard list page token.
335
+ # @param [Boolean] return_partial_success
336
+ # When set to `true`, operations that are reachable are returned as normal, and
337
+ # those that are unreachable are returned in the ListOperationsResponse.
338
+ # unreachable field. This can only be `true` when reading across collections.
339
+ # For example, when `parent` is set to `"projects/example/locations/-"`. This
340
+ # field is not supported by default and will result in an `UNIMPLEMENTED` error
341
+ # if set unless explicitly documented otherwise in service or product specific
342
+ # documentation.
343
+ # @param [String] fields
344
+ # Selector specifying which fields to include in a partial response.
345
+ # @param [String] quota_user
346
+ # Available to use for quota purposes for server-side applications. Can be any
347
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
348
+ # @param [Google::Apis::RequestOptions] options
349
+ # Request-specific options
350
+ #
351
+ # @yield [result, err] Result & error if block supplied
352
+ # @yieldparam result [Google::Apis::DevicerunV1::GoogleLongrunningListOperationsResponse] parsed result object
353
+ # @yieldparam err [StandardError] error object if request failed
354
+ #
355
+ # @return [Google::Apis::DevicerunV1::GoogleLongrunningListOperationsResponse]
356
+ #
357
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
358
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
359
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
360
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
361
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
362
+ command.response_representation = Google::Apis::DevicerunV1::GoogleLongrunningListOperationsResponse::Representation
363
+ command.response_class = Google::Apis::DevicerunV1::GoogleLongrunningListOperationsResponse
364
+ command.params['name'] = name unless name.nil?
365
+ command.query['filter'] = filter unless filter.nil?
366
+ command.query['pageSize'] = page_size unless page_size.nil?
367
+ command.query['pageToken'] = page_token unless page_token.nil?
368
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
369
+ command.query['fields'] = fields unless fields.nil?
370
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
371
+ execute_or_queue_command(command, &block)
372
+ end
373
+
374
+ # Returns information about a specific software version.
375
+ # @param [String] name
376
+ # Required. The name of the software version. Format: `projects/`project`/
377
+ # locations/global/softwareVersions/`software_version``.
378
+ # @param [String] fields
379
+ # Selector specifying which fields to include in a partial response.
380
+ # @param [String] quota_user
381
+ # Available to use for quota purposes for server-side applications. Can be any
382
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
383
+ # @param [Google::Apis::RequestOptions] options
384
+ # Request-specific options
385
+ #
386
+ # @yield [result, err] Result & error if block supplied
387
+ # @yieldparam result [Google::Apis::DevicerunV1::CatalogSoftwareVersion] parsed result object
388
+ # @yieldparam err [StandardError] error object if request failed
389
+ #
390
+ # @return [Google::Apis::DevicerunV1::CatalogSoftwareVersion]
391
+ #
392
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
393
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
394
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
395
+ def get_project_location_software_version(name, fields: nil, quota_user: nil, options: nil, &block)
396
+ command = make_simple_command(:get, 'v1/{+name}', options)
397
+ command.response_representation = Google::Apis::DevicerunV1::CatalogSoftwareVersion::Representation
398
+ command.response_class = Google::Apis::DevicerunV1::CatalogSoftwareVersion
399
+ command.params['name'] = name unless name.nil?
400
+ command.query['fields'] = fields unless fields.nil?
401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
402
+ execute_or_queue_command(command, &block)
403
+ end
404
+
405
+ # Lists all software versions.
406
+ # @param [String] parent
407
+ # Required. The parent of the collection of software versions. Format: `projects/
408
+ # `project`/locations/global`.
409
+ # @param [String] filter
410
+ # Optional. An AIP-160 (https://google.aip.dev/160) filter expression
411
+ # restricting which software versions are returned. An empty filter returns all
412
+ # software versions. Filtering is supported over the `SoftwareVersion` fields,
413
+ # including nested fields via dot-path. Enum and string values must be double-
414
+ # quoted. Examples: * `software_type = "ANDROIDX_TEST_ORCHESTRATOR"` * `
415
+ # software_type = "ANDROIDX_TEST_ORCHESTRATOR" AND is_default = true` * `
416
+ # lifecycle.state = "ACTIVE"` * `version = "1.4.1"`
417
+ # @param [Fixnum] page_size
418
+ # Optional. The maximum number of software versions to return. The server may
419
+ # return fewer items than this value.
420
+ # @param [String] page_token
421
+ # Optional. A page token, received from a previous `ListSoftwareVersions` call.
422
+ # Provide this to receive the subsequent page. When paginating, all other
423
+ # parameters provided to `ListSoftwareVersions` must match the call that
424
+ # provided the page token.
425
+ # @param [String] fields
426
+ # Selector specifying which fields to include in a partial response.
427
+ # @param [String] quota_user
428
+ # Available to use for quota purposes for server-side applications. Can be any
429
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
430
+ # @param [Google::Apis::RequestOptions] options
431
+ # Request-specific options
432
+ #
433
+ # @yield [result, err] Result & error if block supplied
434
+ # @yieldparam result [Google::Apis::DevicerunV1::CatalogListSoftwareVersionsResponse] parsed result object
435
+ # @yieldparam err [StandardError] error object if request failed
436
+ #
437
+ # @return [Google::Apis::DevicerunV1::CatalogListSoftwareVersionsResponse]
438
+ #
439
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
440
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
441
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
442
+ def list_project_location_software_versions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
443
+ command = make_simple_command(:get, 'v1/{+parent}/softwareVersions', options)
444
+ command.response_representation = Google::Apis::DevicerunV1::CatalogListSoftwareVersionsResponse::Representation
445
+ command.response_class = Google::Apis::DevicerunV1::CatalogListSoftwareVersionsResponse
446
+ command.params['parent'] = parent unless parent.nil?
447
+ command.query['filter'] = filter unless filter.nil?
448
+ command.query['pageSize'] = page_size unless page_size.nil?
449
+ command.query['pageToken'] = page_token unless page_token.nil?
450
+ command.query['fields'] = fields unless fields.nil?
451
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
452
+ execute_or_queue_command(command, &block)
453
+ end
454
+
455
+ protected
456
+
457
+ def apply_command_defaults(command)
458
+ command.query['key'] = key unless key.nil?
459
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
460
+ end
461
+ end
462
+ end
463
+ end
464
+ end
@@ -0,0 +1,37 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/devicerun_v1/service.rb'
16
+ require 'google/apis/devicerun_v1/classes.rb'
17
+ require 'google/apis/devicerun_v1/representations.rb'
18
+ require 'google/apis/devicerun_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Device Run API
23
+ #
24
+ # The Device Run API allows management, scheduling, and execution of automated
25
+ # sessions and workloads across device catalogs.
26
+ #
27
+ # @see https://docs.cloud.google.com/developer-device-platform/device-run
28
+ module DevicerunV1
29
+ # Version of the Device Run API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1'
32
+
33
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/devicerun_v1"
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google-apis-devicerun_v1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Google LLC
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: google-apis-core
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: 0.15.0
19
+ - - "<"
20
+ - !ruby/object:Gem::Version
21
+ version: 2.a
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: 0.15.0
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: 2.a
32
+ description: This is the simple REST client for Device Run API V1. Simple REST clients
33
+ are Ruby client libraries that provide access to Google services via their HTTP
34
+ REST API endpoints. These libraries are generated and updated automatically based
35
+ on the discovery documents published by the service, and they handle most concerns
36
+ such as authentication, pagination, retry, timeouts, and logging. You can use this
37
+ client to access the Device Run API, but note that some services may provide a separate
38
+ modern client that is easier to use.
39
+ email: googleapis-packages@google.com
40
+ executables: []
41
+ extensions: []
42
+ extra_rdoc_files: []
43
+ files:
44
+ - ".yardopts"
45
+ - CHANGELOG.md
46
+ - LICENSE.md
47
+ - OVERVIEW.md
48
+ - lib/google-apis-devicerun_v1.rb
49
+ - lib/google/apis/devicerun_v1.rb
50
+ - lib/google/apis/devicerun_v1/classes.rb
51
+ - lib/google/apis/devicerun_v1/gem_version.rb
52
+ - lib/google/apis/devicerun_v1/representations.rb
53
+ - lib/google/apis/devicerun_v1/service.rb
54
+ homepage: https://github.com/google/google-api-ruby-client
55
+ licenses:
56
+ - Apache-2.0
57
+ metadata:
58
+ bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-devicerun_v1/CHANGELOG.md
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-devicerun_v1/v0.1.0
61
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-devicerun_v1
62
+ rdoc_options: []
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '3.2'
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ requirements: []
76
+ rubygems_version: 3.6.9
77
+ specification_version: 4
78
+ summary: Simple REST client for Device Run API V1
79
+ test_files: []