google-cloud-discovery_engine-v1beta 0.10.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/control_service/client.rb +875 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/paths.rb +167 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/client.rb +814 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/service_stub.rb +440 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/rest.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service.rb +58 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +764 -6
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/paths.rb +199 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +715 -6
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +520 -0
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +15 -7
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/client.rb +15 -7
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +71 -37
- data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/document_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +71 -37
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +312 -5
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +291 -5
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/service_stub.rb +180 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +471 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +438 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/client.rb +485 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/operations.rb +809 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/paths.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/client.rb +452 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/operations.rb +1092 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +481 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +448 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +24 -19
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/paths.rb +66 -0
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +24 -19
- data/lib/google/cloud/discovery_engine/v1beta/rest.rb +4 -0
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +18 -10
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +18 -10
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +26 -14
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +26 -14
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/client.rb +104 -2
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/client.rb +97 -2
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/service_stub.rb +59 -0
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +9 -3
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +27 -12
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +27 -12
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +23 -6
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +23 -6
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +21 -6
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta.rb +4 -0
- data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +69 -0
- data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/control_pb.rb +55 -0
- data/lib/google/cloud/discoveryengine/v1beta/control_service_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1beta/control_service_services_pb.rb +69 -0
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +32 -1
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_services_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1beta/custom_tuning_model_pb.rb +48 -0
- data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/engine_service_pb.rb +6 -1
- data/lib/google/cloud/discoveryengine/v1beta/engine_service_services_pb.rb +12 -0
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +52 -0
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +46 -0
- data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +13 -1
- data/lib/google/cloud/discoveryengine/v1beta/project_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1beta/project_service_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1beta/project_service_services_pb.rb +51 -0
- data/lib/google/cloud/discoveryengine/v1beta/rank_service_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1beta/rank_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_services_pb.rb +2 -0
- data/lib/google/cloud/discoveryengine/v1beta/session_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_service_services_pb.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +362 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +25 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/control.rb +209 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/control_service.rb +126 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversation.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +491 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/custom_tuning_model.rb +75 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/data_store_service.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +4 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +9 -6
- data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +5 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/engine_service.rb +51 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +144 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +79 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +312 -26
- data/proto_docs/google/cloud/discoveryengine/v1beta/project.rb +106 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/project_service.rb +57 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +127 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/recommendation_service.rb +20 -19
- data/proto_docs/google/cloud/discoveryengine/v1beta/schema_service.rb +5 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +181 -43
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_tuning_service.rb +47 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +88 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +25 -4
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event_service.rb +13 -1
- metadata +56 -2
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module DataStoreService
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -191,10 +194,11 @@ module Google
|
|
191
194
|
# Customize the options with defaults
|
192
195
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
193
196
|
|
194
|
-
# Set x-goog-api-client
|
197
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
195
198
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
196
199
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
197
200
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
201
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
198
202
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
199
203
|
|
200
204
|
header_params = {}
|
@@ -287,10 +291,11 @@ module Google
|
|
287
291
|
# Customize the options with defaults
|
288
292
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
289
293
|
|
290
|
-
# Set x-goog-api-client
|
294
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
291
295
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
292
296
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
293
297
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
298
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
294
299
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
300
|
|
296
301
|
header_params = {}
|
@@ -376,10 +381,11 @@ module Google
|
|
376
381
|
# Customize the options with defaults
|
377
382
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
378
383
|
|
379
|
-
# Set x-goog-api-client
|
384
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
380
385
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
381
386
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
382
387
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
388
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
383
389
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
390
|
|
385
391
|
header_params = {}
|
@@ -470,10 +476,11 @@ module Google
|
|
470
476
|
# Customize the options with defaults
|
471
477
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
472
478
|
|
473
|
-
# Set x-goog-api-client
|
479
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
474
480
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
475
481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
476
482
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
483
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
477
484
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
478
485
|
|
479
486
|
header_params = {}
|
@@ -574,10 +581,11 @@ module Google
|
|
574
581
|
# Customize the options with defaults
|
575
582
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
576
583
|
|
577
|
-
# Set x-goog-api-client
|
584
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
578
585
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
579
586
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
580
587
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
588
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
589
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
590
|
|
583
591
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# {::Google::Cloud::DiscoveryEngine::V1beta::DataStore DataStore} configuration.
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
37
40
|
# @private
|
38
41
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
39
42
|
|
@@ -269,12 +272,13 @@ module Google
|
|
269
272
|
# Customize the options with defaults
|
270
273
|
call_metadata = @config.rpcs.create_data_store.metadata.to_h
|
271
274
|
|
272
|
-
# Set x-goog-api-client
|
275
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
273
276
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
274
277
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
275
278
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
276
279
|
transports_version_send: [:rest]
|
277
280
|
|
281
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
278
282
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
283
|
|
280
284
|
options.apply_defaults timeout: @config.rpcs.create_data_store.timeout,
|
@@ -357,12 +361,13 @@ module Google
|
|
357
361
|
# Customize the options with defaults
|
358
362
|
call_metadata = @config.rpcs.get_data_store.metadata.to_h
|
359
363
|
|
360
|
-
# Set x-goog-api-client
|
364
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
361
365
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
362
366
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
363
367
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
364
368
|
transports_version_send: [:rest]
|
365
369
|
|
370
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
366
371
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
367
372
|
|
368
373
|
options.apply_defaults timeout: @config.rpcs.get_data_store.timeout,
|
@@ -427,8 +432,8 @@ module Google
|
|
427
432
|
# must match the call that provided the page token. Otherwise, an
|
428
433
|
# INVALID_ARGUMENT error is returned.
|
429
434
|
# @param filter [::String]
|
430
|
-
# Filter by solution type.
|
431
|
-
# 'solution_type:SOLUTION_TYPE_SEARCH'
|
435
|
+
# Filter by solution type .
|
436
|
+
# For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'`
|
432
437
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
433
438
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::DataStore>]
|
434
439
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -467,12 +472,13 @@ module Google
|
|
467
472
|
# Customize the options with defaults
|
468
473
|
call_metadata = @config.rpcs.list_data_stores.metadata.to_h
|
469
474
|
|
470
|
-
# Set x-goog-api-client
|
475
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
471
476
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
472
477
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
473
478
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
474
479
|
transports_version_send: [:rest]
|
475
480
|
|
481
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
476
482
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
477
483
|
|
478
484
|
options.apply_defaults timeout: @config.rpcs.list_data_stores.timeout,
|
@@ -562,12 +568,13 @@ module Google
|
|
562
568
|
# Customize the options with defaults
|
563
569
|
call_metadata = @config.rpcs.delete_data_store.metadata.to_h
|
564
570
|
|
565
|
-
# Set x-goog-api-client
|
571
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
566
572
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
567
573
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
568
574
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
569
575
|
transports_version_send: [:rest]
|
570
576
|
|
577
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
571
578
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
572
579
|
|
573
580
|
options.apply_defaults timeout: @config.rpcs.delete_data_store.timeout,
|
@@ -655,12 +662,13 @@ module Google
|
|
655
662
|
# Customize the options with defaults
|
656
663
|
call_metadata = @config.rpcs.update_data_store.metadata.to_h
|
657
664
|
|
658
|
-
# Set x-goog-api-client
|
665
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
659
666
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
660
667
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
661
668
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
662
669
|
transports_version_send: [:rest]
|
663
670
|
|
671
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
664
672
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
665
673
|
|
666
674
|
options.apply_defaults timeout: @config.rpcs.update_data_store.timeout,
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -181,12 +184,13 @@ module Google
|
|
181
184
|
# Customize the options with defaults
|
182
185
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
183
186
|
|
184
|
-
# Set x-goog-api-client
|
187
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
185
188
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
186
189
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
187
190
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
188
191
|
transports_version_send: [:rest]
|
189
192
|
|
193
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
190
194
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
191
195
|
|
192
196
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
@@ -269,12 +273,13 @@ module Google
|
|
269
273
|
# Customize the options with defaults
|
270
274
|
call_metadata = @config.rpcs.get_operation.metadata.to_h
|
271
275
|
|
272
|
-
# Set x-goog-api-client
|
276
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
273
277
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
274
278
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
275
279
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
276
280
|
transports_version_send: [:rest]
|
277
281
|
|
282
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
278
283
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
284
|
|
280
285
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
@@ -351,12 +356,13 @@ module Google
|
|
351
356
|
# Customize the options with defaults
|
352
357
|
call_metadata = @config.rpcs.delete_operation.metadata.to_h
|
353
358
|
|
354
|
-
# Set x-goog-api-client
|
359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
355
360
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
356
361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
357
362
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
358
363
|
transports_version_send: [:rest]
|
359
364
|
|
365
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
366
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
367
|
|
362
368
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
@@ -438,12 +444,13 @@ module Google
|
|
438
444
|
# Customize the options with defaults
|
439
445
|
call_metadata = @config.rpcs.cancel_operation.metadata.to_h
|
440
446
|
|
441
|
-
# Set x-goog-api-client
|
447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
442
448
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
443
449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
444
450
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
445
451
|
transports_version_send: [:rest]
|
446
452
|
|
453
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
447
454
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
448
455
|
|
449
456
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
@@ -1060,10 +1067,18 @@ module Google
|
|
1060
1067
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1061
1068
|
.with_bindings(
|
1062
1069
|
uri_method: :post,
|
1063
|
-
uri_template: "/
|
1070
|
+
uri_template: "/v1beta/{name}:cancel",
|
1064
1071
|
body: "*",
|
1065
1072
|
matches: [
|
1066
|
-
["name", %r{^operations
|
1073
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
|
1074
|
+
]
|
1075
|
+
)
|
1076
|
+
.with_bindings(
|
1077
|
+
uri_method: :post,
|
1078
|
+
uri_template: "/v1beta/{name}:cancel",
|
1079
|
+
body: "*",
|
1080
|
+
matches: [
|
1081
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
|
1067
1082
|
]
|
1068
1083
|
)
|
1069
1084
|
transcoder.transcode request_pb
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# customer's website.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -265,10 +268,11 @@ module Google
|
|
265
268
|
# Customize the options with defaults
|
266
269
|
metadata = @config.rpcs.get_document.metadata.to_h
|
267
270
|
|
268
|
-
# Set x-goog-api-client
|
271
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
269
272
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
270
273
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
271
274
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
275
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
272
276
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
273
277
|
|
274
278
|
header_params = {}
|
@@ -326,7 +330,7 @@ module Google
|
|
326
330
|
# @param page_size [::Integer]
|
327
331
|
# Maximum number of {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s
|
328
332
|
# to return. If unspecified, defaults to 100. The maximum allowed value is
|
329
|
-
# 1000. Values above 1000
|
333
|
+
# 1000. Values above 1000 are set to 1000.
|
330
334
|
#
|
331
335
|
# If this field is negative, an `INVALID_ARGUMENT` error is returned.
|
332
336
|
# @param page_token [::String]
|
@@ -379,10 +383,11 @@ module Google
|
|
379
383
|
# Customize the options with defaults
|
380
384
|
metadata = @config.rpcs.list_documents.metadata.to_h
|
381
385
|
|
382
|
-
# Set x-goog-api-client
|
386
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
383
387
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
384
388
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
385
389
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
390
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
386
391
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
387
392
|
|
388
393
|
header_params = {}
|
@@ -436,8 +441,8 @@ module Google
|
|
436
441
|
# create.
|
437
442
|
# @param document_id [::String]
|
438
443
|
# Required. The ID to use for the
|
439
|
-
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}, which
|
440
|
-
#
|
444
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}, which becomes the
|
445
|
+
# final component of the
|
441
446
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document#name Document.name}.
|
442
447
|
#
|
443
448
|
# If the caller does not have permission to create the
|
@@ -487,10 +492,11 @@ module Google
|
|
487
492
|
# Customize the options with defaults
|
488
493
|
metadata = @config.rpcs.create_document.metadata.to_h
|
489
494
|
|
490
|
-
# Set x-goog-api-client
|
495
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
491
496
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
492
497
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
493
498
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
499
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
494
500
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
495
501
|
|
496
502
|
header_params = {}
|
@@ -530,7 +536,7 @@ module Google
|
|
530
536
|
# @param options [::Gapic::CallOptions, ::Hash]
|
531
537
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
532
538
|
#
|
533
|
-
# @overload update_document(document: nil, allow_missing: nil)
|
539
|
+
# @overload update_document(document: nil, allow_missing: nil, update_mask: nil)
|
534
540
|
# Pass arguments to `update_document` via keyword arguments. Note that at
|
535
541
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
536
542
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -547,10 +553,12 @@ module Google
|
|
547
553
|
# {::Google::Cloud::DiscoveryEngine::V1beta::UpdateDocumentRequest#allow_missing allow_missing}
|
548
554
|
# is not set, a `NOT_FOUND` error is returned.
|
549
555
|
# @param allow_missing [::Boolean]
|
550
|
-
# If set to true
|
556
|
+
# If set to `true` and the
|
551
557
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} is not found, a
|
552
|
-
# new {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}
|
553
|
-
#
|
558
|
+
# new {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} is be created.
|
559
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
560
|
+
# Indicates which fields in the provided imported 'document' to update. If
|
561
|
+
# not set, by default updates all fields.
|
554
562
|
#
|
555
563
|
# @yield [response, operation] Access the result along with the RPC operation
|
556
564
|
# @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::Document]
|
@@ -586,10 +594,11 @@ module Google
|
|
586
594
|
# Customize the options with defaults
|
587
595
|
metadata = @config.rpcs.update_document.metadata.to_h
|
588
596
|
|
589
|
-
# Set x-goog-api-client
|
597
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
590
598
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
591
599
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
592
600
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
601
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
593
602
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
594
603
|
|
595
604
|
header_params = {}
|
@@ -680,10 +689,11 @@ module Google
|
|
680
689
|
# Customize the options with defaults
|
681
690
|
metadata = @config.rpcs.delete_document.metadata.to_h
|
682
691
|
|
683
|
-
# Set x-goog-api-client
|
692
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
684
693
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
685
694
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
686
695
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
696
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
687
697
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
688
698
|
|
689
699
|
header_params = {}
|
@@ -713,7 +723,7 @@ module Google
|
|
713
723
|
##
|
714
724
|
# Bulk import of multiple
|
715
725
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s. Request
|
716
|
-
# processing may be synchronous. Non-existing items
|
726
|
+
# processing may be synchronous. Non-existing items are created.
|
717
727
|
#
|
718
728
|
# Note: It is possible for a subset of the
|
719
729
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s to be
|
@@ -729,7 +739,7 @@ module Google
|
|
729
739
|
# @param options [::Gapic::CallOptions, ::Hash]
|
730
740
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
731
741
|
#
|
732
|
-
# @overload import_documents(inline_source: nil, gcs_source: nil, bigquery_source: nil, parent: nil, error_config: nil, reconciliation_mode: nil, auto_generate_ids: nil, id_field: nil)
|
742
|
+
# @overload import_documents(inline_source: nil, gcs_source: nil, bigquery_source: nil, fhir_store_source: nil, spanner_source: nil, cloud_sql_source: nil, firestore_source: nil, bigtable_source: nil, parent: nil, error_config: nil, reconciliation_mode: nil, update_mask: nil, auto_generate_ids: nil, id_field: nil)
|
733
743
|
# Pass arguments to `import_documents` via keyword arguments. Note that at
|
734
744
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
735
745
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -740,6 +750,16 @@ module Google
|
|
740
750
|
# Cloud Storage location for the input content.
|
741
751
|
# @param bigquery_source [::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource, ::Hash]
|
742
752
|
# BigQuery input source.
|
753
|
+
# @param fhir_store_source [::Google::Cloud::DiscoveryEngine::V1beta::FhirStoreSource, ::Hash]
|
754
|
+
# FhirStore input source.
|
755
|
+
# @param spanner_source [::Google::Cloud::DiscoveryEngine::V1beta::SpannerSource, ::Hash]
|
756
|
+
# Spanner input source.
|
757
|
+
# @param cloud_sql_source [::Google::Cloud::DiscoveryEngine::V1beta::CloudSqlSource, ::Hash]
|
758
|
+
# Cloud SQL input source.
|
759
|
+
# @param firestore_source [::Google::Cloud::DiscoveryEngine::V1beta::FirestoreSource, ::Hash]
|
760
|
+
# Firestore input source.
|
761
|
+
# @param bigtable_source [::Google::Cloud::DiscoveryEngine::V1beta::BigtableSource, ::Hash]
|
762
|
+
# Cloud Bigtable input source.
|
743
763
|
# @param parent [::String]
|
744
764
|
# Required. The parent branch resource name, such as
|
745
765
|
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
|
@@ -750,6 +770,9 @@ module Google
|
|
750
770
|
# The mode of reconciliation between existing documents and the documents to
|
751
771
|
# be imported. Defaults to
|
752
772
|
# {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest::ReconciliationMode::INCREMENTAL ReconciliationMode.INCREMENTAL}.
|
773
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
774
|
+
# Indicates which fields in the provided imported documents to update. If
|
775
|
+
# not set, the default is to update all fields.
|
753
776
|
# @param auto_generate_ids [::Boolean]
|
754
777
|
# Whether to automatically generate IDs for the documents if absent.
|
755
778
|
#
|
@@ -764,45 +787,54 @@ module Google
|
|
764
787
|
# {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest#id_field id_field},
|
765
788
|
# otherwise, documents without IDs fail to be imported.
|
766
789
|
#
|
767
|
-
#
|
768
|
-
#
|
769
|
-
# {::Google::Cloud::DiscoveryEngine::V1beta::
|
770
|
-
# when
|
790
|
+
# Supported data sources:
|
791
|
+
#
|
792
|
+
# * {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource}.
|
771
793
|
# {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource#data_schema GcsSource.data_schema}
|
772
|
-
# or
|
794
|
+
# must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
795
|
+
# * {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource}.
|
773
796
|
# {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource#data_schema BigQuerySource.data_schema}
|
774
|
-
#
|
797
|
+
# must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
798
|
+
# * {::Google::Cloud::DiscoveryEngine::V1beta::SpannerSource SpannerSource}.
|
799
|
+
# * {::Google::Cloud::DiscoveryEngine::V1beta::CloudSqlSource CloudSqlSource}.
|
800
|
+
# * {::Google::Cloud::DiscoveryEngine::V1beta::FirestoreSource FirestoreSource}.
|
801
|
+
# * {::Google::Cloud::DiscoveryEngine::V1beta::BigtableSource BigtableSource}.
|
775
802
|
# @param id_field [::String]
|
776
|
-
# The field
|
777
|
-
#
|
803
|
+
# The field indicates the ID field or column to be used as unique IDs of
|
804
|
+
# the documents.
|
778
805
|
#
|
779
806
|
# For {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} it is the
|
780
807
|
# key of the JSON field. For instance, `my_id` for JSON `{"my_id":
|
781
|
-
# "some_uuid"}`. For
|
782
|
-
#
|
783
|
-
# the column name of the BigQuery table where the unique ids are stored.
|
808
|
+
# "some_uuid"}`. For others, it may be the column name of the table where the
|
809
|
+
# unique ids are stored.
|
784
810
|
#
|
785
|
-
# The values of the JSON field or the
|
811
|
+
# The values of the JSON field or the table column are used as the
|
786
812
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document#id Document.id}s. The JSON
|
787
|
-
# field or the
|
813
|
+
# field or the table column must be of string type, and the values must be
|
788
814
|
# set as valid strings conform to
|
789
815
|
# [RFC-1034](https://tools.ietf.org/html/rfc1034) with 1-63 characters.
|
790
816
|
# Otherwise, documents without valid IDs fail to be imported.
|
791
817
|
#
|
792
|
-
# Only set this field when
|
793
|
-
# {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource} or
|
794
|
-
# {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource}, and
|
795
|
-
# when
|
796
|
-
# {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource#data_schema GcsSource.data_schema}
|
797
|
-
# or
|
798
|
-
# {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource#data_schema BigQuerySource.data_schema}
|
799
|
-
# is `custom`. And only set this field when
|
818
|
+
# Only set this field when
|
800
819
|
# {::Google::Cloud::DiscoveryEngine::V1beta::ImportDocumentsRequest#auto_generate_ids auto_generate_ids}
|
801
820
|
# is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
802
821
|
#
|
803
822
|
# If it is unset, a default value `_id` is used when importing from the
|
804
823
|
# allowed data sources.
|
805
824
|
#
|
825
|
+
# Supported data sources:
|
826
|
+
#
|
827
|
+
# * {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource GcsSource}.
|
828
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::GcsSource#data_schema GcsSource.data_schema}
|
829
|
+
# must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
830
|
+
# * {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource BigQuerySource}.
|
831
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::BigQuerySource#data_schema BigQuerySource.data_schema}
|
832
|
+
# must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
|
833
|
+
# * {::Google::Cloud::DiscoveryEngine::V1beta::SpannerSource SpannerSource}.
|
834
|
+
# * {::Google::Cloud::DiscoveryEngine::V1beta::CloudSqlSource CloudSqlSource}.
|
835
|
+
# * {::Google::Cloud::DiscoveryEngine::V1beta::FirestoreSource FirestoreSource}.
|
836
|
+
# * {::Google::Cloud::DiscoveryEngine::V1beta::BigtableSource BigtableSource}.
|
837
|
+
#
|
806
838
|
# @yield [response, operation] Access the result along with the RPC operation
|
807
839
|
# @yieldparam response [::Gapic::Operation]
|
808
840
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
@@ -844,10 +876,11 @@ module Google
|
|
844
876
|
# Customize the options with defaults
|
845
877
|
metadata = @config.rpcs.import_documents.metadata.to_h
|
846
878
|
|
847
|
-
# Set x-goog-api-client
|
879
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
848
880
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
849
881
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
850
882
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
883
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
851
884
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
852
885
|
|
853
886
|
header_params = {}
|
@@ -961,10 +994,11 @@ module Google
|
|
961
994
|
# Customize the options with defaults
|
962
995
|
metadata = @config.rpcs.purge_documents.metadata.to_h
|
963
996
|
|
964
|
-
# Set x-goog-api-client
|
997
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
965
998
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
966
999
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
967
1000
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
1001
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
968
1002
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
969
1003
|
|
970
1004
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module DocumentService
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -191,10 +194,11 @@ module Google
|
|
191
194
|
# Customize the options with defaults
|
192
195
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
193
196
|
|
194
|
-
# Set x-goog-api-client
|
197
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
195
198
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
196
199
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
197
200
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
201
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
198
202
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
199
203
|
|
200
204
|
header_params = {}
|
@@ -287,10 +291,11 @@ module Google
|
|
287
291
|
# Customize the options with defaults
|
288
292
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
289
293
|
|
290
|
-
# Set x-goog-api-client
|
294
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
291
295
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
292
296
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
293
297
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
298
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
294
299
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
300
|
|
296
301
|
header_params = {}
|
@@ -376,10 +381,11 @@ module Google
|
|
376
381
|
# Customize the options with defaults
|
377
382
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
378
383
|
|
379
|
-
# Set x-goog-api-client
|
384
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
380
385
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
381
386
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
382
387
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
388
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
383
389
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
390
|
|
385
391
|
header_params = {}
|
@@ -470,10 +476,11 @@ module Google
|
|
470
476
|
# Customize the options with defaults
|
471
477
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
472
478
|
|
473
|
-
# Set x-goog-api-client
|
479
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
474
480
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
475
481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
476
482
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
483
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
477
484
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
478
485
|
|
479
486
|
header_params = {}
|
@@ -574,10 +581,11 @@ module Google
|
|
574
581
|
# Customize the options with defaults
|
575
582
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
576
583
|
|
577
|
-
# Set x-goog-api-client
|
584
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
578
585
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
579
586
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
580
587
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
588
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
589
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
590
|
|
583
591
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
@@ -126,6 +126,27 @@ module Google
|
|
126
126
|
resource.call(**args)
|
127
127
|
end
|
128
128
|
|
129
|
+
##
|
130
|
+
# Create a fully-qualified FhirStore resource string.
|
131
|
+
#
|
132
|
+
# The resource will be in the following format:
|
133
|
+
#
|
134
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}`
|
135
|
+
#
|
136
|
+
# @param project [String]
|
137
|
+
# @param location [String]
|
138
|
+
# @param dataset [String]
|
139
|
+
# @param fhir_store [String]
|
140
|
+
#
|
141
|
+
# @return [::String]
|
142
|
+
def fhir_store_path project:, location:, dataset:, fhir_store:
|
143
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
144
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
145
|
+
raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
|
146
|
+
|
147
|
+
"projects/#{project}/locations/#{location}/datasets/#{dataset}/fhirStores/#{fhir_store}"
|
148
|
+
end
|
149
|
+
|
129
150
|
extend self
|
130
151
|
end
|
131
152
|
end
|