google-apis-networkservices_v1beta1 0.44.0 → 0.45.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.
@@ -124,6 +124,229 @@ module Google
124
124
  execute_or_queue_command(command, &block)
125
125
  end
126
126
 
127
+ # Creates a new `AuthzExtension` resource in a given project and location.
128
+ # @param [String] parent
129
+ # Required. The parent resource of the `AuthzExtension` resource. Must be in the
130
+ # format `projects/`project`/locations/`location``.
131
+ # @param [Google::Apis::NetworkservicesV1beta1::AuthzExtension] authz_extension_object
132
+ # @param [String] authz_extension_id
133
+ # Required. User-provided ID of the `AuthzExtension` resource to be created.
134
+ # @param [String] request_id
135
+ # Optional. An optional request ID to identify requests. Specify a unique
136
+ # request ID so that if you must retry your request, the server can ignore the
137
+ # request if it has already been completed. The server guarantees that for at
138
+ # least 60 minutes since the first request. For example, consider a situation
139
+ # where you make an initial request and the request times out. If you make the
140
+ # request again with the same request ID, the server can check if original
141
+ # operation with the same request ID was received, and if so, ignores the second
142
+ # request. This prevents clients from accidentally creating duplicate
143
+ # commitments. The request ID must be a valid UUID with the exception that zero
144
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
145
+ # @param [String] fields
146
+ # Selector specifying which fields to include in a partial response.
147
+ # @param [String] quota_user
148
+ # Available to use for quota purposes for server-side applications. Can be any
149
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
150
+ # @param [Google::Apis::RequestOptions] options
151
+ # Request-specific options
152
+ #
153
+ # @yield [result, err] Result & error if block supplied
154
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
155
+ # @yieldparam err [StandardError] error object if request failed
156
+ #
157
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
158
+ #
159
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
160
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
161
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
162
+ def create_project_location_authz_extension(parent, authz_extension_object = nil, authz_extension_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
163
+ command = make_simple_command(:post, 'v1beta1/{+parent}/authzExtensions', options)
164
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::AuthzExtension::Representation
165
+ command.request_object = authz_extension_object
166
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
167
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
168
+ command.params['parent'] = parent unless parent.nil?
169
+ command.query['authzExtensionId'] = authz_extension_id unless authz_extension_id.nil?
170
+ command.query['requestId'] = request_id unless request_id.nil?
171
+ command.query['fields'] = fields unless fields.nil?
172
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
173
+ execute_or_queue_command(command, &block)
174
+ end
175
+
176
+ # Deletes the specified `AuthzExtension` resource.
177
+ # @param [String] name
178
+ # Required. The name of the `AuthzExtension` resource to delete. Must be in the
179
+ # format `projects/`project`/locations/`location`/authzExtensions/`
180
+ # authz_extension``.
181
+ # @param [String] request_id
182
+ # Optional. An optional request ID to identify requests. Specify a unique
183
+ # request ID so that if you must retry your request, the server can ignore the
184
+ # request if it has already been completed. The server guarantees that for at
185
+ # least 60 minutes after the first request. For example, consider a situation
186
+ # where you make an initial request and the request times out. If you make the
187
+ # request again with the same request ID, the server can check if original
188
+ # operation with the same request ID was received, and if so, ignores the second
189
+ # request. This prevents clients from accidentally creating duplicate
190
+ # commitments. The request ID must be a valid UUID with the exception that zero
191
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
192
+ # @param [String] fields
193
+ # Selector specifying which fields to include in a partial response.
194
+ # @param [String] quota_user
195
+ # Available to use for quota purposes for server-side applications. Can be any
196
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
197
+ # @param [Google::Apis::RequestOptions] options
198
+ # Request-specific options
199
+ #
200
+ # @yield [result, err] Result & error if block supplied
201
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
202
+ # @yieldparam err [StandardError] error object if request failed
203
+ #
204
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
205
+ #
206
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
207
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
208
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
209
+ def delete_project_location_authz_extension(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
210
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
211
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
212
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
213
+ command.params['name'] = name unless name.nil?
214
+ command.query['requestId'] = request_id unless request_id.nil?
215
+ command.query['fields'] = fields unless fields.nil?
216
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
217
+ execute_or_queue_command(command, &block)
218
+ end
219
+
220
+ # Gets details of the specified `AuthzExtension` resource.
221
+ # @param [String] name
222
+ # Required. A name of the `AuthzExtension` resource to get. Must be in the
223
+ # format `projects/`project`/locations/`location`/authzExtensions/`
224
+ # authz_extension``.
225
+ # @param [String] fields
226
+ # Selector specifying which fields to include in a partial response.
227
+ # @param [String] quota_user
228
+ # Available to use for quota purposes for server-side applications. Can be any
229
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
230
+ # @param [Google::Apis::RequestOptions] options
231
+ # Request-specific options
232
+ #
233
+ # @yield [result, err] Result & error if block supplied
234
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::AuthzExtension] parsed result object
235
+ # @yieldparam err [StandardError] error object if request failed
236
+ #
237
+ # @return [Google::Apis::NetworkservicesV1beta1::AuthzExtension]
238
+ #
239
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
240
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
241
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
242
+ def get_project_location_authz_extension(name, fields: nil, quota_user: nil, options: nil, &block)
243
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
244
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::AuthzExtension::Representation
245
+ command.response_class = Google::Apis::NetworkservicesV1beta1::AuthzExtension
246
+ command.params['name'] = name unless name.nil?
247
+ command.query['fields'] = fields unless fields.nil?
248
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
249
+ execute_or_queue_command(command, &block)
250
+ end
251
+
252
+ # Lists `AuthzExtension` resources in a given project and location.
253
+ # @param [String] parent
254
+ # Required. The project and location from which the `AuthzExtension` resources
255
+ # are listed, specified in the following format: `projects/`project`/locations/`
256
+ # location``.
257
+ # @param [String] filter
258
+ # Optional. Filtering results.
259
+ # @param [String] order_by
260
+ # Optional. Hint for how to order the results.
261
+ # @param [Fixnum] page_size
262
+ # Optional. Requested page size. The server might return fewer items than
263
+ # requested. If unspecified, the server picks an appropriate default.
264
+ # @param [String] page_token
265
+ # Optional. A token identifying a page of results that the server returns.
266
+ # @param [String] fields
267
+ # Selector specifying which fields to include in a partial response.
268
+ # @param [String] quota_user
269
+ # Available to use for quota purposes for server-side applications. Can be any
270
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
271
+ # @param [Google::Apis::RequestOptions] options
272
+ # Request-specific options
273
+ #
274
+ # @yield [result, err] Result & error if block supplied
275
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListAuthzExtensionsResponse] parsed result object
276
+ # @yieldparam err [StandardError] error object if request failed
277
+ #
278
+ # @return [Google::Apis::NetworkservicesV1beta1::ListAuthzExtensionsResponse]
279
+ #
280
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
281
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
282
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
283
+ def list_project_location_authz_extensions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
284
+ command = make_simple_command(:get, 'v1beta1/{+parent}/authzExtensions', options)
285
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::ListAuthzExtensionsResponse::Representation
286
+ command.response_class = Google::Apis::NetworkservicesV1beta1::ListAuthzExtensionsResponse
287
+ command.params['parent'] = parent unless parent.nil?
288
+ command.query['filter'] = filter unless filter.nil?
289
+ command.query['orderBy'] = order_by unless order_by.nil?
290
+ command.query['pageSize'] = page_size unless page_size.nil?
291
+ command.query['pageToken'] = page_token unless page_token.nil?
292
+ command.query['fields'] = fields unless fields.nil?
293
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
294
+ execute_or_queue_command(command, &block)
295
+ end
296
+
297
+ # Updates the parameters of the specified `AuthzExtension` resource.
298
+ # @param [String] name
299
+ # Required. Identifier. Name of the `AuthzExtension` resource in the following
300
+ # format: `projects/`project`/locations/`location`/authzExtensions/`
301
+ # authz_extension``.
302
+ # @param [Google::Apis::NetworkservicesV1beta1::AuthzExtension] authz_extension_object
303
+ # @param [String] request_id
304
+ # Optional. An optional request ID to identify requests. Specify a unique
305
+ # request ID so that if you must retry your request, the server can ignore the
306
+ # request if it has already been completed. The server guarantees that for at
307
+ # least 60 minutes since the first request. For example, consider a situation
308
+ # where you make an initial request and the request times out. If you make the
309
+ # request again with the same request ID, the server can check if original
310
+ # operation with the same request ID was received, and if so, ignores the second
311
+ # request. This prevents clients from accidentally creating duplicate
312
+ # commitments. The request ID must be a valid UUID with the exception that zero
313
+ # UUID is not supported (00000000-0000-0000-0000-000000000000).
314
+ # @param [String] update_mask
315
+ # Required. Used to specify the fields to be overwritten in the `AuthzExtension`
316
+ # resource by the update. The fields specified in the `update_mask` are relative
317
+ # to the resource, not the full request. A field is overwritten if it is in the
318
+ # mask. If the user does not specify a mask, then all fields are overwritten.
319
+ # @param [String] fields
320
+ # Selector specifying which fields to include in a partial response.
321
+ # @param [String] quota_user
322
+ # Available to use for quota purposes for server-side applications. Can be any
323
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
324
+ # @param [Google::Apis::RequestOptions] options
325
+ # Request-specific options
326
+ #
327
+ # @yield [result, err] Result & error if block supplied
328
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
329
+ # @yieldparam err [StandardError] error object if request failed
330
+ #
331
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
332
+ #
333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
336
+ def patch_project_location_authz_extension(name, authz_extension_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
337
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
338
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::AuthzExtension::Representation
339
+ command.request_object = authz_extension_object
340
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
341
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
342
+ command.params['name'] = name unless name.nil?
343
+ command.query['requestId'] = request_id unless request_id.nil?
344
+ command.query['updateMask'] = update_mask unless update_mask.nil?
345
+ command.query['fields'] = fields unless fields.nil?
346
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
347
+ execute_or_queue_command(command, &block)
348
+ end
349
+
127
350
  # Creates a new EndpointPolicy in a given project and location.
128
351
  # @param [String] parent
129
352
  # Required. The parent resource of the EndpointPolicy. Must be in the format `
@@ -265,7 +488,7 @@ module Google
265
488
 
266
489
  # Updates the parameters of a single EndpointPolicy.
267
490
  # @param [String] name
268
- # Required. Name of the EndpointPolicy resource. It matches pattern `projects/`
491
+ # Identifier. Name of the EndpointPolicy resource. It matches pattern `projects/`
269
492
  # project`/locations/global/endpointPolicies/`endpoint_policy``.
270
493
  # @param [Google::Apis::NetworkservicesV1beta1::EndpointPolicy] endpoint_policy_object
271
494
  # @param [String] update_mask
@@ -444,7 +667,7 @@ module Google
444
667
 
445
668
  # Updates the parameters of a single Gateway.
446
669
  # @param [String] name
447
- # Required. Name of the Gateway resource. It matches pattern `projects/*/
670
+ # Identifier. Name of the Gateway resource. It matches pattern `projects/*/
448
671
  # locations/*/gateways/`.
449
672
  # @param [Google::Apis::NetworkservicesV1beta1::Gateway] gateway_object
450
673
  # @param [String] update_mask
@@ -483,6 +706,77 @@ module Google
483
706
  execute_or_queue_command(command, &block)
484
707
  end
485
708
 
709
+ # Get a single RouteView of a Gateway.
710
+ # @param [String] name
711
+ # Required. Name of the GatewayRouteView resource. Formats: projects/`
712
+ # project_number`/locations/`location`/gateways/`gateway_name`/routeViews/`
713
+ # route_view_name`
714
+ # @param [String] fields
715
+ # Selector specifying which fields to include in a partial response.
716
+ # @param [String] quota_user
717
+ # Available to use for quota purposes for server-side applications. Can be any
718
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
719
+ # @param [Google::Apis::RequestOptions] options
720
+ # Request-specific options
721
+ #
722
+ # @yield [result, err] Result & error if block supplied
723
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::GatewayRouteView] parsed result object
724
+ # @yieldparam err [StandardError] error object if request failed
725
+ #
726
+ # @return [Google::Apis::NetworkservicesV1beta1::GatewayRouteView]
727
+ #
728
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
729
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
730
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
731
+ def get_project_location_gateway_route_view(name, fields: nil, quota_user: nil, options: nil, &block)
732
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
733
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::GatewayRouteView::Representation
734
+ command.response_class = Google::Apis::NetworkservicesV1beta1::GatewayRouteView
735
+ command.params['name'] = name unless name.nil?
736
+ command.query['fields'] = fields unless fields.nil?
737
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
738
+ execute_or_queue_command(command, &block)
739
+ end
740
+
741
+ # Lists RouteViews
742
+ # @param [String] parent
743
+ # Required. The Gateway to which a Route is associated. Formats: projects/`
744
+ # project_number`/locations/`location`/gateways/`gateway_name`
745
+ # @param [Fixnum] page_size
746
+ # Maximum number of GatewayRouteViews to return per call.
747
+ # @param [String] page_token
748
+ # The value returned by the last `ListGatewayRouteViewsResponse` Indicates that
749
+ # this is a continuation of a prior `ListGatewayRouteViews` call, and that the
750
+ # system should return the next page of data.
751
+ # @param [String] fields
752
+ # Selector specifying which fields to include in a partial response.
753
+ # @param [String] quota_user
754
+ # Available to use for quota purposes for server-side applications. Can be any
755
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
756
+ # @param [Google::Apis::RequestOptions] options
757
+ # Request-specific options
758
+ #
759
+ # @yield [result, err] Result & error if block supplied
760
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListGatewayRouteViewsResponse] parsed result object
761
+ # @yieldparam err [StandardError] error object if request failed
762
+ #
763
+ # @return [Google::Apis::NetworkservicesV1beta1::ListGatewayRouteViewsResponse]
764
+ #
765
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
766
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
767
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
768
+ def list_project_location_gateway_route_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
769
+ command = make_simple_command(:get, 'v1beta1/{+parent}/routeViews', options)
770
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::ListGatewayRouteViewsResponse::Representation
771
+ command.response_class = Google::Apis::NetworkservicesV1beta1::ListGatewayRouteViewsResponse
772
+ command.params['parent'] = parent unless parent.nil?
773
+ command.query['pageSize'] = page_size unless page_size.nil?
774
+ command.query['pageToken'] = page_token unless page_token.nil?
775
+ command.query['fields'] = fields unless fields.nil?
776
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
777
+ execute_or_queue_command(command, &block)
778
+ end
779
+
486
780
  # Creates a new GrpcRoute in a given project and location.
487
781
  # @param [String] parent
488
782
  # Required. The parent resource of the GrpcRoute. Must be in the format `
@@ -623,7 +917,7 @@ module Google
623
917
 
624
918
  # Updates the parameters of a single GrpcRoute.
625
919
  # @param [String] name
626
- # Required. Name of the GrpcRoute resource. It matches pattern `projects/*/
920
+ # Identifier. Name of the GrpcRoute resource. It matches pattern `projects/*/
627
921
  # locations/global/grpcRoutes/`
628
922
  # @param [Google::Apis::NetworkservicesV1beta1::GrpcRoute] grpc_route_object
629
923
  # @param [String] update_mask
@@ -802,7 +1096,7 @@ module Google
802
1096
 
803
1097
  # Updates the parameters of a single HttpRoute.
804
1098
  # @param [String] name
805
- # Required. Name of the HttpRoute resource. It matches pattern `projects/*/
1099
+ # Identifier. Name of the HttpRoute resource. It matches pattern `projects/*/
806
1100
  # locations/global/httpRoutes/http_route_name>`.
807
1101
  # @param [Google::Apis::NetworkservicesV1beta1::HttpRoute] http_route_object
808
1102
  # @param [String] update_mask
@@ -1030,8 +1324,8 @@ module Google
1030
1324
  # UUID is not supported (00000000-0000-0000-0000-000000000000).
1031
1325
  # @param [String] update_mask
1032
1326
  # Optional. Used to specify the fields to be overwritten in the `
1033
- # LbRouteExtension` resource by the update. The fields specified in the
1034
- # update_mask are relative to the resource, not the full request. A field is
1327
+ # LbRouteExtension` resource by the update. The fields specified in the `
1328
+ # update_mask` are relative to the resource, not the full request. A field is
1035
1329
  # overwritten if it is in the mask. If the user does not specify a mask, then
1036
1330
  # all fields are overwritten.
1037
1331
  # @param [String] fields
@@ -1254,8 +1548,8 @@ module Google
1254
1548
  # UUID is not supported (00000000-0000-0000-0000-000000000000).
1255
1549
  # @param [String] update_mask
1256
1550
  # Optional. Used to specify the fields to be overwritten in the `
1257
- # LbTrafficExtension` resource by the update. The fields specified in the
1258
- # update_mask are relative to the resource, not the full request. A field is
1551
+ # LbTrafficExtension` resource by the update. The fields specified in the `
1552
+ # update_mask` are relative to the resource, not the full request. A field is
1259
1553
  # overwritten if it is in the mask. If the user does not specify a mask, then
1260
1554
  # all fields are overwritten.
1261
1555
  # @param [String] fields
@@ -1429,8 +1723,8 @@ module Google
1429
1723
 
1430
1724
  # Updates the parameters of a single Mesh.
1431
1725
  # @param [String] name
1432
- # Required. Name of the Mesh resource. It matches pattern `projects/*/locations/
1433
- # global/meshes/`.
1726
+ # Identifier. Name of the Mesh resource. It matches pattern `projects/*/
1727
+ # locations/global/meshes/`.
1434
1728
  # @param [Google::Apis::NetworkservicesV1beta1::Mesh] mesh_object
1435
1729
  # @param [String] update_mask
1436
1730
  # Optional. Field mask is used to specify the fields to be overwritten in the
@@ -1468,17 +1762,10 @@ module Google
1468
1762
  execute_or_queue_command(command, &block)
1469
1763
  end
1470
1764
 
1471
- # Starts asynchronous cancellation on a long-running operation. The server makes
1472
- # a best effort to cancel the operation, but success is not guaranteed. If the
1473
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1474
- # Clients can use Operations.GetOperation or other methods to check whether the
1475
- # cancellation succeeded or whether the operation completed despite cancellation.
1476
- # On successful cancellation, the operation is not deleted; instead, it becomes
1477
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1478
- # corresponding to `Code.CANCELLED`.
1765
+ # Get a single RouteView of a Mesh.
1479
1766
  # @param [String] name
1480
- # The name of the operation resource to be cancelled.
1481
- # @param [Google::Apis::NetworkservicesV1beta1::CancelOperationRequest] cancel_operation_request_object
1767
+ # Required. Name of the MeshRouteView resource. Format: projects/`project_number`
1768
+ # /locations/`location`/meshes/`mesh_name`/routeViews/`route_view_name`
1482
1769
  # @param [String] fields
1483
1770
  # Selector specifying which fields to include in a partial response.
1484
1771
  # @param [String] quota_user
@@ -1488,35 +1775,112 @@ module Google
1488
1775
  # Request-specific options
1489
1776
  #
1490
1777
  # @yield [result, err] Result & error if block supplied
1491
- # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Empty] parsed result object
1778
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::MeshRouteView] parsed result object
1492
1779
  # @yieldparam err [StandardError] error object if request failed
1493
1780
  #
1494
- # @return [Google::Apis::NetworkservicesV1beta1::Empty]
1781
+ # @return [Google::Apis::NetworkservicesV1beta1::MeshRouteView]
1495
1782
  #
1496
1783
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1497
1784
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1498
1785
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1499
- def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1500
- command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
1501
- command.request_representation = Google::Apis::NetworkservicesV1beta1::CancelOperationRequest::Representation
1502
- command.request_object = cancel_operation_request_object
1503
- command.response_representation = Google::Apis::NetworkservicesV1beta1::Empty::Representation
1504
- command.response_class = Google::Apis::NetworkservicesV1beta1::Empty
1786
+ def get_project_location_mesh_route_view(name, fields: nil, quota_user: nil, options: nil, &block)
1787
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
1788
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::MeshRouteView::Representation
1789
+ command.response_class = Google::Apis::NetworkservicesV1beta1::MeshRouteView
1505
1790
  command.params['name'] = name unless name.nil?
1506
1791
  command.query['fields'] = fields unless fields.nil?
1507
1792
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1508
1793
  execute_or_queue_command(command, &block)
1509
1794
  end
1510
1795
 
1511
- # Deletes a long-running operation. This method indicates that the client is no
1512
- # longer interested in the operation result. It does not cancel the operation.
1513
- # If the server doesn't support this method, it returns `google.rpc.Code.
1514
- # UNIMPLEMENTED`.
1515
- # @param [String] name
1516
- # The name of the operation resource to be deleted.
1517
- # @param [String] fields
1518
- # Selector specifying which fields to include in a partial response.
1519
- # @param [String] quota_user
1796
+ # Lists RouteViews
1797
+ # @param [String] parent
1798
+ # Required. The Mesh to which a Route is associated. Format: projects/`
1799
+ # project_number`/locations/`location`/meshes/`mesh_name`
1800
+ # @param [Fixnum] page_size
1801
+ # Maximum number of MeshRouteViews to return per call.
1802
+ # @param [String] page_token
1803
+ # The value returned by the last `ListMeshRouteViewsResponse` Indicates that
1804
+ # this is a continuation of a prior `ListMeshRouteViews` call, and that the
1805
+ # system should return the next page of data.
1806
+ # @param [String] fields
1807
+ # Selector specifying which fields to include in a partial response.
1808
+ # @param [String] quota_user
1809
+ # Available to use for quota purposes for server-side applications. Can be any
1810
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1811
+ # @param [Google::Apis::RequestOptions] options
1812
+ # Request-specific options
1813
+ #
1814
+ # @yield [result, err] Result & error if block supplied
1815
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListMeshRouteViewsResponse] parsed result object
1816
+ # @yieldparam err [StandardError] error object if request failed
1817
+ #
1818
+ # @return [Google::Apis::NetworkservicesV1beta1::ListMeshRouteViewsResponse]
1819
+ #
1820
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1821
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1822
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1823
+ def list_project_location_mesh_route_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1824
+ command = make_simple_command(:get, 'v1beta1/{+parent}/routeViews', options)
1825
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::ListMeshRouteViewsResponse::Representation
1826
+ command.response_class = Google::Apis::NetworkservicesV1beta1::ListMeshRouteViewsResponse
1827
+ command.params['parent'] = parent unless parent.nil?
1828
+ command.query['pageSize'] = page_size unless page_size.nil?
1829
+ command.query['pageToken'] = page_token unless page_token.nil?
1830
+ command.query['fields'] = fields unless fields.nil?
1831
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1832
+ execute_or_queue_command(command, &block)
1833
+ end
1834
+
1835
+ # Starts asynchronous cancellation on a long-running operation. The server makes
1836
+ # a best effort to cancel the operation, but success is not guaranteed. If the
1837
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
1838
+ # Clients can use Operations.GetOperation or other methods to check whether the
1839
+ # cancellation succeeded or whether the operation completed despite cancellation.
1840
+ # On successful cancellation, the operation is not deleted; instead, it becomes
1841
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1842
+ # corresponding to `Code.CANCELLED`.
1843
+ # @param [String] name
1844
+ # The name of the operation resource to be cancelled.
1845
+ # @param [Google::Apis::NetworkservicesV1beta1::CancelOperationRequest] cancel_operation_request_object
1846
+ # @param [String] fields
1847
+ # Selector specifying which fields to include in a partial response.
1848
+ # @param [String] quota_user
1849
+ # Available to use for quota purposes for server-side applications. Can be any
1850
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1851
+ # @param [Google::Apis::RequestOptions] options
1852
+ # Request-specific options
1853
+ #
1854
+ # @yield [result, err] Result & error if block supplied
1855
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Empty] parsed result object
1856
+ # @yieldparam err [StandardError] error object if request failed
1857
+ #
1858
+ # @return [Google::Apis::NetworkservicesV1beta1::Empty]
1859
+ #
1860
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1861
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1862
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1863
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1864
+ command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
1865
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::CancelOperationRequest::Representation
1866
+ command.request_object = cancel_operation_request_object
1867
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Empty::Representation
1868
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Empty
1869
+ command.params['name'] = name unless name.nil?
1870
+ command.query['fields'] = fields unless fields.nil?
1871
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1872
+ execute_or_queue_command(command, &block)
1873
+ end
1874
+
1875
+ # Deletes a long-running operation. This method indicates that the client is no
1876
+ # longer interested in the operation result. It does not cancel the operation.
1877
+ # If the server doesn't support this method, it returns `google.rpc.Code.
1878
+ # UNIMPLEMENTED`.
1879
+ # @param [String] name
1880
+ # The name of the operation resource to be deleted.
1881
+ # @param [String] fields
1882
+ # Selector specifying which fields to include in a partial response.
1883
+ # @param [String] quota_user
1520
1884
  # Available to use for quota purposes for server-side applications. Can be any
1521
1885
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1522
1886
  # @param [Google::Apis::RequestOptions] options
@@ -1851,51 +2215,6 @@ module Google
1851
2215
  execute_or_queue_command(command, &block)
1852
2216
  end
1853
2217
 
1854
- # Gets the access control policy for a resource. Returns an empty policy if the
1855
- # resource exists and does not have a policy set.
1856
- # @param [String] resource
1857
- # REQUIRED: The resource for which the policy is being requested. See [Resource
1858
- # names](https://cloud.google.com/apis/design/resource_names) for the
1859
- # appropriate value for this field.
1860
- # @param [Fixnum] options_requested_policy_version
1861
- # Optional. The maximum policy version that will be used to format the policy.
1862
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1863
- # rejected. Requests for policies with any conditional role bindings must
1864
- # specify version 3. Policies with no conditional role bindings may specify any
1865
- # valid value or leave the field unset. The policy in the response might use the
1866
- # policy version that you specified, or it might use a lower policy version. For
1867
- # example, if you specify version 3, but the policy has no conditional role
1868
- # bindings, the response uses version 1. To learn which resources support
1869
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1870
- # google.com/iam/help/conditions/resource-policies).
1871
- # @param [String] fields
1872
- # Selector specifying which fields to include in a partial response.
1873
- # @param [String] quota_user
1874
- # Available to use for quota purposes for server-side applications. Can be any
1875
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1876
- # @param [Google::Apis::RequestOptions] options
1877
- # Request-specific options
1878
- #
1879
- # @yield [result, err] Result & error if block supplied
1880
- # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Policy] parsed result object
1881
- # @yieldparam err [StandardError] error object if request failed
1882
- #
1883
- # @return [Google::Apis::NetworkservicesV1beta1::Policy]
1884
- #
1885
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1886
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1887
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1888
- def get_project_location_service_lb_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1889
- command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
1890
- command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
1891
- command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
1892
- command.params['resource'] = resource unless resource.nil?
1893
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1894
- command.query['fields'] = fields unless fields.nil?
1895
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1896
- execute_or_queue_command(command, &block)
1897
- end
1898
-
1899
2218
  # Lists ServiceLbPolicies in a given project and location.
1900
2219
  # @param [String] parent
1901
2220
  # Required. The project and location from which the ServiceLbPolicies should be
@@ -1937,8 +2256,8 @@ module Google
1937
2256
 
1938
2257
  # Updates the parameters of a single ServiceLbPolicy.
1939
2258
  # @param [String] name
1940
- # Required. Name of the ServiceLbPolicy resource. It matches pattern `projects/`
1941
- # project`/locations/`location`/serviceLbPolicies/`service_lb_policy_name``.
2259
+ # Identifier. Name of the ServiceLbPolicy resource. It matches pattern `projects/
2260
+ # `project`/locations/`location`/serviceLbPolicies/`service_lb_policy_name``.
1942
2261
  # @param [Google::Apis::NetworkservicesV1beta1::ServiceLbPolicy] service_lb_policy_object
1943
2262
  # @param [String] update_mask
1944
2263
  # Optional. Field mask is used to specify the fields to be overwritten in the
@@ -1976,82 +2295,6 @@ module Google
1976
2295
  execute_or_queue_command(command, &block)
1977
2296
  end
1978
2297
 
1979
- # Sets the access control policy on the specified resource. Replaces any
1980
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1981
- # PERMISSION_DENIED` errors.
1982
- # @param [String] resource
1983
- # REQUIRED: The resource for which the policy is being specified. See [Resource
1984
- # names](https://cloud.google.com/apis/design/resource_names) for the
1985
- # appropriate value for this field.
1986
- # @param [Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
1987
- # @param [String] fields
1988
- # Selector specifying which fields to include in a partial response.
1989
- # @param [String] quota_user
1990
- # Available to use for quota purposes for server-side applications. Can be any
1991
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1992
- # @param [Google::Apis::RequestOptions] options
1993
- # Request-specific options
1994
- #
1995
- # @yield [result, err] Result & error if block supplied
1996
- # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Policy] parsed result object
1997
- # @yieldparam err [StandardError] error object if request failed
1998
- #
1999
- # @return [Google::Apis::NetworkservicesV1beta1::Policy]
2000
- #
2001
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2002
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2003
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2004
- def set_service_lb_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2005
- command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
2006
- command.request_representation = Google::Apis::NetworkservicesV1beta1::SetIamPolicyRequest::Representation
2007
- command.request_object = set_iam_policy_request_object
2008
- command.response_representation = Google::Apis::NetworkservicesV1beta1::Policy::Representation
2009
- command.response_class = Google::Apis::NetworkservicesV1beta1::Policy
2010
- command.params['resource'] = resource unless resource.nil?
2011
- command.query['fields'] = fields unless fields.nil?
2012
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2013
- execute_or_queue_command(command, &block)
2014
- end
2015
-
2016
- # Returns permissions that a caller has on the specified resource. If the
2017
- # resource does not exist, this will return an empty set of permissions, not a `
2018
- # NOT_FOUND` error. Note: This operation is designed to be used for building
2019
- # permission-aware UIs and command-line tools, not for authorization checking.
2020
- # This operation may "fail open" without warning.
2021
- # @param [String] resource
2022
- # REQUIRED: The resource for which the policy detail is being requested. See [
2023
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
2024
- # appropriate value for this field.
2025
- # @param [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
2026
- # @param [String] fields
2027
- # Selector specifying which fields to include in a partial response.
2028
- # @param [String] quota_user
2029
- # Available to use for quota purposes for server-side applications. Can be any
2030
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2031
- # @param [Google::Apis::RequestOptions] options
2032
- # Request-specific options
2033
- #
2034
- # @yield [result, err] Result & error if block supplied
2035
- # @yieldparam result [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse] parsed result object
2036
- # @yieldparam err [StandardError] error object if request failed
2037
- #
2038
- # @return [Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse]
2039
- #
2040
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2041
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2042
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2043
- def test_service_lb_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2044
- command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
2045
- command.request_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsRequest::Representation
2046
- command.request_object = test_iam_permissions_request_object
2047
- command.response_representation = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse::Representation
2048
- command.response_class = Google::Apis::NetworkservicesV1beta1::TestIamPermissionsResponse
2049
- command.params['resource'] = resource unless resource.nil?
2050
- command.query['fields'] = fields unless fields.nil?
2051
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2052
- execute_or_queue_command(command, &block)
2053
- end
2054
-
2055
2298
  # Creates a new TcpRoute in a given project and location.
2056
2299
  # @param [String] parent
2057
2300
  # Required. The parent resource of the TcpRoute. Must be in the format `projects/
@@ -2192,7 +2435,7 @@ module Google
2192
2435
 
2193
2436
  # Updates the parameters of a single TcpRoute.
2194
2437
  # @param [String] name
2195
- # Required. Name of the TcpRoute resource. It matches pattern `projects/*/
2438
+ # Identifier. Name of the TcpRoute resource. It matches pattern `projects/*/
2196
2439
  # locations/global/tcpRoutes/tcp_route_name>`.
2197
2440
  # @param [Google::Apis::NetworkservicesV1beta1::TcpRoute] tcp_route_object
2198
2441
  # @param [String] update_mask
@@ -2409,6 +2652,337 @@ module Google
2409
2652
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2410
2653
  execute_or_queue_command(command, &block)
2411
2654
  end
2655
+
2656
+ # Creates a new `WasmPlugin` resource in a given project and location.
2657
+ # @param [String] parent
2658
+ # Required. The parent resource of the `WasmPlugin` resource. Must be in the
2659
+ # format `projects/`project`/locations/global`.
2660
+ # @param [Google::Apis::NetworkservicesV1beta1::WasmPlugin] wasm_plugin_object
2661
+ # @param [String] wasm_plugin_id
2662
+ # Required. User-provided ID of the `WasmPlugin` resource to be created.
2663
+ # @param [String] fields
2664
+ # Selector specifying which fields to include in a partial response.
2665
+ # @param [String] quota_user
2666
+ # Available to use for quota purposes for server-side applications. Can be any
2667
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2668
+ # @param [Google::Apis::RequestOptions] options
2669
+ # Request-specific options
2670
+ #
2671
+ # @yield [result, err] Result & error if block supplied
2672
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
2673
+ # @yieldparam err [StandardError] error object if request failed
2674
+ #
2675
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
2676
+ #
2677
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2678
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2679
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2680
+ def create_project_location_wasm_plugin(parent, wasm_plugin_object = nil, wasm_plugin_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2681
+ command = make_simple_command(:post, 'v1beta1/{+parent}/wasmPlugins', options)
2682
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::WasmPlugin::Representation
2683
+ command.request_object = wasm_plugin_object
2684
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
2685
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
2686
+ command.params['parent'] = parent unless parent.nil?
2687
+ command.query['wasmPluginId'] = wasm_plugin_id unless wasm_plugin_id.nil?
2688
+ command.query['fields'] = fields unless fields.nil?
2689
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2690
+ execute_or_queue_command(command, &block)
2691
+ end
2692
+
2693
+ # Deletes the specified `WasmPlugin` resource.
2694
+ # @param [String] name
2695
+ # Required. A name of the `WasmPlugin` resource to delete. Must be in the format
2696
+ # `projects/`project`/locations/global/wasmPlugins/`wasm_plugin``.
2697
+ # @param [String] fields
2698
+ # Selector specifying which fields to include in a partial response.
2699
+ # @param [String] quota_user
2700
+ # Available to use for quota purposes for server-side applications. Can be any
2701
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2702
+ # @param [Google::Apis::RequestOptions] options
2703
+ # Request-specific options
2704
+ #
2705
+ # @yield [result, err] Result & error if block supplied
2706
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
2707
+ # @yieldparam err [StandardError] error object if request failed
2708
+ #
2709
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
2710
+ #
2711
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2712
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2713
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2714
+ def delete_project_location_wasm_plugin(name, fields: nil, quota_user: nil, options: nil, &block)
2715
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
2716
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
2717
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
2718
+ command.params['name'] = name unless name.nil?
2719
+ command.query['fields'] = fields unless fields.nil?
2720
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2721
+ execute_or_queue_command(command, &block)
2722
+ end
2723
+
2724
+ # Gets details of the specified `WasmPlugin` resource.
2725
+ # @param [String] name
2726
+ # Required. A name of the `WasmPlugin` resource to get. Must be in the format `
2727
+ # projects/`project`/locations/global/wasmPlugins/`wasm_plugin``.
2728
+ # @param [String] view
2729
+ # Determines how much data must be returned in the response. See [AIP-157](https:
2730
+ # //google.aip.dev/157).
2731
+ # @param [String] fields
2732
+ # Selector specifying which fields to include in a partial response.
2733
+ # @param [String] quota_user
2734
+ # Available to use for quota purposes for server-side applications. Can be any
2735
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2736
+ # @param [Google::Apis::RequestOptions] options
2737
+ # Request-specific options
2738
+ #
2739
+ # @yield [result, err] Result & error if block supplied
2740
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::WasmPlugin] parsed result object
2741
+ # @yieldparam err [StandardError] error object if request failed
2742
+ #
2743
+ # @return [Google::Apis::NetworkservicesV1beta1::WasmPlugin]
2744
+ #
2745
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2746
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2747
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2748
+ def get_project_location_wasm_plugin(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
2749
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2750
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::WasmPlugin::Representation
2751
+ command.response_class = Google::Apis::NetworkservicesV1beta1::WasmPlugin
2752
+ command.params['name'] = name unless name.nil?
2753
+ command.query['view'] = view unless view.nil?
2754
+ command.query['fields'] = fields unless fields.nil?
2755
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2756
+ execute_or_queue_command(command, &block)
2757
+ end
2758
+
2759
+ # Lists `WasmPlugin` resources in a given project and location.
2760
+ # @param [String] parent
2761
+ # Required. The project and location from which the `WasmPlugin` resources are
2762
+ # listed, specified in the following format: `projects/`project`/locations/
2763
+ # global`.
2764
+ # @param [Fixnum] page_size
2765
+ # Maximum number of `WasmPlugin` resources to return per call. If not specified,
2766
+ # at most 50 `WasmPlugin` resources are returned. The maximum value is 1000;
2767
+ # values above 1000 are coerced to 1000.
2768
+ # @param [String] page_token
2769
+ # The value returned by the last `ListWasmPluginsResponse` call. Indicates that
2770
+ # this is a continuation of a prior `ListWasmPlugins` call, and that the next
2771
+ # page of data is to be returned.
2772
+ # @param [String] fields
2773
+ # Selector specifying which fields to include in a partial response.
2774
+ # @param [String] quota_user
2775
+ # Available to use for quota purposes for server-side applications. Can be any
2776
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2777
+ # @param [Google::Apis::RequestOptions] options
2778
+ # Request-specific options
2779
+ #
2780
+ # @yield [result, err] Result & error if block supplied
2781
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListWasmPluginsResponse] parsed result object
2782
+ # @yieldparam err [StandardError] error object if request failed
2783
+ #
2784
+ # @return [Google::Apis::NetworkservicesV1beta1::ListWasmPluginsResponse]
2785
+ #
2786
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2787
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2788
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2789
+ def list_project_location_wasm_plugins(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2790
+ command = make_simple_command(:get, 'v1beta1/{+parent}/wasmPlugins', options)
2791
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::ListWasmPluginsResponse::Representation
2792
+ command.response_class = Google::Apis::NetworkservicesV1beta1::ListWasmPluginsResponse
2793
+ command.params['parent'] = parent unless parent.nil?
2794
+ command.query['pageSize'] = page_size unless page_size.nil?
2795
+ command.query['pageToken'] = page_token unless page_token.nil?
2796
+ command.query['fields'] = fields unless fields.nil?
2797
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2798
+ execute_or_queue_command(command, &block)
2799
+ end
2800
+
2801
+ # Updates the parameters of the specified `WasmPlugin` resource.
2802
+ # @param [String] name
2803
+ # Identifier. Name of the `WasmPlugin` resource in the following format: `
2804
+ # projects/`project`/locations/`location`/wasmPlugins/`wasm_plugin``.
2805
+ # @param [Google::Apis::NetworkservicesV1beta1::WasmPlugin] wasm_plugin_object
2806
+ # @param [String] update_mask
2807
+ # Optional. Used to specify the fields to be overwritten in the `WasmPlugin`
2808
+ # resource by the update. The fields specified in the `update_mask` field are
2809
+ # relative to the resource, not the full request. An omitted `update_mask` field
2810
+ # is treated as an implied `update_mask` field equivalent to all fields that are
2811
+ # populated (that have a non-empty value). The `update_mask` field supports a
2812
+ # special value `*`, which means that each field in the given `WasmPlugin`
2813
+ # resource (including the empty ones) replaces the current value.
2814
+ # @param [String] fields
2815
+ # Selector specifying which fields to include in a partial response.
2816
+ # @param [String] quota_user
2817
+ # Available to use for quota purposes for server-side applications. Can be any
2818
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2819
+ # @param [Google::Apis::RequestOptions] options
2820
+ # Request-specific options
2821
+ #
2822
+ # @yield [result, err] Result & error if block supplied
2823
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
2824
+ # @yieldparam err [StandardError] error object if request failed
2825
+ #
2826
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
2827
+ #
2828
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2829
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2830
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2831
+ def patch_project_location_wasm_plugin(name, wasm_plugin_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2832
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
2833
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::WasmPlugin::Representation
2834
+ command.request_object = wasm_plugin_object
2835
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
2836
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
2837
+ command.params['name'] = name unless name.nil?
2838
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2839
+ command.query['fields'] = fields unless fields.nil?
2840
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2841
+ execute_or_queue_command(command, &block)
2842
+ end
2843
+
2844
+ # Creates a new `WasmPluginVersion` resource in a given project and location.
2845
+ # @param [String] parent
2846
+ # Required. The parent resource of the `WasmPluginVersion` resource. Must be in
2847
+ # the format `projects/`project`/locations/global/wasmPlugins/`wasm_plugin``.
2848
+ # @param [Google::Apis::NetworkservicesV1beta1::WasmPluginVersion] wasm_plugin_version_object
2849
+ # @param [String] wasm_plugin_version_id
2850
+ # Required. User-provided ID of the `WasmPluginVersion` resource to be created.
2851
+ # @param [String] fields
2852
+ # Selector specifying which fields to include in a partial response.
2853
+ # @param [String] quota_user
2854
+ # Available to use for quota purposes for server-side applications. Can be any
2855
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2856
+ # @param [Google::Apis::RequestOptions] options
2857
+ # Request-specific options
2858
+ #
2859
+ # @yield [result, err] Result & error if block supplied
2860
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
2861
+ # @yieldparam err [StandardError] error object if request failed
2862
+ #
2863
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
2864
+ #
2865
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2866
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2867
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2868
+ def create_project_location_wasm_plugin_version(parent, wasm_plugin_version_object = nil, wasm_plugin_version_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2869
+ command = make_simple_command(:post, 'v1beta1/{+parent}/versions', options)
2870
+ command.request_representation = Google::Apis::NetworkservicesV1beta1::WasmPluginVersion::Representation
2871
+ command.request_object = wasm_plugin_version_object
2872
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
2873
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
2874
+ command.params['parent'] = parent unless parent.nil?
2875
+ command.query['wasmPluginVersionId'] = wasm_plugin_version_id unless wasm_plugin_version_id.nil?
2876
+ command.query['fields'] = fields unless fields.nil?
2877
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2878
+ execute_or_queue_command(command, &block)
2879
+ end
2880
+
2881
+ # Deletes the specified `WasmPluginVersion` resource.
2882
+ # @param [String] name
2883
+ # Required. A name of the `WasmPluginVersion` resource to delete. Must be in the
2884
+ # format `projects/`project`/locations/global/wasmPlugins/`wasm_plugin`/versions/
2885
+ # `wasm_plugin_version``.
2886
+ # @param [String] fields
2887
+ # Selector specifying which fields to include in a partial response.
2888
+ # @param [String] quota_user
2889
+ # Available to use for quota purposes for server-side applications. Can be any
2890
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2891
+ # @param [Google::Apis::RequestOptions] options
2892
+ # Request-specific options
2893
+ #
2894
+ # @yield [result, err] Result & error if block supplied
2895
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::Operation] parsed result object
2896
+ # @yieldparam err [StandardError] error object if request failed
2897
+ #
2898
+ # @return [Google::Apis::NetworkservicesV1beta1::Operation]
2899
+ #
2900
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2901
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2902
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2903
+ def delete_project_location_wasm_plugin_version(name, fields: nil, quota_user: nil, options: nil, &block)
2904
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
2905
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::Operation::Representation
2906
+ command.response_class = Google::Apis::NetworkservicesV1beta1::Operation
2907
+ command.params['name'] = name unless name.nil?
2908
+ command.query['fields'] = fields unless fields.nil?
2909
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2910
+ execute_or_queue_command(command, &block)
2911
+ end
2912
+
2913
+ # Gets details of the specified `WasmPluginVersion` resource.
2914
+ # @param [String] name
2915
+ # Required. A name of the `WasmPluginVersion` resource to get. Must be in the
2916
+ # format `projects/`project`/locations/global/wasmPlugins/`wasm_plugin`/versions/
2917
+ # `wasm_plugin_version``.
2918
+ # @param [String] fields
2919
+ # Selector specifying which fields to include in a partial response.
2920
+ # @param [String] quota_user
2921
+ # Available to use for quota purposes for server-side applications. Can be any
2922
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2923
+ # @param [Google::Apis::RequestOptions] options
2924
+ # Request-specific options
2925
+ #
2926
+ # @yield [result, err] Result & error if block supplied
2927
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::WasmPluginVersion] parsed result object
2928
+ # @yieldparam err [StandardError] error object if request failed
2929
+ #
2930
+ # @return [Google::Apis::NetworkservicesV1beta1::WasmPluginVersion]
2931
+ #
2932
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2933
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2934
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2935
+ def get_project_location_wasm_plugin_version(name, fields: nil, quota_user: nil, options: nil, &block)
2936
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2937
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::WasmPluginVersion::Representation
2938
+ command.response_class = Google::Apis::NetworkservicesV1beta1::WasmPluginVersion
2939
+ command.params['name'] = name unless name.nil?
2940
+ command.query['fields'] = fields unless fields.nil?
2941
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2942
+ execute_or_queue_command(command, &block)
2943
+ end
2944
+
2945
+ # Lists `WasmPluginVersion` resources in a given project and location.
2946
+ # @param [String] parent
2947
+ # Required. The `WasmPlugin` resource whose `WasmPluginVersion`s are listed,
2948
+ # specified in the following format: `projects/`project`/locations/global/
2949
+ # wasmPlugins/`wasm_plugin``.
2950
+ # @param [Fixnum] page_size
2951
+ # Maximum number of `WasmPluginVersion` resources to return per call. If not
2952
+ # specified, at most 50 `WasmPluginVersion` resources are returned. The maximum
2953
+ # value is 1000; values above 1000 are coerced to 1000.
2954
+ # @param [String] page_token
2955
+ # The value returned by the last `ListWasmPluginVersionsResponse` call.
2956
+ # Indicates that this is a continuation of a prior `ListWasmPluginVersions` call,
2957
+ # and that the next page of data is to be returned.
2958
+ # @param [String] fields
2959
+ # Selector specifying which fields to include in a partial response.
2960
+ # @param [String] quota_user
2961
+ # Available to use for quota purposes for server-side applications. Can be any
2962
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2963
+ # @param [Google::Apis::RequestOptions] options
2964
+ # Request-specific options
2965
+ #
2966
+ # @yield [result, err] Result & error if block supplied
2967
+ # @yieldparam result [Google::Apis::NetworkservicesV1beta1::ListWasmPluginVersionsResponse] parsed result object
2968
+ # @yieldparam err [StandardError] error object if request failed
2969
+ #
2970
+ # @return [Google::Apis::NetworkservicesV1beta1::ListWasmPluginVersionsResponse]
2971
+ #
2972
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2973
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2974
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2975
+ def list_project_location_wasm_plugin_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2976
+ command = make_simple_command(:get, 'v1beta1/{+parent}/versions', options)
2977
+ command.response_representation = Google::Apis::NetworkservicesV1beta1::ListWasmPluginVersionsResponse::Representation
2978
+ command.response_class = Google::Apis::NetworkservicesV1beta1::ListWasmPluginVersionsResponse
2979
+ command.params['parent'] = parent unless parent.nil?
2980
+ command.query['pageSize'] = page_size unless page_size.nil?
2981
+ command.query['pageToken'] = page_token unless page_token.nil?
2982
+ command.query['fields'] = fields unless fields.nil?
2983
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2984
+ execute_or_queue_command(command, &block)
2985
+ end
2412
2986
 
2413
2987
  protected
2414
2988