@googleapis/networkservices 33.0.0 → 34.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +4194 -1963
- package/build/v1.js +979 -285
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +548 -8
- package/build/v1beta1.js +175 -0
- package/build/v1beta1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +7344 -3582
- package/v1beta1.ts +1076 -207
package/build/v1beta1.d.ts
CHANGED
|
@@ -70,10 +70,57 @@ export declare namespace networkservices_v1beta1 {
|
|
|
70
70
|
projects: Resource$Projects;
|
|
71
71
|
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* AgentConnectivityTemplate represents a reusable network configuration.
|
|
75
|
+
*/
|
|
76
|
+
export interface Schema$AgentConnectivityTemplate {
|
|
77
|
+
/**
|
|
78
|
+
* Required. Immutable. The path of the access. Maps roughly to ingress/egress, though we keep CLIENT_TO_AGENT and AGENT_TO_ANYWHERE as carryovers from Agent Gateway's original resource model. The path is immutable once set. Exactly one path can be set.
|
|
79
|
+
*/
|
|
80
|
+
accessPath?: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* Optional. The types of network access provided to the gateway. Both PUBLIC and PRIVATE can be configured.
|
|
83
|
+
*/
|
|
84
|
+
accessTypes?: string[] | null;
|
|
85
|
+
/**
|
|
86
|
+
* Output only. The timestamp when the resource was created.
|
|
87
|
+
*/
|
|
88
|
+
createTime?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* Optional. A free-text description of the resource. Max length 1024 characters.
|
|
91
|
+
*/
|
|
92
|
+
description?: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* Optional. Configuration for egress network traffic.
|
|
95
|
+
*/
|
|
96
|
+
egressNetworkConfig?: Schema$EgressNetworkConfig;
|
|
97
|
+
/**
|
|
98
|
+
* 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.
|
|
99
|
+
*/
|
|
100
|
+
etag?: string | null;
|
|
101
|
+
/**
|
|
102
|
+
* Optional. Set of label tags associated with the AgentConnectivityTemplate resource.
|
|
103
|
+
*/
|
|
104
|
+
labels?: {
|
|
105
|
+
[key: string]: string;
|
|
106
|
+
} | null;
|
|
107
|
+
/**
|
|
108
|
+
* Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern `projects/x/locations/x/agentConnectivityTemplates/`.
|
|
109
|
+
*/
|
|
110
|
+
name?: string | null;
|
|
111
|
+
/**
|
|
112
|
+
* Output only. The timestamp when the resource was updated.
|
|
113
|
+
*/
|
|
114
|
+
updateTime?: string | null;
|
|
115
|
+
}
|
|
73
116
|
/**
|
|
74
117
|
* AgentGateway represents the agent gateway resource.
|
|
75
118
|
*/
|
|
76
119
|
export interface Schema$AgentGateway {
|
|
120
|
+
/**
|
|
121
|
+
* Optional. The resource name of the AgentConnectivityTemplate. Format: projects/{project\}/locations/{location\}/agentConnectivityTemplates/{template\}
|
|
122
|
+
*/
|
|
123
|
+
agentConnectivityTemplate?: string | null;
|
|
77
124
|
/**
|
|
78
125
|
* Output only. Field for populated AgentGateway card.
|
|
79
126
|
*/
|
|
@@ -109,11 +156,11 @@ export declare namespace networkservices_v1beta1 {
|
|
|
109
156
|
*/
|
|
110
157
|
networkConfig?: Schema$AgentGatewayNetworkConfig;
|
|
111
158
|
/**
|
|
112
|
-
*
|
|
159
|
+
* Optional. Deprecated.
|
|
113
160
|
*/
|
|
114
161
|
protocols?: string[] | null;
|
|
115
162
|
/**
|
|
116
|
-
* 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\}
|
|
163
|
+
* 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\}/`
|
|
117
164
|
*/
|
|
118
165
|
registries?: string[] | null;
|
|
119
166
|
/**
|
|
@@ -198,13 +245,17 @@ export declare namespace networkservices_v1beta1 {
|
|
|
198
245
|
* Optional. A supported Google Cloud networking proxy in the Project and Location
|
|
199
246
|
*/
|
|
200
247
|
resourceUri?: string | null;
|
|
248
|
+
/**
|
|
249
|
+
* Optional. List of supported Google Cloud networking proxies in the Project and Location. resource_uris is mutually exclusive with resource_uri.
|
|
250
|
+
*/
|
|
251
|
+
resourceUris?: string[] | null;
|
|
201
252
|
}
|
|
202
253
|
/**
|
|
203
254
|
* `AuthzExtension` is a resource that allows traffic forwarding to a callout backend service to make an authorization decision.
|
|
204
255
|
*/
|
|
205
256
|
export interface Schema$AuthzExtension {
|
|
206
257
|
/**
|
|
207
|
-
* 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
|
|
258
|
+
* 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.
|
|
208
259
|
*/
|
|
209
260
|
authority?: string | null;
|
|
210
261
|
/**
|
|
@@ -234,7 +285,7 @@ export declare namespace networkservices_v1beta1 {
|
|
|
234
285
|
[key: string]: string;
|
|
235
286
|
} | null;
|
|
236
287
|
/**
|
|
237
|
-
* Optional. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme.
|
|
288
|
+
* Optional. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. The supported values are `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. You can omit this field for `AuthzExtensions` resources that don't reference a backend service. For more information, see [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).
|
|
238
289
|
*/
|
|
239
290
|
loadBalancingScheme?: string | null;
|
|
240
291
|
/**
|
|
@@ -248,7 +299,7 @@ export declare namespace networkservices_v1beta1 {
|
|
|
248
299
|
*/
|
|
249
300
|
name?: string | null;
|
|
250
301
|
/**
|
|
251
|
-
* Required. The reference to the service that runs the extension. To configure a callout extension, `service` must be a fully-qualified reference to a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project\}/
|
|
302
|
+
* Required. The reference to the service that runs the extension. To configure a callout extension: For global AuthzExtension, `service` must be a fully-qualified reference to a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project\}/global/backendServices/{backendService\}`. For regional AuthzExtension, `service` must be a fully-qualified reference to one of the following: * a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project\}/regions/{region\}/backendServices/{backendService\}`. * a fully qualified domain name that can be resolved by the Google Cloud DNS. * `iap.googleapis.com` and it can only be referenced by an AuthzPolicy with the policyProfile set to REQUEST_AUTHZ. * `modelarmor..rep.googleapis.com` and it can only be referenced by an AuthzPolicy with the policyProfile set to CONTENT_AUTHZ.
|
|
252
303
|
*/
|
|
253
304
|
service?: string | null;
|
|
254
305
|
/**
|
|
@@ -269,6 +320,37 @@ export declare namespace networkservices_v1beta1 {
|
|
|
269
320
|
*/
|
|
270
321
|
export interface Schema$CancelOperationRequest {
|
|
271
322
|
}
|
|
323
|
+
/**
|
|
324
|
+
* DNS Peering configuration.
|
|
325
|
+
*/
|
|
326
|
+
export interface Schema$DnsPeeringConfig {
|
|
327
|
+
/**
|
|
328
|
+
* Optional. The domain to peer.
|
|
329
|
+
*/
|
|
330
|
+
domain?: string | null;
|
|
331
|
+
/**
|
|
332
|
+
* Optional. The target network resource name for DNS peering. Format: projects/{project\}/global/networks/{network_id\}
|
|
333
|
+
*/
|
|
334
|
+
targetNetwork?: string | null;
|
|
335
|
+
}
|
|
336
|
+
export interface Schema$EgressNetworkConfig {
|
|
337
|
+
/**
|
|
338
|
+
* Optional. DNS Peering configuration.
|
|
339
|
+
*/
|
|
340
|
+
dnsPeeringConfig?: Schema$DnsPeeringConfig;
|
|
341
|
+
/**
|
|
342
|
+
* Optional. The network attachment resource name. Format: projects/{project\}/regions/{region\}/networkAttachments/{network_attachment_id\}
|
|
343
|
+
*/
|
|
344
|
+
networkAttachment?: string | null;
|
|
345
|
+
/**
|
|
346
|
+
* Optional. Deprecated: Use tls_config instead. The trust config resource name. Format: projects/{project\}/locations/{location\}/trustConfigs/{trust_config\}
|
|
347
|
+
*/
|
|
348
|
+
trustConfig?: string | null;
|
|
349
|
+
/**
|
|
350
|
+
* Optional. The VPC egress setting.
|
|
351
|
+
*/
|
|
352
|
+
vpcEgress?: string | null;
|
|
353
|
+
}
|
|
272
354
|
/**
|
|
273
355
|
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
274
356
|
*/
|
|
@@ -292,7 +374,7 @@ export declare namespace networkservices_v1beta1 {
|
|
|
292
374
|
*/
|
|
293
375
|
authorizationPolicy?: string | null;
|
|
294
376
|
/**
|
|
295
|
-
* Optional. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints. More specifically, it is applied to the outgoing traffic from the proxy to the endpoint. This is typically used for sidecar model where the proxy identifies itself as endpoint to the control plane, with the connection between sidecar and endpoint requiring authentication. If this field is not set, authentication is disabled(open). Applicable only when EndpointPolicyType is SIDECAR_PROXY.
|
|
377
|
+
* Optional. Deprecated: This field is not used and is a no-op. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints. More specifically, it is applied to the outgoing traffic from the proxy to the endpoint. This is typically used for sidecar model where the proxy identifies itself as endpoint to the control plane, with the connection between sidecar and endpoint requiring authentication. If this field is not set, authentication is disabled(open). Applicable only when EndpointPolicyType is SIDECAR_PROXY.
|
|
296
378
|
*/
|
|
297
379
|
clientTlsPolicy?: string | null;
|
|
298
380
|
/**
|
|
@@ -1354,6 +1436,23 @@ export declare namespace networkservices_v1beta1 {
|
|
|
1354
1436
|
*/
|
|
1355
1437
|
updateTime?: string | null;
|
|
1356
1438
|
}
|
|
1439
|
+
/**
|
|
1440
|
+
* Response returned by the ListAgentConnectivityTemplates method.
|
|
1441
|
+
*/
|
|
1442
|
+
export interface Schema$ListAgentConnectivityTemplatesResponse {
|
|
1443
|
+
/**
|
|
1444
|
+
* List of AgentConnectivityTemplate resources.
|
|
1445
|
+
*/
|
|
1446
|
+
agentConnectivityTemplates?: Schema$AgentConnectivityTemplate[];
|
|
1447
|
+
/**
|
|
1448
|
+
* 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`.
|
|
1449
|
+
*/
|
|
1450
|
+
nextPageToken?: string | null;
|
|
1451
|
+
/**
|
|
1452
|
+
* Unordered list. Unreachable resources. Populated when the request attempts to list all resources across all supported locations, while some locations are temporarily unavailable.
|
|
1453
|
+
*/
|
|
1454
|
+
unreachable?: string[] | null;
|
|
1455
|
+
}
|
|
1357
1456
|
/**
|
|
1358
1457
|
* Response returned by the ListAgentGateways method.
|
|
1359
1458
|
*/
|
|
@@ -2300,11 +2399,11 @@ export declare namespace networkservices_v1beta1 {
|
|
|
2300
2399
|
*/
|
|
2301
2400
|
enable?: boolean | null;
|
|
2302
2401
|
/**
|
|
2303
|
-
* Non-empty default. Specifies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code. This field is can be set only if logging is enabled for the plugin. If the field is not provided when logging is enabled, it is set to `INFO` by default.
|
|
2402
|
+
* Optional. Non-empty default. Specifies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code. This field is can be set only if logging is enabled for the plugin. If the field is not provided when logging is enabled, it is set to `INFO` by default.
|
|
2304
2403
|
*/
|
|
2305
2404
|
minLogLevel?: string | null;
|
|
2306
2405
|
/**
|
|
2307
|
-
* Non-empty default. Configures the sampling rate of activity logs, where `1.0` means all logged activity is reported and `0.0` means no activity is reported. A floating point value between `0.0` and `1.0` indicates that a percentage of log messages is stored. The default value when logging is enabled is `1.0`. The value of the field must be between `0` and `1` (inclusive). This field can be specified only if logging is enabled for this plugin.
|
|
2406
|
+
* Optional. Non-empty default. Configures the sampling rate of activity logs, where `1.0` means all logged activity is reported and `0.0` means no activity is reported. A floating point value between `0.0` and `1.0` indicates that a percentage of log messages is stored. The default value when logging is enabled is `1.0`. The value of the field must be between `0` and `1` (inclusive). This field can be specified only if logging is enabled for this plugin.
|
|
2308
2407
|
*/
|
|
2309
2408
|
sampleRate?: number | null;
|
|
2310
2409
|
}
|
|
@@ -2414,6 +2513,7 @@ export declare namespace networkservices_v1beta1 {
|
|
|
2414
2513
|
}
|
|
2415
2514
|
export class Resource$Projects$Locations {
|
|
2416
2515
|
context: APIRequestContext;
|
|
2516
|
+
agentConnectivityTemplates: Resource$Projects$Locations$Agentconnectivitytemplates;
|
|
2417
2517
|
agentGateways: Resource$Projects$Locations$Agentgateways;
|
|
2418
2518
|
authzExtensions: Resource$Projects$Locations$Authzextensions;
|
|
2419
2519
|
endpointPolicies: Resource$Projects$Locations$Endpointpolicies;
|
|
@@ -2594,6 +2694,443 @@ export declare namespace networkservices_v1beta1 {
|
|
|
2594
2694
|
*/
|
|
2595
2695
|
pageToken?: string;
|
|
2596
2696
|
}
|
|
2697
|
+
export class Resource$Projects$Locations$Agentconnectivitytemplates {
|
|
2698
|
+
context: APIRequestContext;
|
|
2699
|
+
constructor(context: APIRequestContext);
|
|
2700
|
+
/**
|
|
2701
|
+
* Creates a new AgentConnectivityTemplate in a given project and location.
|
|
2702
|
+
* @example
|
|
2703
|
+
* ```js
|
|
2704
|
+
* // Before running the sample:
|
|
2705
|
+
* // - Enable the API at:
|
|
2706
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
2707
|
+
* // - Login into gcloud by running:
|
|
2708
|
+
* // ```sh
|
|
2709
|
+
* // $ gcloud auth application-default login
|
|
2710
|
+
* // ```
|
|
2711
|
+
* // - Install the npm module by running:
|
|
2712
|
+
* // ```sh
|
|
2713
|
+
* // $ npm install googleapis
|
|
2714
|
+
* // ```
|
|
2715
|
+
*
|
|
2716
|
+
* const {google} = require('googleapis');
|
|
2717
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
2718
|
+
*
|
|
2719
|
+
* async function main() {
|
|
2720
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2721
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2722
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2723
|
+
* });
|
|
2724
|
+
*
|
|
2725
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2726
|
+
* const authClient = await auth.getClient();
|
|
2727
|
+
* google.options({auth: authClient});
|
|
2728
|
+
*
|
|
2729
|
+
* // Do the magic
|
|
2730
|
+
* const res =
|
|
2731
|
+
* await networkservices.projects.locations.agentConnectivityTemplates.create({
|
|
2732
|
+
* // Required. Short name of the AgentConnectivityTemplate resource to be created.
|
|
2733
|
+
* agentConnectivityTemplateId: 'placeholder-value',
|
|
2734
|
+
* // Required. The parent resource of the AgentConnectivityTemplate. Must be in the format `projects/x/locations/x`.
|
|
2735
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
2736
|
+
*
|
|
2737
|
+
* // Request body metadata
|
|
2738
|
+
* requestBody: {
|
|
2739
|
+
* // request body parameters
|
|
2740
|
+
* // {
|
|
2741
|
+
* // "accessPath": "my_accessPath",
|
|
2742
|
+
* // "accessTypes": [],
|
|
2743
|
+
* // "createTime": "my_createTime",
|
|
2744
|
+
* // "description": "my_description",
|
|
2745
|
+
* // "egressNetworkConfig": {},
|
|
2746
|
+
* // "etag": "my_etag",
|
|
2747
|
+
* // "labels": {},
|
|
2748
|
+
* // "name": "my_name",
|
|
2749
|
+
* // "updateTime": "my_updateTime"
|
|
2750
|
+
* // }
|
|
2751
|
+
* },
|
|
2752
|
+
* });
|
|
2753
|
+
* console.log(res.data);
|
|
2754
|
+
*
|
|
2755
|
+
* // Example response
|
|
2756
|
+
* // {
|
|
2757
|
+
* // "done": false,
|
|
2758
|
+
* // "error": {},
|
|
2759
|
+
* // "metadata": {},
|
|
2760
|
+
* // "name": "my_name",
|
|
2761
|
+
* // "response": {}
|
|
2762
|
+
* // }
|
|
2763
|
+
* }
|
|
2764
|
+
*
|
|
2765
|
+
* main().catch(e => {
|
|
2766
|
+
* console.error(e);
|
|
2767
|
+
* throw e;
|
|
2768
|
+
* });
|
|
2769
|
+
*
|
|
2770
|
+
* ```
|
|
2771
|
+
*
|
|
2772
|
+
* @param params - Parameters for request
|
|
2773
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2774
|
+
* @param callback - Optional callback that handles the response.
|
|
2775
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2776
|
+
*/
|
|
2777
|
+
create(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2778
|
+
create(params?: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
2779
|
+
create(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2780
|
+
create(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2781
|
+
create(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Create, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2782
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2783
|
+
/**
|
|
2784
|
+
* Deletes a single AgentConnectivityTemplate.
|
|
2785
|
+
* @example
|
|
2786
|
+
* ```js
|
|
2787
|
+
* // Before running the sample:
|
|
2788
|
+
* // - Enable the API at:
|
|
2789
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
2790
|
+
* // - Login into gcloud by running:
|
|
2791
|
+
* // ```sh
|
|
2792
|
+
* // $ gcloud auth application-default login
|
|
2793
|
+
* // ```
|
|
2794
|
+
* // - Install the npm module by running:
|
|
2795
|
+
* // ```sh
|
|
2796
|
+
* // $ npm install googleapis
|
|
2797
|
+
* // ```
|
|
2798
|
+
*
|
|
2799
|
+
* const {google} = require('googleapis');
|
|
2800
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
2801
|
+
*
|
|
2802
|
+
* async function main() {
|
|
2803
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2804
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2805
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2806
|
+
* });
|
|
2807
|
+
*
|
|
2808
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2809
|
+
* const authClient = await auth.getClient();
|
|
2810
|
+
* google.options({auth: authClient});
|
|
2811
|
+
*
|
|
2812
|
+
* // Do the magic
|
|
2813
|
+
* const res =
|
|
2814
|
+
* await networkservices.projects.locations.agentConnectivityTemplates.delete({
|
|
2815
|
+
* // Optional. The etag of the AgentConnectivityTemplate to delete.
|
|
2816
|
+
* etag: 'placeholder-value',
|
|
2817
|
+
* // Required. A name of the AgentConnectivityTemplate to delete. Must be in the format `projects/x/locations/x/agentConnectivityTemplates/x`.
|
|
2818
|
+
* name: 'projects/my-project/locations/my-location/agentConnectivityTemplates/my-agentConnectivityTemplate',
|
|
2819
|
+
* });
|
|
2820
|
+
* console.log(res.data);
|
|
2821
|
+
*
|
|
2822
|
+
* // Example response
|
|
2823
|
+
* // {
|
|
2824
|
+
* // "done": false,
|
|
2825
|
+
* // "error": {},
|
|
2826
|
+
* // "metadata": {},
|
|
2827
|
+
* // "name": "my_name",
|
|
2828
|
+
* // "response": {}
|
|
2829
|
+
* // }
|
|
2830
|
+
* }
|
|
2831
|
+
*
|
|
2832
|
+
* main().catch(e => {
|
|
2833
|
+
* console.error(e);
|
|
2834
|
+
* throw e;
|
|
2835
|
+
* });
|
|
2836
|
+
*
|
|
2837
|
+
* ```
|
|
2838
|
+
*
|
|
2839
|
+
* @param params - Parameters for request
|
|
2840
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2841
|
+
* @param callback - Optional callback that handles the response.
|
|
2842
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2843
|
+
*/
|
|
2844
|
+
delete(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2845
|
+
delete(params?: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
2846
|
+
delete(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2847
|
+
delete(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2848
|
+
delete(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2849
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2850
|
+
/**
|
|
2851
|
+
* Gets details of a single AgentConnectivityTemplate.
|
|
2852
|
+
* @example
|
|
2853
|
+
* ```js
|
|
2854
|
+
* // Before running the sample:
|
|
2855
|
+
* // - Enable the API at:
|
|
2856
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
2857
|
+
* // - Login into gcloud by running:
|
|
2858
|
+
* // ```sh
|
|
2859
|
+
* // $ gcloud auth application-default login
|
|
2860
|
+
* // ```
|
|
2861
|
+
* // - Install the npm module by running:
|
|
2862
|
+
* // ```sh
|
|
2863
|
+
* // $ npm install googleapis
|
|
2864
|
+
* // ```
|
|
2865
|
+
*
|
|
2866
|
+
* const {google} = require('googleapis');
|
|
2867
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
2868
|
+
*
|
|
2869
|
+
* async function main() {
|
|
2870
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2871
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2872
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2873
|
+
* });
|
|
2874
|
+
*
|
|
2875
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2876
|
+
* const authClient = await auth.getClient();
|
|
2877
|
+
* google.options({auth: authClient});
|
|
2878
|
+
*
|
|
2879
|
+
* // Do the magic
|
|
2880
|
+
* const res =
|
|
2881
|
+
* await networkservices.projects.locations.agentConnectivityTemplates.get({
|
|
2882
|
+
* // Required. A name of the AgentConnectivityTemplate to get. Must be in the format `projects/x/locations/x/agentConnectivityTemplates/x`.
|
|
2883
|
+
* name: 'projects/my-project/locations/my-location/agentConnectivityTemplates/my-agentConnectivityTemplate',
|
|
2884
|
+
* });
|
|
2885
|
+
* console.log(res.data);
|
|
2886
|
+
*
|
|
2887
|
+
* // Example response
|
|
2888
|
+
* // {
|
|
2889
|
+
* // "accessPath": "my_accessPath",
|
|
2890
|
+
* // "accessTypes": [],
|
|
2891
|
+
* // "createTime": "my_createTime",
|
|
2892
|
+
* // "description": "my_description",
|
|
2893
|
+
* // "egressNetworkConfig": {},
|
|
2894
|
+
* // "etag": "my_etag",
|
|
2895
|
+
* // "labels": {},
|
|
2896
|
+
* // "name": "my_name",
|
|
2897
|
+
* // "updateTime": "my_updateTime"
|
|
2898
|
+
* // }
|
|
2899
|
+
* }
|
|
2900
|
+
*
|
|
2901
|
+
* main().catch(e => {
|
|
2902
|
+
* console.error(e);
|
|
2903
|
+
* throw e;
|
|
2904
|
+
* });
|
|
2905
|
+
*
|
|
2906
|
+
* ```
|
|
2907
|
+
*
|
|
2908
|
+
* @param params - Parameters for request
|
|
2909
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2910
|
+
* @param callback - Optional callback that handles the response.
|
|
2911
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2912
|
+
*/
|
|
2913
|
+
get(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2914
|
+
get(params?: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AgentConnectivityTemplate>>;
|
|
2915
|
+
get(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2916
|
+
get(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Get, options: MethodOptions | BodyResponseCallback<Schema$AgentConnectivityTemplate>, callback: BodyResponseCallback<Schema$AgentConnectivityTemplate>): void;
|
|
2917
|
+
get(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Get, callback: BodyResponseCallback<Schema$AgentConnectivityTemplate>): void;
|
|
2918
|
+
get(callback: BodyResponseCallback<Schema$AgentConnectivityTemplate>): void;
|
|
2919
|
+
/**
|
|
2920
|
+
* Lists AgentConnectivityTemplates in a given project and location.
|
|
2921
|
+
* @example
|
|
2922
|
+
* ```js
|
|
2923
|
+
* // Before running the sample:
|
|
2924
|
+
* // - Enable the API at:
|
|
2925
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
2926
|
+
* // - Login into gcloud by running:
|
|
2927
|
+
* // ```sh
|
|
2928
|
+
* // $ gcloud auth application-default login
|
|
2929
|
+
* // ```
|
|
2930
|
+
* // - Install the npm module by running:
|
|
2931
|
+
* // ```sh
|
|
2932
|
+
* // $ npm install googleapis
|
|
2933
|
+
* // ```
|
|
2934
|
+
*
|
|
2935
|
+
* const {google} = require('googleapis');
|
|
2936
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
2937
|
+
*
|
|
2938
|
+
* async function main() {
|
|
2939
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2940
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2941
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2942
|
+
* });
|
|
2943
|
+
*
|
|
2944
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2945
|
+
* const authClient = await auth.getClient();
|
|
2946
|
+
* google.options({auth: authClient});
|
|
2947
|
+
*
|
|
2948
|
+
* // Do the magic
|
|
2949
|
+
* const res =
|
|
2950
|
+
* await networkservices.projects.locations.agentConnectivityTemplates.list({
|
|
2951
|
+
* // Optional. Maximum number of AgentConnectivityTemplates to return per call.
|
|
2952
|
+
* pageSize: 'placeholder-value',
|
|
2953
|
+
* // Optional. The value returned by the last `ListAgentConnectivityTemplatesResponse` Indicates that this is a continuation of a prior `ListAgentConnectivityTemplates` call, and that the system should return the next page of data.
|
|
2954
|
+
* pageToken: 'placeholder-value',
|
|
2955
|
+
* // Required. The project and location from which the AgentConnectivityTemplates should be listed, specified in the format `projects/x/locations/x`.
|
|
2956
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
2957
|
+
* // 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.
|
|
2958
|
+
* returnPartialSuccess: 'placeholder-value',
|
|
2959
|
+
* });
|
|
2960
|
+
* console.log(res.data);
|
|
2961
|
+
*
|
|
2962
|
+
* // Example response
|
|
2963
|
+
* // {
|
|
2964
|
+
* // "agentConnectivityTemplates": [],
|
|
2965
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
2966
|
+
* // "unreachable": []
|
|
2967
|
+
* // }
|
|
2968
|
+
* }
|
|
2969
|
+
*
|
|
2970
|
+
* main().catch(e => {
|
|
2971
|
+
* console.error(e);
|
|
2972
|
+
* throw e;
|
|
2973
|
+
* });
|
|
2974
|
+
*
|
|
2975
|
+
* ```
|
|
2976
|
+
*
|
|
2977
|
+
* @param params - Parameters for request
|
|
2978
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2979
|
+
* @param callback - Optional callback that handles the response.
|
|
2980
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2981
|
+
*/
|
|
2982
|
+
list(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2983
|
+
list(params?: Params$Resource$Projects$Locations$Agentconnectivitytemplates$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListAgentConnectivityTemplatesResponse>>;
|
|
2984
|
+
list(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2985
|
+
list(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$List, options: MethodOptions | BodyResponseCallback<Schema$ListAgentConnectivityTemplatesResponse>, callback: BodyResponseCallback<Schema$ListAgentConnectivityTemplatesResponse>): void;
|
|
2986
|
+
list(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$List, callback: BodyResponseCallback<Schema$ListAgentConnectivityTemplatesResponse>): void;
|
|
2987
|
+
list(callback: BodyResponseCallback<Schema$ListAgentConnectivityTemplatesResponse>): void;
|
|
2988
|
+
/**
|
|
2989
|
+
* Updates the parameters of a single AgentConnectivityTemplate.
|
|
2990
|
+
* @example
|
|
2991
|
+
* ```js
|
|
2992
|
+
* // Before running the sample:
|
|
2993
|
+
* // - Enable the API at:
|
|
2994
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
2995
|
+
* // - Login into gcloud by running:
|
|
2996
|
+
* // ```sh
|
|
2997
|
+
* // $ gcloud auth application-default login
|
|
2998
|
+
* // ```
|
|
2999
|
+
* // - Install the npm module by running:
|
|
3000
|
+
* // ```sh
|
|
3001
|
+
* // $ npm install googleapis
|
|
3002
|
+
* // ```
|
|
3003
|
+
*
|
|
3004
|
+
* const {google} = require('googleapis');
|
|
3005
|
+
* const networkservices = google.networkservices('v1beta1');
|
|
3006
|
+
*
|
|
3007
|
+
* async function main() {
|
|
3008
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3009
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3010
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3011
|
+
* });
|
|
3012
|
+
*
|
|
3013
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3014
|
+
* const authClient = await auth.getClient();
|
|
3015
|
+
* google.options({auth: authClient});
|
|
3016
|
+
*
|
|
3017
|
+
* // Do the magic
|
|
3018
|
+
* const res =
|
|
3019
|
+
* await networkservices.projects.locations.agentConnectivityTemplates.patch({
|
|
3020
|
+
* // Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern `projects/x/locations/x/agentConnectivityTemplates/`.
|
|
3021
|
+
* name: 'projects/my-project/locations/my-location/agentConnectivityTemplates/my-agentConnectivityTemplate',
|
|
3022
|
+
* // Optional. Field mask is used to specify the fields to be overwritten in the AgentConnectivityTemplate 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.
|
|
3023
|
+
* updateMask: 'placeholder-value',
|
|
3024
|
+
*
|
|
3025
|
+
* // Request body metadata
|
|
3026
|
+
* requestBody: {
|
|
3027
|
+
* // request body parameters
|
|
3028
|
+
* // {
|
|
3029
|
+
* // "accessPath": "my_accessPath",
|
|
3030
|
+
* // "accessTypes": [],
|
|
3031
|
+
* // "createTime": "my_createTime",
|
|
3032
|
+
* // "description": "my_description",
|
|
3033
|
+
* // "egressNetworkConfig": {},
|
|
3034
|
+
* // "etag": "my_etag",
|
|
3035
|
+
* // "labels": {},
|
|
3036
|
+
* // "name": "my_name",
|
|
3037
|
+
* // "updateTime": "my_updateTime"
|
|
3038
|
+
* // }
|
|
3039
|
+
* },
|
|
3040
|
+
* });
|
|
3041
|
+
* console.log(res.data);
|
|
3042
|
+
*
|
|
3043
|
+
* // Example response
|
|
3044
|
+
* // {
|
|
3045
|
+
* // "done": false,
|
|
3046
|
+
* // "error": {},
|
|
3047
|
+
* // "metadata": {},
|
|
3048
|
+
* // "name": "my_name",
|
|
3049
|
+
* // "response": {}
|
|
3050
|
+
* // }
|
|
3051
|
+
* }
|
|
3052
|
+
*
|
|
3053
|
+
* main().catch(e => {
|
|
3054
|
+
* console.error(e);
|
|
3055
|
+
* throw e;
|
|
3056
|
+
* });
|
|
3057
|
+
*
|
|
3058
|
+
* ```
|
|
3059
|
+
*
|
|
3060
|
+
* @param params - Parameters for request
|
|
3061
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3062
|
+
* @param callback - Optional callback that handles the response.
|
|
3063
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3064
|
+
*/
|
|
3065
|
+
patch(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3066
|
+
patch(params?: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
3067
|
+
patch(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3068
|
+
patch(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3069
|
+
patch(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3070
|
+
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3071
|
+
}
|
|
3072
|
+
export interface Params$Resource$Projects$Locations$Agentconnectivitytemplates$Create extends StandardParameters {
|
|
3073
|
+
/**
|
|
3074
|
+
* Required. Short name of the AgentConnectivityTemplate resource to be created.
|
|
3075
|
+
*/
|
|
3076
|
+
agentConnectivityTemplateId?: string;
|
|
3077
|
+
/**
|
|
3078
|
+
* Required. The parent resource of the AgentConnectivityTemplate. Must be in the format `projects/x/locations/x`.
|
|
3079
|
+
*/
|
|
3080
|
+
parent?: string;
|
|
3081
|
+
/**
|
|
3082
|
+
* Request body metadata
|
|
3083
|
+
*/
|
|
3084
|
+
requestBody?: Schema$AgentConnectivityTemplate;
|
|
3085
|
+
}
|
|
3086
|
+
export interface Params$Resource$Projects$Locations$Agentconnectivitytemplates$Delete extends StandardParameters {
|
|
3087
|
+
/**
|
|
3088
|
+
* Optional. The etag of the AgentConnectivityTemplate to delete.
|
|
3089
|
+
*/
|
|
3090
|
+
etag?: string;
|
|
3091
|
+
/**
|
|
3092
|
+
* Required. A name of the AgentConnectivityTemplate to delete. Must be in the format `projects/x/locations/x/agentConnectivityTemplates/x`.
|
|
3093
|
+
*/
|
|
3094
|
+
name?: string;
|
|
3095
|
+
}
|
|
3096
|
+
export interface Params$Resource$Projects$Locations$Agentconnectivitytemplates$Get extends StandardParameters {
|
|
3097
|
+
/**
|
|
3098
|
+
* Required. A name of the AgentConnectivityTemplate to get. Must be in the format `projects/x/locations/x/agentConnectivityTemplates/x`.
|
|
3099
|
+
*/
|
|
3100
|
+
name?: string;
|
|
3101
|
+
}
|
|
3102
|
+
export interface Params$Resource$Projects$Locations$Agentconnectivitytemplates$List extends StandardParameters {
|
|
3103
|
+
/**
|
|
3104
|
+
* Optional. Maximum number of AgentConnectivityTemplates to return per call.
|
|
3105
|
+
*/
|
|
3106
|
+
pageSize?: number;
|
|
3107
|
+
/**
|
|
3108
|
+
* Optional. The value returned by the last `ListAgentConnectivityTemplatesResponse` Indicates that this is a continuation of a prior `ListAgentConnectivityTemplates` call, and that the system should return the next page of data.
|
|
3109
|
+
*/
|
|
3110
|
+
pageToken?: string;
|
|
3111
|
+
/**
|
|
3112
|
+
* Required. The project and location from which the AgentConnectivityTemplates should be listed, specified in the format `projects/x/locations/x`.
|
|
3113
|
+
*/
|
|
3114
|
+
parent?: string;
|
|
3115
|
+
/**
|
|
3116
|
+
* 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.
|
|
3117
|
+
*/
|
|
3118
|
+
returnPartialSuccess?: boolean;
|
|
3119
|
+
}
|
|
3120
|
+
export interface Params$Resource$Projects$Locations$Agentconnectivitytemplates$Patch extends StandardParameters {
|
|
3121
|
+
/**
|
|
3122
|
+
* Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern `projects/x/locations/x/agentConnectivityTemplates/`.
|
|
3123
|
+
*/
|
|
3124
|
+
name?: string;
|
|
3125
|
+
/**
|
|
3126
|
+
* Optional. Field mask is used to specify the fields to be overwritten in the AgentConnectivityTemplate 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.
|
|
3127
|
+
*/
|
|
3128
|
+
updateMask?: string;
|
|
3129
|
+
/**
|
|
3130
|
+
* Request body metadata
|
|
3131
|
+
*/
|
|
3132
|
+
requestBody?: Schema$AgentConnectivityTemplate;
|
|
3133
|
+
}
|
|
2597
3134
|
export class Resource$Projects$Locations$Agentgateways {
|
|
2598
3135
|
context: APIRequestContext;
|
|
2599
3136
|
constructor(context: APIRequestContext);
|
|
@@ -2637,6 +3174,7 @@ export declare namespace networkservices_v1beta1 {
|
|
|
2637
3174
|
* requestBody: {
|
|
2638
3175
|
* // request body parameters
|
|
2639
3176
|
* // {
|
|
3177
|
+
* // "agentConnectivityTemplate": "my_agentConnectivityTemplate",
|
|
2640
3178
|
* // "agentGatewayCard": {},
|
|
2641
3179
|
* // "createTime": "my_createTime",
|
|
2642
3180
|
* // "description": "my_description",
|
|
@@ -2786,6 +3324,7 @@ export declare namespace networkservices_v1beta1 {
|
|
|
2786
3324
|
*
|
|
2787
3325
|
* // Example response
|
|
2788
3326
|
* // {
|
|
3327
|
+
* // "agentConnectivityTemplate": "my_agentConnectivityTemplate",
|
|
2789
3328
|
* // "agentGatewayCard": {},
|
|
2790
3329
|
* // "createTime": "my_createTime",
|
|
2791
3330
|
* // "description": "my_description",
|
|
@@ -2927,6 +3466,7 @@ export declare namespace networkservices_v1beta1 {
|
|
|
2927
3466
|
* requestBody: {
|
|
2928
3467
|
* // request body parameters
|
|
2929
3468
|
* // {
|
|
3469
|
+
* // "agentConnectivityTemplate": "my_agentConnectivityTemplate",
|
|
2930
3470
|
* // "agentGatewayCard": {},
|
|
2931
3471
|
* // "createTime": "my_createTime",
|
|
2932
3472
|
* // "description": "my_description",
|