@googleapis/networkservices 29.0.1 → 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 +186 -0
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/v1.d.ts +529 -7
- package/build/v1.js +218 -1
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +523 -9
- package/build/v1beta1.js +213 -1
- package/build/v1beta1.js.map +1 -1
- package/package.json +4 -4
- package/v1.ts +1087 -162
- package/v1beta1.ts +1087 -173
package/v1beta1.ts
CHANGED
|
@@ -273,7 +273,7 @@ export namespace networkservices_v1beta1 {
|
|
|
273
273
|
*/
|
|
274
274
|
export interface Schema$ExtensionChainExtension {
|
|
275
275
|
/**
|
|
276
|
-
* Optional. When set to `TRUE`, the response from an extension service is allowed to set the `com.google.envoy.dynamic_forwarding` namespace in the dynamic metadata. This field is not supported for plugin extensions. Setting it results in a validation error.
|
|
276
|
+
* Optional. When set to `TRUE`, the response from an extension service is allowed to set the `com.google.envoy.dynamic_forwarding` namespace in the dynamic metadata. This field is not supported for plugin extensions or AuthzExtensions. Setting it results in a validation error.
|
|
277
277
|
*/
|
|
278
278
|
allowDynamicForwarding?: boolean | null;
|
|
279
279
|
/**
|
|
@@ -289,11 +289,11 @@ export namespace networkservices_v1beta1 {
|
|
|
289
289
|
*/
|
|
290
290
|
forwardHeaders?: string[] | null;
|
|
291
291
|
/**
|
|
292
|
-
* 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.
|
|
292
|
+
* 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.
|
|
293
293
|
*/
|
|
294
294
|
metadata?: {[key: string]: any} | null;
|
|
295
295
|
/**
|
|
296
|
-
*
|
|
296
|
+
* 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.
|
|
297
297
|
*/
|
|
298
298
|
name?: string | null;
|
|
299
299
|
/**
|
|
@@ -301,7 +301,7 @@ export namespace networkservices_v1beta1 {
|
|
|
301
301
|
*/
|
|
302
302
|
requestBodySendMode?: string | null;
|
|
303
303
|
/**
|
|
304
|
-
* Optional. Configures the send mode for response processing. If unspecified, 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`.
|
|
304
|
+
* 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`.
|
|
305
305
|
*/
|
|
306
306
|
responseBodySendMode?: string | null;
|
|
307
307
|
/**
|
|
@@ -309,7 +309,7 @@ export namespace networkservices_v1beta1 {
|
|
|
309
309
|
*/
|
|
310
310
|
service?: string | null;
|
|
311
311
|
/**
|
|
312
|
-
* 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.
|
|
312
|
+
* 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.
|
|
313
313
|
*/
|
|
314
314
|
supportedEvents?: string[] | null;
|
|
315
315
|
/**
|
|
@@ -1149,6 +1149,43 @@ export namespace networkservices_v1beta1 {
|
|
|
1149
1149
|
*/
|
|
1150
1150
|
updateTime?: string | null;
|
|
1151
1151
|
}
|
|
1152
|
+
/**
|
|
1153
|
+
* `LbTcpExtension` is a resource that allows traffic forwarding to different backend services to make allow/deny decisions on TCP connections for all L7 Load Balancers within a network. Currently only internal load-balancers are supported.
|
|
1154
|
+
*/
|
|
1155
|
+
export interface Schema$LbTcpExtension {
|
|
1156
|
+
/**
|
|
1157
|
+
* Output only. The timestamp when the resource was created.
|
|
1158
|
+
*/
|
|
1159
|
+
createTime?: string | null;
|
|
1160
|
+
/**
|
|
1161
|
+
* Optional. A human-readable description of the resource.
|
|
1162
|
+
*/
|
|
1163
|
+
description?: string | null;
|
|
1164
|
+
/**
|
|
1165
|
+
* 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.
|
|
1166
|
+
*/
|
|
1167
|
+
extensionChains?: Schema$ExtensionChain[];
|
|
1168
|
+
/**
|
|
1169
|
+
* Optional. Set of labels associated with the `LbTcpExtension` resource. The format must comply with [the requirements for labels](/compute/docs/labeling-resources#requirements) for Google Cloud resources.
|
|
1170
|
+
*/
|
|
1171
|
+
labels?: {[key: string]: string} | null;
|
|
1172
|
+
/**
|
|
1173
|
+
* Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`. For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).
|
|
1174
|
+
*/
|
|
1175
|
+
loadBalancingScheme?: string | null;
|
|
1176
|
+
/**
|
|
1177
|
+
* Required. Identifier. Name of the `LbTcpExtension` resource in the following format: `projects/{project\}/locations/{location\}/LbTcpExtension/{lb_tcp_extension\}`
|
|
1178
|
+
*/
|
|
1179
|
+
name?: string | null;
|
|
1180
|
+
/**
|
|
1181
|
+
* Optional. If set, this `LbTcpExtension` resource applies to all `ForwardingRule` resources in these VPC networks. Values should be relative resource names identifying VPC networks, for example `projects/x/global/networks/network-1`. Currently limited to 1 network per resource. Limited to 1 network per resource.
|
|
1182
|
+
*/
|
|
1183
|
+
networks?: string[] | null;
|
|
1184
|
+
/**
|
|
1185
|
+
* Output only. The timestamp when the resource was updated.
|
|
1186
|
+
*/
|
|
1187
|
+
updateTime?: string | null;
|
|
1188
|
+
}
|
|
1152
1189
|
/**
|
|
1153
1190
|
* `LbTrafficExtension` is a resource that lets the extension service modify the headers and payloads of both requests and responses without impacting the choice of backend services or any other security policies associated with the backend service.
|
|
1154
1191
|
*/
|
|
@@ -1326,6 +1363,23 @@ export namespace networkservices_v1beta1 {
|
|
|
1326
1363
|
*/
|
|
1327
1364
|
unreachable?: string[] | null;
|
|
1328
1365
|
}
|
|
1366
|
+
/**
|
|
1367
|
+
* Message for response to listing `LbTcpExtension` resources.
|
|
1368
|
+
*/
|
|
1369
|
+
export interface Schema$ListLbTcpExtensionsResponse {
|
|
1370
|
+
/**
|
|
1371
|
+
* The list of `LbTcpExtension` resources.
|
|
1372
|
+
*/
|
|
1373
|
+
lbTcpExtensions?: Schema$LbTcpExtension[];
|
|
1374
|
+
/**
|
|
1375
|
+
* A token identifying a page of results that the server returns.
|
|
1376
|
+
*/
|
|
1377
|
+
nextPageToken?: string | null;
|
|
1378
|
+
/**
|
|
1379
|
+
* Locations that could not be reached.
|
|
1380
|
+
*/
|
|
1381
|
+
unreachable?: string[] | null;
|
|
1382
|
+
}
|
|
1329
1383
|
/**
|
|
1330
1384
|
* Message for response to listing `LbTrafficExtension` resources.
|
|
1331
1385
|
*/
|
|
@@ -1402,6 +1456,10 @@ export namespace networkservices_v1beta1 {
|
|
|
1402
1456
|
* A list of operations that matches the specified filter in the request.
|
|
1403
1457
|
*/
|
|
1404
1458
|
operations?: Schema$Operation[];
|
|
1459
|
+
/**
|
|
1460
|
+
* 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.
|
|
1461
|
+
*/
|
|
1462
|
+
unreachable?: string[] | null;
|
|
1405
1463
|
}
|
|
1406
1464
|
/**
|
|
1407
1465
|
* Response returned by the ListServiceBindings method.
|
|
@@ -2184,6 +2242,7 @@ export namespace networkservices_v1beta1 {
|
|
|
2184
2242
|
httpRoutes: Resource$Projects$Locations$Httproutes;
|
|
2185
2243
|
lbEdgeExtensions: Resource$Projects$Locations$Lbedgeextensions;
|
|
2186
2244
|
lbRouteExtensions: Resource$Projects$Locations$Lbrouteextensions;
|
|
2245
|
+
lbTcpExtensions: Resource$Projects$Locations$Lbtcpextensions;
|
|
2187
2246
|
lbTrafficExtensions: Resource$Projects$Locations$Lbtrafficextensions;
|
|
2188
2247
|
meshes: Resource$Projects$Locations$Meshes;
|
|
2189
2248
|
operations: Resource$Projects$Locations$Operations;
|
|
@@ -2212,6 +2271,9 @@ export namespace networkservices_v1beta1 {
|
|
|
2212
2271
|
);
|
|
2213
2272
|
this.lbRouteExtensions =
|
|
2214
2273
|
new Resource$Projects$Locations$Lbrouteextensions(this.context);
|
|
2274
|
+
this.lbTcpExtensions = new Resource$Projects$Locations$Lbtcpextensions(
|
|
2275
|
+
this.context
|
|
2276
|
+
);
|
|
2215
2277
|
this.lbTrafficExtensions =
|
|
2216
2278
|
new Resource$Projects$Locations$Lbtrafficextensions(this.context);
|
|
2217
2279
|
this.meshes = new Resource$Projects$Locations$Meshes(this.context);
|
|
@@ -2400,7 +2462,7 @@ export namespace networkservices_v1beta1 {
|
|
|
2400
2462
|
*
|
|
2401
2463
|
* // Do the magic
|
|
2402
2464
|
* const res = await networkservices.projects.locations.list({
|
|
2403
|
-
* // Optional.
|
|
2465
|
+
* // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
|
|
2404
2466
|
* extraLocationTypes: 'placeholder-value',
|
|
2405
2467
|
* // 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).
|
|
2406
2468
|
* filter: 'placeholder-value',
|
|
@@ -2529,7 +2591,7 @@ export namespace networkservices_v1beta1 {
|
|
|
2529
2591
|
export interface Params$Resource$Projects$Locations$List
|
|
2530
2592
|
extends StandardParameters {
|
|
2531
2593
|
/**
|
|
2532
|
-
* Optional.
|
|
2594
|
+
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
|
|
2533
2595
|
*/
|
|
2534
2596
|
extraLocationTypes?: string[];
|
|
2535
2597
|
/**
|
|
@@ -8764,14 +8826,14 @@ export namespace networkservices_v1beta1 {
|
|
|
8764
8826
|
requestBody?: Schema$LbRouteExtension;
|
|
8765
8827
|
}
|
|
8766
8828
|
|
|
8767
|
-
export class Resource$Projects$Locations$
|
|
8829
|
+
export class Resource$Projects$Locations$Lbtcpextensions {
|
|
8768
8830
|
context: APIRequestContext;
|
|
8769
8831
|
constructor(context: APIRequestContext) {
|
|
8770
8832
|
this.context = context;
|
|
8771
8833
|
}
|
|
8772
8834
|
|
|
8773
8835
|
/**
|
|
8774
|
-
* Creates a new `
|
|
8836
|
+
* Creates a new `LbTcpExtension` resource in a given project and location.
|
|
8775
8837
|
* @example
|
|
8776
8838
|
* ```js
|
|
8777
8839
|
* // Before running the sample:
|
|
@@ -8800,31 +8862,29 @@ export namespace networkservices_v1beta1 {
|
|
|
8800
8862
|
* google.options({auth: authClient});
|
|
8801
8863
|
*
|
|
8802
8864
|
* // Do the magic
|
|
8803
|
-
* const res =
|
|
8804
|
-
*
|
|
8805
|
-
*
|
|
8806
|
-
*
|
|
8807
|
-
*
|
|
8808
|
-
*
|
|
8809
|
-
*
|
|
8810
|
-
* requestId: 'placeholder-value',
|
|
8865
|
+
* const res = await networkservices.projects.locations.lbTcpExtensions.create({
|
|
8866
|
+
* // Required. User-provided ID of the `LbTcpExtension` resource to be created.
|
|
8867
|
+
* lbTcpExtensionId: 'placeholder-value',
|
|
8868
|
+
* // Required. The parent resource of the `LbTcpExtension` resource. Must be in the format `projects/{project\}/locations/{location\}`.
|
|
8869
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
8870
|
+
* // 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 at least 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 can check if original operation with the same request ID was received, and if so, 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).
|
|
8871
|
+
* requestId: 'placeholder-value',
|
|
8811
8872
|
*
|
|
8812
|
-
*
|
|
8813
|
-
*
|
|
8814
|
-
*
|
|
8815
|
-
*
|
|
8816
|
-
*
|
|
8817
|
-
*
|
|
8818
|
-
*
|
|
8819
|
-
*
|
|
8820
|
-
*
|
|
8821
|
-
*
|
|
8822
|
-
*
|
|
8823
|
-
*
|
|
8824
|
-
*
|
|
8825
|
-
*
|
|
8826
|
-
*
|
|
8827
|
-
* });
|
|
8873
|
+
* // Request body metadata
|
|
8874
|
+
* requestBody: {
|
|
8875
|
+
* // request body parameters
|
|
8876
|
+
* // {
|
|
8877
|
+
* // "createTime": "my_createTime",
|
|
8878
|
+
* // "description": "my_description",
|
|
8879
|
+
* // "extensionChains": [],
|
|
8880
|
+
* // "labels": {},
|
|
8881
|
+
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
8882
|
+
* // "name": "my_name",
|
|
8883
|
+
* // "networks": [],
|
|
8884
|
+
* // "updateTime": "my_updateTime"
|
|
8885
|
+
* // }
|
|
8886
|
+
* },
|
|
8887
|
+
* });
|
|
8828
8888
|
* console.log(res.data);
|
|
8829
8889
|
*
|
|
8830
8890
|
* // Example response
|
|
@@ -8850,31 +8910,31 @@ export namespace networkservices_v1beta1 {
|
|
|
8850
8910
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8851
8911
|
*/
|
|
8852
8912
|
create(
|
|
8853
|
-
params: Params$Resource$Projects$Locations$
|
|
8913
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Create,
|
|
8854
8914
|
options: StreamMethodOptions
|
|
8855
8915
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
8856
8916
|
create(
|
|
8857
|
-
params?: Params$Resource$Projects$Locations$
|
|
8917
|
+
params?: Params$Resource$Projects$Locations$Lbtcpextensions$Create,
|
|
8858
8918
|
options?: MethodOptions
|
|
8859
8919
|
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
8860
8920
|
create(
|
|
8861
|
-
params: Params$Resource$Projects$Locations$
|
|
8921
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Create,
|
|
8862
8922
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8863
8923
|
callback: BodyResponseCallback<Readable>
|
|
8864
8924
|
): void;
|
|
8865
8925
|
create(
|
|
8866
|
-
params: Params$Resource$Projects$Locations$
|
|
8926
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Create,
|
|
8867
8927
|
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
8868
8928
|
callback: BodyResponseCallback<Schema$Operation>
|
|
8869
8929
|
): void;
|
|
8870
8930
|
create(
|
|
8871
|
-
params: Params$Resource$Projects$Locations$
|
|
8931
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Create,
|
|
8872
8932
|
callback: BodyResponseCallback<Schema$Operation>
|
|
8873
8933
|
): void;
|
|
8874
8934
|
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
8875
8935
|
create(
|
|
8876
8936
|
paramsOrCallback?:
|
|
8877
|
-
| Params$Resource$Projects$Locations$
|
|
8937
|
+
| Params$Resource$Projects$Locations$Lbtcpextensions$Create
|
|
8878
8938
|
| BodyResponseCallback<Schema$Operation>
|
|
8879
8939
|
| BodyResponseCallback<Readable>,
|
|
8880
8940
|
optionsOrCallback?:
|
|
@@ -8890,13 +8950,13 @@ export namespace networkservices_v1beta1 {
|
|
|
8890
8950
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
8891
8951
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
8892
8952
|
let params = (paramsOrCallback ||
|
|
8893
|
-
{}) as Params$Resource$Projects$Locations$
|
|
8953
|
+
{}) as Params$Resource$Projects$Locations$Lbtcpextensions$Create;
|
|
8894
8954
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
8895
8955
|
|
|
8896
8956
|
if (typeof paramsOrCallback === 'function') {
|
|
8897
8957
|
callback = paramsOrCallback;
|
|
8898
8958
|
params =
|
|
8899
|
-
{} as Params$Resource$Projects$Locations$
|
|
8959
|
+
{} as Params$Resource$Projects$Locations$Lbtcpextensions$Create;
|
|
8900
8960
|
options = {};
|
|
8901
8961
|
}
|
|
8902
8962
|
|
|
@@ -8910,7 +8970,7 @@ export namespace networkservices_v1beta1 {
|
|
|
8910
8970
|
const parameters = {
|
|
8911
8971
|
options: Object.assign(
|
|
8912
8972
|
{
|
|
8913
|
-
url: (rootUrl + '/v1beta1/{+parent}/
|
|
8973
|
+
url: (rootUrl + '/v1beta1/{+parent}/lbTcpExtensions').replace(
|
|
8914
8974
|
/([^:]\/)\/+/g,
|
|
8915
8975
|
'$1'
|
|
8916
8976
|
),
|
|
@@ -8935,7 +8995,7 @@ export namespace networkservices_v1beta1 {
|
|
|
8935
8995
|
}
|
|
8936
8996
|
|
|
8937
8997
|
/**
|
|
8938
|
-
* Deletes the specified `
|
|
8998
|
+
* Deletes the specified `LbTcpExtension` resource.
|
|
8939
8999
|
* @example
|
|
8940
9000
|
* ```js
|
|
8941
9001
|
* // Before running the sample:
|
|
@@ -8964,13 +9024,12 @@ export namespace networkservices_v1beta1 {
|
|
|
8964
9024
|
* google.options({auth: authClient});
|
|
8965
9025
|
*
|
|
8966
9026
|
* // Do the magic
|
|
8967
|
-
* const res =
|
|
8968
|
-
*
|
|
8969
|
-
*
|
|
8970
|
-
*
|
|
8971
|
-
*
|
|
8972
|
-
*
|
|
8973
|
-
* });
|
|
9027
|
+
* const res = await networkservices.projects.locations.lbTcpExtensions.delete({
|
|
9028
|
+
* // Required. The name of the `LbTcpExtension` resource to delete. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
|
|
9029
|
+
* name: 'projects/my-project/locations/my-location/lbTcpExtensions/my-lbTcpExtension',
|
|
9030
|
+
* // 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 at least 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 can check if original operation with the same request ID was received, and if so, 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).
|
|
9031
|
+
* requestId: 'placeholder-value',
|
|
9032
|
+
* });
|
|
8974
9033
|
* console.log(res.data);
|
|
8975
9034
|
*
|
|
8976
9035
|
* // Example response
|
|
@@ -8996,31 +9055,31 @@ export namespace networkservices_v1beta1 {
|
|
|
8996
9055
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8997
9056
|
*/
|
|
8998
9057
|
delete(
|
|
8999
|
-
params: Params$Resource$Projects$Locations$
|
|
9058
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete,
|
|
9000
9059
|
options: StreamMethodOptions
|
|
9001
9060
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9002
9061
|
delete(
|
|
9003
|
-
params?: Params$Resource$Projects$Locations$
|
|
9062
|
+
params?: Params$Resource$Projects$Locations$Lbtcpextensions$Delete,
|
|
9004
9063
|
options?: MethodOptions
|
|
9005
9064
|
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
9006
9065
|
delete(
|
|
9007
|
-
params: Params$Resource$Projects$Locations$
|
|
9066
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete,
|
|
9008
9067
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9009
9068
|
callback: BodyResponseCallback<Readable>
|
|
9010
9069
|
): void;
|
|
9011
9070
|
delete(
|
|
9012
|
-
params: Params$Resource$Projects$Locations$
|
|
9071
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete,
|
|
9013
9072
|
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
9014
9073
|
callback: BodyResponseCallback<Schema$Operation>
|
|
9015
9074
|
): void;
|
|
9016
9075
|
delete(
|
|
9017
|
-
params: Params$Resource$Projects$Locations$
|
|
9076
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete,
|
|
9018
9077
|
callback: BodyResponseCallback<Schema$Operation>
|
|
9019
9078
|
): void;
|
|
9020
9079
|
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
9021
9080
|
delete(
|
|
9022
9081
|
paramsOrCallback?:
|
|
9023
|
-
| Params$Resource$Projects$Locations$
|
|
9082
|
+
| Params$Resource$Projects$Locations$Lbtcpextensions$Delete
|
|
9024
9083
|
| BodyResponseCallback<Schema$Operation>
|
|
9025
9084
|
| BodyResponseCallback<Readable>,
|
|
9026
9085
|
optionsOrCallback?:
|
|
@@ -9036,13 +9095,13 @@ export namespace networkservices_v1beta1 {
|
|
|
9036
9095
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
9037
9096
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9038
9097
|
let params = (paramsOrCallback ||
|
|
9039
|
-
{}) as Params$Resource$Projects$Locations$
|
|
9098
|
+
{}) as Params$Resource$Projects$Locations$Lbtcpextensions$Delete;
|
|
9040
9099
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9041
9100
|
|
|
9042
9101
|
if (typeof paramsOrCallback === 'function') {
|
|
9043
9102
|
callback = paramsOrCallback;
|
|
9044
9103
|
params =
|
|
9045
|
-
{} as Params$Resource$Projects$Locations$
|
|
9104
|
+
{} as Params$Resource$Projects$Locations$Lbtcpextensions$Delete;
|
|
9046
9105
|
options = {};
|
|
9047
9106
|
}
|
|
9048
9107
|
|
|
@@ -9078,7 +9137,7 @@ export namespace networkservices_v1beta1 {
|
|
|
9078
9137
|
}
|
|
9079
9138
|
|
|
9080
9139
|
/**
|
|
9081
|
-
* Gets details of the specified `
|
|
9140
|
+
* Gets details of the specified `LbTcpExtension` resource.
|
|
9082
9141
|
* @example
|
|
9083
9142
|
* ```js
|
|
9084
9143
|
* // Before running the sample:
|
|
@@ -9107,9 +9166,9 @@ export namespace networkservices_v1beta1 {
|
|
|
9107
9166
|
* google.options({auth: authClient});
|
|
9108
9167
|
*
|
|
9109
9168
|
* // Do the magic
|
|
9110
|
-
* const res = await networkservices.projects.locations.
|
|
9111
|
-
* // Required. A name of the `
|
|
9112
|
-
* name: 'projects/my-project/locations/my-location/
|
|
9169
|
+
* const res = await networkservices.projects.locations.lbTcpExtensions.get({
|
|
9170
|
+
* // Required. A name of the `LbTcpExtension` resource to get. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
|
|
9171
|
+
* name: 'projects/my-project/locations/my-location/lbTcpExtensions/my-lbTcpExtension',
|
|
9113
9172
|
* });
|
|
9114
9173
|
* console.log(res.data);
|
|
9115
9174
|
*
|
|
@@ -9118,11 +9177,10 @@ export namespace networkservices_v1beta1 {
|
|
|
9118
9177
|
* // "createTime": "my_createTime",
|
|
9119
9178
|
* // "description": "my_description",
|
|
9120
9179
|
* // "extensionChains": [],
|
|
9121
|
-
* // "forwardingRules": [],
|
|
9122
9180
|
* // "labels": {},
|
|
9123
9181
|
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
9124
|
-
* // "metadata": {},
|
|
9125
9182
|
* // "name": "my_name",
|
|
9183
|
+
* // "networks": [],
|
|
9126
9184
|
* // "updateTime": "my_updateTime"
|
|
9127
9185
|
* // }
|
|
9128
9186
|
* }
|
|
@@ -9140,53 +9198,52 @@ export namespace networkservices_v1beta1 {
|
|
|
9140
9198
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9141
9199
|
*/
|
|
9142
9200
|
get(
|
|
9143
|
-
params: Params$Resource$Projects$Locations$
|
|
9201
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Get,
|
|
9144
9202
|
options: StreamMethodOptions
|
|
9145
9203
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9146
9204
|
get(
|
|
9147
|
-
params?: Params$Resource$Projects$Locations$
|
|
9205
|
+
params?: Params$Resource$Projects$Locations$Lbtcpextensions$Get,
|
|
9148
9206
|
options?: MethodOptions
|
|
9149
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
9207
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$LbTcpExtension>>;
|
|
9150
9208
|
get(
|
|
9151
|
-
params: Params$Resource$Projects$Locations$
|
|
9209
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Get,
|
|
9152
9210
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9153
9211
|
callback: BodyResponseCallback<Readable>
|
|
9154
9212
|
): void;
|
|
9155
9213
|
get(
|
|
9156
|
-
params: Params$Resource$Projects$Locations$
|
|
9157
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
9158
|
-
callback: BodyResponseCallback<Schema$
|
|
9214
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Get,
|
|
9215
|
+
options: MethodOptions | BodyResponseCallback<Schema$LbTcpExtension>,
|
|
9216
|
+
callback: BodyResponseCallback<Schema$LbTcpExtension>
|
|
9159
9217
|
): void;
|
|
9160
9218
|
get(
|
|
9161
|
-
params: Params$Resource$Projects$Locations$
|
|
9162
|
-
callback: BodyResponseCallback<Schema$
|
|
9219
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Get,
|
|
9220
|
+
callback: BodyResponseCallback<Schema$LbTcpExtension>
|
|
9163
9221
|
): void;
|
|
9164
|
-
get(callback: BodyResponseCallback<Schema$
|
|
9222
|
+
get(callback: BodyResponseCallback<Schema$LbTcpExtension>): void;
|
|
9165
9223
|
get(
|
|
9166
9224
|
paramsOrCallback?:
|
|
9167
|
-
| Params$Resource$Projects$Locations$
|
|
9168
|
-
| BodyResponseCallback<Schema$
|
|
9225
|
+
| Params$Resource$Projects$Locations$Lbtcpextensions$Get
|
|
9226
|
+
| BodyResponseCallback<Schema$LbTcpExtension>
|
|
9169
9227
|
| BodyResponseCallback<Readable>,
|
|
9170
9228
|
optionsOrCallback?:
|
|
9171
9229
|
| MethodOptions
|
|
9172
9230
|
| StreamMethodOptions
|
|
9173
|
-
| BodyResponseCallback<Schema$
|
|
9231
|
+
| BodyResponseCallback<Schema$LbTcpExtension>
|
|
9174
9232
|
| BodyResponseCallback<Readable>,
|
|
9175
9233
|
callback?:
|
|
9176
|
-
| BodyResponseCallback<Schema$
|
|
9234
|
+
| BodyResponseCallback<Schema$LbTcpExtension>
|
|
9177
9235
|
| BodyResponseCallback<Readable>
|
|
9178
9236
|
):
|
|
9179
9237
|
| void
|
|
9180
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
9238
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$LbTcpExtension>>
|
|
9181
9239
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9182
9240
|
let params = (paramsOrCallback ||
|
|
9183
|
-
{}) as Params$Resource$Projects$Locations$
|
|
9241
|
+
{}) as Params$Resource$Projects$Locations$Lbtcpextensions$Get;
|
|
9184
9242
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9185
9243
|
|
|
9186
9244
|
if (typeof paramsOrCallback === 'function') {
|
|
9187
9245
|
callback = paramsOrCallback;
|
|
9188
|
-
params =
|
|
9189
|
-
{} as Params$Resource$Projects$Locations$Lbtrafficextensions$Get;
|
|
9246
|
+
params = {} as Params$Resource$Projects$Locations$Lbtcpextensions$Get;
|
|
9190
9247
|
options = {};
|
|
9191
9248
|
}
|
|
9192
9249
|
|
|
@@ -9212,17 +9269,17 @@ export namespace networkservices_v1beta1 {
|
|
|
9212
9269
|
context: this.context,
|
|
9213
9270
|
};
|
|
9214
9271
|
if (callback) {
|
|
9215
|
-
createAPIRequest<Schema$
|
|
9272
|
+
createAPIRequest<Schema$LbTcpExtension>(
|
|
9216
9273
|
parameters,
|
|
9217
9274
|
callback as BodyResponseCallback<unknown>
|
|
9218
9275
|
);
|
|
9219
9276
|
} else {
|
|
9220
|
-
return createAPIRequest<Schema$
|
|
9277
|
+
return createAPIRequest<Schema$LbTcpExtension>(parameters);
|
|
9221
9278
|
}
|
|
9222
9279
|
}
|
|
9223
9280
|
|
|
9224
9281
|
/**
|
|
9225
|
-
* Lists `
|
|
9282
|
+
* Lists `LbTcpExtension` resources in a given project and location.
|
|
9226
9283
|
* @example
|
|
9227
9284
|
* ```js
|
|
9228
9285
|
* // Before running the sample:
|
|
@@ -9251,25 +9308,23 @@ export namespace networkservices_v1beta1 {
|
|
|
9251
9308
|
* google.options({auth: authClient});
|
|
9252
9309
|
*
|
|
9253
9310
|
* // Do the magic
|
|
9254
|
-
* const res = await networkservices.projects.locations.
|
|
9255
|
-
*
|
|
9256
|
-
*
|
|
9257
|
-
*
|
|
9258
|
-
*
|
|
9259
|
-
*
|
|
9260
|
-
*
|
|
9261
|
-
*
|
|
9262
|
-
*
|
|
9263
|
-
*
|
|
9264
|
-
*
|
|
9265
|
-
*
|
|
9266
|
-
* },
|
|
9267
|
-
* );
|
|
9311
|
+
* const res = await networkservices.projects.locations.lbTcpExtensions.list({
|
|
9312
|
+
* // Optional. Filtering results.
|
|
9313
|
+
* filter: 'placeholder-value',
|
|
9314
|
+
* // Optional. Hint for how to order the results.
|
|
9315
|
+
* orderBy: 'placeholder-value',
|
|
9316
|
+
* // Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
|
|
9317
|
+
* pageSize: 'placeholder-value',
|
|
9318
|
+
* // Optional. A token identifying a page of results that the server returns.
|
|
9319
|
+
* pageToken: 'placeholder-value',
|
|
9320
|
+
* // Required. The project and location from which the `LbTcpExtension` resources are listed, specified in the following format: `projects/{project\}/locations/{location\}`.
|
|
9321
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
9322
|
+
* });
|
|
9268
9323
|
* console.log(res.data);
|
|
9269
9324
|
*
|
|
9270
9325
|
* // Example response
|
|
9271
9326
|
* // {
|
|
9272
|
-
* // "
|
|
9327
|
+
* // "lbTcpExtensions": [],
|
|
9273
9328
|
* // "nextPageToken": "my_nextPageToken",
|
|
9274
9329
|
* // "unreachable": []
|
|
9275
9330
|
* // }
|
|
@@ -9288,57 +9343,56 @@ export namespace networkservices_v1beta1 {
|
|
|
9288
9343
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9289
9344
|
*/
|
|
9290
9345
|
list(
|
|
9291
|
-
params: Params$Resource$Projects$Locations$
|
|
9346
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$List,
|
|
9292
9347
|
options: StreamMethodOptions
|
|
9293
9348
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9294
9349
|
list(
|
|
9295
|
-
params?: Params$Resource$Projects$Locations$
|
|
9350
|
+
params?: Params$Resource$Projects$Locations$Lbtcpextensions$List,
|
|
9296
9351
|
options?: MethodOptions
|
|
9297
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
9352
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListLbTcpExtensionsResponse>>;
|
|
9298
9353
|
list(
|
|
9299
|
-
params: Params$Resource$Projects$Locations$
|
|
9354
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$List,
|
|
9300
9355
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9301
9356
|
callback: BodyResponseCallback<Readable>
|
|
9302
9357
|
): void;
|
|
9303
9358
|
list(
|
|
9304
|
-
params: Params$Resource$Projects$Locations$
|
|
9359
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$List,
|
|
9305
9360
|
options:
|
|
9306
9361
|
| MethodOptions
|
|
9307
|
-
| BodyResponseCallback<Schema$
|
|
9308
|
-
callback: BodyResponseCallback<Schema$
|
|
9362
|
+
| BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>,
|
|
9363
|
+
callback: BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>
|
|
9309
9364
|
): void;
|
|
9310
9365
|
list(
|
|
9311
|
-
params: Params$Resource$Projects$Locations$
|
|
9312
|
-
callback: BodyResponseCallback<Schema$
|
|
9366
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$List,
|
|
9367
|
+
callback: BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>
|
|
9313
9368
|
): void;
|
|
9314
9369
|
list(
|
|
9315
|
-
callback: BodyResponseCallback<Schema$
|
|
9370
|
+
callback: BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>
|
|
9316
9371
|
): void;
|
|
9317
9372
|
list(
|
|
9318
9373
|
paramsOrCallback?:
|
|
9319
|
-
| Params$Resource$Projects$Locations$
|
|
9320
|
-
| BodyResponseCallback<Schema$
|
|
9374
|
+
| Params$Resource$Projects$Locations$Lbtcpextensions$List
|
|
9375
|
+
| BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>
|
|
9321
9376
|
| BodyResponseCallback<Readable>,
|
|
9322
9377
|
optionsOrCallback?:
|
|
9323
9378
|
| MethodOptions
|
|
9324
9379
|
| StreamMethodOptions
|
|
9325
|
-
| BodyResponseCallback<Schema$
|
|
9380
|
+
| BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>
|
|
9326
9381
|
| BodyResponseCallback<Readable>,
|
|
9327
9382
|
callback?:
|
|
9328
|
-
| BodyResponseCallback<Schema$
|
|
9383
|
+
| BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>
|
|
9329
9384
|
| BodyResponseCallback<Readable>
|
|
9330
9385
|
):
|
|
9331
9386
|
| void
|
|
9332
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
9387
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListLbTcpExtensionsResponse>>
|
|
9333
9388
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9334
9389
|
let params = (paramsOrCallback ||
|
|
9335
|
-
{}) as Params$Resource$Projects$Locations$
|
|
9390
|
+
{}) as Params$Resource$Projects$Locations$Lbtcpextensions$List;
|
|
9336
9391
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9337
9392
|
|
|
9338
9393
|
if (typeof paramsOrCallback === 'function') {
|
|
9339
9394
|
callback = paramsOrCallback;
|
|
9340
|
-
params =
|
|
9341
|
-
{} as Params$Resource$Projects$Locations$Lbtrafficextensions$List;
|
|
9395
|
+
params = {} as Params$Resource$Projects$Locations$Lbtcpextensions$List;
|
|
9342
9396
|
options = {};
|
|
9343
9397
|
}
|
|
9344
9398
|
|
|
@@ -9352,7 +9406,7 @@ export namespace networkservices_v1beta1 {
|
|
|
9352
9406
|
const parameters = {
|
|
9353
9407
|
options: Object.assign(
|
|
9354
9408
|
{
|
|
9355
|
-
url: (rootUrl + '/v1beta1/{+parent}/
|
|
9409
|
+
url: (rootUrl + '/v1beta1/{+parent}/lbTcpExtensions').replace(
|
|
9356
9410
|
/([^:]\/)\/+/g,
|
|
9357
9411
|
'$1'
|
|
9358
9412
|
),
|
|
@@ -9367,19 +9421,17 @@ export namespace networkservices_v1beta1 {
|
|
|
9367
9421
|
context: this.context,
|
|
9368
9422
|
};
|
|
9369
9423
|
if (callback) {
|
|
9370
|
-
createAPIRequest<Schema$
|
|
9424
|
+
createAPIRequest<Schema$ListLbTcpExtensionsResponse>(
|
|
9371
9425
|
parameters,
|
|
9372
9426
|
callback as BodyResponseCallback<unknown>
|
|
9373
9427
|
);
|
|
9374
9428
|
} else {
|
|
9375
|
-
return createAPIRequest<Schema$
|
|
9376
|
-
parameters
|
|
9377
|
-
);
|
|
9429
|
+
return createAPIRequest<Schema$ListLbTcpExtensionsResponse>(parameters);
|
|
9378
9430
|
}
|
|
9379
9431
|
}
|
|
9380
9432
|
|
|
9381
9433
|
/**
|
|
9382
|
-
* Updates the parameters of the specified `
|
|
9434
|
+
* Updates the parameters of the specified `LbTcpExtension` resource.
|
|
9383
9435
|
* @example
|
|
9384
9436
|
* ```js
|
|
9385
9437
|
* // Before running the sample:
|
|
@@ -9408,31 +9460,29 @@ export namespace networkservices_v1beta1 {
|
|
|
9408
9460
|
* google.options({auth: authClient});
|
|
9409
9461
|
*
|
|
9410
9462
|
* // Do the magic
|
|
9411
|
-
* const res =
|
|
9412
|
-
*
|
|
9413
|
-
*
|
|
9414
|
-
*
|
|
9415
|
-
*
|
|
9416
|
-
*
|
|
9417
|
-
*
|
|
9418
|
-
* updateMask: 'placeholder-value',
|
|
9463
|
+
* const res = await networkservices.projects.locations.lbTcpExtensions.patch({
|
|
9464
|
+
* // Required. Identifier. Name of the `LbTcpExtension` resource in the following format: `projects/{project\}/locations/{location\}/LbTcpExtension/{lb_tcp_extension\}`
|
|
9465
|
+
* name: 'projects/my-project/locations/my-location/lbTcpExtensions/my-lbTcpExtension',
|
|
9466
|
+
* // 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 at least 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 can check if original operation with the same request ID was received, and if so, 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).
|
|
9467
|
+
* requestId: 'placeholder-value',
|
|
9468
|
+
* // Optional. Used to specify the fields to be overwritten in the `LbTcpExtension` 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.
|
|
9469
|
+
* updateMask: 'placeholder-value',
|
|
9419
9470
|
*
|
|
9420
|
-
*
|
|
9421
|
-
*
|
|
9422
|
-
*
|
|
9423
|
-
*
|
|
9424
|
-
*
|
|
9425
|
-
*
|
|
9426
|
-
*
|
|
9427
|
-
*
|
|
9428
|
-
*
|
|
9429
|
-
*
|
|
9430
|
-
*
|
|
9431
|
-
*
|
|
9432
|
-
*
|
|
9433
|
-
*
|
|
9434
|
-
*
|
|
9435
|
-
* });
|
|
9471
|
+
* // Request body metadata
|
|
9472
|
+
* requestBody: {
|
|
9473
|
+
* // request body parameters
|
|
9474
|
+
* // {
|
|
9475
|
+
* // "createTime": "my_createTime",
|
|
9476
|
+
* // "description": "my_description",
|
|
9477
|
+
* // "extensionChains": [],
|
|
9478
|
+
* // "labels": {},
|
|
9479
|
+
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
9480
|
+
* // "name": "my_name",
|
|
9481
|
+
* // "networks": [],
|
|
9482
|
+
* // "updateTime": "my_updateTime"
|
|
9483
|
+
* // }
|
|
9484
|
+
* },
|
|
9485
|
+
* });
|
|
9436
9486
|
* console.log(res.data);
|
|
9437
9487
|
*
|
|
9438
9488
|
* // Example response
|
|
@@ -9458,31 +9508,31 @@ export namespace networkservices_v1beta1 {
|
|
|
9458
9508
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9459
9509
|
*/
|
|
9460
9510
|
patch(
|
|
9461
|
-
params: Params$Resource$Projects$Locations$
|
|
9511
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch,
|
|
9462
9512
|
options: StreamMethodOptions
|
|
9463
9513
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9464
9514
|
patch(
|
|
9465
|
-
params?: Params$Resource$Projects$Locations$
|
|
9515
|
+
params?: Params$Resource$Projects$Locations$Lbtcpextensions$Patch,
|
|
9466
9516
|
options?: MethodOptions
|
|
9467
9517
|
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
9468
9518
|
patch(
|
|
9469
|
-
params: Params$Resource$Projects$Locations$
|
|
9519
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch,
|
|
9470
9520
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9471
9521
|
callback: BodyResponseCallback<Readable>
|
|
9472
9522
|
): void;
|
|
9473
9523
|
patch(
|
|
9474
|
-
params: Params$Resource$Projects$Locations$
|
|
9524
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch,
|
|
9475
9525
|
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
9476
9526
|
callback: BodyResponseCallback<Schema$Operation>
|
|
9477
9527
|
): void;
|
|
9478
9528
|
patch(
|
|
9479
|
-
params: Params$Resource$Projects$Locations$
|
|
9529
|
+
params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch,
|
|
9480
9530
|
callback: BodyResponseCallback<Schema$Operation>
|
|
9481
9531
|
): void;
|
|
9482
9532
|
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
9483
9533
|
patch(
|
|
9484
9534
|
paramsOrCallback?:
|
|
9485
|
-
| Params$Resource$Projects$Locations$
|
|
9535
|
+
| Params$Resource$Projects$Locations$Lbtcpextensions$Patch
|
|
9486
9536
|
| BodyResponseCallback<Schema$Operation>
|
|
9487
9537
|
| BodyResponseCallback<Readable>,
|
|
9488
9538
|
optionsOrCallback?:
|
|
@@ -9498,13 +9548,12 @@ export namespace networkservices_v1beta1 {
|
|
|
9498
9548
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
9499
9549
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9500
9550
|
let params = (paramsOrCallback ||
|
|
9501
|
-
{}) as Params$Resource$Projects$Locations$
|
|
9551
|
+
{}) as Params$Resource$Projects$Locations$Lbtcpextensions$Patch;
|
|
9502
9552
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9503
9553
|
|
|
9504
9554
|
if (typeof paramsOrCallback === 'function') {
|
|
9505
9555
|
callback = paramsOrCallback;
|
|
9506
|
-
params =
|
|
9507
|
-
{} as Params$Resource$Projects$Locations$Lbtrafficextensions$Patch;
|
|
9556
|
+
params = {} as Params$Resource$Projects$Locations$Lbtcpextensions$Patch;
|
|
9508
9557
|
options = {};
|
|
9509
9558
|
}
|
|
9510
9559
|
|
|
@@ -9540,52 +9589,52 @@ export namespace networkservices_v1beta1 {
|
|
|
9540
9589
|
}
|
|
9541
9590
|
}
|
|
9542
9591
|
|
|
9543
|
-
export interface Params$Resource$Projects$Locations$
|
|
9592
|
+
export interface Params$Resource$Projects$Locations$Lbtcpextensions$Create
|
|
9544
9593
|
extends StandardParameters {
|
|
9545
9594
|
/**
|
|
9546
|
-
* Required. User-provided ID of the `
|
|
9595
|
+
* Required. User-provided ID of the `LbTcpExtension` resource to be created.
|
|
9547
9596
|
*/
|
|
9548
|
-
|
|
9597
|
+
lbTcpExtensionId?: string;
|
|
9549
9598
|
/**
|
|
9550
|
-
* Required. The parent resource of the `
|
|
9599
|
+
* Required. The parent resource of the `LbTcpExtension` resource. Must be in the format `projects/{project\}/locations/{location\}`.
|
|
9551
9600
|
*/
|
|
9552
9601
|
parent?: string;
|
|
9553
9602
|
/**
|
|
9554
|
-
* 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).
|
|
9603
|
+
* 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 at least 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 can check if original operation with the same request ID was received, and if so, 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).
|
|
9555
9604
|
*/
|
|
9556
9605
|
requestId?: string;
|
|
9557
9606
|
|
|
9558
9607
|
/**
|
|
9559
9608
|
* Request body metadata
|
|
9560
9609
|
*/
|
|
9561
|
-
requestBody?: Schema$
|
|
9610
|
+
requestBody?: Schema$LbTcpExtension;
|
|
9562
9611
|
}
|
|
9563
|
-
export interface Params$Resource$Projects$Locations$
|
|
9612
|
+
export interface Params$Resource$Projects$Locations$Lbtcpextensions$Delete
|
|
9564
9613
|
extends StandardParameters {
|
|
9565
9614
|
/**
|
|
9566
|
-
* Required. The name of the `
|
|
9615
|
+
* Required. The name of the `LbTcpExtension` resource to delete. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
|
|
9567
9616
|
*/
|
|
9568
9617
|
name?: string;
|
|
9569
9618
|
/**
|
|
9570
|
-
* 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).
|
|
9619
|
+
* 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 at least 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 can check if original operation with the same request ID was received, and if so, 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).
|
|
9571
9620
|
*/
|
|
9572
9621
|
requestId?: string;
|
|
9573
9622
|
}
|
|
9574
|
-
export interface Params$Resource$Projects$Locations$
|
|
9623
|
+
export interface Params$Resource$Projects$Locations$Lbtcpextensions$Get
|
|
9575
9624
|
extends StandardParameters {
|
|
9576
9625
|
/**
|
|
9577
|
-
* Required. A name of the `
|
|
9626
|
+
* Required. A name of the `LbTcpExtension` resource to get. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
|
|
9578
9627
|
*/
|
|
9579
9628
|
name?: string;
|
|
9580
9629
|
}
|
|
9581
|
-
export interface Params$Resource$Projects$Locations$
|
|
9630
|
+
export interface Params$Resource$Projects$Locations$Lbtcpextensions$List
|
|
9582
9631
|
extends StandardParameters {
|
|
9583
9632
|
/**
|
|
9584
9633
|
* Optional. Filtering results.
|
|
9585
9634
|
*/
|
|
9586
9635
|
filter?: string;
|
|
9587
9636
|
/**
|
|
9588
|
-
* Optional. Hint
|
|
9637
|
+
* Optional. Hint for how to order the results.
|
|
9589
9638
|
*/
|
|
9590
9639
|
orderBy?: string;
|
|
9591
9640
|
/**
|
|
@@ -9597,11 +9646,869 @@ export namespace networkservices_v1beta1 {
|
|
|
9597
9646
|
*/
|
|
9598
9647
|
pageToken?: string;
|
|
9599
9648
|
/**
|
|
9600
|
-
* Required. The project and location from which the `
|
|
9649
|
+
* Required. The project and location from which the `LbTcpExtension` resources are listed, specified in the following format: `projects/{project\}/locations/{location\}`.
|
|
9601
9650
|
*/
|
|
9602
9651
|
parent?: string;
|
|
9603
9652
|
}
|
|
9604
|
-
export interface Params$Resource$Projects$Locations$
|
|
9653
|
+
export interface Params$Resource$Projects$Locations$Lbtcpextensions$Patch
|
|
9654
|
+
extends StandardParameters {
|
|
9655
|
+
/**
|
|
9656
|
+
* Required. Identifier. Name of the `LbTcpExtension` resource in the following format: `projects/{project\}/locations/{location\}/LbTcpExtension/{lb_tcp_extension\}`
|
|
9657
|
+
*/
|
|
9658
|
+
name?: string;
|
|
9659
|
+
/**
|
|
9660
|
+
* 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 at least 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 can check if original operation with the same request ID was received, and if so, 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).
|
|
9661
|
+
*/
|
|
9662
|
+
requestId?: string;
|
|
9663
|
+
/**
|
|
9664
|
+
* Optional. Used to specify the fields to be overwritten in the `LbTcpExtension` 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.
|
|
9665
|
+
*/
|
|
9666
|
+
updateMask?: string;
|
|
9667
|
+
|
|
9668
|
+
/**
|
|
9669
|
+
* Request body metadata
|
|
9670
|
+
*/
|
|
9671
|
+
requestBody?: Schema$LbTcpExtension;
|
|
9672
|
+
}
|
|
9673
|
+
|
|
9674
|
+
export class Resource$Projects$Locations$Lbtrafficextensions {
|
|
9675
|
+
context: APIRequestContext;
|
|
9676
|
+
constructor(context: APIRequestContext) {
|
|
9677
|
+
this.context = context;
|
|
9678
|
+
}
|
|
9679
|
+
|
|
9680
|
+
/**
|
|
9681
|
+
* Creates a new `LbTrafficExtension` resource in a given project and location.
|
|
9682
|
+
* @example
|
|
9683
|
+
* ```js
|
|
9684
|
+
* // Before running the sample:
|
|
9685
|
+
* // - Enable the API at:
|
|
9686
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
9687
|
+
* // - Login into gcloud by running:
|
|
9688
|
+
* // ```sh
|
|
9689
|
+
* // $ gcloud auth application-default login
|
|
9690
|
+
* // ```
|
|
9691
|
+
* // - Install the npm module by running:
|
|
9692
|
+
* // ```sh
|
|
9693
|
+
* // $ npm install googleapis
|
|
9694
|
+
* // ```
|
|
9695
|
+
*
|
|
9696
|
+
* const {google} = require('googleapis');
|
|
9697
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
9698
|
+
*
|
|
9699
|
+
* async function main() {
|
|
9700
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9701
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9702
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
9703
|
+
* });
|
|
9704
|
+
*
|
|
9705
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9706
|
+
* const authClient = await auth.getClient();
|
|
9707
|
+
* google.options({auth: authClient});
|
|
9708
|
+
*
|
|
9709
|
+
* // Do the magic
|
|
9710
|
+
* const res =
|
|
9711
|
+
* await networkservices.projects.locations.lbTrafficExtensions.create({
|
|
9712
|
+
* // Required. User-provided ID of the `LbTrafficExtension` resource to be created.
|
|
9713
|
+
* lbTrafficExtensionId: 'placeholder-value',
|
|
9714
|
+
* // Required. The parent resource of the `LbTrafficExtension` resource. Must be in the format `projects/{project\}/locations/{location\}`.
|
|
9715
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
9716
|
+
* // 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).
|
|
9717
|
+
* requestId: 'placeholder-value',
|
|
9718
|
+
*
|
|
9719
|
+
* // Request body metadata
|
|
9720
|
+
* requestBody: {
|
|
9721
|
+
* // request body parameters
|
|
9722
|
+
* // {
|
|
9723
|
+
* // "createTime": "my_createTime",
|
|
9724
|
+
* // "description": "my_description",
|
|
9725
|
+
* // "extensionChains": [],
|
|
9726
|
+
* // "forwardingRules": [],
|
|
9727
|
+
* // "labels": {},
|
|
9728
|
+
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
9729
|
+
* // "metadata": {},
|
|
9730
|
+
* // "name": "my_name",
|
|
9731
|
+
* // "updateTime": "my_updateTime"
|
|
9732
|
+
* // }
|
|
9733
|
+
* },
|
|
9734
|
+
* });
|
|
9735
|
+
* console.log(res.data);
|
|
9736
|
+
*
|
|
9737
|
+
* // Example response
|
|
9738
|
+
* // {
|
|
9739
|
+
* // "done": false,
|
|
9740
|
+
* // "error": {},
|
|
9741
|
+
* // "metadata": {},
|
|
9742
|
+
* // "name": "my_name",
|
|
9743
|
+
* // "response": {}
|
|
9744
|
+
* // }
|
|
9745
|
+
* }
|
|
9746
|
+
*
|
|
9747
|
+
* main().catch(e => {
|
|
9748
|
+
* console.error(e);
|
|
9749
|
+
* throw e;
|
|
9750
|
+
* });
|
|
9751
|
+
*
|
|
9752
|
+
* ```
|
|
9753
|
+
*
|
|
9754
|
+
* @param params - Parameters for request
|
|
9755
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
9756
|
+
* @param callback - Optional callback that handles the response.
|
|
9757
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9758
|
+
*/
|
|
9759
|
+
create(
|
|
9760
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Create,
|
|
9761
|
+
options: StreamMethodOptions
|
|
9762
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9763
|
+
create(
|
|
9764
|
+
params?: Params$Resource$Projects$Locations$Lbtrafficextensions$Create,
|
|
9765
|
+
options?: MethodOptions
|
|
9766
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
9767
|
+
create(
|
|
9768
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Create,
|
|
9769
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9770
|
+
callback: BodyResponseCallback<Readable>
|
|
9771
|
+
): void;
|
|
9772
|
+
create(
|
|
9773
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Create,
|
|
9774
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
9775
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
9776
|
+
): void;
|
|
9777
|
+
create(
|
|
9778
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Create,
|
|
9779
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
9780
|
+
): void;
|
|
9781
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
9782
|
+
create(
|
|
9783
|
+
paramsOrCallback?:
|
|
9784
|
+
| Params$Resource$Projects$Locations$Lbtrafficextensions$Create
|
|
9785
|
+
| BodyResponseCallback<Schema$Operation>
|
|
9786
|
+
| BodyResponseCallback<Readable>,
|
|
9787
|
+
optionsOrCallback?:
|
|
9788
|
+
| MethodOptions
|
|
9789
|
+
| StreamMethodOptions
|
|
9790
|
+
| BodyResponseCallback<Schema$Operation>
|
|
9791
|
+
| BodyResponseCallback<Readable>,
|
|
9792
|
+
callback?:
|
|
9793
|
+
| BodyResponseCallback<Schema$Operation>
|
|
9794
|
+
| BodyResponseCallback<Readable>
|
|
9795
|
+
):
|
|
9796
|
+
| void
|
|
9797
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
9798
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9799
|
+
let params = (paramsOrCallback ||
|
|
9800
|
+
{}) as Params$Resource$Projects$Locations$Lbtrafficextensions$Create;
|
|
9801
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9802
|
+
|
|
9803
|
+
if (typeof paramsOrCallback === 'function') {
|
|
9804
|
+
callback = paramsOrCallback;
|
|
9805
|
+
params =
|
|
9806
|
+
{} as Params$Resource$Projects$Locations$Lbtrafficextensions$Create;
|
|
9807
|
+
options = {};
|
|
9808
|
+
}
|
|
9809
|
+
|
|
9810
|
+
if (typeof optionsOrCallback === 'function') {
|
|
9811
|
+
callback = optionsOrCallback;
|
|
9812
|
+
options = {};
|
|
9813
|
+
}
|
|
9814
|
+
|
|
9815
|
+
const rootUrl =
|
|
9816
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
9817
|
+
const parameters = {
|
|
9818
|
+
options: Object.assign(
|
|
9819
|
+
{
|
|
9820
|
+
url: (rootUrl + '/v1beta1/{+parent}/lbTrafficExtensions').replace(
|
|
9821
|
+
/([^:]\/)\/+/g,
|
|
9822
|
+
'$1'
|
|
9823
|
+
),
|
|
9824
|
+
method: 'POST',
|
|
9825
|
+
apiVersion: '',
|
|
9826
|
+
},
|
|
9827
|
+
options
|
|
9828
|
+
),
|
|
9829
|
+
params,
|
|
9830
|
+
requiredParams: ['parent'],
|
|
9831
|
+
pathParams: ['parent'],
|
|
9832
|
+
context: this.context,
|
|
9833
|
+
};
|
|
9834
|
+
if (callback) {
|
|
9835
|
+
createAPIRequest<Schema$Operation>(
|
|
9836
|
+
parameters,
|
|
9837
|
+
callback as BodyResponseCallback<unknown>
|
|
9838
|
+
);
|
|
9839
|
+
} else {
|
|
9840
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
9841
|
+
}
|
|
9842
|
+
}
|
|
9843
|
+
|
|
9844
|
+
/**
|
|
9845
|
+
* Deletes the specified `LbTrafficExtension` resource.
|
|
9846
|
+
* @example
|
|
9847
|
+
* ```js
|
|
9848
|
+
* // Before running the sample:
|
|
9849
|
+
* // - Enable the API at:
|
|
9850
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
9851
|
+
* // - Login into gcloud by running:
|
|
9852
|
+
* // ```sh
|
|
9853
|
+
* // $ gcloud auth application-default login
|
|
9854
|
+
* // ```
|
|
9855
|
+
* // - Install the npm module by running:
|
|
9856
|
+
* // ```sh
|
|
9857
|
+
* // $ npm install googleapis
|
|
9858
|
+
* // ```
|
|
9859
|
+
*
|
|
9860
|
+
* const {google} = require('googleapis');
|
|
9861
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
9862
|
+
*
|
|
9863
|
+
* async function main() {
|
|
9864
|
+
* const auth = new google.auth.GoogleAuth({
|
|
9865
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
9866
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
9867
|
+
* });
|
|
9868
|
+
*
|
|
9869
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
9870
|
+
* const authClient = await auth.getClient();
|
|
9871
|
+
* google.options({auth: authClient});
|
|
9872
|
+
*
|
|
9873
|
+
* // Do the magic
|
|
9874
|
+
* const res =
|
|
9875
|
+
* await networkservices.projects.locations.lbTrafficExtensions.delete({
|
|
9876
|
+
* // Required. The name of the `LbTrafficExtension` resource to delete. Must be in the format `projects/{project\}/locations/{location\}/lbTrafficExtensions/{lb_traffic_extension\}`.
|
|
9877
|
+
* name: 'projects/my-project/locations/my-location/lbTrafficExtensions/my-lbTrafficExtension',
|
|
9878
|
+
* // 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).
|
|
9879
|
+
* requestId: 'placeholder-value',
|
|
9880
|
+
* });
|
|
9881
|
+
* console.log(res.data);
|
|
9882
|
+
*
|
|
9883
|
+
* // Example response
|
|
9884
|
+
* // {
|
|
9885
|
+
* // "done": false,
|
|
9886
|
+
* // "error": {},
|
|
9887
|
+
* // "metadata": {},
|
|
9888
|
+
* // "name": "my_name",
|
|
9889
|
+
* // "response": {}
|
|
9890
|
+
* // }
|
|
9891
|
+
* }
|
|
9892
|
+
*
|
|
9893
|
+
* main().catch(e => {
|
|
9894
|
+
* console.error(e);
|
|
9895
|
+
* throw e;
|
|
9896
|
+
* });
|
|
9897
|
+
*
|
|
9898
|
+
* ```
|
|
9899
|
+
*
|
|
9900
|
+
* @param params - Parameters for request
|
|
9901
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
9902
|
+
* @param callback - Optional callback that handles the response.
|
|
9903
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9904
|
+
*/
|
|
9905
|
+
delete(
|
|
9906
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Delete,
|
|
9907
|
+
options: StreamMethodOptions
|
|
9908
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9909
|
+
delete(
|
|
9910
|
+
params?: Params$Resource$Projects$Locations$Lbtrafficextensions$Delete,
|
|
9911
|
+
options?: MethodOptions
|
|
9912
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
9913
|
+
delete(
|
|
9914
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Delete,
|
|
9915
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9916
|
+
callback: BodyResponseCallback<Readable>
|
|
9917
|
+
): void;
|
|
9918
|
+
delete(
|
|
9919
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Delete,
|
|
9920
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
9921
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
9922
|
+
): void;
|
|
9923
|
+
delete(
|
|
9924
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Delete,
|
|
9925
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
9926
|
+
): void;
|
|
9927
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
9928
|
+
delete(
|
|
9929
|
+
paramsOrCallback?:
|
|
9930
|
+
| Params$Resource$Projects$Locations$Lbtrafficextensions$Delete
|
|
9931
|
+
| BodyResponseCallback<Schema$Operation>
|
|
9932
|
+
| BodyResponseCallback<Readable>,
|
|
9933
|
+
optionsOrCallback?:
|
|
9934
|
+
| MethodOptions
|
|
9935
|
+
| StreamMethodOptions
|
|
9936
|
+
| BodyResponseCallback<Schema$Operation>
|
|
9937
|
+
| BodyResponseCallback<Readable>,
|
|
9938
|
+
callback?:
|
|
9939
|
+
| BodyResponseCallback<Schema$Operation>
|
|
9940
|
+
| BodyResponseCallback<Readable>
|
|
9941
|
+
):
|
|
9942
|
+
| void
|
|
9943
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
9944
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9945
|
+
let params = (paramsOrCallback ||
|
|
9946
|
+
{}) as Params$Resource$Projects$Locations$Lbtrafficextensions$Delete;
|
|
9947
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9948
|
+
|
|
9949
|
+
if (typeof paramsOrCallback === 'function') {
|
|
9950
|
+
callback = paramsOrCallback;
|
|
9951
|
+
params =
|
|
9952
|
+
{} as Params$Resource$Projects$Locations$Lbtrafficextensions$Delete;
|
|
9953
|
+
options = {};
|
|
9954
|
+
}
|
|
9955
|
+
|
|
9956
|
+
if (typeof optionsOrCallback === 'function') {
|
|
9957
|
+
callback = optionsOrCallback;
|
|
9958
|
+
options = {};
|
|
9959
|
+
}
|
|
9960
|
+
|
|
9961
|
+
const rootUrl =
|
|
9962
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
9963
|
+
const parameters = {
|
|
9964
|
+
options: Object.assign(
|
|
9965
|
+
{
|
|
9966
|
+
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
9967
|
+
method: 'DELETE',
|
|
9968
|
+
apiVersion: '',
|
|
9969
|
+
},
|
|
9970
|
+
options
|
|
9971
|
+
),
|
|
9972
|
+
params,
|
|
9973
|
+
requiredParams: ['name'],
|
|
9974
|
+
pathParams: ['name'],
|
|
9975
|
+
context: this.context,
|
|
9976
|
+
};
|
|
9977
|
+
if (callback) {
|
|
9978
|
+
createAPIRequest<Schema$Operation>(
|
|
9979
|
+
parameters,
|
|
9980
|
+
callback as BodyResponseCallback<unknown>
|
|
9981
|
+
);
|
|
9982
|
+
} else {
|
|
9983
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
9984
|
+
}
|
|
9985
|
+
}
|
|
9986
|
+
|
|
9987
|
+
/**
|
|
9988
|
+
* Gets details of the specified `LbTrafficExtension` resource.
|
|
9989
|
+
* @example
|
|
9990
|
+
* ```js
|
|
9991
|
+
* // Before running the sample:
|
|
9992
|
+
* // - Enable the API at:
|
|
9993
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
9994
|
+
* // - Login into gcloud by running:
|
|
9995
|
+
* // ```sh
|
|
9996
|
+
* // $ gcloud auth application-default login
|
|
9997
|
+
* // ```
|
|
9998
|
+
* // - Install the npm module by running:
|
|
9999
|
+
* // ```sh
|
|
10000
|
+
* // $ npm install googleapis
|
|
10001
|
+
* // ```
|
|
10002
|
+
*
|
|
10003
|
+
* const {google} = require('googleapis');
|
|
10004
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
10005
|
+
*
|
|
10006
|
+
* async function main() {
|
|
10007
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10008
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10009
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
10010
|
+
* });
|
|
10011
|
+
*
|
|
10012
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10013
|
+
* const authClient = await auth.getClient();
|
|
10014
|
+
* google.options({auth: authClient});
|
|
10015
|
+
*
|
|
10016
|
+
* // Do the magic
|
|
10017
|
+
* const res = await networkservices.projects.locations.lbTrafficExtensions.get({
|
|
10018
|
+
* // Required. A name of the `LbTrafficExtension` resource to get. Must be in the format `projects/{project\}/locations/{location\}/lbTrafficExtensions/{lb_traffic_extension\}`.
|
|
10019
|
+
* name: 'projects/my-project/locations/my-location/lbTrafficExtensions/my-lbTrafficExtension',
|
|
10020
|
+
* });
|
|
10021
|
+
* console.log(res.data);
|
|
10022
|
+
*
|
|
10023
|
+
* // Example response
|
|
10024
|
+
* // {
|
|
10025
|
+
* // "createTime": "my_createTime",
|
|
10026
|
+
* // "description": "my_description",
|
|
10027
|
+
* // "extensionChains": [],
|
|
10028
|
+
* // "forwardingRules": [],
|
|
10029
|
+
* // "labels": {},
|
|
10030
|
+
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
10031
|
+
* // "metadata": {},
|
|
10032
|
+
* // "name": "my_name",
|
|
10033
|
+
* // "updateTime": "my_updateTime"
|
|
10034
|
+
* // }
|
|
10035
|
+
* }
|
|
10036
|
+
*
|
|
10037
|
+
* main().catch(e => {
|
|
10038
|
+
* console.error(e);
|
|
10039
|
+
* throw e;
|
|
10040
|
+
* });
|
|
10041
|
+
*
|
|
10042
|
+
* ```
|
|
10043
|
+
*
|
|
10044
|
+
* @param params - Parameters for request
|
|
10045
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
10046
|
+
* @param callback - Optional callback that handles the response.
|
|
10047
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
10048
|
+
*/
|
|
10049
|
+
get(
|
|
10050
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Get,
|
|
10051
|
+
options: StreamMethodOptions
|
|
10052
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
10053
|
+
get(
|
|
10054
|
+
params?: Params$Resource$Projects$Locations$Lbtrafficextensions$Get,
|
|
10055
|
+
options?: MethodOptions
|
|
10056
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$LbTrafficExtension>>;
|
|
10057
|
+
get(
|
|
10058
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Get,
|
|
10059
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
10060
|
+
callback: BodyResponseCallback<Readable>
|
|
10061
|
+
): void;
|
|
10062
|
+
get(
|
|
10063
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Get,
|
|
10064
|
+
options: MethodOptions | BodyResponseCallback<Schema$LbTrafficExtension>,
|
|
10065
|
+
callback: BodyResponseCallback<Schema$LbTrafficExtension>
|
|
10066
|
+
): void;
|
|
10067
|
+
get(
|
|
10068
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Get,
|
|
10069
|
+
callback: BodyResponseCallback<Schema$LbTrafficExtension>
|
|
10070
|
+
): void;
|
|
10071
|
+
get(callback: BodyResponseCallback<Schema$LbTrafficExtension>): void;
|
|
10072
|
+
get(
|
|
10073
|
+
paramsOrCallback?:
|
|
10074
|
+
| Params$Resource$Projects$Locations$Lbtrafficextensions$Get
|
|
10075
|
+
| BodyResponseCallback<Schema$LbTrafficExtension>
|
|
10076
|
+
| BodyResponseCallback<Readable>,
|
|
10077
|
+
optionsOrCallback?:
|
|
10078
|
+
| MethodOptions
|
|
10079
|
+
| StreamMethodOptions
|
|
10080
|
+
| BodyResponseCallback<Schema$LbTrafficExtension>
|
|
10081
|
+
| BodyResponseCallback<Readable>,
|
|
10082
|
+
callback?:
|
|
10083
|
+
| BodyResponseCallback<Schema$LbTrafficExtension>
|
|
10084
|
+
| BodyResponseCallback<Readable>
|
|
10085
|
+
):
|
|
10086
|
+
| void
|
|
10087
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$LbTrafficExtension>>
|
|
10088
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
10089
|
+
let params = (paramsOrCallback ||
|
|
10090
|
+
{}) as Params$Resource$Projects$Locations$Lbtrafficextensions$Get;
|
|
10091
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
10092
|
+
|
|
10093
|
+
if (typeof paramsOrCallback === 'function') {
|
|
10094
|
+
callback = paramsOrCallback;
|
|
10095
|
+
params =
|
|
10096
|
+
{} as Params$Resource$Projects$Locations$Lbtrafficextensions$Get;
|
|
10097
|
+
options = {};
|
|
10098
|
+
}
|
|
10099
|
+
|
|
10100
|
+
if (typeof optionsOrCallback === 'function') {
|
|
10101
|
+
callback = optionsOrCallback;
|
|
10102
|
+
options = {};
|
|
10103
|
+
}
|
|
10104
|
+
|
|
10105
|
+
const rootUrl =
|
|
10106
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
10107
|
+
const parameters = {
|
|
10108
|
+
options: Object.assign(
|
|
10109
|
+
{
|
|
10110
|
+
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
10111
|
+
method: 'GET',
|
|
10112
|
+
apiVersion: '',
|
|
10113
|
+
},
|
|
10114
|
+
options
|
|
10115
|
+
),
|
|
10116
|
+
params,
|
|
10117
|
+
requiredParams: ['name'],
|
|
10118
|
+
pathParams: ['name'],
|
|
10119
|
+
context: this.context,
|
|
10120
|
+
};
|
|
10121
|
+
if (callback) {
|
|
10122
|
+
createAPIRequest<Schema$LbTrafficExtension>(
|
|
10123
|
+
parameters,
|
|
10124
|
+
callback as BodyResponseCallback<unknown>
|
|
10125
|
+
);
|
|
10126
|
+
} else {
|
|
10127
|
+
return createAPIRequest<Schema$LbTrafficExtension>(parameters);
|
|
10128
|
+
}
|
|
10129
|
+
}
|
|
10130
|
+
|
|
10131
|
+
/**
|
|
10132
|
+
* Lists `LbTrafficExtension` resources in a given project and location.
|
|
10133
|
+
* @example
|
|
10134
|
+
* ```js
|
|
10135
|
+
* // Before running the sample:
|
|
10136
|
+
* // - Enable the API at:
|
|
10137
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
10138
|
+
* // - Login into gcloud by running:
|
|
10139
|
+
* // ```sh
|
|
10140
|
+
* // $ gcloud auth application-default login
|
|
10141
|
+
* // ```
|
|
10142
|
+
* // - Install the npm module by running:
|
|
10143
|
+
* // ```sh
|
|
10144
|
+
* // $ npm install googleapis
|
|
10145
|
+
* // ```
|
|
10146
|
+
*
|
|
10147
|
+
* const {google} = require('googleapis');
|
|
10148
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
10149
|
+
*
|
|
10150
|
+
* async function main() {
|
|
10151
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10152
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10153
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
10154
|
+
* });
|
|
10155
|
+
*
|
|
10156
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10157
|
+
* const authClient = await auth.getClient();
|
|
10158
|
+
* google.options({auth: authClient});
|
|
10159
|
+
*
|
|
10160
|
+
* // Do the magic
|
|
10161
|
+
* const res = await networkservices.projects.locations.lbTrafficExtensions.list(
|
|
10162
|
+
* {
|
|
10163
|
+
* // Optional. Filtering results.
|
|
10164
|
+
* filter: 'placeholder-value',
|
|
10165
|
+
* // Optional. Hint about how to order the results.
|
|
10166
|
+
* orderBy: 'placeholder-value',
|
|
10167
|
+
* // Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
|
|
10168
|
+
* pageSize: 'placeholder-value',
|
|
10169
|
+
* // Optional. A token identifying a page of results that the server returns.
|
|
10170
|
+
* pageToken: 'placeholder-value',
|
|
10171
|
+
* // Required. The project and location from which the `LbTrafficExtension` resources are listed. These values are specified in the following format: `projects/{project\}/locations/{location\}`.
|
|
10172
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
10173
|
+
* },
|
|
10174
|
+
* );
|
|
10175
|
+
* console.log(res.data);
|
|
10176
|
+
*
|
|
10177
|
+
* // Example response
|
|
10178
|
+
* // {
|
|
10179
|
+
* // "lbTrafficExtensions": [],
|
|
10180
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
10181
|
+
* // "unreachable": []
|
|
10182
|
+
* // }
|
|
10183
|
+
* }
|
|
10184
|
+
*
|
|
10185
|
+
* main().catch(e => {
|
|
10186
|
+
* console.error(e);
|
|
10187
|
+
* throw e;
|
|
10188
|
+
* });
|
|
10189
|
+
*
|
|
10190
|
+
* ```
|
|
10191
|
+
*
|
|
10192
|
+
* @param params - Parameters for request
|
|
10193
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
10194
|
+
* @param callback - Optional callback that handles the response.
|
|
10195
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
10196
|
+
*/
|
|
10197
|
+
list(
|
|
10198
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$List,
|
|
10199
|
+
options: StreamMethodOptions
|
|
10200
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
10201
|
+
list(
|
|
10202
|
+
params?: Params$Resource$Projects$Locations$Lbtrafficextensions$List,
|
|
10203
|
+
options?: MethodOptions
|
|
10204
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListLbTrafficExtensionsResponse>>;
|
|
10205
|
+
list(
|
|
10206
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$List,
|
|
10207
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
10208
|
+
callback: BodyResponseCallback<Readable>
|
|
10209
|
+
): void;
|
|
10210
|
+
list(
|
|
10211
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$List,
|
|
10212
|
+
options:
|
|
10213
|
+
| MethodOptions
|
|
10214
|
+
| BodyResponseCallback<Schema$ListLbTrafficExtensionsResponse>,
|
|
10215
|
+
callback: BodyResponseCallback<Schema$ListLbTrafficExtensionsResponse>
|
|
10216
|
+
): void;
|
|
10217
|
+
list(
|
|
10218
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$List,
|
|
10219
|
+
callback: BodyResponseCallback<Schema$ListLbTrafficExtensionsResponse>
|
|
10220
|
+
): void;
|
|
10221
|
+
list(
|
|
10222
|
+
callback: BodyResponseCallback<Schema$ListLbTrafficExtensionsResponse>
|
|
10223
|
+
): void;
|
|
10224
|
+
list(
|
|
10225
|
+
paramsOrCallback?:
|
|
10226
|
+
| Params$Resource$Projects$Locations$Lbtrafficextensions$List
|
|
10227
|
+
| BodyResponseCallback<Schema$ListLbTrafficExtensionsResponse>
|
|
10228
|
+
| BodyResponseCallback<Readable>,
|
|
10229
|
+
optionsOrCallback?:
|
|
10230
|
+
| MethodOptions
|
|
10231
|
+
| StreamMethodOptions
|
|
10232
|
+
| BodyResponseCallback<Schema$ListLbTrafficExtensionsResponse>
|
|
10233
|
+
| BodyResponseCallback<Readable>,
|
|
10234
|
+
callback?:
|
|
10235
|
+
| BodyResponseCallback<Schema$ListLbTrafficExtensionsResponse>
|
|
10236
|
+
| BodyResponseCallback<Readable>
|
|
10237
|
+
):
|
|
10238
|
+
| void
|
|
10239
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListLbTrafficExtensionsResponse>>
|
|
10240
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
10241
|
+
let params = (paramsOrCallback ||
|
|
10242
|
+
{}) as Params$Resource$Projects$Locations$Lbtrafficextensions$List;
|
|
10243
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
10244
|
+
|
|
10245
|
+
if (typeof paramsOrCallback === 'function') {
|
|
10246
|
+
callback = paramsOrCallback;
|
|
10247
|
+
params =
|
|
10248
|
+
{} as Params$Resource$Projects$Locations$Lbtrafficextensions$List;
|
|
10249
|
+
options = {};
|
|
10250
|
+
}
|
|
10251
|
+
|
|
10252
|
+
if (typeof optionsOrCallback === 'function') {
|
|
10253
|
+
callback = optionsOrCallback;
|
|
10254
|
+
options = {};
|
|
10255
|
+
}
|
|
10256
|
+
|
|
10257
|
+
const rootUrl =
|
|
10258
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
10259
|
+
const parameters = {
|
|
10260
|
+
options: Object.assign(
|
|
10261
|
+
{
|
|
10262
|
+
url: (rootUrl + '/v1beta1/{+parent}/lbTrafficExtensions').replace(
|
|
10263
|
+
/([^:]\/)\/+/g,
|
|
10264
|
+
'$1'
|
|
10265
|
+
),
|
|
10266
|
+
method: 'GET',
|
|
10267
|
+
apiVersion: '',
|
|
10268
|
+
},
|
|
10269
|
+
options
|
|
10270
|
+
),
|
|
10271
|
+
params,
|
|
10272
|
+
requiredParams: ['parent'],
|
|
10273
|
+
pathParams: ['parent'],
|
|
10274
|
+
context: this.context,
|
|
10275
|
+
};
|
|
10276
|
+
if (callback) {
|
|
10277
|
+
createAPIRequest<Schema$ListLbTrafficExtensionsResponse>(
|
|
10278
|
+
parameters,
|
|
10279
|
+
callback as BodyResponseCallback<unknown>
|
|
10280
|
+
);
|
|
10281
|
+
} else {
|
|
10282
|
+
return createAPIRequest<Schema$ListLbTrafficExtensionsResponse>(
|
|
10283
|
+
parameters
|
|
10284
|
+
);
|
|
10285
|
+
}
|
|
10286
|
+
}
|
|
10287
|
+
|
|
10288
|
+
/**
|
|
10289
|
+
* Updates the parameters of the specified `LbTrafficExtension` resource.
|
|
10290
|
+
* @example
|
|
10291
|
+
* ```js
|
|
10292
|
+
* // Before running the sample:
|
|
10293
|
+
* // - Enable the API at:
|
|
10294
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
10295
|
+
* // - Login into gcloud by running:
|
|
10296
|
+
* // ```sh
|
|
10297
|
+
* // $ gcloud auth application-default login
|
|
10298
|
+
* // ```
|
|
10299
|
+
* // - Install the npm module by running:
|
|
10300
|
+
* // ```sh
|
|
10301
|
+
* // $ npm install googleapis
|
|
10302
|
+
* // ```
|
|
10303
|
+
*
|
|
10304
|
+
* const {google} = require('googleapis');
|
|
10305
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
10306
|
+
*
|
|
10307
|
+
* async function main() {
|
|
10308
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10309
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10310
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
10311
|
+
* });
|
|
10312
|
+
*
|
|
10313
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10314
|
+
* const authClient = await auth.getClient();
|
|
10315
|
+
* google.options({auth: authClient});
|
|
10316
|
+
*
|
|
10317
|
+
* // Do the magic
|
|
10318
|
+
* const res =
|
|
10319
|
+
* await networkservices.projects.locations.lbTrafficExtensions.patch({
|
|
10320
|
+
* // Required. Identifier. Name of the `LbTrafficExtension` resource in the following format: `projects/{project\}/locations/{location\}/lbTrafficExtensions/{lb_traffic_extension\}`.
|
|
10321
|
+
* name: 'projects/my-project/locations/my-location/lbTrafficExtensions/my-lbTrafficExtension',
|
|
10322
|
+
* // 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).
|
|
10323
|
+
* requestId: 'placeholder-value',
|
|
10324
|
+
* // Optional. Used to specify the fields to be overwritten in the `LbTrafficExtension` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.
|
|
10325
|
+
* updateMask: 'placeholder-value',
|
|
10326
|
+
*
|
|
10327
|
+
* // Request body metadata
|
|
10328
|
+
* requestBody: {
|
|
10329
|
+
* // request body parameters
|
|
10330
|
+
* // {
|
|
10331
|
+
* // "createTime": "my_createTime",
|
|
10332
|
+
* // "description": "my_description",
|
|
10333
|
+
* // "extensionChains": [],
|
|
10334
|
+
* // "forwardingRules": [],
|
|
10335
|
+
* // "labels": {},
|
|
10336
|
+
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
10337
|
+
* // "metadata": {},
|
|
10338
|
+
* // "name": "my_name",
|
|
10339
|
+
* // "updateTime": "my_updateTime"
|
|
10340
|
+
* // }
|
|
10341
|
+
* },
|
|
10342
|
+
* });
|
|
10343
|
+
* console.log(res.data);
|
|
10344
|
+
*
|
|
10345
|
+
* // Example response
|
|
10346
|
+
* // {
|
|
10347
|
+
* // "done": false,
|
|
10348
|
+
* // "error": {},
|
|
10349
|
+
* // "metadata": {},
|
|
10350
|
+
* // "name": "my_name",
|
|
10351
|
+
* // "response": {}
|
|
10352
|
+
* // }
|
|
10353
|
+
* }
|
|
10354
|
+
*
|
|
10355
|
+
* main().catch(e => {
|
|
10356
|
+
* console.error(e);
|
|
10357
|
+
* throw e;
|
|
10358
|
+
* });
|
|
10359
|
+
*
|
|
10360
|
+
* ```
|
|
10361
|
+
*
|
|
10362
|
+
* @param params - Parameters for request
|
|
10363
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
10364
|
+
* @param callback - Optional callback that handles the response.
|
|
10365
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
10366
|
+
*/
|
|
10367
|
+
patch(
|
|
10368
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Patch,
|
|
10369
|
+
options: StreamMethodOptions
|
|
10370
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
10371
|
+
patch(
|
|
10372
|
+
params?: Params$Resource$Projects$Locations$Lbtrafficextensions$Patch,
|
|
10373
|
+
options?: MethodOptions
|
|
10374
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
10375
|
+
patch(
|
|
10376
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Patch,
|
|
10377
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
10378
|
+
callback: BodyResponseCallback<Readable>
|
|
10379
|
+
): void;
|
|
10380
|
+
patch(
|
|
10381
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Patch,
|
|
10382
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
10383
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
10384
|
+
): void;
|
|
10385
|
+
patch(
|
|
10386
|
+
params: Params$Resource$Projects$Locations$Lbtrafficextensions$Patch,
|
|
10387
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
10388
|
+
): void;
|
|
10389
|
+
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
10390
|
+
patch(
|
|
10391
|
+
paramsOrCallback?:
|
|
10392
|
+
| Params$Resource$Projects$Locations$Lbtrafficextensions$Patch
|
|
10393
|
+
| BodyResponseCallback<Schema$Operation>
|
|
10394
|
+
| BodyResponseCallback<Readable>,
|
|
10395
|
+
optionsOrCallback?:
|
|
10396
|
+
| MethodOptions
|
|
10397
|
+
| StreamMethodOptions
|
|
10398
|
+
| BodyResponseCallback<Schema$Operation>
|
|
10399
|
+
| BodyResponseCallback<Readable>,
|
|
10400
|
+
callback?:
|
|
10401
|
+
| BodyResponseCallback<Schema$Operation>
|
|
10402
|
+
| BodyResponseCallback<Readable>
|
|
10403
|
+
):
|
|
10404
|
+
| void
|
|
10405
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
10406
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
10407
|
+
let params = (paramsOrCallback ||
|
|
10408
|
+
{}) as Params$Resource$Projects$Locations$Lbtrafficextensions$Patch;
|
|
10409
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
10410
|
+
|
|
10411
|
+
if (typeof paramsOrCallback === 'function') {
|
|
10412
|
+
callback = paramsOrCallback;
|
|
10413
|
+
params =
|
|
10414
|
+
{} as Params$Resource$Projects$Locations$Lbtrafficextensions$Patch;
|
|
10415
|
+
options = {};
|
|
10416
|
+
}
|
|
10417
|
+
|
|
10418
|
+
if (typeof optionsOrCallback === 'function') {
|
|
10419
|
+
callback = optionsOrCallback;
|
|
10420
|
+
options = {};
|
|
10421
|
+
}
|
|
10422
|
+
|
|
10423
|
+
const rootUrl =
|
|
10424
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
10425
|
+
const parameters = {
|
|
10426
|
+
options: Object.assign(
|
|
10427
|
+
{
|
|
10428
|
+
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
10429
|
+
method: 'PATCH',
|
|
10430
|
+
apiVersion: '',
|
|
10431
|
+
},
|
|
10432
|
+
options
|
|
10433
|
+
),
|
|
10434
|
+
params,
|
|
10435
|
+
requiredParams: ['name'],
|
|
10436
|
+
pathParams: ['name'],
|
|
10437
|
+
context: this.context,
|
|
10438
|
+
};
|
|
10439
|
+
if (callback) {
|
|
10440
|
+
createAPIRequest<Schema$Operation>(
|
|
10441
|
+
parameters,
|
|
10442
|
+
callback as BodyResponseCallback<unknown>
|
|
10443
|
+
);
|
|
10444
|
+
} else {
|
|
10445
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
10446
|
+
}
|
|
10447
|
+
}
|
|
10448
|
+
}
|
|
10449
|
+
|
|
10450
|
+
export interface Params$Resource$Projects$Locations$Lbtrafficextensions$Create
|
|
10451
|
+
extends StandardParameters {
|
|
10452
|
+
/**
|
|
10453
|
+
* Required. User-provided ID of the `LbTrafficExtension` resource to be created.
|
|
10454
|
+
*/
|
|
10455
|
+
lbTrafficExtensionId?: string;
|
|
10456
|
+
/**
|
|
10457
|
+
* Required. The parent resource of the `LbTrafficExtension` resource. Must be in the format `projects/{project\}/locations/{location\}`.
|
|
10458
|
+
*/
|
|
10459
|
+
parent?: string;
|
|
10460
|
+
/**
|
|
10461
|
+
* 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).
|
|
10462
|
+
*/
|
|
10463
|
+
requestId?: string;
|
|
10464
|
+
|
|
10465
|
+
/**
|
|
10466
|
+
* Request body metadata
|
|
10467
|
+
*/
|
|
10468
|
+
requestBody?: Schema$LbTrafficExtension;
|
|
10469
|
+
}
|
|
10470
|
+
export interface Params$Resource$Projects$Locations$Lbtrafficextensions$Delete
|
|
10471
|
+
extends StandardParameters {
|
|
10472
|
+
/**
|
|
10473
|
+
* Required. The name of the `LbTrafficExtension` resource to delete. Must be in the format `projects/{project\}/locations/{location\}/lbTrafficExtensions/{lb_traffic_extension\}`.
|
|
10474
|
+
*/
|
|
10475
|
+
name?: string;
|
|
10476
|
+
/**
|
|
10477
|
+
* 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).
|
|
10478
|
+
*/
|
|
10479
|
+
requestId?: string;
|
|
10480
|
+
}
|
|
10481
|
+
export interface Params$Resource$Projects$Locations$Lbtrafficextensions$Get
|
|
10482
|
+
extends StandardParameters {
|
|
10483
|
+
/**
|
|
10484
|
+
* Required. A name of the `LbTrafficExtension` resource to get. Must be in the format `projects/{project\}/locations/{location\}/lbTrafficExtensions/{lb_traffic_extension\}`.
|
|
10485
|
+
*/
|
|
10486
|
+
name?: string;
|
|
10487
|
+
}
|
|
10488
|
+
export interface Params$Resource$Projects$Locations$Lbtrafficextensions$List
|
|
10489
|
+
extends StandardParameters {
|
|
10490
|
+
/**
|
|
10491
|
+
* Optional. Filtering results.
|
|
10492
|
+
*/
|
|
10493
|
+
filter?: string;
|
|
10494
|
+
/**
|
|
10495
|
+
* Optional. Hint about how to order the results.
|
|
10496
|
+
*/
|
|
10497
|
+
orderBy?: string;
|
|
10498
|
+
/**
|
|
10499
|
+
* Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
|
|
10500
|
+
*/
|
|
10501
|
+
pageSize?: number;
|
|
10502
|
+
/**
|
|
10503
|
+
* Optional. A token identifying a page of results that the server returns.
|
|
10504
|
+
*/
|
|
10505
|
+
pageToken?: string;
|
|
10506
|
+
/**
|
|
10507
|
+
* Required. The project and location from which the `LbTrafficExtension` resources are listed. These values are specified in the following format: `projects/{project\}/locations/{location\}`.
|
|
10508
|
+
*/
|
|
10509
|
+
parent?: string;
|
|
10510
|
+
}
|
|
10511
|
+
export interface Params$Resource$Projects$Locations$Lbtrafficextensions$Patch
|
|
9605
10512
|
extends StandardParameters {
|
|
9606
10513
|
/**
|
|
9607
10514
|
* Required. Identifier. Name of the `LbTrafficExtension` resource in the following format: `projects/{project\}/locations/{location\}/lbTrafficExtensions/{lb_traffic_extension\}`.
|
|
@@ -11218,13 +12125,16 @@ export namespace networkservices_v1beta1 {
|
|
|
11218
12125
|
* pageSize: 'placeholder-value',
|
|
11219
12126
|
* // The standard list page token.
|
|
11220
12127
|
* pageToken: 'placeholder-value',
|
|
12128
|
+
* // 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.
|
|
12129
|
+
* returnPartialSuccess: 'placeholder-value',
|
|
11221
12130
|
* });
|
|
11222
12131
|
* console.log(res.data);
|
|
11223
12132
|
*
|
|
11224
12133
|
* // Example response
|
|
11225
12134
|
* // {
|
|
11226
12135
|
* // "nextPageToken": "my_nextPageToken",
|
|
11227
|
-
* // "operations": []
|
|
12136
|
+
* // "operations": [],
|
|
12137
|
+
* // "unreachable": []
|
|
11228
12138
|
* // }
|
|
11229
12139
|
* }
|
|
11230
12140
|
*
|
|
@@ -11371,6 +12281,10 @@ export namespace networkservices_v1beta1 {
|
|
|
11371
12281
|
* The standard list page token.
|
|
11372
12282
|
*/
|
|
11373
12283
|
pageToken?: string;
|
|
12284
|
+
/**
|
|
12285
|
+
* 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.
|
|
12286
|
+
*/
|
|
12287
|
+
returnPartialSuccess?: boolean;
|
|
11374
12288
|
}
|
|
11375
12289
|
|
|
11376
12290
|
export class Resource$Projects$Locations$Servicebindings {
|