@googleapis/networkservices 32.1.0 → 33.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 +19 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +50 -6
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +640 -8
- package/build/v1beta1.js +169 -0
- package/build/v1beta1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +50 -6
- package/v1beta1.ts +1099 -75
package/v1beta1.ts
CHANGED
|
@@ -124,12 +124,139 @@ export namespace networkservices_v1beta1 {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
/**
|
|
128
|
+
* AgentGateway represents the agent gateway resource.
|
|
129
|
+
*/
|
|
130
|
+
export interface Schema$AgentGateway {
|
|
131
|
+
/**
|
|
132
|
+
* Output only. Field for populated AgentGateway card.
|
|
133
|
+
*/
|
|
134
|
+
agentGatewayCard?: Schema$AgentGatewayAgentGatewayOutputCard;
|
|
135
|
+
/**
|
|
136
|
+
* Output only. The timestamp when the resource was created.
|
|
137
|
+
*/
|
|
138
|
+
createTime?: string | null;
|
|
139
|
+
/**
|
|
140
|
+
* Optional. A free-text description of the resource. Max length 1024 characters.
|
|
141
|
+
*/
|
|
142
|
+
description?: string | null;
|
|
143
|
+
/**
|
|
144
|
+
* Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
|
|
145
|
+
*/
|
|
146
|
+
etag?: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant project.
|
|
149
|
+
*/
|
|
150
|
+
googleManaged?: Schema$AgentGatewayGoogleManaged;
|
|
151
|
+
/**
|
|
152
|
+
* Optional. Set of label tags associated with the AgentGateway resource.
|
|
153
|
+
*/
|
|
154
|
+
labels?: {[key: string]: string} | null;
|
|
155
|
+
/**
|
|
156
|
+
* Identifier. Name of the AgentGateway resource. It matches pattern `projects/x/locations/x/agentGateways/`.
|
|
157
|
+
*/
|
|
158
|
+
name?: string | null;
|
|
159
|
+
/**
|
|
160
|
+
* Optional. Network configuration for the AgentGateway.
|
|
161
|
+
*/
|
|
162
|
+
networkConfig?: Schema$AgentGatewayNetworkConfig;
|
|
163
|
+
/**
|
|
164
|
+
* Required. List of protocols supported by an Agent Gateway
|
|
165
|
+
*/
|
|
166
|
+
protocols?: string[] | null;
|
|
167
|
+
/**
|
|
168
|
+
* Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format `//agentregistry.googleapis.com/projects/{project\}/locations/{location\}/
|
|
169
|
+
*/
|
|
170
|
+
registries?: string[] | null;
|
|
171
|
+
/**
|
|
172
|
+
* Optional. Attach to existing Application Load Balancers or Secure Web Proxies.
|
|
173
|
+
*/
|
|
174
|
+
selfManaged?: Schema$AgentGatewaySelfManaged;
|
|
175
|
+
/**
|
|
176
|
+
* Output only. The timestamp when the resource was updated.
|
|
177
|
+
*/
|
|
178
|
+
updateTime?: string | null;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* AgentGatewayOutputCard contains informational output-only fields
|
|
182
|
+
*/
|
|
183
|
+
export interface Schema$AgentGatewayAgentGatewayOutputCard {
|
|
184
|
+
/**
|
|
185
|
+
* Output only. mTLS Endpoint associated with this AgentGateway
|
|
186
|
+
*/
|
|
187
|
+
mtlsEndpoint?: string | null;
|
|
188
|
+
/**
|
|
189
|
+
* Output only. Root Certificates for Agents to validate this AgentGateway
|
|
190
|
+
*/
|
|
191
|
+
rootCertificates?: string[] | null;
|
|
192
|
+
/**
|
|
193
|
+
* Output only. Service Account used by Service Extensions to operate.
|
|
194
|
+
*/
|
|
195
|
+
serviceExtensionsServiceAccount?: string | null;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Configuration for Google Managed deployment mode. Proxy is orchestrated and managed by GoogleCloud in a tenant project.
|
|
199
|
+
*/
|
|
200
|
+
export interface Schema$AgentGatewayGoogleManaged {
|
|
201
|
+
/**
|
|
202
|
+
* Optional. Operating Mode of Agent Gateway.
|
|
203
|
+
*/
|
|
204
|
+
governedAccessPath?: string | null;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* NetworkConfig contains network configurations for the AgentGateway.
|
|
208
|
+
*/
|
|
209
|
+
export interface Schema$AgentGatewayNetworkConfig {
|
|
210
|
+
/**
|
|
211
|
+
* Optional. Optional DNS peering configuration for connectivity to your private VPC network.
|
|
212
|
+
*/
|
|
213
|
+
dnsPeeringConfig?: Schema$AgentGatewayNetworkConfigDnsPeeringConfig;
|
|
214
|
+
/**
|
|
215
|
+
* Optional. Optional PSC-Interface network attachment for connectivity to your private VPCs network.
|
|
216
|
+
*/
|
|
217
|
+
egress?: Schema$AgentGatewayNetworkConfigEgress;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* DNS peering config for the user VPC network.
|
|
221
|
+
*/
|
|
222
|
+
export interface Schema$AgentGatewayNetworkConfigDnsPeeringConfig {
|
|
223
|
+
/**
|
|
224
|
+
* Required. Domain names for which DNS queries should be forwarded to the target network.
|
|
225
|
+
*/
|
|
226
|
+
domains?: string[] | null;
|
|
227
|
+
/**
|
|
228
|
+
* Required. Target network in 'target project' to which DNS queries should be forwarded to. Must be in format of `projects/{project\}/global/networks/{network\}`.
|
|
229
|
+
*/
|
|
230
|
+
targetNetwork?: string | null;
|
|
231
|
+
/**
|
|
232
|
+
* Required. Target project ID to which DNS queries should be forwarded to. This can be the same project that contains the AgentGateway or a different project.
|
|
233
|
+
*/
|
|
234
|
+
targetProject?: string | null;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Configuration for Egress
|
|
238
|
+
*/
|
|
239
|
+
export interface Schema$AgentGatewayNetworkConfigEgress {
|
|
240
|
+
/**
|
|
241
|
+
* Optional. The URI of the Network Attachment resource.
|
|
242
|
+
*/
|
|
243
|
+
networkAttachment?: string | null;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Configuration for Self Managed deployment mode. Attach to existing Application Load Balancers or Secure Web Proxies.
|
|
247
|
+
*/
|
|
248
|
+
export interface Schema$AgentGatewaySelfManaged {
|
|
249
|
+
/**
|
|
250
|
+
* Optional. A supported Google Cloud networking proxy in the Project and Location
|
|
251
|
+
*/
|
|
252
|
+
resourceUri?: string | null;
|
|
253
|
+
}
|
|
127
254
|
/**
|
|
128
255
|
* `AuthzExtension` is a resource that allows traffic forwarding to a callout backend service to make an authorization decision.
|
|
129
256
|
*/
|
|
130
257
|
export interface Schema$AuthzExtension {
|
|
131
258
|
/**
|
|
132
|
-
*
|
|
259
|
+
* Optional. The `:authority` header in the gRPC request sent from Envoy to the extension service. It is required when the `service` field points to a backend service or a wasm plugin.
|
|
133
260
|
*/
|
|
134
261
|
authority?: string | null;
|
|
135
262
|
/**
|
|
@@ -144,6 +271,10 @@ export namespace networkservices_v1beta1 {
|
|
|
144
271
|
* Optional. Determines how the proxy behaves if the call to the extension fails or times out. When set to `TRUE`, request or response processing continues without error. Any subsequent extensions in the extension chain are also executed. When set to `FALSE` or the default setting of `FALSE` is used, one of the following happens: * If response headers have not been delivered to the downstream client, a generic 500 error is returned to the client. The error response can be tailored by configuring a custom error response in the load balancer. * If response headers have been delivered, then the HTTP stream to the downstream client is reset.
|
|
145
272
|
*/
|
|
146
273
|
failOpen?: boolean | null;
|
|
274
|
+
/**
|
|
275
|
+
* Optional. List of the Envoy attributes to forward to the extension server. The attributes provided here are included as part of the `ProcessingRequest.attributes` field (of type `map`), where the keys are the attribute names. Refer to the [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes) for the names of attributes that can be forwarded. If omitted, no attributes are sent. Each element is a string indicating the attribute name.
|
|
276
|
+
*/
|
|
277
|
+
forwardAttributes?: string[] | null;
|
|
147
278
|
/**
|
|
148
279
|
* Optional. List of the HTTP headers to forward to the extension (from the client). If omitted, all headers are sent. Each element is a string indicating the header name.
|
|
149
280
|
*/
|
|
@@ -153,7 +284,7 @@ export namespace networkservices_v1beta1 {
|
|
|
153
284
|
*/
|
|
154
285
|
labels?: {[key: string]: string} | null;
|
|
155
286
|
/**
|
|
156
|
-
*
|
|
287
|
+
* Optional. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions that do not reference a backend service. For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).
|
|
157
288
|
*/
|
|
158
289
|
loadBalancingScheme?: string | null;
|
|
159
290
|
/**
|
|
@@ -284,6 +415,10 @@ export namespace networkservices_v1beta1 {
|
|
|
284
415
|
* Optional. Determines how the proxy behaves if the call to the extension fails or times out. When set to `TRUE`, request or response processing continues without error. Any subsequent extensions in the extension chain are also executed. When set to `FALSE` or the default setting of `FALSE` is used, one of the following happens: * If response headers have not been delivered to the downstream client, a generic 500 error is returned to the client. The error response can be tailored by configuring a custom error response in the load balancer. * If response headers have been delivered, then the HTTP stream to the downstream client is reset.
|
|
285
416
|
*/
|
|
286
417
|
failOpen?: boolean | null;
|
|
418
|
+
/**
|
|
419
|
+
* Optional. List of the Envoy attributes to forward to the extension server. The attributes provided here are included as part of the `ProcessingRequest.attributes` field (of type `map`), where the keys are the attribute names. Refer to the [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes) for the names of attributes that can be forwarded. If omitted, no attributes are sent. Each element is a string indicating the attribute name.
|
|
420
|
+
*/
|
|
421
|
+
forwardAttributes?: string[] | null;
|
|
287
422
|
/**
|
|
288
423
|
* Optional. List of the HTTP headers to forward to the extension (from the client or backend). If omitted, all headers are sent. Each element is a string indicating the header name.
|
|
289
424
|
*/
|
|
@@ -297,7 +432,7 @@ export namespace networkservices_v1beta1 {
|
|
|
297
432
|
*/
|
|
298
433
|
name?: string | null;
|
|
299
434
|
/**
|
|
300
|
-
* Optional. When set to `
|
|
435
|
+
* Optional. When set to `true`, the calls to the extension backend are performed asynchronously, without pausing the processing of the ongoing request. In this mode, only `STREAMED` (default) body processing is supported. Responses, if any, are ignored. Supported by regional `LbTrafficExtension` and `LbRouteExtension` resources.
|
|
301
436
|
*/
|
|
302
437
|
observabilityMode?: boolean | null;
|
|
303
438
|
/**
|
|
@@ -338,6 +473,14 @@ export namespace networkservices_v1beta1 {
|
|
|
338
473
|
* Optional. Zero or one IPv4 or IPv6 address on which the Gateway will receive the traffic. When no address is provided, an IP from the subnetwork is allocated This field only applies to gateways of type 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.
|
|
339
474
|
*/
|
|
340
475
|
addresses?: string[] | null;
|
|
476
|
+
/**
|
|
477
|
+
* Optional. If true, the gateway will allow traffic from clients outside of the region where the gateway is located. This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
|
|
478
|
+
*/
|
|
479
|
+
allowGlobalAccess?: boolean | null;
|
|
480
|
+
/**
|
|
481
|
+
* Optional. If true, the Gateway will listen on all ports. This is mutually exclusive with the `ports` field. This field only applies to gateways of type 'SECURE_WEB_GATEWAY'.
|
|
482
|
+
*/
|
|
483
|
+
allPorts?: boolean | null;
|
|
341
484
|
/**
|
|
342
485
|
* Optional. A fully-qualified Certificates URL reference. The proxy presents a Certificate (selected based on SNI) when establishing a TLS connection. This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.
|
|
343
486
|
*/
|
|
@@ -1231,6 +1374,23 @@ export namespace networkservices_v1beta1 {
|
|
|
1231
1374
|
*/
|
|
1232
1375
|
updateTime?: string | null;
|
|
1233
1376
|
}
|
|
1377
|
+
/**
|
|
1378
|
+
* Response returned by the ListAgentGateways method.
|
|
1379
|
+
*/
|
|
1380
|
+
export interface Schema$ListAgentGatewaysResponse {
|
|
1381
|
+
/**
|
|
1382
|
+
* List of AgentGateway resources.
|
|
1383
|
+
*/
|
|
1384
|
+
agentGateways?: Schema$AgentGateway[];
|
|
1385
|
+
/**
|
|
1386
|
+
* If there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.
|
|
1387
|
+
*/
|
|
1388
|
+
nextPageToken?: string | null;
|
|
1389
|
+
/**
|
|
1390
|
+
* Unreachable resources. Populated when the request attempts to list all resources across all supported locations, while some locations are temporarily unavailable.
|
|
1391
|
+
*/
|
|
1392
|
+
unreachable?: string[] | null;
|
|
1393
|
+
}
|
|
1234
1394
|
/**
|
|
1235
1395
|
* Message for response to listing `AuthzExtension` resources.
|
|
1236
1396
|
*/
|
|
@@ -2008,6 +2168,10 @@ export namespace networkservices_v1beta1 {
|
|
|
2008
2168
|
* Output only. Server-defined URL of this resource
|
|
2009
2169
|
*/
|
|
2010
2170
|
selfLink?: string | null;
|
|
2171
|
+
/**
|
|
2172
|
+
* Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is attached to, as one of the routing rules to route the requests served by the TargetTcpProxy. Each TargetTcpProxy reference should match the pattern: `projects/x/locations/x/targetTcpProxies/`
|
|
2173
|
+
*/
|
|
2174
|
+
targetProxies?: string[] | null;
|
|
2011
2175
|
/**
|
|
2012
2176
|
* Output only. The timestamp when the resource was updated.
|
|
2013
2177
|
*/
|
|
@@ -2087,11 +2251,11 @@ export namespace networkservices_v1beta1 {
|
|
|
2087
2251
|
*/
|
|
2088
2252
|
description?: string | null;
|
|
2089
2253
|
/**
|
|
2090
|
-
* Optional. The name of the customer
|
|
2254
|
+
* Optional. The name of the customer-managed [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys) to be used to encrypt the `WasmPlugin` image (provided by image_uri) and configuration (provided by plugin_config_data or plugin_config_uri) that are stored by the `Service Extensions` product at rest. Format: `projects/{project\}/locations/{location\}/keyRings/{keyring\}/cryptoKeys/{key\}` By default, Google Cloud automatically encrypts all data at rest using Google-owned and Google-managed encryption keys. If you need ownership and control of the keys that protect your data at rest, you can specify a customer-managed encryption key (CMEK) to encrypt your `WasmPlugin` data. For more information, see [Using customer-managed encryption keys](https://cloud.google.com/service-extensions/docs/cmek).
|
|
2091
2255
|
*/
|
|
2092
2256
|
kmsKeyName?: string | null;
|
|
2093
2257
|
/**
|
|
2094
|
-
* Output only. The name of the specific CryptoKeyVersion used to encrypt the `WasmPlugin` data, if the kms_key_name field is set. Format:
|
|
2258
|
+
* Output only. The name of the specific [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions) used to encrypt the `WasmPlugin` data, if the kms_key_name field is set. Format: `projects/{project\}/locations/{location\}/keyRings/{keyring\}/cryptoKeys/{key\}/cryptoKeyVersions/{version\}` This is a read-only field. `WasmPlugin` data is automatically encrypted using the most recent `CryptoKeyVersion` of the `CryptoKey` provided in the `kms_key_name` field. See [Cloud KMS resources](https://cloud.google.com/kms/docs/resource-hierarchy) for more information.
|
|
2095
2259
|
*/
|
|
2096
2260
|
kmsKeyVersion?: string | null;
|
|
2097
2261
|
/**
|
|
@@ -2247,6 +2411,7 @@ export namespace networkservices_v1beta1 {
|
|
|
2247
2411
|
|
|
2248
2412
|
export class Resource$Projects$Locations {
|
|
2249
2413
|
context: APIRequestContext;
|
|
2414
|
+
agentGateways: Resource$Projects$Locations$Agentgateways;
|
|
2250
2415
|
authzExtensions: Resource$Projects$Locations$Authzextensions;
|
|
2251
2416
|
endpointPolicies: Resource$Projects$Locations$Endpointpolicies;
|
|
2252
2417
|
gateways: Resource$Projects$Locations$Gateways;
|
|
@@ -2265,6 +2430,9 @@ export namespace networkservices_v1beta1 {
|
|
|
2265
2430
|
wasmPlugins: Resource$Projects$Locations$Wasmplugins;
|
|
2266
2431
|
constructor(context: APIRequestContext) {
|
|
2267
2432
|
this.context = context;
|
|
2433
|
+
this.agentGateways = new Resource$Projects$Locations$Agentgateways(
|
|
2434
|
+
this.context
|
|
2435
|
+
);
|
|
2268
2436
|
this.authzExtensions = new Resource$Projects$Locations$Authzextensions(
|
|
2269
2437
|
this.context
|
|
2270
2438
|
);
|
|
@@ -2305,7 +2473,635 @@ export namespace networkservices_v1beta1 {
|
|
|
2305
2473
|
}
|
|
2306
2474
|
|
|
2307
2475
|
/**
|
|
2308
|
-
* Gets information about a location.
|
|
2476
|
+
* Gets information about a location.
|
|
2477
|
+
* @example
|
|
2478
|
+
* ```js
|
|
2479
|
+
* // Before running the sample:
|
|
2480
|
+
* // - Enable the API at:
|
|
2481
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
2482
|
+
* // - Login into gcloud by running:
|
|
2483
|
+
* // ```sh
|
|
2484
|
+
* // $ gcloud auth application-default login
|
|
2485
|
+
* // ```
|
|
2486
|
+
* // - Install the npm module by running:
|
|
2487
|
+
* // ```sh
|
|
2488
|
+
* // $ npm install googleapis
|
|
2489
|
+
* // ```
|
|
2490
|
+
*
|
|
2491
|
+
* const {google} = require('googleapis');
|
|
2492
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
2493
|
+
*
|
|
2494
|
+
* async function main() {
|
|
2495
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2496
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2497
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2498
|
+
* });
|
|
2499
|
+
*
|
|
2500
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2501
|
+
* const authClient = await auth.getClient();
|
|
2502
|
+
* google.options({auth: authClient});
|
|
2503
|
+
*
|
|
2504
|
+
* // Do the magic
|
|
2505
|
+
* const res = await networkservices.projects.locations.get({
|
|
2506
|
+
* // Resource name for the location.
|
|
2507
|
+
* name: 'projects/my-project/locations/my-location',
|
|
2508
|
+
* });
|
|
2509
|
+
* console.log(res.data);
|
|
2510
|
+
*
|
|
2511
|
+
* // Example response
|
|
2512
|
+
* // {
|
|
2513
|
+
* // "displayName": "my_displayName",
|
|
2514
|
+
* // "labels": {},
|
|
2515
|
+
* // "locationId": "my_locationId",
|
|
2516
|
+
* // "metadata": {},
|
|
2517
|
+
* // "name": "my_name"
|
|
2518
|
+
* // }
|
|
2519
|
+
* }
|
|
2520
|
+
*
|
|
2521
|
+
* main().catch(e => {
|
|
2522
|
+
* console.error(e);
|
|
2523
|
+
* throw e;
|
|
2524
|
+
* });
|
|
2525
|
+
*
|
|
2526
|
+
* ```
|
|
2527
|
+
*
|
|
2528
|
+
* @param params - Parameters for request
|
|
2529
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2530
|
+
* @param callback - Optional callback that handles the response.
|
|
2531
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2532
|
+
*/
|
|
2533
|
+
get(
|
|
2534
|
+
params: Params$Resource$Projects$Locations$Get,
|
|
2535
|
+
options: StreamMethodOptions
|
|
2536
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2537
|
+
get(
|
|
2538
|
+
params?: Params$Resource$Projects$Locations$Get,
|
|
2539
|
+
options?: MethodOptions
|
|
2540
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Location>>;
|
|
2541
|
+
get(
|
|
2542
|
+
params: Params$Resource$Projects$Locations$Get,
|
|
2543
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2544
|
+
callback: BodyResponseCallback<Readable>
|
|
2545
|
+
): void;
|
|
2546
|
+
get(
|
|
2547
|
+
params: Params$Resource$Projects$Locations$Get,
|
|
2548
|
+
options: MethodOptions | BodyResponseCallback<Schema$Location>,
|
|
2549
|
+
callback: BodyResponseCallback<Schema$Location>
|
|
2550
|
+
): void;
|
|
2551
|
+
get(
|
|
2552
|
+
params: Params$Resource$Projects$Locations$Get,
|
|
2553
|
+
callback: BodyResponseCallback<Schema$Location>
|
|
2554
|
+
): void;
|
|
2555
|
+
get(callback: BodyResponseCallback<Schema$Location>): void;
|
|
2556
|
+
get(
|
|
2557
|
+
paramsOrCallback?:
|
|
2558
|
+
| Params$Resource$Projects$Locations$Get
|
|
2559
|
+
| BodyResponseCallback<Schema$Location>
|
|
2560
|
+
| BodyResponseCallback<Readable>,
|
|
2561
|
+
optionsOrCallback?:
|
|
2562
|
+
| MethodOptions
|
|
2563
|
+
| StreamMethodOptions
|
|
2564
|
+
| BodyResponseCallback<Schema$Location>
|
|
2565
|
+
| BodyResponseCallback<Readable>,
|
|
2566
|
+
callback?:
|
|
2567
|
+
| BodyResponseCallback<Schema$Location>
|
|
2568
|
+
| BodyResponseCallback<Readable>
|
|
2569
|
+
):
|
|
2570
|
+
| void
|
|
2571
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Location>>
|
|
2572
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2573
|
+
let params = (paramsOrCallback ||
|
|
2574
|
+
{}) as Params$Resource$Projects$Locations$Get;
|
|
2575
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2576
|
+
|
|
2577
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2578
|
+
callback = paramsOrCallback;
|
|
2579
|
+
params = {} as Params$Resource$Projects$Locations$Get;
|
|
2580
|
+
options = {};
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2583
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2584
|
+
callback = optionsOrCallback;
|
|
2585
|
+
options = {};
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
const rootUrl =
|
|
2589
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
2590
|
+
const parameters = {
|
|
2591
|
+
options: Object.assign(
|
|
2592
|
+
{
|
|
2593
|
+
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
2594
|
+
method: 'GET',
|
|
2595
|
+
apiVersion: '',
|
|
2596
|
+
},
|
|
2597
|
+
options
|
|
2598
|
+
),
|
|
2599
|
+
params,
|
|
2600
|
+
requiredParams: ['name'],
|
|
2601
|
+
pathParams: ['name'],
|
|
2602
|
+
context: this.context,
|
|
2603
|
+
};
|
|
2604
|
+
if (callback) {
|
|
2605
|
+
createAPIRequest<Schema$Location>(
|
|
2606
|
+
parameters,
|
|
2607
|
+
callback as BodyResponseCallback<unknown>
|
|
2608
|
+
);
|
|
2609
|
+
} else {
|
|
2610
|
+
return createAPIRequest<Schema$Location>(parameters);
|
|
2611
|
+
}
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
/**
|
|
2615
|
+
* Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
|
|
2616
|
+
* @example
|
|
2617
|
+
* ```js
|
|
2618
|
+
* // Before running the sample:
|
|
2619
|
+
* // - Enable the API at:
|
|
2620
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
2621
|
+
* // - Login into gcloud by running:
|
|
2622
|
+
* // ```sh
|
|
2623
|
+
* // $ gcloud auth application-default login
|
|
2624
|
+
* // ```
|
|
2625
|
+
* // - Install the npm module by running:
|
|
2626
|
+
* // ```sh
|
|
2627
|
+
* // $ npm install googleapis
|
|
2628
|
+
* // ```
|
|
2629
|
+
*
|
|
2630
|
+
* const {google} = require('googleapis');
|
|
2631
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
2632
|
+
*
|
|
2633
|
+
* async function main() {
|
|
2634
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2635
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2636
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2637
|
+
* });
|
|
2638
|
+
*
|
|
2639
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2640
|
+
* const authClient = await auth.getClient();
|
|
2641
|
+
* google.options({auth: authClient});
|
|
2642
|
+
*
|
|
2643
|
+
* // Do the magic
|
|
2644
|
+
* const res = await networkservices.projects.locations.list({
|
|
2645
|
+
* // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
|
|
2646
|
+
* extraLocationTypes: 'placeholder-value',
|
|
2647
|
+
* // 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).
|
|
2648
|
+
* filter: 'placeholder-value',
|
|
2649
|
+
* // The resource that owns the locations collection, if applicable.
|
|
2650
|
+
* name: 'projects/my-project',
|
|
2651
|
+
* // The maximum number of results to return. If not set, the service selects a default.
|
|
2652
|
+
* pageSize: 'placeholder-value',
|
|
2653
|
+
* // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
|
|
2654
|
+
* pageToken: 'placeholder-value',
|
|
2655
|
+
* });
|
|
2656
|
+
* console.log(res.data);
|
|
2657
|
+
*
|
|
2658
|
+
* // Example response
|
|
2659
|
+
* // {
|
|
2660
|
+
* // "locations": [],
|
|
2661
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
2662
|
+
* // }
|
|
2663
|
+
* }
|
|
2664
|
+
*
|
|
2665
|
+
* main().catch(e => {
|
|
2666
|
+
* console.error(e);
|
|
2667
|
+
* throw e;
|
|
2668
|
+
* });
|
|
2669
|
+
*
|
|
2670
|
+
* ```
|
|
2671
|
+
*
|
|
2672
|
+
* @param params - Parameters for request
|
|
2673
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2674
|
+
* @param callback - Optional callback that handles the response.
|
|
2675
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2676
|
+
*/
|
|
2677
|
+
list(
|
|
2678
|
+
params: Params$Resource$Projects$Locations$List,
|
|
2679
|
+
options: StreamMethodOptions
|
|
2680
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2681
|
+
list(
|
|
2682
|
+
params?: Params$Resource$Projects$Locations$List,
|
|
2683
|
+
options?: MethodOptions
|
|
2684
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListLocationsResponse>>;
|
|
2685
|
+
list(
|
|
2686
|
+
params: Params$Resource$Projects$Locations$List,
|
|
2687
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2688
|
+
callback: BodyResponseCallback<Readable>
|
|
2689
|
+
): void;
|
|
2690
|
+
list(
|
|
2691
|
+
params: Params$Resource$Projects$Locations$List,
|
|
2692
|
+
options:
|
|
2693
|
+
| MethodOptions
|
|
2694
|
+
| BodyResponseCallback<Schema$ListLocationsResponse>,
|
|
2695
|
+
callback: BodyResponseCallback<Schema$ListLocationsResponse>
|
|
2696
|
+
): void;
|
|
2697
|
+
list(
|
|
2698
|
+
params: Params$Resource$Projects$Locations$List,
|
|
2699
|
+
callback: BodyResponseCallback<Schema$ListLocationsResponse>
|
|
2700
|
+
): void;
|
|
2701
|
+
list(callback: BodyResponseCallback<Schema$ListLocationsResponse>): void;
|
|
2702
|
+
list(
|
|
2703
|
+
paramsOrCallback?:
|
|
2704
|
+
| Params$Resource$Projects$Locations$List
|
|
2705
|
+
| BodyResponseCallback<Schema$ListLocationsResponse>
|
|
2706
|
+
| BodyResponseCallback<Readable>,
|
|
2707
|
+
optionsOrCallback?:
|
|
2708
|
+
| MethodOptions
|
|
2709
|
+
| StreamMethodOptions
|
|
2710
|
+
| BodyResponseCallback<Schema$ListLocationsResponse>
|
|
2711
|
+
| BodyResponseCallback<Readable>,
|
|
2712
|
+
callback?:
|
|
2713
|
+
| BodyResponseCallback<Schema$ListLocationsResponse>
|
|
2714
|
+
| BodyResponseCallback<Readable>
|
|
2715
|
+
):
|
|
2716
|
+
| void
|
|
2717
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListLocationsResponse>>
|
|
2718
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2719
|
+
let params = (paramsOrCallback ||
|
|
2720
|
+
{}) as Params$Resource$Projects$Locations$List;
|
|
2721
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2722
|
+
|
|
2723
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2724
|
+
callback = paramsOrCallback;
|
|
2725
|
+
params = {} as Params$Resource$Projects$Locations$List;
|
|
2726
|
+
options = {};
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2729
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2730
|
+
callback = optionsOrCallback;
|
|
2731
|
+
options = {};
|
|
2732
|
+
}
|
|
2733
|
+
|
|
2734
|
+
const rootUrl =
|
|
2735
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
2736
|
+
const parameters = {
|
|
2737
|
+
options: Object.assign(
|
|
2738
|
+
{
|
|
2739
|
+
url: (rootUrl + '/v1beta1/{+name}/locations').replace(
|
|
2740
|
+
/([^:]\/)\/+/g,
|
|
2741
|
+
'$1'
|
|
2742
|
+
),
|
|
2743
|
+
method: 'GET',
|
|
2744
|
+
apiVersion: '',
|
|
2745
|
+
},
|
|
2746
|
+
options
|
|
2747
|
+
),
|
|
2748
|
+
params,
|
|
2749
|
+
requiredParams: ['name'],
|
|
2750
|
+
pathParams: ['name'],
|
|
2751
|
+
context: this.context,
|
|
2752
|
+
};
|
|
2753
|
+
if (callback) {
|
|
2754
|
+
createAPIRequest<Schema$ListLocationsResponse>(
|
|
2755
|
+
parameters,
|
|
2756
|
+
callback as BodyResponseCallback<unknown>
|
|
2757
|
+
);
|
|
2758
|
+
} else {
|
|
2759
|
+
return createAPIRequest<Schema$ListLocationsResponse>(parameters);
|
|
2760
|
+
}
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2764
|
+
export interface Params$Resource$Projects$Locations$Get extends StandardParameters {
|
|
2765
|
+
/**
|
|
2766
|
+
* Resource name for the location.
|
|
2767
|
+
*/
|
|
2768
|
+
name?: string;
|
|
2769
|
+
}
|
|
2770
|
+
export interface Params$Resource$Projects$Locations$List extends StandardParameters {
|
|
2771
|
+
/**
|
|
2772
|
+
* Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
|
|
2773
|
+
*/
|
|
2774
|
+
extraLocationTypes?: string[];
|
|
2775
|
+
/**
|
|
2776
|
+
* 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).
|
|
2777
|
+
*/
|
|
2778
|
+
filter?: string;
|
|
2779
|
+
/**
|
|
2780
|
+
* The resource that owns the locations collection, if applicable.
|
|
2781
|
+
*/
|
|
2782
|
+
name?: string;
|
|
2783
|
+
/**
|
|
2784
|
+
* The maximum number of results to return. If not set, the service selects a default.
|
|
2785
|
+
*/
|
|
2786
|
+
pageSize?: number;
|
|
2787
|
+
/**
|
|
2788
|
+
* A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
|
|
2789
|
+
*/
|
|
2790
|
+
pageToken?: string;
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
export class Resource$Projects$Locations$Agentgateways {
|
|
2794
|
+
context: APIRequestContext;
|
|
2795
|
+
constructor(context: APIRequestContext) {
|
|
2796
|
+
this.context = context;
|
|
2797
|
+
}
|
|
2798
|
+
|
|
2799
|
+
/**
|
|
2800
|
+
* Creates a new AgentGateway in a given project and location.
|
|
2801
|
+
* @example
|
|
2802
|
+
* ```js
|
|
2803
|
+
* // Before running the sample:
|
|
2804
|
+
* // - Enable the API at:
|
|
2805
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
2806
|
+
* // - Login into gcloud by running:
|
|
2807
|
+
* // ```sh
|
|
2808
|
+
* // $ gcloud auth application-default login
|
|
2809
|
+
* // ```
|
|
2810
|
+
* // - Install the npm module by running:
|
|
2811
|
+
* // ```sh
|
|
2812
|
+
* // $ npm install googleapis
|
|
2813
|
+
* // ```
|
|
2814
|
+
*
|
|
2815
|
+
* const {google} = require('googleapis');
|
|
2816
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
2817
|
+
*
|
|
2818
|
+
* async function main() {
|
|
2819
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2820
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2821
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2822
|
+
* });
|
|
2823
|
+
*
|
|
2824
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2825
|
+
* const authClient = await auth.getClient();
|
|
2826
|
+
* google.options({auth: authClient});
|
|
2827
|
+
*
|
|
2828
|
+
* // Do the magic
|
|
2829
|
+
* const res = await networkservices.projects.locations.agentGateways.create({
|
|
2830
|
+
* // Required. Short name of the AgentGateway resource to be created.
|
|
2831
|
+
* agentGatewayId: 'placeholder-value',
|
|
2832
|
+
* // Required. The parent resource of the AgentGateway. Must be in the format `projects/x/locations/x`.
|
|
2833
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
2834
|
+
*
|
|
2835
|
+
* // Request body metadata
|
|
2836
|
+
* requestBody: {
|
|
2837
|
+
* // request body parameters
|
|
2838
|
+
* // {
|
|
2839
|
+
* // "agentGatewayCard": {},
|
|
2840
|
+
* // "createTime": "my_createTime",
|
|
2841
|
+
* // "description": "my_description",
|
|
2842
|
+
* // "etag": "my_etag",
|
|
2843
|
+
* // "googleManaged": {},
|
|
2844
|
+
* // "labels": {},
|
|
2845
|
+
* // "name": "my_name",
|
|
2846
|
+
* // "networkConfig": {},
|
|
2847
|
+
* // "protocols": [],
|
|
2848
|
+
* // "registries": [],
|
|
2849
|
+
* // "selfManaged": {},
|
|
2850
|
+
* // "updateTime": "my_updateTime"
|
|
2851
|
+
* // }
|
|
2852
|
+
* },
|
|
2853
|
+
* });
|
|
2854
|
+
* console.log(res.data);
|
|
2855
|
+
*
|
|
2856
|
+
* // Example response
|
|
2857
|
+
* // {
|
|
2858
|
+
* // "done": false,
|
|
2859
|
+
* // "error": {},
|
|
2860
|
+
* // "metadata": {},
|
|
2861
|
+
* // "name": "my_name",
|
|
2862
|
+
* // "response": {}
|
|
2863
|
+
* // }
|
|
2864
|
+
* }
|
|
2865
|
+
*
|
|
2866
|
+
* main().catch(e => {
|
|
2867
|
+
* console.error(e);
|
|
2868
|
+
* throw e;
|
|
2869
|
+
* });
|
|
2870
|
+
*
|
|
2871
|
+
* ```
|
|
2872
|
+
*
|
|
2873
|
+
* @param params - Parameters for request
|
|
2874
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2875
|
+
* @param callback - Optional callback that handles the response.
|
|
2876
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2877
|
+
*/
|
|
2878
|
+
create(
|
|
2879
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Create,
|
|
2880
|
+
options: StreamMethodOptions
|
|
2881
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2882
|
+
create(
|
|
2883
|
+
params?: Params$Resource$Projects$Locations$Agentgateways$Create,
|
|
2884
|
+
options?: MethodOptions
|
|
2885
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
2886
|
+
create(
|
|
2887
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Create,
|
|
2888
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2889
|
+
callback: BodyResponseCallback<Readable>
|
|
2890
|
+
): void;
|
|
2891
|
+
create(
|
|
2892
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Create,
|
|
2893
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
2894
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
2895
|
+
): void;
|
|
2896
|
+
create(
|
|
2897
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Create,
|
|
2898
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
2899
|
+
): void;
|
|
2900
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2901
|
+
create(
|
|
2902
|
+
paramsOrCallback?:
|
|
2903
|
+
| Params$Resource$Projects$Locations$Agentgateways$Create
|
|
2904
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2905
|
+
| BodyResponseCallback<Readable>,
|
|
2906
|
+
optionsOrCallback?:
|
|
2907
|
+
| MethodOptions
|
|
2908
|
+
| StreamMethodOptions
|
|
2909
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2910
|
+
| BodyResponseCallback<Readable>,
|
|
2911
|
+
callback?:
|
|
2912
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2913
|
+
| BodyResponseCallback<Readable>
|
|
2914
|
+
):
|
|
2915
|
+
| void
|
|
2916
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
2917
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2918
|
+
let params = (paramsOrCallback ||
|
|
2919
|
+
{}) as Params$Resource$Projects$Locations$Agentgateways$Create;
|
|
2920
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2921
|
+
|
|
2922
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2923
|
+
callback = paramsOrCallback;
|
|
2924
|
+
params = {} as Params$Resource$Projects$Locations$Agentgateways$Create;
|
|
2925
|
+
options = {};
|
|
2926
|
+
}
|
|
2927
|
+
|
|
2928
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2929
|
+
callback = optionsOrCallback;
|
|
2930
|
+
options = {};
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
const rootUrl =
|
|
2934
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
2935
|
+
const parameters = {
|
|
2936
|
+
options: Object.assign(
|
|
2937
|
+
{
|
|
2938
|
+
url: (rootUrl + '/v1beta1/{+parent}/agentGateways').replace(
|
|
2939
|
+
/([^:]\/)\/+/g,
|
|
2940
|
+
'$1'
|
|
2941
|
+
),
|
|
2942
|
+
method: 'POST',
|
|
2943
|
+
apiVersion: '',
|
|
2944
|
+
},
|
|
2945
|
+
options
|
|
2946
|
+
),
|
|
2947
|
+
params,
|
|
2948
|
+
requiredParams: ['parent'],
|
|
2949
|
+
pathParams: ['parent'],
|
|
2950
|
+
context: this.context,
|
|
2951
|
+
};
|
|
2952
|
+
if (callback) {
|
|
2953
|
+
createAPIRequest<Schema$Operation>(
|
|
2954
|
+
parameters,
|
|
2955
|
+
callback as BodyResponseCallback<unknown>
|
|
2956
|
+
);
|
|
2957
|
+
} else {
|
|
2958
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
2959
|
+
}
|
|
2960
|
+
}
|
|
2961
|
+
|
|
2962
|
+
/**
|
|
2963
|
+
* Deletes a single AgentGateway.
|
|
2964
|
+
* @example
|
|
2965
|
+
* ```js
|
|
2966
|
+
* // Before running the sample:
|
|
2967
|
+
* // - Enable the API at:
|
|
2968
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
2969
|
+
* // - Login into gcloud by running:
|
|
2970
|
+
* // ```sh
|
|
2971
|
+
* // $ gcloud auth application-default login
|
|
2972
|
+
* // ```
|
|
2973
|
+
* // - Install the npm module by running:
|
|
2974
|
+
* // ```sh
|
|
2975
|
+
* // $ npm install googleapis
|
|
2976
|
+
* // ```
|
|
2977
|
+
*
|
|
2978
|
+
* const {google} = require('googleapis');
|
|
2979
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
2980
|
+
*
|
|
2981
|
+
* async function main() {
|
|
2982
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2983
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2984
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2985
|
+
* });
|
|
2986
|
+
*
|
|
2987
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2988
|
+
* const authClient = await auth.getClient();
|
|
2989
|
+
* google.options({auth: authClient});
|
|
2990
|
+
*
|
|
2991
|
+
* // Do the magic
|
|
2992
|
+
* const res = await networkservices.projects.locations.agentGateways.delete({
|
|
2993
|
+
* // Optional. The etag of the AgentGateway to delete.
|
|
2994
|
+
* etag: 'placeholder-value',
|
|
2995
|
+
* // Required. A name of the AgentGateway to delete. Must be in the format `projects/x/locations/x/agentGateways/x`.
|
|
2996
|
+
* name: 'projects/my-project/locations/my-location/agentGateways/my-agentGateway',
|
|
2997
|
+
* });
|
|
2998
|
+
* console.log(res.data);
|
|
2999
|
+
*
|
|
3000
|
+
* // Example response
|
|
3001
|
+
* // {
|
|
3002
|
+
* // "done": false,
|
|
3003
|
+
* // "error": {},
|
|
3004
|
+
* // "metadata": {},
|
|
3005
|
+
* // "name": "my_name",
|
|
3006
|
+
* // "response": {}
|
|
3007
|
+
* // }
|
|
3008
|
+
* }
|
|
3009
|
+
*
|
|
3010
|
+
* main().catch(e => {
|
|
3011
|
+
* console.error(e);
|
|
3012
|
+
* throw e;
|
|
3013
|
+
* });
|
|
3014
|
+
*
|
|
3015
|
+
* ```
|
|
3016
|
+
*
|
|
3017
|
+
* @param params - Parameters for request
|
|
3018
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3019
|
+
* @param callback - Optional callback that handles the response.
|
|
3020
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3021
|
+
*/
|
|
3022
|
+
delete(
|
|
3023
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Delete,
|
|
3024
|
+
options: StreamMethodOptions
|
|
3025
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3026
|
+
delete(
|
|
3027
|
+
params?: Params$Resource$Projects$Locations$Agentgateways$Delete,
|
|
3028
|
+
options?: MethodOptions
|
|
3029
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
3030
|
+
delete(
|
|
3031
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Delete,
|
|
3032
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3033
|
+
callback: BodyResponseCallback<Readable>
|
|
3034
|
+
): void;
|
|
3035
|
+
delete(
|
|
3036
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Delete,
|
|
3037
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3038
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3039
|
+
): void;
|
|
3040
|
+
delete(
|
|
3041
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Delete,
|
|
3042
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3043
|
+
): void;
|
|
3044
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3045
|
+
delete(
|
|
3046
|
+
paramsOrCallback?:
|
|
3047
|
+
| Params$Resource$Projects$Locations$Agentgateways$Delete
|
|
3048
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3049
|
+
| BodyResponseCallback<Readable>,
|
|
3050
|
+
optionsOrCallback?:
|
|
3051
|
+
| MethodOptions
|
|
3052
|
+
| StreamMethodOptions
|
|
3053
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3054
|
+
| BodyResponseCallback<Readable>,
|
|
3055
|
+
callback?:
|
|
3056
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3057
|
+
| BodyResponseCallback<Readable>
|
|
3058
|
+
):
|
|
3059
|
+
| void
|
|
3060
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
3061
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3062
|
+
let params = (paramsOrCallback ||
|
|
3063
|
+
{}) as Params$Resource$Projects$Locations$Agentgateways$Delete;
|
|
3064
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3065
|
+
|
|
3066
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3067
|
+
callback = paramsOrCallback;
|
|
3068
|
+
params = {} as Params$Resource$Projects$Locations$Agentgateways$Delete;
|
|
3069
|
+
options = {};
|
|
3070
|
+
}
|
|
3071
|
+
|
|
3072
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3073
|
+
callback = optionsOrCallback;
|
|
3074
|
+
options = {};
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
const rootUrl =
|
|
3078
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
3079
|
+
const parameters = {
|
|
3080
|
+
options: Object.assign(
|
|
3081
|
+
{
|
|
3082
|
+
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
3083
|
+
method: 'DELETE',
|
|
3084
|
+
apiVersion: '',
|
|
3085
|
+
},
|
|
3086
|
+
options
|
|
3087
|
+
),
|
|
3088
|
+
params,
|
|
3089
|
+
requiredParams: ['name'],
|
|
3090
|
+
pathParams: ['name'],
|
|
3091
|
+
context: this.context,
|
|
3092
|
+
};
|
|
3093
|
+
if (callback) {
|
|
3094
|
+
createAPIRequest<Schema$Operation>(
|
|
3095
|
+
parameters,
|
|
3096
|
+
callback as BodyResponseCallback<unknown>
|
|
3097
|
+
);
|
|
3098
|
+
} else {
|
|
3099
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3100
|
+
}
|
|
3101
|
+
}
|
|
3102
|
+
|
|
3103
|
+
/**
|
|
3104
|
+
* Gets details of a single AgentGateway.
|
|
2309
3105
|
* @example
|
|
2310
3106
|
* ```js
|
|
2311
3107
|
* // Before running the sample:
|
|
@@ -2334,19 +3130,26 @@ export namespace networkservices_v1beta1 {
|
|
|
2334
3130
|
* google.options({auth: authClient});
|
|
2335
3131
|
*
|
|
2336
3132
|
* // Do the magic
|
|
2337
|
-
* const res = await networkservices.projects.locations.get({
|
|
2338
|
-
* //
|
|
2339
|
-
* name: 'projects/my-project/locations/my-location',
|
|
3133
|
+
* const res = await networkservices.projects.locations.agentGateways.get({
|
|
3134
|
+
* // Required. A name of the AgentGateway to get. Must be in the format `projects/x/locations/x/agentGateways/x`.
|
|
3135
|
+
* name: 'projects/my-project/locations/my-location/agentGateways/my-agentGateway',
|
|
2340
3136
|
* });
|
|
2341
3137
|
* console.log(res.data);
|
|
2342
3138
|
*
|
|
2343
3139
|
* // Example response
|
|
2344
3140
|
* // {
|
|
2345
|
-
* // "
|
|
3141
|
+
* // "agentGatewayCard": {},
|
|
3142
|
+
* // "createTime": "my_createTime",
|
|
3143
|
+
* // "description": "my_description",
|
|
3144
|
+
* // "etag": "my_etag",
|
|
3145
|
+
* // "googleManaged": {},
|
|
2346
3146
|
* // "labels": {},
|
|
2347
|
-
* // "
|
|
2348
|
-
* // "
|
|
2349
|
-
* // "
|
|
3147
|
+
* // "name": "my_name",
|
|
3148
|
+
* // "networkConfig": {},
|
|
3149
|
+
* // "protocols": [],
|
|
3150
|
+
* // "registries": [],
|
|
3151
|
+
* // "selfManaged": {},
|
|
3152
|
+
* // "updateTime": "my_updateTime"
|
|
2350
3153
|
* // }
|
|
2351
3154
|
* }
|
|
2352
3155
|
*
|
|
@@ -2363,52 +3166,52 @@ export namespace networkservices_v1beta1 {
|
|
|
2363
3166
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2364
3167
|
*/
|
|
2365
3168
|
get(
|
|
2366
|
-
params: Params$Resource$Projects$Locations$Get,
|
|
3169
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Get,
|
|
2367
3170
|
options: StreamMethodOptions
|
|
2368
3171
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2369
3172
|
get(
|
|
2370
|
-
params?: Params$Resource$Projects$Locations$Get,
|
|
3173
|
+
params?: Params$Resource$Projects$Locations$Agentgateways$Get,
|
|
2371
3174
|
options?: MethodOptions
|
|
2372
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
3175
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$AgentGateway>>;
|
|
2373
3176
|
get(
|
|
2374
|
-
params: Params$Resource$Projects$Locations$Get,
|
|
3177
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Get,
|
|
2375
3178
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2376
3179
|
callback: BodyResponseCallback<Readable>
|
|
2377
3180
|
): void;
|
|
2378
3181
|
get(
|
|
2379
|
-
params: Params$Resource$Projects$Locations$Get,
|
|
2380
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
2381
|
-
callback: BodyResponseCallback<Schema$
|
|
3182
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Get,
|
|
3183
|
+
options: MethodOptions | BodyResponseCallback<Schema$AgentGateway>,
|
|
3184
|
+
callback: BodyResponseCallback<Schema$AgentGateway>
|
|
2382
3185
|
): void;
|
|
2383
3186
|
get(
|
|
2384
|
-
params: Params$Resource$Projects$Locations$Get,
|
|
2385
|
-
callback: BodyResponseCallback<Schema$
|
|
3187
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Get,
|
|
3188
|
+
callback: BodyResponseCallback<Schema$AgentGateway>
|
|
2386
3189
|
): void;
|
|
2387
|
-
get(callback: BodyResponseCallback<Schema$
|
|
3190
|
+
get(callback: BodyResponseCallback<Schema$AgentGateway>): void;
|
|
2388
3191
|
get(
|
|
2389
3192
|
paramsOrCallback?:
|
|
2390
|
-
| Params$Resource$Projects$Locations$Get
|
|
2391
|
-
| BodyResponseCallback<Schema$
|
|
3193
|
+
| Params$Resource$Projects$Locations$Agentgateways$Get
|
|
3194
|
+
| BodyResponseCallback<Schema$AgentGateway>
|
|
2392
3195
|
| BodyResponseCallback<Readable>,
|
|
2393
3196
|
optionsOrCallback?:
|
|
2394
3197
|
| MethodOptions
|
|
2395
3198
|
| StreamMethodOptions
|
|
2396
|
-
| BodyResponseCallback<Schema$
|
|
3199
|
+
| BodyResponseCallback<Schema$AgentGateway>
|
|
2397
3200
|
| BodyResponseCallback<Readable>,
|
|
2398
3201
|
callback?:
|
|
2399
|
-
| BodyResponseCallback<Schema$
|
|
3202
|
+
| BodyResponseCallback<Schema$AgentGateway>
|
|
2400
3203
|
| BodyResponseCallback<Readable>
|
|
2401
3204
|
):
|
|
2402
3205
|
| void
|
|
2403
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
3206
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$AgentGateway>>
|
|
2404
3207
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2405
3208
|
let params = (paramsOrCallback ||
|
|
2406
|
-
{}) as Params$Resource$Projects$Locations$Get;
|
|
3209
|
+
{}) as Params$Resource$Projects$Locations$Agentgateways$Get;
|
|
2407
3210
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2408
3211
|
|
|
2409
3212
|
if (typeof paramsOrCallback === 'function') {
|
|
2410
3213
|
callback = paramsOrCallback;
|
|
2411
|
-
params = {} as Params$Resource$Projects$Locations$Get;
|
|
3214
|
+
params = {} as Params$Resource$Projects$Locations$Agentgateways$Get;
|
|
2412
3215
|
options = {};
|
|
2413
3216
|
}
|
|
2414
3217
|
|
|
@@ -2434,17 +3237,17 @@ export namespace networkservices_v1beta1 {
|
|
|
2434
3237
|
context: this.context,
|
|
2435
3238
|
};
|
|
2436
3239
|
if (callback) {
|
|
2437
|
-
createAPIRequest<Schema$
|
|
3240
|
+
createAPIRequest<Schema$AgentGateway>(
|
|
2438
3241
|
parameters,
|
|
2439
3242
|
callback as BodyResponseCallback<unknown>
|
|
2440
3243
|
);
|
|
2441
3244
|
} else {
|
|
2442
|
-
return createAPIRequest<Schema$
|
|
3245
|
+
return createAPIRequest<Schema$AgentGateway>(parameters);
|
|
2443
3246
|
}
|
|
2444
3247
|
}
|
|
2445
3248
|
|
|
2446
3249
|
/**
|
|
2447
|
-
* Lists
|
|
3250
|
+
* Lists AgentGateways in a given project and location.
|
|
2448
3251
|
* @example
|
|
2449
3252
|
* ```js
|
|
2450
3253
|
* // Before running the sample:
|
|
@@ -2473,24 +3276,23 @@ export namespace networkservices_v1beta1 {
|
|
|
2473
3276
|
* google.options({auth: authClient});
|
|
2474
3277
|
*
|
|
2475
3278
|
* // Do the magic
|
|
2476
|
-
* const res = await networkservices.projects.locations.list({
|
|
2477
|
-
* // Optional.
|
|
2478
|
-
* extraLocationTypes: 'placeholder-value',
|
|
2479
|
-
* // 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).
|
|
2480
|
-
* filter: 'placeholder-value',
|
|
2481
|
-
* // The resource that owns the locations collection, if applicable.
|
|
2482
|
-
* name: 'projects/my-project',
|
|
2483
|
-
* // The maximum number of results to return. If not set, the service selects a default.
|
|
3279
|
+
* const res = await networkservices.projects.locations.agentGateways.list({
|
|
3280
|
+
* // Optional. Maximum number of AgentGateways to return per call.
|
|
2484
3281
|
* pageSize: 'placeholder-value',
|
|
2485
|
-
* //
|
|
3282
|
+
* // Optional. The value returned by the last `ListAgentGatewaysResponse` Indicates that this is a continuation of a prior `ListAgentGateways` call, and that the system should return the next page of data.
|
|
2486
3283
|
* pageToken: 'placeholder-value',
|
|
3284
|
+
* // Required. The project and location from which the AgentGateways should be listed, specified in the format `projects/x/locations/x`.
|
|
3285
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
3286
|
+
* // Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
|
|
3287
|
+
* returnPartialSuccess: 'placeholder-value',
|
|
2487
3288
|
* });
|
|
2488
3289
|
* console.log(res.data);
|
|
2489
3290
|
*
|
|
2490
3291
|
* // Example response
|
|
2491
3292
|
* // {
|
|
2492
|
-
* // "
|
|
2493
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
3293
|
+
* // "agentGateways": [],
|
|
3294
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3295
|
+
* // "unreachable": []
|
|
2494
3296
|
* // }
|
|
2495
3297
|
* }
|
|
2496
3298
|
*
|
|
@@ -2507,54 +3309,56 @@ export namespace networkservices_v1beta1 {
|
|
|
2507
3309
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2508
3310
|
*/
|
|
2509
3311
|
list(
|
|
2510
|
-
params: Params$Resource$Projects$Locations$List,
|
|
3312
|
+
params: Params$Resource$Projects$Locations$Agentgateways$List,
|
|
2511
3313
|
options: StreamMethodOptions
|
|
2512
3314
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2513
3315
|
list(
|
|
2514
|
-
params?: Params$Resource$Projects$Locations$List,
|
|
3316
|
+
params?: Params$Resource$Projects$Locations$Agentgateways$List,
|
|
2515
3317
|
options?: MethodOptions
|
|
2516
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
3318
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListAgentGatewaysResponse>>;
|
|
2517
3319
|
list(
|
|
2518
|
-
params: Params$Resource$Projects$Locations$List,
|
|
3320
|
+
params: Params$Resource$Projects$Locations$Agentgateways$List,
|
|
2519
3321
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2520
3322
|
callback: BodyResponseCallback<Readable>
|
|
2521
3323
|
): void;
|
|
2522
3324
|
list(
|
|
2523
|
-
params: Params$Resource$Projects$Locations$List,
|
|
3325
|
+
params: Params$Resource$Projects$Locations$Agentgateways$List,
|
|
2524
3326
|
options:
|
|
2525
3327
|
| MethodOptions
|
|
2526
|
-
| BodyResponseCallback<Schema$
|
|
2527
|
-
callback: BodyResponseCallback<Schema$
|
|
3328
|
+
| BodyResponseCallback<Schema$ListAgentGatewaysResponse>,
|
|
3329
|
+
callback: BodyResponseCallback<Schema$ListAgentGatewaysResponse>
|
|
2528
3330
|
): void;
|
|
2529
3331
|
list(
|
|
2530
|
-
params: Params$Resource$Projects$Locations$List,
|
|
2531
|
-
callback: BodyResponseCallback<Schema$
|
|
3332
|
+
params: Params$Resource$Projects$Locations$Agentgateways$List,
|
|
3333
|
+
callback: BodyResponseCallback<Schema$ListAgentGatewaysResponse>
|
|
3334
|
+
): void;
|
|
3335
|
+
list(
|
|
3336
|
+
callback: BodyResponseCallback<Schema$ListAgentGatewaysResponse>
|
|
2532
3337
|
): void;
|
|
2533
|
-
list(callback: BodyResponseCallback<Schema$ListLocationsResponse>): void;
|
|
2534
3338
|
list(
|
|
2535
3339
|
paramsOrCallback?:
|
|
2536
|
-
| Params$Resource$Projects$Locations$List
|
|
2537
|
-
| BodyResponseCallback<Schema$
|
|
3340
|
+
| Params$Resource$Projects$Locations$Agentgateways$List
|
|
3341
|
+
| BodyResponseCallback<Schema$ListAgentGatewaysResponse>
|
|
2538
3342
|
| BodyResponseCallback<Readable>,
|
|
2539
3343
|
optionsOrCallback?:
|
|
2540
3344
|
| MethodOptions
|
|
2541
3345
|
| StreamMethodOptions
|
|
2542
|
-
| BodyResponseCallback<Schema$
|
|
3346
|
+
| BodyResponseCallback<Schema$ListAgentGatewaysResponse>
|
|
2543
3347
|
| BodyResponseCallback<Readable>,
|
|
2544
3348
|
callback?:
|
|
2545
|
-
| BodyResponseCallback<Schema$
|
|
3349
|
+
| BodyResponseCallback<Schema$ListAgentGatewaysResponse>
|
|
2546
3350
|
| BodyResponseCallback<Readable>
|
|
2547
3351
|
):
|
|
2548
3352
|
| void
|
|
2549
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
3353
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListAgentGatewaysResponse>>
|
|
2550
3354
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2551
3355
|
let params = (paramsOrCallback ||
|
|
2552
|
-
{}) as Params$Resource$Projects$Locations$List;
|
|
3356
|
+
{}) as Params$Resource$Projects$Locations$Agentgateways$List;
|
|
2553
3357
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2554
3358
|
|
|
2555
3359
|
if (typeof paramsOrCallback === 'function') {
|
|
2556
3360
|
callback = paramsOrCallback;
|
|
2557
|
-
params = {} as Params$Resource$Projects$Locations$List;
|
|
3361
|
+
params = {} as Params$Resource$Projects$Locations$Agentgateways$List;
|
|
2558
3362
|
options = {};
|
|
2559
3363
|
}
|
|
2560
3364
|
|
|
@@ -2568,7 +3372,7 @@ export namespace networkservices_v1beta1 {
|
|
|
2568
3372
|
const parameters = {
|
|
2569
3373
|
options: Object.assign(
|
|
2570
3374
|
{
|
|
2571
|
-
url: (rootUrl + '/v1beta1/{+
|
|
3375
|
+
url: (rootUrl + '/v1beta1/{+parent}/agentGateways').replace(
|
|
2572
3376
|
/([^:]\/)\/+/g,
|
|
2573
3377
|
'$1'
|
|
2574
3378
|
),
|
|
@@ -2578,48 +3382,244 @@ export namespace networkservices_v1beta1 {
|
|
|
2578
3382
|
options
|
|
2579
3383
|
),
|
|
2580
3384
|
params,
|
|
3385
|
+
requiredParams: ['parent'],
|
|
3386
|
+
pathParams: ['parent'],
|
|
3387
|
+
context: this.context,
|
|
3388
|
+
};
|
|
3389
|
+
if (callback) {
|
|
3390
|
+
createAPIRequest<Schema$ListAgentGatewaysResponse>(
|
|
3391
|
+
parameters,
|
|
3392
|
+
callback as BodyResponseCallback<unknown>
|
|
3393
|
+
);
|
|
3394
|
+
} else {
|
|
3395
|
+
return createAPIRequest<Schema$ListAgentGatewaysResponse>(parameters);
|
|
3396
|
+
}
|
|
3397
|
+
}
|
|
3398
|
+
|
|
3399
|
+
/**
|
|
3400
|
+
* Updates the parameters of a single AgentGateway.
|
|
3401
|
+
* @example
|
|
3402
|
+
* ```js
|
|
3403
|
+
* // Before running the sample:
|
|
3404
|
+
* // - Enable the API at:
|
|
3405
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
3406
|
+
* // - Login into gcloud by running:
|
|
3407
|
+
* // ```sh
|
|
3408
|
+
* // $ gcloud auth application-default login
|
|
3409
|
+
* // ```
|
|
3410
|
+
* // - Install the npm module by running:
|
|
3411
|
+
* // ```sh
|
|
3412
|
+
* // $ npm install googleapis
|
|
3413
|
+
* // ```
|
|
3414
|
+
*
|
|
3415
|
+
* const {google} = require('googleapis');
|
|
3416
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
3417
|
+
*
|
|
3418
|
+
* async function main() {
|
|
3419
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3420
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3421
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3422
|
+
* });
|
|
3423
|
+
*
|
|
3424
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3425
|
+
* const authClient = await auth.getClient();
|
|
3426
|
+
* google.options({auth: authClient});
|
|
3427
|
+
*
|
|
3428
|
+
* // Do the magic
|
|
3429
|
+
* const res = await networkservices.projects.locations.agentGateways.patch({
|
|
3430
|
+
* // Identifier. Name of the AgentGateway resource. It matches pattern `projects/x/locations/x/agentGateways/`.
|
|
3431
|
+
* name: 'projects/my-project/locations/my-location/agentGateways/my-agentGateway',
|
|
3432
|
+
* // Optional. Field mask is used to specify the fields to be overwritten in the AgentGateway resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
|
|
3433
|
+
* updateMask: 'placeholder-value',
|
|
3434
|
+
*
|
|
3435
|
+
* // Request body metadata
|
|
3436
|
+
* requestBody: {
|
|
3437
|
+
* // request body parameters
|
|
3438
|
+
* // {
|
|
3439
|
+
* // "agentGatewayCard": {},
|
|
3440
|
+
* // "createTime": "my_createTime",
|
|
3441
|
+
* // "description": "my_description",
|
|
3442
|
+
* // "etag": "my_etag",
|
|
3443
|
+
* // "googleManaged": {},
|
|
3444
|
+
* // "labels": {},
|
|
3445
|
+
* // "name": "my_name",
|
|
3446
|
+
* // "networkConfig": {},
|
|
3447
|
+
* // "protocols": [],
|
|
3448
|
+
* // "registries": [],
|
|
3449
|
+
* // "selfManaged": {},
|
|
3450
|
+
* // "updateTime": "my_updateTime"
|
|
3451
|
+
* // }
|
|
3452
|
+
* },
|
|
3453
|
+
* });
|
|
3454
|
+
* console.log(res.data);
|
|
3455
|
+
*
|
|
3456
|
+
* // Example response
|
|
3457
|
+
* // {
|
|
3458
|
+
* // "done": false,
|
|
3459
|
+
* // "error": {},
|
|
3460
|
+
* // "metadata": {},
|
|
3461
|
+
* // "name": "my_name",
|
|
3462
|
+
* // "response": {}
|
|
3463
|
+
* // }
|
|
3464
|
+
* }
|
|
3465
|
+
*
|
|
3466
|
+
* main().catch(e => {
|
|
3467
|
+
* console.error(e);
|
|
3468
|
+
* throw e;
|
|
3469
|
+
* });
|
|
3470
|
+
*
|
|
3471
|
+
* ```
|
|
3472
|
+
*
|
|
3473
|
+
* @param params - Parameters for request
|
|
3474
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3475
|
+
* @param callback - Optional callback that handles the response.
|
|
3476
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3477
|
+
*/
|
|
3478
|
+
patch(
|
|
3479
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Patch,
|
|
3480
|
+
options: StreamMethodOptions
|
|
3481
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3482
|
+
patch(
|
|
3483
|
+
params?: Params$Resource$Projects$Locations$Agentgateways$Patch,
|
|
3484
|
+
options?: MethodOptions
|
|
3485
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
3486
|
+
patch(
|
|
3487
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Patch,
|
|
3488
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3489
|
+
callback: BodyResponseCallback<Readable>
|
|
3490
|
+
): void;
|
|
3491
|
+
patch(
|
|
3492
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Patch,
|
|
3493
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3494
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3495
|
+
): void;
|
|
3496
|
+
patch(
|
|
3497
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Patch,
|
|
3498
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3499
|
+
): void;
|
|
3500
|
+
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3501
|
+
patch(
|
|
3502
|
+
paramsOrCallback?:
|
|
3503
|
+
| Params$Resource$Projects$Locations$Agentgateways$Patch
|
|
3504
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3505
|
+
| BodyResponseCallback<Readable>,
|
|
3506
|
+
optionsOrCallback?:
|
|
3507
|
+
| MethodOptions
|
|
3508
|
+
| StreamMethodOptions
|
|
3509
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3510
|
+
| BodyResponseCallback<Readable>,
|
|
3511
|
+
callback?:
|
|
3512
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3513
|
+
| BodyResponseCallback<Readable>
|
|
3514
|
+
):
|
|
3515
|
+
| void
|
|
3516
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
3517
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3518
|
+
let params = (paramsOrCallback ||
|
|
3519
|
+
{}) as Params$Resource$Projects$Locations$Agentgateways$Patch;
|
|
3520
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3521
|
+
|
|
3522
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3523
|
+
callback = paramsOrCallback;
|
|
3524
|
+
params = {} as Params$Resource$Projects$Locations$Agentgateways$Patch;
|
|
3525
|
+
options = {};
|
|
3526
|
+
}
|
|
3527
|
+
|
|
3528
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3529
|
+
callback = optionsOrCallback;
|
|
3530
|
+
options = {};
|
|
3531
|
+
}
|
|
3532
|
+
|
|
3533
|
+
const rootUrl =
|
|
3534
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
3535
|
+
const parameters = {
|
|
3536
|
+
options: Object.assign(
|
|
3537
|
+
{
|
|
3538
|
+
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
3539
|
+
method: 'PATCH',
|
|
3540
|
+
apiVersion: '',
|
|
3541
|
+
},
|
|
3542
|
+
options
|
|
3543
|
+
),
|
|
3544
|
+
params,
|
|
2581
3545
|
requiredParams: ['name'],
|
|
2582
3546
|
pathParams: ['name'],
|
|
2583
3547
|
context: this.context,
|
|
2584
3548
|
};
|
|
2585
3549
|
if (callback) {
|
|
2586
|
-
createAPIRequest<Schema$
|
|
3550
|
+
createAPIRequest<Schema$Operation>(
|
|
2587
3551
|
parameters,
|
|
2588
3552
|
callback as BodyResponseCallback<unknown>
|
|
2589
3553
|
);
|
|
2590
3554
|
} else {
|
|
2591
|
-
return createAPIRequest<Schema$
|
|
3555
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
2592
3556
|
}
|
|
2593
3557
|
}
|
|
2594
3558
|
}
|
|
2595
3559
|
|
|
2596
|
-
export interface Params$Resource$Projects$Locations$
|
|
3560
|
+
export interface Params$Resource$Projects$Locations$Agentgateways$Create extends StandardParameters {
|
|
2597
3561
|
/**
|
|
2598
|
-
*
|
|
3562
|
+
* Required. Short name of the AgentGateway resource to be created.
|
|
2599
3563
|
*/
|
|
2600
|
-
|
|
3564
|
+
agentGatewayId?: string;
|
|
3565
|
+
/**
|
|
3566
|
+
* Required. The parent resource of the AgentGateway. Must be in the format `projects/x/locations/x`.
|
|
3567
|
+
*/
|
|
3568
|
+
parent?: string;
|
|
3569
|
+
|
|
3570
|
+
/**
|
|
3571
|
+
* Request body metadata
|
|
3572
|
+
*/
|
|
3573
|
+
requestBody?: Schema$AgentGateway;
|
|
2601
3574
|
}
|
|
2602
|
-
export interface Params$Resource$Projects$Locations$
|
|
3575
|
+
export interface Params$Resource$Projects$Locations$Agentgateways$Delete extends StandardParameters {
|
|
2603
3576
|
/**
|
|
2604
|
-
* Optional.
|
|
3577
|
+
* Optional. The etag of the AgentGateway to delete.
|
|
2605
3578
|
*/
|
|
2606
|
-
|
|
3579
|
+
etag?: string;
|
|
2607
3580
|
/**
|
|
2608
|
-
* A
|
|
3581
|
+
* Required. A name of the AgentGateway to delete. Must be in the format `projects/x/locations/x/agentGateways/x`.
|
|
2609
3582
|
*/
|
|
2610
|
-
|
|
3583
|
+
name?: string;
|
|
3584
|
+
}
|
|
3585
|
+
export interface Params$Resource$Projects$Locations$Agentgateways$Get extends StandardParameters {
|
|
2611
3586
|
/**
|
|
2612
|
-
*
|
|
3587
|
+
* Required. A name of the AgentGateway to get. Must be in the format `projects/x/locations/x/agentGateways/x`.
|
|
2613
3588
|
*/
|
|
2614
3589
|
name?: string;
|
|
3590
|
+
}
|
|
3591
|
+
export interface Params$Resource$Projects$Locations$Agentgateways$List extends StandardParameters {
|
|
2615
3592
|
/**
|
|
2616
|
-
*
|
|
3593
|
+
* Optional. Maximum number of AgentGateways to return per call.
|
|
2617
3594
|
*/
|
|
2618
3595
|
pageSize?: number;
|
|
2619
3596
|
/**
|
|
2620
|
-
*
|
|
3597
|
+
* Optional. The value returned by the last `ListAgentGatewaysResponse` Indicates that this is a continuation of a prior `ListAgentGateways` call, and that the system should return the next page of data.
|
|
2621
3598
|
*/
|
|
2622
3599
|
pageToken?: string;
|
|
3600
|
+
/**
|
|
3601
|
+
* Required. The project and location from which the AgentGateways should be listed, specified in the format `projects/x/locations/x`.
|
|
3602
|
+
*/
|
|
3603
|
+
parent?: string;
|
|
3604
|
+
/**
|
|
3605
|
+
* Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.
|
|
3606
|
+
*/
|
|
3607
|
+
returnPartialSuccess?: boolean;
|
|
3608
|
+
}
|
|
3609
|
+
export interface Params$Resource$Projects$Locations$Agentgateways$Patch extends StandardParameters {
|
|
3610
|
+
/**
|
|
3611
|
+
* Identifier. Name of the AgentGateway resource. It matches pattern `projects/x/locations/x/agentGateways/`.
|
|
3612
|
+
*/
|
|
3613
|
+
name?: string;
|
|
3614
|
+
/**
|
|
3615
|
+
* Optional. Field mask is used to specify the fields to be overwritten in the AgentGateway resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
|
|
3616
|
+
*/
|
|
3617
|
+
updateMask?: string;
|
|
3618
|
+
|
|
3619
|
+
/**
|
|
3620
|
+
* Request body metadata
|
|
3621
|
+
*/
|
|
3622
|
+
requestBody?: Schema$AgentGateway;
|
|
2623
3623
|
}
|
|
2624
3624
|
|
|
2625
3625
|
export class Resource$Projects$Locations$Authzextensions {
|
|
@@ -2674,6 +3674,7 @@ export namespace networkservices_v1beta1 {
|
|
|
2674
3674
|
* // "createTime": "my_createTime",
|
|
2675
3675
|
* // "description": "my_description",
|
|
2676
3676
|
* // "failOpen": false,
|
|
3677
|
+
* // "forwardAttributes": [],
|
|
2677
3678
|
* // "forwardHeaders": [],
|
|
2678
3679
|
* // "labels": {},
|
|
2679
3680
|
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
@@ -2979,6 +3980,7 @@ export namespace networkservices_v1beta1 {
|
|
|
2979
3980
|
* // "createTime": "my_createTime",
|
|
2980
3981
|
* // "description": "my_description",
|
|
2981
3982
|
* // "failOpen": false,
|
|
3983
|
+
* // "forwardAttributes": [],
|
|
2982
3984
|
* // "forwardHeaders": [],
|
|
2983
3985
|
* // "labels": {},
|
|
2984
3986
|
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
@@ -3282,6 +4284,7 @@ export namespace networkservices_v1beta1 {
|
|
|
3282
4284
|
* // "createTime": "my_createTime",
|
|
3283
4285
|
* // "description": "my_description",
|
|
3284
4286
|
* // "failOpen": false,
|
|
4287
|
+
* // "forwardAttributes": [],
|
|
3285
4288
|
* // "forwardHeaders": [],
|
|
3286
4289
|
* // "labels": {},
|
|
3287
4290
|
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
@@ -4359,6 +5362,8 @@ export namespace networkservices_v1beta1 {
|
|
|
4359
5362
|
* // request body parameters
|
|
4360
5363
|
* // {
|
|
4361
5364
|
* // "addresses": [],
|
|
5365
|
+
* // "allPorts": false,
|
|
5366
|
+
* // "allowGlobalAccess": false,
|
|
4362
5367
|
* // "certificateUrls": [],
|
|
4363
5368
|
* // "createTime": "my_createTime",
|
|
4364
5369
|
* // "description": "my_description",
|
|
@@ -4665,6 +5670,8 @@ export namespace networkservices_v1beta1 {
|
|
|
4665
5670
|
* // Example response
|
|
4666
5671
|
* // {
|
|
4667
5672
|
* // "addresses": [],
|
|
5673
|
+
* // "allPorts": false,
|
|
5674
|
+
* // "allowGlobalAccess": false,
|
|
4668
5675
|
* // "certificateUrls": [],
|
|
4669
5676
|
* // "createTime": "my_createTime",
|
|
4670
5677
|
* // "description": "my_description",
|
|
@@ -4965,6 +5972,8 @@ export namespace networkservices_v1beta1 {
|
|
|
4965
5972
|
* // request body parameters
|
|
4966
5973
|
* // {
|
|
4967
5974
|
* // "addresses": [],
|
|
5975
|
+
* // "allPorts": false,
|
|
5976
|
+
* // "allowGlobalAccess": false,
|
|
4968
5977
|
* // "certificateUrls": [],
|
|
4969
5978
|
* // "createTime": "my_createTime",
|
|
4970
5979
|
* // "description": "my_description",
|
|
@@ -6328,6 +7337,8 @@ export namespace networkservices_v1beta1 {
|
|
|
6328
7337
|
* httpRouteId: 'placeholder-value',
|
|
6329
7338
|
* // Required. The parent resource of the HttpRoute. Must be in the format `projects/x/locations/x`.
|
|
6330
7339
|
* parent: 'projects/my-project/locations/my-location',
|
|
7340
|
+
* // Optional. Idempotent request UUID.
|
|
7341
|
+
* requestId: 'placeholder-value',
|
|
6331
7342
|
*
|
|
6332
7343
|
* // Request body metadata
|
|
6333
7344
|
* requestBody: {
|
|
@@ -6768,6 +7779,8 @@ export namespace networkservices_v1beta1 {
|
|
|
6768
7779
|
*
|
|
6769
7780
|
* // Do the magic
|
|
6770
7781
|
* const res = await networkservices.projects.locations.httpRoutes.list({
|
|
7782
|
+
* // Optional. Filter expression to restrict the list.
|
|
7783
|
+
* filter: 'placeholder-value',
|
|
6771
7784
|
* // Maximum number of HttpRoutes to return per call.
|
|
6772
7785
|
* pageSize: 'placeholder-value',
|
|
6773
7786
|
* // The value returned by the last `ListHttpRoutesResponse` Indicates that this is a continuation of a prior `ListHttpRoutes` call, and that the system should return the next page of data.
|
|
@@ -7053,6 +8066,10 @@ export namespace networkservices_v1beta1 {
|
|
|
7053
8066
|
* Required. The parent resource of the HttpRoute. Must be in the format `projects/x/locations/x`.
|
|
7054
8067
|
*/
|
|
7055
8068
|
parent?: string;
|
|
8069
|
+
/**
|
|
8070
|
+
* Optional. Idempotent request UUID.
|
|
8071
|
+
*/
|
|
8072
|
+
requestId?: string;
|
|
7056
8073
|
|
|
7057
8074
|
/**
|
|
7058
8075
|
* Request body metadata
|
|
@@ -7072,6 +8089,10 @@ export namespace networkservices_v1beta1 {
|
|
|
7072
8089
|
name?: string;
|
|
7073
8090
|
}
|
|
7074
8091
|
export interface Params$Resource$Projects$Locations$Httproutes$List extends StandardParameters {
|
|
8092
|
+
/**
|
|
8093
|
+
* Optional. Filter expression to restrict the list.
|
|
8094
|
+
*/
|
|
8095
|
+
filter?: string;
|
|
7075
8096
|
/**
|
|
7076
8097
|
* Maximum number of HttpRoutes to return per call.
|
|
7077
8098
|
*/
|
|
@@ -14736,6 +15757,7 @@ export namespace networkservices_v1beta1 {
|
|
|
14736
15757
|
* // "name": "my_name",
|
|
14737
15758
|
* // "rules": [],
|
|
14738
15759
|
* // "selfLink": "my_selfLink",
|
|
15760
|
+
* // "targetProxies": [],
|
|
14739
15761
|
* // "updateTime": "my_updateTime"
|
|
14740
15762
|
* // }
|
|
14741
15763
|
* },
|
|
@@ -15033,6 +16055,7 @@ export namespace networkservices_v1beta1 {
|
|
|
15033
16055
|
* // "name": "my_name",
|
|
15034
16056
|
* // "rules": [],
|
|
15035
16057
|
* // "selfLink": "my_selfLink",
|
|
16058
|
+
* // "targetProxies": [],
|
|
15036
16059
|
* // "updateTime": "my_updateTime"
|
|
15037
16060
|
* // }
|
|
15038
16061
|
* }
|
|
@@ -15326,6 +16349,7 @@ export namespace networkservices_v1beta1 {
|
|
|
15326
16349
|
* // "name": "my_name",
|
|
15327
16350
|
* // "rules": [],
|
|
15328
16351
|
* // "selfLink": "my_selfLink",
|
|
16352
|
+
* // "targetProxies": [],
|
|
15329
16353
|
* // "updateTime": "my_updateTime"
|
|
15330
16354
|
* // }
|
|
15331
16355
|
* },
|