@googleapis/networkservices 30.0.0 → 31.1.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/CHANGELOG.md +18 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +529 -6
- package/build/v1.js +172 -0
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +19 -8
- package/build/v1beta1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1087 -162
- package/v1beta1.ts +19 -8
package/v1.ts
CHANGED
|
@@ -371,19 +371,27 @@ export namespace networkservices_v1 {
|
|
|
371
371
|
*/
|
|
372
372
|
forwardHeaders?: string[] | null;
|
|
373
373
|
/**
|
|
374
|
-
* 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.
|
|
374
|
+
* 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. For `AuthzExtension` resources, the metadata is available under the namespace `com.google.authz_extension.`. For other types of extensions, 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 must not be set for plugin extensions. Setting it results in a validation error. You can set metadata at either the resource level or the extension level. The extension level metadata is recommended because you can pass a different set of metadata through each extension to the backend. This field is subject to following limitations: * The total size of the metadata must be less than 1KiB. * The total number of keys in the metadata must be less than 16. * The length of each key must be less than 64 characters. * The length of each value must be less than 1024 characters. * All values must be strings.
|
|
375
375
|
*/
|
|
376
376
|
metadata?: {[key: string]: any} | null;
|
|
377
377
|
/**
|
|
378
|
-
*
|
|
378
|
+
* Optional. 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. This field is required except for AuthzExtension.
|
|
379
379
|
*/
|
|
380
380
|
name?: string | null;
|
|
381
|
+
/**
|
|
382
|
+
* Optional. Configures the send mode for request body processing. The field can only be set if `supported_events` includes `REQUEST_BODY`. If `supported_events` includes `REQUEST_BODY`, but `request_body_send_mode` is unset, the default value `STREAMED` is used. When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events` must include both `REQUEST_BODY` and `REQUEST_TRAILERS`. This field can be set only for `LbTrafficExtension` and `LbRouteExtension` resources, and only when the `service` field of the extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode is supported for `LbRouteExtension` resources.
|
|
383
|
+
*/
|
|
384
|
+
requestBodySendMode?: string | null;
|
|
385
|
+
/**
|
|
386
|
+
* Optional. Configures the send mode for response processing. If unspecified, the default value `STREAMED` is used. The field can only be set if `supported_events` includes `RESPONSE_BODY`. If `supported_events` includes `RESPONSE_BODY`, but `response_body_send_mode` is unset, the default value `STREAMED` is used. When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events` must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`. This field can be set only for `LbTrafficExtension` resources, and only when the `service` field of the extension points to a `BackendService`.
|
|
387
|
+
*/
|
|
388
|
+
responseBodySendMode?: string | null;
|
|
381
389
|
/**
|
|
382
390
|
* 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`, the `LbRouteExtension`, and the `LbEdgeExtension` resources.
|
|
383
391
|
*/
|
|
384
392
|
service?: string | null;
|
|
385
393
|
/**
|
|
386
|
-
* Optional. A set of events during request or response processing for which this extension is called. For the `LbTrafficExtension` resource, this field is required. For the `LbRouteExtension` resource, this field is optional. If unspecified, `REQUEST_HEADERS` event is assumed as supported. For the `LbEdgeExtension` resource, this field is required and must only contain `REQUEST_HEADERS` event.
|
|
394
|
+
* Optional. A set of events during request or response processing for which this extension is called. For the `LbTrafficExtension` resource, this field is required. For the `LbRouteExtension` resource, this field is optional. If unspecified, `REQUEST_HEADERS` event is assumed as supported. For the `LbEdgeExtension` resource, this field is required and must only contain `REQUEST_HEADERS` event. For the `AuthzExtension` resource, this field is optional. `REQUEST_HEADERS` is the only supported event. If unspecified, `REQUEST_HEADERS` event is assumed as supported.
|
|
387
395
|
*/
|
|
388
396
|
supportedEvents?: string[] | null;
|
|
389
397
|
/**
|
|
@@ -1145,6 +1153,43 @@ export namespace networkservices_v1 {
|
|
|
1145
1153
|
*/
|
|
1146
1154
|
pathPrefixRewrite?: string | null;
|
|
1147
1155
|
}
|
|
1156
|
+
/**
|
|
1157
|
+
* `LbEdgeExtension` is a resource that lets the extension service influence the selection of backend services and Cloud CDN cache keys by modifying request headers.
|
|
1158
|
+
*/
|
|
1159
|
+
export interface Schema$LbEdgeExtension {
|
|
1160
|
+
/**
|
|
1161
|
+
* Output only. The timestamp when the resource was created.
|
|
1162
|
+
*/
|
|
1163
|
+
createTime?: string | null;
|
|
1164
|
+
/**
|
|
1165
|
+
* Optional. A human-readable description of the resource.
|
|
1166
|
+
*/
|
|
1167
|
+
description?: string | null;
|
|
1168
|
+
/**
|
|
1169
|
+
* Required. A set of ordered extension chains that contain the match conditions and extensions to execute. Match conditions for each extension chain are evaluated in sequence for a given request. The first extension chain that has a condition that matches the request is executed. Any subsequent extension chains do not execute. Limited to 5 extension chains per resource.
|
|
1170
|
+
*/
|
|
1171
|
+
extensionChains?: Schema$ExtensionChain[];
|
|
1172
|
+
/**
|
|
1173
|
+
* Required. A list of references to the forwarding rules to which this service extension is attached. At least one forwarding rule is required. Only one `LbEdgeExtension` resource can be associated with a forwarding rule.
|
|
1174
|
+
*/
|
|
1175
|
+
forwardingRules?: string[] | null;
|
|
1176
|
+
/**
|
|
1177
|
+
* Optional. Set of labels associated with the `LbEdgeExtension` resource. The format must comply with [the requirements for labels](https://cloud.google.com/compute/docs/labeling-resources#requirements) for Google Cloud resources.
|
|
1178
|
+
*/
|
|
1179
|
+
labels?: {[key: string]: string} | null;
|
|
1180
|
+
/**
|
|
1181
|
+
* Required. All forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `EXTERNAL_MANAGED`.
|
|
1182
|
+
*/
|
|
1183
|
+
loadBalancingScheme?: string | null;
|
|
1184
|
+
/**
|
|
1185
|
+
* Required. Identifier. Name of the `LbEdgeExtension` resource in the following format: `projects/{project\}/locations/{location\}/lbEdgeExtensions/{lb_edge_extension\}`.
|
|
1186
|
+
*/
|
|
1187
|
+
name?: string | null;
|
|
1188
|
+
/**
|
|
1189
|
+
* Output only. The timestamp when the resource was updated.
|
|
1190
|
+
*/
|
|
1191
|
+
updateTime?: string | null;
|
|
1192
|
+
}
|
|
1148
1193
|
/**
|
|
1149
1194
|
* `LbRouteExtension` is a resource that lets you control where traffic is routed to for a given request.
|
|
1150
1195
|
*/
|
|
@@ -1329,6 +1374,23 @@ export namespace networkservices_v1 {
|
|
|
1329
1374
|
*/
|
|
1330
1375
|
unreachable?: string[] | null;
|
|
1331
1376
|
}
|
|
1377
|
+
/**
|
|
1378
|
+
* Message for response to listing `LbEdgeExtension` resources.
|
|
1379
|
+
*/
|
|
1380
|
+
export interface Schema$ListLbEdgeExtensionsResponse {
|
|
1381
|
+
/**
|
|
1382
|
+
* The list of `LbEdgeExtension` resources.
|
|
1383
|
+
*/
|
|
1384
|
+
lbEdgeExtensions?: Schema$LbEdgeExtension[];
|
|
1385
|
+
/**
|
|
1386
|
+
* A token identifying a page of results that the server returns.
|
|
1387
|
+
*/
|
|
1388
|
+
nextPageToken?: string | null;
|
|
1389
|
+
/**
|
|
1390
|
+
* Locations that could not be reached.
|
|
1391
|
+
*/
|
|
1392
|
+
unreachable?: string[] | null;
|
|
1393
|
+
}
|
|
1332
1394
|
/**
|
|
1333
1395
|
* Message for response to listing `LbRouteExtension` resources.
|
|
1334
1396
|
*/
|
|
@@ -1422,6 +1484,10 @@ export namespace networkservices_v1 {
|
|
|
1422
1484
|
* A list of operations that matches the specified filter in the request.
|
|
1423
1485
|
*/
|
|
1424
1486
|
operations?: Schema$Operation[];
|
|
1487
|
+
/**
|
|
1488
|
+
* Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.
|
|
1489
|
+
*/
|
|
1490
|
+
unreachable?: string[] | null;
|
|
1425
1491
|
}
|
|
1426
1492
|
/**
|
|
1427
1493
|
* Response returned by the ListServiceBindings method.
|
|
@@ -2231,6 +2297,7 @@ export namespace networkservices_v1 {
|
|
|
2231
2297
|
gateways: Resource$Projects$Locations$Gateways;
|
|
2232
2298
|
grpcRoutes: Resource$Projects$Locations$Grpcroutes;
|
|
2233
2299
|
httpRoutes: Resource$Projects$Locations$Httproutes;
|
|
2300
|
+
lbEdgeExtensions: Resource$Projects$Locations$Lbedgeextensions;
|
|
2234
2301
|
lbRouteExtensions: Resource$Projects$Locations$Lbrouteextensions;
|
|
2235
2302
|
lbTrafficExtensions: Resource$Projects$Locations$Lbtrafficextensions;
|
|
2236
2303
|
meshes: Resource$Projects$Locations$Meshes;
|
|
@@ -2263,6 +2330,9 @@ export namespace networkservices_v1 {
|
|
|
2263
2330
|
this.httpRoutes = new Resource$Projects$Locations$Httproutes(
|
|
2264
2331
|
this.context
|
|
2265
2332
|
);
|
|
2333
|
+
this.lbEdgeExtensions = new Resource$Projects$Locations$Lbedgeextensions(
|
|
2334
|
+
this.context
|
|
2335
|
+
);
|
|
2266
2336
|
this.lbRouteExtensions =
|
|
2267
2337
|
new Resource$Projects$Locations$Lbrouteextensions(this.context);
|
|
2268
2338
|
this.lbTrafficExtensions =
|
|
@@ -2453,7 +2523,7 @@ export namespace networkservices_v1 {
|
|
|
2453
2523
|
*
|
|
2454
2524
|
* // Do the magic
|
|
2455
2525
|
* const res = await networkservices.projects.locations.list({
|
|
2456
|
-
* // Optional.
|
|
2526
|
+
* // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
|
|
2457
2527
|
* extraLocationTypes: 'placeholder-value',
|
|
2458
2528
|
* // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
|
|
2459
2529
|
* filter: 'placeholder-value',
|
|
@@ -2582,7 +2652,7 @@ export namespace networkservices_v1 {
|
|
|
2582
2652
|
export interface Params$Resource$Projects$Locations$List
|
|
2583
2653
|
extends StandardParameters {
|
|
2584
2654
|
/**
|
|
2585
|
-
* Optional.
|
|
2655
|
+
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
|
|
2586
2656
|
*/
|
|
2587
2657
|
extraLocationTypes?: string[];
|
|
2588
2658
|
/**
|
|
@@ -8601,14 +8671,14 @@ export namespace networkservices_v1 {
|
|
|
8601
8671
|
requestBody?: Schema$HttpRoute;
|
|
8602
8672
|
}
|
|
8603
8673
|
|
|
8604
|
-
export class Resource$Projects$Locations$
|
|
8674
|
+
export class Resource$Projects$Locations$Lbedgeextensions {
|
|
8605
8675
|
context: APIRequestContext;
|
|
8606
8676
|
constructor(context: APIRequestContext) {
|
|
8607
8677
|
this.context = context;
|
|
8608
8678
|
}
|
|
8609
8679
|
|
|
8610
8680
|
/**
|
|
8611
|
-
* Creates a new `
|
|
8681
|
+
* Creates a new `LbEdgeExtension` resource in a given project and location.
|
|
8612
8682
|
* @example
|
|
8613
8683
|
* ```js
|
|
8614
8684
|
* // Before running the sample:
|
|
@@ -8637,32 +8707,29 @@ export namespace networkservices_v1 {
|
|
|
8637
8707
|
* google.options({auth: authClient});
|
|
8638
8708
|
*
|
|
8639
8709
|
* // Do the magic
|
|
8640
|
-
* const res = await networkservices.projects.locations.
|
|
8641
|
-
*
|
|
8642
|
-
*
|
|
8643
|
-
*
|
|
8644
|
-
*
|
|
8645
|
-
*
|
|
8646
|
-
*
|
|
8647
|
-
* requestId: 'placeholder-value',
|
|
8710
|
+
* const res = await networkservices.projects.locations.lbEdgeExtensions.create({
|
|
8711
|
+
* // Required. User-provided ID of the `LbEdgeExtension` resource to be created.
|
|
8712
|
+
* lbEdgeExtensionId: 'placeholder-value',
|
|
8713
|
+
* // Required. The parent resource of the `LbEdgeExtension` resource. Must be in the format `projects/{project\}/locations/{location\}`.
|
|
8714
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
8715
|
+
* // Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server ignores the second request This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
8716
|
+
* requestId: 'placeholder-value',
|
|
8648
8717
|
*
|
|
8649
|
-
*
|
|
8650
|
-
*
|
|
8651
|
-
*
|
|
8652
|
-
*
|
|
8653
|
-
*
|
|
8654
|
-
*
|
|
8655
|
-
*
|
|
8656
|
-
*
|
|
8657
|
-
*
|
|
8658
|
-
*
|
|
8659
|
-
*
|
|
8660
|
-
*
|
|
8661
|
-
*
|
|
8662
|
-
* // }
|
|
8663
|
-
* },
|
|
8718
|
+
* // Request body metadata
|
|
8719
|
+
* requestBody: {
|
|
8720
|
+
* // request body parameters
|
|
8721
|
+
* // {
|
|
8722
|
+
* // "createTime": "my_createTime",
|
|
8723
|
+
* // "description": "my_description",
|
|
8724
|
+
* // "extensionChains": [],
|
|
8725
|
+
* // "forwardingRules": [],
|
|
8726
|
+
* // "labels": {},
|
|
8727
|
+
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
8728
|
+
* // "name": "my_name",
|
|
8729
|
+
* // "updateTime": "my_updateTime"
|
|
8730
|
+
* // }
|
|
8664
8731
|
* },
|
|
8665
|
-
* );
|
|
8732
|
+
* });
|
|
8666
8733
|
* console.log(res.data);
|
|
8667
8734
|
*
|
|
8668
8735
|
* // Example response
|
|
@@ -8688,31 +8755,31 @@ export namespace networkservices_v1 {
|
|
|
8688
8755
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8689
8756
|
*/
|
|
8690
8757
|
create(
|
|
8691
|
-
params: Params$Resource$Projects$Locations$
|
|
8758
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Create,
|
|
8692
8759
|
options: StreamMethodOptions
|
|
8693
8760
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
8694
8761
|
create(
|
|
8695
|
-
params?: Params$Resource$Projects$Locations$
|
|
8762
|
+
params?: Params$Resource$Projects$Locations$Lbedgeextensions$Create,
|
|
8696
8763
|
options?: MethodOptions
|
|
8697
8764
|
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
8698
8765
|
create(
|
|
8699
|
-
params: Params$Resource$Projects$Locations$
|
|
8766
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Create,
|
|
8700
8767
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8701
8768
|
callback: BodyResponseCallback<Readable>
|
|
8702
8769
|
): void;
|
|
8703
8770
|
create(
|
|
8704
|
-
params: Params$Resource$Projects$Locations$
|
|
8771
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Create,
|
|
8705
8772
|
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
8706
8773
|
callback: BodyResponseCallback<Schema$Operation>
|
|
8707
8774
|
): void;
|
|
8708
8775
|
create(
|
|
8709
|
-
params: Params$Resource$Projects$Locations$
|
|
8776
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Create,
|
|
8710
8777
|
callback: BodyResponseCallback<Schema$Operation>
|
|
8711
8778
|
): void;
|
|
8712
8779
|
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
8713
8780
|
create(
|
|
8714
8781
|
paramsOrCallback?:
|
|
8715
|
-
| Params$Resource$Projects$Locations$
|
|
8782
|
+
| Params$Resource$Projects$Locations$Lbedgeextensions$Create
|
|
8716
8783
|
| BodyResponseCallback<Schema$Operation>
|
|
8717
8784
|
| BodyResponseCallback<Readable>,
|
|
8718
8785
|
optionsOrCallback?:
|
|
@@ -8728,13 +8795,13 @@ export namespace networkservices_v1 {
|
|
|
8728
8795
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
8729
8796
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
8730
8797
|
let params = (paramsOrCallback ||
|
|
8731
|
-
{}) as Params$Resource$Projects$Locations$
|
|
8798
|
+
{}) as Params$Resource$Projects$Locations$Lbedgeextensions$Create;
|
|
8732
8799
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
8733
8800
|
|
|
8734
8801
|
if (typeof paramsOrCallback === 'function') {
|
|
8735
8802
|
callback = paramsOrCallback;
|
|
8736
8803
|
params =
|
|
8737
|
-
{} as Params$Resource$Projects$Locations$
|
|
8804
|
+
{} as Params$Resource$Projects$Locations$Lbedgeextensions$Create;
|
|
8738
8805
|
options = {};
|
|
8739
8806
|
}
|
|
8740
8807
|
|
|
@@ -8748,7 +8815,7 @@ export namespace networkservices_v1 {
|
|
|
8748
8815
|
const parameters = {
|
|
8749
8816
|
options: Object.assign(
|
|
8750
8817
|
{
|
|
8751
|
-
url: (rootUrl + '/v1/{+parent}/
|
|
8818
|
+
url: (rootUrl + '/v1/{+parent}/lbEdgeExtensions').replace(
|
|
8752
8819
|
/([^:]\/)\/+/g,
|
|
8753
8820
|
'$1'
|
|
8754
8821
|
),
|
|
@@ -8773,7 +8840,7 @@ export namespace networkservices_v1 {
|
|
|
8773
8840
|
}
|
|
8774
8841
|
|
|
8775
8842
|
/**
|
|
8776
|
-
* Deletes the specified `
|
|
8843
|
+
* Deletes the specified `LbEdgeExtension` resource.
|
|
8777
8844
|
* @example
|
|
8778
8845
|
* ```js
|
|
8779
8846
|
* // Before running the sample:
|
|
@@ -8802,14 +8869,12 @@ export namespace networkservices_v1 {
|
|
|
8802
8869
|
* google.options({auth: authClient});
|
|
8803
8870
|
*
|
|
8804
8871
|
* // Do the magic
|
|
8805
|
-
* const res = await networkservices.projects.locations.
|
|
8806
|
-
* {
|
|
8807
|
-
*
|
|
8808
|
-
*
|
|
8809
|
-
*
|
|
8810
|
-
*
|
|
8811
|
-
* },
|
|
8812
|
-
* );
|
|
8872
|
+
* const res = await networkservices.projects.locations.lbEdgeExtensions.delete({
|
|
8873
|
+
* // Required. The name of the `LbEdgeExtension` resource to delete. Must be in the format `projects/{project\}/locations/{location\}/lbEdgeExtensions/{lb_edge_extension\}`.
|
|
8874
|
+
* name: 'projects/my-project/locations/my-location/lbEdgeExtensions/my-lbEdgeExtension',
|
|
8875
|
+
* // Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server ignores the second request This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
8876
|
+
* requestId: 'placeholder-value',
|
|
8877
|
+
* });
|
|
8813
8878
|
* console.log(res.data);
|
|
8814
8879
|
*
|
|
8815
8880
|
* // Example response
|
|
@@ -8835,31 +8900,31 @@ export namespace networkservices_v1 {
|
|
|
8835
8900
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8836
8901
|
*/
|
|
8837
8902
|
delete(
|
|
8838
|
-
params: Params$Resource$Projects$Locations$
|
|
8903
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Delete,
|
|
8839
8904
|
options: StreamMethodOptions
|
|
8840
8905
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
8841
8906
|
delete(
|
|
8842
|
-
params?: Params$Resource$Projects$Locations$
|
|
8907
|
+
params?: Params$Resource$Projects$Locations$Lbedgeextensions$Delete,
|
|
8843
8908
|
options?: MethodOptions
|
|
8844
8909
|
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
8845
8910
|
delete(
|
|
8846
|
-
params: Params$Resource$Projects$Locations$
|
|
8911
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Delete,
|
|
8847
8912
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8848
8913
|
callback: BodyResponseCallback<Readable>
|
|
8849
8914
|
): void;
|
|
8850
8915
|
delete(
|
|
8851
|
-
params: Params$Resource$Projects$Locations$
|
|
8916
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Delete,
|
|
8852
8917
|
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
8853
8918
|
callback: BodyResponseCallback<Schema$Operation>
|
|
8854
8919
|
): void;
|
|
8855
8920
|
delete(
|
|
8856
|
-
params: Params$Resource$Projects$Locations$
|
|
8921
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Delete,
|
|
8857
8922
|
callback: BodyResponseCallback<Schema$Operation>
|
|
8858
8923
|
): void;
|
|
8859
8924
|
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
8860
8925
|
delete(
|
|
8861
8926
|
paramsOrCallback?:
|
|
8862
|
-
| Params$Resource$Projects$Locations$
|
|
8927
|
+
| Params$Resource$Projects$Locations$Lbedgeextensions$Delete
|
|
8863
8928
|
| BodyResponseCallback<Schema$Operation>
|
|
8864
8929
|
| BodyResponseCallback<Readable>,
|
|
8865
8930
|
optionsOrCallback?:
|
|
@@ -8875,13 +8940,13 @@ export namespace networkservices_v1 {
|
|
|
8875
8940
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
8876
8941
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
8877
8942
|
let params = (paramsOrCallback ||
|
|
8878
|
-
{}) as Params$Resource$Projects$Locations$
|
|
8943
|
+
{}) as Params$Resource$Projects$Locations$Lbedgeextensions$Delete;
|
|
8879
8944
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
8880
8945
|
|
|
8881
8946
|
if (typeof paramsOrCallback === 'function') {
|
|
8882
8947
|
callback = paramsOrCallback;
|
|
8883
8948
|
params =
|
|
8884
|
-
{} as Params$Resource$Projects$Locations$
|
|
8949
|
+
{} as Params$Resource$Projects$Locations$Lbedgeextensions$Delete;
|
|
8885
8950
|
options = {};
|
|
8886
8951
|
}
|
|
8887
8952
|
|
|
@@ -8917,7 +8982,7 @@ export namespace networkservices_v1 {
|
|
|
8917
8982
|
}
|
|
8918
8983
|
|
|
8919
8984
|
/**
|
|
8920
|
-
* Gets details of the specified `
|
|
8985
|
+
* Gets details of the specified `LbEdgeExtension` resource.
|
|
8921
8986
|
* @example
|
|
8922
8987
|
* ```js
|
|
8923
8988
|
* // Before running the sample:
|
|
@@ -8946,9 +9011,9 @@ export namespace networkservices_v1 {
|
|
|
8946
9011
|
* google.options({auth: authClient});
|
|
8947
9012
|
*
|
|
8948
9013
|
* // Do the magic
|
|
8949
|
-
* const res = await networkservices.projects.locations.
|
|
8950
|
-
* // Required. A name of the `
|
|
8951
|
-
* name: 'projects/my-project/locations/my-location/
|
|
9014
|
+
* const res = await networkservices.projects.locations.lbEdgeExtensions.get({
|
|
9015
|
+
* // Required. A name of the `LbEdgeExtension` resource to get. Must be in the format `projects/{project\}/locations/{location\}/lbEdgeExtensions/{lb_edge_extension\}`.
|
|
9016
|
+
* name: 'projects/my-project/locations/my-location/lbEdgeExtensions/my-lbEdgeExtension',
|
|
8952
9017
|
* });
|
|
8953
9018
|
* console.log(res.data);
|
|
8954
9019
|
*
|
|
@@ -8960,7 +9025,6 @@ export namespace networkservices_v1 {
|
|
|
8960
9025
|
* // "forwardingRules": [],
|
|
8961
9026
|
* // "labels": {},
|
|
8962
9027
|
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
8963
|
-
* // "metadata": {},
|
|
8964
9028
|
* // "name": "my_name",
|
|
8965
9029
|
* // "updateTime": "my_updateTime"
|
|
8966
9030
|
* // }
|
|
@@ -8979,52 +9043,52 @@ export namespace networkservices_v1 {
|
|
|
8979
9043
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8980
9044
|
*/
|
|
8981
9045
|
get(
|
|
8982
|
-
params: Params$Resource$Projects$Locations$
|
|
9046
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Get,
|
|
8983
9047
|
options: StreamMethodOptions
|
|
8984
9048
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
8985
9049
|
get(
|
|
8986
|
-
params?: Params$Resource$Projects$Locations$
|
|
9050
|
+
params?: Params$Resource$Projects$Locations$Lbedgeextensions$Get,
|
|
8987
9051
|
options?: MethodOptions
|
|
8988
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
9052
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$LbEdgeExtension>>;
|
|
8989
9053
|
get(
|
|
8990
|
-
params: Params$Resource$Projects$Locations$
|
|
9054
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Get,
|
|
8991
9055
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8992
9056
|
callback: BodyResponseCallback<Readable>
|
|
8993
9057
|
): void;
|
|
8994
9058
|
get(
|
|
8995
|
-
params: Params$Resource$Projects$Locations$
|
|
8996
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
8997
|
-
callback: BodyResponseCallback<Schema$
|
|
9059
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Get,
|
|
9060
|
+
options: MethodOptions | BodyResponseCallback<Schema$LbEdgeExtension>,
|
|
9061
|
+
callback: BodyResponseCallback<Schema$LbEdgeExtension>
|
|
8998
9062
|
): void;
|
|
8999
9063
|
get(
|
|
9000
|
-
params: Params$Resource$Projects$Locations$
|
|
9001
|
-
callback: BodyResponseCallback<Schema$
|
|
9064
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Get,
|
|
9065
|
+
callback: BodyResponseCallback<Schema$LbEdgeExtension>
|
|
9002
9066
|
): void;
|
|
9003
|
-
get(callback: BodyResponseCallback<Schema$
|
|
9067
|
+
get(callback: BodyResponseCallback<Schema$LbEdgeExtension>): void;
|
|
9004
9068
|
get(
|
|
9005
9069
|
paramsOrCallback?:
|
|
9006
|
-
| Params$Resource$Projects$Locations$
|
|
9007
|
-
| BodyResponseCallback<Schema$
|
|
9070
|
+
| Params$Resource$Projects$Locations$Lbedgeextensions$Get
|
|
9071
|
+
| BodyResponseCallback<Schema$LbEdgeExtension>
|
|
9008
9072
|
| BodyResponseCallback<Readable>,
|
|
9009
9073
|
optionsOrCallback?:
|
|
9010
9074
|
| MethodOptions
|
|
9011
9075
|
| StreamMethodOptions
|
|
9012
|
-
| BodyResponseCallback<Schema$
|
|
9076
|
+
| BodyResponseCallback<Schema$LbEdgeExtension>
|
|
9013
9077
|
| BodyResponseCallback<Readable>,
|
|
9014
9078
|
callback?:
|
|
9015
|
-
| BodyResponseCallback<Schema$
|
|
9079
|
+
| BodyResponseCallback<Schema$LbEdgeExtension>
|
|
9016
9080
|
| BodyResponseCallback<Readable>
|
|
9017
9081
|
):
|
|
9018
9082
|
| void
|
|
9019
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
9083
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$LbEdgeExtension>>
|
|
9020
9084
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9021
9085
|
let params = (paramsOrCallback ||
|
|
9022
|
-
{}) as Params$Resource$Projects$Locations$
|
|
9086
|
+
{}) as Params$Resource$Projects$Locations$Lbedgeextensions$Get;
|
|
9023
9087
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9024
9088
|
|
|
9025
9089
|
if (typeof paramsOrCallback === 'function') {
|
|
9026
9090
|
callback = paramsOrCallback;
|
|
9027
|
-
params = {} as Params$Resource$Projects$Locations$
|
|
9091
|
+
params = {} as Params$Resource$Projects$Locations$Lbedgeextensions$Get;
|
|
9028
9092
|
options = {};
|
|
9029
9093
|
}
|
|
9030
9094
|
|
|
@@ -9050,17 +9114,17 @@ export namespace networkservices_v1 {
|
|
|
9050
9114
|
context: this.context,
|
|
9051
9115
|
};
|
|
9052
9116
|
if (callback) {
|
|
9053
|
-
createAPIRequest<Schema$
|
|
9117
|
+
createAPIRequest<Schema$LbEdgeExtension>(
|
|
9054
9118
|
parameters,
|
|
9055
9119
|
callback as BodyResponseCallback<unknown>
|
|
9056
9120
|
);
|
|
9057
9121
|
} else {
|
|
9058
|
-
return createAPIRequest<Schema$
|
|
9122
|
+
return createAPIRequest<Schema$LbEdgeExtension>(parameters);
|
|
9059
9123
|
}
|
|
9060
9124
|
}
|
|
9061
9125
|
|
|
9062
9126
|
/**
|
|
9063
|
-
* Lists `
|
|
9127
|
+
* Lists `LbEdgeExtension` resources in a given project and location.
|
|
9064
9128
|
* @example
|
|
9065
9129
|
* ```js
|
|
9066
9130
|
* // Before running the sample:
|
|
@@ -9089,7 +9153,7 @@ export namespace networkservices_v1 {
|
|
|
9089
9153
|
* google.options({auth: authClient});
|
|
9090
9154
|
*
|
|
9091
9155
|
* // Do the magic
|
|
9092
|
-
* const res = await networkservices.projects.locations.
|
|
9156
|
+
* const res = await networkservices.projects.locations.lbEdgeExtensions.list({
|
|
9093
9157
|
* // Optional. Filtering results.
|
|
9094
9158
|
* filter: 'placeholder-value',
|
|
9095
9159
|
* // Optional. Hint about how to order the results.
|
|
@@ -9098,14 +9162,14 @@ export namespace networkservices_v1 {
|
|
|
9098
9162
|
* pageSize: 'placeholder-value',
|
|
9099
9163
|
* // Optional. A token identifying a page of results that the server returns.
|
|
9100
9164
|
* pageToken: 'placeholder-value',
|
|
9101
|
-
* // Required. The project and location from which the `
|
|
9165
|
+
* // Required. The project and location from which the `LbEdgeExtension` resources are listed. These values are specified in the following format: `projects/{project\}/locations/{location\}`.
|
|
9102
9166
|
* parent: 'projects/my-project/locations/my-location',
|
|
9103
9167
|
* });
|
|
9104
9168
|
* console.log(res.data);
|
|
9105
9169
|
*
|
|
9106
9170
|
* // Example response
|
|
9107
9171
|
* // {
|
|
9108
|
-
* // "
|
|
9172
|
+
* // "lbEdgeExtensions": [],
|
|
9109
9173
|
* // "nextPageToken": "my_nextPageToken",
|
|
9110
9174
|
* // "unreachable": []
|
|
9111
9175
|
* // }
|
|
@@ -9124,57 +9188,56 @@ export namespace networkservices_v1 {
|
|
|
9124
9188
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9125
9189
|
*/
|
|
9126
9190
|
list(
|
|
9127
|
-
params: Params$Resource$Projects$Locations$
|
|
9191
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$List,
|
|
9128
9192
|
options: StreamMethodOptions
|
|
9129
9193
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9130
9194
|
list(
|
|
9131
|
-
params?: Params$Resource$Projects$Locations$
|
|
9195
|
+
params?: Params$Resource$Projects$Locations$Lbedgeextensions$List,
|
|
9132
9196
|
options?: MethodOptions
|
|
9133
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
9197
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListLbEdgeExtensionsResponse>>;
|
|
9134
9198
|
list(
|
|
9135
|
-
params: Params$Resource$Projects$Locations$
|
|
9199
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$List,
|
|
9136
9200
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9137
9201
|
callback: BodyResponseCallback<Readable>
|
|
9138
9202
|
): void;
|
|
9139
9203
|
list(
|
|
9140
|
-
params: Params$Resource$Projects$Locations$
|
|
9204
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$List,
|
|
9141
9205
|
options:
|
|
9142
9206
|
| MethodOptions
|
|
9143
|
-
| BodyResponseCallback<Schema$
|
|
9144
|
-
callback: BodyResponseCallback<Schema$
|
|
9207
|
+
| BodyResponseCallback<Schema$ListLbEdgeExtensionsResponse>,
|
|
9208
|
+
callback: BodyResponseCallback<Schema$ListLbEdgeExtensionsResponse>
|
|
9145
9209
|
): void;
|
|
9146
9210
|
list(
|
|
9147
|
-
params: Params$Resource$Projects$Locations$
|
|
9148
|
-
callback: BodyResponseCallback<Schema$
|
|
9211
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$List,
|
|
9212
|
+
callback: BodyResponseCallback<Schema$ListLbEdgeExtensionsResponse>
|
|
9149
9213
|
): void;
|
|
9150
9214
|
list(
|
|
9151
|
-
callback: BodyResponseCallback<Schema$
|
|
9215
|
+
callback: BodyResponseCallback<Schema$ListLbEdgeExtensionsResponse>
|
|
9152
9216
|
): void;
|
|
9153
9217
|
list(
|
|
9154
9218
|
paramsOrCallback?:
|
|
9155
|
-
| Params$Resource$Projects$Locations$
|
|
9156
|
-
| BodyResponseCallback<Schema$
|
|
9219
|
+
| Params$Resource$Projects$Locations$Lbedgeextensions$List
|
|
9220
|
+
| BodyResponseCallback<Schema$ListLbEdgeExtensionsResponse>
|
|
9157
9221
|
| BodyResponseCallback<Readable>,
|
|
9158
9222
|
optionsOrCallback?:
|
|
9159
9223
|
| MethodOptions
|
|
9160
9224
|
| StreamMethodOptions
|
|
9161
|
-
| BodyResponseCallback<Schema$
|
|
9225
|
+
| BodyResponseCallback<Schema$ListLbEdgeExtensionsResponse>
|
|
9162
9226
|
| BodyResponseCallback<Readable>,
|
|
9163
9227
|
callback?:
|
|
9164
|
-
| BodyResponseCallback<Schema$
|
|
9228
|
+
| BodyResponseCallback<Schema$ListLbEdgeExtensionsResponse>
|
|
9165
9229
|
| BodyResponseCallback<Readable>
|
|
9166
9230
|
):
|
|
9167
9231
|
| void
|
|
9168
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
9232
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListLbEdgeExtensionsResponse>>
|
|
9169
9233
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9170
9234
|
let params = (paramsOrCallback ||
|
|
9171
|
-
{}) as Params$Resource$Projects$Locations$
|
|
9235
|
+
{}) as Params$Resource$Projects$Locations$Lbedgeextensions$List;
|
|
9172
9236
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9173
9237
|
|
|
9174
9238
|
if (typeof paramsOrCallback === 'function') {
|
|
9175
9239
|
callback = paramsOrCallback;
|
|
9176
|
-
params =
|
|
9177
|
-
{} as Params$Resource$Projects$Locations$Lbrouteextensions$List;
|
|
9240
|
+
params = {} as Params$Resource$Projects$Locations$Lbedgeextensions$List;
|
|
9178
9241
|
options = {};
|
|
9179
9242
|
}
|
|
9180
9243
|
|
|
@@ -9188,7 +9251,7 @@ export namespace networkservices_v1 {
|
|
|
9188
9251
|
const parameters = {
|
|
9189
9252
|
options: Object.assign(
|
|
9190
9253
|
{
|
|
9191
|
-
url: (rootUrl + '/v1/{+parent}/
|
|
9254
|
+
url: (rootUrl + '/v1/{+parent}/lbEdgeExtensions').replace(
|
|
9192
9255
|
/([^:]\/)\/+/g,
|
|
9193
9256
|
'$1'
|
|
9194
9257
|
),
|
|
@@ -9203,19 +9266,19 @@ export namespace networkservices_v1 {
|
|
|
9203
9266
|
context: this.context,
|
|
9204
9267
|
};
|
|
9205
9268
|
if (callback) {
|
|
9206
|
-
createAPIRequest<Schema$
|
|
9269
|
+
createAPIRequest<Schema$ListLbEdgeExtensionsResponse>(
|
|
9207
9270
|
parameters,
|
|
9208
9271
|
callback as BodyResponseCallback<unknown>
|
|
9209
9272
|
);
|
|
9210
9273
|
} else {
|
|
9211
|
-
return createAPIRequest<Schema$
|
|
9274
|
+
return createAPIRequest<Schema$ListLbEdgeExtensionsResponse>(
|
|
9212
9275
|
parameters
|
|
9213
9276
|
);
|
|
9214
9277
|
}
|
|
9215
9278
|
}
|
|
9216
9279
|
|
|
9217
9280
|
/**
|
|
9218
|
-
* Updates the parameters of the specified `
|
|
9281
|
+
* Updates the parameters of the specified `LbEdgeExtension` resource.
|
|
9219
9282
|
* @example
|
|
9220
9283
|
* ```js
|
|
9221
9284
|
* // Before running the sample:
|
|
@@ -9244,12 +9307,12 @@ export namespace networkservices_v1 {
|
|
|
9244
9307
|
* google.options({auth: authClient});
|
|
9245
9308
|
*
|
|
9246
9309
|
* // Do the magic
|
|
9247
|
-
* const res = await networkservices.projects.locations.
|
|
9248
|
-
* // Required. Identifier. Name of the `
|
|
9249
|
-
* name: 'projects/my-project/locations/my-location/
|
|
9310
|
+
* const res = await networkservices.projects.locations.lbEdgeExtensions.patch({
|
|
9311
|
+
* // Required. Identifier. Name of the `LbEdgeExtension` resource in the following format: `projects/{project\}/locations/{location\}/lbEdgeExtensions/{lb_edge_extension\}`.
|
|
9312
|
+
* name: 'projects/my-project/locations/my-location/lbEdgeExtensions/my-lbEdgeExtension',
|
|
9250
9313
|
* // Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server ignores the second request This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
9251
9314
|
* requestId: 'placeholder-value',
|
|
9252
|
-
* // Optional. Used to specify the fields to be overwritten in the `
|
|
9315
|
+
* // Optional. Used to specify the fields to be overwritten in the `LbEdgeExtension` 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.
|
|
9253
9316
|
* updateMask: 'placeholder-value',
|
|
9254
9317
|
*
|
|
9255
9318
|
* // Request body metadata
|
|
@@ -9262,7 +9325,6 @@ export namespace networkservices_v1 {
|
|
|
9262
9325
|
* // "forwardingRules": [],
|
|
9263
9326
|
* // "labels": {},
|
|
9264
9327
|
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
9265
|
-
* // "metadata": {},
|
|
9266
9328
|
* // "name": "my_name",
|
|
9267
9329
|
* // "updateTime": "my_updateTime"
|
|
9268
9330
|
* // }
|
|
@@ -9293,31 +9355,31 @@ export namespace networkservices_v1 {
|
|
|
9293
9355
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9294
9356
|
*/
|
|
9295
9357
|
patch(
|
|
9296
|
-
params: Params$Resource$Projects$Locations$
|
|
9358
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Patch,
|
|
9297
9359
|
options: StreamMethodOptions
|
|
9298
9360
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9299
9361
|
patch(
|
|
9300
|
-
params?: Params$Resource$Projects$Locations$
|
|
9362
|
+
params?: Params$Resource$Projects$Locations$Lbedgeextensions$Patch,
|
|
9301
9363
|
options?: MethodOptions
|
|
9302
9364
|
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
9303
9365
|
patch(
|
|
9304
|
-
params: Params$Resource$Projects$Locations$
|
|
9366
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Patch,
|
|
9305
9367
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9306
9368
|
callback: BodyResponseCallback<Readable>
|
|
9307
9369
|
): void;
|
|
9308
9370
|
patch(
|
|
9309
|
-
params: Params$Resource$Projects$Locations$
|
|
9371
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Patch,
|
|
9310
9372
|
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
9311
9373
|
callback: BodyResponseCallback<Schema$Operation>
|
|
9312
9374
|
): void;
|
|
9313
9375
|
patch(
|
|
9314
|
-
params: Params$Resource$Projects$Locations$
|
|
9376
|
+
params: Params$Resource$Projects$Locations$Lbedgeextensions$Patch,
|
|
9315
9377
|
callback: BodyResponseCallback<Schema$Operation>
|
|
9316
9378
|
): void;
|
|
9317
9379
|
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
9318
9380
|
patch(
|
|
9319
9381
|
paramsOrCallback?:
|
|
9320
|
-
| Params$Resource$Projects$Locations$
|
|
9382
|
+
| Params$Resource$Projects$Locations$Lbedgeextensions$Patch
|
|
9321
9383
|
| BodyResponseCallback<Schema$Operation>
|
|
9322
9384
|
| BodyResponseCallback<Readable>,
|
|
9323
9385
|
optionsOrCallback?:
|
|
@@ -9333,13 +9395,13 @@ export namespace networkservices_v1 {
|
|
|
9333
9395
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
9334
9396
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9335
9397
|
let params = (paramsOrCallback ||
|
|
9336
|
-
{}) as Params$Resource$Projects$Locations$
|
|
9398
|
+
{}) as Params$Resource$Projects$Locations$Lbedgeextensions$Patch;
|
|
9337
9399
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9338
9400
|
|
|
9339
9401
|
if (typeof paramsOrCallback === 'function') {
|
|
9340
9402
|
callback = paramsOrCallback;
|
|
9341
9403
|
params =
|
|
9342
|
-
{} as Params$Resource$Projects$Locations$
|
|
9404
|
+
{} as Params$Resource$Projects$Locations$Lbedgeextensions$Patch;
|
|
9343
9405
|
options = {};
|
|
9344
9406
|
}
|
|
9345
9407
|
|
|
@@ -9375,14 +9437,14 @@ export namespace networkservices_v1 {
|
|
|
9375
9437
|
}
|
|
9376
9438
|
}
|
|
9377
9439
|
|
|
9378
|
-
export interface Params$Resource$Projects$Locations$
|
|
9440
|
+
export interface Params$Resource$Projects$Locations$Lbedgeextensions$Create
|
|
9379
9441
|
extends StandardParameters {
|
|
9380
9442
|
/**
|
|
9381
|
-
* Required. User-provided ID of the `
|
|
9443
|
+
* Required. User-provided ID of the `LbEdgeExtension` resource to be created.
|
|
9382
9444
|
*/
|
|
9383
|
-
|
|
9445
|
+
lbEdgeExtensionId?: string;
|
|
9384
9446
|
/**
|
|
9385
|
-
* Required. The parent resource of the `
|
|
9447
|
+
* Required. The parent resource of the `LbEdgeExtension` resource. Must be in the format `projects/{project\}/locations/{location\}`.
|
|
9386
9448
|
*/
|
|
9387
9449
|
parent?: string;
|
|
9388
9450
|
/**
|
|
@@ -9393,12 +9455,12 @@ export namespace networkservices_v1 {
|
|
|
9393
9455
|
/**
|
|
9394
9456
|
* Request body metadata
|
|
9395
9457
|
*/
|
|
9396
|
-
requestBody?: Schema$
|
|
9458
|
+
requestBody?: Schema$LbEdgeExtension;
|
|
9397
9459
|
}
|
|
9398
|
-
export interface Params$Resource$Projects$Locations$
|
|
9460
|
+
export interface Params$Resource$Projects$Locations$Lbedgeextensions$Delete
|
|
9399
9461
|
extends StandardParameters {
|
|
9400
9462
|
/**
|
|
9401
|
-
* Required. The name of the `
|
|
9463
|
+
* Required. The name of the `LbEdgeExtension` resource to delete. Must be in the format `projects/{project\}/locations/{location\}/lbEdgeExtensions/{lb_edge_extension\}`.
|
|
9402
9464
|
*/
|
|
9403
9465
|
name?: string;
|
|
9404
9466
|
/**
|
|
@@ -9406,14 +9468,14 @@ export namespace networkservices_v1 {
|
|
|
9406
9468
|
*/
|
|
9407
9469
|
requestId?: string;
|
|
9408
9470
|
}
|
|
9409
|
-
export interface Params$Resource$Projects$Locations$
|
|
9471
|
+
export interface Params$Resource$Projects$Locations$Lbedgeextensions$Get
|
|
9410
9472
|
extends StandardParameters {
|
|
9411
9473
|
/**
|
|
9412
|
-
* Required. A name of the `
|
|
9474
|
+
* Required. A name of the `LbEdgeExtension` resource to get. Must be in the format `projects/{project\}/locations/{location\}/lbEdgeExtensions/{lb_edge_extension\}`.
|
|
9413
9475
|
*/
|
|
9414
9476
|
name?: string;
|
|
9415
9477
|
}
|
|
9416
|
-
export interface Params$Resource$Projects$Locations$
|
|
9478
|
+
export interface Params$Resource$Projects$Locations$Lbedgeextensions$List
|
|
9417
9479
|
extends StandardParameters {
|
|
9418
9480
|
/**
|
|
9419
9481
|
* Optional. Filtering results.
|
|
@@ -9432,14 +9494,14 @@ export namespace networkservices_v1 {
|
|
|
9432
9494
|
*/
|
|
9433
9495
|
pageToken?: string;
|
|
9434
9496
|
/**
|
|
9435
|
-
* Required. The project and location from which the `
|
|
9497
|
+
* Required. The project and location from which the `LbEdgeExtension` resources are listed. These values are specified in the following format: `projects/{project\}/locations/{location\}`.
|
|
9436
9498
|
*/
|
|
9437
9499
|
parent?: string;
|
|
9438
9500
|
}
|
|
9439
|
-
export interface Params$Resource$Projects$Locations$
|
|
9501
|
+
export interface Params$Resource$Projects$Locations$Lbedgeextensions$Patch
|
|
9440
9502
|
extends StandardParameters {
|
|
9441
9503
|
/**
|
|
9442
|
-
* Required. Identifier. Name of the `
|
|
9504
|
+
* Required. Identifier. Name of the `LbEdgeExtension` resource in the following format: `projects/{project\}/locations/{location\}/lbEdgeExtensions/{lb_edge_extension\}`.
|
|
9443
9505
|
*/
|
|
9444
9506
|
name?: string;
|
|
9445
9507
|
/**
|
|
@@ -9447,24 +9509,24 @@ export namespace networkservices_v1 {
|
|
|
9447
9509
|
*/
|
|
9448
9510
|
requestId?: string;
|
|
9449
9511
|
/**
|
|
9450
|
-
* Optional. Used to specify the fields to be overwritten in the `
|
|
9512
|
+
* Optional. Used to specify the fields to be overwritten in the `LbEdgeExtension` 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.
|
|
9451
9513
|
*/
|
|
9452
9514
|
updateMask?: string;
|
|
9453
9515
|
|
|
9454
9516
|
/**
|
|
9455
9517
|
* Request body metadata
|
|
9456
9518
|
*/
|
|
9457
|
-
requestBody?: Schema$
|
|
9519
|
+
requestBody?: Schema$LbEdgeExtension;
|
|
9458
9520
|
}
|
|
9459
9521
|
|
|
9460
|
-
export class Resource$Projects$Locations$
|
|
9522
|
+
export class Resource$Projects$Locations$Lbrouteextensions {
|
|
9461
9523
|
context: APIRequestContext;
|
|
9462
9524
|
constructor(context: APIRequestContext) {
|
|
9463
9525
|
this.context = context;
|
|
9464
9526
|
}
|
|
9465
9527
|
|
|
9466
9528
|
/**
|
|
9467
|
-
* Creates a new `
|
|
9529
|
+
* Creates a new `LbRouteExtension` resource in a given project and location.
|
|
9468
9530
|
* @example
|
|
9469
9531
|
* ```js
|
|
9470
9532
|
* // Before running the sample:
|
|
@@ -9493,11 +9555,11 @@ export namespace networkservices_v1 {
|
|
|
9493
9555
|
* google.options({auth: authClient});
|
|
9494
9556
|
*
|
|
9495
9557
|
* // Do the magic
|
|
9496
|
-
* const res =
|
|
9497
|
-
*
|
|
9498
|
-
* // Required. User-provided ID of the `
|
|
9499
|
-
*
|
|
9500
|
-
* // Required. The parent resource of the `
|
|
9558
|
+
* const res = await networkservices.projects.locations.lbRouteExtensions.create(
|
|
9559
|
+
* {
|
|
9560
|
+
* // Required. User-provided ID of the `LbRouteExtension` resource to be created.
|
|
9561
|
+
* lbRouteExtensionId: 'placeholder-value',
|
|
9562
|
+
* // Required. The parent resource of the `LbRouteExtension` resource. Must be in the format `projects/{project\}/locations/{location\}`.
|
|
9501
9563
|
* parent: 'projects/my-project/locations/my-location',
|
|
9502
9564
|
* // Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server ignores the second request This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
9503
9565
|
* requestId: 'placeholder-value',
|
|
@@ -9517,7 +9579,8 @@ export namespace networkservices_v1 {
|
|
|
9517
9579
|
* // "updateTime": "my_updateTime"
|
|
9518
9580
|
* // }
|
|
9519
9581
|
* },
|
|
9520
|
-
* }
|
|
9582
|
+
* },
|
|
9583
|
+
* );
|
|
9521
9584
|
* console.log(res.data);
|
|
9522
9585
|
*
|
|
9523
9586
|
* // Example response
|
|
@@ -9543,31 +9606,31 @@ export namespace networkservices_v1 {
|
|
|
9543
9606
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9544
9607
|
*/
|
|
9545
9608
|
create(
|
|
9546
|
-
params: Params$Resource$Projects$Locations$
|
|
9609
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Create,
|
|
9547
9610
|
options: StreamMethodOptions
|
|
9548
9611
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9549
9612
|
create(
|
|
9550
|
-
params?: Params$Resource$Projects$Locations$
|
|
9613
|
+
params?: Params$Resource$Projects$Locations$Lbrouteextensions$Create,
|
|
9551
9614
|
options?: MethodOptions
|
|
9552
9615
|
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
9553
9616
|
create(
|
|
9554
|
-
params: Params$Resource$Projects$Locations$
|
|
9617
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Create,
|
|
9555
9618
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9556
9619
|
callback: BodyResponseCallback<Readable>
|
|
9557
9620
|
): void;
|
|
9558
9621
|
create(
|
|
9559
|
-
params: Params$Resource$Projects$Locations$
|
|
9622
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Create,
|
|
9560
9623
|
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
9561
9624
|
callback: BodyResponseCallback<Schema$Operation>
|
|
9562
9625
|
): void;
|
|
9563
9626
|
create(
|
|
9564
|
-
params: Params$Resource$Projects$Locations$
|
|
9627
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Create,
|
|
9565
9628
|
callback: BodyResponseCallback<Schema$Operation>
|
|
9566
9629
|
): void;
|
|
9567
9630
|
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
9568
9631
|
create(
|
|
9569
9632
|
paramsOrCallback?:
|
|
9570
|
-
| Params$Resource$Projects$Locations$
|
|
9633
|
+
| Params$Resource$Projects$Locations$Lbrouteextensions$Create
|
|
9571
9634
|
| BodyResponseCallback<Schema$Operation>
|
|
9572
9635
|
| BodyResponseCallback<Readable>,
|
|
9573
9636
|
optionsOrCallback?:
|
|
@@ -9583,13 +9646,13 @@ export namespace networkservices_v1 {
|
|
|
9583
9646
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
9584
9647
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9585
9648
|
let params = (paramsOrCallback ||
|
|
9586
|
-
{}) as Params$Resource$Projects$Locations$
|
|
9649
|
+
{}) as Params$Resource$Projects$Locations$Lbrouteextensions$Create;
|
|
9587
9650
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9588
9651
|
|
|
9589
9652
|
if (typeof paramsOrCallback === 'function') {
|
|
9590
9653
|
callback = paramsOrCallback;
|
|
9591
9654
|
params =
|
|
9592
|
-
{} as Params$Resource$Projects$Locations$
|
|
9655
|
+
{} as Params$Resource$Projects$Locations$Lbrouteextensions$Create;
|
|
9593
9656
|
options = {};
|
|
9594
9657
|
}
|
|
9595
9658
|
|
|
@@ -9603,7 +9666,7 @@ export namespace networkservices_v1 {
|
|
|
9603
9666
|
const parameters = {
|
|
9604
9667
|
options: Object.assign(
|
|
9605
9668
|
{
|
|
9606
|
-
url: (rootUrl + '/v1/{+parent}/
|
|
9669
|
+
url: (rootUrl + '/v1/{+parent}/lbRouteExtensions').replace(
|
|
9607
9670
|
/([^:]\/)\/+/g,
|
|
9608
9671
|
'$1'
|
|
9609
9672
|
),
|
|
@@ -9628,7 +9691,7 @@ export namespace networkservices_v1 {
|
|
|
9628
9691
|
}
|
|
9629
9692
|
|
|
9630
9693
|
/**
|
|
9631
|
-
* Deletes the specified `
|
|
9694
|
+
* Deletes the specified `LbRouteExtension` resource.
|
|
9632
9695
|
* @example
|
|
9633
9696
|
* ```js
|
|
9634
9697
|
* // Before running the sample:
|
|
@@ -9657,13 +9720,14 @@ export namespace networkservices_v1 {
|
|
|
9657
9720
|
* google.options({auth: authClient});
|
|
9658
9721
|
*
|
|
9659
9722
|
* // Do the magic
|
|
9660
|
-
* const res =
|
|
9661
|
-
*
|
|
9662
|
-
* // Required. The name of the `
|
|
9663
|
-
* name: 'projects/my-project/locations/my-location/
|
|
9723
|
+
* const res = await networkservices.projects.locations.lbRouteExtensions.delete(
|
|
9724
|
+
* {
|
|
9725
|
+
* // Required. The name of the `LbRouteExtension` resource to delete. Must be in the format `projects/{project\}/locations/{location\}/lbRouteExtensions/{lb_route_extension\}`.
|
|
9726
|
+
* name: 'projects/my-project/locations/my-location/lbRouteExtensions/my-lbRouteExtension',
|
|
9664
9727
|
* // Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server ignores the second request This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
9665
9728
|
* requestId: 'placeholder-value',
|
|
9666
|
-
* }
|
|
9729
|
+
* },
|
|
9730
|
+
* );
|
|
9667
9731
|
* console.log(res.data);
|
|
9668
9732
|
*
|
|
9669
9733
|
* // Example response
|
|
@@ -9689,15 +9753,869 @@ export namespace networkservices_v1 {
|
|
|
9689
9753
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9690
9754
|
*/
|
|
9691
9755
|
delete(
|
|
9692
|
-
params: Params$Resource$Projects$Locations$
|
|
9756
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Delete,
|
|
9693
9757
|
options: StreamMethodOptions
|
|
9694
9758
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9695
9759
|
delete(
|
|
9696
|
-
params?: Params$Resource$Projects$Locations$
|
|
9760
|
+
params?: Params$Resource$Projects$Locations$Lbrouteextensions$Delete,
|
|
9697
9761
|
options?: MethodOptions
|
|
9698
9762
|
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
9699
9763
|
delete(
|
|
9700
|
-
params: Params$Resource$Projects$Locations$
|
|
9764
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Delete,
|
|
9765
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9766
|
+
callback: BodyResponseCallback<Readable>
|
|
9767
|
+
): void;
|
|
9768
|
+
delete(
|
|
9769
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Delete,
|
|
9770
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
9771
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
9772
|
+
): void;
|
|
9773
|
+
delete(
|
|
9774
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Delete,
|
|
9775
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
9776
|
+
): void;
|
|
9777
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
9778
|
+
delete(
|
|
9779
|
+
paramsOrCallback?:
|
|
9780
|
+
| Params$Resource$Projects$Locations$Lbrouteextensions$Delete
|
|
9781
|
+
| BodyResponseCallback<Schema$Operation>
|
|
9782
|
+
| BodyResponseCallback<Readable>,
|
|
9783
|
+
optionsOrCallback?:
|
|
9784
|
+
| MethodOptions
|
|
9785
|
+
| StreamMethodOptions
|
|
9786
|
+
| BodyResponseCallback<Schema$Operation>
|
|
9787
|
+
| BodyResponseCallback<Readable>,
|
|
9788
|
+
callback?:
|
|
9789
|
+
| BodyResponseCallback<Schema$Operation>
|
|
9790
|
+
| BodyResponseCallback<Readable>
|
|
9791
|
+
):
|
|
9792
|
+
| void
|
|
9793
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
9794
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9795
|
+
let params = (paramsOrCallback ||
|
|
9796
|
+
{}) as Params$Resource$Projects$Locations$Lbrouteextensions$Delete;
|
|
9797
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9798
|
+
|
|
9799
|
+
if (typeof paramsOrCallback === 'function') {
|
|
9800
|
+
callback = paramsOrCallback;
|
|
9801
|
+
params =
|
|
9802
|
+
{} as Params$Resource$Projects$Locations$Lbrouteextensions$Delete;
|
|
9803
|
+
options = {};
|
|
9804
|
+
}
|
|
9805
|
+
|
|
9806
|
+
if (typeof optionsOrCallback === 'function') {
|
|
9807
|
+
callback = optionsOrCallback;
|
|
9808
|
+
options = {};
|
|
9809
|
+
}
|
|
9810
|
+
|
|
9811
|
+
const rootUrl =
|
|
9812
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
9813
|
+
const parameters = {
|
|
9814
|
+
options: Object.assign(
|
|
9815
|
+
{
|
|
9816
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
9817
|
+
method: 'DELETE',
|
|
9818
|
+
apiVersion: '',
|
|
9819
|
+
},
|
|
9820
|
+
options
|
|
9821
|
+
),
|
|
9822
|
+
params,
|
|
9823
|
+
requiredParams: ['name'],
|
|
9824
|
+
pathParams: ['name'],
|
|
9825
|
+
context: this.context,
|
|
9826
|
+
};
|
|
9827
|
+
if (callback) {
|
|
9828
|
+
createAPIRequest<Schema$Operation>(
|
|
9829
|
+
parameters,
|
|
9830
|
+
callback as BodyResponseCallback<unknown>
|
|
9831
|
+
);
|
|
9832
|
+
} else {
|
|
9833
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
9834
|
+
}
|
|
9835
|
+
}
|
|
9836
|
+
|
|
9837
|
+
/**
|
|
9838
|
+
* Gets details of the specified `LbRouteExtension` resource.
|
|
9839
|
+
* @example
|
|
9840
|
+
* ```js
|
|
9841
|
+
* // Before running the sample:
|
|
9842
|
+
* // - Enable the API at:
|
|
9843
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
9844
|
+
* // - Login into gcloud by running:
|
|
9845
|
+
* // ```sh
|
|
9846
|
+
* // $ gcloud auth application-default login
|
|
9847
|
+
* // ```
|
|
9848
|
+
* // - Install the npm module by running:
|
|
9849
|
+
* // ```sh
|
|
9850
|
+
* // $ npm install googleapis
|
|
9851
|
+
* // ```
|
|
9852
|
+
*
|
|
9853
|
+
* const {google} = require('googleapis');
|
|
9854
|
+
* const networkservices = google.networkservices('v1');
|
|
9855
|
+
*
|
|
9856
|
+
* async function main() {
|
|
9857
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9858
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9859
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
9860
|
+
* });
|
|
9861
|
+
*
|
|
9862
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9863
|
+
* const authClient = await auth.getClient();
|
|
9864
|
+
* google.options({auth: authClient});
|
|
9865
|
+
*
|
|
9866
|
+
* // Do the magic
|
|
9867
|
+
* const res = await networkservices.projects.locations.lbRouteExtensions.get({
|
|
9868
|
+
* // Required. A name of the `LbRouteExtension` resource to get. Must be in the format `projects/{project\}/locations/{location\}/lbRouteExtensions/{lb_route_extension\}`.
|
|
9869
|
+
* name: 'projects/my-project/locations/my-location/lbRouteExtensions/my-lbRouteExtension',
|
|
9870
|
+
* });
|
|
9871
|
+
* console.log(res.data);
|
|
9872
|
+
*
|
|
9873
|
+
* // Example response
|
|
9874
|
+
* // {
|
|
9875
|
+
* // "createTime": "my_createTime",
|
|
9876
|
+
* // "description": "my_description",
|
|
9877
|
+
* // "extensionChains": [],
|
|
9878
|
+
* // "forwardingRules": [],
|
|
9879
|
+
* // "labels": {},
|
|
9880
|
+
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
9881
|
+
* // "metadata": {},
|
|
9882
|
+
* // "name": "my_name",
|
|
9883
|
+
* // "updateTime": "my_updateTime"
|
|
9884
|
+
* // }
|
|
9885
|
+
* }
|
|
9886
|
+
*
|
|
9887
|
+
* main().catch(e => {
|
|
9888
|
+
* console.error(e);
|
|
9889
|
+
* throw e;
|
|
9890
|
+
* });
|
|
9891
|
+
*
|
|
9892
|
+
* ```
|
|
9893
|
+
*
|
|
9894
|
+
* @param params - Parameters for request
|
|
9895
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
9896
|
+
* @param callback - Optional callback that handles the response.
|
|
9897
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9898
|
+
*/
|
|
9899
|
+
get(
|
|
9900
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Get,
|
|
9901
|
+
options: StreamMethodOptions
|
|
9902
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9903
|
+
get(
|
|
9904
|
+
params?: Params$Resource$Projects$Locations$Lbrouteextensions$Get,
|
|
9905
|
+
options?: MethodOptions
|
|
9906
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$LbRouteExtension>>;
|
|
9907
|
+
get(
|
|
9908
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Get,
|
|
9909
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9910
|
+
callback: BodyResponseCallback<Readable>
|
|
9911
|
+
): void;
|
|
9912
|
+
get(
|
|
9913
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Get,
|
|
9914
|
+
options: MethodOptions | BodyResponseCallback<Schema$LbRouteExtension>,
|
|
9915
|
+
callback: BodyResponseCallback<Schema$LbRouteExtension>
|
|
9916
|
+
): void;
|
|
9917
|
+
get(
|
|
9918
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Get,
|
|
9919
|
+
callback: BodyResponseCallback<Schema$LbRouteExtension>
|
|
9920
|
+
): void;
|
|
9921
|
+
get(callback: BodyResponseCallback<Schema$LbRouteExtension>): void;
|
|
9922
|
+
get(
|
|
9923
|
+
paramsOrCallback?:
|
|
9924
|
+
| Params$Resource$Projects$Locations$Lbrouteextensions$Get
|
|
9925
|
+
| BodyResponseCallback<Schema$LbRouteExtension>
|
|
9926
|
+
| BodyResponseCallback<Readable>,
|
|
9927
|
+
optionsOrCallback?:
|
|
9928
|
+
| MethodOptions
|
|
9929
|
+
| StreamMethodOptions
|
|
9930
|
+
| BodyResponseCallback<Schema$LbRouteExtension>
|
|
9931
|
+
| BodyResponseCallback<Readable>,
|
|
9932
|
+
callback?:
|
|
9933
|
+
| BodyResponseCallback<Schema$LbRouteExtension>
|
|
9934
|
+
| BodyResponseCallback<Readable>
|
|
9935
|
+
):
|
|
9936
|
+
| void
|
|
9937
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$LbRouteExtension>>
|
|
9938
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9939
|
+
let params = (paramsOrCallback ||
|
|
9940
|
+
{}) as Params$Resource$Projects$Locations$Lbrouteextensions$Get;
|
|
9941
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9942
|
+
|
|
9943
|
+
if (typeof paramsOrCallback === 'function') {
|
|
9944
|
+
callback = paramsOrCallback;
|
|
9945
|
+
params = {} as Params$Resource$Projects$Locations$Lbrouteextensions$Get;
|
|
9946
|
+
options = {};
|
|
9947
|
+
}
|
|
9948
|
+
|
|
9949
|
+
if (typeof optionsOrCallback === 'function') {
|
|
9950
|
+
callback = optionsOrCallback;
|
|
9951
|
+
options = {};
|
|
9952
|
+
}
|
|
9953
|
+
|
|
9954
|
+
const rootUrl =
|
|
9955
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
9956
|
+
const parameters = {
|
|
9957
|
+
options: Object.assign(
|
|
9958
|
+
{
|
|
9959
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
9960
|
+
method: 'GET',
|
|
9961
|
+
apiVersion: '',
|
|
9962
|
+
},
|
|
9963
|
+
options
|
|
9964
|
+
),
|
|
9965
|
+
params,
|
|
9966
|
+
requiredParams: ['name'],
|
|
9967
|
+
pathParams: ['name'],
|
|
9968
|
+
context: this.context,
|
|
9969
|
+
};
|
|
9970
|
+
if (callback) {
|
|
9971
|
+
createAPIRequest<Schema$LbRouteExtension>(
|
|
9972
|
+
parameters,
|
|
9973
|
+
callback as BodyResponseCallback<unknown>
|
|
9974
|
+
);
|
|
9975
|
+
} else {
|
|
9976
|
+
return createAPIRequest<Schema$LbRouteExtension>(parameters);
|
|
9977
|
+
}
|
|
9978
|
+
}
|
|
9979
|
+
|
|
9980
|
+
/**
|
|
9981
|
+
* Lists `LbRouteExtension` resources in a given project and location.
|
|
9982
|
+
* @example
|
|
9983
|
+
* ```js
|
|
9984
|
+
* // Before running the sample:
|
|
9985
|
+
* // - Enable the API at:
|
|
9986
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
9987
|
+
* // - Login into gcloud by running:
|
|
9988
|
+
* // ```sh
|
|
9989
|
+
* // $ gcloud auth application-default login
|
|
9990
|
+
* // ```
|
|
9991
|
+
* // - Install the npm module by running:
|
|
9992
|
+
* // ```sh
|
|
9993
|
+
* // $ npm install googleapis
|
|
9994
|
+
* // ```
|
|
9995
|
+
*
|
|
9996
|
+
* const {google} = require('googleapis');
|
|
9997
|
+
* const networkservices = google.networkservices('v1');
|
|
9998
|
+
*
|
|
9999
|
+
* async function main() {
|
|
10000
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10001
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10002
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
10003
|
+
* });
|
|
10004
|
+
*
|
|
10005
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10006
|
+
* const authClient = await auth.getClient();
|
|
10007
|
+
* google.options({auth: authClient});
|
|
10008
|
+
*
|
|
10009
|
+
* // Do the magic
|
|
10010
|
+
* const res = await networkservices.projects.locations.lbRouteExtensions.list({
|
|
10011
|
+
* // Optional. Filtering results.
|
|
10012
|
+
* filter: 'placeholder-value',
|
|
10013
|
+
* // Optional. Hint about how to order the results.
|
|
10014
|
+
* orderBy: 'placeholder-value',
|
|
10015
|
+
* // Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
|
|
10016
|
+
* pageSize: 'placeholder-value',
|
|
10017
|
+
* // Optional. A token identifying a page of results that the server returns.
|
|
10018
|
+
* pageToken: 'placeholder-value',
|
|
10019
|
+
* // Required. The project and location from which the `LbRouteExtension` resources are listed. These values are specified in the following format: `projects/{project\}/locations/{location\}`.
|
|
10020
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
10021
|
+
* });
|
|
10022
|
+
* console.log(res.data);
|
|
10023
|
+
*
|
|
10024
|
+
* // Example response
|
|
10025
|
+
* // {
|
|
10026
|
+
* // "lbRouteExtensions": [],
|
|
10027
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
10028
|
+
* // "unreachable": []
|
|
10029
|
+
* // }
|
|
10030
|
+
* }
|
|
10031
|
+
*
|
|
10032
|
+
* main().catch(e => {
|
|
10033
|
+
* console.error(e);
|
|
10034
|
+
* throw e;
|
|
10035
|
+
* });
|
|
10036
|
+
*
|
|
10037
|
+
* ```
|
|
10038
|
+
*
|
|
10039
|
+
* @param params - Parameters for request
|
|
10040
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
10041
|
+
* @param callback - Optional callback that handles the response.
|
|
10042
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
10043
|
+
*/
|
|
10044
|
+
list(
|
|
10045
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$List,
|
|
10046
|
+
options: StreamMethodOptions
|
|
10047
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
10048
|
+
list(
|
|
10049
|
+
params?: Params$Resource$Projects$Locations$Lbrouteextensions$List,
|
|
10050
|
+
options?: MethodOptions
|
|
10051
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListLbRouteExtensionsResponse>>;
|
|
10052
|
+
list(
|
|
10053
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$List,
|
|
10054
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
10055
|
+
callback: BodyResponseCallback<Readable>
|
|
10056
|
+
): void;
|
|
10057
|
+
list(
|
|
10058
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$List,
|
|
10059
|
+
options:
|
|
10060
|
+
| MethodOptions
|
|
10061
|
+
| BodyResponseCallback<Schema$ListLbRouteExtensionsResponse>,
|
|
10062
|
+
callback: BodyResponseCallback<Schema$ListLbRouteExtensionsResponse>
|
|
10063
|
+
): void;
|
|
10064
|
+
list(
|
|
10065
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$List,
|
|
10066
|
+
callback: BodyResponseCallback<Schema$ListLbRouteExtensionsResponse>
|
|
10067
|
+
): void;
|
|
10068
|
+
list(
|
|
10069
|
+
callback: BodyResponseCallback<Schema$ListLbRouteExtensionsResponse>
|
|
10070
|
+
): void;
|
|
10071
|
+
list(
|
|
10072
|
+
paramsOrCallback?:
|
|
10073
|
+
| Params$Resource$Projects$Locations$Lbrouteextensions$List
|
|
10074
|
+
| BodyResponseCallback<Schema$ListLbRouteExtensionsResponse>
|
|
10075
|
+
| BodyResponseCallback<Readable>,
|
|
10076
|
+
optionsOrCallback?:
|
|
10077
|
+
| MethodOptions
|
|
10078
|
+
| StreamMethodOptions
|
|
10079
|
+
| BodyResponseCallback<Schema$ListLbRouteExtensionsResponse>
|
|
10080
|
+
| BodyResponseCallback<Readable>,
|
|
10081
|
+
callback?:
|
|
10082
|
+
| BodyResponseCallback<Schema$ListLbRouteExtensionsResponse>
|
|
10083
|
+
| BodyResponseCallback<Readable>
|
|
10084
|
+
):
|
|
10085
|
+
| void
|
|
10086
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListLbRouteExtensionsResponse>>
|
|
10087
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
10088
|
+
let params = (paramsOrCallback ||
|
|
10089
|
+
{}) as Params$Resource$Projects$Locations$Lbrouteextensions$List;
|
|
10090
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
10091
|
+
|
|
10092
|
+
if (typeof paramsOrCallback === 'function') {
|
|
10093
|
+
callback = paramsOrCallback;
|
|
10094
|
+
params =
|
|
10095
|
+
{} as Params$Resource$Projects$Locations$Lbrouteextensions$List;
|
|
10096
|
+
options = {};
|
|
10097
|
+
}
|
|
10098
|
+
|
|
10099
|
+
if (typeof optionsOrCallback === 'function') {
|
|
10100
|
+
callback = optionsOrCallback;
|
|
10101
|
+
options = {};
|
|
10102
|
+
}
|
|
10103
|
+
|
|
10104
|
+
const rootUrl =
|
|
10105
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
10106
|
+
const parameters = {
|
|
10107
|
+
options: Object.assign(
|
|
10108
|
+
{
|
|
10109
|
+
url: (rootUrl + '/v1/{+parent}/lbRouteExtensions').replace(
|
|
10110
|
+
/([^:]\/)\/+/g,
|
|
10111
|
+
'$1'
|
|
10112
|
+
),
|
|
10113
|
+
method: 'GET',
|
|
10114
|
+
apiVersion: '',
|
|
10115
|
+
},
|
|
10116
|
+
options
|
|
10117
|
+
),
|
|
10118
|
+
params,
|
|
10119
|
+
requiredParams: ['parent'],
|
|
10120
|
+
pathParams: ['parent'],
|
|
10121
|
+
context: this.context,
|
|
10122
|
+
};
|
|
10123
|
+
if (callback) {
|
|
10124
|
+
createAPIRequest<Schema$ListLbRouteExtensionsResponse>(
|
|
10125
|
+
parameters,
|
|
10126
|
+
callback as BodyResponseCallback<unknown>
|
|
10127
|
+
);
|
|
10128
|
+
} else {
|
|
10129
|
+
return createAPIRequest<Schema$ListLbRouteExtensionsResponse>(
|
|
10130
|
+
parameters
|
|
10131
|
+
);
|
|
10132
|
+
}
|
|
10133
|
+
}
|
|
10134
|
+
|
|
10135
|
+
/**
|
|
10136
|
+
* Updates the parameters of the specified `LbRouteExtension` resource.
|
|
10137
|
+
* @example
|
|
10138
|
+
* ```js
|
|
10139
|
+
* // Before running the sample:
|
|
10140
|
+
* // - Enable the API at:
|
|
10141
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
10142
|
+
* // - Login into gcloud by running:
|
|
10143
|
+
* // ```sh
|
|
10144
|
+
* // $ gcloud auth application-default login
|
|
10145
|
+
* // ```
|
|
10146
|
+
* // - Install the npm module by running:
|
|
10147
|
+
* // ```sh
|
|
10148
|
+
* // $ npm install googleapis
|
|
10149
|
+
* // ```
|
|
10150
|
+
*
|
|
10151
|
+
* const {google} = require('googleapis');
|
|
10152
|
+
* const networkservices = google.networkservices('v1');
|
|
10153
|
+
*
|
|
10154
|
+
* async function main() {
|
|
10155
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10156
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10157
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
10158
|
+
* });
|
|
10159
|
+
*
|
|
10160
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10161
|
+
* const authClient = await auth.getClient();
|
|
10162
|
+
* google.options({auth: authClient});
|
|
10163
|
+
*
|
|
10164
|
+
* // Do the magic
|
|
10165
|
+
* const res = await networkservices.projects.locations.lbRouteExtensions.patch({
|
|
10166
|
+
* // Required. Identifier. Name of the `LbRouteExtension` resource in the following format: `projects/{project\}/locations/{location\}/lbRouteExtensions/{lb_route_extension\}`.
|
|
10167
|
+
* name: 'projects/my-project/locations/my-location/lbRouteExtensions/my-lbRouteExtension',
|
|
10168
|
+
* // Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server ignores the second request This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
10169
|
+
* requestId: 'placeholder-value',
|
|
10170
|
+
* // 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.
|
|
10171
|
+
* updateMask: 'placeholder-value',
|
|
10172
|
+
*
|
|
10173
|
+
* // Request body metadata
|
|
10174
|
+
* requestBody: {
|
|
10175
|
+
* // request body parameters
|
|
10176
|
+
* // {
|
|
10177
|
+
* // "createTime": "my_createTime",
|
|
10178
|
+
* // "description": "my_description",
|
|
10179
|
+
* // "extensionChains": [],
|
|
10180
|
+
* // "forwardingRules": [],
|
|
10181
|
+
* // "labels": {},
|
|
10182
|
+
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
10183
|
+
* // "metadata": {},
|
|
10184
|
+
* // "name": "my_name",
|
|
10185
|
+
* // "updateTime": "my_updateTime"
|
|
10186
|
+
* // }
|
|
10187
|
+
* },
|
|
10188
|
+
* });
|
|
10189
|
+
* console.log(res.data);
|
|
10190
|
+
*
|
|
10191
|
+
* // Example response
|
|
10192
|
+
* // {
|
|
10193
|
+
* // "done": false,
|
|
10194
|
+
* // "error": {},
|
|
10195
|
+
* // "metadata": {},
|
|
10196
|
+
* // "name": "my_name",
|
|
10197
|
+
* // "response": {}
|
|
10198
|
+
* // }
|
|
10199
|
+
* }
|
|
10200
|
+
*
|
|
10201
|
+
* main().catch(e => {
|
|
10202
|
+
* console.error(e);
|
|
10203
|
+
* throw e;
|
|
10204
|
+
* });
|
|
10205
|
+
*
|
|
10206
|
+
* ```
|
|
10207
|
+
*
|
|
10208
|
+
* @param params - Parameters for request
|
|
10209
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
10210
|
+
* @param callback - Optional callback that handles the response.
|
|
10211
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
10212
|
+
*/
|
|
10213
|
+
patch(
|
|
10214
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Patch,
|
|
10215
|
+
options: StreamMethodOptions
|
|
10216
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
10217
|
+
patch(
|
|
10218
|
+
params?: Params$Resource$Projects$Locations$Lbrouteextensions$Patch,
|
|
10219
|
+
options?: MethodOptions
|
|
10220
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
10221
|
+
patch(
|
|
10222
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Patch,
|
|
10223
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
10224
|
+
callback: BodyResponseCallback<Readable>
|
|
10225
|
+
): void;
|
|
10226
|
+
patch(
|
|
10227
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Patch,
|
|
10228
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
10229
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
10230
|
+
): void;
|
|
10231
|
+
patch(
|
|
10232
|
+
params: Params$Resource$Projects$Locations$Lbrouteextensions$Patch,
|
|
10233
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
10234
|
+
): void;
|
|
10235
|
+
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
10236
|
+
patch(
|
|
10237
|
+
paramsOrCallback?:
|
|
10238
|
+
| Params$Resource$Projects$Locations$Lbrouteextensions$Patch
|
|
10239
|
+
| BodyResponseCallback<Schema$Operation>
|
|
10240
|
+
| BodyResponseCallback<Readable>,
|
|
10241
|
+
optionsOrCallback?:
|
|
10242
|
+
| MethodOptions
|
|
10243
|
+
| StreamMethodOptions
|
|
10244
|
+
| BodyResponseCallback<Schema$Operation>
|
|
10245
|
+
| BodyResponseCallback<Readable>,
|
|
10246
|
+
callback?:
|
|
10247
|
+
| BodyResponseCallback<Schema$Operation>
|
|
10248
|
+
| BodyResponseCallback<Readable>
|
|
10249
|
+
):
|
|
10250
|
+
| void
|
|
10251
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
10252
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
10253
|
+
let params = (paramsOrCallback ||
|
|
10254
|
+
{}) as Params$Resource$Projects$Locations$Lbrouteextensions$Patch;
|
|
10255
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
10256
|
+
|
|
10257
|
+
if (typeof paramsOrCallback === 'function') {
|
|
10258
|
+
callback = paramsOrCallback;
|
|
10259
|
+
params =
|
|
10260
|
+
{} as Params$Resource$Projects$Locations$Lbrouteextensions$Patch;
|
|
10261
|
+
options = {};
|
|
10262
|
+
}
|
|
10263
|
+
|
|
10264
|
+
if (typeof optionsOrCallback === 'function') {
|
|
10265
|
+
callback = optionsOrCallback;
|
|
10266
|
+
options = {};
|
|
10267
|
+
}
|
|
10268
|
+
|
|
10269
|
+
const rootUrl =
|
|
10270
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
10271
|
+
const parameters = {
|
|
10272
|
+
options: Object.assign(
|
|
10273
|
+
{
|
|
10274
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
10275
|
+
method: 'PATCH',
|
|
10276
|
+
apiVersion: '',
|
|
10277
|
+
},
|
|
10278
|
+
options
|
|
10279
|
+
),
|
|
10280
|
+
params,
|
|
10281
|
+
requiredParams: ['name'],
|
|
10282
|
+
pathParams: ['name'],
|
|
10283
|
+
context: this.context,
|
|
10284
|
+
};
|
|
10285
|
+
if (callback) {
|
|
10286
|
+
createAPIRequest<Schema$Operation>(
|
|
10287
|
+
parameters,
|
|
10288
|
+
callback as BodyResponseCallback<unknown>
|
|
10289
|
+
);
|
|
10290
|
+
} else {
|
|
10291
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
10292
|
+
}
|
|
10293
|
+
}
|
|
10294
|
+
}
|
|
10295
|
+
|
|
10296
|
+
export interface Params$Resource$Projects$Locations$Lbrouteextensions$Create
|
|
10297
|
+
extends StandardParameters {
|
|
10298
|
+
/**
|
|
10299
|
+
* Required. User-provided ID of the `LbRouteExtension` resource to be created.
|
|
10300
|
+
*/
|
|
10301
|
+
lbRouteExtensionId?: string;
|
|
10302
|
+
/**
|
|
10303
|
+
* Required. The parent resource of the `LbRouteExtension` resource. Must be in the format `projects/{project\}/locations/{location\}`.
|
|
10304
|
+
*/
|
|
10305
|
+
parent?: string;
|
|
10306
|
+
/**
|
|
10307
|
+
* Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server ignores the second request This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
10308
|
+
*/
|
|
10309
|
+
requestId?: string;
|
|
10310
|
+
|
|
10311
|
+
/**
|
|
10312
|
+
* Request body metadata
|
|
10313
|
+
*/
|
|
10314
|
+
requestBody?: Schema$LbRouteExtension;
|
|
10315
|
+
}
|
|
10316
|
+
export interface Params$Resource$Projects$Locations$Lbrouteextensions$Delete
|
|
10317
|
+
extends StandardParameters {
|
|
10318
|
+
/**
|
|
10319
|
+
* Required. The name of the `LbRouteExtension` resource to delete. Must be in the format `projects/{project\}/locations/{location\}/lbRouteExtensions/{lb_route_extension\}`.
|
|
10320
|
+
*/
|
|
10321
|
+
name?: string;
|
|
10322
|
+
/**
|
|
10323
|
+
* Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server ignores the second request This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
10324
|
+
*/
|
|
10325
|
+
requestId?: string;
|
|
10326
|
+
}
|
|
10327
|
+
export interface Params$Resource$Projects$Locations$Lbrouteextensions$Get
|
|
10328
|
+
extends StandardParameters {
|
|
10329
|
+
/**
|
|
10330
|
+
* Required. A name of the `LbRouteExtension` resource to get. Must be in the format `projects/{project\}/locations/{location\}/lbRouteExtensions/{lb_route_extension\}`.
|
|
10331
|
+
*/
|
|
10332
|
+
name?: string;
|
|
10333
|
+
}
|
|
10334
|
+
export interface Params$Resource$Projects$Locations$Lbrouteextensions$List
|
|
10335
|
+
extends StandardParameters {
|
|
10336
|
+
/**
|
|
10337
|
+
* Optional. Filtering results.
|
|
10338
|
+
*/
|
|
10339
|
+
filter?: string;
|
|
10340
|
+
/**
|
|
10341
|
+
* Optional. Hint about how to order the results.
|
|
10342
|
+
*/
|
|
10343
|
+
orderBy?: string;
|
|
10344
|
+
/**
|
|
10345
|
+
* Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
|
|
10346
|
+
*/
|
|
10347
|
+
pageSize?: number;
|
|
10348
|
+
/**
|
|
10349
|
+
* Optional. A token identifying a page of results that the server returns.
|
|
10350
|
+
*/
|
|
10351
|
+
pageToken?: string;
|
|
10352
|
+
/**
|
|
10353
|
+
* Required. The project and location from which the `LbRouteExtension` resources are listed. These values are specified in the following format: `projects/{project\}/locations/{location\}`.
|
|
10354
|
+
*/
|
|
10355
|
+
parent?: string;
|
|
10356
|
+
}
|
|
10357
|
+
export interface Params$Resource$Projects$Locations$Lbrouteextensions$Patch
|
|
10358
|
+
extends StandardParameters {
|
|
10359
|
+
/**
|
|
10360
|
+
* Required. Identifier. Name of the `LbRouteExtension` resource in the following format: `projects/{project\}/locations/{location\}/lbRouteExtensions/{lb_route_extension\}`.
|
|
10361
|
+
*/
|
|
10362
|
+
name?: string;
|
|
10363
|
+
/**
|
|
10364
|
+
* Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server ignores the second request This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
10365
|
+
*/
|
|
10366
|
+
requestId?: string;
|
|
10367
|
+
/**
|
|
10368
|
+
* 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.
|
|
10369
|
+
*/
|
|
10370
|
+
updateMask?: string;
|
|
10371
|
+
|
|
10372
|
+
/**
|
|
10373
|
+
* Request body metadata
|
|
10374
|
+
*/
|
|
10375
|
+
requestBody?: Schema$LbRouteExtension;
|
|
10376
|
+
}
|
|
10377
|
+
|
|
10378
|
+
export class Resource$Projects$Locations$Lbtrafficextensions {
|
|
10379
|
+
context: APIRequestContext;
|
|
10380
|
+
constructor(context: APIRequestContext) {
|
|
10381
|
+
this.context = context;
|
|
10382
|
+
}
|
|
10383
|
+
|
|
10384
|
+
/**
|
|
10385
|
+
* Creates a new `LbTrafficExtension` resource in a given project and location.
|
|
10386
|
+
* @example
|
|
10387
|
+
* ```js
|
|
10388
|
+
* // Before running the sample:
|
|
10389
|
+
* // - Enable the API at:
|
|
10390
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
10391
|
+
* // - Login into gcloud by running:
|
|
10392
|
+
* // ```sh
|
|
10393
|
+
* // $ gcloud auth application-default login
|
|
10394
|
+
* // ```
|
|
10395
|
+
* // - Install the npm module by running:
|
|
10396
|
+
* // ```sh
|
|
10397
|
+
* // $ npm install googleapis
|
|
10398
|
+
* // ```
|
|
10399
|
+
*
|
|
10400
|
+
* const {google} = require('googleapis');
|
|
10401
|
+
* const networkservices = google.networkservices('v1');
|
|
10402
|
+
*
|
|
10403
|
+
* async function main() {
|
|
10404
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10405
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10406
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
10407
|
+
* });
|
|
10408
|
+
*
|
|
10409
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10410
|
+
* const authClient = await auth.getClient();
|
|
10411
|
+
* google.options({auth: authClient});
|
|
10412
|
+
*
|
|
10413
|
+
* // Do the magic
|
|
10414
|
+
* const res =
|
|
10415
|
+
* await networkservices.projects.locations.lbTrafficExtensions.create({
|
|
10416
|
+
* // Required. User-provided ID of the `LbTrafficExtension` resource to be created.
|
|
10417
|
+
* lbTrafficExtensionId: 'placeholder-value',
|
|
10418
|
+
* // Required. The parent resource of the `LbTrafficExtension` resource. Must be in the format `projects/{project\}/locations/{location\}`.
|
|
10419
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
10420
|
+
* // Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server ignores the second request This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
10421
|
+
* requestId: 'placeholder-value',
|
|
10422
|
+
*
|
|
10423
|
+
* // Request body metadata
|
|
10424
|
+
* requestBody: {
|
|
10425
|
+
* // request body parameters
|
|
10426
|
+
* // {
|
|
10427
|
+
* // "createTime": "my_createTime",
|
|
10428
|
+
* // "description": "my_description",
|
|
10429
|
+
* // "extensionChains": [],
|
|
10430
|
+
* // "forwardingRules": [],
|
|
10431
|
+
* // "labels": {},
|
|
10432
|
+
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
10433
|
+
* // "metadata": {},
|
|
10434
|
+
* // "name": "my_name",
|
|
10435
|
+
* // "updateTime": "my_updateTime"
|
|
10436
|
+
* // }
|
|
10437
|
+
* },
|
|
10438
|
+
* });
|
|
10439
|
+
* console.log(res.data);
|
|
10440
|
+
*
|
|
10441
|
+
* // Example response
|
|
10442
|
+
* // {
|
|
10443
|
+
* // "done": false,
|
|
10444
|
+
* // "error": {},
|
|
10445
|
+
* // "metadata": {},
|
|
10446
|
+
* // "name": "my_name",
|
|
10447
|
+
* // "response": {}
|
|
10448
|
+
* // }
|
|
10449
|
+
* }
|
|
10450
|
+
*
|
|
10451
|
+
* main().catch(e => {
|
|
10452
|
+
* console.error(e);
|
|
10453
|
+
* throw e;
|
|
10454
|
+
* });
|
|
10455
|
+
*
|
|
10456
|
+
* ```
|
|
10457
|
+
*
|
|
10458
|
+
* @param params - Parameters for request
|
|
10459
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
10460
|
+
* @param callback - Optional callback that handles the response.
|
|
10461
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
10462
|
+
*/
|
|
10463
|
+
create(
|
|
10464
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Create,
|
|
10465
|
+
options: StreamMethodOptions
|
|
10466
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
10467
|
+
create(
|
|
10468
|
+
params?: Params$Resource$Projects$Locations$Lbtrafficextensions$Create,
|
|
10469
|
+
options?: MethodOptions
|
|
10470
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
10471
|
+
create(
|
|
10472
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Create,
|
|
10473
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
10474
|
+
callback: BodyResponseCallback<Readable>
|
|
10475
|
+
): void;
|
|
10476
|
+
create(
|
|
10477
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Create,
|
|
10478
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
10479
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
10480
|
+
): void;
|
|
10481
|
+
create(
|
|
10482
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Create,
|
|
10483
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
10484
|
+
): void;
|
|
10485
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
10486
|
+
create(
|
|
10487
|
+
paramsOrCallback?:
|
|
10488
|
+
| Params$Resource$Projects$Locations$Lbtrafficextensions$Create
|
|
10489
|
+
| BodyResponseCallback<Schema$Operation>
|
|
10490
|
+
| BodyResponseCallback<Readable>,
|
|
10491
|
+
optionsOrCallback?:
|
|
10492
|
+
| MethodOptions
|
|
10493
|
+
| StreamMethodOptions
|
|
10494
|
+
| BodyResponseCallback<Schema$Operation>
|
|
10495
|
+
| BodyResponseCallback<Readable>,
|
|
10496
|
+
callback?:
|
|
10497
|
+
| BodyResponseCallback<Schema$Operation>
|
|
10498
|
+
| BodyResponseCallback<Readable>
|
|
10499
|
+
):
|
|
10500
|
+
| void
|
|
10501
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
10502
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
10503
|
+
let params = (paramsOrCallback ||
|
|
10504
|
+
{}) as Params$Resource$Projects$Locations$Lbtrafficextensions$Create;
|
|
10505
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
10506
|
+
|
|
10507
|
+
if (typeof paramsOrCallback === 'function') {
|
|
10508
|
+
callback = paramsOrCallback;
|
|
10509
|
+
params =
|
|
10510
|
+
{} as Params$Resource$Projects$Locations$Lbtrafficextensions$Create;
|
|
10511
|
+
options = {};
|
|
10512
|
+
}
|
|
10513
|
+
|
|
10514
|
+
if (typeof optionsOrCallback === 'function') {
|
|
10515
|
+
callback = optionsOrCallback;
|
|
10516
|
+
options = {};
|
|
10517
|
+
}
|
|
10518
|
+
|
|
10519
|
+
const rootUrl =
|
|
10520
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
10521
|
+
const parameters = {
|
|
10522
|
+
options: Object.assign(
|
|
10523
|
+
{
|
|
10524
|
+
url: (rootUrl + '/v1/{+parent}/lbTrafficExtensions').replace(
|
|
10525
|
+
/([^:]\/)\/+/g,
|
|
10526
|
+
'$1'
|
|
10527
|
+
),
|
|
10528
|
+
method: 'POST',
|
|
10529
|
+
apiVersion: '',
|
|
10530
|
+
},
|
|
10531
|
+
options
|
|
10532
|
+
),
|
|
10533
|
+
params,
|
|
10534
|
+
requiredParams: ['parent'],
|
|
10535
|
+
pathParams: ['parent'],
|
|
10536
|
+
context: this.context,
|
|
10537
|
+
};
|
|
10538
|
+
if (callback) {
|
|
10539
|
+
createAPIRequest<Schema$Operation>(
|
|
10540
|
+
parameters,
|
|
10541
|
+
callback as BodyResponseCallback<unknown>
|
|
10542
|
+
);
|
|
10543
|
+
} else {
|
|
10544
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
10545
|
+
}
|
|
10546
|
+
}
|
|
10547
|
+
|
|
10548
|
+
/**
|
|
10549
|
+
* Deletes the specified `LbTrafficExtension` resource.
|
|
10550
|
+
* @example
|
|
10551
|
+
* ```js
|
|
10552
|
+
* // Before running the sample:
|
|
10553
|
+
* // - Enable the API at:
|
|
10554
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
10555
|
+
* // - Login into gcloud by running:
|
|
10556
|
+
* // ```sh
|
|
10557
|
+
* // $ gcloud auth application-default login
|
|
10558
|
+
* // ```
|
|
10559
|
+
* // - Install the npm module by running:
|
|
10560
|
+
* // ```sh
|
|
10561
|
+
* // $ npm install googleapis
|
|
10562
|
+
* // ```
|
|
10563
|
+
*
|
|
10564
|
+
* const {google} = require('googleapis');
|
|
10565
|
+
* const networkservices = google.networkservices('v1');
|
|
10566
|
+
*
|
|
10567
|
+
* async function main() {
|
|
10568
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10569
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10570
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
10571
|
+
* });
|
|
10572
|
+
*
|
|
10573
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10574
|
+
* const authClient = await auth.getClient();
|
|
10575
|
+
* google.options({auth: authClient});
|
|
10576
|
+
*
|
|
10577
|
+
* // Do the magic
|
|
10578
|
+
* const res =
|
|
10579
|
+
* await networkservices.projects.locations.lbTrafficExtensions.delete({
|
|
10580
|
+
* // Required. The name of the `LbTrafficExtension` resource to delete. Must be in the format `projects/{project\}/locations/{location\}/lbTrafficExtensions/{lb_traffic_extension\}`.
|
|
10581
|
+
* name: 'projects/my-project/locations/my-location/lbTrafficExtensions/my-lbTrafficExtension',
|
|
10582
|
+
* // Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server ignores the second request This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
|
10583
|
+
* requestId: 'placeholder-value',
|
|
10584
|
+
* });
|
|
10585
|
+
* console.log(res.data);
|
|
10586
|
+
*
|
|
10587
|
+
* // Example response
|
|
10588
|
+
* // {
|
|
10589
|
+
* // "done": false,
|
|
10590
|
+
* // "error": {},
|
|
10591
|
+
* // "metadata": {},
|
|
10592
|
+
* // "name": "my_name",
|
|
10593
|
+
* // "response": {}
|
|
10594
|
+
* // }
|
|
10595
|
+
* }
|
|
10596
|
+
*
|
|
10597
|
+
* main().catch(e => {
|
|
10598
|
+
* console.error(e);
|
|
10599
|
+
* throw e;
|
|
10600
|
+
* });
|
|
10601
|
+
*
|
|
10602
|
+
* ```
|
|
10603
|
+
*
|
|
10604
|
+
* @param params - Parameters for request
|
|
10605
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
10606
|
+
* @param callback - Optional callback that handles the response.
|
|
10607
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
10608
|
+
*/
|
|
10609
|
+
delete(
|
|
10610
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Delete,
|
|
10611
|
+
options: StreamMethodOptions
|
|
10612
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
10613
|
+
delete(
|
|
10614
|
+
params?: Params$Resource$Projects$Locations$Lbtrafficextensions$Delete,
|
|
10615
|
+
options?: MethodOptions
|
|
10616
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
10617
|
+
delete(
|
|
10618
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Delete,
|
|
9701
10619
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9702
10620
|
callback: BodyResponseCallback<Readable>
|
|
9703
10621
|
): void;
|
|
@@ -11908,13 +12826,16 @@ export namespace networkservices_v1 {
|
|
|
11908
12826
|
* pageSize: 'placeholder-value',
|
|
11909
12827
|
* // The standard list page token.
|
|
11910
12828
|
* pageToken: 'placeholder-value',
|
|
12829
|
+
* // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
|
|
12830
|
+
* returnPartialSuccess: 'placeholder-value',
|
|
11911
12831
|
* });
|
|
11912
12832
|
* console.log(res.data);
|
|
11913
12833
|
*
|
|
11914
12834
|
* // Example response
|
|
11915
12835
|
* // {
|
|
11916
12836
|
* // "nextPageToken": "my_nextPageToken",
|
|
11917
|
-
* // "operations": []
|
|
12837
|
+
* // "operations": [],
|
|
12838
|
+
* // "unreachable": []
|
|
11918
12839
|
* // }
|
|
11919
12840
|
* }
|
|
11920
12841
|
*
|
|
@@ -12061,6 +12982,10 @@ export namespace networkservices_v1 {
|
|
|
12061
12982
|
* The standard list page token.
|
|
12062
12983
|
*/
|
|
12063
12984
|
pageToken?: string;
|
|
12985
|
+
/**
|
|
12986
|
+
* When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.
|
|
12987
|
+
*/
|
|
12988
|
+
returnPartialSuccess?: boolean;
|
|
12064
12989
|
}
|
|
12065
12990
|
|
|
12066
12991
|
export class Resource$Projects$Locations$Servicebindings {
|