google-apis-networkservices_v1 0.48.0 → 0.50.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::NetworkservicesV1::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::NetworkservicesV1::Operation] parsed result object
155
+ # @yieldparam err [StandardError] error object if request failed
156
+ #
157
+ # @return [Google::Apis::NetworkservicesV1::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, 'v1/{+parent}/authzExtensions', options)
164
+ command.request_representation = Google::Apis::NetworkservicesV1::AuthzExtension::Representation
165
+ command.request_object = authz_extension_object
166
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
167
+ command.response_class = Google::Apis::NetworkservicesV1::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::NetworkservicesV1::Operation] parsed result object
202
+ # @yieldparam err [StandardError] error object if request failed
203
+ #
204
+ # @return [Google::Apis::NetworkservicesV1::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, 'v1/{+name}', options)
211
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
212
+ command.response_class = Google::Apis::NetworkservicesV1::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::NetworkservicesV1::AuthzExtension] parsed result object
235
+ # @yieldparam err [StandardError] error object if request failed
236
+ #
237
+ # @return [Google::Apis::NetworkservicesV1::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, 'v1/{+name}', options)
244
+ command.response_representation = Google::Apis::NetworkservicesV1::AuthzExtension::Representation
245
+ command.response_class = Google::Apis::NetworkservicesV1::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::NetworkservicesV1::ListAuthzExtensionsResponse] parsed result object
276
+ # @yieldparam err [StandardError] error object if request failed
277
+ #
278
+ # @return [Google::Apis::NetworkservicesV1::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, 'v1/{+parent}/authzExtensions', options)
285
+ command.response_representation = Google::Apis::NetworkservicesV1::ListAuthzExtensionsResponse::Representation
286
+ command.response_class = Google::Apis::NetworkservicesV1::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::NetworkservicesV1::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::NetworkservicesV1::Operation] parsed result object
329
+ # @yieldparam err [StandardError] error object if request failed
330
+ #
331
+ # @return [Google::Apis::NetworkservicesV1::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, 'v1/{+name}', options)
338
+ command.request_representation = Google::Apis::NetworkservicesV1::AuthzExtension::Representation
339
+ command.request_object = authz_extension_object
340
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
341
+ command.response_class = Google::Apis::NetworkservicesV1::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
  # Gets the access control policy for a resource. Returns an empty policy if the
128
351
  # resource exists and does not have a policy set.
129
352
  # @param [String] resource
@@ -846,6 +1069,77 @@ module Google
846
1069
  execute_or_queue_command(command, &block)
847
1070
  end
848
1071
 
1072
+ # Get a single RouteView of a Gateway.
1073
+ # @param [String] name
1074
+ # Required. Name of the GatewayRouteView resource. Formats: projects/`
1075
+ # project_number`/locations/`location`/gateways/`gateway_name`/routeViews/`
1076
+ # route_view_name`
1077
+ # @param [String] fields
1078
+ # Selector specifying which fields to include in a partial response.
1079
+ # @param [String] quota_user
1080
+ # Available to use for quota purposes for server-side applications. Can be any
1081
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1082
+ # @param [Google::Apis::RequestOptions] options
1083
+ # Request-specific options
1084
+ #
1085
+ # @yield [result, err] Result & error if block supplied
1086
+ # @yieldparam result [Google::Apis::NetworkservicesV1::GatewayRouteView] parsed result object
1087
+ # @yieldparam err [StandardError] error object if request failed
1088
+ #
1089
+ # @return [Google::Apis::NetworkservicesV1::GatewayRouteView]
1090
+ #
1091
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1092
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1093
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1094
+ def get_project_location_gateway_route_view(name, fields: nil, quota_user: nil, options: nil, &block)
1095
+ command = make_simple_command(:get, 'v1/{+name}', options)
1096
+ command.response_representation = Google::Apis::NetworkservicesV1::GatewayRouteView::Representation
1097
+ command.response_class = Google::Apis::NetworkservicesV1::GatewayRouteView
1098
+ command.params['name'] = name unless name.nil?
1099
+ command.query['fields'] = fields unless fields.nil?
1100
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1101
+ execute_or_queue_command(command, &block)
1102
+ end
1103
+
1104
+ # Lists RouteViews
1105
+ # @param [String] parent
1106
+ # Required. The Gateway to which a Route is associated. Formats: projects/`
1107
+ # project_number`/locations/`location`/gateways/`gateway_name`
1108
+ # @param [Fixnum] page_size
1109
+ # Maximum number of GatewayRouteViews to return per call.
1110
+ # @param [String] page_token
1111
+ # The value returned by the last `ListGatewayRouteViewsResponse` Indicates that
1112
+ # this is a continuation of a prior `ListGatewayRouteViews` call, and that the
1113
+ # system should return the next page of data.
1114
+ # @param [String] fields
1115
+ # Selector specifying which fields to include in a partial response.
1116
+ # @param [String] quota_user
1117
+ # Available to use for quota purposes for server-side applications. Can be any
1118
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1119
+ # @param [Google::Apis::RequestOptions] options
1120
+ # Request-specific options
1121
+ #
1122
+ # @yield [result, err] Result & error if block supplied
1123
+ # @yieldparam result [Google::Apis::NetworkservicesV1::ListGatewayRouteViewsResponse] parsed result object
1124
+ # @yieldparam err [StandardError] error object if request failed
1125
+ #
1126
+ # @return [Google::Apis::NetworkservicesV1::ListGatewayRouteViewsResponse]
1127
+ #
1128
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1129
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1130
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1131
+ def list_project_location_gateway_route_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1132
+ command = make_simple_command(:get, 'v1/{+parent}/routeViews', options)
1133
+ command.response_representation = Google::Apis::NetworkservicesV1::ListGatewayRouteViewsResponse::Representation
1134
+ command.response_class = Google::Apis::NetworkservicesV1::ListGatewayRouteViewsResponse
1135
+ command.params['parent'] = parent unless parent.nil?
1136
+ command.query['pageSize'] = page_size unless page_size.nil?
1137
+ command.query['pageToken'] = page_token unless page_token.nil?
1138
+ command.query['fields'] = fields unless fields.nil?
1139
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1140
+ execute_or_queue_command(command, &block)
1141
+ end
1142
+
849
1143
  # Creates a new GrpcRoute in a given project and location.
850
1144
  # @param [String] parent
851
1145
  # Required. The parent resource of the GrpcRoute. Must be in the format `
@@ -1831,6 +2125,76 @@ module Google
1831
2125
  execute_or_queue_command(command, &block)
1832
2126
  end
1833
2127
 
2128
+ # Get a single RouteView of a Mesh.
2129
+ # @param [String] name
2130
+ # Required. Name of the MeshRouteView resource. Format: projects/`project_number`
2131
+ # /locations/`location`/meshes/`mesh_name`/routeViews/`route_view_name`
2132
+ # @param [String] fields
2133
+ # Selector specifying which fields to include in a partial response.
2134
+ # @param [String] quota_user
2135
+ # Available to use for quota purposes for server-side applications. Can be any
2136
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2137
+ # @param [Google::Apis::RequestOptions] options
2138
+ # Request-specific options
2139
+ #
2140
+ # @yield [result, err] Result & error if block supplied
2141
+ # @yieldparam result [Google::Apis::NetworkservicesV1::MeshRouteView] parsed result object
2142
+ # @yieldparam err [StandardError] error object if request failed
2143
+ #
2144
+ # @return [Google::Apis::NetworkservicesV1::MeshRouteView]
2145
+ #
2146
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2147
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2148
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2149
+ def get_project_location_mesh_route_view(name, fields: nil, quota_user: nil, options: nil, &block)
2150
+ command = make_simple_command(:get, 'v1/{+name}', options)
2151
+ command.response_representation = Google::Apis::NetworkservicesV1::MeshRouteView::Representation
2152
+ command.response_class = Google::Apis::NetworkservicesV1::MeshRouteView
2153
+ command.params['name'] = name unless name.nil?
2154
+ command.query['fields'] = fields unless fields.nil?
2155
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2156
+ execute_or_queue_command(command, &block)
2157
+ end
2158
+
2159
+ # Lists RouteViews
2160
+ # @param [String] parent
2161
+ # Required. The Mesh to which a Route is associated. Format: projects/`
2162
+ # project_number`/locations/`location`/meshes/`mesh_name`
2163
+ # @param [Fixnum] page_size
2164
+ # Maximum number of MeshRouteViews to return per call.
2165
+ # @param [String] page_token
2166
+ # The value returned by the last `ListMeshRouteViewsResponse` Indicates that
2167
+ # this is a continuation of a prior `ListMeshRouteViews` call, and that the
2168
+ # system should return the next page of data.
2169
+ # @param [String] fields
2170
+ # Selector specifying which fields to include in a partial response.
2171
+ # @param [String] quota_user
2172
+ # Available to use for quota purposes for server-side applications. Can be any
2173
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2174
+ # @param [Google::Apis::RequestOptions] options
2175
+ # Request-specific options
2176
+ #
2177
+ # @yield [result, err] Result & error if block supplied
2178
+ # @yieldparam result [Google::Apis::NetworkservicesV1::ListMeshRouteViewsResponse] parsed result object
2179
+ # @yieldparam err [StandardError] error object if request failed
2180
+ #
2181
+ # @return [Google::Apis::NetworkservicesV1::ListMeshRouteViewsResponse]
2182
+ #
2183
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2184
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2185
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2186
+ def list_project_location_mesh_route_views(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2187
+ command = make_simple_command(:get, 'v1/{+parent}/routeViews', options)
2188
+ command.response_representation = Google::Apis::NetworkservicesV1::ListMeshRouteViewsResponse::Representation
2189
+ command.response_class = Google::Apis::NetworkservicesV1::ListMeshRouteViewsResponse
2190
+ command.params['parent'] = parent unless parent.nil?
2191
+ command.query['pageSize'] = page_size unless page_size.nil?
2192
+ command.query['pageToken'] = page_token unless page_token.nil?
2193
+ command.query['fields'] = fields unless fields.nil?
2194
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2195
+ execute_or_queue_command(command, &block)
2196
+ end
2197
+
1834
2198
  # Starts asynchronous cancellation on a long-running operation. The server makes
1835
2199
  # a best effort to cancel the operation, but success is not guaranteed. If the
1836
2200
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -2255,8 +2619,8 @@ module Google
2255
2619
 
2256
2620
  # Updates the parameters of a single ServiceLbPolicy.
2257
2621
  # @param [String] name
2258
- # Required. Name of the ServiceLbPolicy resource. It matches pattern `projects/`
2259
- # project`/locations/`location`/serviceLbPolicies/`service_lb_policy_name``.
2622
+ # Identifier. Name of the ServiceLbPolicy resource. It matches pattern `projects/
2623
+ # `project`/locations/`location`/serviceLbPolicies/`service_lb_policy_name``.
2260
2624
  # @param [Google::Apis::NetworkservicesV1::ServiceLbPolicy] service_lb_policy_object
2261
2625
  # @param [String] update_mask
2262
2626
  # Optional. Field mask is used to specify the fields to be overwritten in the
@@ -2651,6 +3015,337 @@ module Google
2651
3015
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2652
3016
  execute_or_queue_command(command, &block)
2653
3017
  end
3018
+
3019
+ # Creates a new `WasmPlugin` resource in a given project and location.
3020
+ # @param [String] parent
3021
+ # Required. The parent resource of the `WasmPlugin` resource. Must be in the
3022
+ # format `projects/`project`/locations/global`.
3023
+ # @param [Google::Apis::NetworkservicesV1::WasmPlugin] wasm_plugin_object
3024
+ # @param [String] wasm_plugin_id
3025
+ # Required. User-provided ID of the `WasmPlugin` resource to be created.
3026
+ # @param [String] fields
3027
+ # Selector specifying which fields to include in a partial response.
3028
+ # @param [String] quota_user
3029
+ # Available to use for quota purposes for server-side applications. Can be any
3030
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3031
+ # @param [Google::Apis::RequestOptions] options
3032
+ # Request-specific options
3033
+ #
3034
+ # @yield [result, err] Result & error if block supplied
3035
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
3036
+ # @yieldparam err [StandardError] error object if request failed
3037
+ #
3038
+ # @return [Google::Apis::NetworkservicesV1::Operation]
3039
+ #
3040
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3041
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3042
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3043
+ def create_project_location_wasm_plugin(parent, wasm_plugin_object = nil, wasm_plugin_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3044
+ command = make_simple_command(:post, 'v1/{+parent}/wasmPlugins', options)
3045
+ command.request_representation = Google::Apis::NetworkservicesV1::WasmPlugin::Representation
3046
+ command.request_object = wasm_plugin_object
3047
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
3048
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
3049
+ command.params['parent'] = parent unless parent.nil?
3050
+ command.query['wasmPluginId'] = wasm_plugin_id unless wasm_plugin_id.nil?
3051
+ command.query['fields'] = fields unless fields.nil?
3052
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3053
+ execute_or_queue_command(command, &block)
3054
+ end
3055
+
3056
+ # Deletes the specified `WasmPlugin` resource.
3057
+ # @param [String] name
3058
+ # Required. A name of the `WasmPlugin` resource to delete. Must be in the format
3059
+ # `projects/`project`/locations/global/wasmPlugins/`wasm_plugin``.
3060
+ # @param [String] fields
3061
+ # Selector specifying which fields to include in a partial response.
3062
+ # @param [String] quota_user
3063
+ # Available to use for quota purposes for server-side applications. Can be any
3064
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3065
+ # @param [Google::Apis::RequestOptions] options
3066
+ # Request-specific options
3067
+ #
3068
+ # @yield [result, err] Result & error if block supplied
3069
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
3070
+ # @yieldparam err [StandardError] error object if request failed
3071
+ #
3072
+ # @return [Google::Apis::NetworkservicesV1::Operation]
3073
+ #
3074
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3075
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3076
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3077
+ def delete_project_location_wasm_plugin(name, fields: nil, quota_user: nil, options: nil, &block)
3078
+ command = make_simple_command(:delete, 'v1/{+name}', options)
3079
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
3080
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
3081
+ command.params['name'] = name unless name.nil?
3082
+ command.query['fields'] = fields unless fields.nil?
3083
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3084
+ execute_or_queue_command(command, &block)
3085
+ end
3086
+
3087
+ # Gets details of the specified `WasmPlugin` resource.
3088
+ # @param [String] name
3089
+ # Required. A name of the `WasmPlugin` resource to get. Must be in the format `
3090
+ # projects/`project`/locations/global/wasmPlugins/`wasm_plugin``.
3091
+ # @param [String] view
3092
+ # Determines how much data must be returned in the response. See [AIP-157](https:
3093
+ # //google.aip.dev/157).
3094
+ # @param [String] fields
3095
+ # Selector specifying which fields to include in a partial response.
3096
+ # @param [String] quota_user
3097
+ # Available to use for quota purposes for server-side applications. Can be any
3098
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3099
+ # @param [Google::Apis::RequestOptions] options
3100
+ # Request-specific options
3101
+ #
3102
+ # @yield [result, err] Result & error if block supplied
3103
+ # @yieldparam result [Google::Apis::NetworkservicesV1::WasmPlugin] parsed result object
3104
+ # @yieldparam err [StandardError] error object if request failed
3105
+ #
3106
+ # @return [Google::Apis::NetworkservicesV1::WasmPlugin]
3107
+ #
3108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3111
+ def get_project_location_wasm_plugin(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
3112
+ command = make_simple_command(:get, 'v1/{+name}', options)
3113
+ command.response_representation = Google::Apis::NetworkservicesV1::WasmPlugin::Representation
3114
+ command.response_class = Google::Apis::NetworkservicesV1::WasmPlugin
3115
+ command.params['name'] = name unless name.nil?
3116
+ command.query['view'] = view unless view.nil?
3117
+ command.query['fields'] = fields unless fields.nil?
3118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3119
+ execute_or_queue_command(command, &block)
3120
+ end
3121
+
3122
+ # Lists `WasmPlugin` resources in a given project and location.
3123
+ # @param [String] parent
3124
+ # Required. The project and location from which the `WasmPlugin` resources are
3125
+ # listed, specified in the following format: `projects/`project`/locations/
3126
+ # global`.
3127
+ # @param [Fixnum] page_size
3128
+ # Maximum number of `WasmPlugin` resources to return per call. If not specified,
3129
+ # at most 50 `WasmPlugin` resources are returned. The maximum value is 1000;
3130
+ # values above 1000 are coerced to 1000.
3131
+ # @param [String] page_token
3132
+ # The value returned by the last `ListWasmPluginsResponse` call. Indicates that
3133
+ # this is a continuation of a prior `ListWasmPlugins` call, and that the next
3134
+ # page of data is to be returned.
3135
+ # @param [String] fields
3136
+ # Selector specifying which fields to include in a partial response.
3137
+ # @param [String] quota_user
3138
+ # Available to use for quota purposes for server-side applications. Can be any
3139
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3140
+ # @param [Google::Apis::RequestOptions] options
3141
+ # Request-specific options
3142
+ #
3143
+ # @yield [result, err] Result & error if block supplied
3144
+ # @yieldparam result [Google::Apis::NetworkservicesV1::ListWasmPluginsResponse] parsed result object
3145
+ # @yieldparam err [StandardError] error object if request failed
3146
+ #
3147
+ # @return [Google::Apis::NetworkservicesV1::ListWasmPluginsResponse]
3148
+ #
3149
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3150
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3151
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3152
+ def list_project_location_wasm_plugins(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3153
+ command = make_simple_command(:get, 'v1/{+parent}/wasmPlugins', options)
3154
+ command.response_representation = Google::Apis::NetworkservicesV1::ListWasmPluginsResponse::Representation
3155
+ command.response_class = Google::Apis::NetworkservicesV1::ListWasmPluginsResponse
3156
+ command.params['parent'] = parent unless parent.nil?
3157
+ command.query['pageSize'] = page_size unless page_size.nil?
3158
+ command.query['pageToken'] = page_token unless page_token.nil?
3159
+ command.query['fields'] = fields unless fields.nil?
3160
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3161
+ execute_or_queue_command(command, &block)
3162
+ end
3163
+
3164
+ # Updates the parameters of the specified `WasmPlugin` resource.
3165
+ # @param [String] name
3166
+ # Identifier. Name of the `WasmPlugin` resource in the following format: `
3167
+ # projects/`project`/locations/`location`/wasmPlugins/`wasm_plugin``.
3168
+ # @param [Google::Apis::NetworkservicesV1::WasmPlugin] wasm_plugin_object
3169
+ # @param [String] update_mask
3170
+ # Optional. Used to specify the fields to be overwritten in the `WasmPlugin`
3171
+ # resource by the update. The fields specified in the `update_mask` field are
3172
+ # relative to the resource, not the full request. An omitted `update_mask` field
3173
+ # is treated as an implied `update_mask` field equivalent to all fields that are
3174
+ # populated (that have a non-empty value). The `update_mask` field supports a
3175
+ # special value `*`, which means that each field in the given `WasmPlugin`
3176
+ # resource (including the empty ones) replaces the current value.
3177
+ # @param [String] fields
3178
+ # Selector specifying which fields to include in a partial response.
3179
+ # @param [String] quota_user
3180
+ # Available to use for quota purposes for server-side applications. Can be any
3181
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3182
+ # @param [Google::Apis::RequestOptions] options
3183
+ # Request-specific options
3184
+ #
3185
+ # @yield [result, err] Result & error if block supplied
3186
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
3187
+ # @yieldparam err [StandardError] error object if request failed
3188
+ #
3189
+ # @return [Google::Apis::NetworkservicesV1::Operation]
3190
+ #
3191
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3192
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3193
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3194
+ def patch_project_location_wasm_plugin(name, wasm_plugin_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3195
+ command = make_simple_command(:patch, 'v1/{+name}', options)
3196
+ command.request_representation = Google::Apis::NetworkservicesV1::WasmPlugin::Representation
3197
+ command.request_object = wasm_plugin_object
3198
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
3199
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
3200
+ command.params['name'] = name unless name.nil?
3201
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3202
+ command.query['fields'] = fields unless fields.nil?
3203
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3204
+ execute_or_queue_command(command, &block)
3205
+ end
3206
+
3207
+ # Creates a new `WasmPluginVersion` resource in a given project and location.
3208
+ # @param [String] parent
3209
+ # Required. The parent resource of the `WasmPluginVersion` resource. Must be in
3210
+ # the format `projects/`project`/locations/global/wasmPlugins/`wasm_plugin``.
3211
+ # @param [Google::Apis::NetworkservicesV1::WasmPluginVersion] wasm_plugin_version_object
3212
+ # @param [String] wasm_plugin_version_id
3213
+ # Required. User-provided ID of the `WasmPluginVersion` resource to be created.
3214
+ # @param [String] fields
3215
+ # Selector specifying which fields to include in a partial response.
3216
+ # @param [String] quota_user
3217
+ # Available to use for quota purposes for server-side applications. Can be any
3218
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3219
+ # @param [Google::Apis::RequestOptions] options
3220
+ # Request-specific options
3221
+ #
3222
+ # @yield [result, err] Result & error if block supplied
3223
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
3224
+ # @yieldparam err [StandardError] error object if request failed
3225
+ #
3226
+ # @return [Google::Apis::NetworkservicesV1::Operation]
3227
+ #
3228
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3229
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3230
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3231
+ 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)
3232
+ command = make_simple_command(:post, 'v1/{+parent}/versions', options)
3233
+ command.request_representation = Google::Apis::NetworkservicesV1::WasmPluginVersion::Representation
3234
+ command.request_object = wasm_plugin_version_object
3235
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
3236
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
3237
+ command.params['parent'] = parent unless parent.nil?
3238
+ command.query['wasmPluginVersionId'] = wasm_plugin_version_id unless wasm_plugin_version_id.nil?
3239
+ command.query['fields'] = fields unless fields.nil?
3240
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3241
+ execute_or_queue_command(command, &block)
3242
+ end
3243
+
3244
+ # Deletes the specified `WasmPluginVersion` resource.
3245
+ # @param [String] name
3246
+ # Required. A name of the `WasmPluginVersion` resource to delete. Must be in the
3247
+ # format `projects/`project`/locations/global/wasmPlugins/`wasm_plugin`/versions/
3248
+ # `wasm_plugin_version``.
3249
+ # @param [String] fields
3250
+ # Selector specifying which fields to include in a partial response.
3251
+ # @param [String] quota_user
3252
+ # Available to use for quota purposes for server-side applications. Can be any
3253
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3254
+ # @param [Google::Apis::RequestOptions] options
3255
+ # Request-specific options
3256
+ #
3257
+ # @yield [result, err] Result & error if block supplied
3258
+ # @yieldparam result [Google::Apis::NetworkservicesV1::Operation] parsed result object
3259
+ # @yieldparam err [StandardError] error object if request failed
3260
+ #
3261
+ # @return [Google::Apis::NetworkservicesV1::Operation]
3262
+ #
3263
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3264
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3265
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3266
+ def delete_project_location_wasm_plugin_version(name, fields: nil, quota_user: nil, options: nil, &block)
3267
+ command = make_simple_command(:delete, 'v1/{+name}', options)
3268
+ command.response_representation = Google::Apis::NetworkservicesV1::Operation::Representation
3269
+ command.response_class = Google::Apis::NetworkservicesV1::Operation
3270
+ command.params['name'] = name unless name.nil?
3271
+ command.query['fields'] = fields unless fields.nil?
3272
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3273
+ execute_or_queue_command(command, &block)
3274
+ end
3275
+
3276
+ # Gets details of the specified `WasmPluginVersion` resource.
3277
+ # @param [String] name
3278
+ # Required. A name of the `WasmPluginVersion` resource to get. Must be in the
3279
+ # format `projects/`project`/locations/global/wasmPlugins/`wasm_plugin`/versions/
3280
+ # `wasm_plugin_version``.
3281
+ # @param [String] fields
3282
+ # Selector specifying which fields to include in a partial response.
3283
+ # @param [String] quota_user
3284
+ # Available to use for quota purposes for server-side applications. Can be any
3285
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3286
+ # @param [Google::Apis::RequestOptions] options
3287
+ # Request-specific options
3288
+ #
3289
+ # @yield [result, err] Result & error if block supplied
3290
+ # @yieldparam result [Google::Apis::NetworkservicesV1::WasmPluginVersion] parsed result object
3291
+ # @yieldparam err [StandardError] error object if request failed
3292
+ #
3293
+ # @return [Google::Apis::NetworkservicesV1::WasmPluginVersion]
3294
+ #
3295
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3296
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3297
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3298
+ def get_project_location_wasm_plugin_version(name, fields: nil, quota_user: nil, options: nil, &block)
3299
+ command = make_simple_command(:get, 'v1/{+name}', options)
3300
+ command.response_representation = Google::Apis::NetworkservicesV1::WasmPluginVersion::Representation
3301
+ command.response_class = Google::Apis::NetworkservicesV1::WasmPluginVersion
3302
+ command.params['name'] = name unless name.nil?
3303
+ command.query['fields'] = fields unless fields.nil?
3304
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3305
+ execute_or_queue_command(command, &block)
3306
+ end
3307
+
3308
+ # Lists `WasmPluginVersion` resources in a given project and location.
3309
+ # @param [String] parent
3310
+ # Required. The `WasmPlugin` resource whose `WasmPluginVersion`s are listed,
3311
+ # specified in the following format: `projects/`project`/locations/global/
3312
+ # wasmPlugins/`wasm_plugin``.
3313
+ # @param [Fixnum] page_size
3314
+ # Maximum number of `WasmPluginVersion` resources to return per call. If not
3315
+ # specified, at most 50 `WasmPluginVersion` resources are returned. The maximum
3316
+ # value is 1000; values above 1000 are coerced to 1000.
3317
+ # @param [String] page_token
3318
+ # The value returned by the last `ListWasmPluginVersionsResponse` call.
3319
+ # Indicates that this is a continuation of a prior `ListWasmPluginVersions` call,
3320
+ # and that the next page of data is to be returned.
3321
+ # @param [String] fields
3322
+ # Selector specifying which fields to include in a partial response.
3323
+ # @param [String] quota_user
3324
+ # Available to use for quota purposes for server-side applications. Can be any
3325
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3326
+ # @param [Google::Apis::RequestOptions] options
3327
+ # Request-specific options
3328
+ #
3329
+ # @yield [result, err] Result & error if block supplied
3330
+ # @yieldparam result [Google::Apis::NetworkservicesV1::ListWasmPluginVersionsResponse] parsed result object
3331
+ # @yieldparam err [StandardError] error object if request failed
3332
+ #
3333
+ # @return [Google::Apis::NetworkservicesV1::ListWasmPluginVersionsResponse]
3334
+ #
3335
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3336
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3337
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3338
+ def list_project_location_wasm_plugin_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3339
+ command = make_simple_command(:get, 'v1/{+parent}/versions', options)
3340
+ command.response_representation = Google::Apis::NetworkservicesV1::ListWasmPluginVersionsResponse::Representation
3341
+ command.response_class = Google::Apis::NetworkservicesV1::ListWasmPluginVersionsResponse
3342
+ command.params['parent'] = parent unless parent.nil?
3343
+ command.query['pageSize'] = page_size unless page_size.nil?
3344
+ command.query['pageToken'] = page_token unless page_token.nil?
3345
+ command.query['fields'] = fields unless fields.nil?
3346
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3347
+ execute_or_queue_command(command, &block)
3348
+ end
2654
3349
 
2655
3350
  protected
2656
3351