google-cloud-discovery_engine-v1 2.13.0 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +4 -4
- data/README.md +8 -10
- data/lib/google/cloud/discovery_engine/v1/acl_config_service/client.rb +591 -0
- data/lib/google/cloud/discovery_engine/v1/acl_config_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1/acl_config_service/paths.rb +50 -0
- data/lib/google/cloud/discovery_engine/v1/acl_config_service/rest/client.rb +534 -0
- data/lib/google/cloud/discovery_engine/v1/acl_config_service/rest/service_stub.rb +204 -0
- data/lib/google/cloud/discovery_engine/v1/acl_config_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/acl_config_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/assistant_service/client.rb +528 -0
- data/lib/google/cloud/discovery_engine/v1/assistant_service/credentials.rb +4 -1
- data/lib/google/cloud/discovery_engine/v1/assistant_service/paths.rb +104 -0
- data/lib/google/cloud/discovery_engine/v1/assistant_service/rest/client.rb +493 -0
- data/lib/google/cloud/discovery_engine/v1/assistant_service/rest/service_stub.rb +307 -0
- data/lib/google/cloud/discovery_engine/v1/cmek_config_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/cmek_config_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/client.rb +732 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/operations.rb +843 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/rest/client.rb +668 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/rest/operations.rb +1168 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/rest/service_stub.rb +265 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1/collection_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +162 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/credentials.rb +5 -1
- data/lib/google/cloud/discovery_engine/v1/completion_service/paths.rb +62 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +155 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/service_stub.rb +78 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +37 -9
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +37 -9
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/client.rb +779 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/credentials.rb +50 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/operations.rb +843 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/paths.rb +227 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/rest/client.rb +715 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/rest/operations.rb +1168 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/rest/service_stub.rb +274 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1/data_connector_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +215 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb +62 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +201 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/service_stub.rb +138 -0
- data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +0 -1
- data/lib/google/cloud/discovery_engine/v1/document_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +0 -1
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/client.rb +218 -3
- data/lib/google/cloud/discovery_engine/v1/engine_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/engine_service/paths.rb +104 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/client.rb +204 -3
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/service_stub.rb +123 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/client.rb +1 -0
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/rest/client.rb +1 -0
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/license_config_service/client.rb +1044 -0
- data/lib/google/cloud/discovery_engine/v1/license_config_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1/license_config_service/paths.rb +86 -0
- data/lib/google/cloud/discovery_engine/v1/license_config_service/rest/client.rb +959 -0
- data/lib/google/cloud/discovery_engine/v1/license_config_service/rest/service_stub.rb +451 -0
- data/lib/google/cloud/discovery_engine/v1/license_config_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/license_config_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/client.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/project_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/client.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/service_stub.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/rank_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest/client.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/rest.rb +8 -2
- data/lib/google/cloud/discovery_engine/v1/schema_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +14 -2
- data/lib/google/cloud/discovery_engine/v1/search_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +14 -2
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/client.rb +408 -3
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/paths.rb +66 -0
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/rest/client.rb +380 -3
- data/lib/google/cloud/discovery_engine/v1/serving_config_service/rest/service_stub.rb +303 -0
- data/lib/google/cloud/discovery_engine/v1/session_service/client.rb +25 -9
- data/lib/google/cloud/discovery_engine/v1/session_service/credentials.rb +4 -1
- data/lib/google/cloud/discovery_engine/v1/session_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1/session_service/rest/client.rb +25 -9
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/credentials.rb +4 -1
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/user_license_service/client.rb +124 -7
- data/lib/google/cloud/discovery_engine/v1/user_license_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1/user_license_service/rest/client.rb +117 -7
- data/lib/google/cloud/discovery_engine/v1/user_license_service/rest/operations.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1/user_license_service/rest/service_stub.rb +61 -0
- data/lib/google/cloud/discovery_engine/v1/user_store_service/client.rb +590 -0
- data/lib/google/cloud/discovery_engine/v1/user_store_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1/user_store_service/paths.rb +71 -0
- data/lib/google/cloud/discovery_engine/v1/user_store_service/rest/client.rb +533 -0
- data/lib/google/cloud/discovery_engine/v1/user_store_service/rest/service_stub.rb +204 -0
- data/lib/google/cloud/discovery_engine/v1/user_store_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/user_store_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1/widget_config_service/client.rb +624 -0
- data/lib/google/cloud/discovery_engine/v1/widget_config_service/credentials.rb +50 -0
- data/lib/google/cloud/discovery_engine/v1/widget_config_service/paths.rb +101 -0
- data/lib/google/cloud/discovery_engine/v1/widget_config_service/rest/client.rb +567 -0
- data/lib/google/cloud/discovery_engine/v1/widget_config_service/rest/service_stub.rb +234 -0
- data/lib/google/cloud/discovery_engine/v1/widget_config_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1/widget_config_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1.rb +9 -3
- data/lib/google/cloud/discoveryengine/v1/acl_config_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1/acl_config_service_pb.rb +28 -0
- data/lib/google/cloud/discoveryengine/v1/acl_config_service_services_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1/agent_gateway_setting_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1/assist_answer_pb.rb +13 -1
- data/lib/google/cloud/discoveryengine/v1/assistant_pb.rb +13 -1
- data/lib/google/cloud/discoveryengine/v1/assistant_service_pb.rb +12 -1
- data/lib/google/cloud/discoveryengine/v1/assistant_service_services_pb.rb +12 -1
- data/lib/google/cloud/discoveryengine/v1/chunk_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/cmek_config_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/cmek_config_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/collection_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1/collection_service_pb.rb +32 -0
- data/lib/google/cloud/discoveryengine/v1/collection_service_services_pb.rb +65 -0
- data/lib/google/cloud/discoveryengine/v1/common_pb.rb +13 -1
- data/lib/google/cloud/discoveryengine/v1/completion_service_pb.rb +16 -1
- data/lib/google/cloud/discoveryengine/v1/completion_service_services_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/control_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/control_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/data_connector_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1/data_connector_service_pb.rb +32 -0
- data/lib/google/cloud/discoveryengine/v1/data_connector_service_services_pb.rb +58 -0
- data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +10 -1
- data/lib/google/cloud/discoveryengine/v1/data_store_service_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/data_store_service_services_pb.rb +20 -1
- data/lib/google/cloud/discoveryengine/v1/document_processing_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/document_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/document_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +11 -1
- data/lib/google/cloud/discoveryengine/v1/engine_service_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/engine_service_services_pb.rb +23 -4
- data/lib/google/cloud/discoveryengine/v1/feedback_pb.rb +28 -0
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/identity_mapping_store_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/identity_mapping_store_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/identity_mapping_store_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/license_config_pb.rb +28 -0
- data/lib/google/cloud/discoveryengine/v1/license_config_service_pb.rb +36 -0
- data/lib/google/cloud/discoveryengine/v1/license_config_service_services_pb.rb +63 -0
- data/lib/google/cloud/discoveryengine/v1/logging_pb.rb +24 -0
- data/lib/google/cloud/discoveryengine/v1/project_pb.rb +11 -1
- data/lib/google/cloud/discoveryengine/v1/project_service_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/project_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/rank_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/rank_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/recommendation_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/recommendation_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/schema_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/schema_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/search_tuning_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/search_tuning_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/serving_config_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/serving_config_service_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1/serving_config_service_services_pb.rb +21 -1
- data/lib/google/cloud/discoveryengine/v1/session_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/session_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/session_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_license_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/user_license_service_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/user_license_service_services_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1/user_store_pb.rb +24 -0
- data/lib/google/cloud/discoveryengine/v1/user_store_service_pb.rb +29 -0
- data/lib/google/cloud/discoveryengine/v1/user_store_service_services_pb.rb +47 -0
- data/lib/google/cloud/discoveryengine/v1/widget_config_pb.rb +63 -0
- data/lib/google/cloud/discoveryengine/v1/widget_config_service_pb.rb +30 -0
- data/lib/google/cloud/discoveryengine/v1/widget_config_service_services_pb.rb +48 -0
- data/proto_docs/google/cloud/discoveryengine/v1/acl_config.rb +43 -0
- data/proto_docs/google/cloud/discoveryengine/v1/acl_config_service.rb +49 -0
- data/proto_docs/google/cloud/discoveryengine/v1/agent_gateway_setting.rb +53 -0
- data/proto_docs/google/cloud/discoveryengine/v1/assist_answer.rb +164 -1
- data/proto_docs/google/cloud/discoveryengine/v1/assistant.rb +217 -0
- data/proto_docs/google/cloud/discoveryengine/v1/assistant_service.rb +179 -6
- data/proto_docs/google/cloud/discoveryengine/v1/chunk.rb +4 -0
- data/proto_docs/google/cloud/discoveryengine/v1/cmek_config_service.rb +7 -2
- data/proto_docs/google/cloud/discoveryengine/v1/collection.rb +51 -0
- data/proto_docs/google/cloud/discoveryengine/v1/collection_service.rb +53 -0
- data/proto_docs/google/cloud/discoveryengine/v1/common.rb +201 -0
- data/proto_docs/google/cloud/discoveryengine/v1/completion_service.rb +320 -4
- data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +31 -8
- data/proto_docs/google/cloud/discoveryengine/v1/data_connector.rb +875 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_connector_service.rb +142 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +179 -2
- data/proto_docs/google/cloud/discoveryengine/v1/document.rb +9 -4
- data/proto_docs/google/cloud/discoveryengine/v1/document_processing_config.rb +7 -0
- data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +251 -1
- data/proto_docs/google/cloud/discoveryengine/v1/feedback.rb +165 -0
- data/proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb +107 -0
- data/proto_docs/google/cloud/discoveryengine/v1/identity_mapping_store.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1/identity_mapping_store_service.rb +1 -0
- data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +6 -4
- data/proto_docs/google/cloud/discoveryengine/v1/license_config.rb +107 -0
- data/proto_docs/google/cloud/discoveryengine/v1/license_config_service.rb +220 -0
- data/proto_docs/google/cloud/discoveryengine/v1/logging.rb +40 -0
- data/proto_docs/google/cloud/discoveryengine/v1/project.rb +229 -0
- data/proto_docs/google/cloud/discoveryengine/v1/project_service.rb +18 -0
- data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +2 -1
- data/proto_docs/google/cloud/discoveryengine/v1/rank_service.rb +3 -3
- data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +7 -1
- data/proto_docs/google/cloud/discoveryengine/v1/serving_config.rb +43 -0
- data/proto_docs/google/cloud/discoveryengine/v1/serving_config_service.rb +71 -0
- data/proto_docs/google/cloud/discoveryengine/v1/session.rb +9 -0
- data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +16 -6
- data/proto_docs/google/cloud/discoveryengine/v1/user_license.rb +16 -1
- data/proto_docs/google/cloud/discoveryengine/v1/user_license_service.rb +53 -6
- data/proto_docs/google/cloud/discoveryengine/v1/user_store.rb +66 -0
- data/proto_docs/google/cloud/discoveryengine/v1/user_store_service.rb +54 -0
- data/proto_docs/google/cloud/discoveryengine/v1/widget_config.rb +1082 -0
- data/proto_docs/google/cloud/discoveryengine/v1/widget_config_service.rb +102 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
- data/proto_docs/google/iam/v1/options.rb +50 -0
- data/proto_docs/google/iam/v1/policy.rb +426 -0
- data/proto_docs/google/type/date.rb +1 -1
- data/proto_docs/google/type/datetime.rb +104 -0
- data/proto_docs/google/type/expr.rb +75 -0
- data/proto_docs/google/type/latlng.rb +38 -0
- metadata +103 -1
|
@@ -200,6 +200,196 @@ module Google
|
|
|
200
200
|
|
|
201
201
|
# Service calls
|
|
202
202
|
|
|
203
|
+
##
|
|
204
|
+
# Creates a ServingConfig.
|
|
205
|
+
#
|
|
206
|
+
# Note: The Google Cloud console works only with the default serving config.
|
|
207
|
+
# Additional ServingConfigs can be created and managed only via the API.
|
|
208
|
+
#
|
|
209
|
+
# A maximum of 100
|
|
210
|
+
# {::Google::Cloud::DiscoveryEngine::V1::ServingConfig ServingConfig}s are allowed
|
|
211
|
+
# in an {::Google::Cloud::DiscoveryEngine::V1::Engine Engine}, otherwise a
|
|
212
|
+
# RESOURCE_EXHAUSTED error is returned.
|
|
213
|
+
#
|
|
214
|
+
# @overload create_serving_config(request, options = nil)
|
|
215
|
+
# Pass arguments to `create_serving_config` via a request object, either of type
|
|
216
|
+
# {::Google::Cloud::DiscoveryEngine::V1::CreateServingConfigRequest} or an equivalent Hash.
|
|
217
|
+
#
|
|
218
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1::CreateServingConfigRequest, ::Hash]
|
|
219
|
+
# A request object representing the call parameters. Required. To specify no
|
|
220
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
221
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
222
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
223
|
+
#
|
|
224
|
+
# @overload create_serving_config(parent: nil, serving_config: nil, serving_config_id: nil)
|
|
225
|
+
# Pass arguments to `create_serving_config` via keyword arguments. Note that at
|
|
226
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
227
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
228
|
+
#
|
|
229
|
+
# @param parent [::String]
|
|
230
|
+
# Required. Full resource name of parent. Format:
|
|
231
|
+
# `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
|
|
232
|
+
# @param serving_config [::Google::Cloud::DiscoveryEngine::V1::ServingConfig, ::Hash]
|
|
233
|
+
# Required. The ServingConfig to create.
|
|
234
|
+
# @param serving_config_id [::String]
|
|
235
|
+
# Required. The ID to use for the ServingConfig, which will become the final
|
|
236
|
+
# component of the ServingConfig's resource name.
|
|
237
|
+
#
|
|
238
|
+
# This value should be 4-63 characters, and valid characters
|
|
239
|
+
# are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
|
|
240
|
+
#
|
|
241
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
242
|
+
# @yieldparam response [::Google::Cloud::DiscoveryEngine::V1::ServingConfig]
|
|
243
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
244
|
+
#
|
|
245
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::ServingConfig]
|
|
246
|
+
#
|
|
247
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
248
|
+
#
|
|
249
|
+
# @example Basic example
|
|
250
|
+
# require "google/cloud/discovery_engine/v1"
|
|
251
|
+
#
|
|
252
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
253
|
+
# client = Google::Cloud::DiscoveryEngine::V1::ServingConfigService::Client.new
|
|
254
|
+
#
|
|
255
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
256
|
+
# request = Google::Cloud::DiscoveryEngine::V1::CreateServingConfigRequest.new
|
|
257
|
+
#
|
|
258
|
+
# # Call the create_serving_config method.
|
|
259
|
+
# result = client.create_serving_config request
|
|
260
|
+
#
|
|
261
|
+
# # The returned object is of type Google::Cloud::DiscoveryEngine::V1::ServingConfig.
|
|
262
|
+
# p result
|
|
263
|
+
#
|
|
264
|
+
def create_serving_config request, options = nil
|
|
265
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
266
|
+
|
|
267
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::CreateServingConfigRequest
|
|
268
|
+
|
|
269
|
+
# Converts hash and nil to an options object
|
|
270
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
271
|
+
|
|
272
|
+
# Customize the options with defaults
|
|
273
|
+
metadata = @config.rpcs.create_serving_config.metadata.to_h
|
|
274
|
+
|
|
275
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
276
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
277
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
278
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
|
279
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
280
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
281
|
+
|
|
282
|
+
header_params = {}
|
|
283
|
+
if request.parent
|
|
284
|
+
header_params["parent"] = request.parent
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
288
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
289
|
+
|
|
290
|
+
options.apply_defaults timeout: @config.rpcs.create_serving_config.timeout,
|
|
291
|
+
metadata: metadata,
|
|
292
|
+
retry_policy: @config.rpcs.create_serving_config.retry_policy
|
|
293
|
+
|
|
294
|
+
options.apply_defaults timeout: @config.timeout,
|
|
295
|
+
metadata: @config.metadata,
|
|
296
|
+
retry_policy: @config.retry_policy
|
|
297
|
+
|
|
298
|
+
@serving_config_service_stub.call_rpc :create_serving_config, request, options: options do |response, operation|
|
|
299
|
+
yield response, operation if block_given?
|
|
300
|
+
end
|
|
301
|
+
rescue ::GRPC::BadStatus => e
|
|
302
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
##
|
|
306
|
+
# Deletes a ServingConfig.
|
|
307
|
+
#
|
|
308
|
+
# Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
309
|
+
#
|
|
310
|
+
# @overload delete_serving_config(request, options = nil)
|
|
311
|
+
# Pass arguments to `delete_serving_config` via a request object, either of type
|
|
312
|
+
# {::Google::Cloud::DiscoveryEngine::V1::DeleteServingConfigRequest} or an equivalent Hash.
|
|
313
|
+
#
|
|
314
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1::DeleteServingConfigRequest, ::Hash]
|
|
315
|
+
# A request object representing the call parameters. Required. To specify no
|
|
316
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
317
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
318
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
319
|
+
#
|
|
320
|
+
# @overload delete_serving_config(name: nil)
|
|
321
|
+
# Pass arguments to `delete_serving_config` via keyword arguments. Note that at
|
|
322
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
323
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
324
|
+
#
|
|
325
|
+
# @param name [::String]
|
|
326
|
+
# Required. The resource name of the ServingConfig to delete. Format:
|
|
327
|
+
# `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
|
|
328
|
+
#
|
|
329
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
330
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
|
331
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
332
|
+
#
|
|
333
|
+
# @return [::Google::Protobuf::Empty]
|
|
334
|
+
#
|
|
335
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
336
|
+
#
|
|
337
|
+
# @example Basic example
|
|
338
|
+
# require "google/cloud/discovery_engine/v1"
|
|
339
|
+
#
|
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
341
|
+
# client = Google::Cloud::DiscoveryEngine::V1::ServingConfigService::Client.new
|
|
342
|
+
#
|
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
344
|
+
# request = Google::Cloud::DiscoveryEngine::V1::DeleteServingConfigRequest.new
|
|
345
|
+
#
|
|
346
|
+
# # Call the delete_serving_config method.
|
|
347
|
+
# result = client.delete_serving_config request
|
|
348
|
+
#
|
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
350
|
+
# p result
|
|
351
|
+
#
|
|
352
|
+
def delete_serving_config request, options = nil
|
|
353
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
354
|
+
|
|
355
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::DeleteServingConfigRequest
|
|
356
|
+
|
|
357
|
+
# Converts hash and nil to an options object
|
|
358
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
359
|
+
|
|
360
|
+
# Customize the options with defaults
|
|
361
|
+
metadata = @config.rpcs.delete_serving_config.metadata.to_h
|
|
362
|
+
|
|
363
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
364
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
365
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
366
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
|
367
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
368
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
369
|
+
|
|
370
|
+
header_params = {}
|
|
371
|
+
if request.name
|
|
372
|
+
header_params["name"] = request.name
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
376
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
377
|
+
|
|
378
|
+
options.apply_defaults timeout: @config.rpcs.delete_serving_config.timeout,
|
|
379
|
+
metadata: metadata,
|
|
380
|
+
retry_policy: @config.rpcs.delete_serving_config.retry_policy
|
|
381
|
+
|
|
382
|
+
options.apply_defaults timeout: @config.timeout,
|
|
383
|
+
metadata: @config.metadata,
|
|
384
|
+
retry_policy: @config.retry_policy
|
|
385
|
+
|
|
386
|
+
@serving_config_service_stub.call_rpc :delete_serving_config, request, options: options do |response, operation|
|
|
387
|
+
yield response, operation if block_given?
|
|
388
|
+
end
|
|
389
|
+
rescue ::GRPC::BadStatus => e
|
|
390
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
391
|
+
end
|
|
392
|
+
|
|
203
393
|
##
|
|
204
394
|
# Updates a ServingConfig.
|
|
205
395
|
#
|
|
@@ -295,6 +485,193 @@ module Google
|
|
|
295
485
|
raise ::Google::Cloud::Error.from_error(e)
|
|
296
486
|
end
|
|
297
487
|
|
|
488
|
+
##
|
|
489
|
+
# Gets a ServingConfig.
|
|
490
|
+
#
|
|
491
|
+
# Returns a NotFound error if the ServingConfig does not exist.
|
|
492
|
+
#
|
|
493
|
+
# @overload get_serving_config(request, options = nil)
|
|
494
|
+
# Pass arguments to `get_serving_config` via a request object, either of type
|
|
495
|
+
# {::Google::Cloud::DiscoveryEngine::V1::GetServingConfigRequest} or an equivalent Hash.
|
|
496
|
+
#
|
|
497
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1::GetServingConfigRequest, ::Hash]
|
|
498
|
+
# A request object representing the call parameters. Required. To specify no
|
|
499
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
500
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
501
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
502
|
+
#
|
|
503
|
+
# @overload get_serving_config(name: nil)
|
|
504
|
+
# Pass arguments to `get_serving_config` via keyword arguments. Note that at
|
|
505
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
506
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
507
|
+
#
|
|
508
|
+
# @param name [::String]
|
|
509
|
+
# Required. The resource name of the ServingConfig to get. Format:
|
|
510
|
+
# `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
|
|
511
|
+
#
|
|
512
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
513
|
+
# @yieldparam response [::Google::Cloud::DiscoveryEngine::V1::ServingConfig]
|
|
514
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
515
|
+
#
|
|
516
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::ServingConfig]
|
|
517
|
+
#
|
|
518
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
519
|
+
#
|
|
520
|
+
# @example Basic example
|
|
521
|
+
# require "google/cloud/discovery_engine/v1"
|
|
522
|
+
#
|
|
523
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
524
|
+
# client = Google::Cloud::DiscoveryEngine::V1::ServingConfigService::Client.new
|
|
525
|
+
#
|
|
526
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
527
|
+
# request = Google::Cloud::DiscoveryEngine::V1::GetServingConfigRequest.new
|
|
528
|
+
#
|
|
529
|
+
# # Call the get_serving_config method.
|
|
530
|
+
# result = client.get_serving_config request
|
|
531
|
+
#
|
|
532
|
+
# # The returned object is of type Google::Cloud::DiscoveryEngine::V1::ServingConfig.
|
|
533
|
+
# p result
|
|
534
|
+
#
|
|
535
|
+
def get_serving_config request, options = nil
|
|
536
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
537
|
+
|
|
538
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::GetServingConfigRequest
|
|
539
|
+
|
|
540
|
+
# Converts hash and nil to an options object
|
|
541
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
542
|
+
|
|
543
|
+
# Customize the options with defaults
|
|
544
|
+
metadata = @config.rpcs.get_serving_config.metadata.to_h
|
|
545
|
+
|
|
546
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
547
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
548
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
549
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
|
550
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
551
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
552
|
+
|
|
553
|
+
header_params = {}
|
|
554
|
+
if request.name
|
|
555
|
+
header_params["name"] = request.name
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
559
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
560
|
+
|
|
561
|
+
options.apply_defaults timeout: @config.rpcs.get_serving_config.timeout,
|
|
562
|
+
metadata: metadata,
|
|
563
|
+
retry_policy: @config.rpcs.get_serving_config.retry_policy
|
|
564
|
+
|
|
565
|
+
options.apply_defaults timeout: @config.timeout,
|
|
566
|
+
metadata: @config.metadata,
|
|
567
|
+
retry_policy: @config.retry_policy
|
|
568
|
+
|
|
569
|
+
@serving_config_service_stub.call_rpc :get_serving_config, request, options: options do |response, operation|
|
|
570
|
+
yield response, operation if block_given?
|
|
571
|
+
end
|
|
572
|
+
rescue ::GRPC::BadStatus => e
|
|
573
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
##
|
|
577
|
+
# Lists all ServingConfigs linked to this dataStore.
|
|
578
|
+
#
|
|
579
|
+
# @overload list_serving_configs(request, options = nil)
|
|
580
|
+
# Pass arguments to `list_serving_configs` via a request object, either of type
|
|
581
|
+
# {::Google::Cloud::DiscoveryEngine::V1::ListServingConfigsRequest} or an equivalent Hash.
|
|
582
|
+
#
|
|
583
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1::ListServingConfigsRequest, ::Hash]
|
|
584
|
+
# A request object representing the call parameters. Required. To specify no
|
|
585
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
586
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
587
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
588
|
+
#
|
|
589
|
+
# @overload list_serving_configs(parent: nil, page_size: nil, page_token: nil)
|
|
590
|
+
# Pass arguments to `list_serving_configs` via keyword arguments. Note that at
|
|
591
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
592
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
593
|
+
#
|
|
594
|
+
# @param parent [::String]
|
|
595
|
+
# Required. Full resource name of the parent resource. Format:
|
|
596
|
+
# `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
|
|
597
|
+
# @param page_size [::Integer]
|
|
598
|
+
# Optional. Maximum number of results to return. If unspecified, defaults
|
|
599
|
+
# to 100. If a value greater than 100 is provided, at most 100 results are
|
|
600
|
+
# returned.
|
|
601
|
+
# @param page_token [::String]
|
|
602
|
+
# Optional. A page token, received from a previous `ListServingConfigs` call.
|
|
603
|
+
# Provide this to retrieve the subsequent page.
|
|
604
|
+
#
|
|
605
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
606
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::ServingConfig>]
|
|
607
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
608
|
+
#
|
|
609
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::ServingConfig>]
|
|
610
|
+
#
|
|
611
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
612
|
+
#
|
|
613
|
+
# @example Basic example
|
|
614
|
+
# require "google/cloud/discovery_engine/v1"
|
|
615
|
+
#
|
|
616
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
617
|
+
# client = Google::Cloud::DiscoveryEngine::V1::ServingConfigService::Client.new
|
|
618
|
+
#
|
|
619
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
620
|
+
# request = Google::Cloud::DiscoveryEngine::V1::ListServingConfigsRequest.new
|
|
621
|
+
#
|
|
622
|
+
# # Call the list_serving_configs method.
|
|
623
|
+
# result = client.list_serving_configs request
|
|
624
|
+
#
|
|
625
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
626
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
627
|
+
# result.each do |item|
|
|
628
|
+
# # Each element is of type ::Google::Cloud::DiscoveryEngine::V1::ServingConfig.
|
|
629
|
+
# p item
|
|
630
|
+
# end
|
|
631
|
+
#
|
|
632
|
+
def list_serving_configs request, options = nil
|
|
633
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
634
|
+
|
|
635
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1::ListServingConfigsRequest
|
|
636
|
+
|
|
637
|
+
# Converts hash and nil to an options object
|
|
638
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
639
|
+
|
|
640
|
+
# Customize the options with defaults
|
|
641
|
+
metadata = @config.rpcs.list_serving_configs.metadata.to_h
|
|
642
|
+
|
|
643
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
644
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
645
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
646
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
|
647
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
648
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
649
|
+
|
|
650
|
+
header_params = {}
|
|
651
|
+
if request.parent
|
|
652
|
+
header_params["parent"] = request.parent
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
656
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
657
|
+
|
|
658
|
+
options.apply_defaults timeout: @config.rpcs.list_serving_configs.timeout,
|
|
659
|
+
metadata: metadata,
|
|
660
|
+
retry_policy: @config.rpcs.list_serving_configs.retry_policy
|
|
661
|
+
|
|
662
|
+
options.apply_defaults timeout: @config.timeout,
|
|
663
|
+
metadata: @config.metadata,
|
|
664
|
+
retry_policy: @config.retry_policy
|
|
665
|
+
|
|
666
|
+
@serving_config_service_stub.call_rpc :list_serving_configs, request, options: options do |response, operation|
|
|
667
|
+
response = ::Gapic::PagedEnumerable.new @serving_config_service_stub, :list_serving_configs, request, response, operation, options
|
|
668
|
+
yield response, operation if block_given?
|
|
669
|
+
throw :response, response
|
|
670
|
+
end
|
|
671
|
+
rescue ::GRPC::BadStatus => e
|
|
672
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
673
|
+
end
|
|
674
|
+
|
|
298
675
|
##
|
|
299
676
|
# Configuration class for the ServingConfigService API.
|
|
300
677
|
#
|
|
@@ -311,17 +688,17 @@ module Google
|
|
|
311
688
|
# @example
|
|
312
689
|
#
|
|
313
690
|
# # Modify the global config, setting the timeout for
|
|
314
|
-
# #
|
|
691
|
+
# # create_serving_config to 20 seconds,
|
|
315
692
|
# # and all remaining timeouts to 10 seconds.
|
|
316
693
|
# ::Google::Cloud::DiscoveryEngine::V1::ServingConfigService::Client.configure do |config|
|
|
317
694
|
# config.timeout = 10.0
|
|
318
|
-
# config.rpcs.
|
|
695
|
+
# config.rpcs.create_serving_config.timeout = 20.0
|
|
319
696
|
# end
|
|
320
697
|
#
|
|
321
698
|
# # Apply the above configuration only to a new client.
|
|
322
699
|
# client = ::Google::Cloud::DiscoveryEngine::V1::ServingConfigService::Client.new do |config|
|
|
323
700
|
# config.timeout = 10.0
|
|
324
|
-
# config.rpcs.
|
|
701
|
+
# config.rpcs.create_serving_config.timeout = 20.0
|
|
325
702
|
# end
|
|
326
703
|
#
|
|
327
704
|
# @!attribute [rw] endpoint
|
|
@@ -480,16 +857,44 @@ module Google
|
|
|
480
857
|
# trigger a retry.
|
|
481
858
|
#
|
|
482
859
|
class Rpcs
|
|
860
|
+
##
|
|
861
|
+
# RPC-specific configuration for `create_serving_config`
|
|
862
|
+
# @return [::Gapic::Config::Method]
|
|
863
|
+
#
|
|
864
|
+
attr_reader :create_serving_config
|
|
865
|
+
##
|
|
866
|
+
# RPC-specific configuration for `delete_serving_config`
|
|
867
|
+
# @return [::Gapic::Config::Method]
|
|
868
|
+
#
|
|
869
|
+
attr_reader :delete_serving_config
|
|
483
870
|
##
|
|
484
871
|
# RPC-specific configuration for `update_serving_config`
|
|
485
872
|
# @return [::Gapic::Config::Method]
|
|
486
873
|
#
|
|
487
874
|
attr_reader :update_serving_config
|
|
875
|
+
##
|
|
876
|
+
# RPC-specific configuration for `get_serving_config`
|
|
877
|
+
# @return [::Gapic::Config::Method]
|
|
878
|
+
#
|
|
879
|
+
attr_reader :get_serving_config
|
|
880
|
+
##
|
|
881
|
+
# RPC-specific configuration for `list_serving_configs`
|
|
882
|
+
# @return [::Gapic::Config::Method]
|
|
883
|
+
#
|
|
884
|
+
attr_reader :list_serving_configs
|
|
488
885
|
|
|
489
886
|
# @private
|
|
490
887
|
def initialize parent_rpcs = nil
|
|
888
|
+
create_serving_config_config = parent_rpcs.create_serving_config if parent_rpcs.respond_to? :create_serving_config
|
|
889
|
+
@create_serving_config = ::Gapic::Config::Method.new create_serving_config_config
|
|
890
|
+
delete_serving_config_config = parent_rpcs.delete_serving_config if parent_rpcs.respond_to? :delete_serving_config
|
|
891
|
+
@delete_serving_config = ::Gapic::Config::Method.new delete_serving_config_config
|
|
491
892
|
update_serving_config_config = parent_rpcs.update_serving_config if parent_rpcs.respond_to? :update_serving_config
|
|
492
893
|
@update_serving_config = ::Gapic::Config::Method.new update_serving_config_config
|
|
894
|
+
get_serving_config_config = parent_rpcs.get_serving_config if parent_rpcs.respond_to? :get_serving_config
|
|
895
|
+
@get_serving_config = ::Gapic::Config::Method.new get_serving_config_config
|
|
896
|
+
list_serving_configs_config = parent_rpcs.list_serving_configs if parent_rpcs.respond_to? :list_serving_configs
|
|
897
|
+
@list_serving_configs = ::Gapic::Config::Method.new list_serving_configs_config
|
|
493
898
|
|
|
494
899
|
yield self if block_given?
|
|
495
900
|
end
|
|
@@ -26,7 +26,9 @@ module Google
|
|
|
26
26
|
# Credentials for the ServingConfigService API.
|
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
|
28
28
|
self.scope = [
|
|
29
|
-
"https://www.googleapis.com/auth/cloud-platform"
|
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
|
30
|
+
"https://www.googleapis.com/auth/discoveryengine.readwrite",
|
|
31
|
+
"https://www.googleapis.com/auth/discoveryengine.serving.readwrite"
|
|
30
32
|
]
|
|
31
33
|
self.env_vars = [
|
|
32
34
|
"GOOGLE_CLOUD_CREDENTIALS",
|
|
@@ -24,6 +24,72 @@ module Google
|
|
|
24
24
|
module ServingConfigService
|
|
25
25
|
# Path helper methods for the ServingConfigService API.
|
|
26
26
|
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified DataStore resource string.
|
|
29
|
+
#
|
|
30
|
+
# @overload data_store_path(project:, location:, data_store:)
|
|
31
|
+
# The resource will be in the following format:
|
|
32
|
+
#
|
|
33
|
+
# `projects/{project}/locations/{location}/dataStores/{data_store}`
|
|
34
|
+
#
|
|
35
|
+
# @param project [String]
|
|
36
|
+
# @param location [String]
|
|
37
|
+
# @param data_store [String]
|
|
38
|
+
#
|
|
39
|
+
# @overload data_store_path(project:, location:, collection:, data_store:)
|
|
40
|
+
# The resource will be in the following format:
|
|
41
|
+
#
|
|
42
|
+
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
|
|
43
|
+
#
|
|
44
|
+
# @param project [String]
|
|
45
|
+
# @param location [String]
|
|
46
|
+
# @param collection [String]
|
|
47
|
+
# @param data_store [String]
|
|
48
|
+
#
|
|
49
|
+
# @return [::String]
|
|
50
|
+
def data_store_path **args
|
|
51
|
+
resources = {
|
|
52
|
+
"data_store:location:project" => (proc do |project:, location:, data_store:|
|
|
53
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
54
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
55
|
+
|
|
56
|
+
"projects/#{project}/locations/#{location}/dataStores/#{data_store}"
|
|
57
|
+
end),
|
|
58
|
+
"collection:data_store:location:project" => (proc do |project:, location:, collection:, data_store:|
|
|
59
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
60
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
61
|
+
raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
|
|
62
|
+
|
|
63
|
+
"projects/#{project}/locations/#{location}/collections/#{collection}/dataStores/#{data_store}"
|
|
64
|
+
end)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
resource = resources[args.keys.sort.join(":")]
|
|
68
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
|
69
|
+
resource.call(**args)
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
##
|
|
73
|
+
# Create a fully-qualified Engine resource string.
|
|
74
|
+
#
|
|
75
|
+
# The resource will be in the following format:
|
|
76
|
+
#
|
|
77
|
+
# `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
|
|
78
|
+
#
|
|
79
|
+
# @param project [String]
|
|
80
|
+
# @param location [String]
|
|
81
|
+
# @param collection [String]
|
|
82
|
+
# @param engine [String]
|
|
83
|
+
#
|
|
84
|
+
# @return [::String]
|
|
85
|
+
def engine_path project:, location:, collection:, engine:
|
|
86
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
87
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
88
|
+
raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
|
|
89
|
+
|
|
90
|
+
"projects/#{project}/locations/#{location}/collections/#{collection}/engines/#{engine}"
|
|
91
|
+
end
|
|
92
|
+
|
|
27
93
|
##
|
|
28
94
|
# Create a fully-qualified ServingConfig resource string.
|
|
29
95
|
#
|