google-apis-sasportal_v1alpha1 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,2285 @@
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 SasportalV1alpha1
23
+ # SAS Portal API
24
+ #
25
+ #
26
+ #
27
+ # @example
28
+ # require 'google/apis/sasportal_v1alpha1'
29
+ #
30
+ # Sasportal = Google::Apis::SasportalV1alpha1 # Alias the module
31
+ # service = Sasportal::SasportalService.new
32
+ #
33
+ # @see https://developers.google.com/spectrum-access-system/
34
+ class SasportalService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://sasportal.googleapis.com/', '',
47
+ client_name: 'google-apis-sasportal_v1alpha1',
48
+ client_version: Google::Apis::SasportalV1alpha1::GEM_VERSION)
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Returns a requested customer.
53
+ # @param [String] name
54
+ # Required. The name of the customer.
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
57
+ # @param [String] quota_user
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [Google::Apis::RequestOptions] options
61
+ # Request-specific options
62
+ #
63
+ # @yield [result, err] Result & error if block supplied
64
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalCustomer] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalCustomer]
68
+ #
69
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
72
+ def get_customer(name, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
74
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalCustomer::Representation
75
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalCustomer
76
+ command.params['name'] = name unless name.nil?
77
+ command.query['fields'] = fields unless fields.nil?
78
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
79
+ execute_or_queue_command(command, &block)
80
+ end
81
+
82
+ # Returns a list of requested customers.
83
+ # @param [Fixnum] page_size
84
+ # The maximum number of customers to return in the response.
85
+ # @param [String] page_token
86
+ # A pagination token returned from a previous call to ListCustomers method that
87
+ # indicates where this listing should continue from.
88
+ # @param [String] fields
89
+ # Selector specifying which fields to include in a partial response.
90
+ # @param [String] quota_user
91
+ # Available to use for quota purposes for server-side applications. Can be any
92
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
93
+ # @param [Google::Apis::RequestOptions] options
94
+ # Request-specific options
95
+ #
96
+ # @yield [result, err] Result & error if block supplied
97
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListCustomersResponse] parsed result object
98
+ # @yieldparam err [StandardError] error object if request failed
99
+ #
100
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListCustomersResponse]
101
+ #
102
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
103
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
104
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
105
+ def list_customers(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
106
+ command = make_simple_command(:get, 'v1alpha1/customers', options)
107
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListCustomersResponse::Representation
108
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListCustomersResponse
109
+ command.query['pageSize'] = page_size unless page_size.nil?
110
+ command.query['pageToken'] = page_token unless page_token.nil?
111
+ command.query['fields'] = fields unless fields.nil?
112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
113
+ execute_or_queue_command(command, &block)
114
+ end
115
+
116
+ # Updates an existing customer.
117
+ # @param [String] name
118
+ # Output only. Resource name of the customer.
119
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalCustomer] sas_portal_customer_object
120
+ # @param [String] update_mask
121
+ # Fields to be updated.
122
+ # @param [String] fields
123
+ # Selector specifying which fields to include in a partial response.
124
+ # @param [String] quota_user
125
+ # Available to use for quota purposes for server-side applications. Can be any
126
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
127
+ # @param [Google::Apis::RequestOptions] options
128
+ # Request-specific options
129
+ #
130
+ # @yield [result, err] Result & error if block supplied
131
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalCustomer] parsed result object
132
+ # @yieldparam err [StandardError] error object if request failed
133
+ #
134
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalCustomer]
135
+ #
136
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
137
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
138
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
139
+ def patch_customer(name, sas_portal_customer_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
140
+ command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
141
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalCustomer::Representation
142
+ command.request_object = sas_portal_customer_object
143
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalCustomer::Representation
144
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalCustomer
145
+ command.params['name'] = name unless name.nil?
146
+ command.query['updateMask'] = update_mask unless update_mask.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
+ # Moves a deployment under another node or customer.
153
+ # @param [String] name
154
+ # Required. The name of the deployment to move.
155
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalMoveDeploymentRequest] sas_portal_move_deployment_request_object
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::SasportalV1alpha1::SasPortalOperation] parsed result object
166
+ # @yieldparam err [StandardError] error object if request failed
167
+ #
168
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalOperation]
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 move_customer_deployment(name, sas_portal_move_deployment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
174
+ command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
175
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalMoveDeploymentRequest::Representation
176
+ command.request_object = sas_portal_move_deployment_request_object
177
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalOperation::Representation
178
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalOperation
179
+ command.params['name'] = name unless name.nil?
180
+ command.query['fields'] = fields unless fields.nil?
181
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
182
+ execute_or_queue_command(command, &block)
183
+ end
184
+
185
+ # Creates a device under a node or customer.
186
+ # @param [String] parent
187
+ # Required. The name of the parent resource.
188
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDevice] sas_portal_device_object
189
+ # @param [String] fields
190
+ # Selector specifying which fields to include in a partial response.
191
+ # @param [String] quota_user
192
+ # Available to use for quota purposes for server-side applications. Can be any
193
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
194
+ # @param [Google::Apis::RequestOptions] options
195
+ # Request-specific options
196
+ #
197
+ # @yield [result, err] Result & error if block supplied
198
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
199
+ # @yieldparam err [StandardError] error object if request failed
200
+ #
201
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
202
+ #
203
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
204
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
205
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
206
+ def create_customer_deployment_device(parent, sas_portal_device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
207
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices', options)
208
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
209
+ command.request_object = sas_portal_device_object
210
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
211
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
212
+ command.params['parent'] = parent unless parent.nil?
213
+ command.query['fields'] = fields unless fields.nil?
214
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
215
+ execute_or_queue_command(command, &block)
216
+ end
217
+
218
+ # Creates a signed device under a node or customer.
219
+ # @param [String] parent
220
+ # Required. The name of the parent resource.
221
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_request_object
222
+ # @param [String] fields
223
+ # Selector specifying which fields to include in a partial response.
224
+ # @param [String] quota_user
225
+ # Available to use for quota purposes for server-side applications. Can be any
226
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
227
+ # @param [Google::Apis::RequestOptions] options
228
+ # Request-specific options
229
+ #
230
+ # @yield [result, err] Result & error if block supplied
231
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
232
+ # @yieldparam err [StandardError] error object if request failed
233
+ #
234
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
235
+ #
236
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
237
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
238
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
239
+ def create_customer_deployment_device_signed(parent, sas_portal_create_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
240
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:createSigned', options)
241
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest::Representation
242
+ command.request_object = sas_portal_create_signed_device_request_object
243
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
244
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
245
+ command.params['parent'] = parent unless parent.nil?
246
+ command.query['fields'] = fields unless fields.nil?
247
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
248
+ execute_or_queue_command(command, &block)
249
+ end
250
+
251
+ # Lists devices under a node or customer.
252
+ # @param [String] parent
253
+ # Required. The name of the parent resource.
254
+ # @param [String] filter
255
+ # The filter expression. The filter should have one of the following formats: "
256
+ # sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
257
+ # device. The filter is case insensitive.
258
+ # @param [Fixnum] page_size
259
+ # The maximum number of devices to return in the response. If empty or zero, all
260
+ # devices will be listed. Must be in the range [0, 1000].
261
+ # @param [String] page_token
262
+ # A pagination token returned from a previous call to ListDevices that indicates
263
+ # where this listing should continue from.
264
+ # @param [String] fields
265
+ # Selector specifying which fields to include in a partial response.
266
+ # @param [String] quota_user
267
+ # Available to use for quota purposes for server-side applications. Can be any
268
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
269
+ # @param [Google::Apis::RequestOptions] options
270
+ # Request-specific options
271
+ #
272
+ # @yield [result, err] Result & error if block supplied
273
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse] parsed result object
274
+ # @yieldparam err [StandardError] error object if request failed
275
+ #
276
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse]
277
+ #
278
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
279
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
280
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
281
+ def list_customer_deployment_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
282
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/devices', options)
283
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse::Representation
284
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse
285
+ command.params['parent'] = parent unless parent.nil?
286
+ command.query['filter'] = filter unless filter.nil?
287
+ command.query['pageSize'] = page_size unless page_size.nil?
288
+ command.query['pageToken'] = page_token unless page_token.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
+ # Creates a device under a node or customer. Returned devices are unordered.
295
+ # @param [String] parent
296
+ # Required. The name of the parent resource.
297
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceRequest] sas_portal_bulk_create_device_request_object
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::SasportalV1alpha1::SasPortalBulkCreateDeviceResponse] parsed result object
308
+ # @yieldparam err [StandardError] error object if request failed
309
+ #
310
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceResponse]
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 bulk_customer_device(parent, sas_portal_bulk_create_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
316
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:bulk', options)
317
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceRequest::Representation
318
+ command.request_object = sas_portal_bulk_create_device_request_object
319
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceResponse::Representation
320
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceResponse
321
+ command.params['parent'] = parent unless parent.nil?
322
+ command.query['fields'] = fields unless fields.nil?
323
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
324
+ execute_or_queue_command(command, &block)
325
+ end
326
+
327
+ # Creates a device under a node or customer.
328
+ # @param [String] parent
329
+ # Required. The name of the parent resource.
330
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDevice] sas_portal_device_object
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::SasportalV1alpha1::SasPortalDevice] parsed result object
341
+ # @yieldparam err [StandardError] error object if request failed
342
+ #
343
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
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 create_customer_device(parent, sas_portal_device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
349
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices', options)
350
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
351
+ command.request_object = sas_portal_device_object
352
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
353
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
354
+ command.params['parent'] = parent unless parent.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
+ # Creates a signed device under a node or customer.
361
+ # @param [String] parent
362
+ # Required. The name of the parent resource.
363
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_request_object
364
+ # @param [String] fields
365
+ # Selector specifying which fields to include in a partial response.
366
+ # @param [String] quota_user
367
+ # Available to use for quota purposes for server-side applications. Can be any
368
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
369
+ # @param [Google::Apis::RequestOptions] options
370
+ # Request-specific options
371
+ #
372
+ # @yield [result, err] Result & error if block supplied
373
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
374
+ # @yieldparam err [StandardError] error object if request failed
375
+ #
376
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
377
+ #
378
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
379
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
380
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
381
+ def create_customer_device_signed(parent, sas_portal_create_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
382
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:createSigned', options)
383
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest::Representation
384
+ command.request_object = sas_portal_create_signed_device_request_object
385
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
386
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
387
+ command.params['parent'] = parent unless parent.nil?
388
+ command.query['fields'] = fields unless fields.nil?
389
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
390
+ execute_or_queue_command(command, &block)
391
+ end
392
+
393
+ # Deletes a device.
394
+ # @param [String] name
395
+ # Required. The name of the device.
396
+ # @param [String] fields
397
+ # Selector specifying which fields to include in a partial response.
398
+ # @param [String] quota_user
399
+ # Available to use for quota purposes for server-side applications. Can be any
400
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
401
+ # @param [Google::Apis::RequestOptions] options
402
+ # Request-specific options
403
+ #
404
+ # @yield [result, err] Result & error if block supplied
405
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalEmpty] parsed result object
406
+ # @yieldparam err [StandardError] error object if request failed
407
+ #
408
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
409
+ #
410
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
411
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
412
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
413
+ def delete_customer_device(name, fields: nil, quota_user: nil, options: nil, &block)
414
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
415
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
416
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
417
+ command.params['name'] = name unless name.nil?
418
+ command.query['fields'] = fields unless fields.nil?
419
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
420
+ execute_or_queue_command(command, &block)
421
+ end
422
+
423
+ # Gets details about a device.
424
+ # @param [String] name
425
+ # Required. The name of the device.
426
+ # @param [String] fields
427
+ # Selector specifying which fields to include in a partial response.
428
+ # @param [String] quota_user
429
+ # Available to use for quota purposes for server-side applications. Can be any
430
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
431
+ # @param [Google::Apis::RequestOptions] options
432
+ # Request-specific options
433
+ #
434
+ # @yield [result, err] Result & error if block supplied
435
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
436
+ # @yieldparam err [StandardError] error object if request failed
437
+ #
438
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
439
+ #
440
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
441
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
442
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
443
+ def get_customer_device(name, fields: nil, quota_user: nil, options: nil, &block)
444
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
445
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
446
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
447
+ command.params['name'] = name unless name.nil?
448
+ command.query['fields'] = fields unless fields.nil?
449
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
450
+ execute_or_queue_command(command, &block)
451
+ end
452
+
453
+ # Lists devices under a node or customer.
454
+ # @param [String] parent
455
+ # Required. The name of the parent resource.
456
+ # @param [String] filter
457
+ # The filter expression. The filter should have one of the following formats: "
458
+ # sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
459
+ # device. The filter is case insensitive.
460
+ # @param [Fixnum] page_size
461
+ # The maximum number of devices to return in the response. If empty or zero, all
462
+ # devices will be listed. Must be in the range [0, 1000].
463
+ # @param [String] page_token
464
+ # A pagination token returned from a previous call to ListDevices that indicates
465
+ # where this listing should continue from.
466
+ # @param [String] fields
467
+ # Selector specifying which fields to include in a partial response.
468
+ # @param [String] quota_user
469
+ # Available to use for quota purposes for server-side applications. Can be any
470
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
471
+ # @param [Google::Apis::RequestOptions] options
472
+ # Request-specific options
473
+ #
474
+ # @yield [result, err] Result & error if block supplied
475
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse] parsed result object
476
+ # @yieldparam err [StandardError] error object if request failed
477
+ #
478
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse]
479
+ #
480
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
481
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
482
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
483
+ def list_customer_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
484
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/devices', options)
485
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse::Representation
486
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse
487
+ command.params['parent'] = parent unless parent.nil?
488
+ command.query['filter'] = filter unless filter.nil?
489
+ command.query['pageSize'] = page_size unless page_size.nil?
490
+ command.query['pageToken'] = page_token unless page_token.nil?
491
+ command.query['fields'] = fields unless fields.nil?
492
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
493
+ execute_or_queue_command(command, &block)
494
+ end
495
+
496
+ # Moves a device under another node or customer.
497
+ # @param [String] name
498
+ # Required. The name of the device to move.
499
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalMoveDeviceRequest] sas_portal_move_device_request_object
500
+ # @param [String] fields
501
+ # Selector specifying which fields to include in a partial response.
502
+ # @param [String] quota_user
503
+ # Available to use for quota purposes for server-side applications. Can be any
504
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
505
+ # @param [Google::Apis::RequestOptions] options
506
+ # Request-specific options
507
+ #
508
+ # @yield [result, err] Result & error if block supplied
509
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalOperation] parsed result object
510
+ # @yieldparam err [StandardError] error object if request failed
511
+ #
512
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalOperation]
513
+ #
514
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
515
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
516
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
517
+ def move_customer_device(name, sas_portal_move_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
518
+ command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
519
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalMoveDeviceRequest::Representation
520
+ command.request_object = sas_portal_move_device_request_object
521
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalOperation::Representation
522
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalOperation
523
+ command.params['name'] = name unless name.nil?
524
+ command.query['fields'] = fields unless fields.nil?
525
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
526
+ execute_or_queue_command(command, &block)
527
+ end
528
+
529
+ # Updates a device.
530
+ # @param [String] name
531
+ # Output only. The resource path name.
532
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDevice] sas_portal_device_object
533
+ # @param [String] update_mask
534
+ # Fields to be updated.
535
+ # @param [String] fields
536
+ # Selector specifying which fields to include in a partial response.
537
+ # @param [String] quota_user
538
+ # Available to use for quota purposes for server-side applications. Can be any
539
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
540
+ # @param [Google::Apis::RequestOptions] options
541
+ # Request-specific options
542
+ #
543
+ # @yield [result, err] Result & error if block supplied
544
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
545
+ # @yieldparam err [StandardError] error object if request failed
546
+ #
547
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
548
+ #
549
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
550
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
551
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
552
+ def patch_customer_device(name, sas_portal_device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
553
+ command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
554
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
555
+ command.request_object = sas_portal_device_object
556
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
557
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
558
+ command.params['name'] = name unless name.nil?
559
+ command.query['updateMask'] = update_mask unless update_mask.nil?
560
+ command.query['fields'] = fields unless fields.nil?
561
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
562
+ execute_or_queue_command(command, &block)
563
+ end
564
+
565
+ # Signs a device.
566
+ # @param [String] name
567
+ # Output only. The resource path name.
568
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalSignDeviceRequest] sas_portal_sign_device_request_object
569
+ # @param [String] fields
570
+ # Selector specifying which fields to include in a partial response.
571
+ # @param [String] quota_user
572
+ # Available to use for quota purposes for server-side applications. Can be any
573
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
574
+ # @param [Google::Apis::RequestOptions] options
575
+ # Request-specific options
576
+ #
577
+ # @yield [result, err] Result & error if block supplied
578
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalEmpty] parsed result object
579
+ # @yieldparam err [StandardError] error object if request failed
580
+ #
581
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
582
+ #
583
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
584
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
585
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
586
+ def sign_customer_device_device(name, sas_portal_sign_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
587
+ command = make_simple_command(:post, 'v1alpha1/{+name}:signDevice', options)
588
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalSignDeviceRequest::Representation
589
+ command.request_object = sas_portal_sign_device_request_object
590
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
591
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
592
+ command.params['name'] = name unless name.nil?
593
+ command.query['fields'] = fields unless fields.nil?
594
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
595
+ execute_or_queue_command(command, &block)
596
+ end
597
+
598
+ # Updates a signed device.
599
+ # @param [String] name
600
+ # Required. The name of the device to update.
601
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalUpdateSignedDeviceRequest] sas_portal_update_signed_device_request_object
602
+ # @param [String] fields
603
+ # Selector specifying which fields to include in a partial response.
604
+ # @param [String] quota_user
605
+ # Available to use for quota purposes for server-side applications. Can be any
606
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
607
+ # @param [Google::Apis::RequestOptions] options
608
+ # Request-specific options
609
+ #
610
+ # @yield [result, err] Result & error if block supplied
611
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
612
+ # @yieldparam err [StandardError] error object if request failed
613
+ #
614
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
615
+ #
616
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
617
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
618
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
619
+ def update_customer_device_signed(name, sas_portal_update_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
620
+ command = make_simple_command(:patch, 'v1alpha1/{+name}:updateSigned', options)
621
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalUpdateSignedDeviceRequest::Representation
622
+ command.request_object = sas_portal_update_signed_device_request_object
623
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
624
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
625
+ command.params['name'] = name unless name.nil?
626
+ command.query['fields'] = fields unless fields.nil?
627
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
628
+ execute_or_queue_command(command, &block)
629
+ end
630
+
631
+ # Creates a new node.
632
+ # @param [String] parent
633
+ # Required. The parent resource name where the node is to be created.
634
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalNode] sas_portal_node_object
635
+ # @param [String] fields
636
+ # Selector specifying which fields to include in a partial response.
637
+ # @param [String] quota_user
638
+ # Available to use for quota purposes for server-side applications. Can be any
639
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
640
+ # @param [Google::Apis::RequestOptions] options
641
+ # Request-specific options
642
+ #
643
+ # @yield [result, err] Result & error if block supplied
644
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalNode] parsed result object
645
+ # @yieldparam err [StandardError] error object if request failed
646
+ #
647
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalNode]
648
+ #
649
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
650
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
651
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
652
+ def create_customer_node(parent, sas_portal_node_object = nil, fields: nil, quota_user: nil, options: nil, &block)
653
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/nodes', options)
654
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
655
+ command.request_object = sas_portal_node_object
656
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
657
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalNode
658
+ command.params['parent'] = parent unless parent.nil?
659
+ command.query['fields'] = fields unless fields.nil?
660
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
661
+ execute_or_queue_command(command, &block)
662
+ end
663
+
664
+ # Deletes a node.
665
+ # @param [String] name
666
+ # Required. The name of the node.
667
+ # @param [String] fields
668
+ # Selector specifying which fields to include in a partial response.
669
+ # @param [String] quota_user
670
+ # Available to use for quota purposes for server-side applications. Can be any
671
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
672
+ # @param [Google::Apis::RequestOptions] options
673
+ # Request-specific options
674
+ #
675
+ # @yield [result, err] Result & error if block supplied
676
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalEmpty] parsed result object
677
+ # @yieldparam err [StandardError] error object if request failed
678
+ #
679
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
680
+ #
681
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
682
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
683
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
684
+ def delete_customer_node(name, fields: nil, quota_user: nil, options: nil, &block)
685
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
686
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
687
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
688
+ command.params['name'] = name unless name.nil?
689
+ command.query['fields'] = fields unless fields.nil?
690
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
691
+ execute_or_queue_command(command, &block)
692
+ end
693
+
694
+ # Returns a requested node.
695
+ # @param [String] name
696
+ # Required. The name of the node.
697
+ # @param [String] fields
698
+ # Selector specifying which fields to include in a partial response.
699
+ # @param [String] quota_user
700
+ # Available to use for quota purposes for server-side applications. Can be any
701
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
702
+ # @param [Google::Apis::RequestOptions] options
703
+ # Request-specific options
704
+ #
705
+ # @yield [result, err] Result & error if block supplied
706
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalNode] parsed result object
707
+ # @yieldparam err [StandardError] error object if request failed
708
+ #
709
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalNode]
710
+ #
711
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
712
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
713
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
714
+ def get_customer_node(name, fields: nil, quota_user: nil, options: nil, &block)
715
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
716
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
717
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalNode
718
+ command.params['name'] = name unless name.nil?
719
+ command.query['fields'] = fields unless fields.nil?
720
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
721
+ execute_or_queue_command(command, &block)
722
+ end
723
+
724
+ # Lists nodes.
725
+ # @param [String] parent
726
+ # Required. The parent resource name, for example, "nodes/1".
727
+ # @param [Fixnum] page_size
728
+ # The maximum number of nodes to return in the response.
729
+ # @param [String] page_token
730
+ # A pagination token returned from a previous call to ListNodes method that
731
+ # indicates where this listing should continue from.
732
+ # @param [String] fields
733
+ # Selector specifying which fields to include in a partial response.
734
+ # @param [String] quota_user
735
+ # Available to use for quota purposes for server-side applications. Can be any
736
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
737
+ # @param [Google::Apis::RequestOptions] options
738
+ # Request-specific options
739
+ #
740
+ # @yield [result, err] Result & error if block supplied
741
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse] parsed result object
742
+ # @yieldparam err [StandardError] error object if request failed
743
+ #
744
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse]
745
+ #
746
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
747
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
748
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
749
+ def list_customer_nodes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
750
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/nodes', options)
751
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse::Representation
752
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse
753
+ command.params['parent'] = parent unless parent.nil?
754
+ command.query['pageSize'] = page_size unless page_size.nil?
755
+ command.query['pageToken'] = page_token unless page_token.nil?
756
+ command.query['fields'] = fields unless fields.nil?
757
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
758
+ execute_or_queue_command(command, &block)
759
+ end
760
+
761
+ # Moves a node under another node or customer.
762
+ # @param [String] name
763
+ # Required. The name of the node to move.
764
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalMoveNodeRequest] sas_portal_move_node_request_object
765
+ # @param [String] fields
766
+ # Selector specifying which fields to include in a partial response.
767
+ # @param [String] quota_user
768
+ # Available to use for quota purposes for server-side applications. Can be any
769
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
770
+ # @param [Google::Apis::RequestOptions] options
771
+ # Request-specific options
772
+ #
773
+ # @yield [result, err] Result & error if block supplied
774
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalOperation] parsed result object
775
+ # @yieldparam err [StandardError] error object if request failed
776
+ #
777
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalOperation]
778
+ #
779
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
780
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
781
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
782
+ def move_customer_node(name, sas_portal_move_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
783
+ command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
784
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalMoveNodeRequest::Representation
785
+ command.request_object = sas_portal_move_node_request_object
786
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalOperation::Representation
787
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalOperation
788
+ command.params['name'] = name unless name.nil?
789
+ command.query['fields'] = fields unless fields.nil?
790
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
791
+ execute_or_queue_command(command, &block)
792
+ end
793
+
794
+ # Updates an existing node.
795
+ # @param [String] name
796
+ # Output only. Resource name.
797
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalNode] sas_portal_node_object
798
+ # @param [String] update_mask
799
+ # Fields to be updated.
800
+ # @param [String] fields
801
+ # Selector specifying which fields to include in a partial response.
802
+ # @param [String] quota_user
803
+ # Available to use for quota purposes for server-side applications. Can be any
804
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
805
+ # @param [Google::Apis::RequestOptions] options
806
+ # Request-specific options
807
+ #
808
+ # @yield [result, err] Result & error if block supplied
809
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalNode] parsed result object
810
+ # @yieldparam err [StandardError] error object if request failed
811
+ #
812
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalNode]
813
+ #
814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
817
+ def patch_customer_node(name, sas_portal_node_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
818
+ command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
819
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
820
+ command.request_object = sas_portal_node_object
821
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
822
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalNode
823
+ command.params['name'] = name unless name.nil?
824
+ command.query['updateMask'] = update_mask unless update_mask.nil?
825
+ command.query['fields'] = fields unless fields.nil?
826
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
827
+ execute_or_queue_command(command, &block)
828
+ end
829
+
830
+ # Creates a device under a node or customer.
831
+ # @param [String] parent
832
+ # Required. The name of the parent resource.
833
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDevice] sas_portal_device_object
834
+ # @param [String] fields
835
+ # Selector specifying which fields to include in a partial response.
836
+ # @param [String] quota_user
837
+ # Available to use for quota purposes for server-side applications. Can be any
838
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
839
+ # @param [Google::Apis::RequestOptions] options
840
+ # Request-specific options
841
+ #
842
+ # @yield [result, err] Result & error if block supplied
843
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
844
+ # @yieldparam err [StandardError] error object if request failed
845
+ #
846
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
847
+ #
848
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
849
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
850
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
851
+ def create_customer_node_device(parent, sas_portal_device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
852
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices', options)
853
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
854
+ command.request_object = sas_portal_device_object
855
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
856
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
857
+ command.params['parent'] = parent unless parent.nil?
858
+ command.query['fields'] = fields unless fields.nil?
859
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
860
+ execute_or_queue_command(command, &block)
861
+ end
862
+
863
+ # Creates a signed device under a node or customer.
864
+ # @param [String] parent
865
+ # Required. The name of the parent resource.
866
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_request_object
867
+ # @param [String] fields
868
+ # Selector specifying which fields to include in a partial response.
869
+ # @param [String] quota_user
870
+ # Available to use for quota purposes for server-side applications. Can be any
871
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
872
+ # @param [Google::Apis::RequestOptions] options
873
+ # Request-specific options
874
+ #
875
+ # @yield [result, err] Result & error if block supplied
876
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
877
+ # @yieldparam err [StandardError] error object if request failed
878
+ #
879
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
880
+ #
881
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
882
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
883
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
884
+ def create_customer_node_device_signed(parent, sas_portal_create_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
885
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:createSigned', options)
886
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest::Representation
887
+ command.request_object = sas_portal_create_signed_device_request_object
888
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
889
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
890
+ command.params['parent'] = parent unless parent.nil?
891
+ command.query['fields'] = fields unless fields.nil?
892
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
893
+ execute_or_queue_command(command, &block)
894
+ end
895
+
896
+ # Lists devices under a node or customer.
897
+ # @param [String] parent
898
+ # Required. The name of the parent resource.
899
+ # @param [String] filter
900
+ # The filter expression. The filter should have one of the following formats: "
901
+ # sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
902
+ # device. The filter is case insensitive.
903
+ # @param [Fixnum] page_size
904
+ # The maximum number of devices to return in the response. If empty or zero, all
905
+ # devices will be listed. Must be in the range [0, 1000].
906
+ # @param [String] page_token
907
+ # A pagination token returned from a previous call to ListDevices that indicates
908
+ # where this listing should continue from.
909
+ # @param [String] fields
910
+ # Selector specifying which fields to include in a partial response.
911
+ # @param [String] quota_user
912
+ # Available to use for quota purposes for server-side applications. Can be any
913
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
914
+ # @param [Google::Apis::RequestOptions] options
915
+ # Request-specific options
916
+ #
917
+ # @yield [result, err] Result & error if block supplied
918
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse] parsed result object
919
+ # @yieldparam err [StandardError] error object if request failed
920
+ #
921
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse]
922
+ #
923
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
924
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
925
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
926
+ def list_customer_node_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
927
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/devices', options)
928
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse::Representation
929
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse
930
+ command.params['parent'] = parent unless parent.nil?
931
+ command.query['filter'] = filter unless filter.nil?
932
+ command.query['pageSize'] = page_size unless page_size.nil?
933
+ command.query['pageToken'] = page_token unless page_token.nil?
934
+ command.query['fields'] = fields unless fields.nil?
935
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
936
+ execute_or_queue_command(command, &block)
937
+ end
938
+
939
+ # Creates a new node.
940
+ # @param [String] parent
941
+ # Required. The parent resource name where the node is to be created.
942
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalNode] sas_portal_node_object
943
+ # @param [String] fields
944
+ # Selector specifying which fields to include in a partial response.
945
+ # @param [String] quota_user
946
+ # Available to use for quota purposes for server-side applications. Can be any
947
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
948
+ # @param [Google::Apis::RequestOptions] options
949
+ # Request-specific options
950
+ #
951
+ # @yield [result, err] Result & error if block supplied
952
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalNode] parsed result object
953
+ # @yieldparam err [StandardError] error object if request failed
954
+ #
955
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalNode]
956
+ #
957
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
958
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
959
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
960
+ def create_customer_node_node(parent, sas_portal_node_object = nil, fields: nil, quota_user: nil, options: nil, &block)
961
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/nodes', options)
962
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
963
+ command.request_object = sas_portal_node_object
964
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
965
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalNode
966
+ command.params['parent'] = parent unless parent.nil?
967
+ command.query['fields'] = fields unless fields.nil?
968
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
969
+ execute_or_queue_command(command, &block)
970
+ end
971
+
972
+ # Lists nodes.
973
+ # @param [String] parent
974
+ # Required. The parent resource name, for example, "nodes/1".
975
+ # @param [Fixnum] page_size
976
+ # The maximum number of nodes to return in the response.
977
+ # @param [String] page_token
978
+ # A pagination token returned from a previous call to ListNodes method that
979
+ # indicates where this listing should continue from.
980
+ # @param [String] fields
981
+ # Selector specifying which fields to include in a partial response.
982
+ # @param [String] quota_user
983
+ # Available to use for quota purposes for server-side applications. Can be any
984
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
985
+ # @param [Google::Apis::RequestOptions] options
986
+ # Request-specific options
987
+ #
988
+ # @yield [result, err] Result & error if block supplied
989
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse] parsed result object
990
+ # @yieldparam err [StandardError] error object if request failed
991
+ #
992
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse]
993
+ #
994
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
995
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
996
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
997
+ def list_customer_node_nodes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
998
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/nodes', options)
999
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse::Representation
1000
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse
1001
+ command.params['parent'] = parent unless parent.nil?
1002
+ command.query['pageSize'] = page_size unless page_size.nil?
1003
+ command.query['pageToken'] = page_token unless page_token.nil?
1004
+ command.query['fields'] = fields unless fields.nil?
1005
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1006
+ execute_or_queue_command(command, &block)
1007
+ end
1008
+
1009
+ # Deletes a device.
1010
+ # @param [String] name
1011
+ # Required. The name of the device.
1012
+ # @param [String] fields
1013
+ # Selector specifying which fields to include in a partial response.
1014
+ # @param [String] quota_user
1015
+ # Available to use for quota purposes for server-side applications. Can be any
1016
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1017
+ # @param [Google::Apis::RequestOptions] options
1018
+ # Request-specific options
1019
+ #
1020
+ # @yield [result, err] Result & error if block supplied
1021
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalEmpty] parsed result object
1022
+ # @yieldparam err [StandardError] error object if request failed
1023
+ #
1024
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
1025
+ #
1026
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1027
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1028
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1029
+ def delete_deployment_device(name, fields: nil, quota_user: nil, options: nil, &block)
1030
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
1031
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
1032
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
1033
+ command.params['name'] = name unless name.nil?
1034
+ command.query['fields'] = fields unless fields.nil?
1035
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1036
+ execute_or_queue_command(command, &block)
1037
+ end
1038
+
1039
+ # Gets details about a device.
1040
+ # @param [String] name
1041
+ # Required. The name of the device.
1042
+ # @param [String] fields
1043
+ # Selector specifying which fields to include in a partial response.
1044
+ # @param [String] quota_user
1045
+ # Available to use for quota purposes for server-side applications. Can be any
1046
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1047
+ # @param [Google::Apis::RequestOptions] options
1048
+ # Request-specific options
1049
+ #
1050
+ # @yield [result, err] Result & error if block supplied
1051
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
1052
+ # @yieldparam err [StandardError] error object if request failed
1053
+ #
1054
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
1055
+ #
1056
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1057
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1058
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1059
+ def get_deployment_device(name, fields: nil, quota_user: nil, options: nil, &block)
1060
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
1061
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1062
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
1063
+ command.params['name'] = name unless name.nil?
1064
+ command.query['fields'] = fields unless fields.nil?
1065
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1066
+ execute_or_queue_command(command, &block)
1067
+ end
1068
+
1069
+ # Moves a device under another node or customer.
1070
+ # @param [String] name
1071
+ # Required. The name of the device to move.
1072
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalMoveDeviceRequest] sas_portal_move_device_request_object
1073
+ # @param [String] fields
1074
+ # Selector specifying which fields to include in a partial response.
1075
+ # @param [String] quota_user
1076
+ # Available to use for quota purposes for server-side applications. Can be any
1077
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1078
+ # @param [Google::Apis::RequestOptions] options
1079
+ # Request-specific options
1080
+ #
1081
+ # @yield [result, err] Result & error if block supplied
1082
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalOperation] parsed result object
1083
+ # @yieldparam err [StandardError] error object if request failed
1084
+ #
1085
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalOperation]
1086
+ #
1087
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1088
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1089
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1090
+ def move_deployment_device(name, sas_portal_move_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1091
+ command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
1092
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalMoveDeviceRequest::Representation
1093
+ command.request_object = sas_portal_move_device_request_object
1094
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalOperation::Representation
1095
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalOperation
1096
+ command.params['name'] = name unless name.nil?
1097
+ command.query['fields'] = fields unless fields.nil?
1098
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1099
+ execute_or_queue_command(command, &block)
1100
+ end
1101
+
1102
+ # Updates a device.
1103
+ # @param [String] name
1104
+ # Output only. The resource path name.
1105
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDevice] sas_portal_device_object
1106
+ # @param [String] update_mask
1107
+ # Fields to be updated.
1108
+ # @param [String] fields
1109
+ # Selector specifying which fields to include in a partial response.
1110
+ # @param [String] quota_user
1111
+ # Available to use for quota purposes for server-side applications. Can be any
1112
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1113
+ # @param [Google::Apis::RequestOptions] options
1114
+ # Request-specific options
1115
+ #
1116
+ # @yield [result, err] Result & error if block supplied
1117
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
1118
+ # @yieldparam err [StandardError] error object if request failed
1119
+ #
1120
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
1121
+ #
1122
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1123
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1124
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1125
+ def patch_deployment_device(name, sas_portal_device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1126
+ command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
1127
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1128
+ command.request_object = sas_portal_device_object
1129
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1130
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
1131
+ command.params['name'] = name unless name.nil?
1132
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1133
+ command.query['fields'] = fields unless fields.nil?
1134
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1135
+ execute_or_queue_command(command, &block)
1136
+ end
1137
+
1138
+ # Signs a device.
1139
+ # @param [String] name
1140
+ # Output only. The resource path name.
1141
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalSignDeviceRequest] sas_portal_sign_device_request_object
1142
+ # @param [String] fields
1143
+ # Selector specifying which fields to include in a partial response.
1144
+ # @param [String] quota_user
1145
+ # Available to use for quota purposes for server-side applications. Can be any
1146
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1147
+ # @param [Google::Apis::RequestOptions] options
1148
+ # Request-specific options
1149
+ #
1150
+ # @yield [result, err] Result & error if block supplied
1151
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalEmpty] parsed result object
1152
+ # @yieldparam err [StandardError] error object if request failed
1153
+ #
1154
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
1155
+ #
1156
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1157
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1158
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1159
+ def sign_deployment_device_device(name, sas_portal_sign_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1160
+ command = make_simple_command(:post, 'v1alpha1/{+name}:signDevice', options)
1161
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalSignDeviceRequest::Representation
1162
+ command.request_object = sas_portal_sign_device_request_object
1163
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
1164
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
1165
+ command.params['name'] = name unless name.nil?
1166
+ command.query['fields'] = fields unless fields.nil?
1167
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1168
+ execute_or_queue_command(command, &block)
1169
+ end
1170
+
1171
+ # Updates a signed device.
1172
+ # @param [String] name
1173
+ # Required. The name of the device to update.
1174
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalUpdateSignedDeviceRequest] sas_portal_update_signed_device_request_object
1175
+ # @param [String] fields
1176
+ # Selector specifying which fields to include in a partial response.
1177
+ # @param [String] quota_user
1178
+ # Available to use for quota purposes for server-side applications. Can be any
1179
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1180
+ # @param [Google::Apis::RequestOptions] options
1181
+ # Request-specific options
1182
+ #
1183
+ # @yield [result, err] Result & error if block supplied
1184
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
1185
+ # @yieldparam err [StandardError] error object if request failed
1186
+ #
1187
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
1188
+ #
1189
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1190
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1191
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1192
+ def update_deployment_device_signed(name, sas_portal_update_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1193
+ command = make_simple_command(:patch, 'v1alpha1/{+name}:updateSigned', options)
1194
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalUpdateSignedDeviceRequest::Representation
1195
+ command.request_object = sas_portal_update_signed_device_request_object
1196
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1197
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
1198
+ command.params['name'] = name unless name.nil?
1199
+ command.query['fields'] = fields unless fields.nil?
1200
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1201
+ execute_or_queue_command(command, &block)
1202
+ end
1203
+
1204
+ # Generates a secret to be used with the ValidateInstaller method
1205
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalGenerateSecretRequest] sas_portal_generate_secret_request_object
1206
+ # @param [String] fields
1207
+ # Selector specifying which fields to include in a partial response.
1208
+ # @param [String] quota_user
1209
+ # Available to use for quota purposes for server-side applications. Can be any
1210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1211
+ # @param [Google::Apis::RequestOptions] options
1212
+ # Request-specific options
1213
+ #
1214
+ # @yield [result, err] Result & error if block supplied
1215
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalGenerateSecretResponse] parsed result object
1216
+ # @yieldparam err [StandardError] error object if request failed
1217
+ #
1218
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalGenerateSecretResponse]
1219
+ #
1220
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1221
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1222
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1223
+ def generate_installer_secret(sas_portal_generate_secret_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1224
+ command = make_simple_command(:post, 'v1alpha1/installer:generateSecret', options)
1225
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalGenerateSecretRequest::Representation
1226
+ command.request_object = sas_portal_generate_secret_request_object
1227
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalGenerateSecretResponse::Representation
1228
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalGenerateSecretResponse
1229
+ command.query['fields'] = fields unless fields.nil?
1230
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1231
+ execute_or_queue_command(command, &block)
1232
+ end
1233
+
1234
+ # Validates the identity of a Certified Professional Installer (CPI).
1235
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalValidateInstallerRequest] sas_portal_validate_installer_request_object
1236
+ # @param [String] fields
1237
+ # Selector specifying which fields to include in a partial response.
1238
+ # @param [String] quota_user
1239
+ # Available to use for quota purposes for server-side applications. Can be any
1240
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1241
+ # @param [Google::Apis::RequestOptions] options
1242
+ # Request-specific options
1243
+ #
1244
+ # @yield [result, err] Result & error if block supplied
1245
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalValidateInstallerResponse] parsed result object
1246
+ # @yieldparam err [StandardError] error object if request failed
1247
+ #
1248
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalValidateInstallerResponse]
1249
+ #
1250
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1251
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1252
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1253
+ def validate_installer(sas_portal_validate_installer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1254
+ command = make_simple_command(:post, 'v1alpha1/installer:validate', options)
1255
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalValidateInstallerRequest::Representation
1256
+ command.request_object = sas_portal_validate_installer_request_object
1257
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalValidateInstallerResponse::Representation
1258
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalValidateInstallerResponse
1259
+ command.query['fields'] = fields unless fields.nil?
1260
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1261
+ execute_or_queue_command(command, &block)
1262
+ end
1263
+
1264
+ # Returns a requested node.
1265
+ # @param [String] name
1266
+ # Required. The name of the node.
1267
+ # @param [String] fields
1268
+ # Selector specifying which fields to include in a partial response.
1269
+ # @param [String] quota_user
1270
+ # Available to use for quota purposes for server-side applications. Can be any
1271
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1272
+ # @param [Google::Apis::RequestOptions] options
1273
+ # Request-specific options
1274
+ #
1275
+ # @yield [result, err] Result & error if block supplied
1276
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalNode] parsed result object
1277
+ # @yieldparam err [StandardError] error object if request failed
1278
+ #
1279
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalNode]
1280
+ #
1281
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1282
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1283
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1284
+ def get_node(name, fields: nil, quota_user: nil, options: nil, &block)
1285
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
1286
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
1287
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalNode
1288
+ command.params['name'] = name unless name.nil?
1289
+ command.query['fields'] = fields unless fields.nil?
1290
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1291
+ execute_or_queue_command(command, &block)
1292
+ end
1293
+
1294
+ # Moves a deployment under another node or customer.
1295
+ # @param [String] name
1296
+ # Required. The name of the deployment to move.
1297
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalMoveDeploymentRequest] sas_portal_move_deployment_request_object
1298
+ # @param [String] fields
1299
+ # Selector specifying which fields to include in a partial response.
1300
+ # @param [String] quota_user
1301
+ # Available to use for quota purposes for server-side applications. Can be any
1302
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1303
+ # @param [Google::Apis::RequestOptions] options
1304
+ # Request-specific options
1305
+ #
1306
+ # @yield [result, err] Result & error if block supplied
1307
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalOperation] parsed result object
1308
+ # @yieldparam err [StandardError] error object if request failed
1309
+ #
1310
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalOperation]
1311
+ #
1312
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1313
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1314
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1315
+ def move_node_deployment(name, sas_portal_move_deployment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1316
+ command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
1317
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalMoveDeploymentRequest::Representation
1318
+ command.request_object = sas_portal_move_deployment_request_object
1319
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalOperation::Representation
1320
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalOperation
1321
+ command.params['name'] = name unless name.nil?
1322
+ command.query['fields'] = fields unless fields.nil?
1323
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1324
+ execute_or_queue_command(command, &block)
1325
+ end
1326
+
1327
+ # Creates a device under a node or customer.
1328
+ # @param [String] parent
1329
+ # Required. The name of the parent resource.
1330
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDevice] sas_portal_device_object
1331
+ # @param [String] fields
1332
+ # Selector specifying which fields to include in a partial response.
1333
+ # @param [String] quota_user
1334
+ # Available to use for quota purposes for server-side applications. Can be any
1335
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1336
+ # @param [Google::Apis::RequestOptions] options
1337
+ # Request-specific options
1338
+ #
1339
+ # @yield [result, err] Result & error if block supplied
1340
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
1341
+ # @yieldparam err [StandardError] error object if request failed
1342
+ #
1343
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
1344
+ #
1345
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1346
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1347
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1348
+ def create_node_deployment_device(parent, sas_portal_device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1349
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices', options)
1350
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1351
+ command.request_object = sas_portal_device_object
1352
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1353
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
1354
+ command.params['parent'] = parent unless parent.nil?
1355
+ command.query['fields'] = fields unless fields.nil?
1356
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1357
+ execute_or_queue_command(command, &block)
1358
+ end
1359
+
1360
+ # Creates a signed device under a node or customer.
1361
+ # @param [String] parent
1362
+ # Required. The name of the parent resource.
1363
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_request_object
1364
+ # @param [String] fields
1365
+ # Selector specifying which fields to include in a partial response.
1366
+ # @param [String] quota_user
1367
+ # Available to use for quota purposes for server-side applications. Can be any
1368
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1369
+ # @param [Google::Apis::RequestOptions] options
1370
+ # Request-specific options
1371
+ #
1372
+ # @yield [result, err] Result & error if block supplied
1373
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
1374
+ # @yieldparam err [StandardError] error object if request failed
1375
+ #
1376
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
1377
+ #
1378
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1379
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1380
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1381
+ def create_node_deployment_device_signed(parent, sas_portal_create_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1382
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:createSigned', options)
1383
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest::Representation
1384
+ command.request_object = sas_portal_create_signed_device_request_object
1385
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1386
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
1387
+ command.params['parent'] = parent unless parent.nil?
1388
+ command.query['fields'] = fields unless fields.nil?
1389
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1390
+ execute_or_queue_command(command, &block)
1391
+ end
1392
+
1393
+ # Lists devices under a node or customer.
1394
+ # @param [String] parent
1395
+ # Required. The name of the parent resource.
1396
+ # @param [String] filter
1397
+ # The filter expression. The filter should have one of the following formats: "
1398
+ # sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
1399
+ # device. The filter is case insensitive.
1400
+ # @param [Fixnum] page_size
1401
+ # The maximum number of devices to return in the response. If empty or zero, all
1402
+ # devices will be listed. Must be in the range [0, 1000].
1403
+ # @param [String] page_token
1404
+ # A pagination token returned from a previous call to ListDevices that indicates
1405
+ # where this listing should continue from.
1406
+ # @param [String] fields
1407
+ # Selector specifying which fields to include in a partial response.
1408
+ # @param [String] quota_user
1409
+ # Available to use for quota purposes for server-side applications. Can be any
1410
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1411
+ # @param [Google::Apis::RequestOptions] options
1412
+ # Request-specific options
1413
+ #
1414
+ # @yield [result, err] Result & error if block supplied
1415
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse] parsed result object
1416
+ # @yieldparam err [StandardError] error object if request failed
1417
+ #
1418
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse]
1419
+ #
1420
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1421
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1422
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1423
+ def list_node_deployment_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1424
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/devices', options)
1425
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse::Representation
1426
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse
1427
+ command.params['parent'] = parent unless parent.nil?
1428
+ command.query['filter'] = filter unless filter.nil?
1429
+ command.query['pageSize'] = page_size unless page_size.nil?
1430
+ command.query['pageToken'] = page_token unless page_token.nil?
1431
+ command.query['fields'] = fields unless fields.nil?
1432
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1433
+ execute_or_queue_command(command, &block)
1434
+ end
1435
+
1436
+ # Creates a device under a node or customer. Returned devices are unordered.
1437
+ # @param [String] parent
1438
+ # Required. The name of the parent resource.
1439
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceRequest] sas_portal_bulk_create_device_request_object
1440
+ # @param [String] fields
1441
+ # Selector specifying which fields to include in a partial response.
1442
+ # @param [String] quota_user
1443
+ # Available to use for quota purposes for server-side applications. Can be any
1444
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1445
+ # @param [Google::Apis::RequestOptions] options
1446
+ # Request-specific options
1447
+ #
1448
+ # @yield [result, err] Result & error if block supplied
1449
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceResponse] parsed result object
1450
+ # @yieldparam err [StandardError] error object if request failed
1451
+ #
1452
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceResponse]
1453
+ #
1454
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1455
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1456
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1457
+ def bulk_node_device(parent, sas_portal_bulk_create_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1458
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:bulk', options)
1459
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceRequest::Representation
1460
+ command.request_object = sas_portal_bulk_create_device_request_object
1461
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceResponse::Representation
1462
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceResponse
1463
+ command.params['parent'] = parent unless parent.nil?
1464
+ command.query['fields'] = fields unless fields.nil?
1465
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1466
+ execute_or_queue_command(command, &block)
1467
+ end
1468
+
1469
+ # Creates a device under a node or customer.
1470
+ # @param [String] parent
1471
+ # Required. The name of the parent resource.
1472
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDevice] sas_portal_device_object
1473
+ # @param [String] fields
1474
+ # Selector specifying which fields to include in a partial response.
1475
+ # @param [String] quota_user
1476
+ # Available to use for quota purposes for server-side applications. Can be any
1477
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1478
+ # @param [Google::Apis::RequestOptions] options
1479
+ # Request-specific options
1480
+ #
1481
+ # @yield [result, err] Result & error if block supplied
1482
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
1483
+ # @yieldparam err [StandardError] error object if request failed
1484
+ #
1485
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
1486
+ #
1487
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1488
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1489
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1490
+ def create_node_device(parent, sas_portal_device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1491
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices', options)
1492
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1493
+ command.request_object = sas_portal_device_object
1494
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1495
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
1496
+ command.params['parent'] = parent unless parent.nil?
1497
+ command.query['fields'] = fields unless fields.nil?
1498
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1499
+ execute_or_queue_command(command, &block)
1500
+ end
1501
+
1502
+ # Creates a signed device under a node or customer.
1503
+ # @param [String] parent
1504
+ # Required. The name of the parent resource.
1505
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_request_object
1506
+ # @param [String] fields
1507
+ # Selector specifying which fields to include in a partial response.
1508
+ # @param [String] quota_user
1509
+ # Available to use for quota purposes for server-side applications. Can be any
1510
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1511
+ # @param [Google::Apis::RequestOptions] options
1512
+ # Request-specific options
1513
+ #
1514
+ # @yield [result, err] Result & error if block supplied
1515
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
1516
+ # @yieldparam err [StandardError] error object if request failed
1517
+ #
1518
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
1519
+ #
1520
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1521
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1522
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1523
+ def create_node_device_signed(parent, sas_portal_create_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1524
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:createSigned', options)
1525
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest::Representation
1526
+ command.request_object = sas_portal_create_signed_device_request_object
1527
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1528
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
1529
+ command.params['parent'] = parent unless parent.nil?
1530
+ command.query['fields'] = fields unless fields.nil?
1531
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1532
+ execute_or_queue_command(command, &block)
1533
+ end
1534
+
1535
+ # Deletes a device.
1536
+ # @param [String] name
1537
+ # Required. The name of the device.
1538
+ # @param [String] fields
1539
+ # Selector specifying which fields to include in a partial response.
1540
+ # @param [String] quota_user
1541
+ # Available to use for quota purposes for server-side applications. Can be any
1542
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1543
+ # @param [Google::Apis::RequestOptions] options
1544
+ # Request-specific options
1545
+ #
1546
+ # @yield [result, err] Result & error if block supplied
1547
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalEmpty] parsed result object
1548
+ # @yieldparam err [StandardError] error object if request failed
1549
+ #
1550
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
1551
+ #
1552
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1553
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1554
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1555
+ def delete_node_device(name, fields: nil, quota_user: nil, options: nil, &block)
1556
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
1557
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
1558
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
1559
+ command.params['name'] = name unless name.nil?
1560
+ command.query['fields'] = fields unless fields.nil?
1561
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1562
+ execute_or_queue_command(command, &block)
1563
+ end
1564
+
1565
+ # Gets details about a device.
1566
+ # @param [String] name
1567
+ # Required. The name of the device.
1568
+ # @param [String] fields
1569
+ # Selector specifying which fields to include in a partial response.
1570
+ # @param [String] quota_user
1571
+ # Available to use for quota purposes for server-side applications. Can be any
1572
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1573
+ # @param [Google::Apis::RequestOptions] options
1574
+ # Request-specific options
1575
+ #
1576
+ # @yield [result, err] Result & error if block supplied
1577
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
1578
+ # @yieldparam err [StandardError] error object if request failed
1579
+ #
1580
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
1581
+ #
1582
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1583
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1584
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1585
+ def get_node_device(name, fields: nil, quota_user: nil, options: nil, &block)
1586
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
1587
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1588
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
1589
+ command.params['name'] = name unless name.nil?
1590
+ command.query['fields'] = fields unless fields.nil?
1591
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1592
+ execute_or_queue_command(command, &block)
1593
+ end
1594
+
1595
+ # Lists devices under a node or customer.
1596
+ # @param [String] parent
1597
+ # Required. The name of the parent resource.
1598
+ # @param [String] filter
1599
+ # The filter expression. The filter should have one of the following formats: "
1600
+ # sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
1601
+ # device. The filter is case insensitive.
1602
+ # @param [Fixnum] page_size
1603
+ # The maximum number of devices to return in the response. If empty or zero, all
1604
+ # devices will be listed. Must be in the range [0, 1000].
1605
+ # @param [String] page_token
1606
+ # A pagination token returned from a previous call to ListDevices that indicates
1607
+ # where this listing should continue from.
1608
+ # @param [String] fields
1609
+ # Selector specifying which fields to include in a partial response.
1610
+ # @param [String] quota_user
1611
+ # Available to use for quota purposes for server-side applications. Can be any
1612
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1613
+ # @param [Google::Apis::RequestOptions] options
1614
+ # Request-specific options
1615
+ #
1616
+ # @yield [result, err] Result & error if block supplied
1617
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse] parsed result object
1618
+ # @yieldparam err [StandardError] error object if request failed
1619
+ #
1620
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse]
1621
+ #
1622
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1623
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1624
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1625
+ def list_node_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1626
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/devices', options)
1627
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse::Representation
1628
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse
1629
+ command.params['parent'] = parent unless parent.nil?
1630
+ command.query['filter'] = filter unless filter.nil?
1631
+ command.query['pageSize'] = page_size unless page_size.nil?
1632
+ command.query['pageToken'] = page_token unless page_token.nil?
1633
+ command.query['fields'] = fields unless fields.nil?
1634
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1635
+ execute_or_queue_command(command, &block)
1636
+ end
1637
+
1638
+ # Moves a device under another node or customer.
1639
+ # @param [String] name
1640
+ # Required. The name of the device to move.
1641
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalMoveDeviceRequest] sas_portal_move_device_request_object
1642
+ # @param [String] fields
1643
+ # Selector specifying which fields to include in a partial response.
1644
+ # @param [String] quota_user
1645
+ # Available to use for quota purposes for server-side applications. Can be any
1646
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1647
+ # @param [Google::Apis::RequestOptions] options
1648
+ # Request-specific options
1649
+ #
1650
+ # @yield [result, err] Result & error if block supplied
1651
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalOperation] parsed result object
1652
+ # @yieldparam err [StandardError] error object if request failed
1653
+ #
1654
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalOperation]
1655
+ #
1656
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1657
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1658
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1659
+ def move_node_device(name, sas_portal_move_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1660
+ command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
1661
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalMoveDeviceRequest::Representation
1662
+ command.request_object = sas_portal_move_device_request_object
1663
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalOperation::Representation
1664
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalOperation
1665
+ command.params['name'] = name unless name.nil?
1666
+ command.query['fields'] = fields unless fields.nil?
1667
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1668
+ execute_or_queue_command(command, &block)
1669
+ end
1670
+
1671
+ # Updates a device.
1672
+ # @param [String] name
1673
+ # Output only. The resource path name.
1674
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDevice] sas_portal_device_object
1675
+ # @param [String] update_mask
1676
+ # Fields to be updated.
1677
+ # @param [String] fields
1678
+ # Selector specifying which fields to include in a partial response.
1679
+ # @param [String] quota_user
1680
+ # Available to use for quota purposes for server-side applications. Can be any
1681
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1682
+ # @param [Google::Apis::RequestOptions] options
1683
+ # Request-specific options
1684
+ #
1685
+ # @yield [result, err] Result & error if block supplied
1686
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
1687
+ # @yieldparam err [StandardError] error object if request failed
1688
+ #
1689
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
1690
+ #
1691
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1692
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1693
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1694
+ def patch_node_device(name, sas_portal_device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1695
+ command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
1696
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1697
+ command.request_object = sas_portal_device_object
1698
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1699
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
1700
+ command.params['name'] = name unless name.nil?
1701
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1702
+ command.query['fields'] = fields unless fields.nil?
1703
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1704
+ execute_or_queue_command(command, &block)
1705
+ end
1706
+
1707
+ # Signs a device.
1708
+ # @param [String] name
1709
+ # Output only. The resource path name.
1710
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalSignDeviceRequest] sas_portal_sign_device_request_object
1711
+ # @param [String] fields
1712
+ # Selector specifying which fields to include in a partial response.
1713
+ # @param [String] quota_user
1714
+ # Available to use for quota purposes for server-side applications. Can be any
1715
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1716
+ # @param [Google::Apis::RequestOptions] options
1717
+ # Request-specific options
1718
+ #
1719
+ # @yield [result, err] Result & error if block supplied
1720
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalEmpty] parsed result object
1721
+ # @yieldparam err [StandardError] error object if request failed
1722
+ #
1723
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
1724
+ #
1725
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1726
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1727
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1728
+ def sign_node_device_device(name, sas_portal_sign_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1729
+ command = make_simple_command(:post, 'v1alpha1/{+name}:signDevice', options)
1730
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalSignDeviceRequest::Representation
1731
+ command.request_object = sas_portal_sign_device_request_object
1732
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
1733
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
1734
+ command.params['name'] = name unless name.nil?
1735
+ command.query['fields'] = fields unless fields.nil?
1736
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1737
+ execute_or_queue_command(command, &block)
1738
+ end
1739
+
1740
+ # Updates a signed device.
1741
+ # @param [String] name
1742
+ # Required. The name of the device to update.
1743
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalUpdateSignedDeviceRequest] sas_portal_update_signed_device_request_object
1744
+ # @param [String] fields
1745
+ # Selector specifying which fields to include in a partial response.
1746
+ # @param [String] quota_user
1747
+ # Available to use for quota purposes for server-side applications. Can be any
1748
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1749
+ # @param [Google::Apis::RequestOptions] options
1750
+ # Request-specific options
1751
+ #
1752
+ # @yield [result, err] Result & error if block supplied
1753
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
1754
+ # @yieldparam err [StandardError] error object if request failed
1755
+ #
1756
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
1757
+ #
1758
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1759
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1760
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1761
+ def update_node_device_signed(name, sas_portal_update_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1762
+ command = make_simple_command(:patch, 'v1alpha1/{+name}:updateSigned', options)
1763
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalUpdateSignedDeviceRequest::Representation
1764
+ command.request_object = sas_portal_update_signed_device_request_object
1765
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1766
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
1767
+ command.params['name'] = name unless name.nil?
1768
+ command.query['fields'] = fields unless fields.nil?
1769
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1770
+ execute_or_queue_command(command, &block)
1771
+ end
1772
+
1773
+ # Creates a new node.
1774
+ # @param [String] parent
1775
+ # Required. The parent resource name where the node is to be created.
1776
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalNode] sas_portal_node_object
1777
+ # @param [String] fields
1778
+ # Selector specifying which fields to include in a partial response.
1779
+ # @param [String] quota_user
1780
+ # Available to use for quota purposes for server-side applications. Can be any
1781
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1782
+ # @param [Google::Apis::RequestOptions] options
1783
+ # Request-specific options
1784
+ #
1785
+ # @yield [result, err] Result & error if block supplied
1786
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalNode] parsed result object
1787
+ # @yieldparam err [StandardError] error object if request failed
1788
+ #
1789
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalNode]
1790
+ #
1791
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1792
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1793
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1794
+ def create_node_node(parent, sas_portal_node_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1795
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/nodes', options)
1796
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
1797
+ command.request_object = sas_portal_node_object
1798
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
1799
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalNode
1800
+ command.params['parent'] = parent unless parent.nil?
1801
+ command.query['fields'] = fields unless fields.nil?
1802
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1803
+ execute_or_queue_command(command, &block)
1804
+ end
1805
+
1806
+ # Deletes a node.
1807
+ # @param [String] name
1808
+ # Required. The name of the node.
1809
+ # @param [String] fields
1810
+ # Selector specifying which fields to include in a partial response.
1811
+ # @param [String] quota_user
1812
+ # Available to use for quota purposes for server-side applications. Can be any
1813
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1814
+ # @param [Google::Apis::RequestOptions] options
1815
+ # Request-specific options
1816
+ #
1817
+ # @yield [result, err] Result & error if block supplied
1818
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalEmpty] parsed result object
1819
+ # @yieldparam err [StandardError] error object if request failed
1820
+ #
1821
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
1822
+ #
1823
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1824
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1825
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1826
+ def delete_node_node(name, fields: nil, quota_user: nil, options: nil, &block)
1827
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
1828
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
1829
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
1830
+ command.params['name'] = name unless name.nil?
1831
+ command.query['fields'] = fields unless fields.nil?
1832
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1833
+ execute_or_queue_command(command, &block)
1834
+ end
1835
+
1836
+ # Returns a requested node.
1837
+ # @param [String] name
1838
+ # Required. The name of the node.
1839
+ # @param [String] fields
1840
+ # Selector specifying which fields to include in a partial response.
1841
+ # @param [String] quota_user
1842
+ # Available to use for quota purposes for server-side applications. Can be any
1843
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1844
+ # @param [Google::Apis::RequestOptions] options
1845
+ # Request-specific options
1846
+ #
1847
+ # @yield [result, err] Result & error if block supplied
1848
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalNode] parsed result object
1849
+ # @yieldparam err [StandardError] error object if request failed
1850
+ #
1851
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalNode]
1852
+ #
1853
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1854
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1855
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1856
+ def get_node_node(name, fields: nil, quota_user: nil, options: nil, &block)
1857
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
1858
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
1859
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalNode
1860
+ command.params['name'] = name unless name.nil?
1861
+ command.query['fields'] = fields unless fields.nil?
1862
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1863
+ execute_or_queue_command(command, &block)
1864
+ end
1865
+
1866
+ # Lists nodes.
1867
+ # @param [String] parent
1868
+ # Required. The parent resource name, for example, "nodes/1".
1869
+ # @param [Fixnum] page_size
1870
+ # The maximum number of nodes to return in the response.
1871
+ # @param [String] page_token
1872
+ # A pagination token returned from a previous call to ListNodes method that
1873
+ # indicates where this listing should continue from.
1874
+ # @param [String] fields
1875
+ # Selector specifying which fields to include in a partial response.
1876
+ # @param [String] quota_user
1877
+ # Available to use for quota purposes for server-side applications. Can be any
1878
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1879
+ # @param [Google::Apis::RequestOptions] options
1880
+ # Request-specific options
1881
+ #
1882
+ # @yield [result, err] Result & error if block supplied
1883
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse] parsed result object
1884
+ # @yieldparam err [StandardError] error object if request failed
1885
+ #
1886
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse]
1887
+ #
1888
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1889
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1890
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1891
+ def list_node_nodes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1892
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/nodes', options)
1893
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse::Representation
1894
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse
1895
+ command.params['parent'] = parent unless parent.nil?
1896
+ command.query['pageSize'] = page_size unless page_size.nil?
1897
+ command.query['pageToken'] = page_token unless page_token.nil?
1898
+ command.query['fields'] = fields unless fields.nil?
1899
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1900
+ execute_or_queue_command(command, &block)
1901
+ end
1902
+
1903
+ # Moves a node under another node or customer.
1904
+ # @param [String] name
1905
+ # Required. The name of the node to move.
1906
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalMoveNodeRequest] sas_portal_move_node_request_object
1907
+ # @param [String] fields
1908
+ # Selector specifying which fields to include in a partial response.
1909
+ # @param [String] quota_user
1910
+ # Available to use for quota purposes for server-side applications. Can be any
1911
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1912
+ # @param [Google::Apis::RequestOptions] options
1913
+ # Request-specific options
1914
+ #
1915
+ # @yield [result, err] Result & error if block supplied
1916
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalOperation] parsed result object
1917
+ # @yieldparam err [StandardError] error object if request failed
1918
+ #
1919
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalOperation]
1920
+ #
1921
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1922
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1923
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1924
+ def move_node_node(name, sas_portal_move_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1925
+ command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
1926
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalMoveNodeRequest::Representation
1927
+ command.request_object = sas_portal_move_node_request_object
1928
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalOperation::Representation
1929
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalOperation
1930
+ command.params['name'] = name unless name.nil?
1931
+ command.query['fields'] = fields unless fields.nil?
1932
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1933
+ execute_or_queue_command(command, &block)
1934
+ end
1935
+
1936
+ # Updates an existing node.
1937
+ # @param [String] name
1938
+ # Output only. Resource name.
1939
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalNode] sas_portal_node_object
1940
+ # @param [String] update_mask
1941
+ # Fields to be updated.
1942
+ # @param [String] fields
1943
+ # Selector specifying which fields to include in a partial response.
1944
+ # @param [String] quota_user
1945
+ # Available to use for quota purposes for server-side applications. Can be any
1946
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1947
+ # @param [Google::Apis::RequestOptions] options
1948
+ # Request-specific options
1949
+ #
1950
+ # @yield [result, err] Result & error if block supplied
1951
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalNode] parsed result object
1952
+ # @yieldparam err [StandardError] error object if request failed
1953
+ #
1954
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalNode]
1955
+ #
1956
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1957
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1958
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1959
+ def patch_node_node(name, sas_portal_node_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1960
+ command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
1961
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
1962
+ command.request_object = sas_portal_node_object
1963
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
1964
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalNode
1965
+ command.params['name'] = name unless name.nil?
1966
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1967
+ command.query['fields'] = fields unless fields.nil?
1968
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1969
+ execute_or_queue_command(command, &block)
1970
+ end
1971
+
1972
+ # Creates a device under a node or customer. Returned devices are unordered.
1973
+ # @param [String] parent
1974
+ # Required. The name of the parent resource.
1975
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceRequest] sas_portal_bulk_create_device_request_object
1976
+ # @param [String] fields
1977
+ # Selector specifying which fields to include in a partial response.
1978
+ # @param [String] quota_user
1979
+ # Available to use for quota purposes for server-side applications. Can be any
1980
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1981
+ # @param [Google::Apis::RequestOptions] options
1982
+ # Request-specific options
1983
+ #
1984
+ # @yield [result, err] Result & error if block supplied
1985
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceResponse] parsed result object
1986
+ # @yieldparam err [StandardError] error object if request failed
1987
+ #
1988
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceResponse]
1989
+ #
1990
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1991
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1992
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1993
+ def bulk_node_node_device(parent, sas_portal_bulk_create_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1994
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:bulk', options)
1995
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceRequest::Representation
1996
+ command.request_object = sas_portal_bulk_create_device_request_object
1997
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceResponse::Representation
1998
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceResponse
1999
+ command.params['parent'] = parent unless parent.nil?
2000
+ command.query['fields'] = fields unless fields.nil?
2001
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2002
+ execute_or_queue_command(command, &block)
2003
+ end
2004
+
2005
+ # Creates a device under a node or customer.
2006
+ # @param [String] parent
2007
+ # Required. The name of the parent resource.
2008
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDevice] sas_portal_device_object
2009
+ # @param [String] fields
2010
+ # Selector specifying which fields to include in a partial response.
2011
+ # @param [String] quota_user
2012
+ # Available to use for quota purposes for server-side applications. Can be any
2013
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2014
+ # @param [Google::Apis::RequestOptions] options
2015
+ # Request-specific options
2016
+ #
2017
+ # @yield [result, err] Result & error if block supplied
2018
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
2019
+ # @yieldparam err [StandardError] error object if request failed
2020
+ #
2021
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
2022
+ #
2023
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2024
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2025
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2026
+ def create_node_node_device(parent, sas_portal_device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2027
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices', options)
2028
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
2029
+ command.request_object = sas_portal_device_object
2030
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
2031
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
2032
+ command.params['parent'] = parent unless parent.nil?
2033
+ command.query['fields'] = fields unless fields.nil?
2034
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2035
+ execute_or_queue_command(command, &block)
2036
+ end
2037
+
2038
+ # Creates a signed device under a node or customer.
2039
+ # @param [String] parent
2040
+ # Required. The name of the parent resource.
2041
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_request_object
2042
+ # @param [String] fields
2043
+ # Selector specifying which fields to include in a partial response.
2044
+ # @param [String] quota_user
2045
+ # Available to use for quota purposes for server-side applications. Can be any
2046
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2047
+ # @param [Google::Apis::RequestOptions] options
2048
+ # Request-specific options
2049
+ #
2050
+ # @yield [result, err] Result & error if block supplied
2051
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
2052
+ # @yieldparam err [StandardError] error object if request failed
2053
+ #
2054
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
2055
+ #
2056
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2057
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2058
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2059
+ def create_node_node_device_signed(parent, sas_portal_create_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2060
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:createSigned', options)
2061
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest::Representation
2062
+ command.request_object = sas_portal_create_signed_device_request_object
2063
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
2064
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
2065
+ command.params['parent'] = parent unless parent.nil?
2066
+ command.query['fields'] = fields unless fields.nil?
2067
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2068
+ execute_or_queue_command(command, &block)
2069
+ end
2070
+
2071
+ # Lists devices under a node or customer.
2072
+ # @param [String] parent
2073
+ # Required. The name of the parent resource.
2074
+ # @param [String] filter
2075
+ # The filter expression. The filter should have one of the following formats: "
2076
+ # sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
2077
+ # device. The filter is case insensitive.
2078
+ # @param [Fixnum] page_size
2079
+ # The maximum number of devices to return in the response. If empty or zero, all
2080
+ # devices will be listed. Must be in the range [0, 1000].
2081
+ # @param [String] page_token
2082
+ # A pagination token returned from a previous call to ListDevices that indicates
2083
+ # where this listing should continue from.
2084
+ # @param [String] fields
2085
+ # Selector specifying which fields to include in a partial response.
2086
+ # @param [String] quota_user
2087
+ # Available to use for quota purposes for server-side applications. Can be any
2088
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2089
+ # @param [Google::Apis::RequestOptions] options
2090
+ # Request-specific options
2091
+ #
2092
+ # @yield [result, err] Result & error if block supplied
2093
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse] parsed result object
2094
+ # @yieldparam err [StandardError] error object if request failed
2095
+ #
2096
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse]
2097
+ #
2098
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2099
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2100
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2101
+ def list_node_node_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2102
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/devices', options)
2103
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse::Representation
2104
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse
2105
+ command.params['parent'] = parent unless parent.nil?
2106
+ command.query['filter'] = filter unless filter.nil?
2107
+ command.query['pageSize'] = page_size unless page_size.nil?
2108
+ command.query['pageToken'] = page_token unless page_token.nil?
2109
+ command.query['fields'] = fields unless fields.nil?
2110
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2111
+ execute_or_queue_command(command, &block)
2112
+ end
2113
+
2114
+ # Creates a new node.
2115
+ # @param [String] parent
2116
+ # Required. The parent resource name where the node is to be created.
2117
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalNode] sas_portal_node_object
2118
+ # @param [String] fields
2119
+ # Selector specifying which fields to include in a partial response.
2120
+ # @param [String] quota_user
2121
+ # Available to use for quota purposes for server-side applications. Can be any
2122
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2123
+ # @param [Google::Apis::RequestOptions] options
2124
+ # Request-specific options
2125
+ #
2126
+ # @yield [result, err] Result & error if block supplied
2127
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalNode] parsed result object
2128
+ # @yieldparam err [StandardError] error object if request failed
2129
+ #
2130
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalNode]
2131
+ #
2132
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2133
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2134
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2135
+ def create_node_node_node(parent, sas_portal_node_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2136
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/nodes', options)
2137
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
2138
+ command.request_object = sas_portal_node_object
2139
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
2140
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalNode
2141
+ command.params['parent'] = parent unless parent.nil?
2142
+ command.query['fields'] = fields unless fields.nil?
2143
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2144
+ execute_or_queue_command(command, &block)
2145
+ end
2146
+
2147
+ # Lists nodes.
2148
+ # @param [String] parent
2149
+ # Required. The parent resource name, for example, "nodes/1".
2150
+ # @param [Fixnum] page_size
2151
+ # The maximum number of nodes to return in the response.
2152
+ # @param [String] page_token
2153
+ # A pagination token returned from a previous call to ListNodes method that
2154
+ # indicates where this listing should continue from.
2155
+ # @param [String] fields
2156
+ # Selector specifying which fields to include in a partial response.
2157
+ # @param [String] quota_user
2158
+ # Available to use for quota purposes for server-side applications. Can be any
2159
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2160
+ # @param [Google::Apis::RequestOptions] options
2161
+ # Request-specific options
2162
+ #
2163
+ # @yield [result, err] Result & error if block supplied
2164
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse] parsed result object
2165
+ # @yieldparam err [StandardError] error object if request failed
2166
+ #
2167
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse]
2168
+ #
2169
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2170
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2171
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2172
+ def list_node_node_nodes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2173
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/nodes', options)
2174
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse::Representation
2175
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse
2176
+ command.params['parent'] = parent unless parent.nil?
2177
+ command.query['pageSize'] = page_size unless page_size.nil?
2178
+ command.query['pageToken'] = page_token unless page_token.nil?
2179
+ command.query['fields'] = fields unless fields.nil?
2180
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2181
+ execute_or_queue_command(command, &block)
2182
+ end
2183
+
2184
+ # Gets the access control policy for a resource. Returns an empty policy if the
2185
+ # resource exists and does not have a policy set.
2186
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalGetPolicyRequest] sas_portal_get_policy_request_object
2187
+ # @param [String] fields
2188
+ # Selector specifying which fields to include in a partial response.
2189
+ # @param [String] quota_user
2190
+ # Available to use for quota purposes for server-side applications. Can be any
2191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2192
+ # @param [Google::Apis::RequestOptions] options
2193
+ # Request-specific options
2194
+ #
2195
+ # @yield [result, err] Result & error if block supplied
2196
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalPolicy] parsed result object
2197
+ # @yieldparam err [StandardError] error object if request failed
2198
+ #
2199
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalPolicy]
2200
+ #
2201
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2202
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2203
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2204
+ def get_policy(sas_portal_get_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2205
+ command = make_simple_command(:post, 'v1alpha1/policies:get', options)
2206
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalGetPolicyRequest::Representation
2207
+ command.request_object = sas_portal_get_policy_request_object
2208
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalPolicy::Representation
2209
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalPolicy
2210
+ command.query['fields'] = fields unless fields.nil?
2211
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2212
+ execute_or_queue_command(command, &block)
2213
+ end
2214
+
2215
+ # Sets the access control policy on the specified resource. Replaces any
2216
+ # existing policy.
2217
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalSetPolicyRequest] sas_portal_set_policy_request_object
2218
+ # @param [String] fields
2219
+ # Selector specifying which fields to include in a partial response.
2220
+ # @param [String] quota_user
2221
+ # Available to use for quota purposes for server-side applications. Can be any
2222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2223
+ # @param [Google::Apis::RequestOptions] options
2224
+ # Request-specific options
2225
+ #
2226
+ # @yield [result, err] Result & error if block supplied
2227
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalPolicy] parsed result object
2228
+ # @yieldparam err [StandardError] error object if request failed
2229
+ #
2230
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalPolicy]
2231
+ #
2232
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2233
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2234
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2235
+ def set_policy(sas_portal_set_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2236
+ command = make_simple_command(:post, 'v1alpha1/policies:set', options)
2237
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalSetPolicyRequest::Representation
2238
+ command.request_object = sas_portal_set_policy_request_object
2239
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalPolicy::Representation
2240
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalPolicy
2241
+ command.query['fields'] = fields unless fields.nil?
2242
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2243
+ execute_or_queue_command(command, &block)
2244
+ end
2245
+
2246
+ # Returns permissions that a caller has on the specified resource.
2247
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalTestPermissionsRequest] sas_portal_test_permissions_request_object
2248
+ # @param [String] fields
2249
+ # Selector specifying which fields to include in a partial response.
2250
+ # @param [String] quota_user
2251
+ # Available to use for quota purposes for server-side applications. Can be any
2252
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2253
+ # @param [Google::Apis::RequestOptions] options
2254
+ # Request-specific options
2255
+ #
2256
+ # @yield [result, err] Result & error if block supplied
2257
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalTestPermissionsResponse] parsed result object
2258
+ # @yieldparam err [StandardError] error object if request failed
2259
+ #
2260
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalTestPermissionsResponse]
2261
+ #
2262
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2263
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2264
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2265
+ def test_policy(sas_portal_test_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2266
+ command = make_simple_command(:post, 'v1alpha1/policies:test', options)
2267
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalTestPermissionsRequest::Representation
2268
+ command.request_object = sas_portal_test_permissions_request_object
2269
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalTestPermissionsResponse::Representation
2270
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalTestPermissionsResponse
2271
+ command.query['fields'] = fields unless fields.nil?
2272
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2273
+ execute_or_queue_command(command, &block)
2274
+ end
2275
+
2276
+ protected
2277
+
2278
+ def apply_command_defaults(command)
2279
+ command.query['key'] = key unless key.nil?
2280
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2281
+ end
2282
+ end
2283
+ end
2284
+ end
2285
+ end