@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
@@ -97,28 +97,18 @@ class SiteSearchEngineServiceClient {
|
|
97
97
|
*/
|
98
98
|
constructor(opts, gaxInstance) {
|
99
99
|
// Ensure that options include all the required fields.
|
100
|
-
const staticMembers = this
|
101
|
-
|
102
|
-
if (opts?.universe_domain &&
|
103
|
-
opts?.universeDomain &&
|
104
|
-
opts?.universe_domain !== opts?.universeDomain) {
|
100
|
+
const staticMembers = this.constructor;
|
101
|
+
if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
|
105
102
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
106
103
|
}
|
107
|
-
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
108
|
-
|
109
|
-
: undefined;
|
110
|
-
this._universeDomain =
|
111
|
-
opts?.universeDomain ??
|
112
|
-
opts?.universe_domain ??
|
113
|
-
universeDomainEnvVar ??
|
114
|
-
'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';
|
115
106
|
this._servicePath = 'discoveryengine.' + this._universeDomain;
|
116
107
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
117
108
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
118
109
|
const port = opts?.port || staticMembers.port;
|
119
110
|
const clientConfig = opts?.clientConfig ?? {};
|
120
|
-
const fallback = opts?.fallback ??
|
121
|
-
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
111
|
+
const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
122
112
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
123
113
|
// Request numeric enum values if REST transport is used.
|
124
114
|
opts.numericEnums = true;
|
@@ -148,7 +138,10 @@ class SiteSearchEngineServiceClient {
|
|
148
138
|
}
|
149
139
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
150
140
|
// Determine the client header string.
|
151
|
-
const clientHeader = [
|
141
|
+
const clientHeader = [
|
142
|
+
`gax/${this._gaxModule.version}`,
|
143
|
+
`gapic/${version}`,
|
144
|
+
];
|
152
145
|
if (typeof process === 'object' && 'versions' in process) {
|
153
146
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
154
147
|
}
|
@@ -171,7 +164,10 @@ class SiteSearchEngineServiceClient {
|
|
171
164
|
// Create useful helper objects for these.
|
172
165
|
this.pathTemplates = {
|
173
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}'),
|
174
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}'),
|
175
171
|
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
|
176
172
|
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
|
177
173
|
projectLocationCollectionDataStoreBranchDocumentChunkPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}'),
|
@@ -211,129 +207,24 @@ class SiteSearchEngineServiceClient {
|
|
211
207
|
// pages). Denote the keys used for pagination and results.
|
212
208
|
this.descriptors.page = {
|
213
209
|
listTargetSites: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'targetSites'),
|
214
|
-
fetchDomainVerificationStatus: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'targetSites')
|
210
|
+
fetchDomainVerificationStatus: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'targetSites')
|
215
211
|
};
|
216
|
-
const protoFilesRoot = this._gaxModule.
|
212
|
+
const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
|
217
213
|
// This API contains "long-running operations", which return a
|
218
214
|
// an Operation object that allows for tracking of the operation,
|
219
215
|
// rather than holding a request open.
|
220
216
|
const lroOptions = {
|
221
217
|
auth: this.auth,
|
222
|
-
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
218
|
+
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
223
219
|
};
|
224
220
|
if (opts.fallback) {
|
225
221
|
lroOptions.protoJson = protoFilesRoot;
|
226
|
-
lroOptions.httpRules = [
|
227
|
-
{
|
228
|
-
|
229
|
-
|
230
|
-
body: '*',
|
231
|
-
additional_bindings: [
|
232
|
-
{
|
233
|
-
post: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel',
|
234
|
-
body: '*',
|
235
|
-
},
|
236
|
-
{
|
237
|
-
post: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel',
|
238
|
-
body: '*',
|
239
|
-
},
|
240
|
-
],
|
241
|
-
},
|
242
|
-
{
|
243
|
-
selector: 'google.longrunning.Operations.GetOperation',
|
244
|
-
get: '/v1/{name=projects/*/operations/*}',
|
245
|
-
additional_bindings: [
|
246
|
-
{
|
247
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}',
|
248
|
-
},
|
249
|
-
{
|
250
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
|
251
|
-
},
|
252
|
-
{
|
253
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
|
254
|
-
},
|
255
|
-
{
|
256
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
|
257
|
-
},
|
258
|
-
{
|
259
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}',
|
260
|
-
},
|
261
|
-
{
|
262
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}',
|
263
|
-
},
|
264
|
-
{
|
265
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}',
|
266
|
-
},
|
267
|
-
{
|
268
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}',
|
269
|
-
},
|
270
|
-
{
|
271
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/operations/*}',
|
272
|
-
},
|
273
|
-
{
|
274
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
|
275
|
-
},
|
276
|
-
{
|
277
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',
|
278
|
-
},
|
279
|
-
{
|
280
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}',
|
281
|
-
},
|
282
|
-
{
|
283
|
-
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}',
|
284
|
-
},
|
285
|
-
{ get: '/v1/{name=projects/*/locations/*/operations/*}' },
|
286
|
-
{ get: '/v1/{name=projects/*/operations/*}' },
|
287
|
-
],
|
288
|
-
},
|
289
|
-
{
|
290
|
-
selector: 'google.longrunning.Operations.ListOperations',
|
291
|
-
get: '/v1/{name=projects/*}/operations',
|
292
|
-
additional_bindings: [
|
293
|
-
{
|
294
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations',
|
295
|
-
},
|
296
|
-
{
|
297
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
|
298
|
-
},
|
299
|
-
{
|
300
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
|
301
|
-
},
|
302
|
-
{
|
303
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations',
|
304
|
-
},
|
305
|
-
{
|
306
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations',
|
307
|
-
},
|
308
|
-
{
|
309
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations',
|
310
|
-
},
|
311
|
-
{
|
312
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
|
313
|
-
},
|
314
|
-
{
|
315
|
-
get: '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations',
|
316
|
-
},
|
317
|
-
{ get: '/v1/{name=projects/*/locations/*/collections/*}/operations' },
|
318
|
-
{
|
319
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
|
320
|
-
},
|
321
|
-
{
|
322
|
-
get: '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations',
|
323
|
-
},
|
324
|
-
{ get: '/v1/{name=projects/*/locations/*/dataStores/*}/operations' },
|
325
|
-
{
|
326
|
-
get: '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations',
|
327
|
-
},
|
328
|
-
{ get: '/v1/{name=projects/*/locations/*}/operations' },
|
329
|
-
{ get: '/v1/{name=projects/*}/operations' },
|
330
|
-
],
|
331
|
-
},
|
332
|
-
];
|
222
|
+
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: '*', }],
|
223
|
+
}, { 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/*}', }],
|
224
|
+
}, { 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', }],
|
225
|
+
}];
|
333
226
|
}
|
334
|
-
this.operationsClient = this._gaxModule
|
335
|
-
.lro(lroOptions)
|
336
|
-
.operationsClient(opts);
|
227
|
+
this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
|
337
228
|
const createTargetSiteResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.TargetSite');
|
338
229
|
const createTargetSiteMetadata = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.CreateTargetSiteMetadata');
|
339
230
|
const batchCreateTargetSitesResponse = protoFilesRoot.lookup('.google.cloud.discoveryengine.v1.BatchCreateTargetSitesResponse');
|
@@ -364,7 +255,7 @@ class SiteSearchEngineServiceClient {
|
|
364
255
|
enableAdvancedSiteSearch: new this._gaxModule.LongrunningDescriptor(this.operationsClient, enableAdvancedSiteSearchResponse.decode.bind(enableAdvancedSiteSearchResponse), enableAdvancedSiteSearchMetadata.decode.bind(enableAdvancedSiteSearchMetadata)),
|
365
256
|
disableAdvancedSiteSearch: new this._gaxModule.LongrunningDescriptor(this.operationsClient, disableAdvancedSiteSearchResponse.decode.bind(disableAdvancedSiteSearchResponse), disableAdvancedSiteSearchMetadata.decode.bind(disableAdvancedSiteSearchMetadata)),
|
366
257
|
recrawlUris: new this._gaxModule.LongrunningDescriptor(this.operationsClient, recrawlUrisResponse.decode.bind(recrawlUrisResponse), recrawlUrisMetadata.decode.bind(recrawlUrisMetadata)),
|
367
|
-
batchVerifyTargetSites: new this._gaxModule.LongrunningDescriptor(this.operationsClient, batchVerifyTargetSitesResponse.decode.bind(batchVerifyTargetSitesResponse), batchVerifyTargetSitesMetadata.decode.bind(batchVerifyTargetSitesMetadata))
|
258
|
+
batchVerifyTargetSites: new this._gaxModule.LongrunningDescriptor(this.operationsClient, batchVerifyTargetSitesResponse.decode.bind(batchVerifyTargetSitesResponse), batchVerifyTargetSitesMetadata.decode.bind(batchVerifyTargetSitesMetadata))
|
368
259
|
};
|
369
260
|
// Put together the default options sent with requests.
|
370
261
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.discoveryengine.v1.SiteSearchEngineService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
@@ -393,30 +284,13 @@ class SiteSearchEngineServiceClient {
|
|
393
284
|
}
|
394
285
|
// Put together the "service stub" for
|
395
286
|
// google.cloud.discoveryengine.v1.SiteSearchEngineService.
|
396
|
-
this.siteSearchEngineServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
.SiteSearchEngineService, this._opts, this._providedCustomServicePath);
|
287
|
+
this.siteSearchEngineServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
288
|
+
this._protos.lookupService('google.cloud.discoveryengine.v1.SiteSearchEngineService') :
|
289
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
290
|
+
this._protos.google.cloud.discoveryengine.v1.SiteSearchEngineService, this._opts, this._providedCustomServicePath);
|
401
291
|
// Iterate over each of the methods that the service provides
|
402
292
|
// and create an API call method for each.
|
403
|
-
const siteSearchEngineServiceStubMethods = [
|
404
|
-
'getSiteSearchEngine',
|
405
|
-
'createTargetSite',
|
406
|
-
'batchCreateTargetSites',
|
407
|
-
'getTargetSite',
|
408
|
-
'updateTargetSite',
|
409
|
-
'deleteTargetSite',
|
410
|
-
'listTargetSites',
|
411
|
-
'createSitemap',
|
412
|
-
'deleteSitemap',
|
413
|
-
'fetchSitemaps',
|
414
|
-
'enableAdvancedSiteSearch',
|
415
|
-
'disableAdvancedSiteSearch',
|
416
|
-
'recrawlUris',
|
417
|
-
'batchVerifyTargetSites',
|
418
|
-
'fetchDomainVerificationStatus',
|
419
|
-
];
|
293
|
+
const siteSearchEngineServiceStubMethods = ['getSiteSearchEngine', 'createTargetSite', 'batchCreateTargetSites', 'getTargetSite', 'updateTargetSite', 'deleteTargetSite', 'listTargetSites', 'createSitemap', 'deleteSitemap', 'fetchSitemaps', 'enableAdvancedSiteSearch', 'disableAdvancedSiteSearch', 'recrawlUris', 'batchVerifyTargetSites', 'fetchDomainVerificationStatus'];
|
420
294
|
for (const methodName of siteSearchEngineServiceStubMethods) {
|
421
295
|
const callPromise = this.siteSearchEngineServiceStub.then(stub => (...args) => {
|
422
296
|
if (this._terminated) {
|
@@ -441,8 +315,7 @@ class SiteSearchEngineServiceClient {
|
|
441
315
|
* @returns {string} The DNS address for this service.
|
442
316
|
*/
|
443
317
|
static get servicePath() {
|
444
|
-
if (typeof process === 'object' &&
|
445
|
-
typeof process.emitWarning === 'function') {
|
318
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
446
319
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
447
320
|
}
|
448
321
|
return 'discoveryengine.googleapis.com';
|
@@ -453,8 +326,7 @@ class SiteSearchEngineServiceClient {
|
|
453
326
|
* @returns {string} The DNS address for this service.
|
454
327
|
*/
|
455
328
|
static get apiEndpoint() {
|
456
|
-
if (typeof process === 'object' &&
|
457
|
-
typeof process.emitWarning === 'function') {
|
329
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
458
330
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
459
331
|
}
|
460
332
|
return 'discoveryengine.googleapis.com';
|
@@ -482,7 +354,9 @@ class SiteSearchEngineServiceClient {
|
|
482
354
|
* @returns {string[]} List of default scopes.
|
483
355
|
*/
|
484
356
|
static get scopes() {
|
485
|
-
return [
|
357
|
+
return [
|
358
|
+
'https://www.googleapis.com/auth/cloud-platform'
|
359
|
+
];
|
486
360
|
}
|
487
361
|
/**
|
488
362
|
* Return the project ID used by this class.
|
@@ -508,13 +382,10 @@ class SiteSearchEngineServiceClient {
|
|
508
382
|
options = options || {};
|
509
383
|
options.otherArgs = options.otherArgs || {};
|
510
384
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
511
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
512
|
-
|
513
|
-
name: request.name ?? '',
|
514
|
-
});
|
515
|
-
this.initialize().catch(err => {
|
516
|
-
throw err;
|
385
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
386
|
+
'name': request.name ?? '',
|
517
387
|
});
|
388
|
+
this.initialize().catch(err => { throw err; });
|
518
389
|
this._log.info('getSiteSearchEngine request %j', request);
|
519
390
|
const wrappedCallback = callback
|
520
391
|
? (error, response, options, rawResponse) => {
|
@@ -522,11 +393,16 @@ class SiteSearchEngineServiceClient {
|
|
522
393
|
callback(error, response, options, rawResponse); // We verified callback above.
|
523
394
|
}
|
524
395
|
: undefined;
|
525
|
-
return this.innerApiCalls
|
526
|
-
.getSiteSearchEngine(request, options, wrappedCallback)
|
396
|
+
return this.innerApiCalls.getSiteSearchEngine(request, options, wrappedCallback)
|
527
397
|
?.then(([response, options, rawResponse]) => {
|
528
398
|
this._log.info('getSiteSearchEngine response %j', response);
|
529
399
|
return [response, options, rawResponse];
|
400
|
+
}).catch((error) => {
|
401
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
402
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
403
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
404
|
+
}
|
405
|
+
throw error;
|
530
406
|
});
|
531
407
|
}
|
532
408
|
getTargetSite(request, optionsOrCallback, callback) {
|
@@ -542,13 +418,10 @@ class SiteSearchEngineServiceClient {
|
|
542
418
|
options = options || {};
|
543
419
|
options.otherArgs = options.otherArgs || {};
|
544
420
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
545
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
546
|
-
|
547
|
-
name: request.name ?? '',
|
548
|
-
});
|
549
|
-
this.initialize().catch(err => {
|
550
|
-
throw err;
|
421
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
422
|
+
'name': request.name ?? '',
|
551
423
|
});
|
424
|
+
this.initialize().catch(err => { throw err; });
|
552
425
|
this._log.info('getTargetSite request %j', request);
|
553
426
|
const wrappedCallback = callback
|
554
427
|
? (error, response, options, rawResponse) => {
|
@@ -556,11 +429,16 @@ class SiteSearchEngineServiceClient {
|
|
556
429
|
callback(error, response, options, rawResponse); // We verified callback above.
|
557
430
|
}
|
558
431
|
: undefined;
|
559
|
-
return this.innerApiCalls
|
560
|
-
.getTargetSite(request, options, wrappedCallback)
|
432
|
+
return this.innerApiCalls.getTargetSite(request, options, wrappedCallback)
|
561
433
|
?.then(([response, options, rawResponse]) => {
|
562
434
|
this._log.info('getTargetSite response %j', response);
|
563
435
|
return [response, options, rawResponse];
|
436
|
+
}).catch((error) => {
|
437
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
438
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
439
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
440
|
+
}
|
441
|
+
throw error;
|
564
442
|
});
|
565
443
|
}
|
566
444
|
fetchSitemaps(request, optionsOrCallback, callback) {
|
@@ -576,13 +454,10 @@ class SiteSearchEngineServiceClient {
|
|
576
454
|
options = options || {};
|
577
455
|
options.otherArgs = options.otherArgs || {};
|
578
456
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
579
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
580
|
-
|
581
|
-
parent: request.parent ?? '',
|
582
|
-
});
|
583
|
-
this.initialize().catch(err => {
|
584
|
-
throw err;
|
457
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
458
|
+
'parent': request.parent ?? '',
|
585
459
|
});
|
460
|
+
this.initialize().catch(err => { throw err; });
|
586
461
|
this._log.info('fetchSitemaps request %j', request);
|
587
462
|
const wrappedCallback = callback
|
588
463
|
? (error, response, options, rawResponse) => {
|
@@ -590,11 +465,16 @@ class SiteSearchEngineServiceClient {
|
|
590
465
|
callback(error, response, options, rawResponse); // We verified callback above.
|
591
466
|
}
|
592
467
|
: undefined;
|
593
|
-
return this.innerApiCalls
|
594
|
-
.fetchSitemaps(request, options, wrappedCallback)
|
468
|
+
return this.innerApiCalls.fetchSitemaps(request, options, wrappedCallback)
|
595
469
|
?.then(([response, options, rawResponse]) => {
|
596
470
|
this._log.info('fetchSitemaps response %j', response);
|
597
471
|
return [response, options, rawResponse];
|
472
|
+
}).catch((error) => {
|
473
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
474
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
475
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
476
|
+
}
|
477
|
+
throw error;
|
598
478
|
});
|
599
479
|
}
|
600
480
|
createTargetSite(request, optionsOrCallback, callback) {
|
@@ -610,13 +490,10 @@ class SiteSearchEngineServiceClient {
|
|
610
490
|
options = options || {};
|
611
491
|
options.otherArgs = options.otherArgs || {};
|
612
492
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
613
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
614
|
-
|
615
|
-
parent: request.parent ?? '',
|
616
|
-
});
|
617
|
-
this.initialize().catch(err => {
|
618
|
-
throw err;
|
493
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
494
|
+
'parent': request.parent ?? '',
|
619
495
|
});
|
496
|
+
this.initialize().catch(err => { throw err; });
|
620
497
|
const wrappedCallback = callback
|
621
498
|
? (error, response, rawResponse, _) => {
|
622
499
|
this._log.info('createTargetSite response %j', rawResponse);
|
@@ -624,8 +501,7 @@ class SiteSearchEngineServiceClient {
|
|
624
501
|
}
|
625
502
|
: undefined;
|
626
503
|
this._log.info('createTargetSite request %j', request);
|
627
|
-
return this.innerApiCalls
|
628
|
-
.createTargetSite(request, options, wrappedCallback)
|
504
|
+
return this.innerApiCalls.createTargetSite(request, options, wrappedCallback)
|
629
505
|
?.then(([response, rawResponse, _]) => {
|
630
506
|
this._log.info('createTargetSite response %j', rawResponse);
|
631
507
|
return [response, rawResponse, _];
|
@@ -662,13 +538,10 @@ class SiteSearchEngineServiceClient {
|
|
662
538
|
options = options || {};
|
663
539
|
options.otherArgs = options.otherArgs || {};
|
664
540
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
665
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
666
|
-
|
667
|
-
parent: request.parent ?? '',
|
668
|
-
});
|
669
|
-
this.initialize().catch(err => {
|
670
|
-
throw err;
|
541
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
542
|
+
'parent': request.parent ?? '',
|
671
543
|
});
|
544
|
+
this.initialize().catch(err => { throw err; });
|
672
545
|
const wrappedCallback = callback
|
673
546
|
? (error, response, rawResponse, _) => {
|
674
547
|
this._log.info('batchCreateTargetSites response %j', rawResponse);
|
@@ -676,8 +549,7 @@ class SiteSearchEngineServiceClient {
|
|
676
549
|
}
|
677
550
|
: undefined;
|
678
551
|
this._log.info('batchCreateTargetSites request %j', request);
|
679
|
-
return this.innerApiCalls
|
680
|
-
.batchCreateTargetSites(request, options, wrappedCallback)
|
552
|
+
return this.innerApiCalls.batchCreateTargetSites(request, options, wrappedCallback)
|
681
553
|
?.then(([response, rawResponse, _]) => {
|
682
554
|
this._log.info('batchCreateTargetSites response %j', rawResponse);
|
683
555
|
return [response, rawResponse, _];
|
@@ -714,13 +586,10 @@ class SiteSearchEngineServiceClient {
|
|
714
586
|
options = options || {};
|
715
587
|
options.otherArgs = options.otherArgs || {};
|
716
588
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
717
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
718
|
-
|
719
|
-
'target_site.name': request.targetSite.name ?? '',
|
720
|
-
});
|
721
|
-
this.initialize().catch(err => {
|
722
|
-
throw err;
|
589
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
590
|
+
'target_site.name': request.targetSite.name ?? '',
|
723
591
|
});
|
592
|
+
this.initialize().catch(err => { throw err; });
|
724
593
|
const wrappedCallback = callback
|
725
594
|
? (error, response, rawResponse, _) => {
|
726
595
|
this._log.info('updateTargetSite response %j', rawResponse);
|
@@ -728,8 +597,7 @@ class SiteSearchEngineServiceClient {
|
|
728
597
|
}
|
729
598
|
: undefined;
|
730
599
|
this._log.info('updateTargetSite request %j', request);
|
731
|
-
return this.innerApiCalls
|
732
|
-
.updateTargetSite(request, options, wrappedCallback)
|
600
|
+
return this.innerApiCalls.updateTargetSite(request, options, wrappedCallback)
|
733
601
|
?.then(([response, rawResponse, _]) => {
|
734
602
|
this._log.info('updateTargetSite response %j', rawResponse);
|
735
603
|
return [response, rawResponse, _];
|
@@ -766,13 +634,10 @@ class SiteSearchEngineServiceClient {
|
|
766
634
|
options = options || {};
|
767
635
|
options.otherArgs = options.otherArgs || {};
|
768
636
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
769
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
770
|
-
|
771
|
-
name: request.name ?? '',
|
772
|
-
});
|
773
|
-
this.initialize().catch(err => {
|
774
|
-
throw err;
|
637
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
638
|
+
'name': request.name ?? '',
|
775
639
|
});
|
640
|
+
this.initialize().catch(err => { throw err; });
|
776
641
|
const wrappedCallback = callback
|
777
642
|
? (error, response, rawResponse, _) => {
|
778
643
|
this._log.info('deleteTargetSite response %j', rawResponse);
|
@@ -780,8 +645,7 @@ class SiteSearchEngineServiceClient {
|
|
780
645
|
}
|
781
646
|
: undefined;
|
782
647
|
this._log.info('deleteTargetSite request %j', request);
|
783
|
-
return this.innerApiCalls
|
784
|
-
.deleteTargetSite(request, options, wrappedCallback)
|
648
|
+
return this.innerApiCalls.deleteTargetSite(request, options, wrappedCallback)
|
785
649
|
?.then(([response, rawResponse, _]) => {
|
786
650
|
this._log.info('deleteTargetSite response %j', rawResponse);
|
787
651
|
return [response, rawResponse, _];
|
@@ -818,13 +682,10 @@ class SiteSearchEngineServiceClient {
|
|
818
682
|
options = options || {};
|
819
683
|
options.otherArgs = options.otherArgs || {};
|
820
684
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
821
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
822
|
-
|
823
|
-
parent: request.parent ?? '',
|
824
|
-
});
|
825
|
-
this.initialize().catch(err => {
|
826
|
-
throw err;
|
685
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
686
|
+
'parent': request.parent ?? '',
|
827
687
|
});
|
688
|
+
this.initialize().catch(err => { throw err; });
|
828
689
|
const wrappedCallback = callback
|
829
690
|
? (error, response, rawResponse, _) => {
|
830
691
|
this._log.info('createSitemap response %j', rawResponse);
|
@@ -832,8 +693,7 @@ class SiteSearchEngineServiceClient {
|
|
832
693
|
}
|
833
694
|
: undefined;
|
834
695
|
this._log.info('createSitemap request %j', request);
|
835
|
-
return this.innerApiCalls
|
836
|
-
.createSitemap(request, options, wrappedCallback)
|
696
|
+
return this.innerApiCalls.createSitemap(request, options, wrappedCallback)
|
837
697
|
?.then(([response, rawResponse, _]) => {
|
838
698
|
this._log.info('createSitemap response %j', rawResponse);
|
839
699
|
return [response, rawResponse, _];
|
@@ -870,13 +730,10 @@ class SiteSearchEngineServiceClient {
|
|
870
730
|
options = options || {};
|
871
731
|
options.otherArgs = options.otherArgs || {};
|
872
732
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
873
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
874
|
-
|
875
|
-
name: request.name ?? '',
|
876
|
-
});
|
877
|
-
this.initialize().catch(err => {
|
878
|
-
throw err;
|
733
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
734
|
+
'name': request.name ?? '',
|
879
735
|
});
|
736
|
+
this.initialize().catch(err => { throw err; });
|
880
737
|
const wrappedCallback = callback
|
881
738
|
? (error, response, rawResponse, _) => {
|
882
739
|
this._log.info('deleteSitemap response %j', rawResponse);
|
@@ -884,8 +741,7 @@ class SiteSearchEngineServiceClient {
|
|
884
741
|
}
|
885
742
|
: undefined;
|
886
743
|
this._log.info('deleteSitemap request %j', request);
|
887
|
-
return this.innerApiCalls
|
888
|
-
.deleteSitemap(request, options, wrappedCallback)
|
744
|
+
return this.innerApiCalls.deleteSitemap(request, options, wrappedCallback)
|
889
745
|
?.then(([response, rawResponse, _]) => {
|
890
746
|
this._log.info('deleteSitemap response %j', rawResponse);
|
891
747
|
return [response, rawResponse, _];
|
@@ -922,13 +778,10 @@ class SiteSearchEngineServiceClient {
|
|
922
778
|
options = options || {};
|
923
779
|
options.otherArgs = options.otherArgs || {};
|
924
780
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
925
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
926
|
-
|
927
|
-
site_search_engine: request.siteSearchEngine ?? '',
|
928
|
-
});
|
929
|
-
this.initialize().catch(err => {
|
930
|
-
throw err;
|
781
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
782
|
+
'site_search_engine': request.siteSearchEngine ?? '',
|
931
783
|
});
|
784
|
+
this.initialize().catch(err => { throw err; });
|
932
785
|
const wrappedCallback = callback
|
933
786
|
? (error, response, rawResponse, _) => {
|
934
787
|
this._log.info('enableAdvancedSiteSearch response %j', rawResponse);
|
@@ -936,8 +789,7 @@ class SiteSearchEngineServiceClient {
|
|
936
789
|
}
|
937
790
|
: undefined;
|
938
791
|
this._log.info('enableAdvancedSiteSearch request %j', request);
|
939
|
-
return this.innerApiCalls
|
940
|
-
.enableAdvancedSiteSearch(request, options, wrappedCallback)
|
792
|
+
return this.innerApiCalls.enableAdvancedSiteSearch(request, options, wrappedCallback)
|
941
793
|
?.then(([response, rawResponse, _]) => {
|
942
794
|
this._log.info('enableAdvancedSiteSearch response %j', rawResponse);
|
943
795
|
return [response, rawResponse, _];
|
@@ -974,13 +826,10 @@ class SiteSearchEngineServiceClient {
|
|
974
826
|
options = options || {};
|
975
827
|
options.otherArgs = options.otherArgs || {};
|
976
828
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
977
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
978
|
-
|
979
|
-
site_search_engine: request.siteSearchEngine ?? '',
|
980
|
-
});
|
981
|
-
this.initialize().catch(err => {
|
982
|
-
throw err;
|
829
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
830
|
+
'site_search_engine': request.siteSearchEngine ?? '',
|
983
831
|
});
|
832
|
+
this.initialize().catch(err => { throw err; });
|
984
833
|
const wrappedCallback = callback
|
985
834
|
? (error, response, rawResponse, _) => {
|
986
835
|
this._log.info('disableAdvancedSiteSearch response %j', rawResponse);
|
@@ -988,8 +837,7 @@ class SiteSearchEngineServiceClient {
|
|
988
837
|
}
|
989
838
|
: undefined;
|
990
839
|
this._log.info('disableAdvancedSiteSearch request %j', request);
|
991
|
-
return this.innerApiCalls
|
992
|
-
.disableAdvancedSiteSearch(request, options, wrappedCallback)
|
840
|
+
return this.innerApiCalls.disableAdvancedSiteSearch(request, options, wrappedCallback)
|
993
841
|
?.then(([response, rawResponse, _]) => {
|
994
842
|
this._log.info('disableAdvancedSiteSearch response %j', rawResponse);
|
995
843
|
return [response, rawResponse, _];
|
@@ -1026,13 +874,10 @@ class SiteSearchEngineServiceClient {
|
|
1026
874
|
options = options || {};
|
1027
875
|
options.otherArgs = options.otherArgs || {};
|
1028
876
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
1029
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
1030
|
-
|
1031
|
-
site_search_engine: request.siteSearchEngine ?? '',
|
1032
|
-
});
|
1033
|
-
this.initialize().catch(err => {
|
1034
|
-
throw err;
|
877
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
878
|
+
'site_search_engine': request.siteSearchEngine ?? '',
|
1035
879
|
});
|
880
|
+
this.initialize().catch(err => { throw err; });
|
1036
881
|
const wrappedCallback = callback
|
1037
882
|
? (error, response, rawResponse, _) => {
|
1038
883
|
this._log.info('recrawlUris response %j', rawResponse);
|
@@ -1040,8 +885,7 @@ class SiteSearchEngineServiceClient {
|
|
1040
885
|
}
|
1041
886
|
: undefined;
|
1042
887
|
this._log.info('recrawlUris request %j', request);
|
1043
|
-
return this.innerApiCalls
|
1044
|
-
.recrawlUris(request, options, wrappedCallback)
|
888
|
+
return this.innerApiCalls.recrawlUris(request, options, wrappedCallback)
|
1045
889
|
?.then(([response, rawResponse, _]) => {
|
1046
890
|
this._log.info('recrawlUris response %j', rawResponse);
|
1047
891
|
return [response, rawResponse, _];
|
@@ -1078,13 +922,10 @@ class SiteSearchEngineServiceClient {
|
|
1078
922
|
options = options || {};
|
1079
923
|
options.otherArgs = options.otherArgs || {};
|
1080
924
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
1081
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
1082
|
-
|
1083
|
-
parent: request.parent ?? '',
|
1084
|
-
});
|
1085
|
-
this.initialize().catch(err => {
|
1086
|
-
throw err;
|
925
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
926
|
+
'parent': request.parent ?? '',
|
1087
927
|
});
|
928
|
+
this.initialize().catch(err => { throw err; });
|
1088
929
|
const wrappedCallback = callback
|
1089
930
|
? (error, response, rawResponse, _) => {
|
1090
931
|
this._log.info('batchVerifyTargetSites response %j', rawResponse);
|
@@ -1092,8 +933,7 @@ class SiteSearchEngineServiceClient {
|
|
1092
933
|
}
|
1093
934
|
: undefined;
|
1094
935
|
this._log.info('batchVerifyTargetSites request %j', request);
|
1095
|
-
return this.innerApiCalls
|
1096
|
-
.batchVerifyTargetSites(request, options, wrappedCallback)
|
936
|
+
return this.innerApiCalls.batchVerifyTargetSites(request, options, wrappedCallback)
|
1097
937
|
?.then(([response, rawResponse, _]) => {
|
1098
938
|
this._log.info('batchVerifyTargetSites response %j', rawResponse);
|
1099
939
|
return [response, rawResponse, _];
|
@@ -1130,13 +970,10 @@ class SiteSearchEngineServiceClient {
|
|
1130
970
|
options = options || {};
|
1131
971
|
options.otherArgs = options.otherArgs || {};
|
1132
972
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
1133
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
1134
|
-
|
1135
|
-
parent: request.parent ?? '',
|
1136
|
-
});
|
1137
|
-
this.initialize().catch(err => {
|
1138
|
-
throw err;
|
973
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
974
|
+
'parent': request.parent ?? '',
|
1139
975
|
});
|
976
|
+
this.initialize().catch(err => { throw err; });
|
1140
977
|
const wrappedCallback = callback
|
1141
978
|
? (error, values, nextPageRequest, rawResponse) => {
|
1142
979
|
this._log.info('listTargetSites values %j', values);
|
@@ -1191,15 +1028,12 @@ class SiteSearchEngineServiceClient {
|
|
1191
1028
|
options = options || {};
|
1192
1029
|
options.otherArgs = options.otherArgs || {};
|
1193
1030
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
1194
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
1195
|
-
|
1196
|
-
|
1197
|
-
});
|
1031
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
1032
|
+
'parent': request.parent ?? '',
|
1033
|
+
});
|
1198
1034
|
const defaultCallSettings = this._defaults['listTargetSites'];
|
1199
1035
|
const callSettings = defaultCallSettings.merge(options);
|
1200
|
-
this.initialize().catch(err => {
|
1201
|
-
throw err;
|
1202
|
-
});
|
1036
|
+
this.initialize().catch(err => { throw err; });
|
1203
1037
|
this._log.info('listTargetSites stream %j', request);
|
1204
1038
|
return this.descriptors.page.listTargetSites.createStream(this.innerApiCalls.listTargetSites, request, callSettings);
|
1205
1039
|
}
|
@@ -1246,15 +1080,12 @@ class SiteSearchEngineServiceClient {
|
|
1246
1080
|
options = options || {};
|
1247
1081
|
options.otherArgs = options.otherArgs || {};
|
1248
1082
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
1249
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
1250
|
-
|
1251
|
-
|
1252
|
-
});
|
1083
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
1084
|
+
'parent': request.parent ?? '',
|
1085
|
+
});
|
1253
1086
|
const defaultCallSettings = this._defaults['listTargetSites'];
|
1254
1087
|
const callSettings = defaultCallSettings.merge(options);
|
1255
|
-
this.initialize().catch(err => {
|
1256
|
-
throw err;
|
1257
|
-
});
|
1088
|
+
this.initialize().catch(err => { throw err; });
|
1258
1089
|
this._log.info('listTargetSites iterate %j', request);
|
1259
1090
|
return this.descriptors.page.listTargetSites.asyncIterate(this.innerApiCalls['listTargetSites'], request, callSettings);
|
1260
1091
|
}
|
@@ -1271,13 +1102,10 @@ class SiteSearchEngineServiceClient {
|
|
1271
1102
|
options = options || {};
|
1272
1103
|
options.otherArgs = options.otherArgs || {};
|
1273
1104
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
1274
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
1275
|
-
|
1276
|
-
site_search_engine: request.siteSearchEngine ?? '',
|
1277
|
-
});
|
1278
|
-
this.initialize().catch(err => {
|
1279
|
-
throw err;
|
1105
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
1106
|
+
'site_search_engine': request.siteSearchEngine ?? '',
|
1280
1107
|
});
|
1108
|
+
this.initialize().catch(err => { throw err; });
|
1281
1109
|
const wrappedCallback = callback
|
1282
1110
|
? (error, values, nextPageRequest, rawResponse) => {
|
1283
1111
|
this._log.info('fetchDomainVerificationStatus values %j', values);
|
@@ -1329,15 +1157,12 @@ class SiteSearchEngineServiceClient {
|
|
1329
1157
|
options = options || {};
|
1330
1158
|
options.otherArgs = options.otherArgs || {};
|
1331
1159
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
1332
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
1333
|
-
|
1334
|
-
|
1335
|
-
});
|
1160
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
1161
|
+
'site_search_engine': request.siteSearchEngine ?? '',
|
1162
|
+
});
|
1336
1163
|
const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
|
1337
1164
|
const callSettings = defaultCallSettings.merge(options);
|
1338
|
-
this.initialize().catch(err => {
|
1339
|
-
throw err;
|
1340
|
-
});
|
1165
|
+
this.initialize().catch(err => { throw err; });
|
1341
1166
|
this._log.info('fetchDomainVerificationStatus stream %j', request);
|
1342
1167
|
return this.descriptors.page.fetchDomainVerificationStatus.createStream(this.innerApiCalls.fetchDomainVerificationStatus, request, callSettings);
|
1343
1168
|
}
|
@@ -1381,103 +1206,100 @@ class SiteSearchEngineServiceClient {
|
|
1381
1206
|
options = options || {};
|
1382
1207
|
options.otherArgs = options.otherArgs || {};
|
1383
1208
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
1384
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
1385
|
-
|
1386
|
-
|
1387
|
-
});
|
1209
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
1210
|
+
'site_search_engine': request.siteSearchEngine ?? '',
|
1211
|
+
});
|
1388
1212
|
const defaultCallSettings = this._defaults['fetchDomainVerificationStatus'];
|
1389
1213
|
const callSettings = defaultCallSettings.merge(options);
|
1390
|
-
this.initialize().catch(err => {
|
1391
|
-
throw err;
|
1392
|
-
});
|
1214
|
+
this.initialize().catch(err => { throw err; });
|
1393
1215
|
this._log.info('fetchDomainVerificationStatus iterate %j', request);
|
1394
1216
|
return this.descriptors.page.fetchDomainVerificationStatus.asyncIterate(this.innerApiCalls['fetchDomainVerificationStatus'], request, callSettings);
|
1395
1217
|
}
|
1396
1218
|
/**
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1219
|
+
* Gets information about a location.
|
1220
|
+
*
|
1221
|
+
* @param {Object} request
|
1222
|
+
* The request object that will be sent.
|
1223
|
+
* @param {string} request.name
|
1224
|
+
* Resource name for the location.
|
1225
|
+
* @param {object} [options]
|
1226
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
1227
|
+
* @returns {Promise} - The promise which resolves to an array.
|
1228
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
1229
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
1230
|
+
* for more details and examples.
|
1231
|
+
* @example
|
1232
|
+
* ```
|
1233
|
+
* const [response] = await client.getLocation(request);
|
1234
|
+
* ```
|
1235
|
+
*/
|
1414
1236
|
getLocation(request, options, callback) {
|
1415
1237
|
return this.locationsClient.getLocation(request, options, callback);
|
1416
1238
|
}
|
1417
1239
|
/**
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1240
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
1241
|
+
*
|
1242
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
1243
|
+
* @param {Object} request
|
1244
|
+
* The request object that will be sent.
|
1245
|
+
* @param {string} request.name
|
1246
|
+
* The resource that owns the locations collection, if applicable.
|
1247
|
+
* @param {string} request.filter
|
1248
|
+
* The standard list filter.
|
1249
|
+
* @param {number} request.pageSize
|
1250
|
+
* The standard list page size.
|
1251
|
+
* @param {string} request.pageToken
|
1252
|
+
* The standard list page token.
|
1253
|
+
* @param {object} [options]
|
1254
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
1255
|
+
* @returns {Object}
|
1256
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
1257
|
+
* When you iterate the returned iterable, each element will be an object representing
|
1258
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
1259
|
+
* so you can stop the iteration when you don't need more results.
|
1260
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
1261
|
+
* for more details and examples.
|
1262
|
+
* @example
|
1263
|
+
* ```
|
1264
|
+
* const iterable = client.listLocationsAsync(request);
|
1265
|
+
* for await (const response of iterable) {
|
1266
|
+
* // process response
|
1267
|
+
* }
|
1268
|
+
* ```
|
1269
|
+
*/
|
1448
1270
|
listLocationsAsync(request, options) {
|
1449
1271
|
return this.locationsClient.listLocationsAsync(request, options);
|
1450
1272
|
}
|
1451
1273
|
/**
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1274
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
1275
|
+
* method to poll the operation result at intervals as recommended by the API
|
1276
|
+
* service.
|
1277
|
+
*
|
1278
|
+
* @param {Object} request - The request object that will be sent.
|
1279
|
+
* @param {string} request.name - The name of the operation resource.
|
1280
|
+
* @param {Object=} options
|
1281
|
+
* Optional parameters. You can override the default settings for this call,
|
1282
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
1283
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
1284
|
+
* for the details.
|
1285
|
+
* @param {function(?Error, ?Object)=} callback
|
1286
|
+
* The function which will be called with the result of the API call.
|
1287
|
+
*
|
1288
|
+
* The second parameter to the callback is an object representing
|
1289
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
1290
|
+
* @return {Promise} - The promise which resolves to an array.
|
1291
|
+
* The first element of the array is an object representing
|
1292
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
1293
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
1294
|
+
*
|
1295
|
+
* @example
|
1296
|
+
* ```
|
1297
|
+
* const client = longrunning.operationsClient();
|
1298
|
+
* const name = '';
|
1299
|
+
* const [response] = await client.getOperation({name});
|
1300
|
+
* // doThingsWith(response)
|
1301
|
+
* ```
|
1302
|
+
*/
|
1481
1303
|
getOperation(request, optionsOrCallback, callback) {
|
1482
1304
|
let options;
|
1483
1305
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
@@ -1688,6 +1510,51 @@ class SiteSearchEngineServiceClient {
|
|
1688
1510
|
matchEngineFromEngineName(engineName) {
|
1689
1511
|
return this.pathTemplates.enginePathTemplate.match(engineName).engine;
|
1690
1512
|
}
|
1513
|
+
/**
|
1514
|
+
* Return a fully-qualified identityMappingStore resource name string.
|
1515
|
+
*
|
1516
|
+
* @param {string} project
|
1517
|
+
* @param {string} location
|
1518
|
+
* @param {string} identity_mapping_store
|
1519
|
+
* @returns {string} Resource name string.
|
1520
|
+
*/
|
1521
|
+
identityMappingStorePath(project, location, identityMappingStore) {
|
1522
|
+
return this.pathTemplates.identityMappingStorePathTemplate.render({
|
1523
|
+
project: project,
|
1524
|
+
location: location,
|
1525
|
+
identity_mapping_store: identityMappingStore,
|
1526
|
+
});
|
1527
|
+
}
|
1528
|
+
/**
|
1529
|
+
* Parse the project from IdentityMappingStore resource.
|
1530
|
+
*
|
1531
|
+
* @param {string} identityMappingStoreName
|
1532
|
+
* A fully-qualified path representing IdentityMappingStore resource.
|
1533
|
+
* @returns {string} A string representing the project.
|
1534
|
+
*/
|
1535
|
+
matchProjectFromIdentityMappingStoreName(identityMappingStoreName) {
|
1536
|
+
return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).project;
|
1537
|
+
}
|
1538
|
+
/**
|
1539
|
+
* Parse the location from IdentityMappingStore resource.
|
1540
|
+
*
|
1541
|
+
* @param {string} identityMappingStoreName
|
1542
|
+
* A fully-qualified path representing IdentityMappingStore resource.
|
1543
|
+
* @returns {string} A string representing the location.
|
1544
|
+
*/
|
1545
|
+
matchLocationFromIdentityMappingStoreName(identityMappingStoreName) {
|
1546
|
+
return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).location;
|
1547
|
+
}
|
1548
|
+
/**
|
1549
|
+
* Parse the identity_mapping_store from IdentityMappingStore resource.
|
1550
|
+
*
|
1551
|
+
* @param {string} identityMappingStoreName
|
1552
|
+
* A fully-qualified path representing IdentityMappingStore resource.
|
1553
|
+
* @returns {string} A string representing the identity_mapping_store.
|
1554
|
+
*/
|
1555
|
+
matchIdentityMappingStoreFromIdentityMappingStoreName(identityMappingStoreName) {
|
1556
|
+
return this.pathTemplates.identityMappingStorePathTemplate.match(identityMappingStoreName).identity_mapping_store;
|
1557
|
+
}
|
1691
1558
|
/**
|
1692
1559
|
* Return a fully-qualified project resource name string.
|
1693
1560
|
*
|
@@ -1709,6 +1576,84 @@ class SiteSearchEngineServiceClient {
|
|
1709
1576
|
matchProjectFromProjectName(projectName) {
|
1710
1577
|
return this.pathTemplates.projectPathTemplate.match(projectName).project;
|
1711
1578
|
}
|
1579
|
+
/**
|
1580
|
+
* Return a fully-qualified projectLocationCmekConfig resource name string.
|
1581
|
+
*
|
1582
|
+
* @param {string} project
|
1583
|
+
* @param {string} location
|
1584
|
+
* @returns {string} Resource name string.
|
1585
|
+
*/
|
1586
|
+
projectLocationCmekConfigPath(project, location) {
|
1587
|
+
return this.pathTemplates.projectLocationCmekConfigPathTemplate.render({
|
1588
|
+
project: project,
|
1589
|
+
location: location,
|
1590
|
+
});
|
1591
|
+
}
|
1592
|
+
/**
|
1593
|
+
* Parse the project from ProjectLocationCmekConfig resource.
|
1594
|
+
*
|
1595
|
+
* @param {string} projectLocationCmekConfigName
|
1596
|
+
* A fully-qualified path representing project_location_cmekConfig resource.
|
1597
|
+
* @returns {string} A string representing the project.
|
1598
|
+
*/
|
1599
|
+
matchProjectFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
|
1600
|
+
return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).project;
|
1601
|
+
}
|
1602
|
+
/**
|
1603
|
+
* Parse the location from ProjectLocationCmekConfig resource.
|
1604
|
+
*
|
1605
|
+
* @param {string} projectLocationCmekConfigName
|
1606
|
+
* A fully-qualified path representing project_location_cmekConfig resource.
|
1607
|
+
* @returns {string} A string representing the location.
|
1608
|
+
*/
|
1609
|
+
matchLocationFromProjectLocationCmekConfigName(projectLocationCmekConfigName) {
|
1610
|
+
return this.pathTemplates.projectLocationCmekConfigPathTemplate.match(projectLocationCmekConfigName).location;
|
1611
|
+
}
|
1612
|
+
/**
|
1613
|
+
* Return a fully-qualified projectLocationCmekConfigs resource name string.
|
1614
|
+
*
|
1615
|
+
* @param {string} project
|
1616
|
+
* @param {string} location
|
1617
|
+
* @param {string} cmek_config
|
1618
|
+
* @returns {string} Resource name string.
|
1619
|
+
*/
|
1620
|
+
projectLocationCmekConfigsPath(project, location, cmekConfig) {
|
1621
|
+
return this.pathTemplates.projectLocationCmekConfigsPathTemplate.render({
|
1622
|
+
project: project,
|
1623
|
+
location: location,
|
1624
|
+
cmek_config: cmekConfig,
|
1625
|
+
});
|
1626
|
+
}
|
1627
|
+
/**
|
1628
|
+
* Parse the project from ProjectLocationCmekConfigs resource.
|
1629
|
+
*
|
1630
|
+
* @param {string} projectLocationCmekConfigsName
|
1631
|
+
* A fully-qualified path representing project_location_cmekConfigs resource.
|
1632
|
+
* @returns {string} A string representing the project.
|
1633
|
+
*/
|
1634
|
+
matchProjectFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
|
1635
|
+
return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).project;
|
1636
|
+
}
|
1637
|
+
/**
|
1638
|
+
* Parse the location from ProjectLocationCmekConfigs resource.
|
1639
|
+
*
|
1640
|
+
* @param {string} projectLocationCmekConfigsName
|
1641
|
+
* A fully-qualified path representing project_location_cmekConfigs resource.
|
1642
|
+
* @returns {string} A string representing the location.
|
1643
|
+
*/
|
1644
|
+
matchLocationFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
|
1645
|
+
return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).location;
|
1646
|
+
}
|
1647
|
+
/**
|
1648
|
+
* Parse the cmek_config from ProjectLocationCmekConfigs resource.
|
1649
|
+
*
|
1650
|
+
* @param {string} projectLocationCmekConfigsName
|
1651
|
+
* A fully-qualified path representing project_location_cmekConfigs resource.
|
1652
|
+
* @returns {string} A string representing the cmek_config.
|
1653
|
+
*/
|
1654
|
+
matchCmekConfigFromProjectLocationCmekConfigsName(projectLocationCmekConfigsName) {
|
1655
|
+
return this.pathTemplates.projectLocationCmekConfigsPathTemplate.match(projectLocationCmekConfigsName).cmek_config;
|
1656
|
+
}
|
1712
1657
|
/**
|
1713
1658
|
* Return a fully-qualified projectLocationCollectionDataStore resource name string.
|
1714
1659
|
*
|
@@ -3866,8 +3811,8 @@ class SiteSearchEngineServiceClient {
|
|
3866
3811
|
this._log.info('ending gRPC channel');
|
3867
3812
|
this._terminated = true;
|
3868
3813
|
stub.close();
|
3869
|
-
this.locationsClient.close();
|
3870
|
-
this.operationsClient.close();
|
3814
|
+
this.locationsClient.close().catch(err => { throw err; });
|
3815
|
+
void this.operationsClient.close();
|
3871
3816
|
});
|
3872
3817
|
}
|
3873
3818
|
return Promise.resolve();
|