google-apis-sasportal_v1alpha1 0.1.0 → 0.6.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.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SasportalV1alpha1
18
18
  # Version of the google-apis-sasportal_v1alpha1 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201019"
25
+ REVISION = "20210403"
26
26
  end
27
27
  end
28
28
  end
@@ -28,25 +28,25 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class SasPortalBulkCreateDeviceRequest
31
+ class SasPortalChannelWithScore
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class SasPortalBulkCreateDeviceResponse
37
+ class SasPortalCreateSignedDeviceRequest
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class SasPortalCreateSignedDeviceRequest
43
+ class SasPortalCustomer
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class SasPortalCustomer
49
+ class SasPortalDeployment
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
@@ -136,6 +136,12 @@ module Google
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
+ class SasPortalListDeploymentsResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
139
145
  class SasPortalListDevicesResponse
140
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
147
 
@@ -240,18 +246,12 @@ module Google
240
246
  end
241
247
  end
242
248
 
243
- class SasPortalBulkCreateDeviceRequest
249
+ class SasPortalChannelWithScore
244
250
  # @private
245
251
  class Representation < Google::Apis::Core::JsonRepresentation
246
- property :csv, as: 'csv'
247
- end
248
- end
249
-
250
- class SasPortalBulkCreateDeviceResponse
251
- # @private
252
- class Representation < Google::Apis::Core::JsonRepresentation
253
- collection :devices, as: 'devices', class: Google::Apis::SasportalV1alpha1::SasPortalDevice, decorator: Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
252
+ property :frequency_range, as: 'frequencyRange', class: Google::Apis::SasportalV1alpha1::SasPortalFrequencyRange, decorator: Google::Apis::SasportalV1alpha1::SasPortalFrequencyRange::Representation
254
253
 
254
+ property :score, as: 'score'
255
255
  end
256
256
  end
257
257
 
@@ -272,15 +272,30 @@ module Google
272
272
  end
273
273
  end
274
274
 
275
+ class SasPortalDeployment
276
+ # @private
277
+ class Representation < Google::Apis::Core::JsonRepresentation
278
+ collection :allowed_billing_modes, as: 'allowedBillingModes'
279
+ property :default_billing_mode, as: 'defaultBillingMode'
280
+ property :display_name, as: 'displayName'
281
+ property :name, as: 'name'
282
+ collection :sas_user_ids, as: 'sasUserIds'
283
+ end
284
+ end
285
+
275
286
  class SasPortalDevice
276
287
  # @private
277
288
  class Representation < Google::Apis::Core::JsonRepresentation
278
289
  property :active_config, as: 'activeConfig', class: Google::Apis::SasportalV1alpha1::SasPortalDeviceConfig, decorator: Google::Apis::SasportalV1alpha1::SasPortalDeviceConfig::Representation
279
290
 
291
+ collection :current_channels, as: 'currentChannels', class: Google::Apis::SasportalV1alpha1::SasPortalChannelWithScore, decorator: Google::Apis::SasportalV1alpha1::SasPortalChannelWithScore::Representation
292
+
280
293
  property :device_metadata, as: 'deviceMetadata', class: Google::Apis::SasportalV1alpha1::SasPortalDeviceMetadata, decorator: Google::Apis::SasportalV1alpha1::SasPortalDeviceMetadata::Representation
281
294
 
282
295
  property :display_name, as: 'displayName'
283
296
  property :fcc_id, as: 'fccId'
297
+ collection :grant_range_allowlists, as: 'grantRangeAllowlists', class: Google::Apis::SasportalV1alpha1::SasPortalFrequencyRange, decorator: Google::Apis::SasportalV1alpha1::SasPortalFrequencyRange::Representation
298
+
284
299
  collection :grants, as: 'grants', class: Google::Apis::SasportalV1alpha1::SasPortalDeviceGrant, decorator: Google::Apis::SasportalV1alpha1::SasPortalDeviceGrant::Representation
285
300
 
286
301
  property :name, as: 'name'
@@ -423,6 +438,15 @@ module Google
423
438
  end
424
439
  end
425
440
 
441
+ class SasPortalListDeploymentsResponse
442
+ # @private
443
+ class Representation < Google::Apis::Core::JsonRepresentation
444
+ collection :deployments, as: 'deployments', class: Google::Apis::SasportalV1alpha1::SasPortalDeployment, decorator: Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
445
+
446
+ property :next_page_token, as: 'nextPageToken'
447
+ end
448
+ end
449
+
426
450
  class SasPortalListDevicesResponse
427
451
  # @private
428
452
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -83,7 +83,7 @@ module Google
83
83
  # @param [Fixnum] page_size
84
84
  # The maximum number of customers to return in the response.
85
85
  # @param [String] page_token
86
- # A pagination token returned from a previous call to ListCustomers method that
86
+ # A pagination token returned from a previous call to ListCustomers that
87
87
  # indicates where this listing should continue from.
88
88
  # @param [String] fields
89
89
  # Selector specifying which fields to include in a partial response.
@@ -149,6 +149,141 @@ module Google
149
149
  execute_or_queue_command(command, &block)
150
150
  end
151
151
 
152
+ # Creates a new deployment.
153
+ # @param [String] parent
154
+ # Required. The parent resource name where the deployment is to be created.
155
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_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::SasPortalDeployment] parsed result object
166
+ # @yieldparam err [StandardError] error object if request failed
167
+ #
168
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
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 create_customer_deployment(parent, sas_portal_deployment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
174
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/deployments', options)
175
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
176
+ command.request_object = sas_portal_deployment_object
177
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
178
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
179
+ command.params['parent'] = parent unless parent.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
+ # Deletes a deployment.
186
+ # @param [String] name
187
+ # Required. The name of the deployment.
188
+ # @param [String] fields
189
+ # Selector specifying which fields to include in a partial response.
190
+ # @param [String] quota_user
191
+ # Available to use for quota purposes for server-side applications. Can be any
192
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
193
+ # @param [Google::Apis::RequestOptions] options
194
+ # Request-specific options
195
+ #
196
+ # @yield [result, err] Result & error if block supplied
197
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalEmpty] parsed result object
198
+ # @yieldparam err [StandardError] error object if request failed
199
+ #
200
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
201
+ #
202
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
205
+ def delete_customer_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
206
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
207
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
208
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
209
+ command.params['name'] = name unless name.nil?
210
+ command.query['fields'] = fields unless fields.nil?
211
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
212
+ execute_or_queue_command(command, &block)
213
+ end
214
+
215
+ # Returns a requested deployment.
216
+ # @param [String] name
217
+ # Required. The name of the deployment.
218
+ # @param [String] fields
219
+ # Selector specifying which fields to include in a partial response.
220
+ # @param [String] quota_user
221
+ # Available to use for quota purposes for server-side applications. Can be any
222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
223
+ # @param [Google::Apis::RequestOptions] options
224
+ # Request-specific options
225
+ #
226
+ # @yield [result, err] Result & error if block supplied
227
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDeployment] parsed result object
228
+ # @yieldparam err [StandardError] error object if request failed
229
+ #
230
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
231
+ #
232
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
233
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
234
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
235
+ def get_customer_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
236
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
237
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
238
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
239
+ command.params['name'] = name unless name.nil?
240
+ command.query['fields'] = fields unless fields.nil?
241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
242
+ execute_or_queue_command(command, &block)
243
+ end
244
+
245
+ # Lists deployments.
246
+ # @param [String] parent
247
+ # Required. The parent resource name, for example, "nodes/1", customer/1/nodes/2.
248
+ # @param [String] filter
249
+ # The filter expression. The filter should have the following format: "
250
+ # DIRECT_CHILDREN" or format: "direct_children". The filter is case insensitive.
251
+ # If empty, then no deployments are filtered.
252
+ # @param [Fixnum] page_size
253
+ # The maximum number of deployments to return in the response.
254
+ # @param [String] page_token
255
+ # A pagination token returned from a previous call to ListDeployments that
256
+ # indicates where this listing should continue from.
257
+ # @param [String] fields
258
+ # Selector specifying which fields to include in a partial response.
259
+ # @param [String] quota_user
260
+ # Available to use for quota purposes for server-side applications. Can be any
261
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
262
+ # @param [Google::Apis::RequestOptions] options
263
+ # Request-specific options
264
+ #
265
+ # @yield [result, err] Result & error if block supplied
266
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object
267
+ # @yieldparam err [StandardError] error object if request failed
268
+ #
269
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse]
270
+ #
271
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
272
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
273
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
274
+ def list_customer_deployments(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
275
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options)
276
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse::Representation
277
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse
278
+ command.params['parent'] = parent unless parent.nil?
279
+ command.query['filter'] = filter unless filter.nil?
280
+ command.query['pageSize'] = page_size unless page_size.nil?
281
+ command.query['pageToken'] = page_token unless page_token.nil?
282
+ command.query['fields'] = fields unless fields.nil?
283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
284
+ execute_or_queue_command(command, &block)
285
+ end
286
+
152
287
  # Moves a deployment under another node or customer.
153
288
  # @param [String] name
154
289
  # Required. The name of the deployment to move.
@@ -182,6 +317,42 @@ module Google
182
317
  execute_or_queue_command(command, &block)
183
318
  end
184
319
 
320
+ # Updates an existing deployment.
321
+ # @param [String] name
322
+ # Output only. Resource name.
323
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object
324
+ # @param [String] update_mask
325
+ # Fields to be updated.
326
+ # @param [String] fields
327
+ # Selector specifying which fields to include in a partial response.
328
+ # @param [String] quota_user
329
+ # Available to use for quota purposes for server-side applications. Can be any
330
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
331
+ # @param [Google::Apis::RequestOptions] options
332
+ # Request-specific options
333
+ #
334
+ # @yield [result, err] Result & error if block supplied
335
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDeployment] parsed result object
336
+ # @yieldparam err [StandardError] error object if request failed
337
+ #
338
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
339
+ #
340
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
341
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
342
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
343
+ def patch_customer_deployment(name, sas_portal_deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
344
+ command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
345
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
346
+ command.request_object = sas_portal_deployment_object
347
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
348
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
349
+ command.params['name'] = name unless name.nil?
350
+ command.query['updateMask'] = update_mask unless update_mask.nil?
351
+ command.query['fields'] = fields unless fields.nil?
352
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
353
+ execute_or_queue_command(command, &block)
354
+ end
355
+
185
356
  # Creates a device under a node or customer.
186
357
  # @param [String] parent
187
358
  # Required. The name of the parent resource.
@@ -253,7 +424,7 @@ module Google
253
424
  # Required. The name of the parent resource.
254
425
  # @param [String] filter
255
426
  # 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
427
+ # sn=123454" or "display_name=MyDevice". sn corresponds to serial number of the
257
428
  # device. The filter is case insensitive.
258
429
  # @param [Fixnum] page_size
259
430
  # The maximum number of devices to return in the response. If empty or zero, all
@@ -291,39 +462,6 @@ module Google
291
462
  execute_or_queue_command(command, &block)
292
463
  end
293
464
 
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
465
  # Creates a device under a node or customer.
328
466
  # @param [String] parent
329
467
  # Required. The name of the parent resource.
@@ -455,7 +593,7 @@ module Google
455
593
  # Required. The name of the parent resource.
456
594
  # @param [String] filter
457
595
  # 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
596
+ # sn=123454" or "display_name=MyDevice". sn corresponds to serial number of the
459
597
  # device. The filter is case insensitive.
460
598
  # @param [Fixnum] page_size
461
599
  # The maximum number of devices to return in the response. If empty or zero, all
@@ -724,11 +862,15 @@ module Google
724
862
  # Lists nodes.
725
863
  # @param [String] parent
726
864
  # Required. The parent resource name, for example, "nodes/1".
865
+ # @param [String] filter
866
+ # The filter expression. The filter should have the following format: "
867
+ # DIRECT_CHILDREN" or format: "direct_children". The filter is case insensitive.
868
+ # If empty, then no nodes are filtered.
727
869
  # @param [Fixnum] page_size
728
870
  # The maximum number of nodes to return in the response.
729
871
  # @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.
872
+ # A pagination token returned from a previous call to ListNodes that indicates
873
+ # where this listing should continue from.
732
874
  # @param [String] fields
733
875
  # Selector specifying which fields to include in a partial response.
734
876
  # @param [String] quota_user
@@ -746,11 +888,12 @@ module Google
746
888
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
747
889
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
748
890
  # @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)
891
+ def list_customer_nodes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
750
892
  command = make_simple_command(:get, 'v1alpha1/{+parent}/nodes', options)
751
893
  command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse::Representation
752
894
  command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse
753
895
  command.params['parent'] = parent unless parent.nil?
896
+ command.query['filter'] = filter unless filter.nil?
754
897
  command.query['pageSize'] = page_size unless page_size.nil?
755
898
  command.query['pageToken'] = page_token unless page_token.nil?
756
899
  command.query['fields'] = fields unless fields.nil?
@@ -827,6 +970,81 @@ module Google
827
970
  execute_or_queue_command(command, &block)
828
971
  end
829
972
 
973
+ # Creates a new deployment.
974
+ # @param [String] parent
975
+ # Required. The parent resource name where the deployment is to be created.
976
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object
977
+ # @param [String] fields
978
+ # Selector specifying which fields to include in a partial response.
979
+ # @param [String] quota_user
980
+ # Available to use for quota purposes for server-side applications. Can be any
981
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
982
+ # @param [Google::Apis::RequestOptions] options
983
+ # Request-specific options
984
+ #
985
+ # @yield [result, err] Result & error if block supplied
986
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDeployment] parsed result object
987
+ # @yieldparam err [StandardError] error object if request failed
988
+ #
989
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
990
+ #
991
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
992
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
993
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
994
+ def create_customer_node_deployment(parent, sas_portal_deployment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
995
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/deployments', options)
996
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
997
+ command.request_object = sas_portal_deployment_object
998
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
999
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
1000
+ command.params['parent'] = parent unless parent.nil?
1001
+ command.query['fields'] = fields unless fields.nil?
1002
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1003
+ execute_or_queue_command(command, &block)
1004
+ end
1005
+
1006
+ # Lists deployments.
1007
+ # @param [String] parent
1008
+ # Required. The parent resource name, for example, "nodes/1", customer/1/nodes/2.
1009
+ # @param [String] filter
1010
+ # The filter expression. The filter should have the following format: "
1011
+ # DIRECT_CHILDREN" or format: "direct_children". The filter is case insensitive.
1012
+ # If empty, then no deployments are filtered.
1013
+ # @param [Fixnum] page_size
1014
+ # The maximum number of deployments to return in the response.
1015
+ # @param [String] page_token
1016
+ # A pagination token returned from a previous call to ListDeployments that
1017
+ # indicates where this listing should continue from.
1018
+ # @param [String] fields
1019
+ # Selector specifying which fields to include in a partial response.
1020
+ # @param [String] quota_user
1021
+ # Available to use for quota purposes for server-side applications. Can be any
1022
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1023
+ # @param [Google::Apis::RequestOptions] options
1024
+ # Request-specific options
1025
+ #
1026
+ # @yield [result, err] Result & error if block supplied
1027
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object
1028
+ # @yieldparam err [StandardError] error object if request failed
1029
+ #
1030
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse]
1031
+ #
1032
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1033
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1034
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1035
+ def list_customer_node_deployments(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1036
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options)
1037
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse::Representation
1038
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse
1039
+ command.params['parent'] = parent unless parent.nil?
1040
+ command.query['filter'] = filter unless filter.nil?
1041
+ command.query['pageSize'] = page_size unless page_size.nil?
1042
+ command.query['pageToken'] = page_token unless page_token.nil?
1043
+ command.query['fields'] = fields unless fields.nil?
1044
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1045
+ execute_or_queue_command(command, &block)
1046
+ end
1047
+
830
1048
  # Creates a device under a node or customer.
831
1049
  # @param [String] parent
832
1050
  # Required. The name of the parent resource.
@@ -898,7 +1116,7 @@ module Google
898
1116
  # Required. The name of the parent resource.
899
1117
  # @param [String] filter
900
1118
  # 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
1119
+ # sn=123454" or "display_name=MyDevice". sn corresponds to serial number of the
902
1120
  # device. The filter is case insensitive.
903
1121
  # @param [Fixnum] page_size
904
1122
  # The maximum number of devices to return in the response. If empty or zero, all
@@ -972,11 +1190,15 @@ module Google
972
1190
  # Lists nodes.
973
1191
  # @param [String] parent
974
1192
  # Required. The parent resource name, for example, "nodes/1".
1193
+ # @param [String] filter
1194
+ # The filter expression. The filter should have the following format: "
1195
+ # DIRECT_CHILDREN" or format: "direct_children". The filter is case insensitive.
1196
+ # If empty, then no nodes are filtered.
975
1197
  # @param [Fixnum] page_size
976
1198
  # The maximum number of nodes to return in the response.
977
1199
  # @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.
1200
+ # A pagination token returned from a previous call to ListNodes that indicates
1201
+ # where this listing should continue from.
980
1202
  # @param [String] fields
981
1203
  # Selector specifying which fields to include in a partial response.
982
1204
  # @param [String] quota_user
@@ -994,11 +1216,12 @@ module Google
994
1216
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
995
1217
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
996
1218
  # @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)
1219
+ def list_customer_node_nodes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
998
1220
  command = make_simple_command(:get, 'v1alpha1/{+parent}/nodes', options)
999
1221
  command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse::Representation
1000
1222
  command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse
1001
1223
  command.params['parent'] = parent unless parent.nil?
1224
+ command.query['filter'] = filter unless filter.nil?
1002
1225
  command.query['pageSize'] = page_size unless page_size.nil?
1003
1226
  command.query['pageToken'] = page_token unless page_token.nil?
1004
1227
  command.query['fields'] = fields unless fields.nil?
@@ -1006,6 +1229,36 @@ module Google
1006
1229
  execute_or_queue_command(command, &block)
1007
1230
  end
1008
1231
 
1232
+ # Returns a requested deployment.
1233
+ # @param [String] name
1234
+ # Required. The name of the deployment.
1235
+ # @param [String] fields
1236
+ # Selector specifying which fields to include in a partial response.
1237
+ # @param [String] quota_user
1238
+ # Available to use for quota purposes for server-side applications. Can be any
1239
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1240
+ # @param [Google::Apis::RequestOptions] options
1241
+ # Request-specific options
1242
+ #
1243
+ # @yield [result, err] Result & error if block supplied
1244
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDeployment] parsed result object
1245
+ # @yieldparam err [StandardError] error object if request failed
1246
+ #
1247
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
1248
+ #
1249
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1250
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1251
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1252
+ def get_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
1253
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
1254
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
1255
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
1256
+ command.params['name'] = name unless name.nil?
1257
+ command.query['fields'] = fields unless fields.nil?
1258
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1259
+ execute_or_queue_command(command, &block)
1260
+ end
1261
+
1009
1262
  # Deletes a device.
1010
1263
  # @param [String] name
1011
1264
  # Required. The name of the device.
@@ -1201,7 +1454,7 @@ module Google
1201
1454
  execute_or_queue_command(command, &block)
1202
1455
  end
1203
1456
 
1204
- # Generates a secret to be used with the ValidateInstaller method
1457
+ # Generates a secret to be used with the ValidateInstaller.
1205
1458
  # @param [Google::Apis::SasportalV1alpha1::SasPortalGenerateSecretRequest] sas_portal_generate_secret_request_object
1206
1459
  # @param [String] fields
1207
1460
  # Selector specifying which fields to include in a partial response.
@@ -1291,6 +1544,108 @@ module Google
1291
1544
  execute_or_queue_command(command, &block)
1292
1545
  end
1293
1546
 
1547
+ # Deletes a deployment.
1548
+ # @param [String] name
1549
+ # Required. The name of the deployment.
1550
+ # @param [String] fields
1551
+ # Selector specifying which fields to include in a partial response.
1552
+ # @param [String] quota_user
1553
+ # Available to use for quota purposes for server-side applications. Can be any
1554
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1555
+ # @param [Google::Apis::RequestOptions] options
1556
+ # Request-specific options
1557
+ #
1558
+ # @yield [result, err] Result & error if block supplied
1559
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalEmpty] parsed result object
1560
+ # @yieldparam err [StandardError] error object if request failed
1561
+ #
1562
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
1563
+ #
1564
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1565
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1566
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1567
+ def delete_node_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
1568
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
1569
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
1570
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
1571
+ command.params['name'] = name unless name.nil?
1572
+ command.query['fields'] = fields unless fields.nil?
1573
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1574
+ execute_or_queue_command(command, &block)
1575
+ end
1576
+
1577
+ # Returns a requested deployment.
1578
+ # @param [String] name
1579
+ # Required. The name of the deployment.
1580
+ # @param [String] fields
1581
+ # Selector specifying which fields to include in a partial response.
1582
+ # @param [String] quota_user
1583
+ # Available to use for quota purposes for server-side applications. Can be any
1584
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1585
+ # @param [Google::Apis::RequestOptions] options
1586
+ # Request-specific options
1587
+ #
1588
+ # @yield [result, err] Result & error if block supplied
1589
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDeployment] parsed result object
1590
+ # @yieldparam err [StandardError] error object if request failed
1591
+ #
1592
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
1593
+ #
1594
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1595
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1596
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1597
+ def get_node_deployment(name, fields: nil, quota_user: nil, options: nil, &block)
1598
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
1599
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
1600
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
1601
+ command.params['name'] = name unless name.nil?
1602
+ command.query['fields'] = fields unless fields.nil?
1603
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1604
+ execute_or_queue_command(command, &block)
1605
+ end
1606
+
1607
+ # Lists deployments.
1608
+ # @param [String] parent
1609
+ # Required. The parent resource name, for example, "nodes/1", customer/1/nodes/2.
1610
+ # @param [String] filter
1611
+ # The filter expression. The filter should have the following format: "
1612
+ # DIRECT_CHILDREN" or format: "direct_children". The filter is case insensitive.
1613
+ # If empty, then no deployments are filtered.
1614
+ # @param [Fixnum] page_size
1615
+ # The maximum number of deployments to return in the response.
1616
+ # @param [String] page_token
1617
+ # A pagination token returned from a previous call to ListDeployments that
1618
+ # indicates where this listing should continue from.
1619
+ # @param [String] fields
1620
+ # Selector specifying which fields to include in a partial response.
1621
+ # @param [String] quota_user
1622
+ # Available to use for quota purposes for server-side applications. Can be any
1623
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1624
+ # @param [Google::Apis::RequestOptions] options
1625
+ # Request-specific options
1626
+ #
1627
+ # @yield [result, err] Result & error if block supplied
1628
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object
1629
+ # @yieldparam err [StandardError] error object if request failed
1630
+ #
1631
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse]
1632
+ #
1633
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1634
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1635
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1636
+ def list_node_deployments(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1637
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options)
1638
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse::Representation
1639
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse
1640
+ command.params['parent'] = parent unless parent.nil?
1641
+ command.query['filter'] = filter unless filter.nil?
1642
+ command.query['pageSize'] = page_size unless page_size.nil?
1643
+ command.query['pageToken'] = page_token unless page_token.nil?
1644
+ command.query['fields'] = fields unless fields.nil?
1645
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1646
+ execute_or_queue_command(command, &block)
1647
+ end
1648
+
1294
1649
  # Moves a deployment under another node or customer.
1295
1650
  # @param [String] name
1296
1651
  # Required. The name of the deployment to move.
@@ -1324,6 +1679,42 @@ module Google
1324
1679
  execute_or_queue_command(command, &block)
1325
1680
  end
1326
1681
 
1682
+ # Updates an existing deployment.
1683
+ # @param [String] name
1684
+ # Output only. Resource name.
1685
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object
1686
+ # @param [String] update_mask
1687
+ # Fields to be updated.
1688
+ # @param [String] fields
1689
+ # Selector specifying which fields to include in a partial response.
1690
+ # @param [String] quota_user
1691
+ # Available to use for quota purposes for server-side applications. Can be any
1692
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1693
+ # @param [Google::Apis::RequestOptions] options
1694
+ # Request-specific options
1695
+ #
1696
+ # @yield [result, err] Result & error if block supplied
1697
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDeployment] parsed result object
1698
+ # @yieldparam err [StandardError] error object if request failed
1699
+ #
1700
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
1701
+ #
1702
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1703
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1704
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1705
+ def patch_node_deployment(name, sas_portal_deployment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1706
+ command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
1707
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
1708
+ command.request_object = sas_portal_deployment_object
1709
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
1710
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
1711
+ command.params['name'] = name unless name.nil?
1712
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1713
+ command.query['fields'] = fields unless fields.nil?
1714
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1715
+ execute_or_queue_command(command, &block)
1716
+ end
1717
+
1327
1718
  # Creates a device under a node or customer.
1328
1719
  # @param [String] parent
1329
1720
  # Required. The name of the parent resource.
@@ -1395,7 +1786,7 @@ module Google
1395
1786
  # Required. The name of the parent resource.
1396
1787
  # @param [String] filter
1397
1788
  # 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
1789
+ # sn=123454" or "display_name=MyDevice". sn corresponds to serial number of the
1399
1790
  # device. The filter is case insensitive.
1400
1791
  # @param [Fixnum] page_size
1401
1792
  # The maximum number of devices to return in the response. If empty or zero, all
@@ -1433,39 +1824,6 @@ module Google
1433
1824
  execute_or_queue_command(command, &block)
1434
1825
  end
1435
1826
 
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
1827
  # Creates a device under a node or customer.
1470
1828
  # @param [String] parent
1471
1829
  # Required. The name of the parent resource.
@@ -1597,7 +1955,7 @@ module Google
1597
1955
  # Required. The name of the parent resource.
1598
1956
  # @param [String] filter
1599
1957
  # 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
1958
+ # sn=123454" or "display_name=MyDevice". sn corresponds to serial number of the
1601
1959
  # device. The filter is case insensitive.
1602
1960
  # @param [Fixnum] page_size
1603
1961
  # The maximum number of devices to return in the response. If empty or zero, all
@@ -1866,11 +2224,15 @@ module Google
1866
2224
  # Lists nodes.
1867
2225
  # @param [String] parent
1868
2226
  # Required. The parent resource name, for example, "nodes/1".
2227
+ # @param [String] filter
2228
+ # The filter expression. The filter should have the following format: "
2229
+ # DIRECT_CHILDREN" or format: "direct_children". The filter is case insensitive.
2230
+ # If empty, then no nodes are filtered.
1869
2231
  # @param [Fixnum] page_size
1870
2232
  # The maximum number of nodes to return in the response.
1871
2233
  # @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.
2234
+ # A pagination token returned from a previous call to ListNodes that indicates
2235
+ # where this listing should continue from.
1874
2236
  # @param [String] fields
1875
2237
  # Selector specifying which fields to include in a partial response.
1876
2238
  # @param [String] quota_user
@@ -1888,11 +2250,12 @@ module Google
1888
2250
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1889
2251
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1890
2252
  # @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)
2253
+ def list_node_nodes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1892
2254
  command = make_simple_command(:get, 'v1alpha1/{+parent}/nodes', options)
1893
2255
  command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse::Representation
1894
2256
  command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse
1895
2257
  command.params['parent'] = parent unless parent.nil?
2258
+ command.query['filter'] = filter unless filter.nil?
1896
2259
  command.query['pageSize'] = page_size unless page_size.nil?
1897
2260
  command.query['pageToken'] = page_token unless page_token.nil?
1898
2261
  command.query['fields'] = fields unless fields.nil?
@@ -1969,10 +2332,51 @@ module Google
1969
2332
  execute_or_queue_command(command, &block)
1970
2333
  end
1971
2334
 
1972
- # Creates a device under a node or customer. Returned devices are unordered.
2335
+ # Creates a new deployment.
1973
2336
  # @param [String] parent
1974
- # Required. The name of the parent resource.
1975
- # @param [Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceRequest] sas_portal_bulk_create_device_request_object
2337
+ # Required. The parent resource name where the deployment is to be created.
2338
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDeployment] sas_portal_deployment_object
2339
+ # @param [String] fields
2340
+ # Selector specifying which fields to include in a partial response.
2341
+ # @param [String] quota_user
2342
+ # Available to use for quota purposes for server-side applications. Can be any
2343
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2344
+ # @param [Google::Apis::RequestOptions] options
2345
+ # Request-specific options
2346
+ #
2347
+ # @yield [result, err] Result & error if block supplied
2348
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDeployment] parsed result object
2349
+ # @yieldparam err [StandardError] error object if request failed
2350
+ #
2351
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDeployment]
2352
+ #
2353
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2354
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2355
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2356
+ def create_node_node_deployment(parent, sas_portal_deployment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2357
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/deployments', options)
2358
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
2359
+ command.request_object = sas_portal_deployment_object
2360
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDeployment::Representation
2361
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDeployment
2362
+ command.params['parent'] = parent unless parent.nil?
2363
+ command.query['fields'] = fields unless fields.nil?
2364
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2365
+ execute_or_queue_command(command, &block)
2366
+ end
2367
+
2368
+ # Lists deployments.
2369
+ # @param [String] parent
2370
+ # Required. The parent resource name, for example, "nodes/1", customer/1/nodes/2.
2371
+ # @param [String] filter
2372
+ # The filter expression. The filter should have the following format: "
2373
+ # DIRECT_CHILDREN" or format: "direct_children". The filter is case insensitive.
2374
+ # If empty, then no deployments are filtered.
2375
+ # @param [Fixnum] page_size
2376
+ # The maximum number of deployments to return in the response.
2377
+ # @param [String] page_token
2378
+ # A pagination token returned from a previous call to ListDeployments that
2379
+ # indicates where this listing should continue from.
1976
2380
  # @param [String] fields
1977
2381
  # Selector specifying which fields to include in a partial response.
1978
2382
  # @param [String] quota_user
@@ -1982,21 +2386,22 @@ module Google
1982
2386
  # Request-specific options
1983
2387
  #
1984
2388
  # @yield [result, err] Result & error if block supplied
1985
- # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceResponse] parsed result object
2389
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse] parsed result object
1986
2390
  # @yieldparam err [StandardError] error object if request failed
1987
2391
  #
1988
- # @return [Google::Apis::SasportalV1alpha1::SasPortalBulkCreateDeviceResponse]
2392
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse]
1989
2393
  #
1990
2394
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1991
2395
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1992
2396
  # @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
2397
+ def list_node_node_deployments(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2398
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/deployments', options)
2399
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse::Representation
2400
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDeploymentsResponse
1999
2401
  command.params['parent'] = parent unless parent.nil?
2402
+ command.query['filter'] = filter unless filter.nil?
2403
+ command.query['pageSize'] = page_size unless page_size.nil?
2404
+ command.query['pageToken'] = page_token unless page_token.nil?
2000
2405
  command.query['fields'] = fields unless fields.nil?
2001
2406
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2002
2407
  execute_or_queue_command(command, &block)
@@ -2073,7 +2478,7 @@ module Google
2073
2478
  # Required. The name of the parent resource.
2074
2479
  # @param [String] filter
2075
2480
  # 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
2481
+ # sn=123454" or "display_name=MyDevice". sn corresponds to serial number of the
2077
2482
  # device. The filter is case insensitive.
2078
2483
  # @param [Fixnum] page_size
2079
2484
  # The maximum number of devices to return in the response. If empty or zero, all
@@ -2147,11 +2552,15 @@ module Google
2147
2552
  # Lists nodes.
2148
2553
  # @param [String] parent
2149
2554
  # Required. The parent resource name, for example, "nodes/1".
2555
+ # @param [String] filter
2556
+ # The filter expression. The filter should have the following format: "
2557
+ # DIRECT_CHILDREN" or format: "direct_children". The filter is case insensitive.
2558
+ # If empty, then no nodes are filtered.
2150
2559
  # @param [Fixnum] page_size
2151
2560
  # The maximum number of nodes to return in the response.
2152
2561
  # @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.
2562
+ # A pagination token returned from a previous call to ListNodes that indicates
2563
+ # where this listing should continue from.
2155
2564
  # @param [String] fields
2156
2565
  # Selector specifying which fields to include in a partial response.
2157
2566
  # @param [String] quota_user
@@ -2169,11 +2578,12 @@ module Google
2169
2578
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2170
2579
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2171
2580
  # @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)
2581
+ def list_node_node_nodes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2173
2582
  command = make_simple_command(:get, 'v1alpha1/{+parent}/nodes', options)
2174
2583
  command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse::Representation
2175
2584
  command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListNodesResponse
2176
2585
  command.params['parent'] = parent unless parent.nil?
2586
+ command.query['filter'] = filter unless filter.nil?
2177
2587
  command.query['pageSize'] = page_size unless page_size.nil?
2178
2588
  command.query['pageToken'] = page_token unless page_token.nil?
2179
2589
  command.query['fields'] = fields unless fields.nil?