@google-cloud/discoveryengine 2.1.0 → 2.3.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/README.md +13 -0
- package/build/protos/google/cloud/discoveryengine/v1/answer.proto +17 -0
- package/build/protos/google/cloud/discoveryengine/v1/chunk.proto +52 -0
- package/build/protos/google/cloud/discoveryengine/v1/cmek_config_service.proto +300 -0
- package/build/protos/google/cloud/discoveryengine/v1/common.proto +67 -0
- package/build/protos/google/cloud/discoveryengine/v1/control.proto +1 -3
- package/build/protos/google/cloud/discoveryengine/v1/conversational_search_service.proto +3 -0
- package/build/protos/google/cloud/discoveryengine/v1/data_store.proto +54 -2
- package/build/protos/google/cloud/discoveryengine/v1/data_store_service.proto +14 -0
- package/build/protos/google/cloud/discoveryengine/v1/document.proto +95 -4
- package/build/protos/google/cloud/discoveryengine/v1/document_processing_config.proto +28 -1
- package/build/protos/google/cloud/discoveryengine/v1/engine.proto +131 -6
- package/build/protos/google/cloud/discoveryengine/v1/grounded_generation_service.proto +8 -0
- package/build/protos/google/cloud/discoveryengine/v1/grounding.proto +9 -0
- package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store.proto +84 -0
- package/build/protos/google/cloud/discoveryengine/v1/identity_mapping_store_service.proto +375 -0
- package/build/protos/google/cloud/discoveryengine/v1/search_service.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1/site_search_engine.proto +6 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_license.proto +98 -0
- package/build/protos/google/cloud/discoveryengine/v1/user_license_service.proto +191 -0
- package/build/protos/protos.d.ts +5415 -578
- package/build/protos/protos.js +77830 -63391
- package/build/protos/protos.json +1537 -92
- package/build/src/index.d.ts +10 -1
- package/build/src/index.js +8 -22
- package/build/src/v1/cmek_config_service_client.d.ts +2287 -0
- package/build/src/v1/cmek_config_service_client.js +3274 -0
- package/build/src/v1/cmek_config_service_client_config.json +42 -0
- package/build/src/v1/cmek_config_service_proto_list.json +44 -0
- package/build/src/v1/completion_service_client.d.ts +166 -76
- package/build/src/v1/completion_service_client.js +258 -263
- package/build/src/v1/completion_service_proto_list.json +6 -1
- package/build/src/v1/control_service_client.d.ts +171 -81
- package/build/src/v1/control_service_client.js +246 -132
- package/build/src/v1/control_service_proto_list.json +6 -1
- package/build/src/v1/conversational_search_service_client.d.ts +233 -143
- package/build/src/v1/conversational_search_service_client.js +330 -226
- package/build/src/v1/conversational_search_service_proto_list.json +6 -1
- package/build/src/v1/data_store_service_client.d.ts +218 -122
- package/build/src/v1/data_store_service_client.js +273 -281
- package/build/src/v1/data_store_service_proto_list.json +6 -1
- package/build/src/v1/document_service_client.d.ts +210 -120
- package/build/src/v1/document_service_client.js +300 -301
- package/build/src/v1/document_service_proto_list.json +6 -1
- package/build/src/v1/engine_service_client.d.ts +193 -103
- package/build/src/v1/engine_service_client.js +273 -280
- package/build/src/v1/engine_service_proto_list.json +6 -1
- package/build/src/v1/gapic_metadata.json +184 -0
- package/build/src/v1/grounded_generation_service_client.d.ts +138 -48
- package/build/src/v1/grounded_generation_service_client.js +217 -100
- package/build/src/v1/grounded_generation_service_proto_list.json +6 -1
- package/build/src/v1/identity_mapping_store_service_client.d.ts +2470 -0
- package/build/src/v1/identity_mapping_store_service_client.js +3449 -0
- package/build/src/v1/identity_mapping_store_service_client_config.json +54 -0
- package/build/src/v1/identity_mapping_store_service_proto_list.json +44 -0
- package/build/src/v1/index.d.ts +3 -0
- package/build/src/v1/index.js +7 -1
- package/build/src/v1/project_service_client.d.ts +166 -76
- package/build/src/v1/project_service_client.js +235 -223
- package/build/src/v1/project_service_proto_list.json +6 -1
- package/build/src/v1/rank_service_client.d.ts +137 -47
- package/build/src/v1/rank_service_client.js +204 -85
- package/build/src/v1/rank_service_proto_list.json +6 -1
- package/build/src/v1/recommendation_service_client.d.ts +137 -47
- package/build/src/v1/recommendation_service_client.js +202 -82
- package/build/src/v1/recommendation_service_proto_list.json +6 -1
- package/build/src/v1/schema_service_client.d.ts +201 -111
- package/build/src/v1/schema_service_client.js +264 -274
- package/build/src/v1/schema_service_proto_list.json +6 -1
- package/build/src/v1/search_service_client.d.ts +661 -571
- package/build/src/v1/search_service_client.js +216 -113
- package/build/src/v1/search_service_proto_list.json +6 -1
- package/build/src/v1/search_tuning_service_client.d.ts +167 -77
- package/build/src/v1/search_tuning_service_client.js +246 -236
- package/build/src/v1/search_tuning_service_proto_list.json +6 -1
- package/build/src/v1/serving_config_service_client.d.ts +138 -48
- package/build/src/v1/serving_config_service_client.js +201 -80
- package/build/src/v1/serving_config_service_proto_list.json +6 -1
- package/build/src/v1/site_search_engine_service_client.d.ts +238 -148
- package/build/src/v1/site_search_engine_service_client.js +324 -379
- package/build/src/v1/site_search_engine_service_proto_list.json +6 -1
- package/build/src/v1/user_event_service_client.d.ts +167 -77
- package/build/src/v1/user_event_service_client.js +260 -254
- package/build/src/v1/user_event_service_proto_list.json +6 -1
- package/build/src/v1/user_license_service_client.d.ts +2256 -0
- package/build/src/v1/user_license_service_client.js +3194 -0
- package/build/src/v1/user_license_service_client_config.json +34 -0
- package/build/src/v1/user_license_service_proto_list.json +44 -0
- package/build/src/v1alpha/acl_config_service_client.d.ts +49 -49
- package/build/src/v1alpha/acl_config_service_client.js +94 -106
- package/build/src/v1alpha/chunk_service_client.d.ts +88 -88
- package/build/src/v1alpha/chunk_service_client.js +98 -120
- package/build/src/v1alpha/completion_service_client.d.ts +77 -77
- package/build/src/v1alpha/completion_service_client.js +141 -281
- package/build/src/v1alpha/control_service_client.d.ts +85 -85
- package/build/src/v1alpha/control_service_client.js +129 -151
- package/build/src/v1alpha/conversational_search_service_client.d.ts +143 -143
- package/build/src/v1alpha/conversational_search_service_client.js +211 -237
- package/build/src/v1alpha/data_store_service_client.d.ts +126 -126
- package/build/src/v1alpha/data_store_service_client.js +176 -317
- package/build/src/v1alpha/document_service_client.d.ts +126 -126
- package/build/src/v1alpha/document_service_client.js +193 -329
- package/build/src/v1alpha/engine_service_client.d.ts +106 -106
- package/build/src/v1alpha/engine_service_client.js +180 -326
- package/build/src/v1alpha/estimate_billing_service_client.d.ts +76 -76
- package/build/src/v1alpha/estimate_billing_service_client.js +119 -244
- package/build/src/v1alpha/evaluation_service_client.d.ts +161 -161
- package/build/src/v1alpha/evaluation_service_client.js +150 -296
- package/build/src/v1alpha/grounded_generation_service_client.d.ts +48 -48
- package/build/src/v1alpha/grounded_generation_service_client.js +85 -100
- package/build/src/v1alpha/project_service_client.d.ts +78 -78
- package/build/src/v1alpha/project_service_client.js +139 -263
- package/build/src/v1alpha/rank_service_client.d.ts +47 -47
- package/build/src/v1alpha/rank_service_client.js +87 -104
- package/build/src/v1alpha/recommendation_service_client.d.ts +47 -47
- package/build/src/v1alpha/recommendation_service_client.js +85 -100
- package/build/src/v1alpha/sample_query_service_client.d.ts +123 -123
- package/build/src/v1alpha/sample_query_service_client.js +169 -302
- package/build/src/v1alpha/sample_query_set_service_client.d.ts +94 -94
- package/build/src/v1alpha/sample_query_set_service_client.js +130 -153
- package/build/src/v1alpha/schema_service_client.d.ts +112 -112
- package/build/src/v1alpha/schema_service_client.js +147 -293
- package/build/src/v1alpha/search_service_client.d.ts +327 -327
- package/build/src/v1alpha/search_service_client.js +88 -112
- package/build/src/v1alpha/search_tuning_service_client.d.ts +77 -77
- package/build/src/v1alpha/search_tuning_service_client.js +129 -254
- package/build/src/v1alpha/serving_config_service_client.d.ts +75 -75
- package/build/src/v1alpha/serving_config_service_client.js +109 -133
- package/build/src/v1alpha/site_search_engine_service_client.d.ts +151 -151
- package/build/src/v1alpha/site_search_engine_service_client.js +203 -388
- package/build/src/v1alpha/user_event_service_client.d.ts +78 -78
- package/build/src/v1alpha/user_event_service_client.js +143 -272
- package/build/src/v1beta/completion_service_client.d.ts +78 -78
- package/build/src/v1beta/completion_service_client.js +149 -280
- package/build/src/v1beta/control_service_client.d.ts +84 -84
- package/build/src/v1beta/control_service_client.js +127 -147
- package/build/src/v1beta/conversational_search_service_client.d.ts +142 -142
- package/build/src/v1beta/conversational_search_service_client.js +209 -233
- package/build/src/v1beta/data_store_service_client.d.ts +124 -124
- package/build/src/v1beta/data_store_service_client.js +154 -289
- package/build/src/v1beta/document_service_client.d.ts +124 -124
- package/build/src/v1beta/document_service_client.js +181 -310
- package/build/src/v1beta/engine_service_client.d.ts +106 -106
- package/build/src/v1beta/engine_service_client.js +178 -316
- package/build/src/v1beta/evaluation_service_client.d.ts +161 -161
- package/build/src/v1beta/evaluation_service_client.js +148 -286
- package/build/src/v1beta/grounded_generation_service_client.d.ts +49 -49
- package/build/src/v1beta/grounded_generation_service_client.js +98 -114
- package/build/src/v1beta/project_service_client.d.ts +76 -76
- package/build/src/v1beta/project_service_client.js +116 -232
- package/build/src/v1beta/rank_service_client.d.ts +47 -47
- package/build/src/v1beta/rank_service_client.js +85 -99
- package/build/src/v1beta/recommendation_service_client.d.ts +47 -47
- package/build/src/v1beta/recommendation_service_client.js +83 -96
- package/build/src/v1beta/sample_query_service_client.d.ts +123 -123
- package/build/src/v1beta/sample_query_service_client.js +167 -292
- package/build/src/v1beta/sample_query_set_service_client.d.ts +94 -94
- package/build/src/v1beta/sample_query_set_service_client.js +128 -149
- package/build/src/v1beta/schema_service_client.d.ts +111 -111
- package/build/src/v1beta/schema_service_client.js +145 -283
- package/build/src/v1beta/search_service_client.d.ts +665 -665
- package/build/src/v1beta/search_service_client.js +97 -128
- package/build/src/v1beta/search_tuning_service_client.d.ts +77 -77
- package/build/src/v1beta/search_tuning_service_client.js +127 -244
- package/build/src/v1beta/serving_config_service_client.d.ts +75 -75
- package/build/src/v1beta/serving_config_service_client.js +107 -129
- package/build/src/v1beta/site_search_engine_service_client.d.ts +151 -151
- package/build/src/v1beta/site_search_engine_service_client.js +205 -387
- package/build/src/v1beta/user_event_service_client.d.ts +78 -78
- package/build/src/v1beta/user_event_service_client.js +141 -262
- package/package.json +7 -7
- package/CHANGELOG.md +0 -267
@@ -98,26 +98,17 @@ class SchemaServiceClient {
|
|
98
98
|
constructor(opts, gaxInstance) {
|
99
99
|
// Ensure that options include all the required fields.
|
100
100
|
const staticMembers = this.constructor;
|
101
|
-
if (opts?.universe_domain &&
|
102
|
-
opts?.universeDomain &&
|
103
|
-
opts?.universe_domain !== opts?.universeDomain) {
|
101
|
+
if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
|
104
102
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
105
103
|
}
|
106
|
-
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
107
|
-
|
108
|
-
: undefined;
|
109
|
-
this._universeDomain =
|
110
|
-
opts?.universeDomain ??
|
111
|
-
opts?.universe_domain ??
|
112
|
-
universeDomainEnvVar ??
|
113
|
-
'googleapis.com';
|
104
|
+
const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
|
105
|
+
this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
|
114
106
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
115
107
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
116
108
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
117
109
|
const port = opts?.port || staticMembers.port;
|
118
110
|
const clientConfig = opts?.clientConfig ?? {};
|
119
|
-
const fallback = opts?.fallback ??
|
120
|
-
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
111
|
+
const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
121
112
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
122
113
|
// Request numeric enum values if REST transport is used.
|
123
114
|
opts.numericEnums = true;
|
@@ -147,7 +138,10 @@ class SchemaServiceClient {
|
|
147
138
|
}
|
148
139
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
149
140
|
// Determine the client header string.
|
150
|
-
const clientHeader = [
|
141
|
+
const clientHeader = [
|
142
|
+
`gax/${this._gaxModule.version}`,
|
143
|
+
`gapic/${version}`,
|
144
|
+
];
|
151
145
|
if (typeof process === 'object' && 'versions' in process) {
|
152
146
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
153
147
|
}
|
@@ -170,7 +164,10 @@ class SchemaServiceClient {
|
|
170
164
|
// Create useful helper objects for these.
|
171
165
|
this.pathTemplates = {
|
172
166
|
enginePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/engines/{engine}'),
|
167
|
+
identityMappingStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}'),
|
173
168
|
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
|
169
|
+
projectLocationCmekConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfig'),
|
170
|
+
projectLocationCmekConfigsPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/cmekConfigs/{cmek_config}'),
|
174
171
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
175
172
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
176
173
|
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
@@ -209,129 +206,24 @@ class SchemaServiceClient {
|
|
209
206
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
210
207
|
// pages). Denote the keys used for pagination and results.
|
211
208
|
this.descriptors.page = {
|
212
|
-
listSchemas: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'schemas')
|
209
|
+
listSchemas: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'schemas')
|
213
210
|
};
|
214
|
-
const protoFilesRoot = this._gaxModule.
|
211
|
+
const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
|
215
212
|
// This API contains "long-running operations", which return a
|
216
213
|
// an Operation object that allows for tracking of the operation,
|
217
214
|
// rather than holding a request open.
|
218
215
|
const lroOptions = {
|
219
216
|
auth: this.auth,
|
220
|
-
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
217
|
+
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
221
218
|
};
|
222
219
|
if (opts.fallback) {
|
223
220
|
lroOptions.protoJson = protoFilesRoot;
|
224
|
-
lroOptions.httpRules = [
|
225
|
-
{
|
226
|
-
|
227
|
-
|
228
|
-
body: '*',
|
229
|
-
additional_bindings: [
|
230
|
-
{
|
231
|
-
post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel',
|
232
|
-
body: '*',
|
233
|
-
},
|
234
|
-
{
|
235
|
-
post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
|
236
|
-
body: '*',
|
237
|
-
},
|
238
|
-
],
|
239
|
-
},
|
240
|
-
{
|
241
|
-
selector: 'google.longrunning.Operations.GetOperation',
|
242
|
-
get: '/v1/{name=projects/*/operations/*}',
|
243
|
-
additional_bindings: [
|
244
|
-
{
|
245
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
246
|
-
},
|
247
|
-
{
|
248
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
249
|
-
},
|
250
|
-
{
|
251
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
252
|
-
},
|
253
|
-
{
|
254
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
|
255
|
-
},
|
256
|
-
{
|
257
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
|
258
|
-
},
|
259
|
-
{
|
260
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
|
261
|
-
},
|
262
|
-
{
|
263
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
|
264
|
-
},
|
265
|
-
{
|
266
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
|
267
|
-
},
|
268
|
-
{
|
269
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}',
|
270
|
-
},
|
271
|
-
{
|
272
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
|
273
|
-
},
|
274
|
-
{
|
275
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
|
276
|
-
},
|
277
|
-
{
|
278
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
279
|
-
},
|
280
|
-
{
|
281
|
-
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}',
|
282
|
-
},
|
283
|
-
{ get: '/v1/{name=projects/*/locations/*/operations/*}' },
|
284
|
-
{ get: '/v1/{name=projects/*/operations/*}' },
|
285
|
-
],
|
286
|
-
},
|
287
|
-
{
|
288
|
-
selector: 'google.longrunning.Operations.ListOperations',
|
289
|
-
get: '/v1/{name=projects/*}/operations',
|
290
|
-
additional_bindings: [
|
291
|
-
{
|
292
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
293
|
-
},
|
294
|
-
{
|
295
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
296
|
-
},
|
297
|
-
{
|
298
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
299
|
-
},
|
300
|
-
{
|
301
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
|
302
|
-
},
|
303
|
-
{
|
304
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
|
305
|
-
},
|
306
|
-
{
|
307
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
|
308
|
-
},
|
309
|
-
{
|
310
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
|
311
|
-
},
|
312
|
-
{
|
313
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
314
|
-
},
|
315
|
-
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
316
|
-
{
|
317
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
318
|
-
},
|
319
|
-
{
|
320
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
321
|
-
},
|
322
|
-
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
323
|
-
{
|
324
|
-
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
325
|
-
},
|
326
|
-
{ get: '/v1/{name=projects/*/locations/*}/operations' },
|
327
|
-
{ get: '/v1/{name=projects/*}/operations' },
|
328
|
-
],
|
329
|
-
},
|
330
|
-
];
|
221
|
+
lroOptions.httpRules = [{ selector: 'google.longrunning.Operations.CancelOperation', post: '/v1/{name=projects/*/operations/*}:cancel', body: '*', additional_bindings: [{ post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }, { post: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}:cancel', body: '*', }, { post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', body: '*', }],
|
222
|
+
}, { selector: 'google.longrunning.Operations.GetOperation', get: '/v1/{name=projects/*/operations/*}', additional_bindings: [{ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', }, { get: '/v1/{name=projects/*/locations/*/operations/*}', }, { get: '/v1/{name=projects/*/operations/*}', }],
|
223
|
+
}, { selector: 'google.longrunning.Operations.ListOperations', get: '/v1/{name=projects/*}/operations', additional_bindings: [{ get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/collections/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', }, { get: '/v1/{name=projects/*/locations/*}/operations', }, { get: '/v1/{name=projects/*}/operations', }],
|
224
|
+
}];
|
331
225
|
}
|
332
|
-
this.operationsClient = this._gaxModule
|
333
|
-
.lro(lroOptions)
|
334
|
-
.operationsClient(opts);
|
226
|
+
this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
|
335
227
|
const createSchemaResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.Schema');
|
336
228
|
const createSchemaMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.CreateSchemaMetadata');
|
337
229
|
const updateSchemaResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.Schema');
|
@@ -341,7 +233,7 @@ class SchemaServiceClient {
|
|
341
233
|
this.descriptors.longrunning = {
|
342
234
|
createSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createSchemaResponse.decode.bind(createSchemaResponse), createSchemaMetadata.decode.bind(createSchemaMetadata)),
|
343
235
|
updateSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, updateSchemaResponse.decode.bind(updateSchemaResponse), updateSchemaMetadata.decode.bind(updateSchemaMetadata)),
|
344
|
-
deleteSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteSchemaResponse.decode.bind(deleteSchemaResponse), deleteSchemaMetadata.decode.bind(deleteSchemaMetadata))
|
236
|
+
deleteSchema: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteSchemaResponse.decode.bind(deleteSchemaResponse), deleteSchemaMetadata.decode.bind(deleteSchemaMetadata))
|
345
237
|
};
|
346
238
|
// Put together the default options sent with requests.
|
347
239
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.SchemaService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -370,19 +262,13 @@ class SchemaServiceClient {
|
|
370
262
|
}
|
371
263
|
// Put together the "service stub" for
|
372
264
|
// google.cloud.discoveryengine.v1.SchemaService.
|
373
|
-
this.schemaServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
374
|
-
|
375
|
-
|
376
|
-
|
265
|
+
this.schemaServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
266
|
+
this._protos.lookupService('google.cloud.discoveryengine.v1.SchemaService') :
|
267
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
268
|
+
this._protos.google.cloud.discoveryengine.v1.SchemaService, this._opts, this._providedCustomServicePath);
|
377
269
|
// Iterate over each of the methods that the service provides
|
378
270
|
// and create an API call method for each.
|
379
|
-
const schemaServiceStubMethods = [
|
380
|
-
'getSchema',
|
381
|
-
'listSchemas',
|
382
|
-
'createSchema',
|
383
|
-
'updateSchema',
|
384
|
-
'deleteSchema',
|
385
|
-
];
|
271
|
+
const schemaServiceStubMethods = ['getSchema', 'listSchemas', 'createSchema', 'updateSchema', 'deleteSchema'];
|
386
272
|
for (const methodName of schemaServiceStubMethods) {
|
387
273
|
const callPromise = this.schemaServiceStub.then(stub => (...args) => {
|
388
274
|
if (this._terminated) {
|
@@ -407,8 +293,7 @@ class SchemaServiceClient {
|
|
407
293
|
* @returns {string} The DNS address for this service.
|
408
294
|
*/
|
409
295
|
static get servicePath() {
|
410
|
-
if (typeof process === 'object' &&
|
411
|
-
typeof process.emitWarning === 'function') {
|
296
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
412
297
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
413
298
|
}
|
414
299
|
return 'discoveryengine.googleapis.com';
|
@@ -419,8 +304,7 @@ class SchemaServiceClient {
|
|
419
304
|
* @returns {string} The DNS address for this service.
|
420
305
|
*/
|
421
306
|
static get apiEndpoint() {
|
422
|
-
if (typeof process === 'object' &&
|
423
|
-
typeof process.emitWarning === 'function') {
|
307
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
424
308
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
425
309
|
}
|
426
310
|
return 'discoveryengine.googleapis.com';
|
@@ -448,7 +332,9 @@ class SchemaServiceClient {
|
|
448
332
|
* @returns {string[]} List of default scopes.
|
449
333
|
*/
|
450
334
|
static get scopes() {
|
451
|
-
return [
|
335
|
+
return [
|
336
|
+
'https://www.googleapis.com/auth/cloud-platform'
|
337
|
+
];
|
452
338
|
}
|
453
339
|
/**
|
454
340
|
* Return the project ID used by this class.
|
@@ -474,13 +360,10 @@ class SchemaServiceClient {
|
|
474
360
|
options = options || {};
|
475
361
|
options.otherArgs = options.otherArgs || {};
|
476
362
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
477
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
478
|
-
|
479
|
-
name: request.name ?? '',
|
480
|
-
});
|
481
|
-
this.initialize().catch(err => {
|
482
|
-
throw err;
|
363
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
364
|
+
'name': request.name ?? '',
|
483
365
|
});
|
366
|
+
this.initialize().catch(err => { throw err; });
|
484
367
|
this._log.info('getSchema request %j', request);
|
485
368
|
const wrappedCallback = callback
|
486
369
|
? (error, response, options, rawResponse) => {
|
@@ -488,11 +371,16 @@ class SchemaServiceClient {
|
|
488
371
|
callback(error, response, options, rawResponse); // We verified callback above.
|
489
372
|
}
|
490
373
|
: undefined;
|
491
|
-
return this.innerApiCalls
|
492
|
-
.getSchema(request, options, wrappedCallback)
|
374
|
+
return this.innerApiCalls.getSchema(request, options, wrappedCallback)
|
493
375
|
?.then(([response, options, rawResponse]) => {
|
494
376
|
this._log.info('getSchema response %j', response);
|
495
377
|
return [response, options, rawResponse];
|
378
|
+
}).catch((error) => {
|
379
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
380
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
381
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
382
|
+
}
|
383
|
+
throw error;
|
496
384
|
});
|
497
385
|
}
|
498
386
|
createSchema(request, optionsOrCallback, callback) {
|
@@ -508,13 +396,10 @@ class SchemaServiceClient {
|
|
508
396
|
options = options || {};
|
509
397
|
options.otherArgs = options.otherArgs || {};
|
510
398
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
511
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
512
|
-
|
513
|
-
parent: request.parent ?? '',
|
514
|
-
});
|
515
|
-
this.initialize().catch(err => {
|
516
|
-
throw err;
|
399
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
400
|
+
'parent': request.parent ?? '',
|
517
401
|
});
|
402
|
+
this.initialize().catch(err => { throw err; });
|
518
403
|
const wrappedCallback = callback
|
519
404
|
? (error, response, rawResponse, _) => {
|
520
405
|
this._log.info('createSchema response %j', rawResponse);
|
@@ -522,8 +407,7 @@ class SchemaServiceClient {
|
|
522
407
|
}
|
523
408
|
: undefined;
|
524
409
|
this._log.info('createSchema request %j', request);
|
525
|
-
return this.innerApiCalls
|
526
|
-
.createSchema(request, options, wrappedCallback)
|
410
|
+
return this.innerApiCalls.createSchema(request, options, wrappedCallback)
|
527
411
|
?.then(([response, rawResponse, _]) => {
|
528
412
|
this._log.info('createSchema response %j', rawResponse);
|
529
413
|
return [response, rawResponse, _];
|
@@ -560,13 +444,10 @@ class SchemaServiceClient {
|
|
560
444
|
options = options || {};
|
561
445
|
options.otherArgs = options.otherArgs || {};
|
562
446
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
563
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
564
|
-
|
565
|
-
'schema.name': request.schema.name ?? '',
|
566
|
-
});
|
567
|
-
this.initialize().catch(err => {
|
568
|
-
throw err;
|
447
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
448
|
+
'schema.name': request.schema.name ?? '',
|
569
449
|
});
|
450
|
+
this.initialize().catch(err => { throw err; });
|
570
451
|
const wrappedCallback = callback
|
571
452
|
? (error, response, rawResponse, _) => {
|
572
453
|
this._log.info('updateSchema response %j', rawResponse);
|
@@ -574,8 +455,7 @@ class SchemaServiceClient {
|
|
574
455
|
}
|
575
456
|
: undefined;
|
576
457
|
this._log.info('updateSchema request %j', request);
|
577
|
-
return this.innerApiCalls
|
578
|
-
.updateSchema(request, options, wrappedCallback)
|
458
|
+
return this.innerApiCalls.updateSchema(request, options, wrappedCallback)
|
579
459
|
?.then(([response, rawResponse, _]) => {
|
580
460
|
this._log.info('updateSchema response %j', rawResponse);
|
581
461
|
return [response, rawResponse, _];
|
@@ -612,13 +492,10 @@ class SchemaServiceClient {
|
|
612
492
|
options = options || {};
|
613
493
|
options.otherArgs = options.otherArgs || {};
|
614
494
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
615
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
616
|
-
|
617
|
-
name: request.name ?? '',
|
618
|
-
});
|
619
|
-
this.initialize().catch(err => {
|
620
|
-
throw err;
|
495
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
496
|
+
'name': request.name ?? '',
|
621
497
|
});
|
498
|
+
this.initialize().catch(err => { throw err; });
|
622
499
|
const wrappedCallback = callback
|
623
500
|
? (error, response, rawResponse, _) => {
|
624
501
|
this._log.info('deleteSchema response %j', rawResponse);
|
@@ -626,8 +503,7 @@ class SchemaServiceClient {
|
|
626
503
|
}
|
627
504
|
: undefined;
|
628
505
|
this._log.info('deleteSchema request %j', request);
|
629
|
-
return this.innerApiCalls
|
630
|
-
.deleteSchema(request, options, wrappedCallback)
|
506
|
+
return this.innerApiCalls.deleteSchema(request, options, wrappedCallback)
|
631
507
|
?.then(([response, rawResponse, _]) => {
|
632
508
|
this._log.info('deleteSchema response %j', rawResponse);
|
633
509
|
return [response, rawResponse, _];
|
@@ -664,13 +540,10 @@ class SchemaServiceClient {
|
|
664
540
|
options = options || {};
|
665
541
|
options.otherArgs = options.otherArgs || {};
|
666
542
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
667
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
668
|
-
|
669
|
-
parent: request.parent ?? '',
|
670
|
-
});
|
671
|
-
this.initialize().catch(err => {
|
672
|
-
throw err;
|
543
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
544
|
+
'parent': request.parent ?? '',
|
673
545
|
});
|
546
|
+
this.initialize().catch(err => { throw err; });
|
674
547
|
const wrappedCallback = callback
|
675
548
|
? (error, values, nextPageRequest, rawResponse) => {
|
676
549
|
this._log.info('listSchemas values %j', values);
|
@@ -724,15 +597,12 @@ class SchemaServiceClient {
|
|
724
597
|
options = options || {};
|
725
598
|
options.otherArgs = options.otherArgs || {};
|
726
599
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
727
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
728
|
-
|
729
|
-
|
730
|
-
});
|
600
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
601
|
+
'parent': request.parent ?? '',
|
602
|
+
});
|
731
603
|
const defaultCallSettings = this._defaults['listSchemas'];
|
732
604
|
const callSettings = defaultCallSettings.merge(options);
|
733
|
-
this.initialize().catch(err => {
|
734
|
-
throw err;
|
735
|
-
});
|
605
|
+
this.initialize().catch(err => { throw err; });
|
736
606
|
this._log.info('listSchemas stream %j', request);
|
737
607
|
return this.descriptors.page.listSchemas.createStream(this.innerApiCalls.listSchemas, request, callSettings);
|
738
608
|
}
|
@@ -778,103 +648,100 @@ class SchemaServiceClient {
|
|
778
648
|
options = options || {};
|
779
649
|
options.otherArgs = options.otherArgs || {};
|
780
650
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
781
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
782
|
-
|
783
|
-
|
784
|
-
});
|
651
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
652
|
+
'parent': request.parent ?? '',
|
653
|
+
});
|
785
654
|
const defaultCallSettings = this._defaults['listSchemas'];
|
786
655
|
const callSettings = defaultCallSettings.merge(options);
|
787
|
-
this.initialize().catch(err => {
|
788
|
-
throw err;
|
789
|
-
});
|
656
|
+
this.initialize().catch(err => { throw err; });
|
790
657
|
this._log.info('listSchemas iterate %j', request);
|
791
658
|
return this.descriptors.page.listSchemas.asyncIterate(this.innerApiCalls['listSchemas'], request, callSettings);
|
792
659
|
}
|
793
660
|
/**
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
661
|
+
* Gets information about a location.
|
662
|
+
*
|
663
|
+
* @param {Object} request
|
664
|
+
* The request object that will be sent.
|
665
|
+
* @param {string} request.name
|
666
|
+
* Resource name for the location.
|
667
|
+
* @param {object} [options]
|
668
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
669
|
+
* @returns {Promise} - The promise which resolves to an array.
|
670
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
671
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
672
|
+
* for more details and examples.
|
673
|
+
* @example
|
674
|
+
* ```
|
675
|
+
* const [response] = await client.getLocation(request);
|
676
|
+
* ```
|
677
|
+
*/
|
811
678
|
getLocation(request, options, callback) {
|
812
679
|
return this.locationsClient.getLocation(request, options, callback);
|
813
680
|
}
|
814
681
|
/**
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
682
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
683
|
+
*
|
684
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
685
|
+
* @param {Object} request
|
686
|
+
* The request object that will be sent.
|
687
|
+
* @param {string} request.name
|
688
|
+
* The resource that owns the locations collection, if applicable.
|
689
|
+
* @param {string} request.filter
|
690
|
+
* The standard list filter.
|
691
|
+
* @param {number} request.pageSize
|
692
|
+
* The standard list page size.
|
693
|
+
* @param {string} request.pageToken
|
694
|
+
* The standard list page token.
|
695
|
+
* @param {object} [options]
|
696
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
697
|
+
* @returns {Object}
|
698
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
699
|
+
* When you iterate the returned iterable, each element will be an object representing
|
700
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
701
|
+
* so you can stop the iteration when you don't need more results.
|
702
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
703
|
+
* for more details and examples.
|
704
|
+
* @example
|
705
|
+
* ```
|
706
|
+
* const iterable = client.listLocationsAsync(request);
|
707
|
+
* for await (const response of iterable) {
|
708
|
+
* // process response
|
709
|
+
* }
|
710
|
+
* ```
|
711
|
+
*/
|
845
712
|
listLocationsAsync(request, options) {
|
846
713
|
return this.locationsClient.listLocationsAsync(request, options);
|
847
714
|
}
|
848
715
|
/**
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
716
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
717
|
+
* method to poll the operation result at intervals as recommended by the API
|
718
|
+
* service.
|
719
|
+
*
|
720
|
+
* @param {Object} request - The request object that will be sent.
|
721
|
+
* @param {string} request.name - The name of the operation resource.
|
722
|
+
* @param {Object=} options
|
723
|
+
* Optional parameters. You can override the default settings for this call,
|
724
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
725
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
726
|
+
* for the details.
|
727
|
+
* @param {function(?Error, ?Object)=} callback
|
728
|
+
* The function which will be called with the result of the API call.
|
729
|
+
*
|
730
|
+
* The second parameter to the callback is an object representing
|
731
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
732
|
+
* @return {Promise} - The promise which resolves to an array.
|
733
|
+
* The first element of the array is an object representing
|
734
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
735
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
736
|
+
*
|
737
|
+
* @example
|
738
|
+
* ```
|
739
|
+
* const client = longrunning.operationsClient();
|
740
|
+
* const name = '';
|
741
|
+
* const [response] = await client.getOperation({name});
|
742
|
+
* // doThingsWith(response)
|
743
|
+
* ```
|
744
|
+
*/
|
878
745
|
getOperation(request, optionsOrCallback, callback) {
|
879
746
|
let options;
|
880
747
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
@@ -1085,6 +952,51 @@ class SchemaServiceClient {
|
|
1085
952
|
matchEngineFromEngineName(engineName) {
|
1086
953
|
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
1087
954
|
}
|
955
|
+
/**
|
956
|
+
* Return a fully-qualified identityMappingStore resource name string.
|
957
|
+
*
|
958
|
+
* @param {string} project
|
959
|
+
* @param {string} location
|
960
|
+
* @param {string} identity_mapping_store
|
961
|
+
* @returns {string} Resource name string.
|
962
|
+
*/
|
963
|
+
identityMappingStorePath(project, location, identityMappingStore) {
|
964
|
+
return this.pathTemplates.identityMappingStorePathTemplate.render({
|
965
|
+
project: project,
|
966
|
+
location: location,
|
967
|
+
identity_mapping_store: identityMappingStore,
|
968
|
+
});
|
969
|
+
}
|
970
|
+
/**
|
971
|
+
* Parse the project from IdentityMappingStore resource.
|
972
|
+
*
|
973
|
+
* @param {string} identityMappingStoreName
|
974
|
+
* A fully-qualified path representing IdentityMappingStore resource.
|
975
|
+
* @returns {string} A string representing the project.
|
976
|
+
*/
|
977
|
+
matchProjectFromIdentityMappingStoreName(identityMappingStoreName) {
|
978
|
+
return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).project;
|
979
|
+
}
|
980
|
+
/**
|
981
|
+
* Parse the location from IdentityMappingStore resource.
|
982
|
+
*
|
983
|
+
* @param {string} identityMappingStoreName
|
984
|
+
* A fully-qualified path representing IdentityMappingStore resource.
|
985
|
+
* @returns {string} A string representing the location.
|
986
|
+
*/
|
987
|
+
matchLocationFromIdentityMappingStoreName(identityMappingStoreName) {
|
988
|
+
return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).location;
|
989
|
+
}
|
990
|
+
/**
|
991
|
+
* Parse the identity_mapping_store from IdentityMappingStore resource.
|
992
|
+
*
|
993
|
+
* @param {string} identityMappingStoreName
|
994
|
+
* A fully-qualified path representing IdentityMappingStore resource.
|
995
|
+
* @returns {string} A string representing the identity_mapping_store.
|
996
|
+
*/
|
997
|
+
matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName) {
|
998
|
+
return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).identity_mapping_store;
|
999
|
+
}
|
1088
1000
|
/**
|
1089
1001
|
* Return a fully-qualified project resource name string.
|
1090
1002
|
*
|
@@ -1106,6 +1018,84 @@ class SchemaServiceClient {
|
|
1106
1018
|
matchProjectFromProjectName(projectName) {
|
1107
1019
|
return this.pathTemplates.projectPathTemplate.match(projectName).project;
|
1108
1020
|
}
|
1021
|
+
/**
|
1022
|
+
* Return a fully-qualified projectLocationCmekConfig resource name string.
|
1023
|
+
*
|
1024
|
+
* @param {string} project
|
1025
|
+
* @param {string} location
|
1026
|
+
* @returns {string} Resource name string.
|
1027
|
+
*/
|
1028
|
+
projectLocationCmekConfigPath(project, location) {
|
1029
|
+
return this.pathTemplates.projectLocationCmekConfigPathTemplate.render({
|
1030
|
+
project: project,
|
1031
|
+
location: location,
|
1032
|
+
});
|
1033
|
+
}
|
1034
|
+
/**
|
1035
|
+
* Parse the project from ProjectLocationCmekConfig resource.
|
1036
|
+
*
|
1037
|
+
* @param {string} projectLocationCmekConfigName
|
1038
|
+
* A fully-qualified path representing project_location_cmekConfig resource.
|
1039
|
+
* @returns {string} A string representing the project.
|
1040
|
+
*/
|
1041
|
+
matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
|
1042
|
+
return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).project;
|
1043
|
+
}
|
1044
|
+
/**
|
1045
|
+
* Parse the location from ProjectLocationCmekConfig resource.
|
1046
|
+
*
|
1047
|
+
* @param {string} projectLocationCmekConfigName
|
1048
|
+
* A fully-qualified path representing project_location_cmekConfig resource.
|
1049
|
+
* @returns {string} A string representing the location.
|
1050
|
+
*/
|
1051
|
+
matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
|
1052
|
+
return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).location;
|
1053
|
+
}
|
1054
|
+
/**
|
1055
|
+
* Return a fully-qualified projectLocationCmekConfigs resource name string.
|
1056
|
+
*
|
1057
|
+
* @param {string} project
|
1058
|
+
* @param {string} location
|
1059
|
+
* @param {string} cmek_config
|
1060
|
+
* @returns {string} Resource name string.
|
1061
|
+
*/
|
1062
|
+
projectLocationCmekConfigsPath(project, location, cmekConfig) {
|
1063
|
+
return this.pathTemplates.projectLocationCmekConfigsPathTemplate.render({
|
1064
|
+
project: project,
|
1065
|
+
location: location,
|
1066
|
+
cmek_config: cmekConfig,
|
1067
|
+
});
|
1068
|
+
}
|
1069
|
+
/**
|
1070
|
+
* Parse the project from ProjectLocationCmekConfigs resource.
|
1071
|
+
*
|
1072
|
+
* @param {string} projectLocationCmekConfigsName
|
1073
|
+
* A fully-qualified path representing project_location_cmekConfigs resource.
|
1074
|
+
* @returns {string} A string representing the project.
|
1075
|
+
*/
|
1076
|
+
matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
|
1077
|
+
return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).project;
|
1078
|
+
}
|
1079
|
+
/**
|
1080
|
+
* Parse the location from ProjectLocationCmekConfigs resource.
|
1081
|
+
*
|
1082
|
+
* @param {string} projectLocationCmekConfigsName
|
1083
|
+
* A fully-qualified path representing project_location_cmekConfigs resource.
|
1084
|
+
* @returns {string} A string representing the location.
|
1085
|
+
*/
|
1086
|
+
matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
|
1087
|
+
return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).location;
|
1088
|
+
}
|
1089
|
+
/**
|
1090
|
+
* Parse the cmek_config from ProjectLocationCmekConfigs resource.
|
1091
|
+
*
|
1092
|
+
* @param {string} projectLocationCmekConfigsName
|
1093
|
+
* A fully-qualified path representing project_location_cmekConfigs resource.
|
1094
|
+
* @returns {string} A string representing the cmek_config.
|
1095
|
+
*/
|
1096
|
+
matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
|
1097
|
+
return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).cmek_config;
|
1098
|
+
}
|
1109
1099
|
/**
|
1110
1100
|
* Return a fully-qualified projectLocationCollectionDataStore resource name string.
|
1111
1101
|
*
|
@@ -3263,8 +3253,8 @@ class SchemaServiceClient {
|
|
3263
3253
|
this._log.info('ending gRPC channel');
|
3264
3254
|
this._terminated = true;
|
3265
3255
|
stub.close();
|
3266
|
-
this.locationsClient.close();
|
3267
|
-
this.operationsClient.close();
|
3256
|
+
this.locationsClient.close().catch(err => { throw err; });
|
3257
|
+
void this.operationsClient.close();
|
3268
3258
|
});
|
3269
3259
|
}
|
3270
3260
|
return Promise.resolve();
|