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
|
@@ -73,6 +73,86 @@ module Google
|
|
|
73
73
|
stub ? @client_stub.stub_logger : @client_stub.logger
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
+
##
|
|
77
|
+
# Baseline implementation for the create_serving_config REST call
|
|
78
|
+
#
|
|
79
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::CreateServingConfigRequest]
|
|
80
|
+
# A request object representing the call parameters. Required.
|
|
81
|
+
# @param options [::Gapic::CallOptions]
|
|
82
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
83
|
+
#
|
|
84
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
85
|
+
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::ServingConfig]
|
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
87
|
+
#
|
|
88
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::ServingConfig]
|
|
89
|
+
# A result object deserialized from the server's reply
|
|
90
|
+
def create_serving_config request_pb, options = nil
|
|
91
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
92
|
+
|
|
93
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_serving_config_request request_pb
|
|
94
|
+
query_string_params = if query_string_params.any?
|
|
95
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
96
|
+
else
|
|
97
|
+
{}
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
response = @client_stub.make_http_request(
|
|
101
|
+
verb,
|
|
102
|
+
uri: uri,
|
|
103
|
+
body: body || "",
|
|
104
|
+
params: query_string_params,
|
|
105
|
+
method_name: "create_serving_config",
|
|
106
|
+
options: options
|
|
107
|
+
)
|
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
109
|
+
result = ::Google::Cloud::DiscoveryEngine::V1::ServingConfig.decode_json response.body, ignore_unknown_fields: true
|
|
110
|
+
catch :response do
|
|
111
|
+
yield result, operation if block_given?
|
|
112
|
+
result
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
##
|
|
117
|
+
# Baseline implementation for the delete_serving_config REST call
|
|
118
|
+
#
|
|
119
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::DeleteServingConfigRequest]
|
|
120
|
+
# A request object representing the call parameters. Required.
|
|
121
|
+
# @param options [::Gapic::CallOptions]
|
|
122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
123
|
+
#
|
|
124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
125
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
127
|
+
#
|
|
128
|
+
# @return [::Google::Protobuf::Empty]
|
|
129
|
+
# A result object deserialized from the server's reply
|
|
130
|
+
def delete_serving_config request_pb, options = nil
|
|
131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
132
|
+
|
|
133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_serving_config_request request_pb
|
|
134
|
+
query_string_params = if query_string_params.any?
|
|
135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
136
|
+
else
|
|
137
|
+
{}
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
response = @client_stub.make_http_request(
|
|
141
|
+
verb,
|
|
142
|
+
uri: uri,
|
|
143
|
+
body: body || "",
|
|
144
|
+
params: query_string_params,
|
|
145
|
+
method_name: "delete_serving_config",
|
|
146
|
+
options: options
|
|
147
|
+
)
|
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
149
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
150
|
+
catch :response do
|
|
151
|
+
yield result, operation if block_given?
|
|
152
|
+
result
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
76
156
|
##
|
|
77
157
|
# Baseline implementation for the update_serving_config REST call
|
|
78
158
|
#
|
|
@@ -113,6 +193,159 @@ module Google
|
|
|
113
193
|
end
|
|
114
194
|
end
|
|
115
195
|
|
|
196
|
+
##
|
|
197
|
+
# Baseline implementation for the get_serving_config REST call
|
|
198
|
+
#
|
|
199
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::GetServingConfigRequest]
|
|
200
|
+
# A request object representing the call parameters. Required.
|
|
201
|
+
# @param options [::Gapic::CallOptions]
|
|
202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
203
|
+
#
|
|
204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
205
|
+
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::ServingConfig]
|
|
206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
207
|
+
#
|
|
208
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::ServingConfig]
|
|
209
|
+
# A result object deserialized from the server's reply
|
|
210
|
+
def get_serving_config request_pb, options = nil
|
|
211
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
212
|
+
|
|
213
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_serving_config_request request_pb
|
|
214
|
+
query_string_params = if query_string_params.any?
|
|
215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
216
|
+
else
|
|
217
|
+
{}
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
response = @client_stub.make_http_request(
|
|
221
|
+
verb,
|
|
222
|
+
uri: uri,
|
|
223
|
+
body: body || "",
|
|
224
|
+
params: query_string_params,
|
|
225
|
+
method_name: "get_serving_config",
|
|
226
|
+
options: options
|
|
227
|
+
)
|
|
228
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
229
|
+
result = ::Google::Cloud::DiscoveryEngine::V1::ServingConfig.decode_json response.body, ignore_unknown_fields: true
|
|
230
|
+
catch :response do
|
|
231
|
+
yield result, operation if block_given?
|
|
232
|
+
result
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
##
|
|
237
|
+
# Baseline implementation for the list_serving_configs REST call
|
|
238
|
+
#
|
|
239
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::ListServingConfigsRequest]
|
|
240
|
+
# A request object representing the call parameters. Required.
|
|
241
|
+
# @param options [::Gapic::CallOptions]
|
|
242
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
243
|
+
#
|
|
244
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
245
|
+
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::ListServingConfigsResponse]
|
|
246
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
247
|
+
#
|
|
248
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::ListServingConfigsResponse]
|
|
249
|
+
# A result object deserialized from the server's reply
|
|
250
|
+
def list_serving_configs request_pb, options = nil
|
|
251
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
252
|
+
|
|
253
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_serving_configs_request request_pb
|
|
254
|
+
query_string_params = if query_string_params.any?
|
|
255
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
256
|
+
else
|
|
257
|
+
{}
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
response = @client_stub.make_http_request(
|
|
261
|
+
verb,
|
|
262
|
+
uri: uri,
|
|
263
|
+
body: body || "",
|
|
264
|
+
params: query_string_params,
|
|
265
|
+
method_name: "list_serving_configs",
|
|
266
|
+
options: options
|
|
267
|
+
)
|
|
268
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
269
|
+
result = ::Google::Cloud::DiscoveryEngine::V1::ListServingConfigsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
270
|
+
catch :response do
|
|
271
|
+
yield result, operation if block_given?
|
|
272
|
+
result
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
##
|
|
277
|
+
# @private
|
|
278
|
+
#
|
|
279
|
+
# GRPC transcoding helper method for the create_serving_config REST call
|
|
280
|
+
#
|
|
281
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::CreateServingConfigRequest]
|
|
282
|
+
# A request object representing the call parameters. Required.
|
|
283
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
284
|
+
# Uri, Body, Query string parameters
|
|
285
|
+
def self.transcode_create_serving_config_request request_pb
|
|
286
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
287
|
+
.with_bindings(
|
|
288
|
+
uri_method: :post,
|
|
289
|
+
uri_template: "/v1/{parent}/servingConfigs",
|
|
290
|
+
body: "serving_config",
|
|
291
|
+
matches: [
|
|
292
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/?$}, false]
|
|
293
|
+
]
|
|
294
|
+
)
|
|
295
|
+
.with_bindings(
|
|
296
|
+
uri_method: :post,
|
|
297
|
+
uri_template: "/v1/{parent}/servingConfigs",
|
|
298
|
+
body: "serving_config",
|
|
299
|
+
matches: [
|
|
300
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/?$}, false]
|
|
301
|
+
]
|
|
302
|
+
)
|
|
303
|
+
.with_bindings(
|
|
304
|
+
uri_method: :post,
|
|
305
|
+
uri_template: "/v1/{parent}/servingConfigs",
|
|
306
|
+
body: "serving_config",
|
|
307
|
+
matches: [
|
|
308
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/?$}, false]
|
|
309
|
+
]
|
|
310
|
+
)
|
|
311
|
+
transcoder.transcode request_pb
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
##
|
|
315
|
+
# @private
|
|
316
|
+
#
|
|
317
|
+
# GRPC transcoding helper method for the delete_serving_config REST call
|
|
318
|
+
#
|
|
319
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::DeleteServingConfigRequest]
|
|
320
|
+
# A request object representing the call parameters. Required.
|
|
321
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
322
|
+
# Uri, Body, Query string parameters
|
|
323
|
+
def self.transcode_delete_serving_config_request request_pb
|
|
324
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
325
|
+
.with_bindings(
|
|
326
|
+
uri_method: :delete,
|
|
327
|
+
uri_template: "/v1/{name}",
|
|
328
|
+
matches: [
|
|
329
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+/?$}, false]
|
|
330
|
+
]
|
|
331
|
+
)
|
|
332
|
+
.with_bindings(
|
|
333
|
+
uri_method: :delete,
|
|
334
|
+
uri_template: "/v1/{name}",
|
|
335
|
+
matches: [
|
|
336
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+/?$}, false]
|
|
337
|
+
]
|
|
338
|
+
)
|
|
339
|
+
.with_bindings(
|
|
340
|
+
uri_method: :delete,
|
|
341
|
+
uri_template: "/v1/{name}",
|
|
342
|
+
matches: [
|
|
343
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+/?$}, false]
|
|
344
|
+
]
|
|
345
|
+
)
|
|
346
|
+
transcoder.transcode request_pb
|
|
347
|
+
end
|
|
348
|
+
|
|
116
349
|
##
|
|
117
350
|
# @private
|
|
118
351
|
#
|
|
@@ -150,6 +383,76 @@ module Google
|
|
|
150
383
|
)
|
|
151
384
|
transcoder.transcode request_pb
|
|
152
385
|
end
|
|
386
|
+
|
|
387
|
+
##
|
|
388
|
+
# @private
|
|
389
|
+
#
|
|
390
|
+
# GRPC transcoding helper method for the get_serving_config REST call
|
|
391
|
+
#
|
|
392
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::GetServingConfigRequest]
|
|
393
|
+
# A request object representing the call parameters. Required.
|
|
394
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
395
|
+
# Uri, Body, Query string parameters
|
|
396
|
+
def self.transcode_get_serving_config_request request_pb
|
|
397
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
398
|
+
.with_bindings(
|
|
399
|
+
uri_method: :get,
|
|
400
|
+
uri_template: "/v1/{name}",
|
|
401
|
+
matches: [
|
|
402
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+/?$}, false]
|
|
403
|
+
]
|
|
404
|
+
)
|
|
405
|
+
.with_bindings(
|
|
406
|
+
uri_method: :get,
|
|
407
|
+
uri_template: "/v1/{name}",
|
|
408
|
+
matches: [
|
|
409
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/servingConfigs/[^/]+/?$}, false]
|
|
410
|
+
]
|
|
411
|
+
)
|
|
412
|
+
.with_bindings(
|
|
413
|
+
uri_method: :get,
|
|
414
|
+
uri_template: "/v1/{name}",
|
|
415
|
+
matches: [
|
|
416
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/servingConfigs/[^/]+/?$}, false]
|
|
417
|
+
]
|
|
418
|
+
)
|
|
419
|
+
transcoder.transcode request_pb
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
##
|
|
423
|
+
# @private
|
|
424
|
+
#
|
|
425
|
+
# GRPC transcoding helper method for the list_serving_configs REST call
|
|
426
|
+
#
|
|
427
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::ListServingConfigsRequest]
|
|
428
|
+
# A request object representing the call parameters. Required.
|
|
429
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
430
|
+
# Uri, Body, Query string parameters
|
|
431
|
+
def self.transcode_list_serving_configs_request request_pb
|
|
432
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
433
|
+
.with_bindings(
|
|
434
|
+
uri_method: :get,
|
|
435
|
+
uri_template: "/v1/{parent}/servingConfigs",
|
|
436
|
+
matches: [
|
|
437
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/?$}, false]
|
|
438
|
+
]
|
|
439
|
+
)
|
|
440
|
+
.with_bindings(
|
|
441
|
+
uri_method: :get,
|
|
442
|
+
uri_template: "/v1/{parent}/servingConfigs",
|
|
443
|
+
matches: [
|
|
444
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/?$}, false]
|
|
445
|
+
]
|
|
446
|
+
)
|
|
447
|
+
.with_bindings(
|
|
448
|
+
uri_method: :get,
|
|
449
|
+
uri_template: "/v1/{parent}/servingConfigs",
|
|
450
|
+
matches: [
|
|
451
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/?$}, false]
|
|
452
|
+
]
|
|
453
|
+
)
|
|
454
|
+
transcoder.transcode request_pb
|
|
455
|
+
end
|
|
153
456
|
end
|
|
154
457
|
end
|
|
155
458
|
end
|
|
@@ -220,7 +220,7 @@ module Google
|
|
|
220
220
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
221
221
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
222
222
|
#
|
|
223
|
-
# @overload create_session(parent: nil, session: nil)
|
|
223
|
+
# @overload create_session(parent: nil, session: nil, session_id: nil)
|
|
224
224
|
# Pass arguments to `create_session` via keyword arguments. Note that at
|
|
225
225
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
226
226
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -230,6 +230,13 @@ module Google
|
|
|
230
230
|
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
|
|
231
231
|
# @param session [::Google::Cloud::DiscoveryEngine::V1::Session, ::Hash]
|
|
232
232
|
# Required. The session to create.
|
|
233
|
+
# @param session_id [::String]
|
|
234
|
+
# Optional. The ID to use for the session, which will become the final
|
|
235
|
+
# component of the session's resource name.
|
|
236
|
+
#
|
|
237
|
+
# This value should be 1-63 characters, and valid characters
|
|
238
|
+
# are /[a-z0-9][a-z0-9-]\\{0,61}[a-z0-9]/. If not specified, a unique ID will
|
|
239
|
+
# be generated.
|
|
233
240
|
#
|
|
234
241
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
235
242
|
# @yieldparam response [::Google::Cloud::DiscoveryEngine::V1::Session]
|
|
@@ -600,7 +607,9 @@ module Google
|
|
|
600
607
|
# Provide this to retrieve the subsequent page.
|
|
601
608
|
# @param filter [::String]
|
|
602
609
|
# A comma-separated list of fields to filter by, in EBNF grammar.
|
|
610
|
+
#
|
|
603
611
|
# The supported fields are:
|
|
612
|
+
#
|
|
604
613
|
# * `user_pseudo_id`
|
|
605
614
|
# * `state`
|
|
606
615
|
# * `display_name`
|
|
@@ -609,28 +618,35 @@ module Google
|
|
|
609
618
|
# * `labels`
|
|
610
619
|
# * `create_time`
|
|
611
620
|
# * `update_time`
|
|
621
|
+
# * `collaborative_project`
|
|
612
622
|
#
|
|
613
623
|
# Examples:
|
|
614
|
-
#
|
|
615
|
-
#
|
|
616
|
-
#
|
|
617
|
-
#
|
|
618
|
-
#
|
|
624
|
+
#
|
|
625
|
+
# * `user_pseudo_id = some_id`
|
|
626
|
+
# * `display_name = "some_name"`
|
|
627
|
+
# * `starred = true`
|
|
628
|
+
# * `is_pinned=true AND (NOT labels:hidden)`
|
|
629
|
+
# * `create_time > "1970-01-01T12:00:00Z"`
|
|
630
|
+
# * `collaborative_project =
|
|
631
|
+
# "projects/123/locations/global/collections/default_collection/engines/"
|
|
632
|
+
# "default_engine/collaborative_projects/cp1"`
|
|
619
633
|
# @param order_by [::String]
|
|
620
634
|
# A comma-separated list of fields to order by, sorted in ascending order.
|
|
621
635
|
# Use "desc" after a field name for descending.
|
|
636
|
+
#
|
|
622
637
|
# Supported fields:
|
|
623
638
|
#
|
|
624
639
|
# * `update_time`
|
|
625
640
|
# * `create_time`
|
|
626
641
|
# * `session_name`
|
|
627
642
|
# * `is_pinned`
|
|
643
|
+
# * `display_name`
|
|
628
644
|
#
|
|
629
645
|
# Example:
|
|
630
646
|
#
|
|
631
|
-
# *
|
|
632
|
-
# *
|
|
633
|
-
# *
|
|
647
|
+
# * `update_time desc`
|
|
648
|
+
# * `create_time`
|
|
649
|
+
# * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
|
|
634
650
|
# by update_time.
|
|
635
651
|
#
|
|
636
652
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
@@ -26,7 +26,10 @@ module Google
|
|
|
26
26
|
# Credentials for the SessionService 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.assist.readwrite",
|
|
31
|
+
"https://www.googleapis.com/auth/discoveryengine.readwrite",
|
|
32
|
+
"https://www.googleapis.com/auth/discoveryengine.serving.readwrite"
|
|
30
33
|
]
|
|
31
34
|
self.env_vars = [
|
|
32
35
|
"GOOGLE_CLOUD_CREDENTIALS",
|
|
@@ -313,6 +313,18 @@ module Google
|
|
|
313
313
|
# @param engine [String]
|
|
314
314
|
# @param session [String]
|
|
315
315
|
#
|
|
316
|
+
# @overload session_path(project:, location:, collection:, engine:, collaborative_project:, session:)
|
|
317
|
+
# The resource will be in the following format:
|
|
318
|
+
#
|
|
319
|
+
# `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/collaborativeProjects/{collaborative_project}/sessions/{session}`
|
|
320
|
+
#
|
|
321
|
+
# @param project [String]
|
|
322
|
+
# @param location [String]
|
|
323
|
+
# @param collection [String]
|
|
324
|
+
# @param engine [String]
|
|
325
|
+
# @param collaborative_project [String]
|
|
326
|
+
# @param session [String]
|
|
327
|
+
#
|
|
316
328
|
# @return [::String]
|
|
317
329
|
def session_path **args
|
|
318
330
|
resources = {
|
|
@@ -338,6 +350,15 @@ module Google
|
|
|
338
350
|
raise ::ArgumentError, "engine cannot contain /" if engine.to_s.include? "/"
|
|
339
351
|
|
|
340
352
|
"projects/#{project}/locations/#{location}/collections/#{collection}/engines/#{engine}/sessions/#{session}"
|
|
353
|
+
end),
|
|
354
|
+
"collaborative_project:collection:engine:location:project:session" => (proc do |project:, location:, collection:, engine:, collaborative_project:, session:|
|
|
355
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
356
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
357
|
+
raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
|
|
358
|
+
raise ::ArgumentError, "engine cannot contain /" if engine.to_s.include? "/"
|
|
359
|
+
raise ::ArgumentError, "collaborative_project cannot contain /" if collaborative_project.to_s.include? "/"
|
|
360
|
+
|
|
361
|
+
"projects/#{project}/locations/#{location}/collections/#{collection}/engines/#{engine}/collaborativeProjects/#{collaborative_project}/sessions/#{session}"
|
|
341
362
|
end)
|
|
342
363
|
}
|
|
343
364
|
|
|
@@ -213,7 +213,7 @@ module Google
|
|
|
213
213
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
214
214
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
215
215
|
#
|
|
216
|
-
# @overload create_session(parent: nil, session: nil)
|
|
216
|
+
# @overload create_session(parent: nil, session: nil, session_id: nil)
|
|
217
217
|
# Pass arguments to `create_session` via keyword arguments. Note that at
|
|
218
218
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
219
219
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -223,6 +223,13 @@ module Google
|
|
|
223
223
|
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}`
|
|
224
224
|
# @param session [::Google::Cloud::DiscoveryEngine::V1::Session, ::Hash]
|
|
225
225
|
# Required. The session to create.
|
|
226
|
+
# @param session_id [::String]
|
|
227
|
+
# Optional. The ID to use for the session, which will become the final
|
|
228
|
+
# component of the session's resource name.
|
|
229
|
+
#
|
|
230
|
+
# This value should be 1-63 characters, and valid characters
|
|
231
|
+
# are /[a-z0-9][a-z0-9-]\\{0,61}[a-z0-9]/. If not specified, a unique ID will
|
|
232
|
+
# be generated.
|
|
226
233
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
227
234
|
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::Session]
|
|
228
235
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -565,7 +572,9 @@ module Google
|
|
|
565
572
|
# Provide this to retrieve the subsequent page.
|
|
566
573
|
# @param filter [::String]
|
|
567
574
|
# A comma-separated list of fields to filter by, in EBNF grammar.
|
|
575
|
+
#
|
|
568
576
|
# The supported fields are:
|
|
577
|
+
#
|
|
569
578
|
# * `user_pseudo_id`
|
|
570
579
|
# * `state`
|
|
571
580
|
# * `display_name`
|
|
@@ -574,28 +583,35 @@ module Google
|
|
|
574
583
|
# * `labels`
|
|
575
584
|
# * `create_time`
|
|
576
585
|
# * `update_time`
|
|
586
|
+
# * `collaborative_project`
|
|
577
587
|
#
|
|
578
588
|
# Examples:
|
|
579
|
-
#
|
|
580
|
-
#
|
|
581
|
-
#
|
|
582
|
-
#
|
|
583
|
-
#
|
|
589
|
+
#
|
|
590
|
+
# * `user_pseudo_id = some_id`
|
|
591
|
+
# * `display_name = "some_name"`
|
|
592
|
+
# * `starred = true`
|
|
593
|
+
# * `is_pinned=true AND (NOT labels:hidden)`
|
|
594
|
+
# * `create_time > "1970-01-01T12:00:00Z"`
|
|
595
|
+
# * `collaborative_project =
|
|
596
|
+
# "projects/123/locations/global/collections/default_collection/engines/"
|
|
597
|
+
# "default_engine/collaborative_projects/cp1"`
|
|
584
598
|
# @param order_by [::String]
|
|
585
599
|
# A comma-separated list of fields to order by, sorted in ascending order.
|
|
586
600
|
# Use "desc" after a field name for descending.
|
|
601
|
+
#
|
|
587
602
|
# Supported fields:
|
|
588
603
|
#
|
|
589
604
|
# * `update_time`
|
|
590
605
|
# * `create_time`
|
|
591
606
|
# * `session_name`
|
|
592
607
|
# * `is_pinned`
|
|
608
|
+
# * `display_name`
|
|
593
609
|
#
|
|
594
610
|
# Example:
|
|
595
611
|
#
|
|
596
|
-
# *
|
|
597
|
-
# *
|
|
598
|
-
# *
|
|
612
|
+
# * `update_time desc`
|
|
613
|
+
# * `create_time`
|
|
614
|
+
# * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
|
|
599
615
|
# by update_time.
|
|
600
616
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
601
617
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::Session>]
|
|
@@ -26,7 +26,9 @@ module Google
|
|
|
26
26
|
# Credentials for the SiteSearchEngineService 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",
|
|
@@ -1027,6 +1027,13 @@ module Google
|
|
|
1027
1027
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/operations/[^/]+/?$}, false]
|
|
1028
1028
|
]
|
|
1029
1029
|
)
|
|
1030
|
+
.with_bindings(
|
|
1031
|
+
uri_method: :get,
|
|
1032
|
+
uri_template: "/v1/{name}",
|
|
1033
|
+
matches: [
|
|
1034
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
|
|
1035
|
+
]
|
|
1036
|
+
)
|
|
1030
1037
|
.with_bindings(
|
|
1031
1038
|
uri_method: :get,
|
|
1032
1039
|
uri_template: "/v1/{name}",
|
|
@@ -26,7 +26,10 @@ module Google
|
|
|
26
26
|
# Credentials for the UserEventService 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.assist.readwrite",
|
|
31
|
+
"https://www.googleapis.com/auth/discoveryengine.readwrite",
|
|
32
|
+
"https://www.googleapis.com/auth/discoveryengine.serving.readwrite"
|
|
30
33
|
]
|
|
31
34
|
self.env_vars = [
|
|
32
35
|
"GOOGLE_CLOUD_CREDENTIALS",
|
|
@@ -1027,6 +1027,13 @@ module Google
|
|
|
1027
1027
|
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/siteSearchEngine/targetSites/operations/[^/]+/?$}, false]
|
|
1028
1028
|
]
|
|
1029
1029
|
)
|
|
1030
|
+
.with_bindings(
|
|
1031
|
+
uri_method: :get,
|
|
1032
|
+
uri_template: "/v1/{name}",
|
|
1033
|
+
matches: [
|
|
1034
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+/assistants/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
|
|
1035
|
+
]
|
|
1036
|
+
)
|
|
1030
1037
|
.with_bindings(
|
|
1031
1038
|
uri_method: :get,
|
|
1032
1039
|
uri_template: "/v1/{name}",
|