@googleapis/networkservices 29.0.1 → 30.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +168 -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 +0 -1
- package/build/v1.js +46 -1
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +504 -1
- package/build/v1beta1.js +213 -1
- package/build/v1beta1.js.map +1 -1
- package/package.json +4 -4
- package/v1beta1.ts +903 -0
package/build/v1beta1.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
|
3
2
|
import { Readable } from 'stream';
|
|
4
3
|
export declare namespace networkservices_v1beta1 {
|
|
@@ -1122,6 +1121,45 @@ export declare namespace networkservices_v1beta1 {
|
|
|
1122
1121
|
*/
|
|
1123
1122
|
updateTime?: string | null;
|
|
1124
1123
|
}
|
|
1124
|
+
/**
|
|
1125
|
+
* `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.
|
|
1126
|
+
*/
|
|
1127
|
+
export interface Schema$LbTcpExtension {
|
|
1128
|
+
/**
|
|
1129
|
+
* Output only. The timestamp when the resource was created.
|
|
1130
|
+
*/
|
|
1131
|
+
createTime?: string | null;
|
|
1132
|
+
/**
|
|
1133
|
+
* Optional. A human-readable description of the resource.
|
|
1134
|
+
*/
|
|
1135
|
+
description?: string | null;
|
|
1136
|
+
/**
|
|
1137
|
+
* 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.
|
|
1138
|
+
*/
|
|
1139
|
+
extensionChains?: Schema$ExtensionChain[];
|
|
1140
|
+
/**
|
|
1141
|
+
* 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.
|
|
1142
|
+
*/
|
|
1143
|
+
labels?: {
|
|
1144
|
+
[key: string]: string;
|
|
1145
|
+
} | null;
|
|
1146
|
+
/**
|
|
1147
|
+
* 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).
|
|
1148
|
+
*/
|
|
1149
|
+
loadBalancingScheme?: string | null;
|
|
1150
|
+
/**
|
|
1151
|
+
* Required. Identifier. Name of the `LbTcpExtension` resource in the following format: `projects/{project\}/locations/{location\}/LbTcpExtension/{lb_tcp_extension\}`
|
|
1152
|
+
*/
|
|
1153
|
+
name?: string | null;
|
|
1154
|
+
/**
|
|
1155
|
+
* 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.
|
|
1156
|
+
*/
|
|
1157
|
+
networks?: string[] | null;
|
|
1158
|
+
/**
|
|
1159
|
+
* Output only. The timestamp when the resource was updated.
|
|
1160
|
+
*/
|
|
1161
|
+
updateTime?: string | null;
|
|
1162
|
+
}
|
|
1125
1163
|
/**
|
|
1126
1164
|
* `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.
|
|
1127
1165
|
*/
|
|
@@ -1303,6 +1341,23 @@ export declare namespace networkservices_v1beta1 {
|
|
|
1303
1341
|
*/
|
|
1304
1342
|
unreachable?: string[] | null;
|
|
1305
1343
|
}
|
|
1344
|
+
/**
|
|
1345
|
+
* Message for response to listing `LbTcpExtension` resources.
|
|
1346
|
+
*/
|
|
1347
|
+
export interface Schema$ListLbTcpExtensionsResponse {
|
|
1348
|
+
/**
|
|
1349
|
+
* The list of `LbTcpExtension` resources.
|
|
1350
|
+
*/
|
|
1351
|
+
lbTcpExtensions?: Schema$LbTcpExtension[];
|
|
1352
|
+
/**
|
|
1353
|
+
* A token identifying a page of results that the server returns.
|
|
1354
|
+
*/
|
|
1355
|
+
nextPageToken?: string | null;
|
|
1356
|
+
/**
|
|
1357
|
+
* Locations that could not be reached.
|
|
1358
|
+
*/
|
|
1359
|
+
unreachable?: string[] | null;
|
|
1360
|
+
}
|
|
1306
1361
|
/**
|
|
1307
1362
|
* Message for response to listing `LbTrafficExtension` resources.
|
|
1308
1363
|
*/
|
|
@@ -2184,6 +2239,7 @@ export declare namespace networkservices_v1beta1 {
|
|
|
2184
2239
|
httpRoutes: Resource$Projects$Locations$Httproutes;
|
|
2185
2240
|
lbEdgeExtensions: Resource$Projects$Locations$Lbedgeextensions;
|
|
2186
2241
|
lbRouteExtensions: Resource$Projects$Locations$Lbrouteextensions;
|
|
2242
|
+
lbTcpExtensions: Resource$Projects$Locations$Lbtcpextensions;
|
|
2187
2243
|
lbTrafficExtensions: Resource$Projects$Locations$Lbtrafficextensions;
|
|
2188
2244
|
meshes: Resource$Projects$Locations$Meshes;
|
|
2189
2245
|
operations: Resource$Projects$Locations$Operations;
|
|
@@ -5615,6 +5671,453 @@ export declare namespace networkservices_v1beta1 {
|
|
|
5615
5671
|
*/
|
|
5616
5672
|
requestBody?: Schema$LbRouteExtension;
|
|
5617
5673
|
}
|
|
5674
|
+
export class Resource$Projects$Locations$Lbtcpextensions {
|
|
5675
|
+
context: APIRequestContext;
|
|
5676
|
+
constructor(context: APIRequestContext);
|
|
5677
|
+
/**
|
|
5678
|
+
* Creates a new `LbTcpExtension` resource in a given project and location.
|
|
5679
|
+
* @example
|
|
5680
|
+
* ```js
|
|
5681
|
+
* // Before running the sample:
|
|
5682
|
+
* // - Enable the API at:
|
|
5683
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
5684
|
+
* // - Login into gcloud by running:
|
|
5685
|
+
* // ```sh
|
|
5686
|
+
* // $ gcloud auth application-default login
|
|
5687
|
+
* // ```
|
|
5688
|
+
* // - Install the npm module by running:
|
|
5689
|
+
* // ```sh
|
|
5690
|
+
* // $ npm install googleapis
|
|
5691
|
+
* // ```
|
|
5692
|
+
*
|
|
5693
|
+
* const {google} = require('googleapis');
|
|
5694
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
5695
|
+
*
|
|
5696
|
+
* async function main() {
|
|
5697
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5698
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5699
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5700
|
+
* });
|
|
5701
|
+
*
|
|
5702
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5703
|
+
* const authClient = await auth.getClient();
|
|
5704
|
+
* google.options({auth: authClient});
|
|
5705
|
+
*
|
|
5706
|
+
* // Do the magic
|
|
5707
|
+
* const res = await networkservices.projects.locations.lbTcpExtensions.create({
|
|
5708
|
+
* // Required. User-provided ID of the `LbTcpExtension` resource to be created.
|
|
5709
|
+
* lbTcpExtensionId: 'placeholder-value',
|
|
5710
|
+
* // Required. The parent resource of the `LbTcpExtension` resource. Must be in the format `projects/{project\}/locations/{location\}`.
|
|
5711
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
5712
|
+
* // 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).
|
|
5713
|
+
* requestId: 'placeholder-value',
|
|
5714
|
+
*
|
|
5715
|
+
* // Request body metadata
|
|
5716
|
+
* requestBody: {
|
|
5717
|
+
* // request body parameters
|
|
5718
|
+
* // {
|
|
5719
|
+
* // "createTime": "my_createTime",
|
|
5720
|
+
* // "description": "my_description",
|
|
5721
|
+
* // "extensionChains": [],
|
|
5722
|
+
* // "labels": {},
|
|
5723
|
+
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
5724
|
+
* // "name": "my_name",
|
|
5725
|
+
* // "networks": [],
|
|
5726
|
+
* // "updateTime": "my_updateTime"
|
|
5727
|
+
* // }
|
|
5728
|
+
* },
|
|
5729
|
+
* });
|
|
5730
|
+
* console.log(res.data);
|
|
5731
|
+
*
|
|
5732
|
+
* // Example response
|
|
5733
|
+
* // {
|
|
5734
|
+
* // "done": false,
|
|
5735
|
+
* // "error": {},
|
|
5736
|
+
* // "metadata": {},
|
|
5737
|
+
* // "name": "my_name",
|
|
5738
|
+
* // "response": {}
|
|
5739
|
+
* // }
|
|
5740
|
+
* }
|
|
5741
|
+
*
|
|
5742
|
+
* main().catch(e => {
|
|
5743
|
+
* console.error(e);
|
|
5744
|
+
* throw e;
|
|
5745
|
+
* });
|
|
5746
|
+
*
|
|
5747
|
+
* ```
|
|
5748
|
+
*
|
|
5749
|
+
* @param params - Parameters for request
|
|
5750
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5751
|
+
* @param callback - Optional callback that handles the response.
|
|
5752
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5753
|
+
*/
|
|
5754
|
+
create(params: Params$Resource$Projects$Locations$Lbtcpextensions$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5755
|
+
create(params?: Params$Resource$Projects$Locations$Lbtcpextensions$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
5756
|
+
create(params: Params$Resource$Projects$Locations$Lbtcpextensions$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5757
|
+
create(params: Params$Resource$Projects$Locations$Lbtcpextensions$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5758
|
+
create(params: Params$Resource$Projects$Locations$Lbtcpextensions$Create, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5759
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5760
|
+
/**
|
|
5761
|
+
* Deletes the specified `LbTcpExtension` resource.
|
|
5762
|
+
* @example
|
|
5763
|
+
* ```js
|
|
5764
|
+
* // Before running the sample:
|
|
5765
|
+
* // - Enable the API at:
|
|
5766
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
5767
|
+
* // - Login into gcloud by running:
|
|
5768
|
+
* // ```sh
|
|
5769
|
+
* // $ gcloud auth application-default login
|
|
5770
|
+
* // ```
|
|
5771
|
+
* // - Install the npm module by running:
|
|
5772
|
+
* // ```sh
|
|
5773
|
+
* // $ npm install googleapis
|
|
5774
|
+
* // ```
|
|
5775
|
+
*
|
|
5776
|
+
* const {google} = require('googleapis');
|
|
5777
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
5778
|
+
*
|
|
5779
|
+
* async function main() {
|
|
5780
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5781
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5782
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5783
|
+
* });
|
|
5784
|
+
*
|
|
5785
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5786
|
+
* const authClient = await auth.getClient();
|
|
5787
|
+
* google.options({auth: authClient});
|
|
5788
|
+
*
|
|
5789
|
+
* // Do the magic
|
|
5790
|
+
* const res = await networkservices.projects.locations.lbTcpExtensions.delete({
|
|
5791
|
+
* // Required. The name of the `LbTcpExtension` resource to delete. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
|
|
5792
|
+
* name: 'projects/my-project/locations/my-location/lbTcpExtensions/my-lbTcpExtension',
|
|
5793
|
+
* // 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).
|
|
5794
|
+
* requestId: 'placeholder-value',
|
|
5795
|
+
* });
|
|
5796
|
+
* console.log(res.data);
|
|
5797
|
+
*
|
|
5798
|
+
* // Example response
|
|
5799
|
+
* // {
|
|
5800
|
+
* // "done": false,
|
|
5801
|
+
* // "error": {},
|
|
5802
|
+
* // "metadata": {},
|
|
5803
|
+
* // "name": "my_name",
|
|
5804
|
+
* // "response": {}
|
|
5805
|
+
* // }
|
|
5806
|
+
* }
|
|
5807
|
+
*
|
|
5808
|
+
* main().catch(e => {
|
|
5809
|
+
* console.error(e);
|
|
5810
|
+
* throw e;
|
|
5811
|
+
* });
|
|
5812
|
+
*
|
|
5813
|
+
* ```
|
|
5814
|
+
*
|
|
5815
|
+
* @param params - Parameters for request
|
|
5816
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5817
|
+
* @param callback - Optional callback that handles the response.
|
|
5818
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5819
|
+
*/
|
|
5820
|
+
delete(params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5821
|
+
delete(params?: Params$Resource$Projects$Locations$Lbtcpextensions$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
5822
|
+
delete(params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5823
|
+
delete(params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5824
|
+
delete(params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5825
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5826
|
+
/**
|
|
5827
|
+
* Gets details of the specified `LbTcpExtension` resource.
|
|
5828
|
+
* @example
|
|
5829
|
+
* ```js
|
|
5830
|
+
* // Before running the sample:
|
|
5831
|
+
* // - Enable the API at:
|
|
5832
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
5833
|
+
* // - Login into gcloud by running:
|
|
5834
|
+
* // ```sh
|
|
5835
|
+
* // $ gcloud auth application-default login
|
|
5836
|
+
* // ```
|
|
5837
|
+
* // - Install the npm module by running:
|
|
5838
|
+
* // ```sh
|
|
5839
|
+
* // $ npm install googleapis
|
|
5840
|
+
* // ```
|
|
5841
|
+
*
|
|
5842
|
+
* const {google} = require('googleapis');
|
|
5843
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
5844
|
+
*
|
|
5845
|
+
* async function main() {
|
|
5846
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5847
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5848
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5849
|
+
* });
|
|
5850
|
+
*
|
|
5851
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5852
|
+
* const authClient = await auth.getClient();
|
|
5853
|
+
* google.options({auth: authClient});
|
|
5854
|
+
*
|
|
5855
|
+
* // Do the magic
|
|
5856
|
+
* const res = await networkservices.projects.locations.lbTcpExtensions.get({
|
|
5857
|
+
* // Required. A name of the `LbTcpExtension` resource to get. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
|
|
5858
|
+
* name: 'projects/my-project/locations/my-location/lbTcpExtensions/my-lbTcpExtension',
|
|
5859
|
+
* });
|
|
5860
|
+
* console.log(res.data);
|
|
5861
|
+
*
|
|
5862
|
+
* // Example response
|
|
5863
|
+
* // {
|
|
5864
|
+
* // "createTime": "my_createTime",
|
|
5865
|
+
* // "description": "my_description",
|
|
5866
|
+
* // "extensionChains": [],
|
|
5867
|
+
* // "labels": {},
|
|
5868
|
+
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
5869
|
+
* // "name": "my_name",
|
|
5870
|
+
* // "networks": [],
|
|
5871
|
+
* // "updateTime": "my_updateTime"
|
|
5872
|
+
* // }
|
|
5873
|
+
* }
|
|
5874
|
+
*
|
|
5875
|
+
* main().catch(e => {
|
|
5876
|
+
* console.error(e);
|
|
5877
|
+
* throw e;
|
|
5878
|
+
* });
|
|
5879
|
+
*
|
|
5880
|
+
* ```
|
|
5881
|
+
*
|
|
5882
|
+
* @param params - Parameters for request
|
|
5883
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5884
|
+
* @param callback - Optional callback that handles the response.
|
|
5885
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5886
|
+
*/
|
|
5887
|
+
get(params: Params$Resource$Projects$Locations$Lbtcpextensions$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5888
|
+
get(params?: Params$Resource$Projects$Locations$Lbtcpextensions$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$LbTcpExtension>>;
|
|
5889
|
+
get(params: Params$Resource$Projects$Locations$Lbtcpextensions$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5890
|
+
get(params: Params$Resource$Projects$Locations$Lbtcpextensions$Get, options: MethodOptions | BodyResponseCallback<Schema$LbTcpExtension>, callback: BodyResponseCallback<Schema$LbTcpExtension>): void;
|
|
5891
|
+
get(params: Params$Resource$Projects$Locations$Lbtcpextensions$Get, callback: BodyResponseCallback<Schema$LbTcpExtension>): void;
|
|
5892
|
+
get(callback: BodyResponseCallback<Schema$LbTcpExtension>): void;
|
|
5893
|
+
/**
|
|
5894
|
+
* Lists `LbTcpExtension` resources in a given project and location.
|
|
5895
|
+
* @example
|
|
5896
|
+
* ```js
|
|
5897
|
+
* // Before running the sample:
|
|
5898
|
+
* // - Enable the API at:
|
|
5899
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
5900
|
+
* // - Login into gcloud by running:
|
|
5901
|
+
* // ```sh
|
|
5902
|
+
* // $ gcloud auth application-default login
|
|
5903
|
+
* // ```
|
|
5904
|
+
* // - Install the npm module by running:
|
|
5905
|
+
* // ```sh
|
|
5906
|
+
* // $ npm install googleapis
|
|
5907
|
+
* // ```
|
|
5908
|
+
*
|
|
5909
|
+
* const {google} = require('googleapis');
|
|
5910
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
5911
|
+
*
|
|
5912
|
+
* async function main() {
|
|
5913
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5914
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5915
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5916
|
+
* });
|
|
5917
|
+
*
|
|
5918
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5919
|
+
* const authClient = await auth.getClient();
|
|
5920
|
+
* google.options({auth: authClient});
|
|
5921
|
+
*
|
|
5922
|
+
* // Do the magic
|
|
5923
|
+
* const res = await networkservices.projects.locations.lbTcpExtensions.list({
|
|
5924
|
+
* // Optional. Filtering results.
|
|
5925
|
+
* filter: 'placeholder-value',
|
|
5926
|
+
* // Optional. Hint for how to order the results.
|
|
5927
|
+
* orderBy: 'placeholder-value',
|
|
5928
|
+
* // Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
|
|
5929
|
+
* pageSize: 'placeholder-value',
|
|
5930
|
+
* // Optional. A token identifying a page of results that the server returns.
|
|
5931
|
+
* pageToken: 'placeholder-value',
|
|
5932
|
+
* // Required. The project and location from which the `LbTcpExtension` resources are listed, specified in the following format: `projects/{project\}/locations/{location\}`.
|
|
5933
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
5934
|
+
* });
|
|
5935
|
+
* console.log(res.data);
|
|
5936
|
+
*
|
|
5937
|
+
* // Example response
|
|
5938
|
+
* // {
|
|
5939
|
+
* // "lbTcpExtensions": [],
|
|
5940
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
5941
|
+
* // "unreachable": []
|
|
5942
|
+
* // }
|
|
5943
|
+
* }
|
|
5944
|
+
*
|
|
5945
|
+
* main().catch(e => {
|
|
5946
|
+
* console.error(e);
|
|
5947
|
+
* throw e;
|
|
5948
|
+
* });
|
|
5949
|
+
*
|
|
5950
|
+
* ```
|
|
5951
|
+
*
|
|
5952
|
+
* @param params - Parameters for request
|
|
5953
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5954
|
+
* @param callback - Optional callback that handles the response.
|
|
5955
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5956
|
+
*/
|
|
5957
|
+
list(params: Params$Resource$Projects$Locations$Lbtcpextensions$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5958
|
+
list(params?: Params$Resource$Projects$Locations$Lbtcpextensions$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListLbTcpExtensionsResponse>>;
|
|
5959
|
+
list(params: Params$Resource$Projects$Locations$Lbtcpextensions$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5960
|
+
list(params: Params$Resource$Projects$Locations$Lbtcpextensions$List, options: MethodOptions | BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>, callback: BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>): void;
|
|
5961
|
+
list(params: Params$Resource$Projects$Locations$Lbtcpextensions$List, callback: BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>): void;
|
|
5962
|
+
list(callback: BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>): void;
|
|
5963
|
+
/**
|
|
5964
|
+
* Updates the parameters of the specified `LbTcpExtension` resource.
|
|
5965
|
+
* @example
|
|
5966
|
+
* ```js
|
|
5967
|
+
* // Before running the sample:
|
|
5968
|
+
* // - Enable the API at:
|
|
5969
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
5970
|
+
* // - Login into gcloud by running:
|
|
5971
|
+
* // ```sh
|
|
5972
|
+
* // $ gcloud auth application-default login
|
|
5973
|
+
* // ```
|
|
5974
|
+
* // - Install the npm module by running:
|
|
5975
|
+
* // ```sh
|
|
5976
|
+
* // $ npm install googleapis
|
|
5977
|
+
* // ```
|
|
5978
|
+
*
|
|
5979
|
+
* const {google} = require('googleapis');
|
|
5980
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
5981
|
+
*
|
|
5982
|
+
* async function main() {
|
|
5983
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5984
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5985
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
5986
|
+
* });
|
|
5987
|
+
*
|
|
5988
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5989
|
+
* const authClient = await auth.getClient();
|
|
5990
|
+
* google.options({auth: authClient});
|
|
5991
|
+
*
|
|
5992
|
+
* // Do the magic
|
|
5993
|
+
* const res = await networkservices.projects.locations.lbTcpExtensions.patch({
|
|
5994
|
+
* // Required. Identifier. Name of the `LbTcpExtension` resource in the following format: `projects/{project\}/locations/{location\}/LbTcpExtension/{lb_tcp_extension\}`
|
|
5995
|
+
* name: 'projects/my-project/locations/my-location/lbTcpExtensions/my-lbTcpExtension',
|
|
5996
|
+
* // 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).
|
|
5997
|
+
* requestId: 'placeholder-value',
|
|
5998
|
+
* // 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.
|
|
5999
|
+
* updateMask: 'placeholder-value',
|
|
6000
|
+
*
|
|
6001
|
+
* // Request body metadata
|
|
6002
|
+
* requestBody: {
|
|
6003
|
+
* // request body parameters
|
|
6004
|
+
* // {
|
|
6005
|
+
* // "createTime": "my_createTime",
|
|
6006
|
+
* // "description": "my_description",
|
|
6007
|
+
* // "extensionChains": [],
|
|
6008
|
+
* // "labels": {},
|
|
6009
|
+
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
6010
|
+
* // "name": "my_name",
|
|
6011
|
+
* // "networks": [],
|
|
6012
|
+
* // "updateTime": "my_updateTime"
|
|
6013
|
+
* // }
|
|
6014
|
+
* },
|
|
6015
|
+
* });
|
|
6016
|
+
* console.log(res.data);
|
|
6017
|
+
*
|
|
6018
|
+
* // Example response
|
|
6019
|
+
* // {
|
|
6020
|
+
* // "done": false,
|
|
6021
|
+
* // "error": {},
|
|
6022
|
+
* // "metadata": {},
|
|
6023
|
+
* // "name": "my_name",
|
|
6024
|
+
* // "response": {}
|
|
6025
|
+
* // }
|
|
6026
|
+
* }
|
|
6027
|
+
*
|
|
6028
|
+
* main().catch(e => {
|
|
6029
|
+
* console.error(e);
|
|
6030
|
+
* throw e;
|
|
6031
|
+
* });
|
|
6032
|
+
*
|
|
6033
|
+
* ```
|
|
6034
|
+
*
|
|
6035
|
+
* @param params - Parameters for request
|
|
6036
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6037
|
+
* @param callback - Optional callback that handles the response.
|
|
6038
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6039
|
+
*/
|
|
6040
|
+
patch(params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
6041
|
+
patch(params?: Params$Resource$Projects$Locations$Lbtcpextensions$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
6042
|
+
patch(params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6043
|
+
patch(params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6044
|
+
patch(params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6045
|
+
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6046
|
+
}
|
|
6047
|
+
export interface Params$Resource$Projects$Locations$Lbtcpextensions$Create extends StandardParameters {
|
|
6048
|
+
/**
|
|
6049
|
+
* Required. User-provided ID of the `LbTcpExtension` resource to be created.
|
|
6050
|
+
*/
|
|
6051
|
+
lbTcpExtensionId?: string;
|
|
6052
|
+
/**
|
|
6053
|
+
* Required. The parent resource of the `LbTcpExtension` resource. Must be in the format `projects/{project\}/locations/{location\}`.
|
|
6054
|
+
*/
|
|
6055
|
+
parent?: string;
|
|
6056
|
+
/**
|
|
6057
|
+
* 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).
|
|
6058
|
+
*/
|
|
6059
|
+
requestId?: string;
|
|
6060
|
+
/**
|
|
6061
|
+
* Request body metadata
|
|
6062
|
+
*/
|
|
6063
|
+
requestBody?: Schema$LbTcpExtension;
|
|
6064
|
+
}
|
|
6065
|
+
export interface Params$Resource$Projects$Locations$Lbtcpextensions$Delete extends StandardParameters {
|
|
6066
|
+
/**
|
|
6067
|
+
* Required. The name of the `LbTcpExtension` resource to delete. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
|
|
6068
|
+
*/
|
|
6069
|
+
name?: string;
|
|
6070
|
+
/**
|
|
6071
|
+
* 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).
|
|
6072
|
+
*/
|
|
6073
|
+
requestId?: string;
|
|
6074
|
+
}
|
|
6075
|
+
export interface Params$Resource$Projects$Locations$Lbtcpextensions$Get extends StandardParameters {
|
|
6076
|
+
/**
|
|
6077
|
+
* Required. A name of the `LbTcpExtension` resource to get. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
|
|
6078
|
+
*/
|
|
6079
|
+
name?: string;
|
|
6080
|
+
}
|
|
6081
|
+
export interface Params$Resource$Projects$Locations$Lbtcpextensions$List extends StandardParameters {
|
|
6082
|
+
/**
|
|
6083
|
+
* Optional. Filtering results.
|
|
6084
|
+
*/
|
|
6085
|
+
filter?: string;
|
|
6086
|
+
/**
|
|
6087
|
+
* Optional. Hint for how to order the results.
|
|
6088
|
+
*/
|
|
6089
|
+
orderBy?: string;
|
|
6090
|
+
/**
|
|
6091
|
+
* Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
|
|
6092
|
+
*/
|
|
6093
|
+
pageSize?: number;
|
|
6094
|
+
/**
|
|
6095
|
+
* Optional. A token identifying a page of results that the server returns.
|
|
6096
|
+
*/
|
|
6097
|
+
pageToken?: string;
|
|
6098
|
+
/**
|
|
6099
|
+
* Required. The project and location from which the `LbTcpExtension` resources are listed, specified in the following format: `projects/{project\}/locations/{location\}`.
|
|
6100
|
+
*/
|
|
6101
|
+
parent?: string;
|
|
6102
|
+
}
|
|
6103
|
+
export interface Params$Resource$Projects$Locations$Lbtcpextensions$Patch extends StandardParameters {
|
|
6104
|
+
/**
|
|
6105
|
+
* Required. Identifier. Name of the `LbTcpExtension` resource in the following format: `projects/{project\}/locations/{location\}/LbTcpExtension/{lb_tcp_extension\}`
|
|
6106
|
+
*/
|
|
6107
|
+
name?: string;
|
|
6108
|
+
/**
|
|
6109
|
+
* 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).
|
|
6110
|
+
*/
|
|
6111
|
+
requestId?: string;
|
|
6112
|
+
/**
|
|
6113
|
+
* 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.
|
|
6114
|
+
*/
|
|
6115
|
+
updateMask?: string;
|
|
6116
|
+
/**
|
|
6117
|
+
* Request body metadata
|
|
6118
|
+
*/
|
|
6119
|
+
requestBody?: Schema$LbTcpExtension;
|
|
6120
|
+
}
|
|
5618
6121
|
export class Resource$Projects$Locations$Lbtrafficextensions {
|
|
5619
6122
|
context: APIRequestContext;
|
|
5620
6123
|
constructor(context: APIRequestContext);
|