@googleapis/networkservices 34.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 +7 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +538 -2
- package/build/v1.js +175 -0
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +538 -2
- package/build/v1beta1.js +175 -0
- package/build/v1beta1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +940 -2
- package/v1beta1.ts +938 -2
package/build/v1.d.ts
CHANGED
|
@@ -70,10 +70,57 @@ export declare namespace networkservices_v1 {
|
|
|
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
|
*/
|
|
@@ -316,6 +363,37 @@ export declare namespace networkservices_v1 {
|
|
|
316
363
|
*/
|
|
317
364
|
export interface Schema$CancelOperationRequest {
|
|
318
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* DNS Peering configuration.
|
|
368
|
+
*/
|
|
369
|
+
export interface Schema$DnsPeeringConfig {
|
|
370
|
+
/**
|
|
371
|
+
* Optional. The domain to peer.
|
|
372
|
+
*/
|
|
373
|
+
domain?: string | null;
|
|
374
|
+
/**
|
|
375
|
+
* Optional. The target network resource name for DNS peering. Format: projects/{project\}/global/networks/{network_id\}
|
|
376
|
+
*/
|
|
377
|
+
targetNetwork?: string | null;
|
|
378
|
+
}
|
|
379
|
+
export interface Schema$EgressNetworkConfig {
|
|
380
|
+
/**
|
|
381
|
+
* Optional. DNS Peering configuration.
|
|
382
|
+
*/
|
|
383
|
+
dnsPeeringConfig?: Schema$DnsPeeringConfig;
|
|
384
|
+
/**
|
|
385
|
+
* Optional. The network attachment resource name. Format: projects/{project\}/regions/{region\}/networkAttachments/{network_attachment_id\}
|
|
386
|
+
*/
|
|
387
|
+
networkAttachment?: string | null;
|
|
388
|
+
/**
|
|
389
|
+
* Optional. Deprecated: Use tls_config instead. The trust config resource name. Format: projects/{project\}/locations/{location\}/trustConfigs/{trust_config\}
|
|
390
|
+
*/
|
|
391
|
+
trustConfig?: string | null;
|
|
392
|
+
/**
|
|
393
|
+
* Optional. The VPC egress setting.
|
|
394
|
+
*/
|
|
395
|
+
vpcEgress?: string | null;
|
|
396
|
+
}
|
|
319
397
|
/**
|
|
320
398
|
* 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); \}
|
|
321
399
|
*/
|
|
@@ -1401,6 +1479,23 @@ export declare namespace networkservices_v1 {
|
|
|
1401
1479
|
*/
|
|
1402
1480
|
updateTime?: string | null;
|
|
1403
1481
|
}
|
|
1482
|
+
/**
|
|
1483
|
+
* Response returned by the ListAgentConnectivityTemplates method.
|
|
1484
|
+
*/
|
|
1485
|
+
export interface Schema$ListAgentConnectivityTemplatesResponse {
|
|
1486
|
+
/**
|
|
1487
|
+
* List of AgentConnectivityTemplate resources.
|
|
1488
|
+
*/
|
|
1489
|
+
agentConnectivityTemplates?: Schema$AgentConnectivityTemplate[];
|
|
1490
|
+
/**
|
|
1491
|
+
* 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`.
|
|
1492
|
+
*/
|
|
1493
|
+
nextPageToken?: string | null;
|
|
1494
|
+
/**
|
|
1495
|
+
* Unordered list. Unreachable resources. Populated when the request attempts to list all resources across all supported locations, while some locations are temporarily unavailable.
|
|
1496
|
+
*/
|
|
1497
|
+
unreachable?: string[] | null;
|
|
1498
|
+
}
|
|
1404
1499
|
/**
|
|
1405
1500
|
* Response returned by the ListAgentGateways method.
|
|
1406
1501
|
*/
|
|
@@ -2506,11 +2601,11 @@ export declare namespace networkservices_v1 {
|
|
|
2506
2601
|
*/
|
|
2507
2602
|
enable?: boolean | null;
|
|
2508
2603
|
/**
|
|
2509
|
-
* 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.
|
|
2604
|
+
* 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.
|
|
2510
2605
|
*/
|
|
2511
2606
|
minLogLevel?: string | null;
|
|
2512
2607
|
/**
|
|
2513
|
-
* 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.
|
|
2608
|
+
* 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.
|
|
2514
2609
|
*/
|
|
2515
2610
|
sampleRate?: number | null;
|
|
2516
2611
|
}
|
|
@@ -2620,6 +2715,7 @@ export declare namespace networkservices_v1 {
|
|
|
2620
2715
|
}
|
|
2621
2716
|
export class Resource$Projects$Locations {
|
|
2622
2717
|
context: APIRequestContext;
|
|
2718
|
+
agentConnectivityTemplates: Resource$Projects$Locations$Agentconnectivitytemplates;
|
|
2623
2719
|
agentGateways: Resource$Projects$Locations$Agentgateways;
|
|
2624
2720
|
authzExtensions: Resource$Projects$Locations$Authzextensions;
|
|
2625
2721
|
edgeCacheKeysets: Resource$Projects$Locations$Edgecachekeysets;
|
|
@@ -2804,6 +2900,443 @@ export declare namespace networkservices_v1 {
|
|
|
2804
2900
|
*/
|
|
2805
2901
|
pageToken?: string;
|
|
2806
2902
|
}
|
|
2903
|
+
export class Resource$Projects$Locations$Agentconnectivitytemplates {
|
|
2904
|
+
context: APIRequestContext;
|
|
2905
|
+
constructor(context: APIRequestContext);
|
|
2906
|
+
/**
|
|
2907
|
+
* Creates a new AgentConnectivityTemplate in a given project and location.
|
|
2908
|
+
* @example
|
|
2909
|
+
* ```js
|
|
2910
|
+
* // Before running the sample:
|
|
2911
|
+
* // - Enable the API at:
|
|
2912
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
2913
|
+
* // - Login into gcloud by running:
|
|
2914
|
+
* // ```sh
|
|
2915
|
+
* // $ gcloud auth application-default login
|
|
2916
|
+
* // ```
|
|
2917
|
+
* // - Install the npm module by running:
|
|
2918
|
+
* // ```sh
|
|
2919
|
+
* // $ npm install googleapis
|
|
2920
|
+
* // ```
|
|
2921
|
+
*
|
|
2922
|
+
* const {google} = require('googleapis');
|
|
2923
|
+
* const networkservices = google.networkservices('v1');
|
|
2924
|
+
*
|
|
2925
|
+
* async function main() {
|
|
2926
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2927
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2928
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
2929
|
+
* });
|
|
2930
|
+
*
|
|
2931
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2932
|
+
* const authClient = await auth.getClient();
|
|
2933
|
+
* google.options({auth: authClient});
|
|
2934
|
+
*
|
|
2935
|
+
* // Do the magic
|
|
2936
|
+
* const res =
|
|
2937
|
+
* await networkservices.projects.locations.agentConnectivityTemplates.create({
|
|
2938
|
+
* // Required. Short name of the AgentConnectivityTemplate resource to be created.
|
|
2939
|
+
* agentConnectivityTemplateId: 'placeholder-value',
|
|
2940
|
+
* // Required. The parent resource of the AgentConnectivityTemplate. Must be in the format `projects/x/locations/x`.
|
|
2941
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
2942
|
+
*
|
|
2943
|
+
* // Request body metadata
|
|
2944
|
+
* requestBody: {
|
|
2945
|
+
* // request body parameters
|
|
2946
|
+
* // {
|
|
2947
|
+
* // "accessPath": "my_accessPath",
|
|
2948
|
+
* // "accessTypes": [],
|
|
2949
|
+
* // "createTime": "my_createTime",
|
|
2950
|
+
* // "description": "my_description",
|
|
2951
|
+
* // "egressNetworkConfig": {},
|
|
2952
|
+
* // "etag": "my_etag",
|
|
2953
|
+
* // "labels": {},
|
|
2954
|
+
* // "name": "my_name",
|
|
2955
|
+
* // "updateTime": "my_updateTime"
|
|
2956
|
+
* // }
|
|
2957
|
+
* },
|
|
2958
|
+
* });
|
|
2959
|
+
* console.log(res.data);
|
|
2960
|
+
*
|
|
2961
|
+
* // Example response
|
|
2962
|
+
* // {
|
|
2963
|
+
* // "done": false,
|
|
2964
|
+
* // "error": {},
|
|
2965
|
+
* // "metadata": {},
|
|
2966
|
+
* // "name": "my_name",
|
|
2967
|
+
* // "response": {}
|
|
2968
|
+
* // }
|
|
2969
|
+
* }
|
|
2970
|
+
*
|
|
2971
|
+
* main().catch(e => {
|
|
2972
|
+
* console.error(e);
|
|
2973
|
+
* throw e;
|
|
2974
|
+
* });
|
|
2975
|
+
*
|
|
2976
|
+
* ```
|
|
2977
|
+
*
|
|
2978
|
+
* @param params - Parameters for request
|
|
2979
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
2980
|
+
* @param callback - Optional callback that handles the response.
|
|
2981
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
2982
|
+
*/
|
|
2983
|
+
create(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
2984
|
+
create(params?: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
2985
|
+
create(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
2986
|
+
create(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2987
|
+
create(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Create, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2988
|
+
create(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2989
|
+
/**
|
|
2990
|
+
* Deletes a single AgentConnectivityTemplate.
|
|
2991
|
+
* @example
|
|
2992
|
+
* ```js
|
|
2993
|
+
* // Before running the sample:
|
|
2994
|
+
* // - Enable the API at:
|
|
2995
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
2996
|
+
* // - Login into gcloud by running:
|
|
2997
|
+
* // ```sh
|
|
2998
|
+
* // $ gcloud auth application-default login
|
|
2999
|
+
* // ```
|
|
3000
|
+
* // - Install the npm module by running:
|
|
3001
|
+
* // ```sh
|
|
3002
|
+
* // $ npm install googleapis
|
|
3003
|
+
* // ```
|
|
3004
|
+
*
|
|
3005
|
+
* const {google} = require('googleapis');
|
|
3006
|
+
* const networkservices = google.networkservices('v1');
|
|
3007
|
+
*
|
|
3008
|
+
* async function main() {
|
|
3009
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3010
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3011
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3012
|
+
* });
|
|
3013
|
+
*
|
|
3014
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3015
|
+
* const authClient = await auth.getClient();
|
|
3016
|
+
* google.options({auth: authClient});
|
|
3017
|
+
*
|
|
3018
|
+
* // Do the magic
|
|
3019
|
+
* const res =
|
|
3020
|
+
* await networkservices.projects.locations.agentConnectivityTemplates.delete({
|
|
3021
|
+
* // Optional. The etag of the AgentConnectivityTemplate to delete.
|
|
3022
|
+
* etag: 'placeholder-value',
|
|
3023
|
+
* // Required. A name of the AgentConnectivityTemplate to delete. Must be in the format `projects/x/locations/x/agentConnectivityTemplates/x`.
|
|
3024
|
+
* name: 'projects/my-project/locations/my-location/agentConnectivityTemplates/my-agentConnectivityTemplate',
|
|
3025
|
+
* });
|
|
3026
|
+
* console.log(res.data);
|
|
3027
|
+
*
|
|
3028
|
+
* // Example response
|
|
3029
|
+
* // {
|
|
3030
|
+
* // "done": false,
|
|
3031
|
+
* // "error": {},
|
|
3032
|
+
* // "metadata": {},
|
|
3033
|
+
* // "name": "my_name",
|
|
3034
|
+
* // "response": {}
|
|
3035
|
+
* // }
|
|
3036
|
+
* }
|
|
3037
|
+
*
|
|
3038
|
+
* main().catch(e => {
|
|
3039
|
+
* console.error(e);
|
|
3040
|
+
* throw e;
|
|
3041
|
+
* });
|
|
3042
|
+
*
|
|
3043
|
+
* ```
|
|
3044
|
+
*
|
|
3045
|
+
* @param params - Parameters for request
|
|
3046
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3047
|
+
* @param callback - Optional callback that handles the response.
|
|
3048
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3049
|
+
*/
|
|
3050
|
+
delete(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3051
|
+
delete(params?: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
3052
|
+
delete(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3053
|
+
delete(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3054
|
+
delete(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3055
|
+
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3056
|
+
/**
|
|
3057
|
+
* Gets details of a single AgentConnectivityTemplate.
|
|
3058
|
+
* @example
|
|
3059
|
+
* ```js
|
|
3060
|
+
* // Before running the sample:
|
|
3061
|
+
* // - Enable the API at:
|
|
3062
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
3063
|
+
* // - Login into gcloud by running:
|
|
3064
|
+
* // ```sh
|
|
3065
|
+
* // $ gcloud auth application-default login
|
|
3066
|
+
* // ```
|
|
3067
|
+
* // - Install the npm module by running:
|
|
3068
|
+
* // ```sh
|
|
3069
|
+
* // $ npm install googleapis
|
|
3070
|
+
* // ```
|
|
3071
|
+
*
|
|
3072
|
+
* const {google} = require('googleapis');
|
|
3073
|
+
* const networkservices = google.networkservices('v1');
|
|
3074
|
+
*
|
|
3075
|
+
* async function main() {
|
|
3076
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3077
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3078
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3079
|
+
* });
|
|
3080
|
+
*
|
|
3081
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3082
|
+
* const authClient = await auth.getClient();
|
|
3083
|
+
* google.options({auth: authClient});
|
|
3084
|
+
*
|
|
3085
|
+
* // Do the magic
|
|
3086
|
+
* const res =
|
|
3087
|
+
* await networkservices.projects.locations.agentConnectivityTemplates.get({
|
|
3088
|
+
* // Required. A name of the AgentConnectivityTemplate to get. Must be in the format `projects/x/locations/x/agentConnectivityTemplates/x`.
|
|
3089
|
+
* name: 'projects/my-project/locations/my-location/agentConnectivityTemplates/my-agentConnectivityTemplate',
|
|
3090
|
+
* });
|
|
3091
|
+
* console.log(res.data);
|
|
3092
|
+
*
|
|
3093
|
+
* // Example response
|
|
3094
|
+
* // {
|
|
3095
|
+
* // "accessPath": "my_accessPath",
|
|
3096
|
+
* // "accessTypes": [],
|
|
3097
|
+
* // "createTime": "my_createTime",
|
|
3098
|
+
* // "description": "my_description",
|
|
3099
|
+
* // "egressNetworkConfig": {},
|
|
3100
|
+
* // "etag": "my_etag",
|
|
3101
|
+
* // "labels": {},
|
|
3102
|
+
* // "name": "my_name",
|
|
3103
|
+
* // "updateTime": "my_updateTime"
|
|
3104
|
+
* // }
|
|
3105
|
+
* }
|
|
3106
|
+
*
|
|
3107
|
+
* main().catch(e => {
|
|
3108
|
+
* console.error(e);
|
|
3109
|
+
* throw e;
|
|
3110
|
+
* });
|
|
3111
|
+
*
|
|
3112
|
+
* ```
|
|
3113
|
+
*
|
|
3114
|
+
* @param params - Parameters for request
|
|
3115
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3116
|
+
* @param callback - Optional callback that handles the response.
|
|
3117
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3118
|
+
*/
|
|
3119
|
+
get(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3120
|
+
get(params?: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$AgentConnectivityTemplate>>;
|
|
3121
|
+
get(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3122
|
+
get(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Get, options: MethodOptions | BodyResponseCallback<Schema$AgentConnectivityTemplate>, callback: BodyResponseCallback<Schema$AgentConnectivityTemplate>): void;
|
|
3123
|
+
get(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Get, callback: BodyResponseCallback<Schema$AgentConnectivityTemplate>): void;
|
|
3124
|
+
get(callback: BodyResponseCallback<Schema$AgentConnectivityTemplate>): void;
|
|
3125
|
+
/**
|
|
3126
|
+
* Lists AgentConnectivityTemplates in a given project and location.
|
|
3127
|
+
* @example
|
|
3128
|
+
* ```js
|
|
3129
|
+
* // Before running the sample:
|
|
3130
|
+
* // - Enable the API at:
|
|
3131
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
3132
|
+
* // - Login into gcloud by running:
|
|
3133
|
+
* // ```sh
|
|
3134
|
+
* // $ gcloud auth application-default login
|
|
3135
|
+
* // ```
|
|
3136
|
+
* // - Install the npm module by running:
|
|
3137
|
+
* // ```sh
|
|
3138
|
+
* // $ npm install googleapis
|
|
3139
|
+
* // ```
|
|
3140
|
+
*
|
|
3141
|
+
* const {google} = require('googleapis');
|
|
3142
|
+
* const networkservices = google.networkservices('v1');
|
|
3143
|
+
*
|
|
3144
|
+
* async function main() {
|
|
3145
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3146
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3147
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3148
|
+
* });
|
|
3149
|
+
*
|
|
3150
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3151
|
+
* const authClient = await auth.getClient();
|
|
3152
|
+
* google.options({auth: authClient});
|
|
3153
|
+
*
|
|
3154
|
+
* // Do the magic
|
|
3155
|
+
* const res =
|
|
3156
|
+
* await networkservices.projects.locations.agentConnectivityTemplates.list({
|
|
3157
|
+
* // Optional. Maximum number of AgentConnectivityTemplates to return per call.
|
|
3158
|
+
* pageSize: 'placeholder-value',
|
|
3159
|
+
* // 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.
|
|
3160
|
+
* pageToken: 'placeholder-value',
|
|
3161
|
+
* // Required. The project and location from which the AgentConnectivityTemplates should be listed, specified in the format `projects/x/locations/x`.
|
|
3162
|
+
* parent: 'projects/my-project/locations/my-location',
|
|
3163
|
+
* // 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.
|
|
3164
|
+
* returnPartialSuccess: 'placeholder-value',
|
|
3165
|
+
* });
|
|
3166
|
+
* console.log(res.data);
|
|
3167
|
+
*
|
|
3168
|
+
* // Example response
|
|
3169
|
+
* // {
|
|
3170
|
+
* // "agentConnectivityTemplates": [],
|
|
3171
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
3172
|
+
* // "unreachable": []
|
|
3173
|
+
* // }
|
|
3174
|
+
* }
|
|
3175
|
+
*
|
|
3176
|
+
* main().catch(e => {
|
|
3177
|
+
* console.error(e);
|
|
3178
|
+
* throw e;
|
|
3179
|
+
* });
|
|
3180
|
+
*
|
|
3181
|
+
* ```
|
|
3182
|
+
*
|
|
3183
|
+
* @param params - Parameters for request
|
|
3184
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3185
|
+
* @param callback - Optional callback that handles the response.
|
|
3186
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3187
|
+
*/
|
|
3188
|
+
list(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3189
|
+
list(params?: Params$Resource$Projects$Locations$Agentconnectivitytemplates$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListAgentConnectivityTemplatesResponse>>;
|
|
3190
|
+
list(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3191
|
+
list(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$List, options: MethodOptions | BodyResponseCallback<Schema$ListAgentConnectivityTemplatesResponse>, callback: BodyResponseCallback<Schema$ListAgentConnectivityTemplatesResponse>): void;
|
|
3192
|
+
list(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$List, callback: BodyResponseCallback<Schema$ListAgentConnectivityTemplatesResponse>): void;
|
|
3193
|
+
list(callback: BodyResponseCallback<Schema$ListAgentConnectivityTemplatesResponse>): void;
|
|
3194
|
+
/**
|
|
3195
|
+
* Updates the parameters of a single AgentConnectivityTemplate.
|
|
3196
|
+
* @example
|
|
3197
|
+
* ```js
|
|
3198
|
+
* // Before running the sample:
|
|
3199
|
+
* // - Enable the API at:
|
|
3200
|
+
* // https://console.developers.google.com/apis/api/networkservices.googleapis.com
|
|
3201
|
+
* // - Login into gcloud by running:
|
|
3202
|
+
* // ```sh
|
|
3203
|
+
* // $ gcloud auth application-default login
|
|
3204
|
+
* // ```
|
|
3205
|
+
* // - Install the npm module by running:
|
|
3206
|
+
* // ```sh
|
|
3207
|
+
* // $ npm install googleapis
|
|
3208
|
+
* // ```
|
|
3209
|
+
*
|
|
3210
|
+
* const {google} = require('googleapis');
|
|
3211
|
+
* const networkservices = google.networkservices('v1');
|
|
3212
|
+
*
|
|
3213
|
+
* async function main() {
|
|
3214
|
+
* const auth = new google.auth.GoogleAuth({
|
|
3215
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3216
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3217
|
+
* });
|
|
3218
|
+
*
|
|
3219
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
3220
|
+
* const authClient = await auth.getClient();
|
|
3221
|
+
* google.options({auth: authClient});
|
|
3222
|
+
*
|
|
3223
|
+
* // Do the magic
|
|
3224
|
+
* const res =
|
|
3225
|
+
* await networkservices.projects.locations.agentConnectivityTemplates.patch({
|
|
3226
|
+
* // Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern `projects/x/locations/x/agentConnectivityTemplates/`.
|
|
3227
|
+
* name: 'projects/my-project/locations/my-location/agentConnectivityTemplates/my-agentConnectivityTemplate',
|
|
3228
|
+
* // 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.
|
|
3229
|
+
* updateMask: 'placeholder-value',
|
|
3230
|
+
*
|
|
3231
|
+
* // Request body metadata
|
|
3232
|
+
* requestBody: {
|
|
3233
|
+
* // request body parameters
|
|
3234
|
+
* // {
|
|
3235
|
+
* // "accessPath": "my_accessPath",
|
|
3236
|
+
* // "accessTypes": [],
|
|
3237
|
+
* // "createTime": "my_createTime",
|
|
3238
|
+
* // "description": "my_description",
|
|
3239
|
+
* // "egressNetworkConfig": {},
|
|
3240
|
+
* // "etag": "my_etag",
|
|
3241
|
+
* // "labels": {},
|
|
3242
|
+
* // "name": "my_name",
|
|
3243
|
+
* // "updateTime": "my_updateTime"
|
|
3244
|
+
* // }
|
|
3245
|
+
* },
|
|
3246
|
+
* });
|
|
3247
|
+
* console.log(res.data);
|
|
3248
|
+
*
|
|
3249
|
+
* // Example response
|
|
3250
|
+
* // {
|
|
3251
|
+
* // "done": false,
|
|
3252
|
+
* // "error": {},
|
|
3253
|
+
* // "metadata": {},
|
|
3254
|
+
* // "name": "my_name",
|
|
3255
|
+
* // "response": {}
|
|
3256
|
+
* // }
|
|
3257
|
+
* }
|
|
3258
|
+
*
|
|
3259
|
+
* main().catch(e => {
|
|
3260
|
+
* console.error(e);
|
|
3261
|
+
* throw e;
|
|
3262
|
+
* });
|
|
3263
|
+
*
|
|
3264
|
+
* ```
|
|
3265
|
+
*
|
|
3266
|
+
* @param params - Parameters for request
|
|
3267
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3268
|
+
* @param callback - Optional callback that handles the response.
|
|
3269
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3270
|
+
*/
|
|
3271
|
+
patch(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
3272
|
+
patch(params?: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
3273
|
+
patch(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3274
|
+
patch(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Patch, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3275
|
+
patch(params: Params$Resource$Projects$Locations$Agentconnectivitytemplates$Patch, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3276
|
+
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3277
|
+
}
|
|
3278
|
+
export interface Params$Resource$Projects$Locations$Agentconnectivitytemplates$Create extends StandardParameters {
|
|
3279
|
+
/**
|
|
3280
|
+
* Required. Short name of the AgentConnectivityTemplate resource to be created.
|
|
3281
|
+
*/
|
|
3282
|
+
agentConnectivityTemplateId?: string;
|
|
3283
|
+
/**
|
|
3284
|
+
* Required. The parent resource of the AgentConnectivityTemplate. Must be in the format `projects/x/locations/x`.
|
|
3285
|
+
*/
|
|
3286
|
+
parent?: string;
|
|
3287
|
+
/**
|
|
3288
|
+
* Request body metadata
|
|
3289
|
+
*/
|
|
3290
|
+
requestBody?: Schema$AgentConnectivityTemplate;
|
|
3291
|
+
}
|
|
3292
|
+
export interface Params$Resource$Projects$Locations$Agentconnectivitytemplates$Delete extends StandardParameters {
|
|
3293
|
+
/**
|
|
3294
|
+
* Optional. The etag of the AgentConnectivityTemplate to delete.
|
|
3295
|
+
*/
|
|
3296
|
+
etag?: string;
|
|
3297
|
+
/**
|
|
3298
|
+
* Required. A name of the AgentConnectivityTemplate to delete. Must be in the format `projects/x/locations/x/agentConnectivityTemplates/x`.
|
|
3299
|
+
*/
|
|
3300
|
+
name?: string;
|
|
3301
|
+
}
|
|
3302
|
+
export interface Params$Resource$Projects$Locations$Agentconnectivitytemplates$Get extends StandardParameters {
|
|
3303
|
+
/**
|
|
3304
|
+
* Required. A name of the AgentConnectivityTemplate to get. Must be in the format `projects/x/locations/x/agentConnectivityTemplates/x`.
|
|
3305
|
+
*/
|
|
3306
|
+
name?: string;
|
|
3307
|
+
}
|
|
3308
|
+
export interface Params$Resource$Projects$Locations$Agentconnectivitytemplates$List extends StandardParameters {
|
|
3309
|
+
/**
|
|
3310
|
+
* Optional. Maximum number of AgentConnectivityTemplates to return per call.
|
|
3311
|
+
*/
|
|
3312
|
+
pageSize?: number;
|
|
3313
|
+
/**
|
|
3314
|
+
* 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.
|
|
3315
|
+
*/
|
|
3316
|
+
pageToken?: string;
|
|
3317
|
+
/**
|
|
3318
|
+
* Required. The project and location from which the AgentConnectivityTemplates should be listed, specified in the format `projects/x/locations/x`.
|
|
3319
|
+
*/
|
|
3320
|
+
parent?: string;
|
|
3321
|
+
/**
|
|
3322
|
+
* 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.
|
|
3323
|
+
*/
|
|
3324
|
+
returnPartialSuccess?: boolean;
|
|
3325
|
+
}
|
|
3326
|
+
export interface Params$Resource$Projects$Locations$Agentconnectivitytemplates$Patch extends StandardParameters {
|
|
3327
|
+
/**
|
|
3328
|
+
* Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern `projects/x/locations/x/agentConnectivityTemplates/`.
|
|
3329
|
+
*/
|
|
3330
|
+
name?: string;
|
|
3331
|
+
/**
|
|
3332
|
+
* 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.
|
|
3333
|
+
*/
|
|
3334
|
+
updateMask?: string;
|
|
3335
|
+
/**
|
|
3336
|
+
* Request body metadata
|
|
3337
|
+
*/
|
|
3338
|
+
requestBody?: Schema$AgentConnectivityTemplate;
|
|
3339
|
+
}
|
|
2807
3340
|
export class Resource$Projects$Locations$Agentgateways {
|
|
2808
3341
|
context: APIRequestContext;
|
|
2809
3342
|
constructor(context: APIRequestContext);
|
|
@@ -2847,6 +3380,7 @@ export declare namespace networkservices_v1 {
|
|
|
2847
3380
|
* requestBody: {
|
|
2848
3381
|
* // request body parameters
|
|
2849
3382
|
* // {
|
|
3383
|
+
* // "agentConnectivityTemplate": "my_agentConnectivityTemplate",
|
|
2850
3384
|
* // "agentGatewayCard": {},
|
|
2851
3385
|
* // "createTime": "my_createTime",
|
|
2852
3386
|
* // "description": "my_description",
|
|
@@ -2996,6 +3530,7 @@ export declare namespace networkservices_v1 {
|
|
|
2996
3530
|
*
|
|
2997
3531
|
* // Example response
|
|
2998
3532
|
* // {
|
|
3533
|
+
* // "agentConnectivityTemplate": "my_agentConnectivityTemplate",
|
|
2999
3534
|
* // "agentGatewayCard": {},
|
|
3000
3535
|
* // "createTime": "my_createTime",
|
|
3001
3536
|
* // "description": "my_description",
|
|
@@ -3137,6 +3672,7 @@ export declare namespace networkservices_v1 {
|
|
|
3137
3672
|
* requestBody: {
|
|
3138
3673
|
* // request body parameters
|
|
3139
3674
|
* // {
|
|
3675
|
+
* // "agentConnectivityTemplate": "my_agentConnectivityTemplate",
|
|
3140
3676
|
* // "agentGatewayCard": {},
|
|
3141
3677
|
* // "createTime": "my_createTime",
|
|
3142
3678
|
* // "description": "my_description",
|