@googleapis/networkservices 29.0.0 → 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/v1beta1.ts CHANGED
@@ -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
  */
@@ -2092,11 +2146,11 @@ export namespace networkservices_v1beta1 {
2092
2146
  */
2093
2147
  description?: string | null;
2094
2148
  /**
2095
- * Output only. The resolved digest for the image specified in the `image` field. The digest is resolved during the creation of `WasmPluginVersion` resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the `image` field.
2149
+ * Output only. This field holds the digest (usually checksum) value for the plugin image. The value is calculated based on the `image_uri` field. If the `image_uri` field refers to a container image, the digest value is obtained from the container image. If the `image_uri` field refers to a generic artifact, the digest value is calculated based on the contents of the file.
2096
2150
  */
2097
2151
  imageDigest?: string | null;
2098
2152
  /**
2099
- * Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `image_digest` field. When downloading an image, the digest value is used instead of an image tag.
2153
+ * Optional. URI of the image containing the Wasm module, stored in Artifact Registry. The URI can refer to one of the following repository formats: * Container images: the `image_uri` must point to a container that contains a single file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the digest of the image is saved in the `image_digest` field. When pulling a container image from Artifact Registry, the digest value is used instead of an image tag. * Generic artifacts: the `image_uri` must be in this format: `projects/{project\}/locations/{location\}/repositories/{repository\}/ genericArtifacts/{package\}:{version\}`. The specified package and version must contain a file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the checksum of the contents of the file is saved in the `image_digest` field.
2100
2154
  */
2101
2155
  imageUri?: string | null;
2102
2156
  /**
@@ -2112,11 +2166,11 @@ export namespace networkservices_v1beta1 {
2112
2166
  */
2113
2167
  pluginConfigData?: string | null;
2114
2168
  /**
2115
- * Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of `plugin_config_data` or the container image defined by the `plugin_config_uri` field.
2169
+ * Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of `plugin_config_data` field or the image defined by the `plugin_config_uri` field.
2116
2170
  */
2117
2171
  pluginConfigDigest?: string | null;
2118
2172
  /**
2119
- * URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. The container image must contain only a single file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `plugin_config_digest` field.
2173
+ * URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. The URI can refer to one of the following repository formats: * Container images: the `plugin_config_uri` must point to a container that contains a single file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the digest of the image is saved in the `plugin_config_digest` field. When pulling a container image from Artifact Registry, the digest value is used instead of an image tag. * Generic artifacts: the `plugin_config_uri` must be in this format: `projects/{project\}/locations/{location\}/repositories/{repository\}/ genericArtifacts/{package\}:{version\}`. The specified package and version must contain a file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the checksum of the contents of the file is saved in the `plugin_config_digest` field.
2120
2174
  */
2121
2175
  pluginConfigUri?: string | null;
2122
2176
  /**
@@ -2137,11 +2191,11 @@ export namespace networkservices_v1beta1 {
2137
2191
  */
2138
2192
  description?: string | null;
2139
2193
  /**
2140
- * Output only. The resolved digest for the image specified in `image`. The digest is resolved during the creation of a `WasmPluginVersion` resource. This field holds the digest value regardless of whether a tag or digest was originally specified in the `image` field.
2194
+ * Output only. This field holds the digest (usually checksum) value for the plugin image. The value is calculated based on the `image_uri` field. If the `image_uri` field refers to a container image, the digest value is obtained from the container image. If the `image_uri` field refers to a generic artifact, the digest value is calculated based on the contents of the file.
2141
2195
  */
2142
2196
  imageDigest?: string | null;
2143
2197
  /**
2144
- * Optional. URI of the container image containing the Wasm module, stored in the Artifact Registry. The container image must contain only a single file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the URI gets resolved to an image digest and saved in the `image_digest` field.
2198
+ * Optional. URI of the image containing the Wasm module, stored in Artifact Registry. The URI can refer to one of the following repository formats: * Container images: the `image_uri` must point to a container that contains a single file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the digest of the image is saved in the `image_digest` field. When pulling a container image from Artifact Registry, the digest value is used instead of an image tag. * Generic artifacts: the `image_uri` must be in this format: `projects/{project\}/locations/{location\}/repositories/{repository\}/ genericArtifacts/{package\}:{version\}`. The specified package and version must contain a file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the checksum of the contents of the file is saved in the `image_digest` field.
2145
2199
  */
2146
2200
  imageUri?: string | null;
2147
2201
  /**
@@ -2153,11 +2207,11 @@ export namespace networkservices_v1beta1 {
2153
2207
  */
2154
2208
  pluginConfigData?: string | null;
2155
2209
  /**
2156
- * Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of the `plugin_config_data` field or the container image defined by the `plugin_config_uri` field.
2210
+ * Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of `plugin_config_data` field or the image defined by the `plugin_config_uri` field.
2157
2211
  */
2158
2212
  pluginConfigDigest?: string | null;
2159
2213
  /**
2160
- * URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. The container image must contain only a single file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the digest of the container image is saved in the `plugin_config_digest` field.
2214
+ * URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the `ON_CONFIGURE` callback. The URI can refer to one of the following repository formats: * Container images: the `plugin_config_uri` must point to a container that contains a single file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the digest of the image is saved in the `plugin_config_digest` field. When pulling a container image from Artifact Registry, the digest value is used instead of an image tag. * Generic artifacts: the `plugin_config_uri` must be in this format: `projects/{project\}/locations/{location\}/repositories/{repository\}/ genericArtifacts/{package\}:{version\}`. The specified package and version must contain a file with the name `plugin.config`. When a new `WasmPluginVersion` resource is created, the checksum of the contents of the file is saved in the `plugin_config_digest` field.
2161
2215
  */
2162
2216
  pluginConfigUri?: string | null;
2163
2217
  /**
@@ -2184,6 +2238,7 @@ export namespace networkservices_v1beta1 {
2184
2238
  httpRoutes: Resource$Projects$Locations$Httproutes;
2185
2239
  lbEdgeExtensions: Resource$Projects$Locations$Lbedgeextensions;
2186
2240
  lbRouteExtensions: Resource$Projects$Locations$Lbrouteextensions;
2241
+ lbTcpExtensions: Resource$Projects$Locations$Lbtcpextensions;
2187
2242
  lbTrafficExtensions: Resource$Projects$Locations$Lbtrafficextensions;
2188
2243
  meshes: Resource$Projects$Locations$Meshes;
2189
2244
  operations: Resource$Projects$Locations$Operations;
@@ -2212,6 +2267,9 @@ export namespace networkservices_v1beta1 {
2212
2267
  );
2213
2268
  this.lbRouteExtensions =
2214
2269
  new Resource$Projects$Locations$Lbrouteextensions(this.context);
2270
+ this.lbTcpExtensions = new Resource$Projects$Locations$Lbtcpextensions(
2271
+ this.context
2272
+ );
2215
2273
  this.lbTrafficExtensions =
2216
2274
  new Resource$Projects$Locations$Lbtrafficextensions(this.context);
2217
2275
  this.meshes = new Resource$Projects$Locations$Meshes(this.context);
@@ -8764,6 +8822,851 @@ export namespace networkservices_v1beta1 {
8764
8822
  requestBody?: Schema$LbRouteExtension;
8765
8823
  }
8766
8824
 
8825
+ export class Resource$Projects$Locations$Lbtcpextensions {
8826
+ context: APIRequestContext;
8827
+ constructor(context: APIRequestContext) {
8828
+ this.context = context;
8829
+ }
8830
+
8831
+ /**
8832
+ * Creates a new `LbTcpExtension` resource in a given project and location.
8833
+ * @example
8834
+ * ```js
8835
+ * // Before running the sample:
8836
+ * // - Enable the API at:
8837
+ * // https://console.developers.google.com/apis/api/networkservices.googleapis.com
8838
+ * // - Login into gcloud by running:
8839
+ * // ```sh
8840
+ * // $ gcloud auth application-default login
8841
+ * // ```
8842
+ * // - Install the npm module by running:
8843
+ * // ```sh
8844
+ * // $ npm install googleapis
8845
+ * // ```
8846
+ *
8847
+ * const {google} = require('googleapis');
8848
+ * const networkservices = google.networkservices('v1beta1');
8849
+ *
8850
+ * async function main() {
8851
+ * const auth = new google.auth.GoogleAuth({
8852
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8853
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
8854
+ * });
8855
+ *
8856
+ * // Acquire an auth client, and bind it to all future calls
8857
+ * const authClient = await auth.getClient();
8858
+ * google.options({auth: authClient});
8859
+ *
8860
+ * // Do the magic
8861
+ * const res = await networkservices.projects.locations.lbTcpExtensions.create({
8862
+ * // Required. User-provided ID of the `LbTcpExtension` resource to be created.
8863
+ * lbTcpExtensionId: 'placeholder-value',
8864
+ * // Required. The parent resource of the `LbTcpExtension` resource. Must be in the format `projects/{project\}/locations/{location\}`.
8865
+ * parent: 'projects/my-project/locations/my-location',
8866
+ * // 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).
8867
+ * requestId: 'placeholder-value',
8868
+ *
8869
+ * // Request body metadata
8870
+ * requestBody: {
8871
+ * // request body parameters
8872
+ * // {
8873
+ * // "createTime": "my_createTime",
8874
+ * // "description": "my_description",
8875
+ * // "extensionChains": [],
8876
+ * // "labels": {},
8877
+ * // "loadBalancingScheme": "my_loadBalancingScheme",
8878
+ * // "name": "my_name",
8879
+ * // "networks": [],
8880
+ * // "updateTime": "my_updateTime"
8881
+ * // }
8882
+ * },
8883
+ * });
8884
+ * console.log(res.data);
8885
+ *
8886
+ * // Example response
8887
+ * // {
8888
+ * // "done": false,
8889
+ * // "error": {},
8890
+ * // "metadata": {},
8891
+ * // "name": "my_name",
8892
+ * // "response": {}
8893
+ * // }
8894
+ * }
8895
+ *
8896
+ * main().catch(e => {
8897
+ * console.error(e);
8898
+ * throw e;
8899
+ * });
8900
+ *
8901
+ * ```
8902
+ *
8903
+ * @param params - Parameters for request
8904
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8905
+ * @param callback - Optional callback that handles the response.
8906
+ * @returns A promise if used with async/await, or void if used with a callback.
8907
+ */
8908
+ create(
8909
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Create,
8910
+ options: StreamMethodOptions
8911
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8912
+ create(
8913
+ params?: Params$Resource$Projects$Locations$Lbtcpextensions$Create,
8914
+ options?: MethodOptions
8915
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
8916
+ create(
8917
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Create,
8918
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8919
+ callback: BodyResponseCallback<Readable>
8920
+ ): void;
8921
+ create(
8922
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Create,
8923
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
8924
+ callback: BodyResponseCallback<Schema$Operation>
8925
+ ): void;
8926
+ create(
8927
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Create,
8928
+ callback: BodyResponseCallback<Schema$Operation>
8929
+ ): void;
8930
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
8931
+ create(
8932
+ paramsOrCallback?:
8933
+ | Params$Resource$Projects$Locations$Lbtcpextensions$Create
8934
+ | BodyResponseCallback<Schema$Operation>
8935
+ | BodyResponseCallback<Readable>,
8936
+ optionsOrCallback?:
8937
+ | MethodOptions
8938
+ | StreamMethodOptions
8939
+ | BodyResponseCallback<Schema$Operation>
8940
+ | BodyResponseCallback<Readable>,
8941
+ callback?:
8942
+ | BodyResponseCallback<Schema$Operation>
8943
+ | BodyResponseCallback<Readable>
8944
+ ):
8945
+ | void
8946
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
8947
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8948
+ let params = (paramsOrCallback ||
8949
+ {}) as Params$Resource$Projects$Locations$Lbtcpextensions$Create;
8950
+ let options = (optionsOrCallback || {}) as MethodOptions;
8951
+
8952
+ if (typeof paramsOrCallback === 'function') {
8953
+ callback = paramsOrCallback;
8954
+ params =
8955
+ {} as Params$Resource$Projects$Locations$Lbtcpextensions$Create;
8956
+ options = {};
8957
+ }
8958
+
8959
+ if (typeof optionsOrCallback === 'function') {
8960
+ callback = optionsOrCallback;
8961
+ options = {};
8962
+ }
8963
+
8964
+ const rootUrl =
8965
+ options.rootUrl || 'https://networkservices.googleapis.com/';
8966
+ const parameters = {
8967
+ options: Object.assign(
8968
+ {
8969
+ url: (rootUrl + '/v1beta1/{+parent}/lbTcpExtensions').replace(
8970
+ /([^:]\/)\/+/g,
8971
+ '$1'
8972
+ ),
8973
+ method: 'POST',
8974
+ apiVersion: '',
8975
+ },
8976
+ options
8977
+ ),
8978
+ params,
8979
+ requiredParams: ['parent'],
8980
+ pathParams: ['parent'],
8981
+ context: this.context,
8982
+ };
8983
+ if (callback) {
8984
+ createAPIRequest<Schema$Operation>(
8985
+ parameters,
8986
+ callback as BodyResponseCallback<unknown>
8987
+ );
8988
+ } else {
8989
+ return createAPIRequest<Schema$Operation>(parameters);
8990
+ }
8991
+ }
8992
+
8993
+ /**
8994
+ * Deletes the specified `LbTcpExtension` resource.
8995
+ * @example
8996
+ * ```js
8997
+ * // Before running the sample:
8998
+ * // - Enable the API at:
8999
+ * // https://console.developers.google.com/apis/api/networkservices.googleapis.com
9000
+ * // - Login into gcloud by running:
9001
+ * // ```sh
9002
+ * // $ gcloud auth application-default login
9003
+ * // ```
9004
+ * // - Install the npm module by running:
9005
+ * // ```sh
9006
+ * // $ npm install googleapis
9007
+ * // ```
9008
+ *
9009
+ * const {google} = require('googleapis');
9010
+ * const networkservices = google.networkservices('v1beta1');
9011
+ *
9012
+ * async function main() {
9013
+ * const auth = new google.auth.GoogleAuth({
9014
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9015
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
9016
+ * });
9017
+ *
9018
+ * // Acquire an auth client, and bind it to all future calls
9019
+ * const authClient = await auth.getClient();
9020
+ * google.options({auth: authClient});
9021
+ *
9022
+ * // Do the magic
9023
+ * const res = await networkservices.projects.locations.lbTcpExtensions.delete({
9024
+ * // Required. The name of the `LbTcpExtension` resource to delete. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
9025
+ * name: 'projects/my-project/locations/my-location/lbTcpExtensions/my-lbTcpExtension',
9026
+ * // 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).
9027
+ * requestId: 'placeholder-value',
9028
+ * });
9029
+ * console.log(res.data);
9030
+ *
9031
+ * // Example response
9032
+ * // {
9033
+ * // "done": false,
9034
+ * // "error": {},
9035
+ * // "metadata": {},
9036
+ * // "name": "my_name",
9037
+ * // "response": {}
9038
+ * // }
9039
+ * }
9040
+ *
9041
+ * main().catch(e => {
9042
+ * console.error(e);
9043
+ * throw e;
9044
+ * });
9045
+ *
9046
+ * ```
9047
+ *
9048
+ * @param params - Parameters for request
9049
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9050
+ * @param callback - Optional callback that handles the response.
9051
+ * @returns A promise if used with async/await, or void if used with a callback.
9052
+ */
9053
+ delete(
9054
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete,
9055
+ options: StreamMethodOptions
9056
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9057
+ delete(
9058
+ params?: Params$Resource$Projects$Locations$Lbtcpextensions$Delete,
9059
+ options?: MethodOptions
9060
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
9061
+ delete(
9062
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete,
9063
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9064
+ callback: BodyResponseCallback<Readable>
9065
+ ): void;
9066
+ delete(
9067
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete,
9068
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
9069
+ callback: BodyResponseCallback<Schema$Operation>
9070
+ ): void;
9071
+ delete(
9072
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Delete,
9073
+ callback: BodyResponseCallback<Schema$Operation>
9074
+ ): void;
9075
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
9076
+ delete(
9077
+ paramsOrCallback?:
9078
+ | Params$Resource$Projects$Locations$Lbtcpextensions$Delete
9079
+ | BodyResponseCallback<Schema$Operation>
9080
+ | BodyResponseCallback<Readable>,
9081
+ optionsOrCallback?:
9082
+ | MethodOptions
9083
+ | StreamMethodOptions
9084
+ | BodyResponseCallback<Schema$Operation>
9085
+ | BodyResponseCallback<Readable>,
9086
+ callback?:
9087
+ | BodyResponseCallback<Schema$Operation>
9088
+ | BodyResponseCallback<Readable>
9089
+ ):
9090
+ | void
9091
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
9092
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9093
+ let params = (paramsOrCallback ||
9094
+ {}) as Params$Resource$Projects$Locations$Lbtcpextensions$Delete;
9095
+ let options = (optionsOrCallback || {}) as MethodOptions;
9096
+
9097
+ if (typeof paramsOrCallback === 'function') {
9098
+ callback = paramsOrCallback;
9099
+ params =
9100
+ {} as Params$Resource$Projects$Locations$Lbtcpextensions$Delete;
9101
+ options = {};
9102
+ }
9103
+
9104
+ if (typeof optionsOrCallback === 'function') {
9105
+ callback = optionsOrCallback;
9106
+ options = {};
9107
+ }
9108
+
9109
+ const rootUrl =
9110
+ options.rootUrl || 'https://networkservices.googleapis.com/';
9111
+ const parameters = {
9112
+ options: Object.assign(
9113
+ {
9114
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
9115
+ method: 'DELETE',
9116
+ apiVersion: '',
9117
+ },
9118
+ options
9119
+ ),
9120
+ params,
9121
+ requiredParams: ['name'],
9122
+ pathParams: ['name'],
9123
+ context: this.context,
9124
+ };
9125
+ if (callback) {
9126
+ createAPIRequest<Schema$Operation>(
9127
+ parameters,
9128
+ callback as BodyResponseCallback<unknown>
9129
+ );
9130
+ } else {
9131
+ return createAPIRequest<Schema$Operation>(parameters);
9132
+ }
9133
+ }
9134
+
9135
+ /**
9136
+ * Gets details of the specified `LbTcpExtension` resource.
9137
+ * @example
9138
+ * ```js
9139
+ * // Before running the sample:
9140
+ * // - Enable the API at:
9141
+ * // https://console.developers.google.com/apis/api/networkservices.googleapis.com
9142
+ * // - Login into gcloud by running:
9143
+ * // ```sh
9144
+ * // $ gcloud auth application-default login
9145
+ * // ```
9146
+ * // - Install the npm module by running:
9147
+ * // ```sh
9148
+ * // $ npm install googleapis
9149
+ * // ```
9150
+ *
9151
+ * const {google} = require('googleapis');
9152
+ * const networkservices = google.networkservices('v1beta1');
9153
+ *
9154
+ * async function main() {
9155
+ * const auth = new google.auth.GoogleAuth({
9156
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9157
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
9158
+ * });
9159
+ *
9160
+ * // Acquire an auth client, and bind it to all future calls
9161
+ * const authClient = await auth.getClient();
9162
+ * google.options({auth: authClient});
9163
+ *
9164
+ * // Do the magic
9165
+ * const res = await networkservices.projects.locations.lbTcpExtensions.get({
9166
+ * // Required. A name of the `LbTcpExtension` resource to get. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
9167
+ * name: 'projects/my-project/locations/my-location/lbTcpExtensions/my-lbTcpExtension',
9168
+ * });
9169
+ * console.log(res.data);
9170
+ *
9171
+ * // Example response
9172
+ * // {
9173
+ * // "createTime": "my_createTime",
9174
+ * // "description": "my_description",
9175
+ * // "extensionChains": [],
9176
+ * // "labels": {},
9177
+ * // "loadBalancingScheme": "my_loadBalancingScheme",
9178
+ * // "name": "my_name",
9179
+ * // "networks": [],
9180
+ * // "updateTime": "my_updateTime"
9181
+ * // }
9182
+ * }
9183
+ *
9184
+ * main().catch(e => {
9185
+ * console.error(e);
9186
+ * throw e;
9187
+ * });
9188
+ *
9189
+ * ```
9190
+ *
9191
+ * @param params - Parameters for request
9192
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9193
+ * @param callback - Optional callback that handles the response.
9194
+ * @returns A promise if used with async/await, or void if used with a callback.
9195
+ */
9196
+ get(
9197
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Get,
9198
+ options: StreamMethodOptions
9199
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9200
+ get(
9201
+ params?: Params$Resource$Projects$Locations$Lbtcpextensions$Get,
9202
+ options?: MethodOptions
9203
+ ): Promise<GaxiosResponseWithHTTP2<Schema$LbTcpExtension>>;
9204
+ get(
9205
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Get,
9206
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9207
+ callback: BodyResponseCallback<Readable>
9208
+ ): void;
9209
+ get(
9210
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Get,
9211
+ options: MethodOptions | BodyResponseCallback<Schema$LbTcpExtension>,
9212
+ callback: BodyResponseCallback<Schema$LbTcpExtension>
9213
+ ): void;
9214
+ get(
9215
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Get,
9216
+ callback: BodyResponseCallback<Schema$LbTcpExtension>
9217
+ ): void;
9218
+ get(callback: BodyResponseCallback<Schema$LbTcpExtension>): void;
9219
+ get(
9220
+ paramsOrCallback?:
9221
+ | Params$Resource$Projects$Locations$Lbtcpextensions$Get
9222
+ | BodyResponseCallback<Schema$LbTcpExtension>
9223
+ | BodyResponseCallback<Readable>,
9224
+ optionsOrCallback?:
9225
+ | MethodOptions
9226
+ | StreamMethodOptions
9227
+ | BodyResponseCallback<Schema$LbTcpExtension>
9228
+ | BodyResponseCallback<Readable>,
9229
+ callback?:
9230
+ | BodyResponseCallback<Schema$LbTcpExtension>
9231
+ | BodyResponseCallback<Readable>
9232
+ ):
9233
+ | void
9234
+ | Promise<GaxiosResponseWithHTTP2<Schema$LbTcpExtension>>
9235
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9236
+ let params = (paramsOrCallback ||
9237
+ {}) as Params$Resource$Projects$Locations$Lbtcpextensions$Get;
9238
+ let options = (optionsOrCallback || {}) as MethodOptions;
9239
+
9240
+ if (typeof paramsOrCallback === 'function') {
9241
+ callback = paramsOrCallback;
9242
+ params = {} as Params$Resource$Projects$Locations$Lbtcpextensions$Get;
9243
+ options = {};
9244
+ }
9245
+
9246
+ if (typeof optionsOrCallback === 'function') {
9247
+ callback = optionsOrCallback;
9248
+ options = {};
9249
+ }
9250
+
9251
+ const rootUrl =
9252
+ options.rootUrl || 'https://networkservices.googleapis.com/';
9253
+ const parameters = {
9254
+ options: Object.assign(
9255
+ {
9256
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
9257
+ method: 'GET',
9258
+ apiVersion: '',
9259
+ },
9260
+ options
9261
+ ),
9262
+ params,
9263
+ requiredParams: ['name'],
9264
+ pathParams: ['name'],
9265
+ context: this.context,
9266
+ };
9267
+ if (callback) {
9268
+ createAPIRequest<Schema$LbTcpExtension>(
9269
+ parameters,
9270
+ callback as BodyResponseCallback<unknown>
9271
+ );
9272
+ } else {
9273
+ return createAPIRequest<Schema$LbTcpExtension>(parameters);
9274
+ }
9275
+ }
9276
+
9277
+ /**
9278
+ * Lists `LbTcpExtension` resources in a given project and location.
9279
+ * @example
9280
+ * ```js
9281
+ * // Before running the sample:
9282
+ * // - Enable the API at:
9283
+ * // https://console.developers.google.com/apis/api/networkservices.googleapis.com
9284
+ * // - Login into gcloud by running:
9285
+ * // ```sh
9286
+ * // $ gcloud auth application-default login
9287
+ * // ```
9288
+ * // - Install the npm module by running:
9289
+ * // ```sh
9290
+ * // $ npm install googleapis
9291
+ * // ```
9292
+ *
9293
+ * const {google} = require('googleapis');
9294
+ * const networkservices = google.networkservices('v1beta1');
9295
+ *
9296
+ * async function main() {
9297
+ * const auth = new google.auth.GoogleAuth({
9298
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9299
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
9300
+ * });
9301
+ *
9302
+ * // Acquire an auth client, and bind it to all future calls
9303
+ * const authClient = await auth.getClient();
9304
+ * google.options({auth: authClient});
9305
+ *
9306
+ * // Do the magic
9307
+ * const res = await networkservices.projects.locations.lbTcpExtensions.list({
9308
+ * // Optional. Filtering results.
9309
+ * filter: 'placeholder-value',
9310
+ * // Optional. Hint for how to order the results.
9311
+ * orderBy: 'placeholder-value',
9312
+ * // Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
9313
+ * pageSize: 'placeholder-value',
9314
+ * // Optional. A token identifying a page of results that the server returns.
9315
+ * pageToken: 'placeholder-value',
9316
+ * // Required. The project and location from which the `LbTcpExtension` resources are listed, specified in the following format: `projects/{project\}/locations/{location\}`.
9317
+ * parent: 'projects/my-project/locations/my-location',
9318
+ * });
9319
+ * console.log(res.data);
9320
+ *
9321
+ * // Example response
9322
+ * // {
9323
+ * // "lbTcpExtensions": [],
9324
+ * // "nextPageToken": "my_nextPageToken",
9325
+ * // "unreachable": []
9326
+ * // }
9327
+ * }
9328
+ *
9329
+ * main().catch(e => {
9330
+ * console.error(e);
9331
+ * throw e;
9332
+ * });
9333
+ *
9334
+ * ```
9335
+ *
9336
+ * @param params - Parameters for request
9337
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9338
+ * @param callback - Optional callback that handles the response.
9339
+ * @returns A promise if used with async/await, or void if used with a callback.
9340
+ */
9341
+ list(
9342
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$List,
9343
+ options: StreamMethodOptions
9344
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9345
+ list(
9346
+ params?: Params$Resource$Projects$Locations$Lbtcpextensions$List,
9347
+ options?: MethodOptions
9348
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListLbTcpExtensionsResponse>>;
9349
+ list(
9350
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$List,
9351
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9352
+ callback: BodyResponseCallback<Readable>
9353
+ ): void;
9354
+ list(
9355
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$List,
9356
+ options:
9357
+ | MethodOptions
9358
+ | BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>,
9359
+ callback: BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>
9360
+ ): void;
9361
+ list(
9362
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$List,
9363
+ callback: BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>
9364
+ ): void;
9365
+ list(
9366
+ callback: BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>
9367
+ ): void;
9368
+ list(
9369
+ paramsOrCallback?:
9370
+ | Params$Resource$Projects$Locations$Lbtcpextensions$List
9371
+ | BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>
9372
+ | BodyResponseCallback<Readable>,
9373
+ optionsOrCallback?:
9374
+ | MethodOptions
9375
+ | StreamMethodOptions
9376
+ | BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>
9377
+ | BodyResponseCallback<Readable>,
9378
+ callback?:
9379
+ | BodyResponseCallback<Schema$ListLbTcpExtensionsResponse>
9380
+ | BodyResponseCallback<Readable>
9381
+ ):
9382
+ | void
9383
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListLbTcpExtensionsResponse>>
9384
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9385
+ let params = (paramsOrCallback ||
9386
+ {}) as Params$Resource$Projects$Locations$Lbtcpextensions$List;
9387
+ let options = (optionsOrCallback || {}) as MethodOptions;
9388
+
9389
+ if (typeof paramsOrCallback === 'function') {
9390
+ callback = paramsOrCallback;
9391
+ params = {} as Params$Resource$Projects$Locations$Lbtcpextensions$List;
9392
+ options = {};
9393
+ }
9394
+
9395
+ if (typeof optionsOrCallback === 'function') {
9396
+ callback = optionsOrCallback;
9397
+ options = {};
9398
+ }
9399
+
9400
+ const rootUrl =
9401
+ options.rootUrl || 'https://networkservices.googleapis.com/';
9402
+ const parameters = {
9403
+ options: Object.assign(
9404
+ {
9405
+ url: (rootUrl + '/v1beta1/{+parent}/lbTcpExtensions').replace(
9406
+ /([^:]\/)\/+/g,
9407
+ '$1'
9408
+ ),
9409
+ method: 'GET',
9410
+ apiVersion: '',
9411
+ },
9412
+ options
9413
+ ),
9414
+ params,
9415
+ requiredParams: ['parent'],
9416
+ pathParams: ['parent'],
9417
+ context: this.context,
9418
+ };
9419
+ if (callback) {
9420
+ createAPIRequest<Schema$ListLbTcpExtensionsResponse>(
9421
+ parameters,
9422
+ callback as BodyResponseCallback<unknown>
9423
+ );
9424
+ } else {
9425
+ return createAPIRequest<Schema$ListLbTcpExtensionsResponse>(parameters);
9426
+ }
9427
+ }
9428
+
9429
+ /**
9430
+ * Updates the parameters of the specified `LbTcpExtension` resource.
9431
+ * @example
9432
+ * ```js
9433
+ * // Before running the sample:
9434
+ * // - Enable the API at:
9435
+ * // https://console.developers.google.com/apis/api/networkservices.googleapis.com
9436
+ * // - Login into gcloud by running:
9437
+ * // ```sh
9438
+ * // $ gcloud auth application-default login
9439
+ * // ```
9440
+ * // - Install the npm module by running:
9441
+ * // ```sh
9442
+ * // $ npm install googleapis
9443
+ * // ```
9444
+ *
9445
+ * const {google} = require('googleapis');
9446
+ * const networkservices = google.networkservices('v1beta1');
9447
+ *
9448
+ * async function main() {
9449
+ * const auth = new google.auth.GoogleAuth({
9450
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
9451
+ * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
9452
+ * });
9453
+ *
9454
+ * // Acquire an auth client, and bind it to all future calls
9455
+ * const authClient = await auth.getClient();
9456
+ * google.options({auth: authClient});
9457
+ *
9458
+ * // Do the magic
9459
+ * const res = await networkservices.projects.locations.lbTcpExtensions.patch({
9460
+ * // Required. Identifier. Name of the `LbTcpExtension` resource in the following format: `projects/{project\}/locations/{location\}/LbTcpExtension/{lb_tcp_extension\}`
9461
+ * name: 'projects/my-project/locations/my-location/lbTcpExtensions/my-lbTcpExtension',
9462
+ * // 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).
9463
+ * requestId: 'placeholder-value',
9464
+ * // 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.
9465
+ * updateMask: 'placeholder-value',
9466
+ *
9467
+ * // Request body metadata
9468
+ * requestBody: {
9469
+ * // request body parameters
9470
+ * // {
9471
+ * // "createTime": "my_createTime",
9472
+ * // "description": "my_description",
9473
+ * // "extensionChains": [],
9474
+ * // "labels": {},
9475
+ * // "loadBalancingScheme": "my_loadBalancingScheme",
9476
+ * // "name": "my_name",
9477
+ * // "networks": [],
9478
+ * // "updateTime": "my_updateTime"
9479
+ * // }
9480
+ * },
9481
+ * });
9482
+ * console.log(res.data);
9483
+ *
9484
+ * // Example response
9485
+ * // {
9486
+ * // "done": false,
9487
+ * // "error": {},
9488
+ * // "metadata": {},
9489
+ * // "name": "my_name",
9490
+ * // "response": {}
9491
+ * // }
9492
+ * }
9493
+ *
9494
+ * main().catch(e => {
9495
+ * console.error(e);
9496
+ * throw e;
9497
+ * });
9498
+ *
9499
+ * ```
9500
+ *
9501
+ * @param params - Parameters for request
9502
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
9503
+ * @param callback - Optional callback that handles the response.
9504
+ * @returns A promise if used with async/await, or void if used with a callback.
9505
+ */
9506
+ patch(
9507
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch,
9508
+ options: StreamMethodOptions
9509
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9510
+ patch(
9511
+ params?: Params$Resource$Projects$Locations$Lbtcpextensions$Patch,
9512
+ options?: MethodOptions
9513
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
9514
+ patch(
9515
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch,
9516
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
9517
+ callback: BodyResponseCallback<Readable>
9518
+ ): void;
9519
+ patch(
9520
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch,
9521
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
9522
+ callback: BodyResponseCallback<Schema$Operation>
9523
+ ): void;
9524
+ patch(
9525
+ params: Params$Resource$Projects$Locations$Lbtcpextensions$Patch,
9526
+ callback: BodyResponseCallback<Schema$Operation>
9527
+ ): void;
9528
+ patch(callback: BodyResponseCallback<Schema$Operation>): void;
9529
+ patch(
9530
+ paramsOrCallback?:
9531
+ | Params$Resource$Projects$Locations$Lbtcpextensions$Patch
9532
+ | BodyResponseCallback<Schema$Operation>
9533
+ | BodyResponseCallback<Readable>,
9534
+ optionsOrCallback?:
9535
+ | MethodOptions
9536
+ | StreamMethodOptions
9537
+ | BodyResponseCallback<Schema$Operation>
9538
+ | BodyResponseCallback<Readable>,
9539
+ callback?:
9540
+ | BodyResponseCallback<Schema$Operation>
9541
+ | BodyResponseCallback<Readable>
9542
+ ):
9543
+ | void
9544
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
9545
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9546
+ let params = (paramsOrCallback ||
9547
+ {}) as Params$Resource$Projects$Locations$Lbtcpextensions$Patch;
9548
+ let options = (optionsOrCallback || {}) as MethodOptions;
9549
+
9550
+ if (typeof paramsOrCallback === 'function') {
9551
+ callback = paramsOrCallback;
9552
+ params = {} as Params$Resource$Projects$Locations$Lbtcpextensions$Patch;
9553
+ options = {};
9554
+ }
9555
+
9556
+ if (typeof optionsOrCallback === 'function') {
9557
+ callback = optionsOrCallback;
9558
+ options = {};
9559
+ }
9560
+
9561
+ const rootUrl =
9562
+ options.rootUrl || 'https://networkservices.googleapis.com/';
9563
+ const parameters = {
9564
+ options: Object.assign(
9565
+ {
9566
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
9567
+ method: 'PATCH',
9568
+ apiVersion: '',
9569
+ },
9570
+ options
9571
+ ),
9572
+ params,
9573
+ requiredParams: ['name'],
9574
+ pathParams: ['name'],
9575
+ context: this.context,
9576
+ };
9577
+ if (callback) {
9578
+ createAPIRequest<Schema$Operation>(
9579
+ parameters,
9580
+ callback as BodyResponseCallback<unknown>
9581
+ );
9582
+ } else {
9583
+ return createAPIRequest<Schema$Operation>(parameters);
9584
+ }
9585
+ }
9586
+ }
9587
+
9588
+ export interface Params$Resource$Projects$Locations$Lbtcpextensions$Create
9589
+ extends StandardParameters {
9590
+ /**
9591
+ * Required. User-provided ID of the `LbTcpExtension` resource to be created.
9592
+ */
9593
+ lbTcpExtensionId?: string;
9594
+ /**
9595
+ * Required. The parent resource of the `LbTcpExtension` resource. Must be in the format `projects/{project\}/locations/{location\}`.
9596
+ */
9597
+ parent?: string;
9598
+ /**
9599
+ * 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).
9600
+ */
9601
+ requestId?: string;
9602
+
9603
+ /**
9604
+ * Request body metadata
9605
+ */
9606
+ requestBody?: Schema$LbTcpExtension;
9607
+ }
9608
+ export interface Params$Resource$Projects$Locations$Lbtcpextensions$Delete
9609
+ extends StandardParameters {
9610
+ /**
9611
+ * Required. The name of the `LbTcpExtension` resource to delete. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
9612
+ */
9613
+ name?: string;
9614
+ /**
9615
+ * 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).
9616
+ */
9617
+ requestId?: string;
9618
+ }
9619
+ export interface Params$Resource$Projects$Locations$Lbtcpextensions$Get
9620
+ extends StandardParameters {
9621
+ /**
9622
+ * Required. A name of the `LbTcpExtension` resource to get. Must be in the format `projects/{project\}/locations/{location\}/LbTcpExtensions/{lb_tcp_extension\}`.
9623
+ */
9624
+ name?: string;
9625
+ }
9626
+ export interface Params$Resource$Projects$Locations$Lbtcpextensions$List
9627
+ extends StandardParameters {
9628
+ /**
9629
+ * Optional. Filtering results.
9630
+ */
9631
+ filter?: string;
9632
+ /**
9633
+ * Optional. Hint for how to order the results.
9634
+ */
9635
+ orderBy?: string;
9636
+ /**
9637
+ * Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.
9638
+ */
9639
+ pageSize?: number;
9640
+ /**
9641
+ * Optional. A token identifying a page of results that the server returns.
9642
+ */
9643
+ pageToken?: string;
9644
+ /**
9645
+ * Required. The project and location from which the `LbTcpExtension` resources are listed, specified in the following format: `projects/{project\}/locations/{location\}`.
9646
+ */
9647
+ parent?: string;
9648
+ }
9649
+ export interface Params$Resource$Projects$Locations$Lbtcpextensions$Patch
9650
+ extends StandardParameters {
9651
+ /**
9652
+ * Required. Identifier. Name of the `LbTcpExtension` resource in the following format: `projects/{project\}/locations/{location\}/LbTcpExtension/{lb_tcp_extension\}`
9653
+ */
9654
+ name?: string;
9655
+ /**
9656
+ * 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).
9657
+ */
9658
+ requestId?: string;
9659
+ /**
9660
+ * 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.
9661
+ */
9662
+ updateMask?: string;
9663
+
9664
+ /**
9665
+ * Request body metadata
9666
+ */
9667
+ requestBody?: Schema$LbTcpExtension;
9668
+ }
9669
+
8767
9670
  export class Resource$Projects$Locations$Lbtrafficextensions {
8768
9671
  context: APIRequestContext;
8769
9672
  constructor(context: APIRequestContext) {