google-api-client 0.44.2 → 0.45.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +61 -0
  3. data/generated/google/apis/admob_v1.rb +4 -1
  4. data/generated/google/apis/admob_v1/classes.rb +2 -2
  5. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  6. data/generated/google/apis/androidenterprise_v1/service.rb +2 -2
  7. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  8. data/generated/google/apis/apigee_v1.rb +1 -1
  9. data/generated/google/apis/apigee_v1/classes.rb +206 -2
  10. data/generated/google/apis/apigee_v1/representations.rb +74 -0
  11. data/generated/google/apis/apigee_v1/service.rb +41 -19
  12. data/generated/google/apis/appengine_v1.rb +1 -1
  13. data/generated/google/apis/appengine_v1beta.rb +1 -1
  14. data/generated/google/apis/appsmarket_v2.rb +1 -1
  15. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  16. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +7 -0
  17. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +1 -0
  18. data/generated/google/apis/assuredworkloads_v1beta1.rb +34 -0
  19. data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +458 -0
  20. data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +230 -0
  21. data/generated/google/apis/assuredworkloads_v1beta1/service.rb +328 -0
  22. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  23. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +15 -5
  24. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  25. data/generated/google/apis/chat_v1.rb +1 -1
  26. data/generated/google/apis/chat_v1/classes.rb +3 -3
  27. data/generated/google/apis/classroom_v1.rb +7 -1
  28. data/generated/google/apis/classroom_v1/classes.rb +132 -0
  29. data/generated/google/apis/classroom_v1/representations.rb +43 -0
  30. data/generated/google/apis/classroom_v1/service.rb +240 -0
  31. data/generated/google/apis/cloudasset_v1.rb +1 -1
  32. data/generated/google/apis/cloudasset_v1/classes.rb +52 -0
  33. data/generated/google/apis/cloudasset_v1/representations.rb +16 -0
  34. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  35. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +4 -2
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbilling_v1/classes.rb +4 -4
  38. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  39. data/generated/google/apis/cloudidentity_v1/classes.rb +84 -0
  40. data/generated/google/apis/cloudidentity_v1/representations.rb +46 -0
  41. data/generated/google/apis/cloudidentity_v1/service.rb +39 -1
  42. data/generated/google/apis/cloudkms_v1.rb +1 -1
  43. data/generated/google/apis/cloudkms_v1/classes.rb +7 -0
  44. data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
  45. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  46. data/generated/google/apis/cloudtasks_v2/classes.rb +7 -0
  47. data/generated/google/apis/cloudtasks_v2/representations.rb +1 -0
  48. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  49. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +25 -19
  50. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
  51. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  52. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +7 -0
  53. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  54. data/generated/google/apis/container_v1beta1.rb +1 -1
  55. data/generated/google/apis/container_v1beta1/classes.rb +28 -0
  56. data/generated/google/apis/container_v1beta1/representations.rb +15 -0
  57. data/generated/google/apis/content_v2_1.rb +1 -1
  58. data/generated/google/apis/content_v2_1/classes.rb +1 -1
  59. data/generated/google/apis/customsearch_v1.rb +1 -1
  60. data/generated/google/apis/customsearch_v1/service.rb +2 -2
  61. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  62. data/generated/google/apis/dataflow_v1b3/classes.rb +135 -0
  63. data/generated/google/apis/dataflow_v1b3/representations.rb +30 -0
  64. data/generated/google/apis/dataflow_v1b3/service.rb +10 -1
  65. data/generated/google/apis/dataproc_v1.rb +1 -1
  66. data/generated/google/apis/dataproc_v1/classes.rb +3 -3
  67. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  68. data/generated/google/apis/dataproc_v1beta2/classes.rb +5 -4
  69. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  70. data/generated/google/apis/dfareporting_v3_3/service.rb +51 -54
  71. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  72. data/generated/google/apis/dfareporting_v3_4/service.rb +51 -54
  73. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  74. data/generated/google/apis/dialogflow_v3beta1/classes.rb +18 -0
  75. data/generated/google/apis/dialogflow_v3beta1/representations.rb +2 -0
  76. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  77. data/generated/google/apis/firebasehosting_v1beta1/service.rb +4 -4
  78. data/generated/google/apis/healthcare_v1.rb +1 -1
  79. data/generated/google/apis/healthcare_v1/service.rb +1 -3
  80. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  81. data/generated/google/apis/healthcare_v1beta1/classes.rb +7 -0
  82. data/generated/google/apis/healthcare_v1beta1/representations.rb +1 -0
  83. data/generated/google/apis/healthcare_v1beta1/service.rb +1 -3
  84. data/generated/google/apis/iam_v1.rb +1 -1
  85. data/generated/google/apis/iam_v1/service.rb +2 -1
  86. data/generated/google/apis/licensing_v1.rb +4 -3
  87. data/generated/google/apis/licensing_v1/classes.rb +1 -1
  88. data/generated/google/apis/licensing_v1/service.rb +55 -85
  89. data/generated/google/apis/monitoring_v1.rb +1 -1
  90. data/generated/google/apis/monitoring_v1/classes.rb +10 -10
  91. data/generated/google/apis/monitoring_v3.rb +1 -1
  92. data/generated/google/apis/monitoring_v3/classes.rb +36 -30
  93. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  94. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +68 -0
  95. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +23 -0
  96. data/generated/google/apis/pubsub_v1.rb +1 -1
  97. data/generated/google/apis/pubsub_v1/classes.rb +7 -0
  98. data/generated/google/apis/pubsub_v1/representations.rb +1 -0
  99. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  100. data/generated/google/apis/pubsub_v1beta2/classes.rb +7 -0
  101. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -0
  102. data/generated/google/apis/pubsublite_v1.rb +1 -1
  103. data/generated/google/apis/pubsublite_v1/classes.rb +72 -0
  104. data/generated/google/apis/pubsublite_v1/representations.rb +33 -0
  105. data/generated/google/apis/pubsublite_v1/service.rb +33 -0
  106. data/generated/google/apis/redis_v1.rb +1 -1
  107. data/generated/google/apis/redis_v1/classes.rb +0 -386
  108. data/generated/google/apis/redis_v1/representations.rb +0 -139
  109. data/generated/google/apis/redis_v1beta1.rb +1 -1
  110. data/generated/google/apis/redis_v1beta1/classes.rb +0 -386
  111. data/generated/google/apis/redis_v1beta1/representations.rb +0 -139
  112. data/generated/google/apis/reseller_v1.rb +2 -2
  113. data/generated/google/apis/reseller_v1/classes.rb +151 -219
  114. data/generated/google/apis/reseller_v1/service.rb +122 -173
  115. data/generated/google/apis/run_v1.rb +1 -1
  116. data/generated/google/apis/run_v1/classes.rb +8 -8
  117. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  118. data/generated/google/apis/sasportal_v1alpha1/classes.rb +20 -0
  119. data/generated/google/apis/sasportal_v1alpha1/representations.rb +13 -0
  120. data/generated/google/apis/sasportal_v1alpha1/service.rb +479 -0
  121. data/generated/google/apis/secretmanager_v1.rb +1 -1
  122. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  123. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +12 -12
  124. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +31 -29
  125. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  126. data/generated/google/apis/servicecontrol_v1/classes.rb +8 -5
  127. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  128. data/generated/google/apis/servicecontrol_v2/classes.rb +7 -4
  129. data/generated/google/apis/sheets_v4.rb +1 -1
  130. data/generated/google/apis/sheets_v4/classes.rb +1 -1
  131. data/generated/google/apis/spanner_v1.rb +1 -1
  132. data/generated/google/apis/spanner_v1/classes.rb +7 -0
  133. data/generated/google/apis/spanner_v1/representations.rb +1 -0
  134. data/generated/google/apis/{sql_v1beta4.rb → sqladmin_v1beta4.rb} +5 -5
  135. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/classes.rb +142 -97
  136. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/representations.rb +104 -87
  137. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/service.rb +244 -244
  138. data/generated/google/apis/tagmanager_v2.rb +1 -1
  139. data/generated/google/apis/tasks_v1.rb +1 -1
  140. data/generated/google/apis/tasks_v1/classes.rb +1 -1
  141. data/generated/google/apis/tasks_v1/service.rb +4 -3
  142. data/generated/google/apis/testing_v1.rb +1 -1
  143. data/generated/google/apis/testing_v1/classes.rb +2 -2
  144. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  145. data/generated/google/apis/youtube_v3.rb +1 -1
  146. data/generated/google/apis/youtube_v3/classes.rb +46 -845
  147. data/generated/google/apis/youtube_v3/representations.rb +0 -390
  148. data/generated/google/apis/youtube_v3/service.rb +2 -197
  149. data/lib/google/apis/version.rb +1 -1
  150. metadata +11 -11
  151. data/generated/google/apis/plus_v1.rb +0 -43
  152. data/generated/google/apis/plus_v1/classes.rb +0 -2094
  153. data/generated/google/apis/plus_v1/representations.rb +0 -907
  154. data/generated/google/apis/plus_v1/service.rb +0 -451
@@ -764,6 +764,26 @@ module Google
764
764
  end
765
765
  end
766
766
 
767
+ # Request for MoveDeployment method.
768
+ class SasPortalMoveDeploymentRequest
769
+ include Google::Apis::Core::Hashable
770
+
771
+ # Required. The name of the new parent resource Node or Customer to reparent the
772
+ # deployment under.
773
+ # Corresponds to the JSON property `destination`
774
+ # @return [String]
775
+ attr_accessor :destination
776
+
777
+ def initialize(**args)
778
+ update!(**args)
779
+ end
780
+
781
+ # Update properties of this object
782
+ def update!(**args)
783
+ @destination = args[:destination] if args.key?(:destination)
784
+ end
785
+ end
786
+
767
787
  # Request for MoveDevice method.
768
788
  class SasPortalMoveDeviceRequest
769
789
  include Google::Apis::Core::Hashable
@@ -148,6 +148,12 @@ module Google
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
+ class SasPortalMoveDeploymentRequest
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
151
157
  class SasPortalMoveDeviceRequest
152
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
159
 
@@ -435,6 +441,13 @@ module Google
435
441
  end
436
442
  end
437
443
 
444
+ class SasPortalMoveDeploymentRequest
445
+ # @private
446
+ class Representation < Google::Apis::Core::JsonRepresentation
447
+ property :destination, as: 'destination'
448
+ end
449
+ end
450
+
438
451
  class SasPortalMoveDeviceRequest
439
452
  # @private
440
453
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -147,6 +147,148 @@ module Google
147
147
  execute_or_queue_command(command, &block)
148
148
  end
149
149
 
150
+ # Moves a deployment under another node or customer.
151
+ # @param [String] name
152
+ # Required. The name of the deployment to move.
153
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalMoveDeploymentRequest] sas_portal_move_deployment_request_object
154
+ # @param [String] fields
155
+ # Selector specifying which fields to include in a partial response.
156
+ # @param [String] quota_user
157
+ # Available to use for quota purposes for server-side applications. Can be any
158
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
159
+ # @param [Google::Apis::RequestOptions] options
160
+ # Request-specific options
161
+ #
162
+ # @yield [result, err] Result & error if block supplied
163
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalOperation] parsed result object
164
+ # @yieldparam err [StandardError] error object if request failed
165
+ #
166
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalOperation]
167
+ #
168
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
169
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
170
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
171
+ def move_customer_deployment(name, sas_portal_move_deployment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
172
+ command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
173
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalMoveDeploymentRequest::Representation
174
+ command.request_object = sas_portal_move_deployment_request_object
175
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalOperation::Representation
176
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalOperation
177
+ command.params['name'] = name unless name.nil?
178
+ command.query['fields'] = fields unless fields.nil?
179
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
180
+ execute_or_queue_command(command, &block)
181
+ end
182
+
183
+ # Creates a device under a node or customer.
184
+ # @param [String] parent
185
+ # Required. The name of the parent resource.
186
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDevice] sas_portal_device_object
187
+ # @param [String] fields
188
+ # Selector specifying which fields to include in a partial response.
189
+ # @param [String] quota_user
190
+ # Available to use for quota purposes for server-side applications. Can be any
191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
192
+ # @param [Google::Apis::RequestOptions] options
193
+ # Request-specific options
194
+ #
195
+ # @yield [result, err] Result & error if block supplied
196
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
197
+ # @yieldparam err [StandardError] error object if request failed
198
+ #
199
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
200
+ #
201
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
202
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
203
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
204
+ def create_customer_deployment_device(parent, sas_portal_device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
205
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices', options)
206
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
207
+ command.request_object = sas_portal_device_object
208
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
209
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
210
+ command.params['parent'] = parent unless parent.nil?
211
+ command.query['fields'] = fields unless fields.nil?
212
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
213
+ execute_or_queue_command(command, &block)
214
+ end
215
+
216
+ # Creates a signed device under a node or customer.
217
+ # @param [String] parent
218
+ # Required. The name of the parent resource.
219
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_request_object
220
+ # @param [String] fields
221
+ # Selector specifying which fields to include in a partial response.
222
+ # @param [String] quota_user
223
+ # Available to use for quota purposes for server-side applications. Can be any
224
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
225
+ # @param [Google::Apis::RequestOptions] options
226
+ # Request-specific options
227
+ #
228
+ # @yield [result, err] Result & error if block supplied
229
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
230
+ # @yieldparam err [StandardError] error object if request failed
231
+ #
232
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
233
+ #
234
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
235
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
236
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
237
+ def create_customer_deployment_device_signed(parent, sas_portal_create_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
238
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:createSigned', options)
239
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest::Representation
240
+ command.request_object = sas_portal_create_signed_device_request_object
241
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
242
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
243
+ command.params['parent'] = parent unless parent.nil?
244
+ command.query['fields'] = fields unless fields.nil?
245
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
246
+ execute_or_queue_command(command, &block)
247
+ end
248
+
249
+ # Lists devices under a node or customer.
250
+ # @param [String] parent
251
+ # Required. The name of the parent resource.
252
+ # @param [String] filter
253
+ # The filter expression. The filter should have one of the following formats: "
254
+ # sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
255
+ # device. The filter is case insensitive.
256
+ # @param [Fixnum] page_size
257
+ # The maximum number of devices to return in the response. If empty or zero, all
258
+ # devices will be listed. Must be in the range [0, 1000].
259
+ # @param [String] page_token
260
+ # A pagination token returned from a previous call to ListDevices that indicates
261
+ # where this listing should continue from.
262
+ # @param [String] fields
263
+ # Selector specifying which fields to include in a partial response.
264
+ # @param [String] quota_user
265
+ # Available to use for quota purposes for server-side applications. Can be any
266
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
267
+ # @param [Google::Apis::RequestOptions] options
268
+ # Request-specific options
269
+ #
270
+ # @yield [result, err] Result & error if block supplied
271
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse] parsed result object
272
+ # @yieldparam err [StandardError] error object if request failed
273
+ #
274
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse]
275
+ #
276
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
277
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
278
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
279
+ def list_customer_deployment_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
280
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/devices', options)
281
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse::Representation
282
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse
283
+ command.params['parent'] = parent unless parent.nil?
284
+ command.query['filter'] = filter unless filter.nil?
285
+ command.query['pageSize'] = page_size unless page_size.nil?
286
+ command.query['pageToken'] = page_token unless page_token.nil?
287
+ command.query['fields'] = fields unless fields.nil?
288
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
289
+ execute_or_queue_command(command, &block)
290
+ end
291
+
150
292
  # Creates a device under a node or customer. Returned devices are unordered.
151
293
  # @param [String] parent
152
294
  # Required. The name of the parent resource.
@@ -753,6 +895,201 @@ module Google
753
895
  execute_or_queue_command(command, &block)
754
896
  end
755
897
 
898
+ # Deletes a device.
899
+ # @param [String] name
900
+ # Required. The name of the device.
901
+ # @param [String] fields
902
+ # Selector specifying which fields to include in a partial response.
903
+ # @param [String] quota_user
904
+ # Available to use for quota purposes for server-side applications. Can be any
905
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
906
+ # @param [Google::Apis::RequestOptions] options
907
+ # Request-specific options
908
+ #
909
+ # @yield [result, err] Result & error if block supplied
910
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalEmpty] parsed result object
911
+ # @yieldparam err [StandardError] error object if request failed
912
+ #
913
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
914
+ #
915
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
916
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
917
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
918
+ def delete_deployment_device(name, fields: nil, quota_user: nil, options: nil, &block)
919
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
920
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
921
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
922
+ command.params['name'] = name unless name.nil?
923
+ command.query['fields'] = fields unless fields.nil?
924
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
925
+ execute_or_queue_command(command, &block)
926
+ end
927
+
928
+ # Gets details about a device.
929
+ # @param [String] name
930
+ # Required. The name of the device.
931
+ # @param [String] fields
932
+ # Selector specifying which fields to include in a partial response.
933
+ # @param [String] quota_user
934
+ # Available to use for quota purposes for server-side applications. Can be any
935
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
936
+ # @param [Google::Apis::RequestOptions] options
937
+ # Request-specific options
938
+ #
939
+ # @yield [result, err] Result & error if block supplied
940
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
941
+ # @yieldparam err [StandardError] error object if request failed
942
+ #
943
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
944
+ #
945
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
946
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
947
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
948
+ def get_deployment_device(name, fields: nil, quota_user: nil, options: nil, &block)
949
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
950
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
951
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
952
+ command.params['name'] = name unless name.nil?
953
+ command.query['fields'] = fields unless fields.nil?
954
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
955
+ execute_or_queue_command(command, &block)
956
+ end
957
+
958
+ # Moves a device under another node or customer.
959
+ # @param [String] name
960
+ # Required. The name of the device to move.
961
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalMoveDeviceRequest] sas_portal_move_device_request_object
962
+ # @param [String] fields
963
+ # Selector specifying which fields to include in a partial response.
964
+ # @param [String] quota_user
965
+ # Available to use for quota purposes for server-side applications. Can be any
966
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
967
+ # @param [Google::Apis::RequestOptions] options
968
+ # Request-specific options
969
+ #
970
+ # @yield [result, err] Result & error if block supplied
971
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalOperation] parsed result object
972
+ # @yieldparam err [StandardError] error object if request failed
973
+ #
974
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalOperation]
975
+ #
976
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
977
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
978
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
979
+ def move_deployment_device(name, sas_portal_move_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
980
+ command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
981
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalMoveDeviceRequest::Representation
982
+ command.request_object = sas_portal_move_device_request_object
983
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalOperation::Representation
984
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalOperation
985
+ command.params['name'] = name unless name.nil?
986
+ command.query['fields'] = fields unless fields.nil?
987
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
988
+ execute_or_queue_command(command, &block)
989
+ end
990
+
991
+ # Updates a device.
992
+ # @param [String] name
993
+ # Output only. The resource path name.
994
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDevice] sas_portal_device_object
995
+ # @param [String] update_mask
996
+ # Fields to be updated.
997
+ # @param [String] fields
998
+ # Selector specifying which fields to include in a partial response.
999
+ # @param [String] quota_user
1000
+ # Available to use for quota purposes for server-side applications. Can be any
1001
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1002
+ # @param [Google::Apis::RequestOptions] options
1003
+ # Request-specific options
1004
+ #
1005
+ # @yield [result, err] Result & error if block supplied
1006
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
1007
+ # @yieldparam err [StandardError] error object if request failed
1008
+ #
1009
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
1010
+ #
1011
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1012
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1013
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1014
+ def patch_deployment_device(name, sas_portal_device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1015
+ command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
1016
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1017
+ command.request_object = sas_portal_device_object
1018
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1019
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
1020
+ command.params['name'] = name unless name.nil?
1021
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1022
+ command.query['fields'] = fields unless fields.nil?
1023
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1024
+ execute_or_queue_command(command, &block)
1025
+ end
1026
+
1027
+ # Signs a device.
1028
+ # @param [String] name
1029
+ # Output only. The resource path name.
1030
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalSignDeviceRequest] sas_portal_sign_device_request_object
1031
+ # @param [String] fields
1032
+ # Selector specifying which fields to include in a partial response.
1033
+ # @param [String] quota_user
1034
+ # Available to use for quota purposes for server-side applications. Can be any
1035
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1036
+ # @param [Google::Apis::RequestOptions] options
1037
+ # Request-specific options
1038
+ #
1039
+ # @yield [result, err] Result & error if block supplied
1040
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalEmpty] parsed result object
1041
+ # @yieldparam err [StandardError] error object if request failed
1042
+ #
1043
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalEmpty]
1044
+ #
1045
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1046
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1047
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1048
+ def sign_deployment_device_device(name, sas_portal_sign_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1049
+ command = make_simple_command(:post, 'v1alpha1/{+name}:signDevice', options)
1050
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalSignDeviceRequest::Representation
1051
+ command.request_object = sas_portal_sign_device_request_object
1052
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalEmpty::Representation
1053
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalEmpty
1054
+ command.params['name'] = name unless name.nil?
1055
+ command.query['fields'] = fields unless fields.nil?
1056
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1057
+ execute_or_queue_command(command, &block)
1058
+ end
1059
+
1060
+ # Updates a signed device.
1061
+ # @param [String] name
1062
+ # Required. The name of the device to update.
1063
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalUpdateSignedDeviceRequest] sas_portal_update_signed_device_request_object
1064
+ # @param [String] fields
1065
+ # Selector specifying which fields to include in a partial response.
1066
+ # @param [String] quota_user
1067
+ # Available to use for quota purposes for server-side applications. Can be any
1068
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1069
+ # @param [Google::Apis::RequestOptions] options
1070
+ # Request-specific options
1071
+ #
1072
+ # @yield [result, err] Result & error if block supplied
1073
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
1074
+ # @yieldparam err [StandardError] error object if request failed
1075
+ #
1076
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
1077
+ #
1078
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1079
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1080
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1081
+ def update_deployment_device_signed(name, sas_portal_update_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1082
+ command = make_simple_command(:patch, 'v1alpha1/{+name}:updateSigned', options)
1083
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalUpdateSignedDeviceRequest::Representation
1084
+ command.request_object = sas_portal_update_signed_device_request_object
1085
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1086
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
1087
+ command.params['name'] = name unless name.nil?
1088
+ command.query['fields'] = fields unless fields.nil?
1089
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1090
+ execute_or_queue_command(command, &block)
1091
+ end
1092
+
756
1093
  # Generates a secret to be used with the ValidateInstaller method
757
1094
  # @param [Google::Apis::SasportalV1alpha1::SasPortalGenerateSecretRequest] sas_portal_generate_secret_request_object
758
1095
  # @param [String] fields
@@ -843,6 +1180,148 @@ module Google
843
1180
  execute_or_queue_command(command, &block)
844
1181
  end
845
1182
 
1183
+ # Moves a deployment under another node or customer.
1184
+ # @param [String] name
1185
+ # Required. The name of the deployment to move.
1186
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalMoveDeploymentRequest] sas_portal_move_deployment_request_object
1187
+ # @param [String] fields
1188
+ # Selector specifying which fields to include in a partial response.
1189
+ # @param [String] quota_user
1190
+ # Available to use for quota purposes for server-side applications. Can be any
1191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1192
+ # @param [Google::Apis::RequestOptions] options
1193
+ # Request-specific options
1194
+ #
1195
+ # @yield [result, err] Result & error if block supplied
1196
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalOperation] parsed result object
1197
+ # @yieldparam err [StandardError] error object if request failed
1198
+ #
1199
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalOperation]
1200
+ #
1201
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1202
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1203
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1204
+ def move_node_deployment(name, sas_portal_move_deployment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1205
+ command = make_simple_command(:post, 'v1alpha1/{+name}:move', options)
1206
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalMoveDeploymentRequest::Representation
1207
+ command.request_object = sas_portal_move_deployment_request_object
1208
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalOperation::Representation
1209
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalOperation
1210
+ command.params['name'] = name unless name.nil?
1211
+ command.query['fields'] = fields unless fields.nil?
1212
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1213
+ execute_or_queue_command(command, &block)
1214
+ end
1215
+
1216
+ # Creates a device under a node or customer.
1217
+ # @param [String] parent
1218
+ # Required. The name of the parent resource.
1219
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalDevice] sas_portal_device_object
1220
+ # @param [String] fields
1221
+ # Selector specifying which fields to include in a partial response.
1222
+ # @param [String] quota_user
1223
+ # Available to use for quota purposes for server-side applications. Can be any
1224
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1225
+ # @param [Google::Apis::RequestOptions] options
1226
+ # Request-specific options
1227
+ #
1228
+ # @yield [result, err] Result & error if block supplied
1229
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
1230
+ # @yieldparam err [StandardError] error object if request failed
1231
+ #
1232
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
1233
+ #
1234
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1235
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1236
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1237
+ def create_node_deployment_device(parent, sas_portal_device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1238
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices', options)
1239
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1240
+ command.request_object = sas_portal_device_object
1241
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1242
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
1243
+ command.params['parent'] = parent unless parent.nil?
1244
+ command.query['fields'] = fields unless fields.nil?
1245
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1246
+ execute_or_queue_command(command, &block)
1247
+ end
1248
+
1249
+ # Creates a signed device under a node or customer.
1250
+ # @param [String] parent
1251
+ # Required. The name of the parent resource.
1252
+ # @param [Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest] sas_portal_create_signed_device_request_object
1253
+ # @param [String] fields
1254
+ # Selector specifying which fields to include in a partial response.
1255
+ # @param [String] quota_user
1256
+ # Available to use for quota purposes for server-side applications. Can be any
1257
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1258
+ # @param [Google::Apis::RequestOptions] options
1259
+ # Request-specific options
1260
+ #
1261
+ # @yield [result, err] Result & error if block supplied
1262
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalDevice] parsed result object
1263
+ # @yieldparam err [StandardError] error object if request failed
1264
+ #
1265
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalDevice]
1266
+ #
1267
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1268
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1269
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1270
+ def create_node_deployment_device_signed(parent, sas_portal_create_signed_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1271
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/devices:createSigned', options)
1272
+ command.request_representation = Google::Apis::SasportalV1alpha1::SasPortalCreateSignedDeviceRequest::Representation
1273
+ command.request_object = sas_portal_create_signed_device_request_object
1274
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalDevice::Representation
1275
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalDevice
1276
+ command.params['parent'] = parent unless parent.nil?
1277
+ command.query['fields'] = fields unless fields.nil?
1278
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1279
+ execute_or_queue_command(command, &block)
1280
+ end
1281
+
1282
+ # Lists devices under a node or customer.
1283
+ # @param [String] parent
1284
+ # Required. The name of the parent resource.
1285
+ # @param [String] filter
1286
+ # The filter expression. The filter should have one of the following formats: "
1287
+ # sn=123454" or "display_name=MyDevice". sn corresponds to serial_number of the
1288
+ # device. The filter is case insensitive.
1289
+ # @param [Fixnum] page_size
1290
+ # The maximum number of devices to return in the response. If empty or zero, all
1291
+ # devices will be listed. Must be in the range [0, 1000].
1292
+ # @param [String] page_token
1293
+ # A pagination token returned from a previous call to ListDevices that indicates
1294
+ # where this listing should continue from.
1295
+ # @param [String] fields
1296
+ # Selector specifying which fields to include in a partial response.
1297
+ # @param [String] quota_user
1298
+ # Available to use for quota purposes for server-side applications. Can be any
1299
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1300
+ # @param [Google::Apis::RequestOptions] options
1301
+ # Request-specific options
1302
+ #
1303
+ # @yield [result, err] Result & error if block supplied
1304
+ # @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse] parsed result object
1305
+ # @yieldparam err [StandardError] error object if request failed
1306
+ #
1307
+ # @return [Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse]
1308
+ #
1309
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1310
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1311
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1312
+ def list_node_deployment_devices(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1313
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/devices', options)
1314
+ command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse::Representation
1315
+ command.response_class = Google::Apis::SasportalV1alpha1::SasPortalListDevicesResponse
1316
+ command.params['parent'] = parent unless parent.nil?
1317
+ command.query['filter'] = filter unless filter.nil?
1318
+ command.query['pageSize'] = page_size unless page_size.nil?
1319
+ command.query['pageToken'] = page_token unless page_token.nil?
1320
+ command.query['fields'] = fields unless fields.nil?
1321
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1322
+ execute_or_queue_command(command, &block)
1323
+ end
1324
+
846
1325
  # Creates a device under a node or customer. Returned devices are unordered.
847
1326
  # @param [String] parent
848
1327
  # Required. The name of the parent resource.