google-cloud-discovery_engine-v1 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +235 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/operations.rb +801 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +221 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +1091 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/service_stub.rb +136 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest.rb +1 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service.rb +1 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +91 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +20 -3
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb +45 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +924 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/operations.rb +801 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb +97 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +863 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +1091 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/service_stub.rb +403 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/client.rb +885 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/operations.rb +801 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/paths.rb +73 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/client.rb +824 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +1091 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/service_stub.rb +366 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1/rest.rb +3 -0
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +40 -4
- data/lib/google/cloud/discovery_engine/v1/search_service/paths.rb +19 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +40 -4
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/service_stub.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/client.rb +1631 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/operations.rb +801 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/paths.rb +127 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/client.rb +1521 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +1091 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/service_stub.rb +860 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +14 -0
- data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1.rb +3 -0
- data/lib/google/cloud/discoveryengine/v1/common_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1/completion_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1/completion_service_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1/completion_service_services_pb.rb +8 -0
- data/lib/google/cloud/discoveryengine/v1/conversation_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1/data_store_service_pb.rb +62 -0
- data/lib/google/cloud/discoveryengine/v1/data_store_service_services_pb.rb +61 -0
- data/lib/google/cloud/discoveryengine/v1/document_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/document_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +53 -0
- data/lib/google/cloud/discoveryengine/v1/engine_service_pb.rb +62 -0
- data/lib/google/cloud/discoveryengine/v1/engine_service_services_pb.rb +55 -0
- data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1/purge_config_pb.rb +6 -1
- data/lib/google/cloud/discoveryengine/v1/schema_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/schema_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +8 -1
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_pb.rb +54 -0
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_pb.rb +82 -0
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_service_services_pb.rb +73 -0
- data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_pb.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1/common.rb +51 -0
- data/proto_docs/google/cloud/discoveryengine/v1/completion.rb +53 -0
- data/proto_docs/google/cloud/discoveryengine/v1/completion_service.rb +10 -4
- data/proto_docs/google/cloud/discoveryengine/v1/conversation.rb +2 -0
- data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +19 -1
- data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +88 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store_service.rb +214 -0
- data/proto_docs/google/cloud/discoveryengine/v1/document.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +214 -0
- data/proto_docs/google/cloud/discoveryengine/v1/engine_service.rb +177 -0
- data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +66 -0
- data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +41 -0
- data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +149 -4
- data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine.rb +160 -0
- data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine_service.rb +525 -0
- data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +3 -3
- metadata +48 -2
@@ -0,0 +1,127 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module DiscoveryEngine
|
23
|
+
module V1
|
24
|
+
module SiteSearchEngineService
|
25
|
+
# Path helper methods for the SiteSearchEngineService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified SiteSearchEngine resource string.
|
29
|
+
#
|
30
|
+
# @overload site_search_engine_path(project:, location:, data_store:)
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param data_store [String]
|
38
|
+
#
|
39
|
+
# @overload site_search_engine_path(project:, location:, collection:, data_store:)
|
40
|
+
# The resource will be in the following format:
|
41
|
+
#
|
42
|
+
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`
|
43
|
+
#
|
44
|
+
# @param project [String]
|
45
|
+
# @param location [String]
|
46
|
+
# @param collection [String]
|
47
|
+
# @param data_store [String]
|
48
|
+
#
|
49
|
+
# @return [::String]
|
50
|
+
def site_search_engine_path **args
|
51
|
+
resources = {
|
52
|
+
"data_store:location:project" => (proc do |project:, location:, data_store:|
|
53
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
54
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
55
|
+
|
56
|
+
"projects/#{project}/locations/#{location}/dataStores/#{data_store}/siteSearchEngine"
|
57
|
+
end),
|
58
|
+
"collection:data_store:location:project" => (proc do |project:, location:, collection:, data_store:|
|
59
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
60
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
61
|
+
raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
|
62
|
+
|
63
|
+
"projects/#{project}/locations/#{location}/collections/#{collection}/dataStores/#{data_store}/siteSearchEngine"
|
64
|
+
end)
|
65
|
+
}
|
66
|
+
|
67
|
+
resource = resources[args.keys.sort.join(":")]
|
68
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
69
|
+
resource.call(**args)
|
70
|
+
end
|
71
|
+
|
72
|
+
##
|
73
|
+
# Create a fully-qualified TargetSite resource string.
|
74
|
+
#
|
75
|
+
# @overload target_site_path(project:, location:, data_store:, target_site:)
|
76
|
+
# The resource will be in the following format:
|
77
|
+
#
|
78
|
+
# `projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`
|
79
|
+
#
|
80
|
+
# @param project [String]
|
81
|
+
# @param location [String]
|
82
|
+
# @param data_store [String]
|
83
|
+
# @param target_site [String]
|
84
|
+
#
|
85
|
+
# @overload target_site_path(project:, location:, collection:, data_store:, target_site:)
|
86
|
+
# The resource will be in the following format:
|
87
|
+
#
|
88
|
+
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`
|
89
|
+
#
|
90
|
+
# @param project [String]
|
91
|
+
# @param location [String]
|
92
|
+
# @param collection [String]
|
93
|
+
# @param data_store [String]
|
94
|
+
# @param target_site [String]
|
95
|
+
#
|
96
|
+
# @return [::String]
|
97
|
+
def target_site_path **args
|
98
|
+
resources = {
|
99
|
+
"data_store:location:project:target_site" => (proc do |project:, location:, data_store:, target_site:|
|
100
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
101
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
102
|
+
raise ::ArgumentError, "data_store cannot contain /" if data_store.to_s.include? "/"
|
103
|
+
|
104
|
+
"projects/#{project}/locations/#{location}/dataStores/#{data_store}/siteSearchEngine/targetSites/#{target_site}"
|
105
|
+
end),
|
106
|
+
"collection:data_store:location:project:target_site" => (proc do |project:, location:, collection:, data_store:, target_site:|
|
107
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
108
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
109
|
+
raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
|
110
|
+
raise ::ArgumentError, "data_store cannot contain /" if data_store.to_s.include? "/"
|
111
|
+
|
112
|
+
"projects/#{project}/locations/#{location}/collections/#{collection}/dataStores/#{data_store}/siteSearchEngine/targetSites/#{target_site}"
|
113
|
+
end)
|
114
|
+
}
|
115
|
+
|
116
|
+
resource = resources[args.keys.sort.join(":")]
|
117
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
118
|
+
resource.call(**args)
|
119
|
+
end
|
120
|
+
|
121
|
+
extend self
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|