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
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "google/cloud/discoveryengine/v1/data_connector_service_pb"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module DiscoveryEngine
|
|
24
|
+
module V1
|
|
25
|
+
module DataConnectorService
|
|
26
|
+
module Rest
|
|
27
|
+
##
|
|
28
|
+
# REST service stub for the DataConnectorService service.
|
|
29
|
+
# Service stub contains baseline method implementations
|
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
|
31
|
+
#
|
|
32
|
+
class ServiceStub
|
|
33
|
+
# @private
|
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
|
35
|
+
# These require statements are intentionally placed here to initialize
|
|
36
|
+
# the REST modules only when it's required.
|
|
37
|
+
require "gapic/rest"
|
|
38
|
+
|
|
39
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
40
|
+
endpoint_template: endpoint_template,
|
|
41
|
+
universe_domain: universe_domain,
|
|
42
|
+
credentials: credentials,
|
|
43
|
+
numeric_enums: true,
|
|
44
|
+
service_name: self.class,
|
|
45
|
+
raise_faraday_errors: false,
|
|
46
|
+
logger: logger
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
##
|
|
50
|
+
# The effective universe domain
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
#
|
|
54
|
+
def universe_domain
|
|
55
|
+
@client_stub.universe_domain
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
##
|
|
59
|
+
# The effective endpoint
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
#
|
|
63
|
+
def endpoint
|
|
64
|
+
@client_stub.endpoint
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
##
|
|
68
|
+
# The logger used for request/response debug logging.
|
|
69
|
+
#
|
|
70
|
+
# @return [Logger]
|
|
71
|
+
#
|
|
72
|
+
def logger stub: false
|
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
##
|
|
77
|
+
# Baseline implementation for the set_up_data_connector REST call
|
|
78
|
+
#
|
|
79
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::SetUpDataConnectorRequest]
|
|
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::Longrunning::Operation]
|
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
87
|
+
#
|
|
88
|
+
# @return [::Google::Longrunning::Operation]
|
|
89
|
+
# A result object deserialized from the server's reply
|
|
90
|
+
def set_up_data_connector 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_set_up_data_connector_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: "set_up_data_connector",
|
|
106
|
+
options: options
|
|
107
|
+
)
|
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
109
|
+
result = ::Google::Longrunning::Operation.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 get_data_connector REST call
|
|
118
|
+
#
|
|
119
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::GetDataConnectorRequest]
|
|
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::Cloud::DiscoveryEngine::V1::DataConnector]
|
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
127
|
+
#
|
|
128
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::DataConnector]
|
|
129
|
+
# A result object deserialized from the server's reply
|
|
130
|
+
def get_data_connector 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_get_data_connector_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: "get_data_connector",
|
|
146
|
+
options: options
|
|
147
|
+
)
|
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
149
|
+
result = ::Google::Cloud::DiscoveryEngine::V1::DataConnector.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
|
+
|
|
156
|
+
##
|
|
157
|
+
# Baseline implementation for the update_data_connector REST call
|
|
158
|
+
#
|
|
159
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::UpdateDataConnectorRequest]
|
|
160
|
+
# A request object representing the call parameters. Required.
|
|
161
|
+
# @param options [::Gapic::CallOptions]
|
|
162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
163
|
+
#
|
|
164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
165
|
+
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::DataConnector]
|
|
166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
167
|
+
#
|
|
168
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1::DataConnector]
|
|
169
|
+
# A result object deserialized from the server's reply
|
|
170
|
+
def update_data_connector request_pb, options = nil
|
|
171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
172
|
+
|
|
173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_data_connector_request request_pb
|
|
174
|
+
query_string_params = if query_string_params.any?
|
|
175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
176
|
+
else
|
|
177
|
+
{}
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
response = @client_stub.make_http_request(
|
|
181
|
+
verb,
|
|
182
|
+
uri: uri,
|
|
183
|
+
body: body || "",
|
|
184
|
+
params: query_string_params,
|
|
185
|
+
method_name: "update_data_connector",
|
|
186
|
+
options: options
|
|
187
|
+
)
|
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
189
|
+
result = ::Google::Cloud::DiscoveryEngine::V1::DataConnector.decode_json response.body, ignore_unknown_fields: true
|
|
190
|
+
catch :response do
|
|
191
|
+
yield result, operation if block_given?
|
|
192
|
+
result
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
##
|
|
197
|
+
# @private
|
|
198
|
+
#
|
|
199
|
+
# GRPC transcoding helper method for the set_up_data_connector REST call
|
|
200
|
+
#
|
|
201
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::SetUpDataConnectorRequest]
|
|
202
|
+
# A request object representing the call parameters. Required.
|
|
203
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
204
|
+
# Uri, Body, Query string parameters
|
|
205
|
+
def self.transcode_set_up_data_connector_request request_pb
|
|
206
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
207
|
+
.with_bindings(
|
|
208
|
+
uri_method: :post,
|
|
209
|
+
uri_template: "/v1/{parent}:setUpDataConnector",
|
|
210
|
+
body: "*",
|
|
211
|
+
matches: [
|
|
212
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
213
|
+
]
|
|
214
|
+
)
|
|
215
|
+
.with_bindings(
|
|
216
|
+
uri_method: :post,
|
|
217
|
+
uri_template: "/v1/{parent}:setUpDataConnectorV2",
|
|
218
|
+
body: "data_connector",
|
|
219
|
+
matches: [
|
|
220
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
221
|
+
]
|
|
222
|
+
)
|
|
223
|
+
transcoder.transcode request_pb
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
##
|
|
227
|
+
# @private
|
|
228
|
+
#
|
|
229
|
+
# GRPC transcoding helper method for the get_data_connector REST call
|
|
230
|
+
#
|
|
231
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::GetDataConnectorRequest]
|
|
232
|
+
# A request object representing the call parameters. Required.
|
|
233
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
234
|
+
# Uri, Body, Query string parameters
|
|
235
|
+
def self.transcode_get_data_connector_request request_pb
|
|
236
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
237
|
+
.with_bindings(
|
|
238
|
+
uri_method: :get,
|
|
239
|
+
uri_template: "/v1/{name}",
|
|
240
|
+
matches: [
|
|
241
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataConnector/?$}, false]
|
|
242
|
+
]
|
|
243
|
+
)
|
|
244
|
+
transcoder.transcode request_pb
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
##
|
|
248
|
+
# @private
|
|
249
|
+
#
|
|
250
|
+
# GRPC transcoding helper method for the update_data_connector REST call
|
|
251
|
+
#
|
|
252
|
+
# @param request_pb [::Google::Cloud::DiscoveryEngine::V1::UpdateDataConnectorRequest]
|
|
253
|
+
# A request object representing the call parameters. Required.
|
|
254
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
255
|
+
# Uri, Body, Query string parameters
|
|
256
|
+
def self.transcode_update_data_connector_request request_pb
|
|
257
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
258
|
+
.with_bindings(
|
|
259
|
+
uri_method: :patch,
|
|
260
|
+
uri_template: "/v1/{data_connector.name}",
|
|
261
|
+
body: "data_connector",
|
|
262
|
+
matches: [
|
|
263
|
+
["data_connector.name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataConnector/?$}, false]
|
|
264
|
+
]
|
|
265
|
+
)
|
|
266
|
+
transcoder.transcode request_pb
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/rest"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/discovery_engine/v1/version"
|
|
24
|
+
|
|
25
|
+
require "google/cloud/discovery_engine/v1/data_connector_service/credentials"
|
|
26
|
+
require "google/cloud/discovery_engine/v1/data_connector_service/paths"
|
|
27
|
+
require "google/cloud/discovery_engine/v1/data_connector_service/rest/operations"
|
|
28
|
+
require "google/cloud/discovery_engine/v1/data_connector_service/rest/client"
|
|
29
|
+
|
|
30
|
+
module Google
|
|
31
|
+
module Cloud
|
|
32
|
+
module DiscoveryEngine
|
|
33
|
+
module V1
|
|
34
|
+
##
|
|
35
|
+
# Service for data connector management.
|
|
36
|
+
#
|
|
37
|
+
# To load this service and instantiate a REST client:
|
|
38
|
+
#
|
|
39
|
+
# require "google/cloud/discovery_engine/v1/data_connector_service/rest"
|
|
40
|
+
# client = ::Google::Cloud::DiscoveryEngine::V1::DataConnectorService::Rest::Client.new
|
|
41
|
+
#
|
|
42
|
+
module DataConnectorService
|
|
43
|
+
# Client for the REST transport
|
|
44
|
+
module Rest
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
|
53
|
+
require "google/cloud/discovery_engine/v1/data_connector_service/rest/helpers" if ::File.file? helper_path
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
require "gapic/common"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/discovery_engine/v1/version"
|
|
24
|
+
|
|
25
|
+
require "google/cloud/discovery_engine/v1/data_connector_service/credentials"
|
|
26
|
+
require "google/cloud/discovery_engine/v1/data_connector_service/paths"
|
|
27
|
+
require "google/cloud/discovery_engine/v1/data_connector_service/operations"
|
|
28
|
+
require "google/cloud/discovery_engine/v1/data_connector_service/client"
|
|
29
|
+
require "google/cloud/discovery_engine/v1/data_connector_service/rest"
|
|
30
|
+
|
|
31
|
+
module Google
|
|
32
|
+
module Cloud
|
|
33
|
+
module DiscoveryEngine
|
|
34
|
+
module V1
|
|
35
|
+
##
|
|
36
|
+
# Service for data connector management.
|
|
37
|
+
#
|
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
|
39
|
+
#
|
|
40
|
+
# require "google/cloud/discovery_engine/v1/data_connector_service"
|
|
41
|
+
# client = ::Google::Cloud::DiscoveryEngine::V1::DataConnectorService::Client.new
|
|
42
|
+
#
|
|
43
|
+
# @example Load this service and instantiate a REST client
|
|
44
|
+
#
|
|
45
|
+
# require "google/cloud/discovery_engine/v1/data_connector_service/rest"
|
|
46
|
+
# client = ::Google::Cloud::DiscoveryEngine::V1::DataConnectorService::Rest::Client.new
|
|
47
|
+
#
|
|
48
|
+
module DataConnectorService
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
helper_path = ::File.join __dir__, "data_connector_service", "helpers.rb"
|
|
56
|
+
require "google/cloud/discovery_engine/v1/data_connector_service/helpers" if ::File.file? helper_path
|
|
@@ -766,6 +766,207 @@ module Google
|
|
|
766
766
|
raise ::Google::Cloud::Error.from_error(e)
|
|
767
767
|
end
|
|
768
768
|
|
|
769
|
+
##
|
|
770
|
+
# Gets the IAM access control policy for a
|
|
771
|
+
# {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}. A `NOT_FOUND` error
|
|
772
|
+
# is returned if the resource does not exist. An empty policy is returned if
|
|
773
|
+
# the resource exists but does not have a policy set on it.
|
|
774
|
+
#
|
|
775
|
+
# @overload get_iam_policy(request, options = nil)
|
|
776
|
+
# Pass arguments to `get_iam_policy` via a request object, either of type
|
|
777
|
+
# {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
|
|
778
|
+
#
|
|
779
|
+
# @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
|
|
780
|
+
# A request object representing the call parameters. Required. To specify no
|
|
781
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
782
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
783
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
784
|
+
#
|
|
785
|
+
# @overload get_iam_policy(resource: nil, options: nil)
|
|
786
|
+
# Pass arguments to `get_iam_policy` via keyword arguments. Note that at
|
|
787
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
788
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
789
|
+
#
|
|
790
|
+
# @param resource [::String]
|
|
791
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
792
|
+
# See the operation documentation for the appropriate value for this field.
|
|
793
|
+
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
|
|
794
|
+
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
795
|
+
# `GetIamPolicy`.
|
|
796
|
+
#
|
|
797
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
798
|
+
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
799
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
800
|
+
#
|
|
801
|
+
# @return [::Google::Iam::V1::Policy]
|
|
802
|
+
#
|
|
803
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
804
|
+
#
|
|
805
|
+
# @example Basic example
|
|
806
|
+
# require "google/cloud/discovery_engine/v1"
|
|
807
|
+
#
|
|
808
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
809
|
+
# client = Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client.new
|
|
810
|
+
#
|
|
811
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
812
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
|
813
|
+
#
|
|
814
|
+
# # Call the get_iam_policy method.
|
|
815
|
+
# result = client.get_iam_policy request
|
|
816
|
+
#
|
|
817
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
|
818
|
+
# p result
|
|
819
|
+
#
|
|
820
|
+
def get_iam_policy request, options = nil
|
|
821
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
822
|
+
|
|
823
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
|
|
824
|
+
|
|
825
|
+
# Converts hash and nil to an options object
|
|
826
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
827
|
+
|
|
828
|
+
# Customize the options with defaults
|
|
829
|
+
metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
|
830
|
+
|
|
831
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
832
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
833
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
834
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
|
835
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
836
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
837
|
+
|
|
838
|
+
header_params = {}
|
|
839
|
+
if request.resource
|
|
840
|
+
header_params["resource"] = request.resource
|
|
841
|
+
end
|
|
842
|
+
|
|
843
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
844
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
845
|
+
|
|
846
|
+
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
|
847
|
+
metadata: metadata,
|
|
848
|
+
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
|
849
|
+
|
|
850
|
+
options.apply_defaults timeout: @config.timeout,
|
|
851
|
+
metadata: @config.metadata,
|
|
852
|
+
retry_policy: @config.retry_policy
|
|
853
|
+
|
|
854
|
+
@data_store_service_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
|
855
|
+
yield response, operation if block_given?
|
|
856
|
+
end
|
|
857
|
+
rescue ::GRPC::BadStatus => e
|
|
858
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
859
|
+
end
|
|
860
|
+
|
|
861
|
+
##
|
|
862
|
+
# Sets the IAM access control policy for a
|
|
863
|
+
# {::Google::Cloud::DiscoveryEngine::V1::DataStore DataStore}. A `NOT_FOUND` error
|
|
864
|
+
# is returned if the resource does not exist.
|
|
865
|
+
#
|
|
866
|
+
# **Important:** When setting a policy directly on a DataStore resource,
|
|
867
|
+
# the only recommended roles in the bindings are:
|
|
868
|
+
# `roles/discoveryengine.admin`
|
|
869
|
+
# `roles/discoveryengine.agentspaceAdmin`
|
|
870
|
+
# `roles/discoveryengine.viewer`
|
|
871
|
+
# `roles/discoveryengine.agentspaceViewer`
|
|
872
|
+
# `roles/discoveryengine.user`
|
|
873
|
+
# `roles/discoveryengine.agentspaceUser`
|
|
874
|
+
# Attempting to grant any other role will result in a warning in logging.
|
|
875
|
+
#
|
|
876
|
+
# @overload set_iam_policy(request, options = nil)
|
|
877
|
+
# Pass arguments to `set_iam_policy` via a request object, either of type
|
|
878
|
+
# {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
|
|
879
|
+
#
|
|
880
|
+
# @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
|
|
881
|
+
# A request object representing the call parameters. Required. To specify no
|
|
882
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
883
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
884
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
885
|
+
#
|
|
886
|
+
# @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
|
|
887
|
+
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
|
888
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
889
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
890
|
+
#
|
|
891
|
+
# @param resource [::String]
|
|
892
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
893
|
+
# See the operation documentation for the appropriate value for this field.
|
|
894
|
+
# @param policy [::Google::Iam::V1::Policy, ::Hash]
|
|
895
|
+
# REQUIRED: The complete policy to be applied to the `resource`. The size of
|
|
896
|
+
# the policy is limited to a few 10s of KB. An empty policy is a
|
|
897
|
+
# valid policy but certain Cloud Platform services (such as Projects)
|
|
898
|
+
# might reject them.
|
|
899
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
900
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
901
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
|
902
|
+
# following default mask is used:
|
|
903
|
+
#
|
|
904
|
+
# `paths: "bindings, etag"`
|
|
905
|
+
#
|
|
906
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
907
|
+
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
908
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
909
|
+
#
|
|
910
|
+
# @return [::Google::Iam::V1::Policy]
|
|
911
|
+
#
|
|
912
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
913
|
+
#
|
|
914
|
+
# @example Basic example
|
|
915
|
+
# require "google/cloud/discovery_engine/v1"
|
|
916
|
+
#
|
|
917
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
918
|
+
# client = Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client.new
|
|
919
|
+
#
|
|
920
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
921
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
|
922
|
+
#
|
|
923
|
+
# # Call the set_iam_policy method.
|
|
924
|
+
# result = client.set_iam_policy request
|
|
925
|
+
#
|
|
926
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
|
927
|
+
# p result
|
|
928
|
+
#
|
|
929
|
+
def set_iam_policy request, options = nil
|
|
930
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
931
|
+
|
|
932
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
|
|
933
|
+
|
|
934
|
+
# Converts hash and nil to an options object
|
|
935
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
936
|
+
|
|
937
|
+
# Customize the options with defaults
|
|
938
|
+
metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
|
939
|
+
|
|
940
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
941
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
942
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
943
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
|
944
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
945
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
946
|
+
|
|
947
|
+
header_params = {}
|
|
948
|
+
if request.resource
|
|
949
|
+
header_params["resource"] = request.resource
|
|
950
|
+
end
|
|
951
|
+
|
|
952
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
953
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
954
|
+
|
|
955
|
+
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
|
956
|
+
metadata: metadata,
|
|
957
|
+
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
|
958
|
+
|
|
959
|
+
options.apply_defaults timeout: @config.timeout,
|
|
960
|
+
metadata: @config.metadata,
|
|
961
|
+
retry_policy: @config.retry_policy
|
|
962
|
+
|
|
963
|
+
@data_store_service_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
|
964
|
+
yield response, operation if block_given?
|
|
965
|
+
end
|
|
966
|
+
rescue ::GRPC::BadStatus => e
|
|
967
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
968
|
+
end
|
|
969
|
+
|
|
769
970
|
##
|
|
770
971
|
# Configuration class for the DataStoreService API.
|
|
771
972
|
#
|
|
@@ -976,6 +1177,16 @@ module Google
|
|
|
976
1177
|
# @return [::Gapic::Config::Method]
|
|
977
1178
|
#
|
|
978
1179
|
attr_reader :update_data_store
|
|
1180
|
+
##
|
|
1181
|
+
# RPC-specific configuration for `get_iam_policy`
|
|
1182
|
+
# @return [::Gapic::Config::Method]
|
|
1183
|
+
#
|
|
1184
|
+
attr_reader :get_iam_policy
|
|
1185
|
+
##
|
|
1186
|
+
# RPC-specific configuration for `set_iam_policy`
|
|
1187
|
+
# @return [::Gapic::Config::Method]
|
|
1188
|
+
#
|
|
1189
|
+
attr_reader :set_iam_policy
|
|
979
1190
|
|
|
980
1191
|
# @private
|
|
981
1192
|
def initialize parent_rpcs = nil
|
|
@@ -989,6 +1200,10 @@ module Google
|
|
|
989
1200
|
@delete_data_store = ::Gapic::Config::Method.new delete_data_store_config
|
|
990
1201
|
update_data_store_config = parent_rpcs.update_data_store if parent_rpcs.respond_to? :update_data_store
|
|
991
1202
|
@update_data_store = ::Gapic::Config::Method.new update_data_store_config
|
|
1203
|
+
get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
|
|
1204
|
+
@get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
|
|
1205
|
+
set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
|
|
1206
|
+
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
|
992
1207
|
|
|
993
1208
|
yield self if block_given?
|
|
994
1209
|
end
|
|
@@ -26,7 +26,9 @@ module Google
|
|
|
26
26
|
# Credentials for the DataStoreService 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",
|