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
|
@@ -215,7 +215,7 @@ module Google
|
|
|
215
215
|
# Service calls
|
|
216
216
|
|
|
217
217
|
##
|
|
218
|
-
# Creates
|
|
218
|
+
# Creates an {::Google::Cloud::DiscoveryEngine::V1::Engine Engine}.
|
|
219
219
|
#
|
|
220
220
|
# @overload create_engine(request, options = nil)
|
|
221
221
|
# Pass arguments to `create_engine` via a request object, either of type
|
|
@@ -321,7 +321,7 @@ module Google
|
|
|
321
321
|
end
|
|
322
322
|
|
|
323
323
|
##
|
|
324
|
-
# Deletes
|
|
324
|
+
# Deletes an {::Google::Cloud::DiscoveryEngine::V1::Engine Engine}.
|
|
325
325
|
#
|
|
326
326
|
# @overload delete_engine(request, options = nil)
|
|
327
327
|
# Pass arguments to `delete_engine` via a request object, either of type
|
|
@@ -522,7 +522,7 @@ module Google
|
|
|
522
522
|
end
|
|
523
523
|
|
|
524
524
|
##
|
|
525
|
-
# Gets
|
|
525
|
+
# Gets an {::Google::Cloud::DiscoveryEngine::V1::Engine Engine}.
|
|
526
526
|
#
|
|
527
527
|
# @overload get_engine(request, options = nil)
|
|
528
528
|
# Pass arguments to `get_engine` via a request object, either of type
|
|
@@ -708,6 +708,207 @@ module Google
|
|
|
708
708
|
raise ::Google::Cloud::Error.from_error(e)
|
|
709
709
|
end
|
|
710
710
|
|
|
711
|
+
##
|
|
712
|
+
# Gets the IAM access control policy for an
|
|
713
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Engine Engine}. A `NOT_FOUND` error is
|
|
714
|
+
# returned if the resource does not exist. An empty policy is returned if the
|
|
715
|
+
# resource exists but does not have a policy set on it.
|
|
716
|
+
#
|
|
717
|
+
# @overload get_iam_policy(request, options = nil)
|
|
718
|
+
# Pass arguments to `get_iam_policy` via a request object, either of type
|
|
719
|
+
# {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
|
|
720
|
+
#
|
|
721
|
+
# @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
|
|
722
|
+
# A request object representing the call parameters. Required. To specify no
|
|
723
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
724
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
725
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
726
|
+
#
|
|
727
|
+
# @overload get_iam_policy(resource: nil, options: nil)
|
|
728
|
+
# Pass arguments to `get_iam_policy` via keyword arguments. Note that at
|
|
729
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
730
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
731
|
+
#
|
|
732
|
+
# @param resource [::String]
|
|
733
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
734
|
+
# See the operation documentation for the appropriate value for this field.
|
|
735
|
+
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
|
|
736
|
+
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
737
|
+
# `GetIamPolicy`.
|
|
738
|
+
#
|
|
739
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
740
|
+
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
741
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
742
|
+
#
|
|
743
|
+
# @return [::Google::Iam::V1::Policy]
|
|
744
|
+
#
|
|
745
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
746
|
+
#
|
|
747
|
+
# @example Basic example
|
|
748
|
+
# require "google/cloud/discovery_engine/v1"
|
|
749
|
+
#
|
|
750
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
751
|
+
# client = Google::Cloud::DiscoveryEngine::V1::EngineService::Client.new
|
|
752
|
+
#
|
|
753
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
754
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
|
755
|
+
#
|
|
756
|
+
# # Call the get_iam_policy method.
|
|
757
|
+
# result = client.get_iam_policy request
|
|
758
|
+
#
|
|
759
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
|
760
|
+
# p result
|
|
761
|
+
#
|
|
762
|
+
def get_iam_policy request, options = nil
|
|
763
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
764
|
+
|
|
765
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
|
|
766
|
+
|
|
767
|
+
# Converts hash and nil to an options object
|
|
768
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
769
|
+
|
|
770
|
+
# Customize the options with defaults
|
|
771
|
+
metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
|
772
|
+
|
|
773
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
774
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
775
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
776
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
|
777
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
778
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
779
|
+
|
|
780
|
+
header_params = {}
|
|
781
|
+
if request.resource
|
|
782
|
+
header_params["resource"] = request.resource
|
|
783
|
+
end
|
|
784
|
+
|
|
785
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
786
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
787
|
+
|
|
788
|
+
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
|
789
|
+
metadata: metadata,
|
|
790
|
+
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
|
791
|
+
|
|
792
|
+
options.apply_defaults timeout: @config.timeout,
|
|
793
|
+
metadata: @config.metadata,
|
|
794
|
+
retry_policy: @config.retry_policy
|
|
795
|
+
|
|
796
|
+
@engine_service_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
|
797
|
+
yield response, operation if block_given?
|
|
798
|
+
end
|
|
799
|
+
rescue ::GRPC::BadStatus => e
|
|
800
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
801
|
+
end
|
|
802
|
+
|
|
803
|
+
##
|
|
804
|
+
# Sets the IAM access control policy for an
|
|
805
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Engine Engine}. A `NOT_FOUND` error is
|
|
806
|
+
# returned if the resource does not exist.
|
|
807
|
+
#
|
|
808
|
+
# **Important:** When setting a policy directly on an Engine resource,
|
|
809
|
+
# the only recommended roles in the bindings are:
|
|
810
|
+
# `roles/discoveryengine.admin`,
|
|
811
|
+
# `roles/discoveryengine.agentspaceAdmin`,
|
|
812
|
+
# `roles/discoveryengine.user`,
|
|
813
|
+
# `roles/discoveryengine.agentspaceUser`,
|
|
814
|
+
# `roles/discoveryengine.viewer`,
|
|
815
|
+
# `roles/discoveryengine.agentspaceViewer`.
|
|
816
|
+
# Attempting to grant any other role will result in a warning in logging.
|
|
817
|
+
#
|
|
818
|
+
# @overload set_iam_policy(request, options = nil)
|
|
819
|
+
# Pass arguments to `set_iam_policy` via a request object, either of type
|
|
820
|
+
# {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
|
|
821
|
+
#
|
|
822
|
+
# @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
|
|
823
|
+
# A request object representing the call parameters. Required. To specify no
|
|
824
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
825
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
826
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
827
|
+
#
|
|
828
|
+
# @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
|
|
829
|
+
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
|
830
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
831
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
832
|
+
#
|
|
833
|
+
# @param resource [::String]
|
|
834
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
835
|
+
# See the operation documentation for the appropriate value for this field.
|
|
836
|
+
# @param policy [::Google::Iam::V1::Policy, ::Hash]
|
|
837
|
+
# REQUIRED: The complete policy to be applied to the `resource`. The size of
|
|
838
|
+
# the policy is limited to a few 10s of KB. An empty policy is a
|
|
839
|
+
# valid policy but certain Cloud Platform services (such as Projects)
|
|
840
|
+
# might reject them.
|
|
841
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
842
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
843
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
|
844
|
+
# following default mask is used:
|
|
845
|
+
#
|
|
846
|
+
# `paths: "bindings, etag"`
|
|
847
|
+
#
|
|
848
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
849
|
+
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
850
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
851
|
+
#
|
|
852
|
+
# @return [::Google::Iam::V1::Policy]
|
|
853
|
+
#
|
|
854
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
855
|
+
#
|
|
856
|
+
# @example Basic example
|
|
857
|
+
# require "google/cloud/discovery_engine/v1"
|
|
858
|
+
#
|
|
859
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
860
|
+
# client = Google::Cloud::DiscoveryEngine::V1::EngineService::Client.new
|
|
861
|
+
#
|
|
862
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
863
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
|
864
|
+
#
|
|
865
|
+
# # Call the set_iam_policy method.
|
|
866
|
+
# result = client.set_iam_policy request
|
|
867
|
+
#
|
|
868
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
|
869
|
+
# p result
|
|
870
|
+
#
|
|
871
|
+
def set_iam_policy request, options = nil
|
|
872
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
873
|
+
|
|
874
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
|
|
875
|
+
|
|
876
|
+
# Converts hash and nil to an options object
|
|
877
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
878
|
+
|
|
879
|
+
# Customize the options with defaults
|
|
880
|
+
metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
|
881
|
+
|
|
882
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
883
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
884
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
885
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
|
886
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
887
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
888
|
+
|
|
889
|
+
header_params = {}
|
|
890
|
+
if request.resource
|
|
891
|
+
header_params["resource"] = request.resource
|
|
892
|
+
end
|
|
893
|
+
|
|
894
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
895
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
896
|
+
|
|
897
|
+
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
|
898
|
+
metadata: metadata,
|
|
899
|
+
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
|
900
|
+
|
|
901
|
+
options.apply_defaults timeout: @config.timeout,
|
|
902
|
+
metadata: @config.metadata,
|
|
903
|
+
retry_policy: @config.retry_policy
|
|
904
|
+
|
|
905
|
+
@engine_service_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
|
906
|
+
yield response, operation if block_given?
|
|
907
|
+
end
|
|
908
|
+
rescue ::GRPC::BadStatus => e
|
|
909
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
910
|
+
end
|
|
911
|
+
|
|
711
912
|
##
|
|
712
913
|
# Configuration class for the EngineService API.
|
|
713
914
|
#
|
|
@@ -918,6 +1119,16 @@ module Google
|
|
|
918
1119
|
# @return [::Gapic::Config::Method]
|
|
919
1120
|
#
|
|
920
1121
|
attr_reader :list_engines
|
|
1122
|
+
##
|
|
1123
|
+
# RPC-specific configuration for `get_iam_policy`
|
|
1124
|
+
# @return [::Gapic::Config::Method]
|
|
1125
|
+
#
|
|
1126
|
+
attr_reader :get_iam_policy
|
|
1127
|
+
##
|
|
1128
|
+
# RPC-specific configuration for `set_iam_policy`
|
|
1129
|
+
# @return [::Gapic::Config::Method]
|
|
1130
|
+
#
|
|
1131
|
+
attr_reader :set_iam_policy
|
|
921
1132
|
|
|
922
1133
|
# @private
|
|
923
1134
|
def initialize parent_rpcs = nil
|
|
@@ -931,6 +1142,10 @@ module Google
|
|
|
931
1142
|
@get_engine = ::Gapic::Config::Method.new get_engine_config
|
|
932
1143
|
list_engines_config = parent_rpcs.list_engines if parent_rpcs.respond_to? :list_engines
|
|
933
1144
|
@list_engines = ::Gapic::Config::Method.new list_engines_config
|
|
1145
|
+
get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
|
|
1146
|
+
@get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
|
|
1147
|
+
set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
|
|
1148
|
+
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
|
934
1149
|
|
|
935
1150
|
yield self if block_given?
|
|
936
1151
|
end
|
|
@@ -26,7 +26,9 @@ module Google
|
|
|
26
26
|
# Credentials for the EngineService API.
|
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
|
28
28
|
self.scope = [
|
|
29
|
-
"https://www.googleapis.com/auth/cloud-platform"
|
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
|
30
|
+
"https://www.googleapis.com/auth/discoveryengine.readwrite",
|
|
31
|
+
"https://www.googleapis.com/auth/discoveryengine.serving.readwrite"
|
|
30
32
|
]
|
|
31
33
|
self.env_vars = [
|
|
32
34
|
"GOOGLE_CLOUD_CREDENTIALS",
|
|
@@ -24,6 +24,66 @@ module Google
|
|
|
24
24
|
module EngineService
|
|
25
25
|
# Path helper methods for the EngineService API.
|
|
26
26
|
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified AgentGateway resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/agentGateways/{agent_gateway}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param agent_gateway [String]
|
|
37
|
+
#
|
|
38
|
+
# @return [::String]
|
|
39
|
+
def agent_gateway_path project:, location:, agent_gateway:
|
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
42
|
+
|
|
43
|
+
"projects/#{project}/locations/#{location}/agentGateways/#{agent_gateway}"
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
##
|
|
47
|
+
# Create a fully-qualified CmekConfig resource string.
|
|
48
|
+
#
|
|
49
|
+
# @overload cmek_config_path(project:, location:)
|
|
50
|
+
# The resource will be in the following format:
|
|
51
|
+
#
|
|
52
|
+
# `projects/{project}/locations/{location}/cmekConfig`
|
|
53
|
+
#
|
|
54
|
+
# @param project [String]
|
|
55
|
+
# @param location [String]
|
|
56
|
+
#
|
|
57
|
+
# @overload cmek_config_path(project:, location:, cmek_config:)
|
|
58
|
+
# The resource will be in the following format:
|
|
59
|
+
#
|
|
60
|
+
# `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`
|
|
61
|
+
#
|
|
62
|
+
# @param project [String]
|
|
63
|
+
# @param location [String]
|
|
64
|
+
# @param cmek_config [String]
|
|
65
|
+
#
|
|
66
|
+
# @return [::String]
|
|
67
|
+
def cmek_config_path **args
|
|
68
|
+
resources = {
|
|
69
|
+
"location:project" => (proc do |project:, location:|
|
|
70
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
71
|
+
|
|
72
|
+
"projects/#{project}/locations/#{location}/cmekConfig"
|
|
73
|
+
end),
|
|
74
|
+
"cmek_config:location:project" => (proc do |project:, location:, cmek_config:|
|
|
75
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
76
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
77
|
+
|
|
78
|
+
"projects/#{project}/locations/#{location}/cmekConfigs/#{cmek_config}"
|
|
79
|
+
end)
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
resource = resources[args.keys.sort.join(":")]
|
|
83
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
|
84
|
+
resource.call(**args)
|
|
85
|
+
end
|
|
86
|
+
|
|
27
87
|
##
|
|
28
88
|
# Create a fully-qualified Collection resource string.
|
|
29
89
|
#
|
|
@@ -43,6 +103,50 @@ module Google
|
|
|
43
103
|
"projects/#{project}/locations/#{location}/collections/#{collection}"
|
|
44
104
|
end
|
|
45
105
|
|
|
106
|
+
##
|
|
107
|
+
# Create a fully-qualified CryptoKeyVersions resource string.
|
|
108
|
+
#
|
|
109
|
+
# The resource will be in the following format:
|
|
110
|
+
#
|
|
111
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
|
|
112
|
+
#
|
|
113
|
+
# @param project [String]
|
|
114
|
+
# @param location [String]
|
|
115
|
+
# @param key_ring [String]
|
|
116
|
+
# @param crypto_key [String]
|
|
117
|
+
# @param crypto_key_version [String]
|
|
118
|
+
#
|
|
119
|
+
# @return [::String]
|
|
120
|
+
def crypto_key_versions_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
|
|
121
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
122
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
123
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
124
|
+
raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
|
|
125
|
+
|
|
126
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
##
|
|
130
|
+
# Create a fully-qualified CryptoKeys resource string.
|
|
131
|
+
#
|
|
132
|
+
# The resource will be in the following format:
|
|
133
|
+
#
|
|
134
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
|
135
|
+
#
|
|
136
|
+
# @param project [String]
|
|
137
|
+
# @param location [String]
|
|
138
|
+
# @param key_ring [String]
|
|
139
|
+
# @param crypto_key [String]
|
|
140
|
+
#
|
|
141
|
+
# @return [::String]
|
|
142
|
+
def crypto_keys_path project:, location:, key_ring:, crypto_key:
|
|
143
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
144
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
145
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
146
|
+
|
|
147
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
|
148
|
+
end
|
|
149
|
+
|
|
46
150
|
##
|
|
47
151
|
# Create a fully-qualified Engine resource string.
|
|
48
152
|
#
|
|
@@ -208,7 +208,7 @@ module Google
|
|
|
208
208
|
# Service calls
|
|
209
209
|
|
|
210
210
|
##
|
|
211
|
-
# Creates
|
|
211
|
+
# Creates an {::Google::Cloud::DiscoveryEngine::V1::Engine Engine}.
|
|
212
212
|
#
|
|
213
213
|
# @overload create_engine(request, options = nil)
|
|
214
214
|
# Pass arguments to `create_engine` via a request object, either of type
|
|
@@ -307,7 +307,7 @@ module Google
|
|
|
307
307
|
end
|
|
308
308
|
|
|
309
309
|
##
|
|
310
|
-
# Deletes
|
|
310
|
+
# Deletes an {::Google::Cloud::DiscoveryEngine::V1::Engine Engine}.
|
|
311
311
|
#
|
|
312
312
|
# @overload delete_engine(request, options = nil)
|
|
313
313
|
# Pass arguments to `delete_engine` via a request object, either of type
|
|
@@ -494,7 +494,7 @@ module Google
|
|
|
494
494
|
end
|
|
495
495
|
|
|
496
496
|
##
|
|
497
|
-
# Gets
|
|
497
|
+
# Gets an {::Google::Cloud::DiscoveryEngine::V1::Engine Engine}.
|
|
498
498
|
#
|
|
499
499
|
# @overload get_engine(request, options = nil)
|
|
500
500
|
# Pass arguments to `get_engine` via a request object, either of type
|
|
@@ -666,6 +666,193 @@ module Google
|
|
|
666
666
|
raise ::Google::Cloud::Error.from_error(e)
|
|
667
667
|
end
|
|
668
668
|
|
|
669
|
+
##
|
|
670
|
+
# Gets the IAM access control policy for an
|
|
671
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Engine Engine}. A `NOT_FOUND` error is
|
|
672
|
+
# returned if the resource does not exist. An empty policy is returned if the
|
|
673
|
+
# resource exists but does not have a policy set on it.
|
|
674
|
+
#
|
|
675
|
+
# @overload get_iam_policy(request, options = nil)
|
|
676
|
+
# Pass arguments to `get_iam_policy` via a request object, either of type
|
|
677
|
+
# {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
|
|
678
|
+
#
|
|
679
|
+
# @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
|
|
680
|
+
# A request object representing the call parameters. Required. To specify no
|
|
681
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
682
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
683
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
684
|
+
#
|
|
685
|
+
# @overload get_iam_policy(resource: nil, options: nil)
|
|
686
|
+
# Pass arguments to `get_iam_policy` via keyword arguments. Note that at
|
|
687
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
688
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
689
|
+
#
|
|
690
|
+
# @param resource [::String]
|
|
691
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
692
|
+
# See the operation documentation for the appropriate value for this field.
|
|
693
|
+
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
|
|
694
|
+
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
695
|
+
# `GetIamPolicy`.
|
|
696
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
697
|
+
# @yieldparam result [::Google::Iam::V1::Policy]
|
|
698
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
699
|
+
#
|
|
700
|
+
# @return [::Google::Iam::V1::Policy]
|
|
701
|
+
#
|
|
702
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
703
|
+
#
|
|
704
|
+
# @example Basic example
|
|
705
|
+
# require "google/cloud/discovery_engine/v1"
|
|
706
|
+
#
|
|
707
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
708
|
+
# client = Google::Cloud::DiscoveryEngine::V1::EngineService::Rest::Client.new
|
|
709
|
+
#
|
|
710
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
711
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
|
712
|
+
#
|
|
713
|
+
# # Call the get_iam_policy method.
|
|
714
|
+
# result = client.get_iam_policy request
|
|
715
|
+
#
|
|
716
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
|
717
|
+
# p result
|
|
718
|
+
#
|
|
719
|
+
def get_iam_policy request, options = nil
|
|
720
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
721
|
+
|
|
722
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
|
|
723
|
+
|
|
724
|
+
# Converts hash and nil to an options object
|
|
725
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
726
|
+
|
|
727
|
+
# Customize the options with defaults
|
|
728
|
+
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
|
729
|
+
|
|
730
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
731
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
732
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
733
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
|
734
|
+
transports_version_send: [:rest]
|
|
735
|
+
|
|
736
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
737
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
738
|
+
|
|
739
|
+
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
|
740
|
+
metadata: call_metadata,
|
|
741
|
+
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
|
742
|
+
|
|
743
|
+
options.apply_defaults timeout: @config.timeout,
|
|
744
|
+
metadata: @config.metadata,
|
|
745
|
+
retry_policy: @config.retry_policy
|
|
746
|
+
|
|
747
|
+
@engine_service_stub.get_iam_policy request, options do |result, operation|
|
|
748
|
+
yield result, operation if block_given?
|
|
749
|
+
end
|
|
750
|
+
rescue ::Gapic::Rest::Error => e
|
|
751
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
752
|
+
end
|
|
753
|
+
|
|
754
|
+
##
|
|
755
|
+
# Sets the IAM access control policy for an
|
|
756
|
+
# {::Google::Cloud::DiscoveryEngine::V1::Engine Engine}. A `NOT_FOUND` error is
|
|
757
|
+
# returned if the resource does not exist.
|
|
758
|
+
#
|
|
759
|
+
# **Important:** When setting a policy directly on an Engine resource,
|
|
760
|
+
# the only recommended roles in the bindings are:
|
|
761
|
+
# `roles/discoveryengine.admin`,
|
|
762
|
+
# `roles/discoveryengine.agentspaceAdmin`,
|
|
763
|
+
# `roles/discoveryengine.user`,
|
|
764
|
+
# `roles/discoveryengine.agentspaceUser`,
|
|
765
|
+
# `roles/discoveryengine.viewer`,
|
|
766
|
+
# `roles/discoveryengine.agentspaceViewer`.
|
|
767
|
+
# Attempting to grant any other role will result in a warning in logging.
|
|
768
|
+
#
|
|
769
|
+
# @overload set_iam_policy(request, options = nil)
|
|
770
|
+
# Pass arguments to `set_iam_policy` via a request object, either of type
|
|
771
|
+
# {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
|
|
772
|
+
#
|
|
773
|
+
# @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
|
|
774
|
+
# A request object representing the call parameters. Required. To specify no
|
|
775
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
776
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
777
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
778
|
+
#
|
|
779
|
+
# @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
|
|
780
|
+
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
|
781
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
782
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
783
|
+
#
|
|
784
|
+
# @param resource [::String]
|
|
785
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
786
|
+
# See the operation documentation for the appropriate value for this field.
|
|
787
|
+
# @param policy [::Google::Iam::V1::Policy, ::Hash]
|
|
788
|
+
# REQUIRED: The complete policy to be applied to the `resource`. The size of
|
|
789
|
+
# the policy is limited to a few 10s of KB. An empty policy is a
|
|
790
|
+
# valid policy but certain Cloud Platform services (such as Projects)
|
|
791
|
+
# might reject them.
|
|
792
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
793
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
794
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
|
795
|
+
# following default mask is used:
|
|
796
|
+
#
|
|
797
|
+
# `paths: "bindings, etag"`
|
|
798
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
799
|
+
# @yieldparam result [::Google::Iam::V1::Policy]
|
|
800
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
801
|
+
#
|
|
802
|
+
# @return [::Google::Iam::V1::Policy]
|
|
803
|
+
#
|
|
804
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
805
|
+
#
|
|
806
|
+
# @example Basic example
|
|
807
|
+
# require "google/cloud/discovery_engine/v1"
|
|
808
|
+
#
|
|
809
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
810
|
+
# client = Google::Cloud::DiscoveryEngine::V1::EngineService::Rest::Client.new
|
|
811
|
+
#
|
|
812
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
813
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
|
814
|
+
#
|
|
815
|
+
# # Call the set_iam_policy method.
|
|
816
|
+
# result = client.set_iam_policy request
|
|
817
|
+
#
|
|
818
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
|
819
|
+
# p result
|
|
820
|
+
#
|
|
821
|
+
def set_iam_policy request, options = nil
|
|
822
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
823
|
+
|
|
824
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
|
|
825
|
+
|
|
826
|
+
# Converts hash and nil to an options object
|
|
827
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
828
|
+
|
|
829
|
+
# Customize the options with defaults
|
|
830
|
+
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
|
831
|
+
|
|
832
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
833
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
834
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
835
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
|
836
|
+
transports_version_send: [:rest]
|
|
837
|
+
|
|
838
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
839
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
840
|
+
|
|
841
|
+
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
|
842
|
+
metadata: call_metadata,
|
|
843
|
+
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
|
844
|
+
|
|
845
|
+
options.apply_defaults timeout: @config.timeout,
|
|
846
|
+
metadata: @config.metadata,
|
|
847
|
+
retry_policy: @config.retry_policy
|
|
848
|
+
|
|
849
|
+
@engine_service_stub.set_iam_policy request, options do |result, operation|
|
|
850
|
+
yield result, operation if block_given?
|
|
851
|
+
end
|
|
852
|
+
rescue ::Gapic::Rest::Error => e
|
|
853
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
854
|
+
end
|
|
855
|
+
|
|
669
856
|
##
|
|
670
857
|
# Configuration class for the EngineService REST API.
|
|
671
858
|
#
|
|
@@ -839,6 +1026,16 @@ module Google
|
|
|
839
1026
|
# @return [::Gapic::Config::Method]
|
|
840
1027
|
#
|
|
841
1028
|
attr_reader :list_engines
|
|
1029
|
+
##
|
|
1030
|
+
# RPC-specific configuration for `get_iam_policy`
|
|
1031
|
+
# @return [::Gapic::Config::Method]
|
|
1032
|
+
#
|
|
1033
|
+
attr_reader :get_iam_policy
|
|
1034
|
+
##
|
|
1035
|
+
# RPC-specific configuration for `set_iam_policy`
|
|
1036
|
+
# @return [::Gapic::Config::Method]
|
|
1037
|
+
#
|
|
1038
|
+
attr_reader :set_iam_policy
|
|
842
1039
|
|
|
843
1040
|
# @private
|
|
844
1041
|
def initialize parent_rpcs = nil
|
|
@@ -852,6 +1049,10 @@ module Google
|
|
|
852
1049
|
@get_engine = ::Gapic::Config::Method.new get_engine_config
|
|
853
1050
|
list_engines_config = parent_rpcs.list_engines if parent_rpcs.respond_to? :list_engines
|
|
854
1051
|
@list_engines = ::Gapic::Config::Method.new list_engines_config
|
|
1052
|
+
get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
|
|
1053
|
+
@get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
|
|
1054
|
+
set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
|
|
1055
|
+
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
|
855
1056
|
|
|
856
1057
|
yield self if block_given?
|
|
857
1058
|
end
|
|
@@ -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}",
|