@googleapis/networkservices 32.1.0 → 32.2.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 +8 -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 +642 -6
- 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 +1101 -73
package/v1beta1.ts
CHANGED
|
@@ -124,12 +124,143 @@ 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
|
+
/**
|
|
254
|
+
* Optional. List of supported Google Cloud networking proxies in the Project and Location. resource_uris is mutually exclusive with resource_uri.
|
|
255
|
+
*/
|
|
256
|
+
resourceUris?: string[] | null;
|
|
257
|
+
}
|
|
127
258
|
/**
|
|
128
259
|
* `AuthzExtension` is a resource that allows traffic forwarding to a callout backend service to make an authorization decision.
|
|
129
260
|
*/
|
|
130
261
|
export interface Schema$AuthzExtension {
|
|
131
262
|
/**
|
|
132
|
-
*
|
|
263
|
+
* 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
264
|
*/
|
|
134
265
|
authority?: string | null;
|
|
135
266
|
/**
|
|
@@ -144,6 +275,10 @@ export namespace networkservices_v1beta1 {
|
|
|
144
275
|
* 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
276
|
*/
|
|
146
277
|
failOpen?: boolean | null;
|
|
278
|
+
/**
|
|
279
|
+
* 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.
|
|
280
|
+
*/
|
|
281
|
+
forwardAttributes?: string[] | null;
|
|
147
282
|
/**
|
|
148
283
|
* 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
284
|
*/
|
|
@@ -153,7 +288,7 @@ export namespace networkservices_v1beta1 {
|
|
|
153
288
|
*/
|
|
154
289
|
labels?: {[key: string]: string} | null;
|
|
155
290
|
/**
|
|
156
|
-
*
|
|
291
|
+
* 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
292
|
*/
|
|
158
293
|
loadBalancingScheme?: string | null;
|
|
159
294
|
/**
|
|
@@ -284,6 +419,10 @@ export namespace networkservices_v1beta1 {
|
|
|
284
419
|
* 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
420
|
*/
|
|
286
421
|
failOpen?: boolean | null;
|
|
422
|
+
/**
|
|
423
|
+
* 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.
|
|
424
|
+
*/
|
|
425
|
+
forwardAttributes?: string[] | null;
|
|
287
426
|
/**
|
|
288
427
|
* 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
428
|
*/
|
|
@@ -297,7 +436,7 @@ export namespace networkservices_v1beta1 {
|
|
|
297
436
|
*/
|
|
298
437
|
name?: string | null;
|
|
299
438
|
/**
|
|
300
|
-
* Optional. When set to `
|
|
439
|
+
* 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
440
|
*/
|
|
302
441
|
observabilityMode?: boolean | null;
|
|
303
442
|
/**
|
|
@@ -338,6 +477,14 @@ export namespace networkservices_v1beta1 {
|
|
|
338
477
|
* 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
478
|
*/
|
|
340
479
|
addresses?: string[] | null;
|
|
480
|
+
/**
|
|
481
|
+
* 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.
|
|
482
|
+
*/
|
|
483
|
+
allowGlobalAccess?: boolean | null;
|
|
484
|
+
/**
|
|
485
|
+
* 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'.
|
|
486
|
+
*/
|
|
487
|
+
allPorts?: boolean | null;
|
|
341
488
|
/**
|
|
342
489
|
* 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
490
|
*/
|
|
@@ -1231,6 +1378,23 @@ export namespace networkservices_v1beta1 {
|
|
|
1231
1378
|
*/
|
|
1232
1379
|
updateTime?: string | null;
|
|
1233
1380
|
}
|
|
1381
|
+
/**
|
|
1382
|
+
* Response returned by the ListAgentGateways method.
|
|
1383
|
+
*/
|
|
1384
|
+
export interface Schema$ListAgentGatewaysResponse {
|
|
1385
|
+
/**
|
|
1386
|
+
* List of AgentGateway resources.
|
|
1387
|
+
*/
|
|
1388
|
+
agentGateways?: Schema$AgentGateway[];
|
|
1389
|
+
/**
|
|
1390
|
+
* 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`.
|
|
1391
|
+
*/
|
|
1392
|
+
nextPageToken?: string | null;
|
|
1393
|
+
/**
|
|
1394
|
+
* Unreachable resources. Populated when the request attempts to list all resources across all supported locations, while some locations are temporarily unavailable.
|
|
1395
|
+
*/
|
|
1396
|
+
unreachable?: string[] | null;
|
|
1397
|
+
}
|
|
1234
1398
|
/**
|
|
1235
1399
|
* Message for response to listing `AuthzExtension` resources.
|
|
1236
1400
|
*/
|
|
@@ -2008,6 +2172,10 @@ export namespace networkservices_v1beta1 {
|
|
|
2008
2172
|
* Output only. Server-defined URL of this resource
|
|
2009
2173
|
*/
|
|
2010
2174
|
selfLink?: string | null;
|
|
2175
|
+
/**
|
|
2176
|
+
* 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/`
|
|
2177
|
+
*/
|
|
2178
|
+
targetProxies?: string[] | null;
|
|
2011
2179
|
/**
|
|
2012
2180
|
* Output only. The timestamp when the resource was updated.
|
|
2013
2181
|
*/
|
|
@@ -2247,6 +2415,7 @@ export namespace networkservices_v1beta1 {
|
|
|
2247
2415
|
|
|
2248
2416
|
export class Resource$Projects$Locations {
|
|
2249
2417
|
context: APIRequestContext;
|
|
2418
|
+
agentGateways: Resource$Projects$Locations$Agentgateways;
|
|
2250
2419
|
authzExtensions: Resource$Projects$Locations$Authzextensions;
|
|
2251
2420
|
endpointPolicies: Resource$Projects$Locations$Endpointpolicies;
|
|
2252
2421
|
gateways: Resource$Projects$Locations$Gateways;
|
|
@@ -2265,6 +2434,9 @@ export namespace networkservices_v1beta1 {
|
|
|
2265
2434
|
wasmPlugins: Resource$Projects$Locations$Wasmplugins;
|
|
2266
2435
|
constructor(context: APIRequestContext) {
|
|
2267
2436
|
this.context = context;
|
|
2437
|
+
this.agentGateways = new Resource$Projects$Locations$Agentgateways(
|
|
2438
|
+
this.context
|
|
2439
|
+
);
|
|
2268
2440
|
this.authzExtensions = new Resource$Projects$Locations$Authzextensions(
|
|
2269
2441
|
this.context
|
|
2270
2442
|
);
|
|
@@ -2305,7 +2477,635 @@ export namespace networkservices_v1beta1 {
|
|
|
2305
2477
|
}
|
|
2306
2478
|
|
|
2307
2479
|
/**
|
|
2308
|
-
* Gets information about a location.
|
|
2480
|
+
* Gets information about a location.
|
|
2481
|
+
* @example
|
|
2482
|
+
* ```js
|
|
2483
|
+
* // Before running the sample:
|
|
2484
|
+
* // - Enable the API at:
|
|
2485
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
2486
|
+
* // - Login into gcloud by running:
|
|
2487
|
+
* // ```sh
|
|
2488
|
+
* // $ gcloud auth application-default login
|
|
2489
|
+
* // ```
|
|
2490
|
+
* // - Install the npm module by running:
|
|
2491
|
+
* // ```sh
|
|
2492
|
+
* // $ npm install googleapis
|
|
2493
|
+
* // ```
|
|
2494
|
+
*
|
|
2495
|
+
* const {google} = require('googleapis');
|
|
2496
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
2497
|
+
*
|
|
2498
|
+
* async function main() {
|
|
2499
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2500
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2501
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2502
|
+
* });
|
|
2503
|
+
*
|
|
2504
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2505
|
+
* const authClient = await auth.getClient();
|
|
2506
|
+
* google.options({auth: authClient});
|
|
2507
|
+
*
|
|
2508
|
+
* // Do the magic
|
|
2509
|
+
* const res = await networkservices.projects.locations.get({
|
|
2510
|
+
* // Resource name for the location.
|
|
2511
|
+
* name: 'projects/my-project/locations/my-location',
|
|
2512
|
+
* });
|
|
2513
|
+
* console.log(res.data);
|
|
2514
|
+
*
|
|
2515
|
+
* // Example response
|
|
2516
|
+
* // {
|
|
2517
|
+
* // "displayName": "my_displayName",
|
|
2518
|
+
* // "labels": {},
|
|
2519
|
+
* // "locationId": "my_locationId",
|
|
2520
|
+
* // "metadata": {},
|
|
2521
|
+
* // "name": "my_name"
|
|
2522
|
+
* // }
|
|
2523
|
+
* }
|
|
2524
|
+
*
|
|
2525
|
+
* main().catch(e => {
|
|
2526
|
+
* console.error(e);
|
|
2527
|
+
* throw e;
|
|
2528
|
+
* });
|
|
2529
|
+
*
|
|
2530
|
+
* ```
|
|
2531
|
+
*
|
|
2532
|
+
* @param params - Parameters for request
|
|
2533
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2534
|
+
* @param callback - Optional callback that handles the response.
|
|
2535
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2536
|
+
*/
|
|
2537
|
+
get(
|
|
2538
|
+
params: Params$Resource$Projects$Locations$Get,
|
|
2539
|
+
options: StreamMethodOptions
|
|
2540
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2541
|
+
get(
|
|
2542
|
+
params?: Params$Resource$Projects$Locations$Get,
|
|
2543
|
+
options?: MethodOptions
|
|
2544
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Location>>;
|
|
2545
|
+
get(
|
|
2546
|
+
params: Params$Resource$Projects$Locations$Get,
|
|
2547
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2548
|
+
callback: BodyResponseCallback<Readable>
|
|
2549
|
+
): void;
|
|
2550
|
+
get(
|
|
2551
|
+
params: Params$Resource$Projects$Locations$Get,
|
|
2552
|
+
options: MethodOptions | BodyResponseCallback<Schema$Location>,
|
|
2553
|
+
callback: BodyResponseCallback<Schema$Location>
|
|
2554
|
+
): void;
|
|
2555
|
+
get(
|
|
2556
|
+
params: Params$Resource$Projects$Locations$Get,
|
|
2557
|
+
callback: BodyResponseCallback<Schema$Location>
|
|
2558
|
+
): void;
|
|
2559
|
+
get(callback: BodyResponseCallback<Schema$Location>): void;
|
|
2560
|
+
get(
|
|
2561
|
+
paramsOrCallback?:
|
|
2562
|
+
| Params$Resource$Projects$Locations$Get
|
|
2563
|
+
| BodyResponseCallback<Schema$Location>
|
|
2564
|
+
| BodyResponseCallback<Readable>,
|
|
2565
|
+
optionsOrCallback?:
|
|
2566
|
+
| MethodOptions
|
|
2567
|
+
| StreamMethodOptions
|
|
2568
|
+
| BodyResponseCallback<Schema$Location>
|
|
2569
|
+
| BodyResponseCallback<Readable>,
|
|
2570
|
+
callback?:
|
|
2571
|
+
| BodyResponseCallback<Schema$Location>
|
|
2572
|
+
| BodyResponseCallback<Readable>
|
|
2573
|
+
):
|
|
2574
|
+
| void
|
|
2575
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Location>>
|
|
2576
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2577
|
+
let params = (paramsOrCallback ||
|
|
2578
|
+
{}) as Params$Resource$Projects$Locations$Get;
|
|
2579
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2580
|
+
|
|
2581
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2582
|
+
callback = paramsOrCallback;
|
|
2583
|
+
params = {} as Params$Resource$Projects$Locations$Get;
|
|
2584
|
+
options = {};
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2588
|
+
callback = optionsOrCallback;
|
|
2589
|
+
options = {};
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
const rootUrl =
|
|
2593
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
2594
|
+
const parameters = {
|
|
2595
|
+
options: Object.assign(
|
|
2596
|
+
{
|
|
2597
|
+
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
2598
|
+
method: 'GET',
|
|
2599
|
+
apiVersion: '',
|
|
2600
|
+
},
|
|
2601
|
+
options
|
|
2602
|
+
),
|
|
2603
|
+
params,
|
|
2604
|
+
requiredParams: ['name'],
|
|
2605
|
+
pathParams: ['name'],
|
|
2606
|
+
context: this.context,
|
|
2607
|
+
};
|
|
2608
|
+
if (callback) {
|
|
2609
|
+
createAPIRequest<Schema$Location>(
|
|
2610
|
+
parameters,
|
|
2611
|
+
callback as BodyResponseCallback<unknown>
|
|
2612
|
+
);
|
|
2613
|
+
} else {
|
|
2614
|
+
return createAPIRequest<Schema$Location>(parameters);
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
/**
|
|
2619
|
+
* 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.
|
|
2620
|
+
* @example
|
|
2621
|
+
* ```js
|
|
2622
|
+
* // Before running the sample:
|
|
2623
|
+
* // - Enable the API at:
|
|
2624
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
2625
|
+
* // - Login into gcloud by running:
|
|
2626
|
+
* // ```sh
|
|
2627
|
+
* // $ gcloud auth application-default login
|
|
2628
|
+
* // ```
|
|
2629
|
+
* // - Install the npm module by running:
|
|
2630
|
+
* // ```sh
|
|
2631
|
+
* // $ npm install googleapis
|
|
2632
|
+
* // ```
|
|
2633
|
+
*
|
|
2634
|
+
* const {google} = require('googleapis');
|
|
2635
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
2636
|
+
*
|
|
2637
|
+
* async function main() {
|
|
2638
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2639
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2640
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2641
|
+
* });
|
|
2642
|
+
*
|
|
2643
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2644
|
+
* const authClient = await auth.getClient();
|
|
2645
|
+
* google.options({auth: authClient});
|
|
2646
|
+
*
|
|
2647
|
+
* // Do the magic
|
|
2648
|
+
* const res = await networkservices.projects.locations.list({
|
|
2649
|
+
* // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
|
|
2650
|
+
* extraLocationTypes: 'placeholder-value',
|
|
2651
|
+
* // 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).
|
|
2652
|
+
* filter: 'placeholder-value',
|
|
2653
|
+
* // The resource that owns the locations collection, if applicable.
|
|
2654
|
+
* name: 'projects/my-project',
|
|
2655
|
+
* // The maximum number of results to return. If not set, the service selects a default.
|
|
2656
|
+
* pageSize: 'placeholder-value',
|
|
2657
|
+
* // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
|
|
2658
|
+
* pageToken: 'placeholder-value',
|
|
2659
|
+
* });
|
|
2660
|
+
* console.log(res.data);
|
|
2661
|
+
*
|
|
2662
|
+
* // Example response
|
|
2663
|
+
* // {
|
|
2664
|
+
* // "locations": [],
|
|
2665
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
2666
|
+
* // }
|
|
2667
|
+
* }
|
|
2668
|
+
*
|
|
2669
|
+
* main().catch(e => {
|
|
2670
|
+
* console.error(e);
|
|
2671
|
+
* throw e;
|
|
2672
|
+
* });
|
|
2673
|
+
*
|
|
2674
|
+
* ```
|
|
2675
|
+
*
|
|
2676
|
+
* @param params - Parameters for request
|
|
2677
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2678
|
+
* @param callback - Optional callback that handles the response.
|
|
2679
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2680
|
+
*/
|
|
2681
|
+
list(
|
|
2682
|
+
params: Params$Resource$Projects$Locations$List,
|
|
2683
|
+
options: StreamMethodOptions
|
|
2684
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2685
|
+
list(
|
|
2686
|
+
params?: Params$Resource$Projects$Locations$List,
|
|
2687
|
+
options?: MethodOptions
|
|
2688
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListLocationsResponse>>;
|
|
2689
|
+
list(
|
|
2690
|
+
params: Params$Resource$Projects$Locations$List,
|
|
2691
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2692
|
+
callback: BodyResponseCallback<Readable>
|
|
2693
|
+
): void;
|
|
2694
|
+
list(
|
|
2695
|
+
params: Params$Resource$Projects$Locations$List,
|
|
2696
|
+
options:
|
|
2697
|
+
| MethodOptions
|
|
2698
|
+
| BodyResponseCallback<Schema$ListLocationsResponse>,
|
|
2699
|
+
callback: BodyResponseCallback<Schema$ListLocationsResponse>
|
|
2700
|
+
): void;
|
|
2701
|
+
list(
|
|
2702
|
+
params: Params$Resource$Projects$Locations$List,
|
|
2703
|
+
callback: BodyResponseCallback<Schema$ListLocationsResponse>
|
|
2704
|
+
): void;
|
|
2705
|
+
list(callback: BodyResponseCallback<Schema$ListLocationsResponse>): void;
|
|
2706
|
+
list(
|
|
2707
|
+
paramsOrCallback?:
|
|
2708
|
+
| Params$Resource$Projects$Locations$List
|
|
2709
|
+
| BodyResponseCallback<Schema$ListLocationsResponse>
|
|
2710
|
+
| BodyResponseCallback<Readable>,
|
|
2711
|
+
optionsOrCallback?:
|
|
2712
|
+
| MethodOptions
|
|
2713
|
+
| StreamMethodOptions
|
|
2714
|
+
| BodyResponseCallback<Schema$ListLocationsResponse>
|
|
2715
|
+
| BodyResponseCallback<Readable>,
|
|
2716
|
+
callback?:
|
|
2717
|
+
| BodyResponseCallback<Schema$ListLocationsResponse>
|
|
2718
|
+
| BodyResponseCallback<Readable>
|
|
2719
|
+
):
|
|
2720
|
+
| void
|
|
2721
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListLocationsResponse>>
|
|
2722
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2723
|
+
let params = (paramsOrCallback ||
|
|
2724
|
+
{}) as Params$Resource$Projects$Locations$List;
|
|
2725
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2726
|
+
|
|
2727
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2728
|
+
callback = paramsOrCallback;
|
|
2729
|
+
params = {} as Params$Resource$Projects$Locations$List;
|
|
2730
|
+
options = {};
|
|
2731
|
+
}
|
|
2732
|
+
|
|
2733
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2734
|
+
callback = optionsOrCallback;
|
|
2735
|
+
options = {};
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2738
|
+
const rootUrl =
|
|
2739
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
2740
|
+
const parameters = {
|
|
2741
|
+
options: Object.assign(
|
|
2742
|
+
{
|
|
2743
|
+
url: (rootUrl + '/v1beta1/{+name}/locations').replace(
|
|
2744
|
+
/([^:]\/)\/+/g,
|
|
2745
|
+
'$1'
|
|
2746
|
+
),
|
|
2747
|
+
method: 'GET',
|
|
2748
|
+
apiVersion: '',
|
|
2749
|
+
},
|
|
2750
|
+
options
|
|
2751
|
+
),
|
|
2752
|
+
params,
|
|
2753
|
+
requiredParams: ['name'],
|
|
2754
|
+
pathParams: ['name'],
|
|
2755
|
+
context: this.context,
|
|
2756
|
+
};
|
|
2757
|
+
if (callback) {
|
|
2758
|
+
createAPIRequest<Schema$ListLocationsResponse>(
|
|
2759
|
+
parameters,
|
|
2760
|
+
callback as BodyResponseCallback<unknown>
|
|
2761
|
+
);
|
|
2762
|
+
} else {
|
|
2763
|
+
return createAPIRequest<Schema$ListLocationsResponse>(parameters);
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
|
|
2768
|
+
export interface Params$Resource$Projects$Locations$Get extends StandardParameters {
|
|
2769
|
+
/**
|
|
2770
|
+
* Resource name for the location.
|
|
2771
|
+
*/
|
|
2772
|
+
name?: string;
|
|
2773
|
+
}
|
|
2774
|
+
export interface Params$Resource$Projects$Locations$List extends StandardParameters {
|
|
2775
|
+
/**
|
|
2776
|
+
* Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
|
|
2777
|
+
*/
|
|
2778
|
+
extraLocationTypes?: string[];
|
|
2779
|
+
/**
|
|
2780
|
+
* 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).
|
|
2781
|
+
*/
|
|
2782
|
+
filter?: string;
|
|
2783
|
+
/**
|
|
2784
|
+
* The resource that owns the locations collection, if applicable.
|
|
2785
|
+
*/
|
|
2786
|
+
name?: string;
|
|
2787
|
+
/**
|
|
2788
|
+
* The maximum number of results to return. If not set, the service selects a default.
|
|
2789
|
+
*/
|
|
2790
|
+
pageSize?: number;
|
|
2791
|
+
/**
|
|
2792
|
+
* A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
|
|
2793
|
+
*/
|
|
2794
|
+
pageToken?: string;
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
export class Resource$Projects$Locations$Agentgateways {
|
|
2798
|
+
context: APIRequestContext;
|
|
2799
|
+
constructor(context: APIRequestContext) {
|
|
2800
|
+
this.context = context;
|
|
2801
|
+
}
|
|
2802
|
+
|
|
2803
|
+
/**
|
|
2804
|
+
* Creates a new AgentGateway in a given project and location.
|
|
2805
|
+
* @example
|
|
2806
|
+
* ```js
|
|
2807
|
+
* // Before running the sample:
|
|
2808
|
+
* // - Enable the API at:
|
|
2809
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
2810
|
+
* // - Login into gcloud by running:
|
|
2811
|
+
* // ```sh
|
|
2812
|
+
* // $ gcloud auth application-default login
|
|
2813
|
+
* // ```
|
|
2814
|
+
* // - Install the npm module by running:
|
|
2815
|
+
* // ```sh
|
|
2816
|
+
* // $ npm install googleapis
|
|
2817
|
+
* // ```
|
|
2818
|
+
*
|
|
2819
|
+
* const {google} = require('googleapis');
|
|
2820
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
2821
|
+
*
|
|
2822
|
+
* async function main() {
|
|
2823
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2824
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2825
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2826
|
+
* });
|
|
2827
|
+
*
|
|
2828
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2829
|
+
* const authClient = await auth.getClient();
|
|
2830
|
+
* google.options({auth: authClient});
|
|
2831
|
+
*
|
|
2832
|
+
* // Do the magic
|
|
2833
|
+
* const res = await networkservices.projects.locations.agentGateways.create({
|
|
2834
|
+
* // Required. Short name of the AgentGateway resource to be created.
|
|
2835
|
+
* agentGatewayId: 'placeholder-value',
|
|
2836
|
+
* // Required. The parent resource of the AgentGateway. Must be in the format `projects/x/locations/x`.
|
|
2837
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
2838
|
+
*
|
|
2839
|
+
* // Request body metadata
|
|
2840
|
+
* requestBody: {
|
|
2841
|
+
* // request body parameters
|
|
2842
|
+
* // {
|
|
2843
|
+
* // "agentGatewayCard": {},
|
|
2844
|
+
* // "createTime": "my_createTime",
|
|
2845
|
+
* // "description": "my_description",
|
|
2846
|
+
* // "etag": "my_etag",
|
|
2847
|
+
* // "googleManaged": {},
|
|
2848
|
+
* // "labels": {},
|
|
2849
|
+
* // "name": "my_name",
|
|
2850
|
+
* // "networkConfig": {},
|
|
2851
|
+
* // "protocols": [],
|
|
2852
|
+
* // "registries": [],
|
|
2853
|
+
* // "selfManaged": {},
|
|
2854
|
+
* // "updateTime": "my_updateTime"
|
|
2855
|
+
* // }
|
|
2856
|
+
* },
|
|
2857
|
+
* });
|
|
2858
|
+
* console.log(res.data);
|
|
2859
|
+
*
|
|
2860
|
+
* // Example response
|
|
2861
|
+
* // {
|
|
2862
|
+
* // "done": false,
|
|
2863
|
+
* // "error": {},
|
|
2864
|
+
* // "metadata": {},
|
|
2865
|
+
* // "name": "my_name",
|
|
2866
|
+
* // "response": {}
|
|
2867
|
+
* // }
|
|
2868
|
+
* }
|
|
2869
|
+
*
|
|
2870
|
+
* main().catch(e => {
|
|
2871
|
+
* console.error(e);
|
|
2872
|
+
* throw e;
|
|
2873
|
+
* });
|
|
2874
|
+
*
|
|
2875
|
+
* ```
|
|
2876
|
+
*
|
|
2877
|
+
* @param params - Parameters for request
|
|
2878
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2879
|
+
* @param callback - Optional callback that handles the response.
|
|
2880
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2881
|
+
*/
|
|
2882
|
+
create(
|
|
2883
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Create,
|
|
2884
|
+
options: StreamMethodOptions
|
|
2885
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2886
|
+
create(
|
|
2887
|
+
params?: Params$Resource$Projects$Locations$Agentgateways$Create,
|
|
2888
|
+
options?: MethodOptions
|
|
2889
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
2890
|
+
create(
|
|
2891
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Create,
|
|
2892
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2893
|
+
callback: BodyResponseCallback<Readable>
|
|
2894
|
+
): void;
|
|
2895
|
+
create(
|
|
2896
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Create,
|
|
2897
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
2898
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
2899
|
+
): void;
|
|
2900
|
+
create(
|
|
2901
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Create,
|
|
2902
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
2903
|
+
): void;
|
|
2904
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2905
|
+
create(
|
|
2906
|
+
paramsOrCallback?:
|
|
2907
|
+
| Params$Resource$Projects$Locations$Agentgateways$Create
|
|
2908
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2909
|
+
| BodyResponseCallback<Readable>,
|
|
2910
|
+
optionsOrCallback?:
|
|
2911
|
+
| MethodOptions
|
|
2912
|
+
| StreamMethodOptions
|
|
2913
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2914
|
+
| BodyResponseCallback<Readable>,
|
|
2915
|
+
callback?:
|
|
2916
|
+
| BodyResponseCallback<Schema$Operation>
|
|
2917
|
+
| BodyResponseCallback<Readable>
|
|
2918
|
+
):
|
|
2919
|
+
| void
|
|
2920
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
2921
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2922
|
+
let params = (paramsOrCallback ||
|
|
2923
|
+
{}) as Params$Resource$Projects$Locations$Agentgateways$Create;
|
|
2924
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2925
|
+
|
|
2926
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2927
|
+
callback = paramsOrCallback;
|
|
2928
|
+
params = {} as Params$Resource$Projects$Locations$Agentgateways$Create;
|
|
2929
|
+
options = {};
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2933
|
+
callback = optionsOrCallback;
|
|
2934
|
+
options = {};
|
|
2935
|
+
}
|
|
2936
|
+
|
|
2937
|
+
const rootUrl =
|
|
2938
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
2939
|
+
const parameters = {
|
|
2940
|
+
options: Object.assign(
|
|
2941
|
+
{
|
|
2942
|
+
url: (rootUrl + '/v1beta1/{+parent}/agentGateways').replace(
|
|
2943
|
+
/([^:]\/)\/+/g,
|
|
2944
|
+
'$1'
|
|
2945
|
+
),
|
|
2946
|
+
method: 'POST',
|
|
2947
|
+
apiVersion: '',
|
|
2948
|
+
},
|
|
2949
|
+
options
|
|
2950
|
+
),
|
|
2951
|
+
params,
|
|
2952
|
+
requiredParams: ['parent'],
|
|
2953
|
+
pathParams: ['parent'],
|
|
2954
|
+
context: this.context,
|
|
2955
|
+
};
|
|
2956
|
+
if (callback) {
|
|
2957
|
+
createAPIRequest<Schema$Operation>(
|
|
2958
|
+
parameters,
|
|
2959
|
+
callback as BodyResponseCallback<unknown>
|
|
2960
|
+
);
|
|
2961
|
+
} else {
|
|
2962
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
|
|
2966
|
+
/**
|
|
2967
|
+
* Deletes a single AgentGateway.
|
|
2968
|
+
* @example
|
|
2969
|
+
* ```js
|
|
2970
|
+
* // Before running the sample:
|
|
2971
|
+
* // - Enable the API at:
|
|
2972
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
2973
|
+
* // - Login into gcloud by running:
|
|
2974
|
+
* // ```sh
|
|
2975
|
+
* // $ gcloud auth application-default login
|
|
2976
|
+
* // ```
|
|
2977
|
+
* // - Install the npm module by running:
|
|
2978
|
+
* // ```sh
|
|
2979
|
+
* // $ npm install googleapis
|
|
2980
|
+
* // ```
|
|
2981
|
+
*
|
|
2982
|
+
* const {google} = require('googleapis');
|
|
2983
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
2984
|
+
*
|
|
2985
|
+
* async function main() {
|
|
2986
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2987
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2988
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2989
|
+
* });
|
|
2990
|
+
*
|
|
2991
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2992
|
+
* const authClient = await auth.getClient();
|
|
2993
|
+
* google.options({auth: authClient});
|
|
2994
|
+
*
|
|
2995
|
+
* // Do the magic
|
|
2996
|
+
* const res = await networkservices.projects.locations.agentGateways.delete({
|
|
2997
|
+
* // Optional. The etag of the AgentGateway to delete.
|
|
2998
|
+
* etag: 'placeholder-value',
|
|
2999
|
+
* // Required. A name of the AgentGateway to delete. Must be in the format `projects/x/locations/x/agentGateways/x`.
|
|
3000
|
+
* name: 'projects/my-project/locations/my-location/agentGateways/my-agentGateway',
|
|
3001
|
+
* });
|
|
3002
|
+
* console.log(res.data);
|
|
3003
|
+
*
|
|
3004
|
+
* // Example response
|
|
3005
|
+
* // {
|
|
3006
|
+
* // "done": false,
|
|
3007
|
+
* // "error": {},
|
|
3008
|
+
* // "metadata": {},
|
|
3009
|
+
* // "name": "my_name",
|
|
3010
|
+
* // "response": {}
|
|
3011
|
+
* // }
|
|
3012
|
+
* }
|
|
3013
|
+
*
|
|
3014
|
+
* main().catch(e => {
|
|
3015
|
+
* console.error(e);
|
|
3016
|
+
* throw e;
|
|
3017
|
+
* });
|
|
3018
|
+
*
|
|
3019
|
+
* ```
|
|
3020
|
+
*
|
|
3021
|
+
* @param params - Parameters for request
|
|
3022
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3023
|
+
* @param callback - Optional callback that handles the response.
|
|
3024
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3025
|
+
*/
|
|
3026
|
+
delete(
|
|
3027
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Delete,
|
|
3028
|
+
options: StreamMethodOptions
|
|
3029
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3030
|
+
delete(
|
|
3031
|
+
params?: Params$Resource$Projects$Locations$Agentgateways$Delete,
|
|
3032
|
+
options?: MethodOptions
|
|
3033
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
3034
|
+
delete(
|
|
3035
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Delete,
|
|
3036
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3037
|
+
callback: BodyResponseCallback<Readable>
|
|
3038
|
+
): void;
|
|
3039
|
+
delete(
|
|
3040
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Delete,
|
|
3041
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3042
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3043
|
+
): void;
|
|
3044
|
+
delete(
|
|
3045
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Delete,
|
|
3046
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3047
|
+
): void;
|
|
3048
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3049
|
+
delete(
|
|
3050
|
+
paramsOrCallback?:
|
|
3051
|
+
| Params$Resource$Projects$Locations$Agentgateways$Delete
|
|
3052
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3053
|
+
| BodyResponseCallback<Readable>,
|
|
3054
|
+
optionsOrCallback?:
|
|
3055
|
+
| MethodOptions
|
|
3056
|
+
| StreamMethodOptions
|
|
3057
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3058
|
+
| BodyResponseCallback<Readable>,
|
|
3059
|
+
callback?:
|
|
3060
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3061
|
+
| BodyResponseCallback<Readable>
|
|
3062
|
+
):
|
|
3063
|
+
| void
|
|
3064
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
3065
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3066
|
+
let params = (paramsOrCallback ||
|
|
3067
|
+
{}) as Params$Resource$Projects$Locations$Agentgateways$Delete;
|
|
3068
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3069
|
+
|
|
3070
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3071
|
+
callback = paramsOrCallback;
|
|
3072
|
+
params = {} as Params$Resource$Projects$Locations$Agentgateways$Delete;
|
|
3073
|
+
options = {};
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3077
|
+
callback = optionsOrCallback;
|
|
3078
|
+
options = {};
|
|
3079
|
+
}
|
|
3080
|
+
|
|
3081
|
+
const rootUrl =
|
|
3082
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
3083
|
+
const parameters = {
|
|
3084
|
+
options: Object.assign(
|
|
3085
|
+
{
|
|
3086
|
+
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
3087
|
+
method: 'DELETE',
|
|
3088
|
+
apiVersion: '',
|
|
3089
|
+
},
|
|
3090
|
+
options
|
|
3091
|
+
),
|
|
3092
|
+
params,
|
|
3093
|
+
requiredParams: ['name'],
|
|
3094
|
+
pathParams: ['name'],
|
|
3095
|
+
context: this.context,
|
|
3096
|
+
};
|
|
3097
|
+
if (callback) {
|
|
3098
|
+
createAPIRequest<Schema$Operation>(
|
|
3099
|
+
parameters,
|
|
3100
|
+
callback as BodyResponseCallback<unknown>
|
|
3101
|
+
);
|
|
3102
|
+
} else {
|
|
3103
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
3104
|
+
}
|
|
3105
|
+
}
|
|
3106
|
+
|
|
3107
|
+
/**
|
|
3108
|
+
* Gets details of a single AgentGateway.
|
|
2309
3109
|
* @example
|
|
2310
3110
|
* ```js
|
|
2311
3111
|
* // Before running the sample:
|
|
@@ -2334,19 +3134,26 @@ export namespace networkservices_v1beta1 {
|
|
|
2334
3134
|
* google.options({auth: authClient});
|
|
2335
3135
|
*
|
|
2336
3136
|
* // Do the magic
|
|
2337
|
-
* const res = await networkservices.projects.locations.get({
|
|
2338
|
-
* //
|
|
2339
|
-
* name: 'projects/my-project/locations/my-location',
|
|
3137
|
+
* const res = await networkservices.projects.locations.agentGateways.get({
|
|
3138
|
+
* // Required. A name of the AgentGateway to get. Must be in the format `projects/x/locations/x/agentGateways/x`.
|
|
3139
|
+
* name: 'projects/my-project/locations/my-location/agentGateways/my-agentGateway',
|
|
2340
3140
|
* });
|
|
2341
3141
|
* console.log(res.data);
|
|
2342
3142
|
*
|
|
2343
3143
|
* // Example response
|
|
2344
3144
|
* // {
|
|
2345
|
-
* // "
|
|
3145
|
+
* // "agentGatewayCard": {},
|
|
3146
|
+
* // "createTime": "my_createTime",
|
|
3147
|
+
* // "description": "my_description",
|
|
3148
|
+
* // "etag": "my_etag",
|
|
3149
|
+
* // "googleManaged": {},
|
|
2346
3150
|
* // "labels": {},
|
|
2347
|
-
* // "
|
|
2348
|
-
* // "
|
|
2349
|
-
* // "
|
|
3151
|
+
* // "name": "my_name",
|
|
3152
|
+
* // "networkConfig": {},
|
|
3153
|
+
* // "protocols": [],
|
|
3154
|
+
* // "registries": [],
|
|
3155
|
+
* // "selfManaged": {},
|
|
3156
|
+
* // "updateTime": "my_updateTime"
|
|
2350
3157
|
* // }
|
|
2351
3158
|
* }
|
|
2352
3159
|
*
|
|
@@ -2363,52 +3170,52 @@ export namespace networkservices_v1beta1 {
|
|
|
2363
3170
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2364
3171
|
*/
|
|
2365
3172
|
get(
|
|
2366
|
-
params: Params$Resource$Projects$Locations$Get,
|
|
3173
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Get,
|
|
2367
3174
|
options: StreamMethodOptions
|
|
2368
3175
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2369
3176
|
get(
|
|
2370
|
-
params?: Params$Resource$Projects$Locations$Get,
|
|
3177
|
+
params?: Params$Resource$Projects$Locations$Agentgateways$Get,
|
|
2371
3178
|
options?: MethodOptions
|
|
2372
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
3179
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$AgentGateway>>;
|
|
2373
3180
|
get(
|
|
2374
|
-
params: Params$Resource$Projects$Locations$Get,
|
|
3181
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Get,
|
|
2375
3182
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2376
3183
|
callback: BodyResponseCallback<Readable>
|
|
2377
3184
|
): void;
|
|
2378
3185
|
get(
|
|
2379
|
-
params: Params$Resource$Projects$Locations$Get,
|
|
2380
|
-
options: MethodOptions | BodyResponseCallback<Schema$
|
|
2381
|
-
callback: BodyResponseCallback<Schema$
|
|
3186
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Get,
|
|
3187
|
+
options: MethodOptions | BodyResponseCallback<Schema$AgentGateway>,
|
|
3188
|
+
callback: BodyResponseCallback<Schema$AgentGateway>
|
|
2382
3189
|
): void;
|
|
2383
3190
|
get(
|
|
2384
|
-
params: Params$Resource$Projects$Locations$Get,
|
|
2385
|
-
callback: BodyResponseCallback<Schema$
|
|
3191
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Get,
|
|
3192
|
+
callback: BodyResponseCallback<Schema$AgentGateway>
|
|
2386
3193
|
): void;
|
|
2387
|
-
get(callback: BodyResponseCallback<Schema$
|
|
3194
|
+
get(callback: BodyResponseCallback<Schema$AgentGateway>): void;
|
|
2388
3195
|
get(
|
|
2389
3196
|
paramsOrCallback?:
|
|
2390
|
-
| Params$Resource$Projects$Locations$Get
|
|
2391
|
-
| BodyResponseCallback<Schema$
|
|
3197
|
+
| Params$Resource$Projects$Locations$Agentgateways$Get
|
|
3198
|
+
| BodyResponseCallback<Schema$AgentGateway>
|
|
2392
3199
|
| BodyResponseCallback<Readable>,
|
|
2393
3200
|
optionsOrCallback?:
|
|
2394
3201
|
| MethodOptions
|
|
2395
3202
|
| StreamMethodOptions
|
|
2396
|
-
| BodyResponseCallback<Schema$
|
|
3203
|
+
| BodyResponseCallback<Schema$AgentGateway>
|
|
2397
3204
|
| BodyResponseCallback<Readable>,
|
|
2398
3205
|
callback?:
|
|
2399
|
-
| BodyResponseCallback<Schema$
|
|
3206
|
+
| BodyResponseCallback<Schema$AgentGateway>
|
|
2400
3207
|
| BodyResponseCallback<Readable>
|
|
2401
3208
|
):
|
|
2402
3209
|
| void
|
|
2403
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
3210
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$AgentGateway>>
|
|
2404
3211
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2405
3212
|
let params = (paramsOrCallback ||
|
|
2406
|
-
{}) as Params$Resource$Projects$Locations$Get;
|
|
3213
|
+
{}) as Params$Resource$Projects$Locations$Agentgateways$Get;
|
|
2407
3214
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2408
3215
|
|
|
2409
3216
|
if (typeof paramsOrCallback === 'function') {
|
|
2410
3217
|
callback = paramsOrCallback;
|
|
2411
|
-
params = {} as Params$Resource$Projects$Locations$Get;
|
|
3218
|
+
params = {} as Params$Resource$Projects$Locations$Agentgateways$Get;
|
|
2412
3219
|
options = {};
|
|
2413
3220
|
}
|
|
2414
3221
|
|
|
@@ -2434,17 +3241,17 @@ export namespace networkservices_v1beta1 {
|
|
|
2434
3241
|
context: this.context,
|
|
2435
3242
|
};
|
|
2436
3243
|
if (callback) {
|
|
2437
|
-
createAPIRequest<Schema$
|
|
3244
|
+
createAPIRequest<Schema$AgentGateway>(
|
|
2438
3245
|
parameters,
|
|
2439
3246
|
callback as BodyResponseCallback<unknown>
|
|
2440
3247
|
);
|
|
2441
3248
|
} else {
|
|
2442
|
-
return createAPIRequest<Schema$
|
|
3249
|
+
return createAPIRequest<Schema$AgentGateway>(parameters);
|
|
2443
3250
|
}
|
|
2444
3251
|
}
|
|
2445
3252
|
|
|
2446
3253
|
/**
|
|
2447
|
-
* Lists
|
|
3254
|
+
* Lists AgentGateways in a given project and location.
|
|
2448
3255
|
* @example
|
|
2449
3256
|
* ```js
|
|
2450
3257
|
* // Before running the sample:
|
|
@@ -2473,24 +3280,23 @@ export namespace networkservices_v1beta1 {
|
|
|
2473
3280
|
* google.options({auth: authClient});
|
|
2474
3281
|
*
|
|
2475
3282
|
* // 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.
|
|
3283
|
+
* const res = await networkservices.projects.locations.agentGateways.list({
|
|
3284
|
+
* // Optional. Maximum number of AgentGateways to return per call.
|
|
2484
3285
|
* pageSize: 'placeholder-value',
|
|
2485
|
-
* //
|
|
3286
|
+
* // 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
3287
|
* pageToken: 'placeholder-value',
|
|
3288
|
+
* // Required. The project and location from which the AgentGateways should be listed, specified in the format `projects/x/locations/x`.
|
|
3289
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
3290
|
+
* // 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.
|
|
3291
|
+
* returnPartialSuccess: 'placeholder-value',
|
|
2487
3292
|
* });
|
|
2488
3293
|
* console.log(res.data);
|
|
2489
3294
|
*
|
|
2490
3295
|
* // Example response
|
|
2491
3296
|
* // {
|
|
2492
|
-
* // "
|
|
2493
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
3297
|
+
* // "agentGateways": [],
|
|
3298
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3299
|
+
* // "unreachable": []
|
|
2494
3300
|
* // }
|
|
2495
3301
|
* }
|
|
2496
3302
|
*
|
|
@@ -2507,54 +3313,56 @@ export namespace networkservices_v1beta1 {
|
|
|
2507
3313
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2508
3314
|
*/
|
|
2509
3315
|
list(
|
|
2510
|
-
params: Params$Resource$Projects$Locations$List,
|
|
3316
|
+
params: Params$Resource$Projects$Locations$Agentgateways$List,
|
|
2511
3317
|
options: StreamMethodOptions
|
|
2512
3318
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2513
3319
|
list(
|
|
2514
|
-
params?: Params$Resource$Projects$Locations$List,
|
|
3320
|
+
params?: Params$Resource$Projects$Locations$Agentgateways$List,
|
|
2515
3321
|
options?: MethodOptions
|
|
2516
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$
|
|
3322
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$ListAgentGatewaysResponse>>;
|
|
2517
3323
|
list(
|
|
2518
|
-
params: Params$Resource$Projects$Locations$List,
|
|
3324
|
+
params: Params$Resource$Projects$Locations$Agentgateways$List,
|
|
2519
3325
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
2520
3326
|
callback: BodyResponseCallback<Readable>
|
|
2521
3327
|
): void;
|
|
2522
3328
|
list(
|
|
2523
|
-
params: Params$Resource$Projects$Locations$List,
|
|
3329
|
+
params: Params$Resource$Projects$Locations$Agentgateways$List,
|
|
2524
3330
|
options:
|
|
2525
3331
|
| MethodOptions
|
|
2526
|
-
| BodyResponseCallback<Schema$
|
|
2527
|
-
callback: BodyResponseCallback<Schema$
|
|
3332
|
+
| BodyResponseCallback<Schema$ListAgentGatewaysResponse>,
|
|
3333
|
+
callback: BodyResponseCallback<Schema$ListAgentGatewaysResponse>
|
|
2528
3334
|
): void;
|
|
2529
3335
|
list(
|
|
2530
|
-
params: Params$Resource$Projects$Locations$List,
|
|
2531
|
-
callback: BodyResponseCallback<Schema$
|
|
3336
|
+
params: Params$Resource$Projects$Locations$Agentgateways$List,
|
|
3337
|
+
callback: BodyResponseCallback<Schema$ListAgentGatewaysResponse>
|
|
3338
|
+
): void;
|
|
3339
|
+
list(
|
|
3340
|
+
callback: BodyResponseCallback<Schema$ListAgentGatewaysResponse>
|
|
2532
3341
|
): void;
|
|
2533
|
-
list(callback: BodyResponseCallback<Schema$ListLocationsResponse>): void;
|
|
2534
3342
|
list(
|
|
2535
3343
|
paramsOrCallback?:
|
|
2536
|
-
| Params$Resource$Projects$Locations$List
|
|
2537
|
-
| BodyResponseCallback<Schema$
|
|
3344
|
+
| Params$Resource$Projects$Locations$Agentgateways$List
|
|
3345
|
+
| BodyResponseCallback<Schema$ListAgentGatewaysResponse>
|
|
2538
3346
|
| BodyResponseCallback<Readable>,
|
|
2539
3347
|
optionsOrCallback?:
|
|
2540
3348
|
| MethodOptions
|
|
2541
3349
|
| StreamMethodOptions
|
|
2542
|
-
| BodyResponseCallback<Schema$
|
|
3350
|
+
| BodyResponseCallback<Schema$ListAgentGatewaysResponse>
|
|
2543
3351
|
| BodyResponseCallback<Readable>,
|
|
2544
3352
|
callback?:
|
|
2545
|
-
| BodyResponseCallback<Schema$
|
|
3353
|
+
| BodyResponseCallback<Schema$ListAgentGatewaysResponse>
|
|
2546
3354
|
| BodyResponseCallback<Readable>
|
|
2547
3355
|
):
|
|
2548
3356
|
| void
|
|
2549
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$
|
|
3357
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$ListAgentGatewaysResponse>>
|
|
2550
3358
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
2551
3359
|
let params = (paramsOrCallback ||
|
|
2552
|
-
{}) as Params$Resource$Projects$Locations$List;
|
|
3360
|
+
{}) as Params$Resource$Projects$Locations$Agentgateways$List;
|
|
2553
3361
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
2554
3362
|
|
|
2555
3363
|
if (typeof paramsOrCallback === 'function') {
|
|
2556
3364
|
callback = paramsOrCallback;
|
|
2557
|
-
params = {} as Params$Resource$Projects$Locations$List;
|
|
3365
|
+
params = {} as Params$Resource$Projects$Locations$Agentgateways$List;
|
|
2558
3366
|
options = {};
|
|
2559
3367
|
}
|
|
2560
3368
|
|
|
@@ -2568,7 +3376,7 @@ export namespace networkservices_v1beta1 {
|
|
|
2568
3376
|
const parameters = {
|
|
2569
3377
|
options: Object.assign(
|
|
2570
3378
|
{
|
|
2571
|
-
url: (rootUrl + '/v1beta1/{+
|
|
3379
|
+
url: (rootUrl + '/v1beta1/{+parent}/agentGateways').replace(
|
|
2572
3380
|
/([^:]\/)\/+/g,
|
|
2573
3381
|
'$1'
|
|
2574
3382
|
),
|
|
@@ -2578,48 +3386,244 @@ export namespace networkservices_v1beta1 {
|
|
|
2578
3386
|
options
|
|
2579
3387
|
),
|
|
2580
3388
|
params,
|
|
3389
|
+
requiredParams: ['parent'],
|
|
3390
|
+
pathParams: ['parent'],
|
|
3391
|
+
context: this.context,
|
|
3392
|
+
};
|
|
3393
|
+
if (callback) {
|
|
3394
|
+
createAPIRequest<Schema$ListAgentGatewaysResponse>(
|
|
3395
|
+
parameters,
|
|
3396
|
+
callback as BodyResponseCallback<unknown>
|
|
3397
|
+
);
|
|
3398
|
+
} else {
|
|
3399
|
+
return createAPIRequest<Schema$ListAgentGatewaysResponse>(parameters);
|
|
3400
|
+
}
|
|
3401
|
+
}
|
|
3402
|
+
|
|
3403
|
+
/**
|
|
3404
|
+
* Updates the parameters of a single AgentGateway.
|
|
3405
|
+
* @example
|
|
3406
|
+
* ```js
|
|
3407
|
+
* // Before running the sample:
|
|
3408
|
+
* // - Enable the API at:
|
|
3409
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
3410
|
+
* // - Login into gcloud by running:
|
|
3411
|
+
* // ```sh
|
|
3412
|
+
* // $ gcloud auth application-default login
|
|
3413
|
+
* // ```
|
|
3414
|
+
* // - Install the npm module by running:
|
|
3415
|
+
* // ```sh
|
|
3416
|
+
* // $ npm install googleapis
|
|
3417
|
+
* // ```
|
|
3418
|
+
*
|
|
3419
|
+
* const {google} = require('googleapis');
|
|
3420
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
3421
|
+
*
|
|
3422
|
+
* async function main() {
|
|
3423
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3424
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3425
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3426
|
+
* });
|
|
3427
|
+
*
|
|
3428
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3429
|
+
* const authClient = await auth.getClient();
|
|
3430
|
+
* google.options({auth: authClient});
|
|
3431
|
+
*
|
|
3432
|
+
* // Do the magic
|
|
3433
|
+
* const res = await networkservices.projects.locations.agentGateways.patch({
|
|
3434
|
+
* // Identifier. Name of the AgentGateway resource. It matches pattern `projects/x/locations/x/agentGateways/`.
|
|
3435
|
+
* name: 'projects/my-project/locations/my-location/agentGateways/my-agentGateway',
|
|
3436
|
+
* // 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.
|
|
3437
|
+
* updateMask: 'placeholder-value',
|
|
3438
|
+
*
|
|
3439
|
+
* // Request body metadata
|
|
3440
|
+
* requestBody: {
|
|
3441
|
+
* // request body parameters
|
|
3442
|
+
* // {
|
|
3443
|
+
* // "agentGatewayCard": {},
|
|
3444
|
+
* // "createTime": "my_createTime",
|
|
3445
|
+
* // "description": "my_description",
|
|
3446
|
+
* // "etag": "my_etag",
|
|
3447
|
+
* // "googleManaged": {},
|
|
3448
|
+
* // "labels": {},
|
|
3449
|
+
* // "name": "my_name",
|
|
3450
|
+
* // "networkConfig": {},
|
|
3451
|
+
* // "protocols": [],
|
|
3452
|
+
* // "registries": [],
|
|
3453
|
+
* // "selfManaged": {},
|
|
3454
|
+
* // "updateTime": "my_updateTime"
|
|
3455
|
+
* // }
|
|
3456
|
+
* },
|
|
3457
|
+
* });
|
|
3458
|
+
* console.log(res.data);
|
|
3459
|
+
*
|
|
3460
|
+
* // Example response
|
|
3461
|
+
* // {
|
|
3462
|
+
* // "done": false,
|
|
3463
|
+
* // "error": {},
|
|
3464
|
+
* // "metadata": {},
|
|
3465
|
+
* // "name": "my_name",
|
|
3466
|
+
* // "response": {}
|
|
3467
|
+
* // }
|
|
3468
|
+
* }
|
|
3469
|
+
*
|
|
3470
|
+
* main().catch(e => {
|
|
3471
|
+
* console.error(e);
|
|
3472
|
+
* throw e;
|
|
3473
|
+
* });
|
|
3474
|
+
*
|
|
3475
|
+
* ```
|
|
3476
|
+
*
|
|
3477
|
+
* @param params - Parameters for request
|
|
3478
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3479
|
+
* @param callback - Optional callback that handles the response.
|
|
3480
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3481
|
+
*/
|
|
3482
|
+
patch(
|
|
3483
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Patch,
|
|
3484
|
+
options: StreamMethodOptions
|
|
3485
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3486
|
+
patch(
|
|
3487
|
+
params?: Params$Resource$Projects$Locations$Agentgateways$Patch,
|
|
3488
|
+
options?: MethodOptions
|
|
3489
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
3490
|
+
patch(
|
|
3491
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Patch,
|
|
3492
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
3493
|
+
callback: BodyResponseCallback<Readable>
|
|
3494
|
+
): void;
|
|
3495
|
+
patch(
|
|
3496
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Patch,
|
|
3497
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
3498
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3499
|
+
): void;
|
|
3500
|
+
patch(
|
|
3501
|
+
params: Params$Resource$Projects$Locations$Agentgateways$Patch,
|
|
3502
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
3503
|
+
): void;
|
|
3504
|
+
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3505
|
+
patch(
|
|
3506
|
+
paramsOrCallback?:
|
|
3507
|
+
| Params$Resource$Projects$Locations$Agentgateways$Patch
|
|
3508
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3509
|
+
| BodyResponseCallback<Readable>,
|
|
3510
|
+
optionsOrCallback?:
|
|
3511
|
+
| MethodOptions
|
|
3512
|
+
| StreamMethodOptions
|
|
3513
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3514
|
+
| BodyResponseCallback<Readable>,
|
|
3515
|
+
callback?:
|
|
3516
|
+
| BodyResponseCallback<Schema$Operation>
|
|
3517
|
+
| BodyResponseCallback<Readable>
|
|
3518
|
+
):
|
|
3519
|
+
| void
|
|
3520
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
3521
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
3522
|
+
let params = (paramsOrCallback ||
|
|
3523
|
+
{}) as Params$Resource$Projects$Locations$Agentgateways$Patch;
|
|
3524
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
3525
|
+
|
|
3526
|
+
if (typeof paramsOrCallback === 'function') {
|
|
3527
|
+
callback = paramsOrCallback;
|
|
3528
|
+
params = {} as Params$Resource$Projects$Locations$Agentgateways$Patch;
|
|
3529
|
+
options = {};
|
|
3530
|
+
}
|
|
3531
|
+
|
|
3532
|
+
if (typeof optionsOrCallback === 'function') {
|
|
3533
|
+
callback = optionsOrCallback;
|
|
3534
|
+
options = {};
|
|
3535
|
+
}
|
|
3536
|
+
|
|
3537
|
+
const rootUrl =
|
|
3538
|
+
options.rootUrl || 'https://networkservices.googleapis.com/';
|
|
3539
|
+
const parameters = {
|
|
3540
|
+
options: Object.assign(
|
|
3541
|
+
{
|
|
3542
|
+
url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
3543
|
+
method: 'PATCH',
|
|
3544
|
+
apiVersion: '',
|
|
3545
|
+
},
|
|
3546
|
+
options
|
|
3547
|
+
),
|
|
3548
|
+
params,
|
|
2581
3549
|
requiredParams: ['name'],
|
|
2582
3550
|
pathParams: ['name'],
|
|
2583
3551
|
context: this.context,
|
|
2584
3552
|
};
|
|
2585
3553
|
if (callback) {
|
|
2586
|
-
createAPIRequest<Schema$
|
|
3554
|
+
createAPIRequest<Schema$Operation>(
|
|
2587
3555
|
parameters,
|
|
2588
3556
|
callback as BodyResponseCallback<unknown>
|
|
2589
3557
|
);
|
|
2590
3558
|
} else {
|
|
2591
|
-
return createAPIRequest<Schema$
|
|
3559
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
2592
3560
|
}
|
|
2593
3561
|
}
|
|
2594
3562
|
}
|
|
2595
3563
|
|
|
2596
|
-
export interface Params$Resource$Projects$Locations$
|
|
3564
|
+
export interface Params$Resource$Projects$Locations$Agentgateways$Create extends StandardParameters {
|
|
2597
3565
|
/**
|
|
2598
|
-
*
|
|
3566
|
+
* Required. Short name of the AgentGateway resource to be created.
|
|
2599
3567
|
*/
|
|
2600
|
-
|
|
3568
|
+
agentGatewayId?: string;
|
|
3569
|
+
/**
|
|
3570
|
+
* Required. The parent resource of the AgentGateway. Must be in the format `projects/x/locations/x`.
|
|
3571
|
+
*/
|
|
3572
|
+
parent?: string;
|
|
3573
|
+
|
|
3574
|
+
/**
|
|
3575
|
+
* Request body metadata
|
|
3576
|
+
*/
|
|
3577
|
+
requestBody?: Schema$AgentGateway;
|
|
2601
3578
|
}
|
|
2602
|
-
export interface Params$Resource$Projects$Locations$
|
|
3579
|
+
export interface Params$Resource$Projects$Locations$Agentgateways$Delete extends StandardParameters {
|
|
2603
3580
|
/**
|
|
2604
|
-
* Optional.
|
|
3581
|
+
* Optional. The etag of the AgentGateway to delete.
|
|
2605
3582
|
*/
|
|
2606
|
-
|
|
3583
|
+
etag?: string;
|
|
2607
3584
|
/**
|
|
2608
|
-
* A
|
|
3585
|
+
* Required. A name of the AgentGateway to delete. Must be in the format `projects/x/locations/x/agentGateways/x`.
|
|
2609
3586
|
*/
|
|
2610
|
-
|
|
3587
|
+
name?: string;
|
|
3588
|
+
}
|
|
3589
|
+
export interface Params$Resource$Projects$Locations$Agentgateways$Get extends StandardParameters {
|
|
2611
3590
|
/**
|
|
2612
|
-
*
|
|
3591
|
+
* Required. A name of the AgentGateway to get. Must be in the format `projects/x/locations/x/agentGateways/x`.
|
|
2613
3592
|
*/
|
|
2614
3593
|
name?: string;
|
|
3594
|
+
}
|
|
3595
|
+
export interface Params$Resource$Projects$Locations$Agentgateways$List extends StandardParameters {
|
|
2615
3596
|
/**
|
|
2616
|
-
*
|
|
3597
|
+
* Optional. Maximum number of AgentGateways to return per call.
|
|
2617
3598
|
*/
|
|
2618
3599
|
pageSize?: number;
|
|
2619
3600
|
/**
|
|
2620
|
-
*
|
|
3601
|
+
* 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
3602
|
*/
|
|
2622
3603
|
pageToken?: string;
|
|
3604
|
+
/**
|
|
3605
|
+
* Required. The project and location from which the AgentGateways should be listed, specified in the format `projects/x/locations/x`.
|
|
3606
|
+
*/
|
|
3607
|
+
parent?: string;
|
|
3608
|
+
/**
|
|
3609
|
+
* 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.
|
|
3610
|
+
*/
|
|
3611
|
+
returnPartialSuccess?: boolean;
|
|
3612
|
+
}
|
|
3613
|
+
export interface Params$Resource$Projects$Locations$Agentgateways$Patch extends StandardParameters {
|
|
3614
|
+
/**
|
|
3615
|
+
* Identifier. Name of the AgentGateway resource. It matches pattern `projects/x/locations/x/agentGateways/`.
|
|
3616
|
+
*/
|
|
3617
|
+
name?: string;
|
|
3618
|
+
/**
|
|
3619
|
+
* 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.
|
|
3620
|
+
*/
|
|
3621
|
+
updateMask?: string;
|
|
3622
|
+
|
|
3623
|
+
/**
|
|
3624
|
+
* Request body metadata
|
|
3625
|
+
*/
|
|
3626
|
+
requestBody?: Schema$AgentGateway;
|
|
2623
3627
|
}
|
|
2624
3628
|
|
|
2625
3629
|
export class Resource$Projects$Locations$Authzextensions {
|
|
@@ -2674,6 +3678,7 @@ export namespace networkservices_v1beta1 {
|
|
|
2674
3678
|
* // "createTime": "my_createTime",
|
|
2675
3679
|
* // "description": "my_description",
|
|
2676
3680
|
* // "failOpen": false,
|
|
3681
|
+
* // "forwardAttributes": [],
|
|
2677
3682
|
* // "forwardHeaders": [],
|
|
2678
3683
|
* // "labels": {},
|
|
2679
3684
|
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
@@ -2979,6 +3984,7 @@ export namespace networkservices_v1beta1 {
|
|
|
2979
3984
|
* // "createTime": "my_createTime",
|
|
2980
3985
|
* // "description": "my_description",
|
|
2981
3986
|
* // "failOpen": false,
|
|
3987
|
+
* // "forwardAttributes": [],
|
|
2982
3988
|
* // "forwardHeaders": [],
|
|
2983
3989
|
* // "labels": {},
|
|
2984
3990
|
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
@@ -3282,6 +4288,7 @@ export namespace networkservices_v1beta1 {
|
|
|
3282
4288
|
* // "createTime": "my_createTime",
|
|
3283
4289
|
* // "description": "my_description",
|
|
3284
4290
|
* // "failOpen": false,
|
|
4291
|
+
* // "forwardAttributes": [],
|
|
3285
4292
|
* // "forwardHeaders": [],
|
|
3286
4293
|
* // "labels": {},
|
|
3287
4294
|
* // "loadBalancingScheme": "my_loadBalancingScheme",
|
|
@@ -4359,6 +5366,8 @@ export namespace networkservices_v1beta1 {
|
|
|
4359
5366
|
* // request body parameters
|
|
4360
5367
|
* // {
|
|
4361
5368
|
* // "addresses": [],
|
|
5369
|
+
* // "allPorts": false,
|
|
5370
|
+
* // "allowGlobalAccess": false,
|
|
4362
5371
|
* // "certificateUrls": [],
|
|
4363
5372
|
* // "createTime": "my_createTime",
|
|
4364
5373
|
* // "description": "my_description",
|
|
@@ -4665,6 +5674,8 @@ export namespace networkservices_v1beta1 {
|
|
|
4665
5674
|
* // Example response
|
|
4666
5675
|
* // {
|
|
4667
5676
|
* // "addresses": [],
|
|
5677
|
+
* // "allPorts": false,
|
|
5678
|
+
* // "allowGlobalAccess": false,
|
|
4668
5679
|
* // "certificateUrls": [],
|
|
4669
5680
|
* // "createTime": "my_createTime",
|
|
4670
5681
|
* // "description": "my_description",
|
|
@@ -4965,6 +5976,8 @@ export namespace networkservices_v1beta1 {
|
|
|
4965
5976
|
* // request body parameters
|
|
4966
5977
|
* // {
|
|
4967
5978
|
* // "addresses": [],
|
|
5979
|
+
* // "allPorts": false,
|
|
5980
|
+
* // "allowGlobalAccess": false,
|
|
4968
5981
|
* // "certificateUrls": [],
|
|
4969
5982
|
* // "createTime": "my_createTime",
|
|
4970
5983
|
* // "description": "my_description",
|
|
@@ -6328,6 +7341,8 @@ export namespace networkservices_v1beta1 {
|
|
|
6328
7341
|
* httpRouteId: 'placeholder-value',
|
|
6329
7342
|
* // Required. The parent resource of the HttpRoute. Must be in the format `projects/x/locations/x`.
|
|
6330
7343
|
* parent: 'projects/my-project/locations/my-location',
|
|
7344
|
+
* // Optional. Idempotent request UUID.
|
|
7345
|
+
* requestId: 'placeholder-value',
|
|
6331
7346
|
*
|
|
6332
7347
|
* // Request body metadata
|
|
6333
7348
|
* requestBody: {
|
|
@@ -6768,6 +7783,8 @@ export namespace networkservices_v1beta1 {
|
|
|
6768
7783
|
*
|
|
6769
7784
|
* // Do the magic
|
|
6770
7785
|
* const res = await networkservices.projects.locations.httpRoutes.list({
|
|
7786
|
+
* // Optional. Filter expression to restrict the list.
|
|
7787
|
+
* filter: 'placeholder-value',
|
|
6771
7788
|
* // Maximum number of HttpRoutes to return per call.
|
|
6772
7789
|
* pageSize: 'placeholder-value',
|
|
6773
7790
|
* // 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 +8070,10 @@ export namespace networkservices_v1beta1 {
|
|
|
7053
8070
|
* Required. The parent resource of the HttpRoute. Must be in the format `projects/x/locations/x`.
|
|
7054
8071
|
*/
|
|
7055
8072
|
parent?: string;
|
|
8073
|
+
/**
|
|
8074
|
+
* Optional. Idempotent request UUID.
|
|
8075
|
+
*/
|
|
8076
|
+
requestId?: string;
|
|
7056
8077
|
|
|
7057
8078
|
/**
|
|
7058
8079
|
* Request body metadata
|
|
@@ -7072,6 +8093,10 @@ export namespace networkservices_v1beta1 {
|
|
|
7072
8093
|
name?: string;
|
|
7073
8094
|
}
|
|
7074
8095
|
export interface Params$Resource$Projects$Locations$Httproutes$List extends StandardParameters {
|
|
8096
|
+
/**
|
|
8097
|
+
* Optional. Filter expression to restrict the list.
|
|
8098
|
+
*/
|
|
8099
|
+
filter?: string;
|
|
7075
8100
|
/**
|
|
7076
8101
|
* Maximum number of HttpRoutes to return per call.
|
|
7077
8102
|
*/
|
|
@@ -14736,6 +15761,7 @@ export namespace networkservices_v1beta1 {
|
|
|
14736
15761
|
* // "name": "my_name",
|
|
14737
15762
|
* // "rules": [],
|
|
14738
15763
|
* // "selfLink": "my_selfLink",
|
|
15764
|
+
* // "targetProxies": [],
|
|
14739
15765
|
* // "updateTime": "my_updateTime"
|
|
14740
15766
|
* // }
|
|
14741
15767
|
* },
|
|
@@ -15033,6 +16059,7 @@ export namespace networkservices_v1beta1 {
|
|
|
15033
16059
|
* // "name": "my_name",
|
|
15034
16060
|
* // "rules": [],
|
|
15035
16061
|
* // "selfLink": "my_selfLink",
|
|
16062
|
+
* // "targetProxies": [],
|
|
15036
16063
|
* // "updateTime": "my_updateTime"
|
|
15037
16064
|
* // }
|
|
15038
16065
|
* }
|
|
@@ -15326,6 +16353,7 @@ export namespace networkservices_v1beta1 {
|
|
|
15326
16353
|
* // "name": "my_name",
|
|
15327
16354
|
* // "rules": [],
|
|
15328
16355
|
* // "selfLink": "my_selfLink",
|
|
16356
|
+
* // "targetProxies": [],
|
|
15329
16357
|
* // "updateTime": "my_updateTime"
|
|
15330
16358
|
* // }
|
|
15331
16359
|
* },
|