google-cloud-discovery_engine-v1 2.2.0 → 2.3.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 +4 -4
- data/lib/google/cloud/discovery_engine/v1/cmek_config_service/client.rb +803 -0
- data/lib/google/cloud/discovery_engine/v1/cmek_config_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/cmek_config_service/operations.rb +813 -0
- data/lib/google/cloud/discovery_engine/v1/cmek_config_service/paths.rb +135 -0
- data/lib/google/cloud/discovery_engine/v1/cmek_config_service/rest/client.rb +749 -0
- data/lib/google/cloud/discovery_engine/v1/cmek_config_service/rest/operations.rb +1148 -0
- data/lib/google/cloud/discovery_engine/v1/cmek_config_service/rest/service_stub.rb +341 -0
- data/lib/google/cloud/discovery_engine/v1/cmek_config_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1/cmek_config_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/paths.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +11 -1
- data/lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb +104 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +11 -1
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/client.rb +1160 -0
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/operations.rb +813 -0
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/paths.rb +154 -0
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/rest/client.rb +1085 -0
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/rest/operations.rb +1148 -0
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/rest/service_stub.rb +511 -0
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1/identity_mapping_store_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/operations.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/rest.rb +4 -1
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/search_tuning_service/rest/operations.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +8 -0
- data/lib/google/cloud/discovery_engine/v1/user_license_service/client.rb +630 -0
- data/lib/google/cloud/discovery_engine/v1/user_license_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/user_license_service/operations.rb +813 -0
- data/lib/google/cloud/discovery_engine/v1/user_license_service/paths.rb +71 -0
- data/lib/google/cloud/discovery_engine/v1/user_license_service/rest/client.rb +590 -0
- data/lib/google/cloud/discovery_engine/v1/user_license_service/rest/operations.rb +1148 -0
- data/lib/google/cloud/discovery_engine/v1/user_license_service/rest/service_stub.rb +204 -0
- data/lib/google/cloud/discovery_engine/v1/user_license_service/rest.rb +53 -0
- data/lib/google/cloud/discovery_engine/v1/user_license_service.rb +56 -0
- data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1.rb +5 -2
- data/lib/google/cloud/discoveryengine/v1/answer_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/chunk_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1/cmek_config_service_pb.rb +61 -0
- data/lib/google/cloud/discoveryengine/v1/cmek_config_service_services_pb.rb +55 -0
- data/lib/google/cloud/discoveryengine/v1/common_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1/data_store_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/document_pb.rb +5 -1
- data/lib/google/cloud/discoveryengine/v1/document_processing_config_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +7 -1
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/grounding_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/identity_mapping_store_pb.rb +48 -0
- data/lib/google/cloud/discoveryengine/v1/identity_mapping_store_service_pb.rb +68 -0
- data/lib/google/cloud/discoveryengine/v1/identity_mapping_store_service_services_pb.rb +58 -0
- data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_license_pb.rb +48 -0
- data/lib/google/cloud/discoveryengine/v1/user_license_service_pb.rb +61 -0
- data/lib/google/cloud/discoveryengine/v1/user_license_service_services_pb.rb +48 -0
- data/proto_docs/google/cloud/discoveryengine/v1/answer.rb +17 -0
- data/proto_docs/google/cloud/discoveryengine/v1/chunk.rb +54 -0
- data/proto_docs/google/cloud/discoveryengine/v1/cmek_config_service.rb +222 -0
- data/proto_docs/google/cloud/discoveryengine/v1/common.rb +55 -0
- data/proto_docs/google/cloud/discoveryengine/v1/control.rb +1 -3
- data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +43 -1
- data/proto_docs/google/cloud/discoveryengine/v1/data_store_service.rb +12 -0
- data/proto_docs/google/cloud/discoveryengine/v1/document.rb +99 -4
- data/proto_docs/google/cloud/discoveryengine/v1/document_processing_config.rb +23 -0
- data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +141 -5
- data/proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb +8 -0
- data/proto_docs/google/cloud/discoveryengine/v1/grounding.rb +9 -0
- data/proto_docs/google/cloud/discoveryengine/v1/identity_mapping_store.rb +81 -0
- data/proto_docs/google/cloud/discoveryengine/v1/identity_mapping_store_service.rb +279 -0
- data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +6 -0
- data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine.rb +6 -0
- data/proto_docs/google/cloud/discoveryengine/v1/user_license.rb +85 -0
- data/proto_docs/google/cloud/discoveryengine/v1/user_license_service.rb +153 -0
- metadata +42 -2
@@ -0,0 +1,154 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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 IdentityMappingStoreService
|
25
|
+
# Path helper methods for the IdentityMappingStoreService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified CmekConfig resource string.
|
29
|
+
#
|
30
|
+
# @overload cmek_config_path(project:, location:)
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/cmekConfig`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
#
|
38
|
+
# @overload cmek_config_path(project:, location:, cmek_config:)
|
39
|
+
# The resource will be in the following format:
|
40
|
+
#
|
41
|
+
# `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`
|
42
|
+
#
|
43
|
+
# @param project [String]
|
44
|
+
# @param location [String]
|
45
|
+
# @param cmek_config [String]
|
46
|
+
#
|
47
|
+
# @return [::String]
|
48
|
+
def cmek_config_path **args
|
49
|
+
resources = {
|
50
|
+
"location:project" => (proc do |project:, location:|
|
51
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
52
|
+
|
53
|
+
"projects/#{project}/locations/#{location}/cmekConfig"
|
54
|
+
end),
|
55
|
+
"cmek_config:location:project" => (proc do |project:, location:, cmek_config:|
|
56
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
57
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
58
|
+
|
59
|
+
"projects/#{project}/locations/#{location}/cmekConfigs/#{cmek_config}"
|
60
|
+
end)
|
61
|
+
}
|
62
|
+
|
63
|
+
resource = resources[args.keys.sort.join(":")]
|
64
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
65
|
+
resource.call(**args)
|
66
|
+
end
|
67
|
+
|
68
|
+
##
|
69
|
+
# Create a fully-qualified CryptoKeyVersions resource string.
|
70
|
+
#
|
71
|
+
# The resource will be in the following format:
|
72
|
+
#
|
73
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
|
74
|
+
#
|
75
|
+
# @param project [String]
|
76
|
+
# @param location [String]
|
77
|
+
# @param key_ring [String]
|
78
|
+
# @param crypto_key [String]
|
79
|
+
# @param crypto_key_version [String]
|
80
|
+
#
|
81
|
+
# @return [::String]
|
82
|
+
def crypto_key_versions_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
|
83
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
84
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
85
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
86
|
+
raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
|
87
|
+
|
88
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
|
89
|
+
end
|
90
|
+
|
91
|
+
##
|
92
|
+
# Create a fully-qualified CryptoKeys resource string.
|
93
|
+
#
|
94
|
+
# The resource will be in the following format:
|
95
|
+
#
|
96
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
97
|
+
#
|
98
|
+
# @param project [String]
|
99
|
+
# @param location [String]
|
100
|
+
# @param key_ring [String]
|
101
|
+
# @param crypto_key [String]
|
102
|
+
#
|
103
|
+
# @return [::String]
|
104
|
+
def crypto_keys_path project:, location:, key_ring:, crypto_key:
|
105
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
106
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
107
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
108
|
+
|
109
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
110
|
+
end
|
111
|
+
|
112
|
+
##
|
113
|
+
# Create a fully-qualified IdentityMappingStore resource string.
|
114
|
+
#
|
115
|
+
# The resource will be in the following format:
|
116
|
+
#
|
117
|
+
# `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`
|
118
|
+
#
|
119
|
+
# @param project [String]
|
120
|
+
# @param location [String]
|
121
|
+
# @param identity_mapping_store [String]
|
122
|
+
#
|
123
|
+
# @return [::String]
|
124
|
+
def identity_mapping_store_path project:, location:, identity_mapping_store:
|
125
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
126
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
127
|
+
|
128
|
+
"projects/#{project}/locations/#{location}/identityMappingStores/#{identity_mapping_store}"
|
129
|
+
end
|
130
|
+
|
131
|
+
##
|
132
|
+
# Create a fully-qualified Location resource string.
|
133
|
+
#
|
134
|
+
# The resource will be in the following format:
|
135
|
+
#
|
136
|
+
# `projects/{project}/locations/{location}`
|
137
|
+
#
|
138
|
+
# @param project [String]
|
139
|
+
# @param location [String]
|
140
|
+
#
|
141
|
+
# @return [::String]
|
142
|
+
def location_path project:, location:
|
143
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
144
|
+
|
145
|
+
"projects/#{project}/locations/#{location}"
|
146
|
+
end
|
147
|
+
|
148
|
+
extend self
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|