@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.
@@ -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 {
@@ -228,7 +227,7 @@ export declare namespace networkservices_v1beta1 {
228
227
  */
229
228
  export interface Schema$ExtensionChainExtension {
230
229
  /**
231
- * 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.
230
+ * 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.
232
231
  */
233
232
  allowDynamicForwarding?: boolean | null;
234
233
  /**
@@ -244,13 +243,13 @@ export declare namespace networkservices_v1beta1 {
244
243
  */
245
244
  forwardHeaders?: string[] | null;
246
245
  /**
247
- * Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google....`. For example: `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. The following variables are supported in the metadata: `{forwarding_rule_id\}` - substituted with the forwarding rule's fully qualified resource name. This field 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.
246
+ * 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.
248
247
  */
249
248
  metadata?: {
250
249
  [key: string]: any;
251
250
  } | null;
252
251
  /**
253
- * Required. The name for this extension. The name is logged as part of the HTTP request logs. The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and can have a maximum length of 63 characters. Additionally, the first character must be a letter and the last a letter or a number.
252
+ * 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.
254
253
  */
255
254
  name?: string | null;
256
255
  /**
@@ -258,7 +257,7 @@ export declare namespace networkservices_v1beta1 {
258
257
  */
259
258
  requestBodySendMode?: string | null;
260
259
  /**
261
- * 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`.
260
+ * 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`.
262
261
  */
263
262
  responseBodySendMode?: string | null;
264
263
  /**
@@ -266,7 +265,7 @@ export declare namespace networkservices_v1beta1 {
266
265
  */
267
266
  service?: string | null;
268
267
  /**
269
- * 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.
268
+ * 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.
270
269
  */
271
270
  supportedEvents?: string[] | null;
272
271
  /**
@@ -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
  */
@@ -1379,6 +1434,10 @@ export declare namespace networkservices_v1beta1 {
1379
1434
  * A list of operations that matches the specified filter in the request.
1380
1435
  */
1381
1436
  operations?: Schema$Operation[];
1437
+ /**
1438
+ * 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.
1439
+ */
1440
+ unreachable?: string[] | null;
1382
1441
  }
1383
1442
  /**
1384
1443
  * Response returned by the ListServiceBindings method.
@@ -2184,6 +2243,7 @@ export declare namespace networkservices_v1beta1 {
2184
2243
  httpRoutes: Resource$Projects$Locations$Httproutes;
2185
2244
  lbEdgeExtensions: Resource$Projects$Locations$Lbedgeextensions;
2186
2245
  lbRouteExtensions: Resource$Projects$Locations$Lbrouteextensions;
2246
+ lbTcpExtensions: Resource$Projects$Locations$Lbtcpextensions;
2187
2247
  lbTrafficExtensions: Resource$Projects$Locations$Lbtrafficextensions;
2188
2248
  meshes: Resource$Projects$Locations$Meshes;
2189
2249
  operations: Resource$Projects$Locations$Operations;
@@ -2288,7 +2348,7 @@ export declare namespace networkservices_v1beta1 {
2288
2348
  *
2289
2349
  * // Do the magic
2290
2350
  * const res = await networkservices.projects.locations.list({
2291
- * // Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
2351
+ * // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
2292
2352
  * extraLocationTypes: 'placeholder-value',
2293
2353
  * // 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).
2294
2354
  * filter: 'placeholder-value',
@@ -2335,7 +2395,7 @@ export declare namespace networkservices_v1beta1 {
2335
2395
  }
2336
2396
  export interface Params$Resource$Projects$Locations$List extends StandardParameters {
2337
2397
  /**
2338
- * Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
2398
+ * Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
2339
2399
  */
2340
2400
  extraLocationTypes?: string[];
2341
2401
  /**
@@ -5615,6 +5675,453 @@ export declare namespace networkservices_v1beta1 {
5615
5675
  */
5616
5676
  requestBody?: Schema$LbRouteExtension;
5617
5677
  }
5678
+ export class Resource$Projects$Locations$Lbtcpextensions {
5679
+ context: APIRequestContext;
5680
+ constructor(context: APIRequestContext);
5681
+ /**
5682
+ * Creates a new `LbTcpExtension` resource in a given project and location.
5683
+ * @example
5684
+ * ```js
5685
+ * // Before running the sample:
5686
+ * // - Enable the API at:
5687
+ * // https://console.developers.google.com/apis/api/networkservices.googleapis.com
5688
+ * // - Login into gcloud by running:
5689
+ * // ```sh
5690
+ * // $ gcloud auth application-default login
5691
+ * // ```
5692
+ * // - Install the npm module by running:
5693
+ * // ```sh
5694
+ * // $ npm install googleapis
5695
+ * // ```
5696
+ *
5697
+ * const {google} = require('googleapis');
5698
+ * const networkservices = google.networkservices('v1beta1');
5699
+ *
5700
+ * async function main() {
5701
+ * const auth = new google.auth.GoogleAuth({
5702
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5703
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5704
+ * });
5705
+ *
5706
+ * // Acquire an auth client, and bind it to all future calls
5707
+ * const authClient = await auth.getClient();
5708
+ * google.options({auth: authClient});
5709
+ *
5710
+ * // Do the magic
5711
+ * const res = await networkservices.projects.locations.lbTcpExtensions.create({
5712
+ * // Required. User-provided ID of the `LbTcpExtension` resource to be created.
5713
+ * lbTcpExtensionId: 'placeholder-value',
5714
+ * // Required. The parent resource of the `LbTcpExtension` resource. Must be in the format `projects/{project\}/locations/{location\}`.
5715
+ * parent: 'projects/my-project/locations/my-location',
5716
+ * // 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).
5717
+ * requestId: 'placeholder-value',
5718
+ *
5719
+ * // Request body metadata
5720
+ * requestBody: {
5721
+ * // request body parameters
5722
+ * // {
5723
+ * // "createTime": "my_createTime",
5724
+ * // "description": "my_description",
5725
+ * // "extensionChains": [],
5726
+ * // "labels": {},
5727
+ * // "loadBalancingScheme": "my_loadBalancingScheme",
5728
+ * // "name": "my_name",
5729
+ * // "networks": [],
5730
+ * // "updateTime": "my_updateTime"
5731
+ * // }
5732
+ * },
5733
+ * });
5734
+ * console.log(res.data);
5735
+ *
5736
+ * // Example response
5737
+ * // {
5738
+ * // "done": false,
5739
+ * // "error": {},
5740
+ * // "metadata": {},
5741
+ * // "name": "my_name",
5742
+ * // "response": {}
5743
+ * // }
5744
+ * }
5745
+ *
5746
+ * main().catch(e => {
5747
+ * console.error(e);
5748
+ * throw e;
5749
+ * });
5750
+ *
5751
+ * ```
5752
+ *
5753
+ * @param params - Parameters for request
5754
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5755
+ * @param callback - Optional callback that handles the response.
5756
+ * @returns A promise if used with async/await, or void if used with a callback.
5757
+ */
5758
+ create(params: Params$Resource$Projects$Locations$Lbtcpextensions$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5759
+ create(params?: Params$Resource$Projects$Locations$Lbtcpextensions$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5760
+ create(params: Params$Resource$Projects$Locations$Lbtcpextensions$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5761
+ create(params: Params$Resource$Projects$Locations$Lbtcpextensions$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
5762
+ create(params: Params$Resource$Projects$Locations$Lbtcpextensions$Create, callback: BodyResponseCallback<Schema$Operation>): void;
5763
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
5764
+ /**
5765
+ * Deletes the specified `LbTcpExtension` resource.
5766
+ * @example
5767
+ * ```js
5768
+ * // Before running the sample:
5769
+ * // - Enable the API at:
5770
+ * // https://console.developers.google.com/apis/api/networkservices.googleapis.com
5771
+ * // - Login into gcloud by running:
5772
+ * // ```sh
5773
+ * // $ gcloud auth application-default login
5774
+ * // ```
5775
+ * // - Install the npm module by running:
5776
+ * // ```sh
5777
+ * // $ npm install googleapis
5778
+ * // ```
5779
+ *
5780
+ * const {google} = require('googleapis');
5781
+ * const networkservices = google.networkservices('v1beta1');
5782
+ *
5783
+ * async function main() {
5784
+ * const auth = new google.auth.GoogleAuth({
5785
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5786
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5787
+ * });
5788
+ *
5789
+ * // Acquire an auth client, and bind it to all future calls
5790
+ * const authClient = await auth.getClient();
5791
+ * google.options({auth: authClient});
5792
+ *
5793
+ * // Do the magic
5794
+ * const res = await networkservices.projects.locations.lbTcpExtensions.delete({
5795
+ * // Required. The name of the `LbTcpExtension` resource to delete. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
5796
+ * name: 'projects/my-project/locations/my-location/lbTcpExtensions/my-lbTcpExtension',
5797
+ * // 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).
5798
+ * requestId: 'placeholder-value',
5799
+ * });
5800
+ * console.log(res.data);
5801
+ *
5802
+ * // Example response
5803
+ * // {
5804
+ * // "done": false,
5805
+ * // "error": {},
5806
+ * // "metadata": {},
5807
+ * // "name": "my_name",
5808
+ * // "response": {}
5809
+ * // }
5810
+ * }
5811
+ *
5812
+ * main().catch(e => {
5813
+ * console.error(e);
5814
+ * throw e;
5815
+ * });
5816
+ *
5817
+ * ```
5818
+ *
5819
+ * @param params - Parameters for request
5820
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5821
+ * @param callback - Optional callback that handles the response.
5822
+ * @returns A promise if used with async/await, or void if used with a callback.
5823
+ */
5824
+ delete(params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5825
+ delete(params?: Params$Resource$Projects$Locations$Lbtcpextensions$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5826
+ delete(params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5827
+ delete(params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
5828
+ delete(params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
5829
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
5830
+ /**
5831
+ * Gets details of the specified `LbTcpExtension` resource.
5832
+ * @example
5833
+ * ```js
5834
+ * // Before running the sample:
5835
+ * // - Enable the API at:
5836
+ * // https://console.developers.google.com/apis/api/networkservices.googleapis.com
5837
+ * // - Login into gcloud by running:
5838
+ * // ```sh
5839
+ * // $ gcloud auth application-default login
5840
+ * // ```
5841
+ * // - Install the npm module by running:
5842
+ * // ```sh
5843
+ * // $ npm install googleapis
5844
+ * // ```
5845
+ *
5846
+ * const {google} = require('googleapis');
5847
+ * const networkservices = google.networkservices('v1beta1');
5848
+ *
5849
+ * async function main() {
5850
+ * const auth = new google.auth.GoogleAuth({
5851
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5852
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5853
+ * });
5854
+ *
5855
+ * // Acquire an auth client, and bind it to all future calls
5856
+ * const authClient = await auth.getClient();
5857
+ * google.options({auth: authClient});
5858
+ *
5859
+ * // Do the magic
5860
+ * const res = await networkservices.projects.locations.lbTcpExtensions.get({
5861
+ * // Required. A name of the `LbTcpExtension` resource to get. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
5862
+ * name: 'projects/my-project/locations/my-location/lbTcpExtensions/my-lbTcpExtension',
5863
+ * });
5864
+ * console.log(res.data);
5865
+ *
5866
+ * // Example response
5867
+ * // {
5868
+ * // "createTime": "my_createTime",
5869
+ * // "description": "my_description",
5870
+ * // "extensionChains": [],
5871
+ * // "labels": {},
5872
+ * // "loadBalancingScheme": "my_loadBalancingScheme",
5873
+ * // "name": "my_name",
5874
+ * // "networks": [],
5875
+ * // "updateTime": "my_updateTime"
5876
+ * // }
5877
+ * }
5878
+ *
5879
+ * main().catch(e => {
5880
+ * console.error(e);
5881
+ * throw e;
5882
+ * });
5883
+ *
5884
+ * ```
5885
+ *
5886
+ * @param params - Parameters for request
5887
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5888
+ * @param callback - Optional callback that handles the response.
5889
+ * @returns A promise if used with async/await, or void if used with a callback.
5890
+ */
5891
+ get(params: Params$Resource$Projects$Locations$Lbtcpextensions$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5892
+ get(params?: Params$Resource$Projects$Locations$Lbtcpextensions$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$LbTcpExtension>>;
5893
+ get(params: Params$Resource$Projects$Locations$Lbtcpextensions$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5894
+ get(params: Params$Resource$Projects$Locations$Lbtcpextensions$Get, options: MethodOptions | BodyResponseCallback<Schema$LbTcpExtension>, callback: BodyResponseCallback<Schema$LbTcpExtension>): void;
5895
+ get(params: Params$Resource$Projects$Locations$Lbtcpextensions$Get, callback: BodyResponseCallback<Schema$LbTcpExtension>): void;
5896
+ get(callback: BodyResponseCallback<Schema$LbTcpExtension>): void;
5897
+ /**
5898
+ * Lists `LbTcpExtension` resources in a given project and location.
5899
+ * @example
5900
+ * ```js
5901
+ * // Before running the sample:
5902
+ * // - Enable the API at:
5903
+ * // https://console.developers.google.com/apis/api/networkservices.googleapis.com
5904
+ * // - Login into gcloud by running:
5905
+ * // ```sh
5906
+ * // $ gcloud auth application-default login
5907
+ * // ```
5908
+ * // - Install the npm module by running:
5909
+ * // ```sh
5910
+ * // $ npm install googleapis
5911
+ * // ```
5912
+ *
5913
+ * const {google} = require('googleapis');
5914
+ * const networkservices = google.networkservices('v1beta1');
5915
+ *
5916
+ * async function main() {
5917
+ * const auth = new google.auth.GoogleAuth({
5918
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5919
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5920
+ * });
5921
+ *
5922
+ * // Acquire an auth client, and bind it to all future calls
5923
+ * const authClient = await auth.getClient();
5924
+ * google.options({auth: authClient});
5925
+ *
5926
+ * // Do the magic
5927
+ * const res = await networkservices.projects.locations.lbTcpExtensions.list({
5928
+ * // Optional. Filtering results.
5929
+ * filter: 'placeholder-value',
5930
+ * // Optional. Hint for how to order the results.
5931
+ * orderBy: 'placeholder-value',
5932
+ * // Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
5933
+ * pageSize: 'placeholder-value',
5934
+ * // Optional. A token identifying a page of results that the server returns.
5935
+ * pageToken: 'placeholder-value',
5936
+ * // Required. The project and location from which the `LbTcpExtension` resources are listed, specified in the following format: `projects/{project\}/locations/{location\}`.
5937
+ * parent: 'projects/my-project/locations/my-location',
5938
+ * });
5939
+ * console.log(res.data);
5940
+ *
5941
+ * // Example response
5942
+ * // {
5943
+ * // "lbTcpExtensions": [],
5944
+ * // "nextPageToken": "my_nextPageToken",
5945
+ * // "unreachable": []
5946
+ * // }
5947
+ * }
5948
+ *
5949
+ * main().catch(e => {
5950
+ * console.error(e);
5951
+ * throw e;
5952
+ * });
5953
+ *
5954
+ * ```
5955
+ *
5956
+ * @param params - Parameters for request
5957
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5958
+ * @param callback - Optional callback that handles the response.
5959
+ * @returns A promise if used with async/await, or void if used with a callback.
5960
+ */
5961
+ list(params: Params$Resource$Projects$Locations$Lbtcpextensions$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5962
+ list(params?: Params$Resource$Projects$Locations$Lbtcpextensions$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListLbTcpExtensionsResponse>>;
5963
+ list(params: Params$Resource$Projects$Locations$Lbtcpextensions$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5964
+ list(params: Params$Resource$Projects$Locations$Lbtcpextensions$List, options: MethodOptions | BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>, callback: BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>): void;
5965
+ list(params: Params$Resource$Projects$Locations$Lbtcpextensions$List, callback: BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>): void;
5966
+ list(callback: BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>): void;
5967
+ /**
5968
+ * Updates the parameters of the specified `LbTcpExtension` resource.
5969
+ * @example
5970
+ * ```js
5971
+ * // Before running the sample:
5972
+ * // - Enable the API at:
5973
+ * // https://console.developers.google.com/apis/api/networkservices.googleapis.com
5974
+ * // - Login into gcloud by running:
5975
+ * // ```sh
5976
+ * // $ gcloud auth application-default login
5977
+ * // ```
5978
+ * // - Install the npm module by running:
5979
+ * // ```sh
5980
+ * // $ npm install googleapis
5981
+ * // ```
5982
+ *
5983
+ * const {google} = require('googleapis');
5984
+ * const networkservices = google.networkservices('v1beta1');
5985
+ *
5986
+ * async function main() {
5987
+ * const auth = new google.auth.GoogleAuth({
5988
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5989
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5990
+ * });
5991
+ *
5992
+ * // Acquire an auth client, and bind it to all future calls
5993
+ * const authClient = await auth.getClient();
5994
+ * google.options({auth: authClient});
5995
+ *
5996
+ * // Do the magic
5997
+ * const res = await networkservices.projects.locations.lbTcpExtensions.patch({
5998
+ * // Required. Identifier. Name of the `LbTcpExtension` resource in the following format: `projects/{project\}/locations/{location\}/LbTcpExtension/{lb_tcp_extension\}`
5999
+ * name: 'projects/my-project/locations/my-location/lbTcpExtensions/my-lbTcpExtension',
6000
+ * // 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).
6001
+ * requestId: 'placeholder-value',
6002
+ * // 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.
6003
+ * updateMask: 'placeholder-value',
6004
+ *
6005
+ * // Request body metadata
6006
+ * requestBody: {
6007
+ * // request body parameters
6008
+ * // {
6009
+ * // "createTime": "my_createTime",
6010
+ * // "description": "my_description",
6011
+ * // "extensionChains": [],
6012
+ * // "labels": {},
6013
+ * // "loadBalancingScheme": "my_loadBalancingScheme",
6014
+ * // "name": "my_name",
6015
+ * // "networks": [],
6016
+ * // "updateTime": "my_updateTime"
6017
+ * // }
6018
+ * },
6019
+ * });
6020
+ * console.log(res.data);
6021
+ *
6022
+ * // Example response
6023
+ * // {
6024
+ * // "done": false,
6025
+ * // "error": {},
6026
+ * // "metadata": {},
6027
+ * // "name": "my_name",
6028
+ * // "response": {}
6029
+ * // }
6030
+ * }
6031
+ *
6032
+ * main().catch(e => {
6033
+ * console.error(e);
6034
+ * throw e;
6035
+ * });
6036
+ *
6037
+ * ```
6038
+ *
6039
+ * @param params - Parameters for request
6040
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6041
+ * @param callback - Optional callback that handles the response.
6042
+ * @returns A promise if used with async/await, or void if used with a callback.
6043
+ */
6044
+ patch(params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
6045
+ patch(params?: Params$Resource$Projects$Locations$Lbtcpextensions$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6046
+ patch(params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
6047
+ patch(params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
6048
+ patch(params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
6049
+ patch(callback: BodyResponseCallback<Schema$Operation>): void;
6050
+ }
6051
+ export interface Params$Resource$Projects$Locations$Lbtcpextensions$Create extends StandardParameters {
6052
+ /**
6053
+ * Required. User-provided ID of the `LbTcpExtension` resource to be created.
6054
+ */
6055
+ lbTcpExtensionId?: string;
6056
+ /**
6057
+ * Required. The parent resource of the `LbTcpExtension` resource. Must be in the format `projects/{project\}/locations/{location\}`.
6058
+ */
6059
+ parent?: string;
6060
+ /**
6061
+ * 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).
6062
+ */
6063
+ requestId?: string;
6064
+ /**
6065
+ * Request body metadata
6066
+ */
6067
+ requestBody?: Schema$LbTcpExtension;
6068
+ }
6069
+ export interface Params$Resource$Projects$Locations$Lbtcpextensions$Delete extends StandardParameters {
6070
+ /**
6071
+ * Required. The name of the `LbTcpExtension` resource to delete. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
6072
+ */
6073
+ name?: string;
6074
+ /**
6075
+ * 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).
6076
+ */
6077
+ requestId?: string;
6078
+ }
6079
+ export interface Params$Resource$Projects$Locations$Lbtcpextensions$Get extends StandardParameters {
6080
+ /**
6081
+ * Required. A name of the `LbTcpExtension` resource to get. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
6082
+ */
6083
+ name?: string;
6084
+ }
6085
+ export interface Params$Resource$Projects$Locations$Lbtcpextensions$List extends StandardParameters {
6086
+ /**
6087
+ * Optional. Filtering results.
6088
+ */
6089
+ filter?: string;
6090
+ /**
6091
+ * Optional. Hint for how to order the results.
6092
+ */
6093
+ orderBy?: string;
6094
+ /**
6095
+ * Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
6096
+ */
6097
+ pageSize?: number;
6098
+ /**
6099
+ * Optional. A token identifying a page of results that the server returns.
6100
+ */
6101
+ pageToken?: string;
6102
+ /**
6103
+ * Required. The project and location from which the `LbTcpExtension` resources are listed, specified in the following format: `projects/{project\}/locations/{location\}`.
6104
+ */
6105
+ parent?: string;
6106
+ }
6107
+ export interface Params$Resource$Projects$Locations$Lbtcpextensions$Patch extends StandardParameters {
6108
+ /**
6109
+ * Required. Identifier. Name of the `LbTcpExtension` resource in the following format: `projects/{project\}/locations/{location\}/LbTcpExtension/{lb_tcp_extension\}`
6110
+ */
6111
+ name?: string;
6112
+ /**
6113
+ * 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).
6114
+ */
6115
+ requestId?: string;
6116
+ /**
6117
+ * 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.
6118
+ */
6119
+ updateMask?: string;
6120
+ /**
6121
+ * Request body metadata
6122
+ */
6123
+ requestBody?: Schema$LbTcpExtension;
6124
+ }
5618
6125
  export class Resource$Projects$Locations$Lbtrafficextensions {
5619
6126
  context: APIRequestContext;
5620
6127
  constructor(context: APIRequestContext);
@@ -6876,13 +7383,16 @@ export declare namespace networkservices_v1beta1 {
6876
7383
  * pageSize: 'placeholder-value',
6877
7384
  * // The standard list page token.
6878
7385
  * pageToken: 'placeholder-value',
7386
+ * // 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.
7387
+ * returnPartialSuccess: 'placeholder-value',
6879
7388
  * });
6880
7389
  * console.log(res.data);
6881
7390
  *
6882
7391
  * // Example response
6883
7392
  * // {
6884
7393
  * // "nextPageToken": "my_nextPageToken",
6885
- * // "operations": []
7394
+ * // "operations": [],
7395
+ * // "unreachable": []
6886
7396
  * // }
6887
7397
  * }
6888
7398
  *
@@ -6944,6 +7454,10 @@ export declare namespace networkservices_v1beta1 {
6944
7454
  * The standard list page token.
6945
7455
  */
6946
7456
  pageToken?: string;
7457
+ /**
7458
+ * 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.
7459
+ */
7460
+ returnPartialSuccess?: boolean;
6947
7461
  }
6948
7462
  export class Resource$Projects$Locations$Servicebindings {
6949
7463
  context: APIRequestContext;