@googleapis/networkservices 19.1.0 → 22.0.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.
package/v1beta1.ts CHANGED
@@ -125,33 +125,7 @@ export namespace networkservices_v1beta1 {
125
125
  }
126
126
 
127
127
  /**
128
- * Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] \}, { "log_type": "DATA_WRITE" \}, { "log_type": "ADMIN_READ" \} ] \}, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" \}, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] \} ] \} ] \} For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.
129
- */
130
- export interface Schema$AuditConfig {
131
- /**
132
- * The configuration for logging of each type of permission.
133
- */
134
- auditLogConfigs?: Schema$AuditLogConfig[];
135
- /**
136
- * Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
137
- */
138
- service?: string | null;
139
- }
140
- /**
141
- * Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] \}, { "log_type": "DATA_WRITE" \} ] \} This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.
142
- */
143
- export interface Schema$AuditLogConfig {
144
- /**
145
- * Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
146
- */
147
- exemptedMembers?: string[] | null;
148
- /**
149
- * The log type that this config enables.
150
- */
151
- logType?: string | null;
152
- }
153
- /**
154
- * `AuthzExtension` is a resource that allows traffic forwarding to a callout backend to make an authorization decision.
128
+ * `AuthzExtension` is a resource that allows traffic forwarding to a callout backend service to make an authorization decision.
155
129
  */
156
130
  export interface Schema$AuthzExtension {
157
131
  /**
@@ -179,7 +153,7 @@ export namespace networkservices_v1beta1 {
179
153
  */
180
154
  labels?: {[key: string]: string} | null;
181
155
  /**
182
- * Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-service).
156
+ * Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).
183
157
  */
184
158
  loadBalancingScheme?: string | null;
185
159
  /**
@@ -191,7 +165,7 @@ export namespace networkservices_v1beta1 {
191
165
  */
192
166
  name?: string | null;
193
167
  /**
194
- * Required. The reference to the service that runs the extension. Currently only callout extensions are supported here. To configure a callout extension, `service` must be a fully-qualified reference to a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project\}/regions/{region\}/backendServices/{backendService\}` or `https://www.googleapis.com/compute/v1/projects/{project\}/global/backendServices/{backendService\}`.
168
+ * Required. The reference to the service that runs the extension. To configure a callout extension, `service` must be a fully-qualified reference to a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project\}/regions/{region\}/backendServices/{backendService\}` or `https://www.googleapis.com/compute/v1/projects/{project\}/global/backendServices/{backendService\}`.
195
169
  */
196
170
  service?: string | null;
197
171
  /**
@@ -207,23 +181,6 @@ export namespace networkservices_v1beta1 {
207
181
  */
208
182
  wireFormat?: string | null;
209
183
  }
210
- /**
211
- * Associates `members`, or principals, with a `role`.
212
- */
213
- export interface Schema$Binding {
214
- /**
215
- * The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
216
- */
217
- condition?: Schema$Expr;
218
- /**
219
- * Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid\}.svc.id.goog[{namespace\}/{kubernetes-sa\}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/subject/{subject_attribute_value\}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/group/{group_id\}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/attribute.{attribute_name\}/{attribute_value\}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/x`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/subject/{subject_attribute_value\}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/group/{group_id\}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/attribute.{attribute_name\}/{attribute_value\}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/x`: All identities in a workload identity pool. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/subject/{subject_attribute_value\}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
220
- */
221
- members?: string[] | null;
222
- /**
223
- * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
224
- */
225
- role?: string | null;
226
- }
227
184
  /**
228
185
  * The request message for Operations.CancelOperation.
229
186
  */
@@ -290,27 +247,6 @@ export namespace networkservices_v1beta1 {
290
247
  */
291
248
  updateTime?: string | null;
292
249
  }
293
- /**
294
- * Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
295
- */
296
- export interface Schema$Expr {
297
- /**
298
- * Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
299
- */
300
- description?: string | null;
301
- /**
302
- * Textual representation of an expression in Common Expression Language syntax.
303
- */
304
- expression?: string | null;
305
- /**
306
- * Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
307
- */
308
- location?: string | null;
309
- /**
310
- * Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
311
- */
312
- title?: string | null;
313
- }
314
250
  /**
315
251
  * A single extension chain wrapper that contains the match conditions and extensions to execute.
316
252
  */
@@ -333,7 +269,7 @@ export namespace networkservices_v1beta1 {
333
269
  */
334
270
  export interface Schema$ExtensionChainExtension {
335
271
  /**
336
- * Optional. The `:authority` header in the gRPC request sent from Envoy to the extension service. Required for Callout extensions.
272
+ * Optional. The `:authority` header in the gRPC request sent from Envoy to the extension service. Required for Callout extensions. This field is not supported for plugin extensions. Setting it results in a validation error.
337
273
  */
338
274
  authority?: string | null;
339
275
  /**
@@ -344,20 +280,24 @@ export namespace networkservices_v1beta1 {
344
280
  * Optional. List of the HTTP headers to forward to the extension (from the client or backend). If omitted, all headers are sent. Each element is a string indicating the header name.
345
281
  */
346
282
  forwardHeaders?: string[] | null;
283
+ /**
284
+ * Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google....`. For example: `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. The following variables are supported in the metadata: `{forwarding_rule_id\}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions. Setting it results in a validation error.
285
+ */
286
+ metadata?: {[key: string]: any} | null;
347
287
  /**
348
288
  * Required. The name for this extension. The name is logged as part of the HTTP request logs. The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and can have a maximum length of 63 characters. Additionally, the first character must be a letter and the last a letter or a number.
349
289
  */
350
290
  name?: string | null;
351
291
  /**
352
- * Required. The reference to the service that runs the extension. Currently only callout extensions are supported here. To configure a callout extension, `service` must be a fully-qualified reference to a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project\}/regions/{region\}/backendServices/{backendService\}` or `https://www.googleapis.com/compute/v1/projects/{project\}/global/backendServices/{backendService\}`.
292
+ * Required. The reference to the service that runs the extension. To configure a callout extension, `service` must be a fully-qualified reference to a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project\}/regions/{region\}/backendServices/{backendService\}` or `https://www.googleapis.com/compute/v1/projects/{project\}/global/backendServices/{backendService\}`. To configure a plugin extension, `service` must be a reference to a [`WasmPlugin` resource](https://cloud.google.com/service-extensions/docs/reference/rest/v1beta1/projects.locations.wasmPlugins) in the format: `projects/{project\}/locations/{location\}/wasmPlugins/{plugin\}` or `//networkservices.googleapis.com/projects/{project\}/locations/{location\}/wasmPlugins/{wasmPlugin\}`. Plugin extensions are currently supported for the `LbTrafficExtension` and the `LbRouteExtension` resources.
353
293
  */
354
294
  service?: string | null;
355
295
  /**
356
- * Optional. A set of events during request or response processing for which this extension is called. This field is required for the `LbTrafficExtension` resource. It must not be set for the `LbRouteExtension` resource.
296
+ * Optional. A set of events during request or response processing for which this extension is called. This field is required for the `LbTrafficExtension` resource. It must not be set for the `LbRouteExtension` resource, otherwise a validation error is returned.
357
297
  */
358
298
  supportedEvents?: string[] | null;
359
299
  /**
360
- * Optional. Specifies the timeout for each individual message on the stream. The timeout must be between 10-1000 milliseconds. Required for Callout extensions.
300
+ * Optional. Specifies the timeout for each individual message on the stream. The timeout must be between `10`-`1000` milliseconds. Required for callout extensions. This field is not supported for plugin extensions. Setting it results in a validation error.
361
301
  */
362
302
  timeout?: string | null;
363
303
  }
@@ -371,7 +311,7 @@ export namespace networkservices_v1beta1 {
371
311
  celExpression?: string | null;
372
312
  }
373
313
  /**
374
- * Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway. Next id: 33
314
+ * Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway.
375
315
  */
376
316
  export interface Schema$Gateway {
377
317
  /**
@@ -423,7 +363,7 @@ export namespace networkservices_v1beta1 {
423
363
  */
424
364
  routingMode?: string | null;
425
365
  /**
426
- * Optional. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.
366
+ * Optional. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single configuration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.
427
367
  */
428
368
  scope?: string | null;
429
369
  /**
@@ -447,6 +387,31 @@ export namespace networkservices_v1beta1 {
447
387
  */
448
388
  updateTime?: string | null;
449
389
  }
390
+ /**
391
+ * GatewayRouteView defines view-only resource for Routes to a Gateway
392
+ */
393
+ export interface Schema$GatewayRouteView {
394
+ /**
395
+ * Output only. Identifier. Full path name of the GatewayRouteView resource. Format: projects/{project_number\}/locations/{location\}/gateways/{gateway_name\}/routeViews/{route_view_name\}
396
+ */
397
+ name?: string | null;
398
+ /**
399
+ * Output only. The resource id for the route.
400
+ */
401
+ routeId?: string | null;
402
+ /**
403
+ * Output only. Location where the route exists.
404
+ */
405
+ routeLocation?: string | null;
406
+ /**
407
+ * Output only. Project number where the route exists.
408
+ */
409
+ routeProjectNumber?: string | null;
410
+ /**
411
+ * Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute
412
+ */
413
+ routeType?: string | null;
414
+ }
450
415
  /**
451
416
  * GrpcRoute is the resource defining how gRPC traffic routed by a Mesh or Gateway resource is routed.
452
417
  */
@@ -459,6 +424,10 @@ export namespace networkservices_v1beta1 {
459
424
  * Optional. A free-text description of the resource. Max length 1024 characters.
460
425
  */
461
426
  description?: string | null;
427
+ /**
428
+ * Optional. Output only. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
429
+ */
430
+ etag?: string | null;
462
431
  /**
463
432
  * Optional. Gateways defines a list of gateways this GrpcRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: `projects/x/locations/global/gateways/`
464
433
  */
@@ -671,6 +640,10 @@ export namespace networkservices_v1beta1 {
671
640
  * Optional. A free-text description of the resource. Max length 1024 characters.
672
641
  */
673
642
  description?: string | null;
643
+ /**
644
+ * Optional. Output only. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
645
+ */
646
+ etag?: string | null;
674
647
  /**
675
648
  * Optional. Gateways defines a list of gateways this HttpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: `projects/x/locations/global/gateways/`
676
649
  */
@@ -1107,7 +1080,7 @@ export namespace networkservices_v1beta1 {
1107
1080
  */
1108
1081
  extensionChains?: Schema$ExtensionChain[];
1109
1082
  /**
1110
- * Required. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required. There can be only one `LbRouteExtension` resource per forwarding rule.
1083
+ * Required. A list of references to the forwarding rules to which this service extension is attached. At least one forwarding rule is required. There can be only one `LbRouteExtension` resource per forwarding rule.
1111
1084
  */
1112
1085
  forwardingRules?: string[] | null;
1113
1086
  /**
@@ -1115,11 +1088,11 @@ export namespace networkservices_v1beta1 {
1115
1088
  */
1116
1089
  labels?: {[key: string]: string} | null;
1117
1090
  /**
1118
- * Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-service).
1091
+ * Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).
1119
1092
  */
1120
1093
  loadBalancingScheme?: string | null;
1121
1094
  /**
1122
- * Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id\}` - substituted with the forwarding rule's fully qualified resource name.
1095
+ * Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id\}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions. Setting it results in a validation error.
1123
1096
  */
1124
1097
  metadata?: {[key: string]: any} | null;
1125
1098
  /**
@@ -1148,7 +1121,7 @@ export namespace networkservices_v1beta1 {
1148
1121
  */
1149
1122
  extensionChains?: Schema$ExtensionChain[];
1150
1123
  /**
1151
- * Required. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required. There can be only one `LBTrafficExtension` resource per forwarding rule.
1124
+ * Optional. A list of references to the forwarding rules to which this service extension is attached. At least one forwarding rule is required. There can be only one `LBTrafficExtension` resource per forwarding rule.
1152
1125
  */
1153
1126
  forwardingRules?: string[] | null;
1154
1127
  /**
@@ -1156,11 +1129,11 @@ export namespace networkservices_v1beta1 {
1156
1129
  */
1157
1130
  labels?: {[key: string]: string} | null;
1158
1131
  /**
1159
- * Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-service).
1132
+ * Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).
1160
1133
  */
1161
1134
  loadBalancingScheme?: string | null;
1162
1135
  /**
1163
- * Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id\}` - substituted with the forwarding rule's fully qualified resource name.
1136
+ * Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id\}` - substituted with the forwarding rule's fully qualified resource name. This field is not supported for plugin extensions. Setting it results in a validation error.
1164
1137
  */
1165
1138
  metadata?: {[key: string]: any} | null;
1166
1139
  /**
@@ -1202,6 +1175,19 @@ export namespace networkservices_v1beta1 {
1202
1175
  */
1203
1176
  nextPageToken?: string | null;
1204
1177
  }
1178
+ /**
1179
+ * Response returned by the ListGatewayRouteViews method.
1180
+ */
1181
+ export interface Schema$ListGatewayRouteViewsResponse {
1182
+ /**
1183
+ * List of GatewayRouteView resources.
1184
+ */
1185
+ gatewayRouteViews?: Schema$GatewayRouteView[];
1186
+ /**
1187
+ * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
1188
+ */
1189
+ nextPageToken?: string | null;
1190
+ }
1205
1191
  /**
1206
1192
  * Response returned by the ListGateways method.
1207
1193
  */
@@ -1305,6 +1291,19 @@ export namespace networkservices_v1beta1 {
1305
1291
  */
1306
1292
  nextPageToken?: string | null;
1307
1293
  }
1294
+ /**
1295
+ * Response returned by the ListMeshRouteViews method.
1296
+ */
1297
+ export interface Schema$ListMeshRouteViewsResponse {
1298
+ /**
1299
+ * List of MeshRouteView resources.
1300
+ */
1301
+ meshRouteViews?: Schema$MeshRouteView[];
1302
+ /**
1303
+ * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
1304
+ */
1305
+ nextPageToken?: string | null;
1306
+ }
1308
1307
  /**
1309
1308
  * The response message for Operations.ListOperations.
1310
1309
  */
@@ -1370,6 +1369,32 @@ export namespace networkservices_v1beta1 {
1370
1369
  */
1371
1370
  tlsRoutes?: Schema$TlsRoute[];
1372
1371
  }
1372
+ /**
1373
+ * Response returned by the `ListWasmPlugins` method.
1374
+ */
1375
+ export interface Schema$ListWasmPluginsResponse {
1376
+ /**
1377
+ * If there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.
1378
+ */
1379
+ nextPageToken?: string | null;
1380
+ /**
1381
+ * List of `WasmPlugin` resources.
1382
+ */
1383
+ wasmPlugins?: Schema$WasmPlugin[];
1384
+ }
1385
+ /**
1386
+ * Response returned by the `ListWasmPluginVersions` method.
1387
+ */
1388
+ export interface Schema$ListWasmPluginVersionsResponse {
1389
+ /**
1390
+ * If there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.
1391
+ */
1392
+ nextPageToken?: string | null;
1393
+ /**
1394
+ * List of `WasmPluginVersion` resources.
1395
+ */
1396
+ wasmPluginVersions?: Schema$WasmPluginVersion[];
1397
+ }
1373
1398
  /**
1374
1399
  * A resource that represents a Google Cloud location.
1375
1400
  */
@@ -1395,6 +1420,15 @@ export namespace networkservices_v1beta1 {
1395
1420
  */
1396
1421
  name?: string | null;
1397
1422
  }
1423
+ /**
1424
+ * The configuration for Platform Telemetry logging for Eventarc Advanced resources.
1425
+ */
1426
+ export interface Schema$LoggingConfig {
1427
+ /**
1428
+ * Optional. The minimum severity of logs that will be sent to Stackdriver/Platform Telemetry. Logs at severitiy ≥ this value will be sent, unless it is NONE.
1429
+ */
1430
+ logSeverity?: string | null;
1431
+ }
1398
1432
  /**
1399
1433
  * Mesh represents a logical configuration grouping for workload to workload communication within a service mesh. Routes that point to mesh dictate how requests are routed within this logical mesh boundary.
1400
1434
  */
@@ -1432,6 +1466,31 @@ export namespace networkservices_v1beta1 {
1432
1466
  */
1433
1467
  updateTime?: string | null;
1434
1468
  }
1469
+ /**
1470
+ * MeshRouteView defines view-only resource for Routes to a Mesh
1471
+ */
1472
+ export interface Schema$MeshRouteView {
1473
+ /**
1474
+ * Output only. Identifier. Full path name of the MeshRouteView resource. Format: projects/{project_number\}/locations/{location\}/meshes/{mesh_name\}/routeViews/{route_view_name\}
1475
+ */
1476
+ name?: string | null;
1477
+ /**
1478
+ * Output only. The resource id for the route.
1479
+ */
1480
+ routeId?: string | null;
1481
+ /**
1482
+ * Output only. Location where the route exists.
1483
+ */
1484
+ routeLocation?: string | null;
1485
+ /**
1486
+ * Output only. Project number where the route exists.
1487
+ */
1488
+ routeProjectNumber?: string | null;
1489
+ /**
1490
+ * Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute
1491
+ */
1492
+ routeType?: string | null;
1493
+ }
1435
1494
  /**
1436
1495
  * The matcher that is based on node metadata presented by xDS clients.
1437
1496
  */
@@ -1516,26 +1575,11 @@ export namespace networkservices_v1beta1 {
1516
1575
  */
1517
1576
  verb?: string | null;
1518
1577
  }
1519
- /**
1520
- * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
1521
- */
1522
- export interface Schema$Policy {
1523
- /**
1524
- * Specifies cloud audit logging configuration for this policy.
1525
- */
1526
- auditConfigs?: Schema$AuditConfig[];
1527
- /**
1528
- * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
1529
- */
1530
- bindings?: Schema$Binding[];
1531
- /**
1532
- * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
1533
- */
1534
- etag?: string | null;
1578
+ export interface Schema$RetryFilterPerRouteConfig {
1535
1579
  /**
1536
- * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1580
+ * The name of the crypto key to use for encrypting event data.
1537
1581
  */
1538
- version?: number | null;
1582
+ cryptoKeyName?: string | null;
1539
1583
  }
1540
1584
  /**
1541
1585
  * ServiceBinding is the resource that defines a Service Directory Service to be used in a BackendService resource.
@@ -1599,7 +1643,7 @@ export namespace networkservices_v1beta1 {
1599
1643
  */
1600
1644
  loadBalancingAlgorithm?: string | null;
1601
1645
  /**
1602
- * Required. Name of the ServiceLbPolicy resource. It matches pattern `projects/{project\}/locations/{location\}/serviceLbPolicies/{service_lb_policy_name\}`.
1646
+ * Identifier. Name of the ServiceLbPolicy resource. It matches pattern `projects/{project\}/locations/{location\}/serviceLbPolicies/{service_lb_policy_name\}`.
1603
1647
  */
1604
1648
  name?: string | null;
1605
1649
  /**
@@ -1625,19 +1669,6 @@ export namespace networkservices_v1beta1 {
1625
1669
  */
1626
1670
  failoverHealthThreshold?: number | null;
1627
1671
  }
1628
- /**
1629
- * Request message for `SetIamPolicy` method.
1630
- */
1631
- export interface Schema$SetIamPolicyRequest {
1632
- /**
1633
- * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them.
1634
- */
1635
- policy?: Schema$Policy;
1636
- /**
1637
- * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: "bindings, etag"`
1638
- */
1639
- updateMask?: string | null;
1640
- }
1641
1672
  /**
1642
1673
  * The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
1643
1674
  */
@@ -1667,6 +1698,10 @@ export namespace networkservices_v1beta1 {
1667
1698
  * Optional. A free-text description of the resource. Max length 1024 characters.
1668
1699
  */
1669
1700
  description?: string | null;
1701
+ /**
1702
+ * Optional. Output only. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
1703
+ */
1704
+ etag?: string | null;
1670
1705
  /**
1671
1706
  * Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: `projects/x/locations/global/gateways/`
1672
1707
  */
@@ -1752,24 +1787,6 @@ export namespace networkservices_v1beta1 {
1752
1787
  */
1753
1788
  matches?: Schema$TcpRouteRouteMatch[];
1754
1789
  }
1755
- /**
1756
- * Request message for `TestIamPermissions` method.
1757
- */
1758
- export interface Schema$TestIamPermissionsRequest {
1759
- /**
1760
- * The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1761
- */
1762
- permissions?: string[] | null;
1763
- }
1764
- /**
1765
- * Response message for `TestIamPermissions` method.
1766
- */
1767
- export interface Schema$TestIamPermissionsResponse {
1768
- /**
1769
- * A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1770
- */
1771
- permissions?: string[] | null;
1772
- }
1773
1790
  /**
1774
1791
  * TlsRoute defines how traffic should be routed based on SNI and other matching L3 attributes.
1775
1792
  */
@@ -1782,6 +1799,10 @@ export namespace networkservices_v1beta1 {
1782
1799
  * Optional. A free-text description of the resource. Max length 1024 characters.
1783
1800
  */
1784
1801
  description?: string | null;
1802
+ /**
1803
+ * Optional. Output only. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
1804
+ */
1805
+ etag?: string | null;
1785
1806
  /**
1786
1807
  * Optional. Gateways defines a list of gateways this TlsRoute is attached to, as one of the routing rules to route the requests served by the gateway. Each gateway reference should match the pattern: `projects/x/locations/global/gateways/`
1787
1808
  */
@@ -1872,6 +1893,159 @@ export namespace networkservices_v1beta1 {
1872
1893
  */
1873
1894
  ports?: string[] | null;
1874
1895
  }
1896
+ /**
1897
+ * `WasmPlugin` is a resource representing a service executing a customer-provided Wasm module.
1898
+ */
1899
+ export interface Schema$WasmPlugin {
1900
+ /**
1901
+ * Output only. The timestamp when the resource was created.
1902
+ */
1903
+ createTime?: string | null;
1904
+ /**
1905
+ * Optional. A human-readable description of the resource.
1906
+ */
1907
+ description?: string | null;
1908
+ /**
1909
+ * Optional. Set of labels associated with the `WasmPlugin` resource. The format must comply with [the following requirements](/compute/docs/labeling-resources#requirements).
1910
+ */
1911
+ labels?: {[key: string]: string} | null;
1912
+ /**
1913
+ * Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code.
1914
+ */
1915
+ logConfig?: Schema$WasmPluginLogConfig;
1916
+ /**
1917
+ * Optional. The ID of the `WasmPluginVersion` resource that is the currently serving one. The version referred to must be a child of this `WasmPlugin` resource.
1918
+ */
1919
+ mainVersionId?: string | null;
1920
+ /**
1921
+ * Identifier. Name of the `WasmPlugin` resource in the following format: `projects/{project\}/locations/{location\}/wasmPlugins/{wasm_plugin\}`.
1922
+ */
1923
+ name?: string | null;
1924
+ /**
1925
+ * Output only. The timestamp when the resource was updated.
1926
+ */
1927
+ updateTime?: string | null;
1928
+ /**
1929
+ * Output only. List of all [extensions](https://cloud.google.com/service-extensions/docs/overview) that use this `WasmPlugin` resource.
1930
+ */
1931
+ usedBy?: Schema$WasmPluginUsedBy[];
1932
+ /**
1933
+ * Optional. All versions of this `WasmPlugin` resource in the key-value format. The key is the resource ID, and the value is the `VersionDetails` object. Lets you create or update a `WasmPlugin` resource and its versions in a single request. When the `main_version_id` field is not empty, it must point to one of the `VersionDetails` objects in the map. If provided in a `PATCH` request, the new versions replace the previous set. Any version omitted from the `versions` field is removed. Because the `WasmPluginVersion` resource is immutable, if a `WasmPluginVersion` resource with the same name already exists and differs, the request fails. Note: In a `GET` request, this field is populated only if the field `GetWasmPluginRequest.view` is set to `WASM_PLUGIN_VIEW_FULL`.
1934
+ */
1935
+ versions?: {[key: string]: Schema$WasmPluginVersionDetails} | null;
1936
+ }
1937
+ /**
1938
+ * Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging.
1939
+ */
1940
+ export interface Schema$WasmPluginLogConfig {
1941
+ /**
1942
+ * Optional. Specifies whether to enable logging for activity by this plugin. Defaults to `false`.
1943
+ */
1944
+ enable?: boolean | null;
1945
+ /**
1946
+ * Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code. This field is can be set only if logging is enabled for the plugin. If the field is not provided when logging is enabled, it is set to `INFO` by default.
1947
+ */
1948
+ minLogLevel?: string | null;
1949
+ /**
1950
+ * Non-empty default. Configures the sampling rate of activity logs, where `1.0` means all logged activity is reported and `0.0` means no activity is reported. A floating point value between `0.0` and `1.0` indicates that a percentage of log messages is stored. The default value when logging is enabled is `1.0`. The value of the field must be between `0` and `1` (inclusive). This field can be specified only if logging is enabled for this plugin.
1951
+ */
1952
+ sampleRate?: number | null;
1953
+ }
1954
+ /**
1955
+ * Defines a resource that uses the `WasmPlugin` resource.
1956
+ */
1957
+ export interface Schema$WasmPluginUsedBy {
1958
+ /**
1959
+ * Output only. Full name of the resource https://google.aip.dev/122#full-resource-names, for example `//networkservices.googleapis.com/projects/{project\}/locations/{location\}/lbRouteExtensions/{extension\}`
1960
+ */
1961
+ name?: string | null;
1962
+ }
1963
+ /**
1964
+ * A single immutable version of a `WasmPlugin` resource. Defines the Wasm module used and optionally its runtime config.
1965
+ */
1966
+ export interface Schema$WasmPluginVersion {
1967
+ /**
1968
+ * Output only. The timestamp when the resource was created.
1969
+ */
1970
+ createTime?: string | null;
1971
+ /**
1972
+ * Optional. A human-readable description of the resource.
1973
+ */
1974
+ description?: string | null;
1975
+ /**
1976
+ * Output only. The resolved digest for the image specified in the `image` field. The digest is resolved during the creation of `WasmPluginVersion` resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the `image` field.
1977
+ */
1978
+ imageDigest?: string | null;
1979
+ /**
1980
+ * Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `image_digest` field. When downloading an image, the digest value is used instead of an image tag.
1981
+ */
1982
+ imageUri?: string | null;
1983
+ /**
1984
+ * Optional. Set of labels associated with the `WasmPluginVersion` resource.
1985
+ */
1986
+ labels?: {[key: string]: string} | null;
1987
+ /**
1988
+ * Identifier. Name of the `WasmPluginVersion` resource in the following format: `projects/{project\}/locations/{location\}/wasmPlugins/{wasm_plugin\}/ versions/{wasm_plugin_version\}`.
1989
+ */
1990
+ name?: string | null;
1991
+ /**
1992
+ * Configuration for the plugin. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. When a new `WasmPluginVersion` resource is created, the digest of the contents is saved in the `plugin_config_digest` field.
1993
+ */
1994
+ pluginConfigData?: string | null;
1995
+ /**
1996
+ * Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of `plugin_config_data` or the container image defined by the `plugin_config_uri` field.
1997
+ */
1998
+ pluginConfigDigest?: string | null;
1999
+ /**
2000
+ * URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. The container image must contain only a single file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `plugin_config_digest` field.
2001
+ */
2002
+ pluginConfigUri?: string | null;
2003
+ /**
2004
+ * Output only. The timestamp when the resource was updated.
2005
+ */
2006
+ updateTime?: string | null;
2007
+ }
2008
+ /**
2009
+ * Details of a `WasmPluginVersion` resource to be inlined in the `WasmPlugin` resource.
2010
+ */
2011
+ export interface Schema$WasmPluginVersionDetails {
2012
+ /**
2013
+ * Output only. The timestamp when the resource was created.
2014
+ */
2015
+ createTime?: string | null;
2016
+ /**
2017
+ * Optional. A human-readable description of the resource.
2018
+ */
2019
+ description?: string | null;
2020
+ /**
2021
+ * Output only. The resolved digest for the image specified in `image`. The digest is resolved during the creation of a `WasmPluginVersion` resource. This field holds the digest value regardless of whether a tag or digest was originally specified in the `image` field.
2022
+ */
2023
+ imageDigest?: string | null;
2024
+ /**
2025
+ * Optional. URI of the container image containing the Wasm module, stored in the Artifact Registry. The container image must contain only a single file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the URI gets resolved to an image digest and saved in the `image_digest` field.
2026
+ */
2027
+ imageUri?: string | null;
2028
+ /**
2029
+ * Optional. Set of labels associated with the `WasmPluginVersion` resource.
2030
+ */
2031
+ labels?: {[key: string]: string} | null;
2032
+ /**
2033
+ * Configuration for the plugin. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. When a new `WasmPluginVersion` version is created, the digest of the contents is saved in the `plugin_config_digest` field.
2034
+ */
2035
+ pluginConfigData?: string | null;
2036
+ /**
2037
+ * Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of the `plugin_config_data` field or the container image defined by the `plugin_config_uri` field.
2038
+ */
2039
+ pluginConfigDigest?: string | null;
2040
+ /**
2041
+ * URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. The container image must contain only a single file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `plugin_config_digest` field.
2042
+ */
2043
+ pluginConfigUri?: string | null;
2044
+ /**
2045
+ * Output only. The timestamp when the resource was updated.
2046
+ */
2047
+ updateTime?: string | null;
2048
+ }
1875
2049
 
1876
2050
  export class Resource$Projects {
1877
2051
  context: APIRequestContext;
@@ -1897,6 +2071,7 @@ export namespace networkservices_v1beta1 {
1897
2071
  serviceLbPolicies: Resource$Projects$Locations$Servicelbpolicies;
1898
2072
  tcpRoutes: Resource$Projects$Locations$Tcproutes;
1899
2073
  tlsRoutes: Resource$Projects$Locations$Tlsroutes;
2074
+ wasmPlugins: Resource$Projects$Locations$Wasmplugins;
1900
2075
  constructor(context: APIRequestContext) {
1901
2076
  this.context = context;
1902
2077
  this.authzExtensions = new Resource$Projects$Locations$Authzextensions(
@@ -1927,6 +2102,9 @@ export namespace networkservices_v1beta1 {
1927
2102
  new Resource$Projects$Locations$Servicelbpolicies(this.context);
1928
2103
  this.tcpRoutes = new Resource$Projects$Locations$Tcproutes(this.context);
1929
2104
  this.tlsRoutes = new Resource$Projects$Locations$Tlsroutes(this.context);
2105
+ this.wasmPlugins = new Resource$Projects$Locations$Wasmplugins(
2106
+ this.context
2107
+ );
1930
2108
  }
1931
2109
 
1932
2110
  /**
@@ -2661,7 +2839,7 @@ export namespace networkservices_v1beta1 {
2661
2839
  */
2662
2840
  requestId?: string;
2663
2841
  /**
2664
- * Required. Used to specify the fields to be overwritten in the `AuthzExtension` resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
2842
+ * Required. Used to specify the fields to be overwritten in the `AuthzExtension` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
2665
2843
  */
2666
2844
  updateMask?: string;
2667
2845
 
@@ -3190,8 +3368,12 @@ export namespace networkservices_v1beta1 {
3190
3368
 
3191
3369
  export class Resource$Projects$Locations$Gateways {
3192
3370
  context: APIRequestContext;
3371
+ routeViews: Resource$Projects$Locations$Gateways$Routeviews;
3193
3372
  constructor(context: APIRequestContext) {
3194
3373
  this.context = context;
3374
+ this.routeViews = new Resource$Projects$Locations$Gateways$Routeviews(
3375
+ this.context
3376
+ );
3195
3377
  }
3196
3378
 
3197
3379
  /**
@@ -3698,22 +3880,238 @@ export namespace networkservices_v1beta1 {
3698
3880
  requestBody?: Schema$Gateway;
3699
3881
  }
3700
3882
 
3701
- export class Resource$Projects$Locations$Grpcroutes {
3883
+ export class Resource$Projects$Locations$Gateways$Routeviews {
3702
3884
  context: APIRequestContext;
3703
3885
  constructor(context: APIRequestContext) {
3704
3886
  this.context = context;
3705
3887
  }
3706
3888
 
3707
3889
  /**
3708
- * Creates a new GrpcRoute in a given project and location.
3890
+ * Get a single RouteView of a Gateway.
3709
3891
  *
3710
3892
  * @param params - Parameters for request
3711
3893
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3712
3894
  * @param callback - Optional callback that handles the response.
3713
3895
  * @returns A promise if used with async/await, or void if used with a callback.
3714
3896
  */
3715
- create(
3716
- params: Params$Resource$Projects$Locations$Grpcroutes$Create,
3897
+ get(
3898
+ params: Params$Resource$Projects$Locations$Gateways$Routeviews$Get,
3899
+ options: StreamMethodOptions
3900
+ ): GaxiosPromise<Readable>;
3901
+ get(
3902
+ params?: Params$Resource$Projects$Locations$Gateways$Routeviews$Get,
3903
+ options?: MethodOptions
3904
+ ): GaxiosPromise<Schema$GatewayRouteView>;
3905
+ get(
3906
+ params: Params$Resource$Projects$Locations$Gateways$Routeviews$Get,
3907
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3908
+ callback: BodyResponseCallback<Readable>
3909
+ ): void;
3910
+ get(
3911
+ params: Params$Resource$Projects$Locations$Gateways$Routeviews$Get,
3912
+ options: MethodOptions | BodyResponseCallback<Schema$GatewayRouteView>,
3913
+ callback: BodyResponseCallback<Schema$GatewayRouteView>
3914
+ ): void;
3915
+ get(
3916
+ params: Params$Resource$Projects$Locations$Gateways$Routeviews$Get,
3917
+ callback: BodyResponseCallback<Schema$GatewayRouteView>
3918
+ ): void;
3919
+ get(callback: BodyResponseCallback<Schema$GatewayRouteView>): void;
3920
+ get(
3921
+ paramsOrCallback?:
3922
+ | Params$Resource$Projects$Locations$Gateways$Routeviews$Get
3923
+ | BodyResponseCallback<Schema$GatewayRouteView>
3924
+ | BodyResponseCallback<Readable>,
3925
+ optionsOrCallback?:
3926
+ | MethodOptions
3927
+ | StreamMethodOptions
3928
+ | BodyResponseCallback<Schema$GatewayRouteView>
3929
+ | BodyResponseCallback<Readable>,
3930
+ callback?:
3931
+ | BodyResponseCallback<Schema$GatewayRouteView>
3932
+ | BodyResponseCallback<Readable>
3933
+ ): void | GaxiosPromise<Schema$GatewayRouteView> | GaxiosPromise<Readable> {
3934
+ let params = (paramsOrCallback ||
3935
+ {}) as Params$Resource$Projects$Locations$Gateways$Routeviews$Get;
3936
+ let options = (optionsOrCallback || {}) as MethodOptions;
3937
+
3938
+ if (typeof paramsOrCallback === 'function') {
3939
+ callback = paramsOrCallback;
3940
+ params =
3941
+ {} as Params$Resource$Projects$Locations$Gateways$Routeviews$Get;
3942
+ options = {};
3943
+ }
3944
+
3945
+ if (typeof optionsOrCallback === 'function') {
3946
+ callback = optionsOrCallback;
3947
+ options = {};
3948
+ }
3949
+
3950
+ const rootUrl =
3951
+ options.rootUrl || 'https://networkservices.googleapis.com/';
3952
+ const parameters = {
3953
+ options: Object.assign(
3954
+ {
3955
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
3956
+ method: 'GET',
3957
+ apiVersion: '',
3958
+ },
3959
+ options
3960
+ ),
3961
+ params,
3962
+ requiredParams: ['name'],
3963
+ pathParams: ['name'],
3964
+ context: this.context,
3965
+ };
3966
+ if (callback) {
3967
+ createAPIRequest<Schema$GatewayRouteView>(
3968
+ parameters,
3969
+ callback as BodyResponseCallback<unknown>
3970
+ );
3971
+ } else {
3972
+ return createAPIRequest<Schema$GatewayRouteView>(parameters);
3973
+ }
3974
+ }
3975
+
3976
+ /**
3977
+ * Lists RouteViews
3978
+ *
3979
+ * @param params - Parameters for request
3980
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
3981
+ * @param callback - Optional callback that handles the response.
3982
+ * @returns A promise if used with async/await, or void if used with a callback.
3983
+ */
3984
+ list(
3985
+ params: Params$Resource$Projects$Locations$Gateways$Routeviews$List,
3986
+ options: StreamMethodOptions
3987
+ ): GaxiosPromise<Readable>;
3988
+ list(
3989
+ params?: Params$Resource$Projects$Locations$Gateways$Routeviews$List,
3990
+ options?: MethodOptions
3991
+ ): GaxiosPromise<Schema$ListGatewayRouteViewsResponse>;
3992
+ list(
3993
+ params: Params$Resource$Projects$Locations$Gateways$Routeviews$List,
3994
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
3995
+ callback: BodyResponseCallback<Readable>
3996
+ ): void;
3997
+ list(
3998
+ params: Params$Resource$Projects$Locations$Gateways$Routeviews$List,
3999
+ options:
4000
+ | MethodOptions
4001
+ | BodyResponseCallback<Schema$ListGatewayRouteViewsResponse>,
4002
+ callback: BodyResponseCallback<Schema$ListGatewayRouteViewsResponse>
4003
+ ): void;
4004
+ list(
4005
+ params: Params$Resource$Projects$Locations$Gateways$Routeviews$List,
4006
+ callback: BodyResponseCallback<Schema$ListGatewayRouteViewsResponse>
4007
+ ): void;
4008
+ list(
4009
+ callback: BodyResponseCallback<Schema$ListGatewayRouteViewsResponse>
4010
+ ): void;
4011
+ list(
4012
+ paramsOrCallback?:
4013
+ | Params$Resource$Projects$Locations$Gateways$Routeviews$List
4014
+ | BodyResponseCallback<Schema$ListGatewayRouteViewsResponse>
4015
+ | BodyResponseCallback<Readable>,
4016
+ optionsOrCallback?:
4017
+ | MethodOptions
4018
+ | StreamMethodOptions
4019
+ | BodyResponseCallback<Schema$ListGatewayRouteViewsResponse>
4020
+ | BodyResponseCallback<Readable>,
4021
+ callback?:
4022
+ | BodyResponseCallback<Schema$ListGatewayRouteViewsResponse>
4023
+ | BodyResponseCallback<Readable>
4024
+ ):
4025
+ | void
4026
+ | GaxiosPromise<Schema$ListGatewayRouteViewsResponse>
4027
+ | GaxiosPromise<Readable> {
4028
+ let params = (paramsOrCallback ||
4029
+ {}) as Params$Resource$Projects$Locations$Gateways$Routeviews$List;
4030
+ let options = (optionsOrCallback || {}) as MethodOptions;
4031
+
4032
+ if (typeof paramsOrCallback === 'function') {
4033
+ callback = paramsOrCallback;
4034
+ params =
4035
+ {} as Params$Resource$Projects$Locations$Gateways$Routeviews$List;
4036
+ options = {};
4037
+ }
4038
+
4039
+ if (typeof optionsOrCallback === 'function') {
4040
+ callback = optionsOrCallback;
4041
+ options = {};
4042
+ }
4043
+
4044
+ const rootUrl =
4045
+ options.rootUrl || 'https://networkservices.googleapis.com/';
4046
+ const parameters = {
4047
+ options: Object.assign(
4048
+ {
4049
+ url: (rootUrl + '/v1beta1/{+parent}/routeViews').replace(
4050
+ /([^:]\/)\/+/g,
4051
+ '$1'
4052
+ ),
4053
+ method: 'GET',
4054
+ apiVersion: '',
4055
+ },
4056
+ options
4057
+ ),
4058
+ params,
4059
+ requiredParams: ['parent'],
4060
+ pathParams: ['parent'],
4061
+ context: this.context,
4062
+ };
4063
+ if (callback) {
4064
+ createAPIRequest<Schema$ListGatewayRouteViewsResponse>(
4065
+ parameters,
4066
+ callback as BodyResponseCallback<unknown>
4067
+ );
4068
+ } else {
4069
+ return createAPIRequest<Schema$ListGatewayRouteViewsResponse>(
4070
+ parameters
4071
+ );
4072
+ }
4073
+ }
4074
+ }
4075
+
4076
+ export interface Params$Resource$Projects$Locations$Gateways$Routeviews$Get
4077
+ extends StandardParameters {
4078
+ /**
4079
+ * Required. Name of the GatewayRouteView resource. Formats: projects/{project_number\}/locations/{location\}/gateways/{gateway_name\}/routeViews/{route_view_name\}
4080
+ */
4081
+ name?: string;
4082
+ }
4083
+ export interface Params$Resource$Projects$Locations$Gateways$Routeviews$List
4084
+ extends StandardParameters {
4085
+ /**
4086
+ * Maximum number of GatewayRouteViews to return per call.
4087
+ */
4088
+ pageSize?: number;
4089
+ /**
4090
+ * The value returned by the last `ListGatewayRouteViewsResponse` Indicates that this is a continuation of a prior `ListGatewayRouteViews` call, and that the system should return the next page of data.
4091
+ */
4092
+ pageToken?: string;
4093
+ /**
4094
+ * Required. The Gateway to which a Route is associated. Formats: projects/{project_number\}/locations/{location\}/gateways/{gateway_name\}
4095
+ */
4096
+ parent?: string;
4097
+ }
4098
+
4099
+ export class Resource$Projects$Locations$Grpcroutes {
4100
+ context: APIRequestContext;
4101
+ constructor(context: APIRequestContext) {
4102
+ this.context = context;
4103
+ }
4104
+
4105
+ /**
4106
+ * Creates a new GrpcRoute in a given project and location.
4107
+ *
4108
+ * @param params - Parameters for request
4109
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4110
+ * @param callback - Optional callback that handles the response.
4111
+ * @returns A promise if used with async/await, or void if used with a callback.
4112
+ */
4113
+ create(
4114
+ params: Params$Resource$Projects$Locations$Grpcroutes$Create,
3717
4115
  options: StreamMethodOptions
3718
4116
  ): GaxiosPromise<Readable>;
3719
4117
  create(
@@ -4164,6 +4562,10 @@ export namespace networkservices_v1beta1 {
4164
4562
  }
4165
4563
  export interface Params$Resource$Projects$Locations$Grpcroutes$Delete
4166
4564
  extends StandardParameters {
4565
+ /**
4566
+ * Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
4567
+ */
4568
+ etag?: string;
4167
4569
  /**
4168
4570
  * Required. A name of the GrpcRoute to delete. Must be in the format `projects/x/locations/global/grpcRoutes/x`.
4169
4571
  */
@@ -4674,6 +5076,10 @@ export namespace networkservices_v1beta1 {
4674
5076
  }
4675
5077
  export interface Params$Resource$Projects$Locations$Httproutes$Delete
4676
5078
  extends StandardParameters {
5079
+ /**
5080
+ * Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
5081
+ */
5082
+ etag?: string;
4677
5083
  /**
4678
5084
  * Required. A name of the HttpRoute to delete. Must be in the format `projects/x/locations/global/httpRoutes/x`.
4679
5085
  */
@@ -5246,7 +5652,7 @@ export namespace networkservices_v1beta1 {
5246
5652
  */
5247
5653
  requestId?: string;
5248
5654
  /**
5249
- * Optional. Used to specify the fields to be overwritten in the `LbRouteExtension` resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
5655
+ * Optional. Used to specify the fields to be overwritten in the `LbRouteExtension` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
5250
5656
  */
5251
5657
  updateMask?: string;
5252
5658
 
@@ -5788,7 +6194,7 @@ export namespace networkservices_v1beta1 {
5788
6194
  */
5789
6195
  requestId?: string;
5790
6196
  /**
5791
- * Optional. Used to specify the fields to be overwritten in the `LbTrafficExtension` resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
6197
+ * Optional. Used to specify the fields to be overwritten in the `LbTrafficExtension` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
5792
6198
  */
5793
6199
  updateMask?: string;
5794
6200
 
@@ -5800,8 +6206,12 @@ export namespace networkservices_v1beta1 {
5800
6206
 
5801
6207
  export class Resource$Projects$Locations$Meshes {
5802
6208
  context: APIRequestContext;
6209
+ routeViews: Resource$Projects$Locations$Meshes$Routeviews;
5803
6210
  constructor(context: APIRequestContext) {
5804
6211
  this.context = context;
6212
+ this.routeViews = new Resource$Projects$Locations$Meshes$Routeviews(
6213
+ this.context
6214
+ );
5805
6215
  }
5806
6216
 
5807
6217
  /**
@@ -6306,64 +6716,64 @@ export namespace networkservices_v1beta1 {
6306
6716
  requestBody?: Schema$Mesh;
6307
6717
  }
6308
6718
 
6309
- export class Resource$Projects$Locations$Operations {
6719
+ export class Resource$Projects$Locations$Meshes$Routeviews {
6310
6720
  context: APIRequestContext;
6311
6721
  constructor(context: APIRequestContext) {
6312
6722
  this.context = context;
6313
6723
  }
6314
6724
 
6315
6725
  /**
6316
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
6726
+ * Get a single RouteView of a Mesh.
6317
6727
  *
6318
6728
  * @param params - Parameters for request
6319
6729
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6320
6730
  * @param callback - Optional callback that handles the response.
6321
6731
  * @returns A promise if used with async/await, or void if used with a callback.
6322
6732
  */
6323
- cancel(
6324
- params: Params$Resource$Projects$Locations$Operations$Cancel,
6733
+ get(
6734
+ params: Params$Resource$Projects$Locations$Meshes$Routeviews$Get,
6325
6735
  options: StreamMethodOptions
6326
6736
  ): GaxiosPromise<Readable>;
6327
- cancel(
6328
- params?: Params$Resource$Projects$Locations$Operations$Cancel,
6737
+ get(
6738
+ params?: Params$Resource$Projects$Locations$Meshes$Routeviews$Get,
6329
6739
  options?: MethodOptions
6330
- ): GaxiosPromise<Schema$Empty>;
6331
- cancel(
6332
- params: Params$Resource$Projects$Locations$Operations$Cancel,
6740
+ ): GaxiosPromise<Schema$MeshRouteView>;
6741
+ get(
6742
+ params: Params$Resource$Projects$Locations$Meshes$Routeviews$Get,
6333
6743
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
6334
6744
  callback: BodyResponseCallback<Readable>
6335
6745
  ): void;
6336
- cancel(
6337
- params: Params$Resource$Projects$Locations$Operations$Cancel,
6338
- options: MethodOptions | BodyResponseCallback<Schema$Empty>,
6339
- callback: BodyResponseCallback<Schema$Empty>
6746
+ get(
6747
+ params: Params$Resource$Projects$Locations$Meshes$Routeviews$Get,
6748
+ options: MethodOptions | BodyResponseCallback<Schema$MeshRouteView>,
6749
+ callback: BodyResponseCallback<Schema$MeshRouteView>
6340
6750
  ): void;
6341
- cancel(
6342
- params: Params$Resource$Projects$Locations$Operations$Cancel,
6343
- callback: BodyResponseCallback<Schema$Empty>
6751
+ get(
6752
+ params: Params$Resource$Projects$Locations$Meshes$Routeviews$Get,
6753
+ callback: BodyResponseCallback<Schema$MeshRouteView>
6344
6754
  ): void;
6345
- cancel(callback: BodyResponseCallback<Schema$Empty>): void;
6346
- cancel(
6755
+ get(callback: BodyResponseCallback<Schema$MeshRouteView>): void;
6756
+ get(
6347
6757
  paramsOrCallback?:
6348
- | Params$Resource$Projects$Locations$Operations$Cancel
6349
- | BodyResponseCallback<Schema$Empty>
6758
+ | Params$Resource$Projects$Locations$Meshes$Routeviews$Get
6759
+ | BodyResponseCallback<Schema$MeshRouteView>
6350
6760
  | BodyResponseCallback<Readable>,
6351
6761
  optionsOrCallback?:
6352
6762
  | MethodOptions
6353
6763
  | StreamMethodOptions
6354
- | BodyResponseCallback<Schema$Empty>
6764
+ | BodyResponseCallback<Schema$MeshRouteView>
6355
6765
  | BodyResponseCallback<Readable>,
6356
6766
  callback?:
6357
- | BodyResponseCallback<Schema$Empty>
6767
+ | BodyResponseCallback<Schema$MeshRouteView>
6358
6768
  | BodyResponseCallback<Readable>
6359
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
6769
+ ): void | GaxiosPromise<Schema$MeshRouteView> | GaxiosPromise<Readable> {
6360
6770
  let params = (paramsOrCallback ||
6361
- {}) as Params$Resource$Projects$Locations$Operations$Cancel;
6771
+ {}) as Params$Resource$Projects$Locations$Meshes$Routeviews$Get;
6362
6772
  let options = (optionsOrCallback || {}) as MethodOptions;
6363
6773
 
6364
6774
  if (typeof paramsOrCallback === 'function') {
6365
6775
  callback = paramsOrCallback;
6366
- params = {} as Params$Resource$Projects$Locations$Operations$Cancel;
6776
+ params = {} as Params$Resource$Projects$Locations$Meshes$Routeviews$Get;
6367
6777
  options = {};
6368
6778
  }
6369
6779
 
@@ -6377,11 +6787,8 @@ export namespace networkservices_v1beta1 {
6377
6787
  const parameters = {
6378
6788
  options: Object.assign(
6379
6789
  {
6380
- url: (rootUrl + '/v1beta1/{+name}:cancel').replace(
6381
- /([^:]\/)\/+/g,
6382
- '$1'
6383
- ),
6384
- method: 'POST',
6790
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
6791
+ method: 'GET',
6385
6792
  apiVersion: '',
6386
6793
  },
6387
6794
  options
@@ -6392,67 +6799,75 @@ export namespace networkservices_v1beta1 {
6392
6799
  context: this.context,
6393
6800
  };
6394
6801
  if (callback) {
6395
- createAPIRequest<Schema$Empty>(
6802
+ createAPIRequest<Schema$MeshRouteView>(
6396
6803
  parameters,
6397
6804
  callback as BodyResponseCallback<unknown>
6398
6805
  );
6399
6806
  } else {
6400
- return createAPIRequest<Schema$Empty>(parameters);
6807
+ return createAPIRequest<Schema$MeshRouteView>(parameters);
6401
6808
  }
6402
6809
  }
6403
6810
 
6404
6811
  /**
6405
- * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
6812
+ * Lists RouteViews
6406
6813
  *
6407
6814
  * @param params - Parameters for request
6408
6815
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6409
6816
  * @param callback - Optional callback that handles the response.
6410
6817
  * @returns A promise if used with async/await, or void if used with a callback.
6411
6818
  */
6412
- delete(
6413
- params: Params$Resource$Projects$Locations$Operations$Delete,
6819
+ list(
6820
+ params: Params$Resource$Projects$Locations$Meshes$Routeviews$List,
6414
6821
  options: StreamMethodOptions
6415
6822
  ): GaxiosPromise<Readable>;
6416
- delete(
6417
- params?: Params$Resource$Projects$Locations$Operations$Delete,
6823
+ list(
6824
+ params?: Params$Resource$Projects$Locations$Meshes$Routeviews$List,
6418
6825
  options?: MethodOptions
6419
- ): GaxiosPromise<Schema$Empty>;
6420
- delete(
6421
- params: Params$Resource$Projects$Locations$Operations$Delete,
6826
+ ): GaxiosPromise<Schema$ListMeshRouteViewsResponse>;
6827
+ list(
6828
+ params: Params$Resource$Projects$Locations$Meshes$Routeviews$List,
6422
6829
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
6423
6830
  callback: BodyResponseCallback<Readable>
6424
6831
  ): void;
6425
- delete(
6426
- params: Params$Resource$Projects$Locations$Operations$Delete,
6427
- options: MethodOptions | BodyResponseCallback<Schema$Empty>,
6428
- callback: BodyResponseCallback<Schema$Empty>
6832
+ list(
6833
+ params: Params$Resource$Projects$Locations$Meshes$Routeviews$List,
6834
+ options:
6835
+ | MethodOptions
6836
+ | BodyResponseCallback<Schema$ListMeshRouteViewsResponse>,
6837
+ callback: BodyResponseCallback<Schema$ListMeshRouteViewsResponse>
6429
6838
  ): void;
6430
- delete(
6431
- params: Params$Resource$Projects$Locations$Operations$Delete,
6432
- callback: BodyResponseCallback<Schema$Empty>
6839
+ list(
6840
+ params: Params$Resource$Projects$Locations$Meshes$Routeviews$List,
6841
+ callback: BodyResponseCallback<Schema$ListMeshRouteViewsResponse>
6433
6842
  ): void;
6434
- delete(callback: BodyResponseCallback<Schema$Empty>): void;
6435
- delete(
6843
+ list(
6844
+ callback: BodyResponseCallback<Schema$ListMeshRouteViewsResponse>
6845
+ ): void;
6846
+ list(
6436
6847
  paramsOrCallback?:
6437
- | Params$Resource$Projects$Locations$Operations$Delete
6438
- | BodyResponseCallback<Schema$Empty>
6848
+ | Params$Resource$Projects$Locations$Meshes$Routeviews$List
6849
+ | BodyResponseCallback<Schema$ListMeshRouteViewsResponse>
6439
6850
  | BodyResponseCallback<Readable>,
6440
6851
  optionsOrCallback?:
6441
6852
  | MethodOptions
6442
6853
  | StreamMethodOptions
6443
- | BodyResponseCallback<Schema$Empty>
6854
+ | BodyResponseCallback<Schema$ListMeshRouteViewsResponse>
6444
6855
  | BodyResponseCallback<Readable>,
6445
6856
  callback?:
6446
- | BodyResponseCallback<Schema$Empty>
6857
+ | BodyResponseCallback<Schema$ListMeshRouteViewsResponse>
6447
6858
  | BodyResponseCallback<Readable>
6448
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
6859
+ ):
6860
+ | void
6861
+ | GaxiosPromise<Schema$ListMeshRouteViewsResponse>
6862
+ | GaxiosPromise<Readable> {
6449
6863
  let params = (paramsOrCallback ||
6450
- {}) as Params$Resource$Projects$Locations$Operations$Delete;
6864
+ {}) as Params$Resource$Projects$Locations$Meshes$Routeviews$List;
6451
6865
  let options = (optionsOrCallback || {}) as MethodOptions;
6452
6866
 
6453
6867
  if (typeof paramsOrCallback === 'function') {
6454
6868
  callback = paramsOrCallback;
6455
- params = {} as Params$Resource$Projects$Locations$Operations$Delete;
6869
+ params =
6870
+ {} as Params$Resource$Projects$Locations$Meshes$Routeviews$List;
6456
6871
  options = {};
6457
6872
  }
6458
6873
 
@@ -6466,7 +6881,215 @@ export namespace networkservices_v1beta1 {
6466
6881
  const parameters = {
6467
6882
  options: Object.assign(
6468
6883
  {
6469
- url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
6884
+ url: (rootUrl + '/v1beta1/{+parent}/routeViews').replace(
6885
+ /([^:]\/)\/+/g,
6886
+ '$1'
6887
+ ),
6888
+ method: 'GET',
6889
+ apiVersion: '',
6890
+ },
6891
+ options
6892
+ ),
6893
+ params,
6894
+ requiredParams: ['parent'],
6895
+ pathParams: ['parent'],
6896
+ context: this.context,
6897
+ };
6898
+ if (callback) {
6899
+ createAPIRequest<Schema$ListMeshRouteViewsResponse>(
6900
+ parameters,
6901
+ callback as BodyResponseCallback<unknown>
6902
+ );
6903
+ } else {
6904
+ return createAPIRequest<Schema$ListMeshRouteViewsResponse>(parameters);
6905
+ }
6906
+ }
6907
+ }
6908
+
6909
+ export interface Params$Resource$Projects$Locations$Meshes$Routeviews$Get
6910
+ extends StandardParameters {
6911
+ /**
6912
+ * Required. Name of the MeshRouteView resource. Format: projects/{project_number\}/locations/{location\}/meshes/{mesh_name\}/routeViews/{route_view_name\}
6913
+ */
6914
+ name?: string;
6915
+ }
6916
+ export interface Params$Resource$Projects$Locations$Meshes$Routeviews$List
6917
+ extends StandardParameters {
6918
+ /**
6919
+ * Maximum number of MeshRouteViews to return per call.
6920
+ */
6921
+ pageSize?: number;
6922
+ /**
6923
+ * The value returned by the last `ListMeshRouteViewsResponse` Indicates that this is a continuation of a prior `ListMeshRouteViews` call, and that the system should return the next page of data.
6924
+ */
6925
+ pageToken?: string;
6926
+ /**
6927
+ * Required. The Mesh to which a Route is associated. Format: projects/{project_number\}/locations/{location\}/meshes/{mesh_name\}
6928
+ */
6929
+ parent?: string;
6930
+ }
6931
+
6932
+ export class Resource$Projects$Locations$Operations {
6933
+ context: APIRequestContext;
6934
+ constructor(context: APIRequestContext) {
6935
+ this.context = context;
6936
+ }
6937
+
6938
+ /**
6939
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
6940
+ *
6941
+ * @param params - Parameters for request
6942
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6943
+ * @param callback - Optional callback that handles the response.
6944
+ * @returns A promise if used with async/await, or void if used with a callback.
6945
+ */
6946
+ cancel(
6947
+ params: Params$Resource$Projects$Locations$Operations$Cancel,
6948
+ options: StreamMethodOptions
6949
+ ): GaxiosPromise<Readable>;
6950
+ cancel(
6951
+ params?: Params$Resource$Projects$Locations$Operations$Cancel,
6952
+ options?: MethodOptions
6953
+ ): GaxiosPromise<Schema$Empty>;
6954
+ cancel(
6955
+ params: Params$Resource$Projects$Locations$Operations$Cancel,
6956
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
6957
+ callback: BodyResponseCallback<Readable>
6958
+ ): void;
6959
+ cancel(
6960
+ params: Params$Resource$Projects$Locations$Operations$Cancel,
6961
+ options: MethodOptions | BodyResponseCallback<Schema$Empty>,
6962
+ callback: BodyResponseCallback<Schema$Empty>
6963
+ ): void;
6964
+ cancel(
6965
+ params: Params$Resource$Projects$Locations$Operations$Cancel,
6966
+ callback: BodyResponseCallback<Schema$Empty>
6967
+ ): void;
6968
+ cancel(callback: BodyResponseCallback<Schema$Empty>): void;
6969
+ cancel(
6970
+ paramsOrCallback?:
6971
+ | Params$Resource$Projects$Locations$Operations$Cancel
6972
+ | BodyResponseCallback<Schema$Empty>
6973
+ | BodyResponseCallback<Readable>,
6974
+ optionsOrCallback?:
6975
+ | MethodOptions
6976
+ | StreamMethodOptions
6977
+ | BodyResponseCallback<Schema$Empty>
6978
+ | BodyResponseCallback<Readable>,
6979
+ callback?:
6980
+ | BodyResponseCallback<Schema$Empty>
6981
+ | BodyResponseCallback<Readable>
6982
+ ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
6983
+ let params = (paramsOrCallback ||
6984
+ {}) as Params$Resource$Projects$Locations$Operations$Cancel;
6985
+ let options = (optionsOrCallback || {}) as MethodOptions;
6986
+
6987
+ if (typeof paramsOrCallback === 'function') {
6988
+ callback = paramsOrCallback;
6989
+ params = {} as Params$Resource$Projects$Locations$Operations$Cancel;
6990
+ options = {};
6991
+ }
6992
+
6993
+ if (typeof optionsOrCallback === 'function') {
6994
+ callback = optionsOrCallback;
6995
+ options = {};
6996
+ }
6997
+
6998
+ const rootUrl =
6999
+ options.rootUrl || 'https://networkservices.googleapis.com/';
7000
+ const parameters = {
7001
+ options: Object.assign(
7002
+ {
7003
+ url: (rootUrl + '/v1beta1/{+name}:cancel').replace(
7004
+ /([^:]\/)\/+/g,
7005
+ '$1'
7006
+ ),
7007
+ method: 'POST',
7008
+ apiVersion: '',
7009
+ },
7010
+ options
7011
+ ),
7012
+ params,
7013
+ requiredParams: ['name'],
7014
+ pathParams: ['name'],
7015
+ context: this.context,
7016
+ };
7017
+ if (callback) {
7018
+ createAPIRequest<Schema$Empty>(
7019
+ parameters,
7020
+ callback as BodyResponseCallback<unknown>
7021
+ );
7022
+ } else {
7023
+ return createAPIRequest<Schema$Empty>(parameters);
7024
+ }
7025
+ }
7026
+
7027
+ /**
7028
+ * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
7029
+ *
7030
+ * @param params - Parameters for request
7031
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7032
+ * @param callback - Optional callback that handles the response.
7033
+ * @returns A promise if used with async/await, or void if used with a callback.
7034
+ */
7035
+ delete(
7036
+ params: Params$Resource$Projects$Locations$Operations$Delete,
7037
+ options: StreamMethodOptions
7038
+ ): GaxiosPromise<Readable>;
7039
+ delete(
7040
+ params?: Params$Resource$Projects$Locations$Operations$Delete,
7041
+ options?: MethodOptions
7042
+ ): GaxiosPromise<Schema$Empty>;
7043
+ delete(
7044
+ params: Params$Resource$Projects$Locations$Operations$Delete,
7045
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
7046
+ callback: BodyResponseCallback<Readable>
7047
+ ): void;
7048
+ delete(
7049
+ params: Params$Resource$Projects$Locations$Operations$Delete,
7050
+ options: MethodOptions | BodyResponseCallback<Schema$Empty>,
7051
+ callback: BodyResponseCallback<Schema$Empty>
7052
+ ): void;
7053
+ delete(
7054
+ params: Params$Resource$Projects$Locations$Operations$Delete,
7055
+ callback: BodyResponseCallback<Schema$Empty>
7056
+ ): void;
7057
+ delete(callback: BodyResponseCallback<Schema$Empty>): void;
7058
+ delete(
7059
+ paramsOrCallback?:
7060
+ | Params$Resource$Projects$Locations$Operations$Delete
7061
+ | BodyResponseCallback<Schema$Empty>
7062
+ | BodyResponseCallback<Readable>,
7063
+ optionsOrCallback?:
7064
+ | MethodOptions
7065
+ | StreamMethodOptions
7066
+ | BodyResponseCallback<Schema$Empty>
7067
+ | BodyResponseCallback<Readable>,
7068
+ callback?:
7069
+ | BodyResponseCallback<Schema$Empty>
7070
+ | BodyResponseCallback<Readable>
7071
+ ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
7072
+ let params = (paramsOrCallback ||
7073
+ {}) as Params$Resource$Projects$Locations$Operations$Delete;
7074
+ let options = (optionsOrCallback || {}) as MethodOptions;
7075
+
7076
+ if (typeof paramsOrCallback === 'function') {
7077
+ callback = paramsOrCallback;
7078
+ params = {} as Params$Resource$Projects$Locations$Operations$Delete;
7079
+ options = {};
7080
+ }
7081
+
7082
+ if (typeof optionsOrCallback === 'function') {
7083
+ callback = optionsOrCallback;
7084
+ options = {};
7085
+ }
7086
+
7087
+ const rootUrl =
7088
+ options.rootUrl || 'https://networkservices.googleapis.com/';
7089
+ const parameters = {
7090
+ options: Object.assign(
7091
+ {
7092
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
6470
7093
  method: 'DELETE',
6471
7094
  apiVersion: '',
6472
7095
  },
@@ -7396,58 +8019,65 @@ export namespace networkservices_v1beta1 {
7396
8019
  }
7397
8020
 
7398
8021
  /**
7399
- * Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
8022
+ * Lists ServiceLbPolicies in a given project and location.
7400
8023
  *
7401
8024
  * @param params - Parameters for request
7402
8025
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7403
8026
  * @param callback - Optional callback that handles the response.
7404
8027
  * @returns A promise if used with async/await, or void if used with a callback.
7405
8028
  */
7406
- getIamPolicy(
7407
- params: Params$Resource$Projects$Locations$Servicelbpolicies$Getiampolicy,
8029
+ list(
8030
+ params: Params$Resource$Projects$Locations$Servicelbpolicies$List,
7408
8031
  options: StreamMethodOptions
7409
8032
  ): GaxiosPromise<Readable>;
7410
- getIamPolicy(
7411
- params?: Params$Resource$Projects$Locations$Servicelbpolicies$Getiampolicy,
8033
+ list(
8034
+ params?: Params$Resource$Projects$Locations$Servicelbpolicies$List,
7412
8035
  options?: MethodOptions
7413
- ): GaxiosPromise<Schema$Policy>;
7414
- getIamPolicy(
7415
- params: Params$Resource$Projects$Locations$Servicelbpolicies$Getiampolicy,
8036
+ ): GaxiosPromise<Schema$ListServiceLbPoliciesResponse>;
8037
+ list(
8038
+ params: Params$Resource$Projects$Locations$Servicelbpolicies$List,
7416
8039
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
7417
8040
  callback: BodyResponseCallback<Readable>
7418
8041
  ): void;
7419
- getIamPolicy(
7420
- params: Params$Resource$Projects$Locations$Servicelbpolicies$Getiampolicy,
7421
- options: MethodOptions | BodyResponseCallback<Schema$Policy>,
7422
- callback: BodyResponseCallback<Schema$Policy>
8042
+ list(
8043
+ params: Params$Resource$Projects$Locations$Servicelbpolicies$List,
8044
+ options:
8045
+ | MethodOptions
8046
+ | BodyResponseCallback<Schema$ListServiceLbPoliciesResponse>,
8047
+ callback: BodyResponseCallback<Schema$ListServiceLbPoliciesResponse>
8048
+ ): void;
8049
+ list(
8050
+ params: Params$Resource$Projects$Locations$Servicelbpolicies$List,
8051
+ callback: BodyResponseCallback<Schema$ListServiceLbPoliciesResponse>
7423
8052
  ): void;
7424
- getIamPolicy(
7425
- params: Params$Resource$Projects$Locations$Servicelbpolicies$Getiampolicy,
7426
- callback: BodyResponseCallback<Schema$Policy>
8053
+ list(
8054
+ callback: BodyResponseCallback<Schema$ListServiceLbPoliciesResponse>
7427
8055
  ): void;
7428
- getIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
7429
- getIamPolicy(
8056
+ list(
7430
8057
  paramsOrCallback?:
7431
- | Params$Resource$Projects$Locations$Servicelbpolicies$Getiampolicy
7432
- | BodyResponseCallback<Schema$Policy>
8058
+ | Params$Resource$Projects$Locations$Servicelbpolicies$List
8059
+ | BodyResponseCallback<Schema$ListServiceLbPoliciesResponse>
7433
8060
  | BodyResponseCallback<Readable>,
7434
8061
  optionsOrCallback?:
7435
8062
  | MethodOptions
7436
8063
  | StreamMethodOptions
7437
- | BodyResponseCallback<Schema$Policy>
8064
+ | BodyResponseCallback<Schema$ListServiceLbPoliciesResponse>
7438
8065
  | BodyResponseCallback<Readable>,
7439
8066
  callback?:
7440
- | BodyResponseCallback<Schema$Policy>
8067
+ | BodyResponseCallback<Schema$ListServiceLbPoliciesResponse>
7441
8068
  | BodyResponseCallback<Readable>
7442
- ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
8069
+ ):
8070
+ | void
8071
+ | GaxiosPromise<Schema$ListServiceLbPoliciesResponse>
8072
+ | GaxiosPromise<Readable> {
7443
8073
  let params = (paramsOrCallback ||
7444
- {}) as Params$Resource$Projects$Locations$Servicelbpolicies$Getiampolicy;
8074
+ {}) as Params$Resource$Projects$Locations$Servicelbpolicies$List;
7445
8075
  let options = (optionsOrCallback || {}) as MethodOptions;
7446
8076
 
7447
8077
  if (typeof paramsOrCallback === 'function') {
7448
8078
  callback = paramsOrCallback;
7449
8079
  params =
7450
- {} as Params$Resource$Projects$Locations$Servicelbpolicies$Getiampolicy;
8080
+ {} as Params$Resource$Projects$Locations$Servicelbpolicies$List;
7451
8081
  options = {};
7452
8082
  }
7453
8083
 
@@ -7461,7 +8091,7 @@ export namespace networkservices_v1beta1 {
7461
8091
  const parameters = {
7462
8092
  options: Object.assign(
7463
8093
  {
7464
- url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(
8094
+ url: (rootUrl + '/v1beta1/{+parent}/serviceLbPolicies').replace(
7465
8095
  /([^:]\/)\/+/g,
7466
8096
  '$1'
7467
8097
  ),
@@ -7471,137 +8101,40 @@ export namespace networkservices_v1beta1 {
7471
8101
  options
7472
8102
  ),
7473
8103
  params,
7474
- requiredParams: ['resource'],
7475
- pathParams: ['resource'],
8104
+ requiredParams: ['parent'],
8105
+ pathParams: ['parent'],
7476
8106
  context: this.context,
7477
8107
  };
7478
8108
  if (callback) {
7479
- createAPIRequest<Schema$Policy>(
8109
+ createAPIRequest<Schema$ListServiceLbPoliciesResponse>(
7480
8110
  parameters,
7481
8111
  callback as BodyResponseCallback<unknown>
7482
8112
  );
7483
8113
  } else {
7484
- return createAPIRequest<Schema$Policy>(parameters);
8114
+ return createAPIRequest<Schema$ListServiceLbPoliciesResponse>(
8115
+ parameters
8116
+ );
7485
8117
  }
7486
8118
  }
7487
8119
 
7488
8120
  /**
7489
- * Lists ServiceLbPolicies in a given project and location.
8121
+ * Updates the parameters of a single ServiceLbPolicy.
7490
8122
  *
7491
8123
  * @param params - Parameters for request
7492
8124
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7493
8125
  * @param callback - Optional callback that handles the response.
7494
8126
  * @returns A promise if used with async/await, or void if used with a callback.
7495
8127
  */
7496
- list(
7497
- params: Params$Resource$Projects$Locations$Servicelbpolicies$List,
8128
+ patch(
8129
+ params: Params$Resource$Projects$Locations$Servicelbpolicies$Patch,
7498
8130
  options: StreamMethodOptions
7499
8131
  ): GaxiosPromise<Readable>;
7500
- list(
7501
- params?: Params$Resource$Projects$Locations$Servicelbpolicies$List,
8132
+ patch(
8133
+ params?: Params$Resource$Projects$Locations$Servicelbpolicies$Patch,
7502
8134
  options?: MethodOptions
7503
- ): GaxiosPromise<Schema$ListServiceLbPoliciesResponse>;
7504
- list(
7505
- params: Params$Resource$Projects$Locations$Servicelbpolicies$List,
7506
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
7507
- callback: BodyResponseCallback<Readable>
7508
- ): void;
7509
- list(
7510
- params: Params$Resource$Projects$Locations$Servicelbpolicies$List,
7511
- options:
7512
- | MethodOptions
7513
- | BodyResponseCallback<Schema$ListServiceLbPoliciesResponse>,
7514
- callback: BodyResponseCallback<Schema$ListServiceLbPoliciesResponse>
7515
- ): void;
7516
- list(
7517
- params: Params$Resource$Projects$Locations$Servicelbpolicies$List,
7518
- callback: BodyResponseCallback<Schema$ListServiceLbPoliciesResponse>
7519
- ): void;
7520
- list(
7521
- callback: BodyResponseCallback<Schema$ListServiceLbPoliciesResponse>
7522
- ): void;
7523
- list(
7524
- paramsOrCallback?:
7525
- | Params$Resource$Projects$Locations$Servicelbpolicies$List
7526
- | BodyResponseCallback<Schema$ListServiceLbPoliciesResponse>
7527
- | BodyResponseCallback<Readable>,
7528
- optionsOrCallback?:
7529
- | MethodOptions
7530
- | StreamMethodOptions
7531
- | BodyResponseCallback<Schema$ListServiceLbPoliciesResponse>
7532
- | BodyResponseCallback<Readable>,
7533
- callback?:
7534
- | BodyResponseCallback<Schema$ListServiceLbPoliciesResponse>
7535
- | BodyResponseCallback<Readable>
7536
- ):
7537
- | void
7538
- | GaxiosPromise<Schema$ListServiceLbPoliciesResponse>
7539
- | GaxiosPromise<Readable> {
7540
- let params = (paramsOrCallback ||
7541
- {}) as Params$Resource$Projects$Locations$Servicelbpolicies$List;
7542
- let options = (optionsOrCallback || {}) as MethodOptions;
7543
-
7544
- if (typeof paramsOrCallback === 'function') {
7545
- callback = paramsOrCallback;
7546
- params =
7547
- {} as Params$Resource$Projects$Locations$Servicelbpolicies$List;
7548
- options = {};
7549
- }
7550
-
7551
- if (typeof optionsOrCallback === 'function') {
7552
- callback = optionsOrCallback;
7553
- options = {};
7554
- }
7555
-
7556
- const rootUrl =
7557
- options.rootUrl || 'https://networkservices.googleapis.com/';
7558
- const parameters = {
7559
- options: Object.assign(
7560
- {
7561
- url: (rootUrl + '/v1beta1/{+parent}/serviceLbPolicies').replace(
7562
- /([^:]\/)\/+/g,
7563
- '$1'
7564
- ),
7565
- method: 'GET',
7566
- apiVersion: '',
7567
- },
7568
- options
7569
- ),
7570
- params,
7571
- requiredParams: ['parent'],
7572
- pathParams: ['parent'],
7573
- context: this.context,
7574
- };
7575
- if (callback) {
7576
- createAPIRequest<Schema$ListServiceLbPoliciesResponse>(
7577
- parameters,
7578
- callback as BodyResponseCallback<unknown>
7579
- );
7580
- } else {
7581
- return createAPIRequest<Schema$ListServiceLbPoliciesResponse>(
7582
- parameters
7583
- );
7584
- }
7585
- }
7586
-
7587
- /**
7588
- * Updates the parameters of a single ServiceLbPolicy.
7589
- *
7590
- * @param params - Parameters for request
7591
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7592
- * @param callback - Optional callback that handles the response.
7593
- * @returns A promise if used with async/await, or void if used with a callback.
7594
- */
7595
- patch(
7596
- params: Params$Resource$Projects$Locations$Servicelbpolicies$Patch,
7597
- options: StreamMethodOptions
7598
- ): GaxiosPromise<Readable>;
7599
- patch(
7600
- params?: Params$Resource$Projects$Locations$Servicelbpolicies$Patch,
7601
- options?: MethodOptions
7602
- ): GaxiosPromise<Schema$Operation>;
7603
- patch(
7604
- params: Params$Resource$Projects$Locations$Servicelbpolicies$Patch,
8135
+ ): GaxiosPromise<Schema$Operation>;
8136
+ patch(
8137
+ params: Params$Resource$Projects$Locations$Servicelbpolicies$Patch,
7605
8138
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
7606
8139
  callback: BodyResponseCallback<Readable>
7607
8140
  ): void;
@@ -7670,193 +8203,6 @@ export namespace networkservices_v1beta1 {
7670
8203
  return createAPIRequest<Schema$Operation>(parameters);
7671
8204
  }
7672
8205
  }
7673
-
7674
- /**
7675
- * Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
7676
- *
7677
- * @param params - Parameters for request
7678
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7679
- * @param callback - Optional callback that handles the response.
7680
- * @returns A promise if used with async/await, or void if used with a callback.
7681
- */
7682
- setIamPolicy(
7683
- params: Params$Resource$Projects$Locations$Servicelbpolicies$Setiampolicy,
7684
- options: StreamMethodOptions
7685
- ): GaxiosPromise<Readable>;
7686
- setIamPolicy(
7687
- params?: Params$Resource$Projects$Locations$Servicelbpolicies$Setiampolicy,
7688
- options?: MethodOptions
7689
- ): GaxiosPromise<Schema$Policy>;
7690
- setIamPolicy(
7691
- params: Params$Resource$Projects$Locations$Servicelbpolicies$Setiampolicy,
7692
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
7693
- callback: BodyResponseCallback<Readable>
7694
- ): void;
7695
- setIamPolicy(
7696
- params: Params$Resource$Projects$Locations$Servicelbpolicies$Setiampolicy,
7697
- options: MethodOptions | BodyResponseCallback<Schema$Policy>,
7698
- callback: BodyResponseCallback<Schema$Policy>
7699
- ): void;
7700
- setIamPolicy(
7701
- params: Params$Resource$Projects$Locations$Servicelbpolicies$Setiampolicy,
7702
- callback: BodyResponseCallback<Schema$Policy>
7703
- ): void;
7704
- setIamPolicy(callback: BodyResponseCallback<Schema$Policy>): void;
7705
- setIamPolicy(
7706
- paramsOrCallback?:
7707
- | Params$Resource$Projects$Locations$Servicelbpolicies$Setiampolicy
7708
- | BodyResponseCallback<Schema$Policy>
7709
- | BodyResponseCallback<Readable>,
7710
- optionsOrCallback?:
7711
- | MethodOptions
7712
- | StreamMethodOptions
7713
- | BodyResponseCallback<Schema$Policy>
7714
- | BodyResponseCallback<Readable>,
7715
- callback?:
7716
- | BodyResponseCallback<Schema$Policy>
7717
- | BodyResponseCallback<Readable>
7718
- ): void | GaxiosPromise<Schema$Policy> | GaxiosPromise<Readable> {
7719
- let params = (paramsOrCallback ||
7720
- {}) as Params$Resource$Projects$Locations$Servicelbpolicies$Setiampolicy;
7721
- let options = (optionsOrCallback || {}) as MethodOptions;
7722
-
7723
- if (typeof paramsOrCallback === 'function') {
7724
- callback = paramsOrCallback;
7725
- params =
7726
- {} as Params$Resource$Projects$Locations$Servicelbpolicies$Setiampolicy;
7727
- options = {};
7728
- }
7729
-
7730
- if (typeof optionsOrCallback === 'function') {
7731
- callback = optionsOrCallback;
7732
- options = {};
7733
- }
7734
-
7735
- const rootUrl =
7736
- options.rootUrl || 'https://networkservices.googleapis.com/';
7737
- const parameters = {
7738
- options: Object.assign(
7739
- {
7740
- url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(
7741
- /([^:]\/)\/+/g,
7742
- '$1'
7743
- ),
7744
- method: 'POST',
7745
- apiVersion: '',
7746
- },
7747
- options
7748
- ),
7749
- params,
7750
- requiredParams: ['resource'],
7751
- pathParams: ['resource'],
7752
- context: this.context,
7753
- };
7754
- if (callback) {
7755
- createAPIRequest<Schema$Policy>(
7756
- parameters,
7757
- callback as BodyResponseCallback<unknown>
7758
- );
7759
- } else {
7760
- return createAPIRequest<Schema$Policy>(parameters);
7761
- }
7762
- }
7763
-
7764
- /**
7765
- * Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
7766
- *
7767
- * @param params - Parameters for request
7768
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7769
- * @param callback - Optional callback that handles the response.
7770
- * @returns A promise if used with async/await, or void if used with a callback.
7771
- */
7772
- testIamPermissions(
7773
- params: Params$Resource$Projects$Locations$Servicelbpolicies$Testiampermissions,
7774
- options: StreamMethodOptions
7775
- ): GaxiosPromise<Readable>;
7776
- testIamPermissions(
7777
- params?: Params$Resource$Projects$Locations$Servicelbpolicies$Testiampermissions,
7778
- options?: MethodOptions
7779
- ): GaxiosPromise<Schema$TestIamPermissionsResponse>;
7780
- testIamPermissions(
7781
- params: Params$Resource$Projects$Locations$Servicelbpolicies$Testiampermissions,
7782
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
7783
- callback: BodyResponseCallback<Readable>
7784
- ): void;
7785
- testIamPermissions(
7786
- params: Params$Resource$Projects$Locations$Servicelbpolicies$Testiampermissions,
7787
- options:
7788
- | MethodOptions
7789
- | BodyResponseCallback<Schema$TestIamPermissionsResponse>,
7790
- callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>
7791
- ): void;
7792
- testIamPermissions(
7793
- params: Params$Resource$Projects$Locations$Servicelbpolicies$Testiampermissions,
7794
- callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>
7795
- ): void;
7796
- testIamPermissions(
7797
- callback: BodyResponseCallback<Schema$TestIamPermissionsResponse>
7798
- ): void;
7799
- testIamPermissions(
7800
- paramsOrCallback?:
7801
- | Params$Resource$Projects$Locations$Servicelbpolicies$Testiampermissions
7802
- | BodyResponseCallback<Schema$TestIamPermissionsResponse>
7803
- | BodyResponseCallback<Readable>,
7804
- optionsOrCallback?:
7805
- | MethodOptions
7806
- | StreamMethodOptions
7807
- | BodyResponseCallback<Schema$TestIamPermissionsResponse>
7808
- | BodyResponseCallback<Readable>,
7809
- callback?:
7810
- | BodyResponseCallback<Schema$TestIamPermissionsResponse>
7811
- | BodyResponseCallback<Readable>
7812
- ):
7813
- | void
7814
- | GaxiosPromise<Schema$TestIamPermissionsResponse>
7815
- | GaxiosPromise<Readable> {
7816
- let params = (paramsOrCallback ||
7817
- {}) as Params$Resource$Projects$Locations$Servicelbpolicies$Testiampermissions;
7818
- let options = (optionsOrCallback || {}) as MethodOptions;
7819
-
7820
- if (typeof paramsOrCallback === 'function') {
7821
- callback = paramsOrCallback;
7822
- params =
7823
- {} as Params$Resource$Projects$Locations$Servicelbpolicies$Testiampermissions;
7824
- options = {};
7825
- }
7826
-
7827
- if (typeof optionsOrCallback === 'function') {
7828
- callback = optionsOrCallback;
7829
- options = {};
7830
- }
7831
-
7832
- const rootUrl =
7833
- options.rootUrl || 'https://networkservices.googleapis.com/';
7834
- const parameters = {
7835
- options: Object.assign(
7836
- {
7837
- url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(
7838
- /([^:]\/)\/+/g,
7839
- '$1'
7840
- ),
7841
- method: 'POST',
7842
- apiVersion: '',
7843
- },
7844
- options
7845
- ),
7846
- params,
7847
- requiredParams: ['resource'],
7848
- pathParams: ['resource'],
7849
- context: this.context,
7850
- };
7851
- if (callback) {
7852
- createAPIRequest<Schema$TestIamPermissionsResponse>(
7853
- parameters,
7854
- callback as BodyResponseCallback<unknown>
7855
- );
7856
- } else {
7857
- return createAPIRequest<Schema$TestIamPermissionsResponse>(parameters);
7858
- }
7859
- }
7860
8206
  }
7861
8207
 
7862
8208
  export interface Params$Resource$Projects$Locations$Servicelbpolicies$Create
@@ -7889,17 +8235,6 @@ export namespace networkservices_v1beta1 {
7889
8235
  */
7890
8236
  name?: string;
7891
8237
  }
7892
- export interface Params$Resource$Projects$Locations$Servicelbpolicies$Getiampolicy
7893
- extends StandardParameters {
7894
- /**
7895
- * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7896
- */
7897
- 'options.requestedPolicyVersion'?: number;
7898
- /**
7899
- * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
7900
- */
7901
- resource?: string;
7902
- }
7903
8238
  export interface Params$Resource$Projects$Locations$Servicelbpolicies$List
7904
8239
  extends StandardParameters {
7905
8240
  /**
@@ -7918,7 +8253,7 @@ export namespace networkservices_v1beta1 {
7918
8253
  export interface Params$Resource$Projects$Locations$Servicelbpolicies$Patch
7919
8254
  extends StandardParameters {
7920
8255
  /**
7921
- * Required. Name of the ServiceLbPolicy resource. It matches pattern `projects/{project\}/locations/{location\}/serviceLbPolicies/{service_lb_policy_name\}`.
8256
+ * Identifier. Name of the ServiceLbPolicy resource. It matches pattern `projects/{project\}/locations/{location\}/serviceLbPolicies/{service_lb_policy_name\}`.
7922
8257
  */
7923
8258
  name?: string;
7924
8259
  /**
@@ -7931,30 +8266,6 @@ export namespace networkservices_v1beta1 {
7931
8266
  */
7932
8267
  requestBody?: Schema$ServiceLbPolicy;
7933
8268
  }
7934
- export interface Params$Resource$Projects$Locations$Servicelbpolicies$Setiampolicy
7935
- extends StandardParameters {
7936
- /**
7937
- * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
7938
- */
7939
- resource?: string;
7940
-
7941
- /**
7942
- * Request body metadata
7943
- */
7944
- requestBody?: Schema$SetIamPolicyRequest;
7945
- }
7946
- export interface Params$Resource$Projects$Locations$Servicelbpolicies$Testiampermissions
7947
- extends StandardParameters {
7948
- /**
7949
- * REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
7950
- */
7951
- resource?: string;
7952
-
7953
- /**
7954
- * Request body metadata
7955
- */
7956
- requestBody?: Schema$TestIamPermissionsRequest;
7957
- }
7958
8269
 
7959
8270
  export class Resource$Projects$Locations$Tcproutes {
7960
8271
  context: APIRequestContext;
@@ -8422,6 +8733,10 @@ export namespace networkservices_v1beta1 {
8422
8733
  }
8423
8734
  export interface Params$Resource$Projects$Locations$Tcproutes$Delete
8424
8735
  extends StandardParameters {
8736
+ /**
8737
+ * Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
8738
+ */
8739
+ etag?: string;
8425
8740
  /**
8426
8741
  * Required. A name of the TcpRoute to delete. Must be in the format `projects/x/locations/global/tcpRoutes/x`.
8427
8742
  */
@@ -8932,6 +9247,10 @@ export namespace networkservices_v1beta1 {
8932
9247
  }
8933
9248
  export interface Params$Resource$Projects$Locations$Tlsroutes$Delete
8934
9249
  extends StandardParameters {
9250
+ /**
9251
+ * Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
9252
+ */
9253
+ etag?: string;
8935
9254
  /**
8936
9255
  * Required. A name of the TlsRoute to delete. Must be in the format `projects/x/locations/global/tlsRoutes/x`.
8937
9256
  */
@@ -8975,4 +9294,941 @@ export namespace networkservices_v1beta1 {
8975
9294
  */
8976
9295
  requestBody?: Schema$TlsRoute;
8977
9296
  }
9297
+
9298
+ export class Resource$Projects$Locations$Wasmplugins {
9299
+ context: APIRequestContext;
9300
+ versions: Resource$Projects$Locations$Wasmplugins$Versions;
9301
+ constructor(context: APIRequestContext) {
9302
+ this.context = context;
9303
+ this.versions = new Resource$Projects$Locations$Wasmplugins$Versions(
9304
+ this.context
9305
+ );
9306
+ }
9307
+
9308
+ /**
9309
+ * Creates a new `WasmPlugin` resource in a given project and location.
9310
+ *
9311
+ * @param params - Parameters for request
9312
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9313
+ * @param callback - Optional callback that handles the response.
9314
+ * @returns A promise if used with async/await, or void if used with a callback.
9315
+ */
9316
+ create(
9317
+ params: Params$Resource$Projects$Locations$Wasmplugins$Create,
9318
+ options: StreamMethodOptions
9319
+ ): GaxiosPromise<Readable>;
9320
+ create(
9321
+ params?: Params$Resource$Projects$Locations$Wasmplugins$Create,
9322
+ options?: MethodOptions
9323
+ ): GaxiosPromise<Schema$Operation>;
9324
+ create(
9325
+ params: Params$Resource$Projects$Locations$Wasmplugins$Create,
9326
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9327
+ callback: BodyResponseCallback<Readable>
9328
+ ): void;
9329
+ create(
9330
+ params: Params$Resource$Projects$Locations$Wasmplugins$Create,
9331
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
9332
+ callback: BodyResponseCallback<Schema$Operation>
9333
+ ): void;
9334
+ create(
9335
+ params: Params$Resource$Projects$Locations$Wasmplugins$Create,
9336
+ callback: BodyResponseCallback<Schema$Operation>
9337
+ ): void;
9338
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
9339
+ create(
9340
+ paramsOrCallback?:
9341
+ | Params$Resource$Projects$Locations$Wasmplugins$Create
9342
+ | BodyResponseCallback<Schema$Operation>
9343
+ | BodyResponseCallback<Readable>,
9344
+ optionsOrCallback?:
9345
+ | MethodOptions
9346
+ | StreamMethodOptions
9347
+ | BodyResponseCallback<Schema$Operation>
9348
+ | BodyResponseCallback<Readable>,
9349
+ callback?:
9350
+ | BodyResponseCallback<Schema$Operation>
9351
+ | BodyResponseCallback<Readable>
9352
+ ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
9353
+ let params = (paramsOrCallback ||
9354
+ {}) as Params$Resource$Projects$Locations$Wasmplugins$Create;
9355
+ let options = (optionsOrCallback || {}) as MethodOptions;
9356
+
9357
+ if (typeof paramsOrCallback === 'function') {
9358
+ callback = paramsOrCallback;
9359
+ params = {} as Params$Resource$Projects$Locations$Wasmplugins$Create;
9360
+ options = {};
9361
+ }
9362
+
9363
+ if (typeof optionsOrCallback === 'function') {
9364
+ callback = optionsOrCallback;
9365
+ options = {};
9366
+ }
9367
+
9368
+ const rootUrl =
9369
+ options.rootUrl || 'https://networkservices.googleapis.com/';
9370
+ const parameters = {
9371
+ options: Object.assign(
9372
+ {
9373
+ url: (rootUrl + '/v1beta1/{+parent}/wasmPlugins').replace(
9374
+ /([^:]\/)\/+/g,
9375
+ '$1'
9376
+ ),
9377
+ method: 'POST',
9378
+ apiVersion: '',
9379
+ },
9380
+ options
9381
+ ),
9382
+ params,
9383
+ requiredParams: ['parent'],
9384
+ pathParams: ['parent'],
9385
+ context: this.context,
9386
+ };
9387
+ if (callback) {
9388
+ createAPIRequest<Schema$Operation>(
9389
+ parameters,
9390
+ callback as BodyResponseCallback<unknown>
9391
+ );
9392
+ } else {
9393
+ return createAPIRequest<Schema$Operation>(parameters);
9394
+ }
9395
+ }
9396
+
9397
+ /**
9398
+ * Deletes the specified `WasmPlugin` resource.
9399
+ *
9400
+ * @param params - Parameters for request
9401
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9402
+ * @param callback - Optional callback that handles the response.
9403
+ * @returns A promise if used with async/await, or void if used with a callback.
9404
+ */
9405
+ delete(
9406
+ params: Params$Resource$Projects$Locations$Wasmplugins$Delete,
9407
+ options: StreamMethodOptions
9408
+ ): GaxiosPromise<Readable>;
9409
+ delete(
9410
+ params?: Params$Resource$Projects$Locations$Wasmplugins$Delete,
9411
+ options?: MethodOptions
9412
+ ): GaxiosPromise<Schema$Operation>;
9413
+ delete(
9414
+ params: Params$Resource$Projects$Locations$Wasmplugins$Delete,
9415
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9416
+ callback: BodyResponseCallback<Readable>
9417
+ ): void;
9418
+ delete(
9419
+ params: Params$Resource$Projects$Locations$Wasmplugins$Delete,
9420
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
9421
+ callback: BodyResponseCallback<Schema$Operation>
9422
+ ): void;
9423
+ delete(
9424
+ params: Params$Resource$Projects$Locations$Wasmplugins$Delete,
9425
+ callback: BodyResponseCallback<Schema$Operation>
9426
+ ): void;
9427
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
9428
+ delete(
9429
+ paramsOrCallback?:
9430
+ | Params$Resource$Projects$Locations$Wasmplugins$Delete
9431
+ | BodyResponseCallback<Schema$Operation>
9432
+ | BodyResponseCallback<Readable>,
9433
+ optionsOrCallback?:
9434
+ | MethodOptions
9435
+ | StreamMethodOptions
9436
+ | BodyResponseCallback<Schema$Operation>
9437
+ | BodyResponseCallback<Readable>,
9438
+ callback?:
9439
+ | BodyResponseCallback<Schema$Operation>
9440
+ | BodyResponseCallback<Readable>
9441
+ ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
9442
+ let params = (paramsOrCallback ||
9443
+ {}) as Params$Resource$Projects$Locations$Wasmplugins$Delete;
9444
+ let options = (optionsOrCallback || {}) as MethodOptions;
9445
+
9446
+ if (typeof paramsOrCallback === 'function') {
9447
+ callback = paramsOrCallback;
9448
+ params = {} as Params$Resource$Projects$Locations$Wasmplugins$Delete;
9449
+ options = {};
9450
+ }
9451
+
9452
+ if (typeof optionsOrCallback === 'function') {
9453
+ callback = optionsOrCallback;
9454
+ options = {};
9455
+ }
9456
+
9457
+ const rootUrl =
9458
+ options.rootUrl || 'https://networkservices.googleapis.com/';
9459
+ const parameters = {
9460
+ options: Object.assign(
9461
+ {
9462
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
9463
+ method: 'DELETE',
9464
+ apiVersion: '',
9465
+ },
9466
+ options
9467
+ ),
9468
+ params,
9469
+ requiredParams: ['name'],
9470
+ pathParams: ['name'],
9471
+ context: this.context,
9472
+ };
9473
+ if (callback) {
9474
+ createAPIRequest<Schema$Operation>(
9475
+ parameters,
9476
+ callback as BodyResponseCallback<unknown>
9477
+ );
9478
+ } else {
9479
+ return createAPIRequest<Schema$Operation>(parameters);
9480
+ }
9481
+ }
9482
+
9483
+ /**
9484
+ * Gets details of the specified `WasmPlugin` resource.
9485
+ *
9486
+ * @param params - Parameters for request
9487
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9488
+ * @param callback - Optional callback that handles the response.
9489
+ * @returns A promise if used with async/await, or void if used with a callback.
9490
+ */
9491
+ get(
9492
+ params: Params$Resource$Projects$Locations$Wasmplugins$Get,
9493
+ options: StreamMethodOptions
9494
+ ): GaxiosPromise<Readable>;
9495
+ get(
9496
+ params?: Params$Resource$Projects$Locations$Wasmplugins$Get,
9497
+ options?: MethodOptions
9498
+ ): GaxiosPromise<Schema$WasmPlugin>;
9499
+ get(
9500
+ params: Params$Resource$Projects$Locations$Wasmplugins$Get,
9501
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9502
+ callback: BodyResponseCallback<Readable>
9503
+ ): void;
9504
+ get(
9505
+ params: Params$Resource$Projects$Locations$Wasmplugins$Get,
9506
+ options: MethodOptions | BodyResponseCallback<Schema$WasmPlugin>,
9507
+ callback: BodyResponseCallback<Schema$WasmPlugin>
9508
+ ): void;
9509
+ get(
9510
+ params: Params$Resource$Projects$Locations$Wasmplugins$Get,
9511
+ callback: BodyResponseCallback<Schema$WasmPlugin>
9512
+ ): void;
9513
+ get(callback: BodyResponseCallback<Schema$WasmPlugin>): void;
9514
+ get(
9515
+ paramsOrCallback?:
9516
+ | Params$Resource$Projects$Locations$Wasmplugins$Get
9517
+ | BodyResponseCallback<Schema$WasmPlugin>
9518
+ | BodyResponseCallback<Readable>,
9519
+ optionsOrCallback?:
9520
+ | MethodOptions
9521
+ | StreamMethodOptions
9522
+ | BodyResponseCallback<Schema$WasmPlugin>
9523
+ | BodyResponseCallback<Readable>,
9524
+ callback?:
9525
+ | BodyResponseCallback<Schema$WasmPlugin>
9526
+ | BodyResponseCallback<Readable>
9527
+ ): void | GaxiosPromise<Schema$WasmPlugin> | GaxiosPromise<Readable> {
9528
+ let params = (paramsOrCallback ||
9529
+ {}) as Params$Resource$Projects$Locations$Wasmplugins$Get;
9530
+ let options = (optionsOrCallback || {}) as MethodOptions;
9531
+
9532
+ if (typeof paramsOrCallback === 'function') {
9533
+ callback = paramsOrCallback;
9534
+ params = {} as Params$Resource$Projects$Locations$Wasmplugins$Get;
9535
+ options = {};
9536
+ }
9537
+
9538
+ if (typeof optionsOrCallback === 'function') {
9539
+ callback = optionsOrCallback;
9540
+ options = {};
9541
+ }
9542
+
9543
+ const rootUrl =
9544
+ options.rootUrl || 'https://networkservices.googleapis.com/';
9545
+ const parameters = {
9546
+ options: Object.assign(
9547
+ {
9548
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
9549
+ method: 'GET',
9550
+ apiVersion: '',
9551
+ },
9552
+ options
9553
+ ),
9554
+ params,
9555
+ requiredParams: ['name'],
9556
+ pathParams: ['name'],
9557
+ context: this.context,
9558
+ };
9559
+ if (callback) {
9560
+ createAPIRequest<Schema$WasmPlugin>(
9561
+ parameters,
9562
+ callback as BodyResponseCallback<unknown>
9563
+ );
9564
+ } else {
9565
+ return createAPIRequest<Schema$WasmPlugin>(parameters);
9566
+ }
9567
+ }
9568
+
9569
+ /**
9570
+ * Lists `WasmPlugin` resources in a given project and location.
9571
+ *
9572
+ * @param params - Parameters for request
9573
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9574
+ * @param callback - Optional callback that handles the response.
9575
+ * @returns A promise if used with async/await, or void if used with a callback.
9576
+ */
9577
+ list(
9578
+ params: Params$Resource$Projects$Locations$Wasmplugins$List,
9579
+ options: StreamMethodOptions
9580
+ ): GaxiosPromise<Readable>;
9581
+ list(
9582
+ params?: Params$Resource$Projects$Locations$Wasmplugins$List,
9583
+ options?: MethodOptions
9584
+ ): GaxiosPromise<Schema$ListWasmPluginsResponse>;
9585
+ list(
9586
+ params: Params$Resource$Projects$Locations$Wasmplugins$List,
9587
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9588
+ callback: BodyResponseCallback<Readable>
9589
+ ): void;
9590
+ list(
9591
+ params: Params$Resource$Projects$Locations$Wasmplugins$List,
9592
+ options:
9593
+ | MethodOptions
9594
+ | BodyResponseCallback<Schema$ListWasmPluginsResponse>,
9595
+ callback: BodyResponseCallback<Schema$ListWasmPluginsResponse>
9596
+ ): void;
9597
+ list(
9598
+ params: Params$Resource$Projects$Locations$Wasmplugins$List,
9599
+ callback: BodyResponseCallback<Schema$ListWasmPluginsResponse>
9600
+ ): void;
9601
+ list(callback: BodyResponseCallback<Schema$ListWasmPluginsResponse>): void;
9602
+ list(
9603
+ paramsOrCallback?:
9604
+ | Params$Resource$Projects$Locations$Wasmplugins$List
9605
+ | BodyResponseCallback<Schema$ListWasmPluginsResponse>
9606
+ | BodyResponseCallback<Readable>,
9607
+ optionsOrCallback?:
9608
+ | MethodOptions
9609
+ | StreamMethodOptions
9610
+ | BodyResponseCallback<Schema$ListWasmPluginsResponse>
9611
+ | BodyResponseCallback<Readable>,
9612
+ callback?:
9613
+ | BodyResponseCallback<Schema$ListWasmPluginsResponse>
9614
+ | BodyResponseCallback<Readable>
9615
+ ):
9616
+ | void
9617
+ | GaxiosPromise<Schema$ListWasmPluginsResponse>
9618
+ | GaxiosPromise<Readable> {
9619
+ let params = (paramsOrCallback ||
9620
+ {}) as Params$Resource$Projects$Locations$Wasmplugins$List;
9621
+ let options = (optionsOrCallback || {}) as MethodOptions;
9622
+
9623
+ if (typeof paramsOrCallback === 'function') {
9624
+ callback = paramsOrCallback;
9625
+ params = {} as Params$Resource$Projects$Locations$Wasmplugins$List;
9626
+ options = {};
9627
+ }
9628
+
9629
+ if (typeof optionsOrCallback === 'function') {
9630
+ callback = optionsOrCallback;
9631
+ options = {};
9632
+ }
9633
+
9634
+ const rootUrl =
9635
+ options.rootUrl || 'https://networkservices.googleapis.com/';
9636
+ const parameters = {
9637
+ options: Object.assign(
9638
+ {
9639
+ url: (rootUrl + '/v1beta1/{+parent}/wasmPlugins').replace(
9640
+ /([^:]\/)\/+/g,
9641
+ '$1'
9642
+ ),
9643
+ method: 'GET',
9644
+ apiVersion: '',
9645
+ },
9646
+ options
9647
+ ),
9648
+ params,
9649
+ requiredParams: ['parent'],
9650
+ pathParams: ['parent'],
9651
+ context: this.context,
9652
+ };
9653
+ if (callback) {
9654
+ createAPIRequest<Schema$ListWasmPluginsResponse>(
9655
+ parameters,
9656
+ callback as BodyResponseCallback<unknown>
9657
+ );
9658
+ } else {
9659
+ return createAPIRequest<Schema$ListWasmPluginsResponse>(parameters);
9660
+ }
9661
+ }
9662
+
9663
+ /**
9664
+ * Updates the parameters of the specified `WasmPlugin` resource.
9665
+ *
9666
+ * @param params - Parameters for request
9667
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9668
+ * @param callback - Optional callback that handles the response.
9669
+ * @returns A promise if used with async/await, or void if used with a callback.
9670
+ */
9671
+ patch(
9672
+ params: Params$Resource$Projects$Locations$Wasmplugins$Patch,
9673
+ options: StreamMethodOptions
9674
+ ): GaxiosPromise<Readable>;
9675
+ patch(
9676
+ params?: Params$Resource$Projects$Locations$Wasmplugins$Patch,
9677
+ options?: MethodOptions
9678
+ ): GaxiosPromise<Schema$Operation>;
9679
+ patch(
9680
+ params: Params$Resource$Projects$Locations$Wasmplugins$Patch,
9681
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9682
+ callback: BodyResponseCallback<Readable>
9683
+ ): void;
9684
+ patch(
9685
+ params: Params$Resource$Projects$Locations$Wasmplugins$Patch,
9686
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
9687
+ callback: BodyResponseCallback<Schema$Operation>
9688
+ ): void;
9689
+ patch(
9690
+ params: Params$Resource$Projects$Locations$Wasmplugins$Patch,
9691
+ callback: BodyResponseCallback<Schema$Operation>
9692
+ ): void;
9693
+ patch(callback: BodyResponseCallback<Schema$Operation>): void;
9694
+ patch(
9695
+ paramsOrCallback?:
9696
+ | Params$Resource$Projects$Locations$Wasmplugins$Patch
9697
+ | BodyResponseCallback<Schema$Operation>
9698
+ | BodyResponseCallback<Readable>,
9699
+ optionsOrCallback?:
9700
+ | MethodOptions
9701
+ | StreamMethodOptions
9702
+ | BodyResponseCallback<Schema$Operation>
9703
+ | BodyResponseCallback<Readable>,
9704
+ callback?:
9705
+ | BodyResponseCallback<Schema$Operation>
9706
+ | BodyResponseCallback<Readable>
9707
+ ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
9708
+ let params = (paramsOrCallback ||
9709
+ {}) as Params$Resource$Projects$Locations$Wasmplugins$Patch;
9710
+ let options = (optionsOrCallback || {}) as MethodOptions;
9711
+
9712
+ if (typeof paramsOrCallback === 'function') {
9713
+ callback = paramsOrCallback;
9714
+ params = {} as Params$Resource$Projects$Locations$Wasmplugins$Patch;
9715
+ options = {};
9716
+ }
9717
+
9718
+ if (typeof optionsOrCallback === 'function') {
9719
+ callback = optionsOrCallback;
9720
+ options = {};
9721
+ }
9722
+
9723
+ const rootUrl =
9724
+ options.rootUrl || 'https://networkservices.googleapis.com/';
9725
+ const parameters = {
9726
+ options: Object.assign(
9727
+ {
9728
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
9729
+ method: 'PATCH',
9730
+ apiVersion: '',
9731
+ },
9732
+ options
9733
+ ),
9734
+ params,
9735
+ requiredParams: ['name'],
9736
+ pathParams: ['name'],
9737
+ context: this.context,
9738
+ };
9739
+ if (callback) {
9740
+ createAPIRequest<Schema$Operation>(
9741
+ parameters,
9742
+ callback as BodyResponseCallback<unknown>
9743
+ );
9744
+ } else {
9745
+ return createAPIRequest<Schema$Operation>(parameters);
9746
+ }
9747
+ }
9748
+ }
9749
+
9750
+ export interface Params$Resource$Projects$Locations$Wasmplugins$Create
9751
+ extends StandardParameters {
9752
+ /**
9753
+ * Required. The parent resource of the `WasmPlugin` resource. Must be in the format `projects/{project\}/locations/global`.
9754
+ */
9755
+ parent?: string;
9756
+ /**
9757
+ * Required. User-provided ID of the `WasmPlugin` resource to be created.
9758
+ */
9759
+ wasmPluginId?: string;
9760
+
9761
+ /**
9762
+ * Request body metadata
9763
+ */
9764
+ requestBody?: Schema$WasmPlugin;
9765
+ }
9766
+ export interface Params$Resource$Projects$Locations$Wasmplugins$Delete
9767
+ extends StandardParameters {
9768
+ /**
9769
+ * Required. A name of the `WasmPlugin` resource to delete. Must be in the format `projects/{project\}/locations/global/wasmPlugins/{wasm_plugin\}`.
9770
+ */
9771
+ name?: string;
9772
+ }
9773
+ export interface Params$Resource$Projects$Locations$Wasmplugins$Get
9774
+ extends StandardParameters {
9775
+ /**
9776
+ * Required. A name of the `WasmPlugin` resource to get. Must be in the format `projects/{project\}/locations/global/wasmPlugins/{wasm_plugin\}`.
9777
+ */
9778
+ name?: string;
9779
+ /**
9780
+ * Determines how much data must be returned in the response. See [AIP-157](https://google.aip.dev/157).
9781
+ */
9782
+ view?: string;
9783
+ }
9784
+ export interface Params$Resource$Projects$Locations$Wasmplugins$List
9785
+ extends StandardParameters {
9786
+ /**
9787
+ * Maximum number of `WasmPlugin` resources to return per call. If not specified, at most 50 `WasmPlugin` resources are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
9788
+ */
9789
+ pageSize?: number;
9790
+ /**
9791
+ * The value returned by the last `ListWasmPluginsResponse` call. Indicates that this is a continuation of a prior `ListWasmPlugins` call, and that the next page of data is to be returned.
9792
+ */
9793
+ pageToken?: string;
9794
+ /**
9795
+ * Required. The project and location from which the `WasmPlugin` resources are listed, specified in the following format: `projects/{project\}/locations/global`.
9796
+ */
9797
+ parent?: string;
9798
+ }
9799
+ export interface Params$Resource$Projects$Locations$Wasmplugins$Patch
9800
+ extends StandardParameters {
9801
+ /**
9802
+ * Identifier. Name of the `WasmPlugin` resource in the following format: `projects/{project\}/locations/{location\}/wasmPlugins/{wasm_plugin\}`.
9803
+ */
9804
+ name?: string;
9805
+ /**
9806
+ * Optional. Used to specify the fields to be overwritten in the `WasmPlugin` resource by the update. The fields specified in the `update_mask` field are relative to the resource, not the full request. An omitted `update_mask` field is treated as an implied `update_mask` field equivalent to all fields that are populated (that have a non-empty value). The `update_mask` field supports a special value `*`, which means that each field in the given `WasmPlugin` resource (including the empty ones) replaces the current value.
9807
+ */
9808
+ updateMask?: string;
9809
+
9810
+ /**
9811
+ * Request body metadata
9812
+ */
9813
+ requestBody?: Schema$WasmPlugin;
9814
+ }
9815
+
9816
+ export class Resource$Projects$Locations$Wasmplugins$Versions {
9817
+ context: APIRequestContext;
9818
+ constructor(context: APIRequestContext) {
9819
+ this.context = context;
9820
+ }
9821
+
9822
+ /**
9823
+ * Creates a new `WasmPluginVersion` resource in a given project and location.
9824
+ *
9825
+ * @param params - Parameters for request
9826
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9827
+ * @param callback - Optional callback that handles the response.
9828
+ * @returns A promise if used with async/await, or void if used with a callback.
9829
+ */
9830
+ create(
9831
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$Create,
9832
+ options: StreamMethodOptions
9833
+ ): GaxiosPromise<Readable>;
9834
+ create(
9835
+ params?: Params$Resource$Projects$Locations$Wasmplugins$Versions$Create,
9836
+ options?: MethodOptions
9837
+ ): GaxiosPromise<Schema$Operation>;
9838
+ create(
9839
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$Create,
9840
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9841
+ callback: BodyResponseCallback<Readable>
9842
+ ): void;
9843
+ create(
9844
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$Create,
9845
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
9846
+ callback: BodyResponseCallback<Schema$Operation>
9847
+ ): void;
9848
+ create(
9849
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$Create,
9850
+ callback: BodyResponseCallback<Schema$Operation>
9851
+ ): void;
9852
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
9853
+ create(
9854
+ paramsOrCallback?:
9855
+ | Params$Resource$Projects$Locations$Wasmplugins$Versions$Create
9856
+ | BodyResponseCallback<Schema$Operation>
9857
+ | BodyResponseCallback<Readable>,
9858
+ optionsOrCallback?:
9859
+ | MethodOptions
9860
+ | StreamMethodOptions
9861
+ | BodyResponseCallback<Schema$Operation>
9862
+ | BodyResponseCallback<Readable>,
9863
+ callback?:
9864
+ | BodyResponseCallback<Schema$Operation>
9865
+ | BodyResponseCallback<Readable>
9866
+ ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
9867
+ let params = (paramsOrCallback ||
9868
+ {}) as Params$Resource$Projects$Locations$Wasmplugins$Versions$Create;
9869
+ let options = (optionsOrCallback || {}) as MethodOptions;
9870
+
9871
+ if (typeof paramsOrCallback === 'function') {
9872
+ callback = paramsOrCallback;
9873
+ params =
9874
+ {} as Params$Resource$Projects$Locations$Wasmplugins$Versions$Create;
9875
+ options = {};
9876
+ }
9877
+
9878
+ if (typeof optionsOrCallback === 'function') {
9879
+ callback = optionsOrCallback;
9880
+ options = {};
9881
+ }
9882
+
9883
+ const rootUrl =
9884
+ options.rootUrl || 'https://networkservices.googleapis.com/';
9885
+ const parameters = {
9886
+ options: Object.assign(
9887
+ {
9888
+ url: (rootUrl + '/v1beta1/{+parent}/versions').replace(
9889
+ /([^:]\/)\/+/g,
9890
+ '$1'
9891
+ ),
9892
+ method: 'POST',
9893
+ apiVersion: '',
9894
+ },
9895
+ options
9896
+ ),
9897
+ params,
9898
+ requiredParams: ['parent'],
9899
+ pathParams: ['parent'],
9900
+ context: this.context,
9901
+ };
9902
+ if (callback) {
9903
+ createAPIRequest<Schema$Operation>(
9904
+ parameters,
9905
+ callback as BodyResponseCallback<unknown>
9906
+ );
9907
+ } else {
9908
+ return createAPIRequest<Schema$Operation>(parameters);
9909
+ }
9910
+ }
9911
+
9912
+ /**
9913
+ * Deletes the specified `WasmPluginVersion` resource.
9914
+ *
9915
+ * @param params - Parameters for request
9916
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9917
+ * @param callback - Optional callback that handles the response.
9918
+ * @returns A promise if used with async/await, or void if used with a callback.
9919
+ */
9920
+ delete(
9921
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$Delete,
9922
+ options: StreamMethodOptions
9923
+ ): GaxiosPromise<Readable>;
9924
+ delete(
9925
+ params?: Params$Resource$Projects$Locations$Wasmplugins$Versions$Delete,
9926
+ options?: MethodOptions
9927
+ ): GaxiosPromise<Schema$Operation>;
9928
+ delete(
9929
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$Delete,
9930
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9931
+ callback: BodyResponseCallback<Readable>
9932
+ ): void;
9933
+ delete(
9934
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$Delete,
9935
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
9936
+ callback: BodyResponseCallback<Schema$Operation>
9937
+ ): void;
9938
+ delete(
9939
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$Delete,
9940
+ callback: BodyResponseCallback<Schema$Operation>
9941
+ ): void;
9942
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
9943
+ delete(
9944
+ paramsOrCallback?:
9945
+ | Params$Resource$Projects$Locations$Wasmplugins$Versions$Delete
9946
+ | BodyResponseCallback<Schema$Operation>
9947
+ | BodyResponseCallback<Readable>,
9948
+ optionsOrCallback?:
9949
+ | MethodOptions
9950
+ | StreamMethodOptions
9951
+ | BodyResponseCallback<Schema$Operation>
9952
+ | BodyResponseCallback<Readable>,
9953
+ callback?:
9954
+ | BodyResponseCallback<Schema$Operation>
9955
+ | BodyResponseCallback<Readable>
9956
+ ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
9957
+ let params = (paramsOrCallback ||
9958
+ {}) as Params$Resource$Projects$Locations$Wasmplugins$Versions$Delete;
9959
+ let options = (optionsOrCallback || {}) as MethodOptions;
9960
+
9961
+ if (typeof paramsOrCallback === 'function') {
9962
+ callback = paramsOrCallback;
9963
+ params =
9964
+ {} as Params$Resource$Projects$Locations$Wasmplugins$Versions$Delete;
9965
+ options = {};
9966
+ }
9967
+
9968
+ if (typeof optionsOrCallback === 'function') {
9969
+ callback = optionsOrCallback;
9970
+ options = {};
9971
+ }
9972
+
9973
+ const rootUrl =
9974
+ options.rootUrl || 'https://networkservices.googleapis.com/';
9975
+ const parameters = {
9976
+ options: Object.assign(
9977
+ {
9978
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
9979
+ method: 'DELETE',
9980
+ apiVersion: '',
9981
+ },
9982
+ options
9983
+ ),
9984
+ params,
9985
+ requiredParams: ['name'],
9986
+ pathParams: ['name'],
9987
+ context: this.context,
9988
+ };
9989
+ if (callback) {
9990
+ createAPIRequest<Schema$Operation>(
9991
+ parameters,
9992
+ callback as BodyResponseCallback<unknown>
9993
+ );
9994
+ } else {
9995
+ return createAPIRequest<Schema$Operation>(parameters);
9996
+ }
9997
+ }
9998
+
9999
+ /**
10000
+ * Gets details of the specified `WasmPluginVersion` resource.
10001
+ *
10002
+ * @param params - Parameters for request
10003
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
10004
+ * @param callback - Optional callback that handles the response.
10005
+ * @returns A promise if used with async/await, or void if used with a callback.
10006
+ */
10007
+ get(
10008
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$Get,
10009
+ options: StreamMethodOptions
10010
+ ): GaxiosPromise<Readable>;
10011
+ get(
10012
+ params?: Params$Resource$Projects$Locations$Wasmplugins$Versions$Get,
10013
+ options?: MethodOptions
10014
+ ): GaxiosPromise<Schema$WasmPluginVersion>;
10015
+ get(
10016
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$Get,
10017
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
10018
+ callback: BodyResponseCallback<Readable>
10019
+ ): void;
10020
+ get(
10021
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$Get,
10022
+ options: MethodOptions | BodyResponseCallback<Schema$WasmPluginVersion>,
10023
+ callback: BodyResponseCallback<Schema$WasmPluginVersion>
10024
+ ): void;
10025
+ get(
10026
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$Get,
10027
+ callback: BodyResponseCallback<Schema$WasmPluginVersion>
10028
+ ): void;
10029
+ get(callback: BodyResponseCallback<Schema$WasmPluginVersion>): void;
10030
+ get(
10031
+ paramsOrCallback?:
10032
+ | Params$Resource$Projects$Locations$Wasmplugins$Versions$Get
10033
+ | BodyResponseCallback<Schema$WasmPluginVersion>
10034
+ | BodyResponseCallback<Readable>,
10035
+ optionsOrCallback?:
10036
+ | MethodOptions
10037
+ | StreamMethodOptions
10038
+ | BodyResponseCallback<Schema$WasmPluginVersion>
10039
+ | BodyResponseCallback<Readable>,
10040
+ callback?:
10041
+ | BodyResponseCallback<Schema$WasmPluginVersion>
10042
+ | BodyResponseCallback<Readable>
10043
+ ):
10044
+ | void
10045
+ | GaxiosPromise<Schema$WasmPluginVersion>
10046
+ | GaxiosPromise<Readable> {
10047
+ let params = (paramsOrCallback ||
10048
+ {}) as Params$Resource$Projects$Locations$Wasmplugins$Versions$Get;
10049
+ let options = (optionsOrCallback || {}) as MethodOptions;
10050
+
10051
+ if (typeof paramsOrCallback === 'function') {
10052
+ callback = paramsOrCallback;
10053
+ params =
10054
+ {} as Params$Resource$Projects$Locations$Wasmplugins$Versions$Get;
10055
+ options = {};
10056
+ }
10057
+
10058
+ if (typeof optionsOrCallback === 'function') {
10059
+ callback = optionsOrCallback;
10060
+ options = {};
10061
+ }
10062
+
10063
+ const rootUrl =
10064
+ options.rootUrl || 'https://networkservices.googleapis.com/';
10065
+ const parameters = {
10066
+ options: Object.assign(
10067
+ {
10068
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
10069
+ method: 'GET',
10070
+ apiVersion: '',
10071
+ },
10072
+ options
10073
+ ),
10074
+ params,
10075
+ requiredParams: ['name'],
10076
+ pathParams: ['name'],
10077
+ context: this.context,
10078
+ };
10079
+ if (callback) {
10080
+ createAPIRequest<Schema$WasmPluginVersion>(
10081
+ parameters,
10082
+ callback as BodyResponseCallback<unknown>
10083
+ );
10084
+ } else {
10085
+ return createAPIRequest<Schema$WasmPluginVersion>(parameters);
10086
+ }
10087
+ }
10088
+
10089
+ /**
10090
+ * Lists `WasmPluginVersion` resources in a given project and location.
10091
+ *
10092
+ * @param params - Parameters for request
10093
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
10094
+ * @param callback - Optional callback that handles the response.
10095
+ * @returns A promise if used with async/await, or void if used with a callback.
10096
+ */
10097
+ list(
10098
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$List,
10099
+ options: StreamMethodOptions
10100
+ ): GaxiosPromise<Readable>;
10101
+ list(
10102
+ params?: Params$Resource$Projects$Locations$Wasmplugins$Versions$List,
10103
+ options?: MethodOptions
10104
+ ): GaxiosPromise<Schema$ListWasmPluginVersionsResponse>;
10105
+ list(
10106
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$List,
10107
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
10108
+ callback: BodyResponseCallback<Readable>
10109
+ ): void;
10110
+ list(
10111
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$List,
10112
+ options:
10113
+ | MethodOptions
10114
+ | BodyResponseCallback<Schema$ListWasmPluginVersionsResponse>,
10115
+ callback: BodyResponseCallback<Schema$ListWasmPluginVersionsResponse>
10116
+ ): void;
10117
+ list(
10118
+ params: Params$Resource$Projects$Locations$Wasmplugins$Versions$List,
10119
+ callback: BodyResponseCallback<Schema$ListWasmPluginVersionsResponse>
10120
+ ): void;
10121
+ list(
10122
+ callback: BodyResponseCallback<Schema$ListWasmPluginVersionsResponse>
10123
+ ): void;
10124
+ list(
10125
+ paramsOrCallback?:
10126
+ | Params$Resource$Projects$Locations$Wasmplugins$Versions$List
10127
+ | BodyResponseCallback<Schema$ListWasmPluginVersionsResponse>
10128
+ | BodyResponseCallback<Readable>,
10129
+ optionsOrCallback?:
10130
+ | MethodOptions
10131
+ | StreamMethodOptions
10132
+ | BodyResponseCallback<Schema$ListWasmPluginVersionsResponse>
10133
+ | BodyResponseCallback<Readable>,
10134
+ callback?:
10135
+ | BodyResponseCallback<Schema$ListWasmPluginVersionsResponse>
10136
+ | BodyResponseCallback<Readable>
10137
+ ):
10138
+ | void
10139
+ | GaxiosPromise<Schema$ListWasmPluginVersionsResponse>
10140
+ | GaxiosPromise<Readable> {
10141
+ let params = (paramsOrCallback ||
10142
+ {}) as Params$Resource$Projects$Locations$Wasmplugins$Versions$List;
10143
+ let options = (optionsOrCallback || {}) as MethodOptions;
10144
+
10145
+ if (typeof paramsOrCallback === 'function') {
10146
+ callback = paramsOrCallback;
10147
+ params =
10148
+ {} as Params$Resource$Projects$Locations$Wasmplugins$Versions$List;
10149
+ options = {};
10150
+ }
10151
+
10152
+ if (typeof optionsOrCallback === 'function') {
10153
+ callback = optionsOrCallback;
10154
+ options = {};
10155
+ }
10156
+
10157
+ const rootUrl =
10158
+ options.rootUrl || 'https://networkservices.googleapis.com/';
10159
+ const parameters = {
10160
+ options: Object.assign(
10161
+ {
10162
+ url: (rootUrl + '/v1beta1/{+parent}/versions').replace(
10163
+ /([^:]\/)\/+/g,
10164
+ '$1'
10165
+ ),
10166
+ method: 'GET',
10167
+ apiVersion: '',
10168
+ },
10169
+ options
10170
+ ),
10171
+ params,
10172
+ requiredParams: ['parent'],
10173
+ pathParams: ['parent'],
10174
+ context: this.context,
10175
+ };
10176
+ if (callback) {
10177
+ createAPIRequest<Schema$ListWasmPluginVersionsResponse>(
10178
+ parameters,
10179
+ callback as BodyResponseCallback<unknown>
10180
+ );
10181
+ } else {
10182
+ return createAPIRequest<Schema$ListWasmPluginVersionsResponse>(
10183
+ parameters
10184
+ );
10185
+ }
10186
+ }
10187
+ }
10188
+
10189
+ export interface Params$Resource$Projects$Locations$Wasmplugins$Versions$Create
10190
+ extends StandardParameters {
10191
+ /**
10192
+ * Required. The parent resource of the `WasmPluginVersion` resource. Must be in the format `projects/{project\}/locations/global/wasmPlugins/{wasm_plugin\}`.
10193
+ */
10194
+ parent?: string;
10195
+ /**
10196
+ * Required. User-provided ID of the `WasmPluginVersion` resource to be created.
10197
+ */
10198
+ wasmPluginVersionId?: string;
10199
+
10200
+ /**
10201
+ * Request body metadata
10202
+ */
10203
+ requestBody?: Schema$WasmPluginVersion;
10204
+ }
10205
+ export interface Params$Resource$Projects$Locations$Wasmplugins$Versions$Delete
10206
+ extends StandardParameters {
10207
+ /**
10208
+ * Required. A name of the `WasmPluginVersion` resource to delete. Must be in the format `projects/{project\}/locations/global/wasmPlugins/{wasm_plugin\}/versions/{wasm_plugin_version\}`.
10209
+ */
10210
+ name?: string;
10211
+ }
10212
+ export interface Params$Resource$Projects$Locations$Wasmplugins$Versions$Get
10213
+ extends StandardParameters {
10214
+ /**
10215
+ * Required. A name of the `WasmPluginVersion` resource to get. Must be in the format `projects/{project\}/locations/global/wasmPlugins/{wasm_plugin\}/versions/{wasm_plugin_version\}`.
10216
+ */
10217
+ name?: string;
10218
+ }
10219
+ export interface Params$Resource$Projects$Locations$Wasmplugins$Versions$List
10220
+ extends StandardParameters {
10221
+ /**
10222
+ * Maximum number of `WasmPluginVersion` resources to return per call. If not specified, at most 50 `WasmPluginVersion` resources are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
10223
+ */
10224
+ pageSize?: number;
10225
+ /**
10226
+ * The value returned by the last `ListWasmPluginVersionsResponse` call. Indicates that this is a continuation of a prior `ListWasmPluginVersions` call, and that the next page of data is to be returned.
10227
+ */
10228
+ pageToken?: string;
10229
+ /**
10230
+ * Required. The `WasmPlugin` resource whose `WasmPluginVersion`s are listed, specified in the following format: `projects/{project\}/locations/global/wasmPlugins/{wasm_plugin\}`.
10231
+ */
10232
+ parent?: string;
10233
+ }
8978
10234
  }