google-cloud-discovery_engine-v1beta 0.26.0 → 0.28.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 +5 -5
- data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/client.rb +591 -0
- data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/paths.rb +50 -0
- data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/rest/client.rb +534 -0
- data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/rest/service_stub.rb +204 -0
- data/lib/google/cloud/discovery_engine/v1beta/acl_config_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/acl_config_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/assistant_service/client.rb +1058 -0
- data/lib/google/cloud/discovery_engine/v1beta/assistant_service/credentials.rb +50 -0
- data/lib/google/cloud/discovery_engine/v1beta/assistant_service/paths.rb +230 -0
- data/lib/google/cloud/discovery_engine/v1beta/assistant_service/rest/client.rb +975 -0
- data/lib/google/cloud/discovery_engine/v1beta/assistant_service/rest/service_stub.rb +444 -0
- data/lib/google/cloud/discovery_engine/v1beta/assistant_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/assistant_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/client.rb +823 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/operations.rb +843 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/paths.rb +135 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/rest/client.rb +752 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/rest/operations.rb +1152 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/rest/service_stub.rb +341 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1beta/cmek_config_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +148 -12
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/credentials.rb +5 -1
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +141 -12
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +62 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/control_service/paths.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1beta/control_service/rest/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +212 -10
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/paths.rb +46 -0
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +207 -10
- data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +72 -0
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/client.rb +13 -1
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/paths.rb +104 -0
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/client.rb +13 -1
- data/lib/google/cloud/discovery_engine/v1beta/data_store_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +10 -3
- data/lib/google/cloud/discovery_engine/v1beta/document_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +10 -3
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/client.rb +226 -6
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/paths.rb +104 -0
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/client.rb +212 -6
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/engine_service/rest/service_stub.rb +123 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/client.rb +13 -9
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/credentials.rb +4 -1
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/client.rb +13 -9
- data/lib/google/cloud/discovery_engine/v1beta/evaluation_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/grounded_generation_service/rest/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/client.rb +1180 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/operations.rb +843 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/paths.rb +154 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest/client.rb +1088 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest/operations.rb +1152 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest/service_stub.rb +511 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1beta/identity_mapping_store_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1beta/license_config_service/client.rb +1050 -0
- data/lib/google/cloud/discovery_engine/v1beta/license_config_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1beta/license_config_service/paths.rb +86 -0
- data/lib/google/cloud/discovery_engine/v1beta/license_config_service/rest/client.rb +965 -0
- data/lib/google/cloud/discovery_engine/v1beta/license_config_service/rest/service_stub.rb +451 -0
- data/lib/google/cloud/discovery_engine/v1beta/license_config_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/license_config_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/client.rb +5 -1
- data/lib/google/cloud/discovery_engine/v1beta/project_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/project_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/client.rb +5 -1
- data/lib/google/cloud/discovery_engine/v1beta/project_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/rank_service/rest/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/rest.rb +10 -3
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/sample_query_set_service/rest/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +196 -38
- data/lib/google/cloud/discovery_engine/v1beta/search_service/credentials.rb +4 -1
- data/lib/google/cloud/discovery_engine/v1beta/search_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +196 -38
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/client.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/search_tuning_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/client.rb +209 -3
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/client.rb +195 -3
- data/lib/google/cloud/discovery_engine/v1beta/serving_config_service/rest/service_stub.rb +153 -0
- data/lib/google/cloud/discovery_engine/v1beta/session_service/client.rb +27 -9
- data/lib/google/cloud/discovery_engine/v1beta/session_service/credentials.rb +4 -1
- data/lib/google/cloud/discovery_engine/v1beta/session_service/paths.rb +46 -0
- data/lib/google/cloud/discovery_engine/v1beta/session_service/rest/client.rb +27 -9
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/client.rb +3 -3
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/credentials.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/client.rb +3 -3
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/site_search_engine_service/rest/service_stub.rb +7 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +25 -11
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/credentials.rb +4 -1
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +2 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +25 -11
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +23 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/client.rb +768 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/operations.rb +843 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/paths.rb +71 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest/client.rb +704 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest/operations.rb +1152 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest/service_stub.rb +265 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_license_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_store_service/client.rb +590 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_store_service/credentials.rb +49 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_store_service/paths.rb +71 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_store_service/rest/client.rb +533 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_store_service/rest/service_stub.rb +204 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_store_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1beta/user_store_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta.rb +11 -4
- data/lib/google/cloud/discoveryengine/v1beta/acl_config_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1beta/acl_config_service_pb.rb +28 -0
- data/lib/google/cloud/discoveryengine/v1beta/acl_config_service_services_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1beta/agent_gateway_setting_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1beta/answer_pb.rb +6 -1
- data/lib/google/cloud/discoveryengine/v1beta/assist_answer_pb.rb +48 -0
- data/lib/google/cloud/discoveryengine/v1beta/assistant_pb.rb +35 -0
- data/lib/google/cloud/discoveryengine/v1beta/assistant_service_pb.rb +48 -0
- data/lib/google/cloud/discoveryengine/v1beta/assistant_service_services_pb.rb +56 -0
- data/lib/google/cloud/discoveryengine/v1beta/chunk_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1beta/cmek_config_service_pb.rb +39 -0
- data/lib/google/cloud/discoveryengine/v1beta/cmek_config_service_services_pb.rb +55 -0
- data/lib/google/cloud/discoveryengine/v1beta/common_pb.rb +12 -1
- data/lib/google/cloud/discoveryengine/v1beta/completion_service_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1beta/completion_service_services_pb.rb +6 -0
- data/lib/google/cloud/discoveryengine/v1beta/control_pb.rb +6 -1
- data/lib/google/cloud/discoveryengine/v1beta/control_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_pb.rb +12 -1
- data/lib/google/cloud/discoveryengine/v1beta/conversational_search_service_services_pb.rb +8 -0
- data/lib/google/cloud/discoveryengine/v1beta/data_store_pb.rb +11 -1
- data/lib/google/cloud/discoveryengine/v1beta/data_store_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_processing_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/document_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/engine_pb.rb +17 -1
- data/lib/google/cloud/discoveryengine/v1beta/engine_service_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1beta/engine_service_services_pb.rb +28 -6
- data/lib/google/cloud/discoveryengine/v1beta/evaluation_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/evaluation_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/feedback_pb.rb +28 -0
- data/lib/google/cloud/discoveryengine/v1beta/grounded_generation_service_pb.rb +11 -1
- data/lib/google/cloud/discoveryengine/v1beta/grounding_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/identity_mapping_store_pb.rb +26 -0
- data/lib/google/cloud/discoveryengine/v1beta/identity_mapping_store_service_pb.rb +44 -0
- data/lib/google/cloud/discoveryengine/v1beta/identity_mapping_store_service_services_pb.rb +58 -0
- data/lib/google/cloud/discoveryengine/v1beta/import_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/license_config_pb.rb +27 -0
- data/lib/google/cloud/discoveryengine/v1beta/license_config_service_pb.rb +36 -0
- data/lib/google/cloud/discoveryengine/v1beta/license_config_service_services_pb.rb +65 -0
- data/lib/google/cloud/discoveryengine/v1beta/logging_pb.rb +24 -0
- data/lib/google/cloud/discoveryengine/v1beta/project_pb.rb +10 -1
- data/lib/google/cloud/discoveryengine/v1beta/project_service_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/rank_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/recommendation_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/safety_pb.rb +26 -0
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/sample_query_set_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/schema_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/search_service_pb.rb +18 -2
- data/lib/google/cloud/discoveryengine/v1beta/search_tuning_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/serving_config_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1beta/serving_config_service_services_pb.rb +14 -0
- data/lib/google/cloud/discoveryengine/v1beta/session_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/session_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/site_search_engine_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_event_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1beta/user_license_pb.rb +27 -0
- data/lib/google/cloud/discoveryengine/v1beta/user_license_service_pb.rb +38 -0
- data/lib/google/cloud/discoveryengine/v1beta/user_license_service_services_pb.rb +52 -0
- data/lib/google/cloud/discoveryengine/v1beta/user_store_pb.rb +24 -0
- data/lib/google/cloud/discoveryengine/v1beta/user_store_service_pb.rb +29 -0
- data/lib/google/cloud/discoveryengine/v1beta/user_store_service_services_pb.rb +47 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/acl_config.rb +43 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/acl_config_service.rb +49 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/agent_gateway_setting.rb +53 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/answer.rb +117 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/assist_answer.rb +401 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/assistant.rb +253 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/assistant_service.rb +368 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/chunk.rb +60 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/cmek_config_service.rb +228 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/common.rb +223 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/completion_service.rb +115 -13
- data/proto_docs/google/cloud/discoveryengine/v1beta/control.rb +119 -6
- data/proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb +178 -8
- data/proto_docs/google/cloud/discoveryengine/v1beta/data_store.rb +218 -9
- data/proto_docs/google/cloud/discoveryengine/v1beta/data_store_service.rb +12 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document.rb +115 -10
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_processing_config.rb +30 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/document_service.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1beta/engine.rb +388 -8
- data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/evaluation_service.rb +13 -11
- data/proto_docs/google/cloud/discoveryengine/v1beta/feedback.rb +147 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb +190 -9
- data/proto_docs/google/cloud/discoveryengine/v1beta/grounding.rb +9 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/identity_mapping_store.rb +84 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/identity_mapping_store_service.rb +280 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/import_config.rb +25 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/license_config.rb +101 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/license_config_service.rb +224 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/logging.rb +40 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/project.rb +214 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/project_service.rb +18 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/purge_config.rb +9 -5
- data/proto_docs/google/cloud/discoveryengine/v1beta/rank_service.rb +4 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/recommendation_service.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/safety.rb +108 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +461 -69
- data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config.rb +50 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/serving_config_service.rb +30 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/session.rb +21 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine.rb +8 -2
- data/proto_docs/google/cloud/discoveryengine/v1beta/site_search_engine_service.rb +7 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb +39 -3
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_event_service.rb +14 -6
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_license.rb +100 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_license_service.rb +202 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_store.rb +67 -0
- data/proto_docs/google/cloud/discoveryengine/v1beta/user_store_service.rb +54 -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/expr.rb +75 -0
- data/proto_docs/google/type/latlng.rb +38 -0
- metadata +120 -3
|
@@ -0,0 +1,965 @@
|
|
|
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/errors"
|
|
20
|
+
require "google/cloud/discoveryengine/v1beta/license_config_service_pb"
|
|
21
|
+
require "google/cloud/discovery_engine/v1beta/license_config_service/rest/service_stub"
|
|
22
|
+
require "google/cloud/location/rest"
|
|
23
|
+
|
|
24
|
+
module Google
|
|
25
|
+
module Cloud
|
|
26
|
+
module DiscoveryEngine
|
|
27
|
+
module V1beta
|
|
28
|
+
module LicenseConfigService
|
|
29
|
+
module Rest
|
|
30
|
+
##
|
|
31
|
+
# REST client for the LicenseConfigService service.
|
|
32
|
+
#
|
|
33
|
+
# Service for managing license config related resources.
|
|
34
|
+
#
|
|
35
|
+
class Client
|
|
36
|
+
# @private
|
|
37
|
+
API_VERSION = ""
|
|
38
|
+
|
|
39
|
+
# @private
|
|
40
|
+
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
|
41
|
+
|
|
42
|
+
include Paths
|
|
43
|
+
|
|
44
|
+
# @private
|
|
45
|
+
attr_reader :license_config_service_stub
|
|
46
|
+
|
|
47
|
+
##
|
|
48
|
+
# Configure the LicenseConfigService Client class.
|
|
49
|
+
#
|
|
50
|
+
# See {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Rest::Client::Configuration}
|
|
51
|
+
# for a description of the configuration fields.
|
|
52
|
+
#
|
|
53
|
+
# @example
|
|
54
|
+
#
|
|
55
|
+
# # Modify the configuration for all LicenseConfigService clients
|
|
56
|
+
# ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Rest::Client.configure do |config|
|
|
57
|
+
# config.timeout = 10.0
|
|
58
|
+
# end
|
|
59
|
+
#
|
|
60
|
+
# @yield [config] Configure the Client client.
|
|
61
|
+
# @yieldparam config [Client::Configuration]
|
|
62
|
+
#
|
|
63
|
+
# @return [Client::Configuration]
|
|
64
|
+
#
|
|
65
|
+
def self.configure
|
|
66
|
+
@configure ||= begin
|
|
67
|
+
namespace = ["Google", "Cloud", "DiscoveryEngine", "V1beta"]
|
|
68
|
+
parent_config = while namespace.any?
|
|
69
|
+
parent_name = namespace.join "::"
|
|
70
|
+
parent_const = const_get parent_name
|
|
71
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
|
72
|
+
namespace.pop
|
|
73
|
+
end
|
|
74
|
+
default_config = Client::Configuration.new parent_config
|
|
75
|
+
|
|
76
|
+
default_config
|
|
77
|
+
end
|
|
78
|
+
yield @configure if block_given?
|
|
79
|
+
@configure
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
##
|
|
83
|
+
# Configure the LicenseConfigService Client instance.
|
|
84
|
+
#
|
|
85
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
|
86
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
|
87
|
+
# should be made on {Client.configure}.
|
|
88
|
+
#
|
|
89
|
+
# See {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Rest::Client::Configuration}
|
|
90
|
+
# for a description of the configuration fields.
|
|
91
|
+
#
|
|
92
|
+
# @yield [config] Configure the Client client.
|
|
93
|
+
# @yieldparam config [Client::Configuration]
|
|
94
|
+
#
|
|
95
|
+
# @return [Client::Configuration]
|
|
96
|
+
#
|
|
97
|
+
def configure
|
|
98
|
+
yield @config if block_given?
|
|
99
|
+
@config
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
##
|
|
103
|
+
# The effective universe domain
|
|
104
|
+
#
|
|
105
|
+
# @return [String]
|
|
106
|
+
#
|
|
107
|
+
def universe_domain
|
|
108
|
+
@license_config_service_stub.universe_domain
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
##
|
|
112
|
+
# Create a new LicenseConfigService REST client object.
|
|
113
|
+
#
|
|
114
|
+
# @example
|
|
115
|
+
#
|
|
116
|
+
# # Create a client using the default configuration
|
|
117
|
+
# client = ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Rest::Client.new
|
|
118
|
+
#
|
|
119
|
+
# # Create a client using a custom configuration
|
|
120
|
+
# client = ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Rest::Client.new do |config|
|
|
121
|
+
# config.timeout = 10.0
|
|
122
|
+
# end
|
|
123
|
+
#
|
|
124
|
+
# @yield [config] Configure the LicenseConfigService client.
|
|
125
|
+
# @yieldparam config [Client::Configuration]
|
|
126
|
+
#
|
|
127
|
+
def initialize
|
|
128
|
+
# Create the configuration object
|
|
129
|
+
@config = Configuration.new Client.configure
|
|
130
|
+
|
|
131
|
+
# Yield the configuration if needed
|
|
132
|
+
yield @config if block_given?
|
|
133
|
+
|
|
134
|
+
# Create credentials
|
|
135
|
+
credentials = @config.credentials
|
|
136
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
137
|
+
# but only if the default endpoint does not have a region prefix.
|
|
138
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
|
139
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
140
|
+
!@config.endpoint.split(".").first.include?("-"))
|
|
141
|
+
credentials ||= Credentials.default scope: @config.scope,
|
|
142
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
|
143
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
144
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
@quota_project_id = @config.quota_project
|
|
148
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
149
|
+
|
|
150
|
+
@license_config_service_stub = ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Rest::ServiceStub.new(
|
|
151
|
+
endpoint: @config.endpoint,
|
|
152
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
153
|
+
universe_domain: @config.universe_domain,
|
|
154
|
+
credentials: credentials,
|
|
155
|
+
logger: @config.logger
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
@license_config_service_stub.logger(stub: true)&.info do |entry|
|
|
159
|
+
entry.set_system_name
|
|
160
|
+
entry.set_service
|
|
161
|
+
entry.message = "Created client for #{entry.service}"
|
|
162
|
+
entry.set_credentials_fields credentials
|
|
163
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
|
164
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
|
165
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
|
169
|
+
config.credentials = credentials
|
|
170
|
+
config.quota_project = @quota_project_id
|
|
171
|
+
config.endpoint = @license_config_service_stub.endpoint
|
|
172
|
+
config.universe_domain = @license_config_service_stub.universe_domain
|
|
173
|
+
config.logger = @license_config_service_stub.logger if config.respond_to? :logger=
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
##
|
|
178
|
+
# Get the associated client for mix-in of the Locations.
|
|
179
|
+
#
|
|
180
|
+
# @return [Google::Cloud::Location::Locations::Rest::Client]
|
|
181
|
+
#
|
|
182
|
+
attr_reader :location_client
|
|
183
|
+
|
|
184
|
+
##
|
|
185
|
+
# The logger used for request/response debug logging.
|
|
186
|
+
#
|
|
187
|
+
# @return [Logger]
|
|
188
|
+
#
|
|
189
|
+
def logger
|
|
190
|
+
@license_config_service_stub.logger
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Service calls
|
|
194
|
+
|
|
195
|
+
##
|
|
196
|
+
# Creates a
|
|
197
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig} This
|
|
198
|
+
# method should only be used for creating NotebookLm licenses or Gemini
|
|
199
|
+
# Enterprise free trial licenses.
|
|
200
|
+
#
|
|
201
|
+
# @overload create_license_config(request, options = nil)
|
|
202
|
+
# Pass arguments to `create_license_config` via a request object, either of type
|
|
203
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::CreateLicenseConfigRequest} or an equivalent Hash.
|
|
204
|
+
#
|
|
205
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1beta::CreateLicenseConfigRequest, ::Hash]
|
|
206
|
+
# A request object representing the call parameters. Required. To specify no
|
|
207
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
208
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
209
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
210
|
+
#
|
|
211
|
+
# @overload create_license_config(parent: nil, license_config: nil, license_config_id: nil)
|
|
212
|
+
# Pass arguments to `create_license_config` via keyword arguments. Note that at
|
|
213
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
214
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
215
|
+
#
|
|
216
|
+
# @param parent [::String]
|
|
217
|
+
# Required. The parent resource name, such as
|
|
218
|
+
# `projects/{project}/locations/{location}`.
|
|
219
|
+
# @param license_config [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig, ::Hash]
|
|
220
|
+
# Required. The
|
|
221
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig} to
|
|
222
|
+
# create.
|
|
223
|
+
# @param license_config_id [::String]
|
|
224
|
+
# Optional. The ID to use for the
|
|
225
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig}, which
|
|
226
|
+
# will become the final component of the
|
|
227
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig}'s
|
|
228
|
+
# resource name. We are using the tier (product edition) name as the license
|
|
229
|
+
# config id such as `search` or `search_and_assistant`.
|
|
230
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
231
|
+
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig]
|
|
232
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
233
|
+
#
|
|
234
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig]
|
|
235
|
+
#
|
|
236
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
237
|
+
#
|
|
238
|
+
# @example Basic example
|
|
239
|
+
# require "google/cloud/discovery_engine/v1beta"
|
|
240
|
+
#
|
|
241
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
242
|
+
# client = Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Rest::Client.new
|
|
243
|
+
#
|
|
244
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
245
|
+
# request = Google::Cloud::DiscoveryEngine::V1beta::CreateLicenseConfigRequest.new
|
|
246
|
+
#
|
|
247
|
+
# # Call the create_license_config method.
|
|
248
|
+
# result = client.create_license_config request
|
|
249
|
+
#
|
|
250
|
+
# # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig.
|
|
251
|
+
# p result
|
|
252
|
+
#
|
|
253
|
+
def create_license_config request, options = nil
|
|
254
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
255
|
+
|
|
256
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::CreateLicenseConfigRequest
|
|
257
|
+
|
|
258
|
+
# Converts hash and nil to an options object
|
|
259
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
260
|
+
|
|
261
|
+
# Customize the options with defaults
|
|
262
|
+
call_metadata = @config.rpcs.create_license_config.metadata.to_h
|
|
263
|
+
|
|
264
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
265
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
266
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
267
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
|
268
|
+
transports_version_send: [:rest]
|
|
269
|
+
|
|
270
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
271
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
272
|
+
|
|
273
|
+
options.apply_defaults timeout: @config.rpcs.create_license_config.timeout,
|
|
274
|
+
metadata: call_metadata,
|
|
275
|
+
retry_policy: @config.rpcs.create_license_config.retry_policy
|
|
276
|
+
|
|
277
|
+
options.apply_defaults timeout: @config.timeout,
|
|
278
|
+
metadata: @config.metadata,
|
|
279
|
+
retry_policy: @config.retry_policy
|
|
280
|
+
|
|
281
|
+
@license_config_service_stub.create_license_config request, options do |result, operation|
|
|
282
|
+
yield result, operation if block_given?
|
|
283
|
+
end
|
|
284
|
+
rescue ::Gapic::Rest::Error => e
|
|
285
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
##
|
|
289
|
+
# Updates the
|
|
290
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig}
|
|
291
|
+
#
|
|
292
|
+
# @overload update_license_config(request, options = nil)
|
|
293
|
+
# Pass arguments to `update_license_config` via a request object, either of type
|
|
294
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::UpdateLicenseConfigRequest} or an equivalent Hash.
|
|
295
|
+
#
|
|
296
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1beta::UpdateLicenseConfigRequest, ::Hash]
|
|
297
|
+
# A request object representing the call parameters. Required. To specify no
|
|
298
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
299
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
300
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
301
|
+
#
|
|
302
|
+
# @overload update_license_config(license_config: nil, update_mask: nil)
|
|
303
|
+
# Pass arguments to `update_license_config` via keyword arguments. Note that at
|
|
304
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
305
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
306
|
+
#
|
|
307
|
+
# @param license_config [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig, ::Hash]
|
|
308
|
+
# Required. The
|
|
309
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig} to
|
|
310
|
+
# update.
|
|
311
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
312
|
+
# Optional. Indicates which fields in the provided
|
|
313
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig} to
|
|
314
|
+
# update.
|
|
315
|
+
#
|
|
316
|
+
# If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
|
|
317
|
+
# is returned.
|
|
318
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
319
|
+
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig]
|
|
320
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
321
|
+
#
|
|
322
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig]
|
|
323
|
+
#
|
|
324
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
325
|
+
#
|
|
326
|
+
# @example Basic example
|
|
327
|
+
# require "google/cloud/discovery_engine/v1beta"
|
|
328
|
+
#
|
|
329
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
330
|
+
# client = Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Rest::Client.new
|
|
331
|
+
#
|
|
332
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
333
|
+
# request = Google::Cloud::DiscoveryEngine::V1beta::UpdateLicenseConfigRequest.new
|
|
334
|
+
#
|
|
335
|
+
# # Call the update_license_config method.
|
|
336
|
+
# result = client.update_license_config request
|
|
337
|
+
#
|
|
338
|
+
# # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig.
|
|
339
|
+
# p result
|
|
340
|
+
#
|
|
341
|
+
def update_license_config request, options = nil
|
|
342
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
343
|
+
|
|
344
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::UpdateLicenseConfigRequest
|
|
345
|
+
|
|
346
|
+
# Converts hash and nil to an options object
|
|
347
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
348
|
+
|
|
349
|
+
# Customize the options with defaults
|
|
350
|
+
call_metadata = @config.rpcs.update_license_config.metadata.to_h
|
|
351
|
+
|
|
352
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
353
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
354
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
355
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
|
356
|
+
transports_version_send: [:rest]
|
|
357
|
+
|
|
358
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
359
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
360
|
+
|
|
361
|
+
options.apply_defaults timeout: @config.rpcs.update_license_config.timeout,
|
|
362
|
+
metadata: call_metadata,
|
|
363
|
+
retry_policy: @config.rpcs.update_license_config.retry_policy
|
|
364
|
+
|
|
365
|
+
options.apply_defaults timeout: @config.timeout,
|
|
366
|
+
metadata: @config.metadata,
|
|
367
|
+
retry_policy: @config.retry_policy
|
|
368
|
+
|
|
369
|
+
@license_config_service_stub.update_license_config request, options do |result, operation|
|
|
370
|
+
yield result, operation if block_given?
|
|
371
|
+
end
|
|
372
|
+
rescue ::Gapic::Rest::Error => e
|
|
373
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
##
|
|
377
|
+
# Gets a {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig}.
|
|
378
|
+
#
|
|
379
|
+
# @overload get_license_config(request, options = nil)
|
|
380
|
+
# Pass arguments to `get_license_config` via a request object, either of type
|
|
381
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::GetLicenseConfigRequest} or an equivalent Hash.
|
|
382
|
+
#
|
|
383
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1beta::GetLicenseConfigRequest, ::Hash]
|
|
384
|
+
# A request object representing the call parameters. Required. To specify no
|
|
385
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
386
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
387
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
388
|
+
#
|
|
389
|
+
# @overload get_license_config(name: nil)
|
|
390
|
+
# Pass arguments to `get_license_config` via keyword arguments. Note that at
|
|
391
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
392
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
393
|
+
#
|
|
394
|
+
# @param name [::String]
|
|
395
|
+
# Required. Full resource name of
|
|
396
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig}, such as
|
|
397
|
+
# `projects/{project}/locations/{location}/licenseConfigs/*`.
|
|
398
|
+
#
|
|
399
|
+
# If the caller does not have permission to access the
|
|
400
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig},
|
|
401
|
+
# regardless of whether or not it exists, a PERMISSION_DENIED error is
|
|
402
|
+
# returned.
|
|
403
|
+
#
|
|
404
|
+
# If the requested
|
|
405
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig} does not
|
|
406
|
+
# exist, a NOT_FOUND error is returned.
|
|
407
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
408
|
+
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig]
|
|
409
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
410
|
+
#
|
|
411
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig]
|
|
412
|
+
#
|
|
413
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
414
|
+
#
|
|
415
|
+
# @example Basic example
|
|
416
|
+
# require "google/cloud/discovery_engine/v1beta"
|
|
417
|
+
#
|
|
418
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
419
|
+
# client = Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Rest::Client.new
|
|
420
|
+
#
|
|
421
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
422
|
+
# request = Google::Cloud::DiscoveryEngine::V1beta::GetLicenseConfigRequest.new
|
|
423
|
+
#
|
|
424
|
+
# # Call the get_license_config method.
|
|
425
|
+
# result = client.get_license_config request
|
|
426
|
+
#
|
|
427
|
+
# # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig.
|
|
428
|
+
# p result
|
|
429
|
+
#
|
|
430
|
+
def get_license_config request, options = nil
|
|
431
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
432
|
+
|
|
433
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::GetLicenseConfigRequest
|
|
434
|
+
|
|
435
|
+
# Converts hash and nil to an options object
|
|
436
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
437
|
+
|
|
438
|
+
# Customize the options with defaults
|
|
439
|
+
call_metadata = @config.rpcs.get_license_config.metadata.to_h
|
|
440
|
+
|
|
441
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
442
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
443
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
444
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
|
445
|
+
transports_version_send: [:rest]
|
|
446
|
+
|
|
447
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
448
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
449
|
+
|
|
450
|
+
options.apply_defaults timeout: @config.rpcs.get_license_config.timeout,
|
|
451
|
+
metadata: call_metadata,
|
|
452
|
+
retry_policy: @config.rpcs.get_license_config.retry_policy
|
|
453
|
+
|
|
454
|
+
options.apply_defaults timeout: @config.timeout,
|
|
455
|
+
metadata: @config.metadata,
|
|
456
|
+
retry_policy: @config.retry_policy
|
|
457
|
+
|
|
458
|
+
@license_config_service_stub.get_license_config request, options do |result, operation|
|
|
459
|
+
yield result, operation if block_given?
|
|
460
|
+
end
|
|
461
|
+
rescue ::Gapic::Rest::Error => e
|
|
462
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
##
|
|
466
|
+
# Lists all the
|
|
467
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig}s
|
|
468
|
+
# associated with the project.
|
|
469
|
+
#
|
|
470
|
+
# @overload list_license_configs(request, options = nil)
|
|
471
|
+
# Pass arguments to `list_license_configs` via a request object, either of type
|
|
472
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::ListLicenseConfigsRequest} or an equivalent Hash.
|
|
473
|
+
#
|
|
474
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1beta::ListLicenseConfigsRequest, ::Hash]
|
|
475
|
+
# A request object representing the call parameters. Required. To specify no
|
|
476
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
477
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
478
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
479
|
+
#
|
|
480
|
+
# @overload list_license_configs(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
|
481
|
+
# Pass arguments to `list_license_configs` via keyword arguments. Note that at
|
|
482
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
483
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
484
|
+
#
|
|
485
|
+
# @param parent [::String]
|
|
486
|
+
# Required. The parent branch resource name, such as
|
|
487
|
+
# `projects/{project}/locations/{location}`.
|
|
488
|
+
# @param page_size [::Integer]
|
|
489
|
+
# Optional. Not supported.
|
|
490
|
+
# @param page_token [::String]
|
|
491
|
+
# Optional. Not supported.
|
|
492
|
+
# @param filter [::String]
|
|
493
|
+
# Optional. The filter to apply to the list results.
|
|
494
|
+
#
|
|
495
|
+
# The supported fields are:
|
|
496
|
+
#
|
|
497
|
+
# * `subscription_tier`
|
|
498
|
+
# * `state`
|
|
499
|
+
#
|
|
500
|
+
# Examples:
|
|
501
|
+
#
|
|
502
|
+
# * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
|
|
503
|
+
# active search license configs.
|
|
504
|
+
# * `state=ACTIVE` - Lists all active license configs.
|
|
505
|
+
#
|
|
506
|
+
# The filter string should be a comma-separated list of field=value pairs.
|
|
507
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
508
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig>]
|
|
509
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
510
|
+
#
|
|
511
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig>]
|
|
512
|
+
#
|
|
513
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
514
|
+
#
|
|
515
|
+
# @example Basic example
|
|
516
|
+
# require "google/cloud/discovery_engine/v1beta"
|
|
517
|
+
#
|
|
518
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
519
|
+
# client = Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Rest::Client.new
|
|
520
|
+
#
|
|
521
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
522
|
+
# request = Google::Cloud::DiscoveryEngine::V1beta::ListLicenseConfigsRequest.new
|
|
523
|
+
#
|
|
524
|
+
# # Call the list_license_configs method.
|
|
525
|
+
# result = client.list_license_configs request
|
|
526
|
+
#
|
|
527
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
528
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
529
|
+
# result.each do |item|
|
|
530
|
+
# # Each element is of type ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig.
|
|
531
|
+
# p item
|
|
532
|
+
# end
|
|
533
|
+
#
|
|
534
|
+
def list_license_configs request, options = nil
|
|
535
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
536
|
+
|
|
537
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::ListLicenseConfigsRequest
|
|
538
|
+
|
|
539
|
+
# Converts hash and nil to an options object
|
|
540
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
541
|
+
|
|
542
|
+
# Customize the options with defaults
|
|
543
|
+
call_metadata = @config.rpcs.list_license_configs.metadata.to_h
|
|
544
|
+
|
|
545
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
546
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
547
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
548
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
|
549
|
+
transports_version_send: [:rest]
|
|
550
|
+
|
|
551
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
552
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
553
|
+
|
|
554
|
+
options.apply_defaults timeout: @config.rpcs.list_license_configs.timeout,
|
|
555
|
+
metadata: call_metadata,
|
|
556
|
+
retry_policy: @config.rpcs.list_license_configs.retry_policy
|
|
557
|
+
|
|
558
|
+
options.apply_defaults timeout: @config.timeout,
|
|
559
|
+
metadata: @config.metadata,
|
|
560
|
+
retry_policy: @config.retry_policy
|
|
561
|
+
|
|
562
|
+
@license_config_service_stub.list_license_configs request, options do |result, operation|
|
|
563
|
+
result = ::Gapic::Rest::PagedEnumerable.new @license_config_service_stub, :list_license_configs, "license_configs", request, result, options
|
|
564
|
+
yield result, operation if block_given?
|
|
565
|
+
throw :response, result
|
|
566
|
+
end
|
|
567
|
+
rescue ::Gapic::Rest::Error => e
|
|
568
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
##
|
|
572
|
+
# Distributes a
|
|
573
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig} from
|
|
574
|
+
# billing account level to project level.
|
|
575
|
+
#
|
|
576
|
+
# @overload distribute_license_config(request, options = nil)
|
|
577
|
+
# Pass arguments to `distribute_license_config` via a request object, either of type
|
|
578
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::DistributeLicenseConfigRequest} or an equivalent Hash.
|
|
579
|
+
#
|
|
580
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1beta::DistributeLicenseConfigRequest, ::Hash]
|
|
581
|
+
# A request object representing the call parameters. Required. To specify no
|
|
582
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
583
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
584
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
585
|
+
#
|
|
586
|
+
# @overload distribute_license_config(billing_account_license_config: nil, project_number: nil, location: nil, license_count: nil, license_config_id: nil)
|
|
587
|
+
# Pass arguments to `distribute_license_config` via keyword arguments. Note that at
|
|
588
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
589
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
590
|
+
#
|
|
591
|
+
# @param billing_account_license_config [::String]
|
|
592
|
+
# Required. Full resource name of [BillingAccountLicenseConfig][].
|
|
593
|
+
#
|
|
594
|
+
# Format:
|
|
595
|
+
# `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
|
|
596
|
+
# @param project_number [::Integer]
|
|
597
|
+
# Required. The target GCP project number to distribute the license config
|
|
598
|
+
# to.
|
|
599
|
+
# @param location [::String]
|
|
600
|
+
# Required. The target GCP project region to distribute the license config
|
|
601
|
+
# to.
|
|
602
|
+
# @param license_count [::Integer]
|
|
603
|
+
# Required. The number of licenses to distribute.
|
|
604
|
+
# @param license_config_id [::String]
|
|
605
|
+
# Optional. Distribute seats to this license config instead of creating a new
|
|
606
|
+
# one. If not specified, a new license config will be created from the
|
|
607
|
+
# billing account license config.
|
|
608
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
609
|
+
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1beta::DistributeLicenseConfigResponse]
|
|
610
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
611
|
+
#
|
|
612
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::DistributeLicenseConfigResponse]
|
|
613
|
+
#
|
|
614
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
615
|
+
#
|
|
616
|
+
# @example Basic example
|
|
617
|
+
# require "google/cloud/discovery_engine/v1beta"
|
|
618
|
+
#
|
|
619
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
620
|
+
# client = Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Rest::Client.new
|
|
621
|
+
#
|
|
622
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
623
|
+
# request = Google::Cloud::DiscoveryEngine::V1beta::DistributeLicenseConfigRequest.new
|
|
624
|
+
#
|
|
625
|
+
# # Call the distribute_license_config method.
|
|
626
|
+
# result = client.distribute_license_config request
|
|
627
|
+
#
|
|
628
|
+
# # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::DistributeLicenseConfigResponse.
|
|
629
|
+
# p result
|
|
630
|
+
#
|
|
631
|
+
def distribute_license_config request, options = nil
|
|
632
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
633
|
+
|
|
634
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::DistributeLicenseConfigRequest
|
|
635
|
+
|
|
636
|
+
# Converts hash and nil to an options object
|
|
637
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
638
|
+
|
|
639
|
+
# Customize the options with defaults
|
|
640
|
+
call_metadata = @config.rpcs.distribute_license_config.metadata.to_h
|
|
641
|
+
|
|
642
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
643
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
644
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
645
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
|
646
|
+
transports_version_send: [:rest]
|
|
647
|
+
|
|
648
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
649
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
650
|
+
|
|
651
|
+
options.apply_defaults timeout: @config.rpcs.distribute_license_config.timeout,
|
|
652
|
+
metadata: call_metadata,
|
|
653
|
+
retry_policy: @config.rpcs.distribute_license_config.retry_policy
|
|
654
|
+
|
|
655
|
+
options.apply_defaults timeout: @config.timeout,
|
|
656
|
+
metadata: @config.metadata,
|
|
657
|
+
retry_policy: @config.retry_policy
|
|
658
|
+
|
|
659
|
+
@license_config_service_stub.distribute_license_config request, options do |result, operation|
|
|
660
|
+
yield result, operation if block_given?
|
|
661
|
+
end
|
|
662
|
+
rescue ::Gapic::Rest::Error => e
|
|
663
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
664
|
+
end
|
|
665
|
+
|
|
666
|
+
##
|
|
667
|
+
# This method is called from the billing account side to retract the
|
|
668
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig} from the
|
|
669
|
+
# given project back to the billing account.
|
|
670
|
+
#
|
|
671
|
+
# @overload retract_license_config(request, options = nil)
|
|
672
|
+
# Pass arguments to `retract_license_config` via a request object, either of type
|
|
673
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::RetractLicenseConfigRequest} or an equivalent Hash.
|
|
674
|
+
#
|
|
675
|
+
# @param request [::Google::Cloud::DiscoveryEngine::V1beta::RetractLicenseConfigRequest, ::Hash]
|
|
676
|
+
# A request object representing the call parameters. Required. To specify no
|
|
677
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
678
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
679
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
680
|
+
#
|
|
681
|
+
# @overload retract_license_config(billing_account_license_config: nil, license_config: nil, full_retract: nil, license_count: nil)
|
|
682
|
+
# Pass arguments to `retract_license_config` via keyword arguments. Note that at
|
|
683
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
684
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
685
|
+
#
|
|
686
|
+
# @param billing_account_license_config [::String]
|
|
687
|
+
# Required. Full resource name of [BillingAccountLicenseConfig][].
|
|
688
|
+
#
|
|
689
|
+
# Format:
|
|
690
|
+
# `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
|
|
691
|
+
# @param license_config [::String]
|
|
692
|
+
# Required. Full resource name of
|
|
693
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig LicenseConfig}.
|
|
694
|
+
#
|
|
695
|
+
# Format:
|
|
696
|
+
# `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
|
|
697
|
+
# @param full_retract [::Boolean]
|
|
698
|
+
# Optional. If set to true, retract the entire license config. Otherwise,
|
|
699
|
+
# retract the specified license count.
|
|
700
|
+
# @param license_count [::Integer]
|
|
701
|
+
# Optional. The number of licenses to retract. Only used when full_retract is
|
|
702
|
+
# false.
|
|
703
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
704
|
+
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1beta::RetractLicenseConfigResponse]
|
|
705
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
706
|
+
#
|
|
707
|
+
# @return [::Google::Cloud::DiscoveryEngine::V1beta::RetractLicenseConfigResponse]
|
|
708
|
+
#
|
|
709
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
710
|
+
#
|
|
711
|
+
# @example Basic example
|
|
712
|
+
# require "google/cloud/discovery_engine/v1beta"
|
|
713
|
+
#
|
|
714
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
715
|
+
# client = Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Rest::Client.new
|
|
716
|
+
#
|
|
717
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
718
|
+
# request = Google::Cloud::DiscoveryEngine::V1beta::RetractLicenseConfigRequest.new
|
|
719
|
+
#
|
|
720
|
+
# # Call the retract_license_config method.
|
|
721
|
+
# result = client.retract_license_config request
|
|
722
|
+
#
|
|
723
|
+
# # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::RetractLicenseConfigResponse.
|
|
724
|
+
# p result
|
|
725
|
+
#
|
|
726
|
+
def retract_license_config request, options = nil
|
|
727
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
728
|
+
|
|
729
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DiscoveryEngine::V1beta::RetractLicenseConfigRequest
|
|
730
|
+
|
|
731
|
+
# Converts hash and nil to an options object
|
|
732
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
733
|
+
|
|
734
|
+
# Customize the options with defaults
|
|
735
|
+
call_metadata = @config.rpcs.retract_license_config.metadata.to_h
|
|
736
|
+
|
|
737
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
738
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
739
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
740
|
+
gapic_version: ::Google::Cloud::DiscoveryEngine::V1beta::VERSION,
|
|
741
|
+
transports_version_send: [:rest]
|
|
742
|
+
|
|
743
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
744
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
745
|
+
|
|
746
|
+
options.apply_defaults timeout: @config.rpcs.retract_license_config.timeout,
|
|
747
|
+
metadata: call_metadata,
|
|
748
|
+
retry_policy: @config.rpcs.retract_license_config.retry_policy
|
|
749
|
+
|
|
750
|
+
options.apply_defaults timeout: @config.timeout,
|
|
751
|
+
metadata: @config.metadata,
|
|
752
|
+
retry_policy: @config.retry_policy
|
|
753
|
+
|
|
754
|
+
@license_config_service_stub.retract_license_config request, options do |result, operation|
|
|
755
|
+
yield result, operation if block_given?
|
|
756
|
+
end
|
|
757
|
+
rescue ::Gapic::Rest::Error => e
|
|
758
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
759
|
+
end
|
|
760
|
+
|
|
761
|
+
##
|
|
762
|
+
# Configuration class for the LicenseConfigService REST API.
|
|
763
|
+
#
|
|
764
|
+
# This class represents the configuration for LicenseConfigService REST,
|
|
765
|
+
# providing control over timeouts, retry behavior, logging, transport
|
|
766
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
|
767
|
+
# applied individually to specific RPCs. See
|
|
768
|
+
# {::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Rest::Client::Configuration::Rpcs}
|
|
769
|
+
# for a list of RPCs that can be configured independently.
|
|
770
|
+
#
|
|
771
|
+
# Configuration can be applied globally to all clients, or to a single client
|
|
772
|
+
# on construction.
|
|
773
|
+
#
|
|
774
|
+
# @example
|
|
775
|
+
#
|
|
776
|
+
# # Modify the global config, setting the timeout for
|
|
777
|
+
# # create_license_config to 20 seconds,
|
|
778
|
+
# # and all remaining timeouts to 10 seconds.
|
|
779
|
+
# ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Rest::Client.configure do |config|
|
|
780
|
+
# config.timeout = 10.0
|
|
781
|
+
# config.rpcs.create_license_config.timeout = 20.0
|
|
782
|
+
# end
|
|
783
|
+
#
|
|
784
|
+
# # Apply the above configuration only to a new client.
|
|
785
|
+
# client = ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfigService::Rest::Client.new do |config|
|
|
786
|
+
# config.timeout = 10.0
|
|
787
|
+
# config.rpcs.create_license_config.timeout = 20.0
|
|
788
|
+
# end
|
|
789
|
+
#
|
|
790
|
+
# @!attribute [rw] endpoint
|
|
791
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
792
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
|
793
|
+
# @return [::String,nil]
|
|
794
|
+
# @!attribute [rw] credentials
|
|
795
|
+
# Credentials to send with calls. You may provide any of the following types:
|
|
796
|
+
# * (`String`) The path to a service account key file in JSON format
|
|
797
|
+
# * (`Hash`) A service account key as a Hash
|
|
798
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
799
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
800
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
801
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
802
|
+
# * (`nil`) indicating no credentials
|
|
803
|
+
#
|
|
804
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
805
|
+
# external source for authentication to Google Cloud, you must validate it before
|
|
806
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
|
807
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
|
808
|
+
# For more information, refer to [Validate credential configurations from external
|
|
809
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
|
810
|
+
# @return [::Object]
|
|
811
|
+
# @!attribute [rw] scope
|
|
812
|
+
# The OAuth scopes
|
|
813
|
+
# @return [::Array<::String>]
|
|
814
|
+
# @!attribute [rw] lib_name
|
|
815
|
+
# The library name as recorded in instrumentation and logging
|
|
816
|
+
# @return [::String]
|
|
817
|
+
# @!attribute [rw] lib_version
|
|
818
|
+
# The library version as recorded in instrumentation and logging
|
|
819
|
+
# @return [::String]
|
|
820
|
+
# @!attribute [rw] timeout
|
|
821
|
+
# The call timeout in seconds.
|
|
822
|
+
# @return [::Numeric]
|
|
823
|
+
# @!attribute [rw] metadata
|
|
824
|
+
# Additional headers to be sent with the call.
|
|
825
|
+
# @return [::Hash{::Symbol=>::String}]
|
|
826
|
+
# @!attribute [rw] retry_policy
|
|
827
|
+
# The retry policy. The value is a hash with the following keys:
|
|
828
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
829
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
830
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
831
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
832
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
833
|
+
# trigger a retry.
|
|
834
|
+
# @return [::Hash]
|
|
835
|
+
# @!attribute [rw] quota_project
|
|
836
|
+
# A separate project against which to charge quota.
|
|
837
|
+
# @return [::String]
|
|
838
|
+
# @!attribute [rw] universe_domain
|
|
839
|
+
# The universe domain within which to make requests. This determines the
|
|
840
|
+
# default endpoint URL. The default value of nil uses the environment
|
|
841
|
+
# universe (usually the default "googleapis.com" universe).
|
|
842
|
+
# @return [::String,nil]
|
|
843
|
+
# @!attribute [rw] logger
|
|
844
|
+
# A custom logger to use for request/response debug logging, or the value
|
|
845
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
|
846
|
+
# explicitly disable logging.
|
|
847
|
+
# @return [::Logger,:default,nil]
|
|
848
|
+
#
|
|
849
|
+
class Configuration
|
|
850
|
+
extend ::Gapic::Config
|
|
851
|
+
|
|
852
|
+
# @private
|
|
853
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
854
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
855
|
+
|
|
856
|
+
config_attr :endpoint, nil, ::String, nil
|
|
857
|
+
config_attr :credentials, nil do |value|
|
|
858
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
|
859
|
+
allowed.any? { |klass| klass === value }
|
|
860
|
+
end
|
|
861
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
862
|
+
config_attr :lib_name, nil, ::String, nil
|
|
863
|
+
config_attr :lib_version, nil, ::String, nil
|
|
864
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
865
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
866
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
867
|
+
config_attr :quota_project, nil, ::String, nil
|
|
868
|
+
config_attr :universe_domain, nil, ::String, nil
|
|
869
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
|
870
|
+
|
|
871
|
+
# @private
|
|
872
|
+
def initialize parent_config = nil
|
|
873
|
+
@parent_config = parent_config unless parent_config.nil?
|
|
874
|
+
|
|
875
|
+
yield self if block_given?
|
|
876
|
+
end
|
|
877
|
+
|
|
878
|
+
##
|
|
879
|
+
# Configurations for individual RPCs
|
|
880
|
+
# @return [Rpcs]
|
|
881
|
+
#
|
|
882
|
+
def rpcs
|
|
883
|
+
@rpcs ||= begin
|
|
884
|
+
parent_rpcs = nil
|
|
885
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
|
886
|
+
Rpcs.new parent_rpcs
|
|
887
|
+
end
|
|
888
|
+
end
|
|
889
|
+
|
|
890
|
+
##
|
|
891
|
+
# Configuration RPC class for the LicenseConfigService API.
|
|
892
|
+
#
|
|
893
|
+
# Includes fields providing the configuration for each RPC in this service.
|
|
894
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
|
895
|
+
# the following configuration fields:
|
|
896
|
+
#
|
|
897
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
|
898
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
|
899
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
|
900
|
+
# include the following keys:
|
|
901
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
902
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
903
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
904
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
905
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
906
|
+
# trigger a retry.
|
|
907
|
+
#
|
|
908
|
+
class Rpcs
|
|
909
|
+
##
|
|
910
|
+
# RPC-specific configuration for `create_license_config`
|
|
911
|
+
# @return [::Gapic::Config::Method]
|
|
912
|
+
#
|
|
913
|
+
attr_reader :create_license_config
|
|
914
|
+
##
|
|
915
|
+
# RPC-specific configuration for `update_license_config`
|
|
916
|
+
# @return [::Gapic::Config::Method]
|
|
917
|
+
#
|
|
918
|
+
attr_reader :update_license_config
|
|
919
|
+
##
|
|
920
|
+
# RPC-specific configuration for `get_license_config`
|
|
921
|
+
# @return [::Gapic::Config::Method]
|
|
922
|
+
#
|
|
923
|
+
attr_reader :get_license_config
|
|
924
|
+
##
|
|
925
|
+
# RPC-specific configuration for `list_license_configs`
|
|
926
|
+
# @return [::Gapic::Config::Method]
|
|
927
|
+
#
|
|
928
|
+
attr_reader :list_license_configs
|
|
929
|
+
##
|
|
930
|
+
# RPC-specific configuration for `distribute_license_config`
|
|
931
|
+
# @return [::Gapic::Config::Method]
|
|
932
|
+
#
|
|
933
|
+
attr_reader :distribute_license_config
|
|
934
|
+
##
|
|
935
|
+
# RPC-specific configuration for `retract_license_config`
|
|
936
|
+
# @return [::Gapic::Config::Method]
|
|
937
|
+
#
|
|
938
|
+
attr_reader :retract_license_config
|
|
939
|
+
|
|
940
|
+
# @private
|
|
941
|
+
def initialize parent_rpcs = nil
|
|
942
|
+
create_license_config_config = parent_rpcs.create_license_config if parent_rpcs.respond_to? :create_license_config
|
|
943
|
+
@create_license_config = ::Gapic::Config::Method.new create_license_config_config
|
|
944
|
+
update_license_config_config = parent_rpcs.update_license_config if parent_rpcs.respond_to? :update_license_config
|
|
945
|
+
@update_license_config = ::Gapic::Config::Method.new update_license_config_config
|
|
946
|
+
get_license_config_config = parent_rpcs.get_license_config if parent_rpcs.respond_to? :get_license_config
|
|
947
|
+
@get_license_config = ::Gapic::Config::Method.new get_license_config_config
|
|
948
|
+
list_license_configs_config = parent_rpcs.list_license_configs if parent_rpcs.respond_to? :list_license_configs
|
|
949
|
+
@list_license_configs = ::Gapic::Config::Method.new list_license_configs_config
|
|
950
|
+
distribute_license_config_config = parent_rpcs.distribute_license_config if parent_rpcs.respond_to? :distribute_license_config
|
|
951
|
+
@distribute_license_config = ::Gapic::Config::Method.new distribute_license_config_config
|
|
952
|
+
retract_license_config_config = parent_rpcs.retract_license_config if parent_rpcs.respond_to? :retract_license_config
|
|
953
|
+
@retract_license_config = ::Gapic::Config::Method.new retract_license_config_config
|
|
954
|
+
|
|
955
|
+
yield self if block_given?
|
|
956
|
+
end
|
|
957
|
+
end
|
|
958
|
+
end
|
|
959
|
+
end
|
|
960
|
+
end
|
|
961
|
+
end
|
|
962
|
+
end
|
|
963
|
+
end
|
|
964
|
+
end
|
|
965
|
+
end
|