google-cloud-discovery_engine-v1beta 0.11.0 → 0.13.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 +35 -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 +31 -15
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +31 -15
- 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 +35 -6
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +24 -15
- data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +24 -15
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +35 -6
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +19 -8
- 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 +19 -8
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +35 -6
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/client.rb +824 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/operations.rb +809 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/paths.rb +250 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/client.rb +770 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/operations.rb +1106 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/service_stub.rb +306 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +25 -3
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +25 -3
- 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 +1106 -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 +24 -2
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +24 -2
- 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 +5 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/client.rb +1035 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/operations.rb +809 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/paths.rb +73 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/client.rb +967 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/operations.rb +1106 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/service_stub.rb +426 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/client.rb +911 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/paths.rb +69 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/client.rb +850 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/service_stub.rb +366 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service.rb +56 -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 +35 -6
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +25 -12
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +25 -12
- 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 +35 -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 +35 -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 +35 -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 +5 -0
- data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1beta/chunk_pb.rb +50 -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 +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/custom_tuning_model_pb.rb +48 -0
- data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +4 -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/evaluation_pb.rb +56 -0
- data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_pb.rb +59 -0
- data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_services_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +7 -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 +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_pb.rb +59 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_services_pb.rb +63 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_pb.rb +47 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_services_pb.rb +59 -0
- data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +5 -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/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/api/client.rb +14 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +9 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/chunk.rb +119 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +16 -0
- 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 +29 -5
- 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.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +44 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +6 -7
- data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +3 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation.rb +223 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation_service.rb +194 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +39 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +89 -4
- 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 +28 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/recommendation_service.rb +20 -19
- data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query.rb +82 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_service.rb +179 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_set.rb +57 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/sample_query_set_service.rb +186 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/schema_service.rb +5 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +95 -28
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_tuning_service.rb +31 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +11 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +4 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +24 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event_service.rb +13 -1
- metadata +72 -2
@@ -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,
|
@@ -1009,6 +1016,13 @@ module Google
|
|
1009
1016
|
["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/operations/[^/]+/?$}, false]
|
1010
1017
|
]
|
1011
1018
|
)
|
1019
|
+
.with_bindings(
|
1020
|
+
uri_method: :get,
|
1021
|
+
uri_template: "/v1beta/{name}",
|
1022
|
+
matches: [
|
1023
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
|
1024
|
+
]
|
1025
|
+
)
|
1012
1026
|
.with_bindings(
|
1013
1027
|
uri_method: :get,
|
1014
1028
|
uri_template: "/v1beta/{name}",
|
@@ -1016,6 +1030,13 @@ module Google
|
|
1016
1030
|
["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
|
1017
1031
|
]
|
1018
1032
|
)
|
1033
|
+
.with_bindings(
|
1034
|
+
uri_method: :get,
|
1035
|
+
uri_template: "/v1beta/{name}",
|
1036
|
+
matches: [
|
1037
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/sampleQuerySets/[^/]+/operations/[^/]+/?$}, false]
|
1038
|
+
]
|
1039
|
+
)
|
1019
1040
|
.with_bindings(
|
1020
1041
|
uri_method: :get,
|
1021
1042
|
uri_template: "/v1beta/{name}",
|
@@ -1060,10 +1081,18 @@ module Google
|
|
1060
1081
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1061
1082
|
.with_bindings(
|
1062
1083
|
uri_method: :post,
|
1063
|
-
uri_template: "/
|
1084
|
+
uri_template: "/v1beta/{name}:cancel",
|
1064
1085
|
body: "*",
|
1065
1086
|
matches: [
|
1066
|
-
["name", %r{^operations
|
1087
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
|
1088
|
+
]
|
1089
|
+
)
|
1090
|
+
.with_bindings(
|
1091
|
+
uri_method: :post,
|
1092
|
+
uri_template: "/v1beta/{name}:cancel",
|
1093
|
+
body: "*",
|
1094
|
+
matches: [
|
1095
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
|
1067
1096
|
]
|
1068
1097
|
)
|
1069
1098
|
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 = {}
|
@@ -547,13 +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
|
-
# created.
|
558
|
+
# new {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} is be created.
|
554
559
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
555
560
|
# Indicates which fields in the provided imported 'document' to update. If
|
556
|
-
# not set,
|
561
|
+
# not set, by default updates all fields.
|
557
562
|
#
|
558
563
|
# @yield [response, operation] Access the result along with the RPC operation
|
559
564
|
# @yieldparam response [::Google::Cloud::DiscoveryEngine::V1beta::Document]
|
@@ -589,10 +594,11 @@ module Google
|
|
589
594
|
# Customize the options with defaults
|
590
595
|
metadata = @config.rpcs.update_document.metadata.to_h
|
591
596
|
|
592
|
-
# Set x-goog-api-client
|
597
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
593
598
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
594
599
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
595
600
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
601
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
596
602
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
597
603
|
|
598
604
|
header_params = {}
|
@@ -683,10 +689,11 @@ module Google
|
|
683
689
|
# Customize the options with defaults
|
684
690
|
metadata = @config.rpcs.delete_document.metadata.to_h
|
685
691
|
|
686
|
-
# Set x-goog-api-client
|
692
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
687
693
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
688
694
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
689
695
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
696
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
690
697
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
691
698
|
|
692
699
|
header_params = {}
|
@@ -716,7 +723,7 @@ module Google
|
|
716
723
|
##
|
717
724
|
# Bulk import of multiple
|
718
725
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s. Request
|
719
|
-
# processing may be synchronous. Non-existing items
|
726
|
+
# processing may be synchronous. Non-existing items are created.
|
720
727
|
#
|
721
728
|
# Note: It is possible for a subset of the
|
722
729
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s to be
|
@@ -869,10 +876,11 @@ module Google
|
|
869
876
|
# Customize the options with defaults
|
870
877
|
metadata = @config.rpcs.import_documents.metadata.to_h
|
871
878
|
|
872
|
-
# Set x-goog-api-client
|
879
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
873
880
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
874
881
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
875
882
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
883
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
876
884
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
877
885
|
|
878
886
|
header_params = {}
|
@@ -986,10 +994,11 @@ module Google
|
|
986
994
|
# Customize the options with defaults
|
987
995
|
metadata = @config.rpcs.purge_documents.metadata.to_h
|
988
996
|
|
989
|
-
# Set x-goog-api-client
|
997
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
990
998
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
991
999
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
992
1000
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION
|
1001
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
993
1002
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
994
1003
|
|
995
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,
|
@@ -35,6 +35,9 @@ module Google
|
|
35
35
|
# customer's website.
|
36
36
|
#
|
37
37
|
class Client
|
38
|
+
# @private
|
39
|
+
API_VERSION = ""
|
40
|
+
|
38
41
|
# @private
|
39
42
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
40
43
|
|
@@ -257,12 +260,13 @@ module Google
|
|
257
260
|
# Customize the options with defaults
|
258
261
|
call_metadata = @config.rpcs.get_document.metadata.to_h
|
259
262
|
|
260
|
-
# Set x-goog-api-client
|
263
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
261
264
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
262
265
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
263
266
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
264
267
|
transports_version_send: [:rest]
|
265
268
|
|
269
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
266
270
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
267
271
|
|
268
272
|
options.apply_defaults timeout: @config.rpcs.get_document.timeout,
|
@@ -312,7 +316,7 @@ module Google
|
|
312
316
|
# @param page_size [::Integer]
|
313
317
|
# Maximum number of {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s
|
314
318
|
# to return. If unspecified, defaults to 100. The maximum allowed value is
|
315
|
-
# 1000. Values above 1000
|
319
|
+
# 1000. Values above 1000 are set to 1000.
|
316
320
|
#
|
317
321
|
# If this field is negative, an `INVALID_ARGUMENT` error is returned.
|
318
322
|
# @param page_token [::String]
|
@@ -364,12 +368,13 @@ module Google
|
|
364
368
|
# Customize the options with defaults
|
365
369
|
call_metadata = @config.rpcs.list_documents.metadata.to_h
|
366
370
|
|
367
|
-
# Set x-goog-api-client
|
371
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
368
372
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
369
373
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
370
374
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
371
375
|
transports_version_send: [:rest]
|
372
376
|
|
377
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
373
378
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
374
379
|
|
375
380
|
options.apply_defaults timeout: @config.rpcs.list_documents.timeout,
|
@@ -415,8 +420,8 @@ module Google
|
|
415
420
|
# create.
|
416
421
|
# @param document_id [::String]
|
417
422
|
# Required. The ID to use for the
|
418
|
-
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}, which
|
419
|
-
#
|
423
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}, which becomes the
|
424
|
+
# final component of the
|
420
425
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document#name Document.name}.
|
421
426
|
#
|
422
427
|
# If the caller does not have permission to create the
|
@@ -465,12 +470,13 @@ module Google
|
|
465
470
|
# Customize the options with defaults
|
466
471
|
call_metadata = @config.rpcs.create_document.metadata.to_h
|
467
472
|
|
468
|
-
# Set x-goog-api-client
|
473
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
469
474
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
470
475
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
471
476
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
472
477
|
transports_version_send: [:rest]
|
473
478
|
|
479
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
474
480
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
475
481
|
|
476
482
|
options.apply_defaults timeout: @config.rpcs.create_document.timeout,
|
@@ -519,13 +525,12 @@ module Google
|
|
519
525
|
# {::Google::Cloud::DiscoveryEngine::V1beta::UpdateDocumentRequest#allow_missing allow_missing}
|
520
526
|
# is not set, a `NOT_FOUND` error is returned.
|
521
527
|
# @param allow_missing [::Boolean]
|
522
|
-
# If set to true
|
528
|
+
# If set to `true` and the
|
523
529
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} is not found, a
|
524
|
-
# new {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}
|
525
|
-
# created.
|
530
|
+
# new {::Google::Cloud::DiscoveryEngine::V1beta::Document Document} is be created.
|
526
531
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
527
532
|
# Indicates which fields in the provided imported 'document' to update. If
|
528
|
-
# not set,
|
533
|
+
# not set, by default updates all fields.
|
529
534
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
530
535
|
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1beta::Document]
|
531
536
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -560,12 +565,13 @@ module Google
|
|
560
565
|
# Customize the options with defaults
|
561
566
|
call_metadata = @config.rpcs.update_document.metadata.to_h
|
562
567
|
|
563
|
-
# Set x-goog-api-client
|
568
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
564
569
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
565
570
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
566
571
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
567
572
|
transports_version_send: [:rest]
|
568
573
|
|
574
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
569
575
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
570
576
|
|
571
577
|
options.apply_defaults timeout: @config.rpcs.update_document.timeout,
|
@@ -647,12 +653,13 @@ module Google
|
|
647
653
|
# Customize the options with defaults
|
648
654
|
call_metadata = @config.rpcs.delete_document.metadata.to_h
|
649
655
|
|
650
|
-
# Set x-goog-api-client
|
656
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
651
657
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
652
658
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
653
659
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
654
660
|
transports_version_send: [:rest]
|
655
661
|
|
662
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
656
663
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
657
664
|
|
658
665
|
options.apply_defaults timeout: @config.rpcs.delete_document.timeout,
|
@@ -674,7 +681,7 @@ module Google
|
|
674
681
|
##
|
675
682
|
# Bulk import of multiple
|
676
683
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s. Request
|
677
|
-
# processing may be synchronous. Non-existing items
|
684
|
+
# processing may be synchronous. Non-existing items are created.
|
678
685
|
#
|
679
686
|
# Note: It is possible for a subset of the
|
680
687
|
# {::Google::Cloud::DiscoveryEngine::V1beta::Document Document}s to be
|
@@ -826,12 +833,13 @@ module Google
|
|
826
833
|
# Customize the options with defaults
|
827
834
|
call_metadata = @config.rpcs.import_documents.metadata.to_h
|
828
835
|
|
829
|
-
# Set x-goog-api-client
|
836
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
830
837
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
831
838
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
832
839
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
833
840
|
transports_version_send: [:rest]
|
834
841
|
|
842
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
835
843
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
836
844
|
|
837
845
|
options.apply_defaults timeout: @config.rpcs.import_documents.timeout,
|
@@ -936,12 +944,13 @@ module Google
|
|
936
944
|
# Customize the options with defaults
|
937
945
|
call_metadata = @config.rpcs.purge_documents.metadata.to_h
|
938
946
|
|
939
|
-
# Set x-goog-api-client
|
947
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
940
948
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
941
949
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
942
950
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
943
951
|
transports_version_send: [:rest]
|
944
952
|
|
953
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
945
954
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
946
955
|
|
947
956
|
options.apply_defaults timeout: @config.rpcs.purge_documents.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,
|
@@ -1009,6 +1016,13 @@ module Google
|
|
1009
1016
|
["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/operations/[^/]+/?$}, false]
|
1010
1017
|
]
|
1011
1018
|
)
|
1019
|
+
.with_bindings(
|
1020
|
+
uri_method: :get,
|
1021
|
+
uri_template: "/v1beta/{name}",
|
1022
|
+
matches: [
|
1023
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/evaluations/[^/]+/operations/[^/]+/?$}, false]
|
1024
|
+
]
|
1025
|
+
)
|
1012
1026
|
.with_bindings(
|
1013
1027
|
uri_method: :get,
|
1014
1028
|
uri_template: "/v1beta/{name}",
|
@@ -1016,6 +1030,13 @@ module Google
|
|
1016
1030
|
["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
|
1017
1031
|
]
|
1018
1032
|
)
|
1033
|
+
.with_bindings(
|
1034
|
+
uri_method: :get,
|
1035
|
+
uri_template: "/v1beta/{name}",
|
1036
|
+
matches: [
|
1037
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/sampleQuerySets/[^/]+/operations/[^/]+/?$}, false]
|
1038
|
+
]
|
1039
|
+
)
|
1019
1040
|
.with_bindings(
|
1020
1041
|
uri_method: :get,
|
1021
1042
|
uri_template: "/v1beta/{name}",
|
@@ -1060,10 +1081,18 @@ module Google
|
|
1060
1081
|
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1061
1082
|
.with_bindings(
|
1062
1083
|
uri_method: :post,
|
1063
|
-
uri_template: "/
|
1084
|
+
uri_template: "/v1beta/{name}:cancel",
|
1064
1085
|
body: "*",
|
1065
1086
|
matches: [
|
1066
|
-
["name", %r{^operations
|
1087
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
|
1088
|
+
]
|
1089
|
+
)
|
1090
|
+
.with_bindings(
|
1091
|
+
uri_method: :post,
|
1092
|
+
uri_template: "/v1beta/{name}:cancel",
|
1093
|
+
body: "*",
|
1094
|
+
matches: [
|
1095
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
|
1067
1096
|
]
|
1068
1097
|
)
|
1069
1098
|
transcoder.transcode request_pb
|