google-cloud-ces-v1beta 0.a → 0.2.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.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/cloud/ces/v1beta/agent_card_pb.rb +26 -0
  6. data/lib/google/cloud/ces/v1beta/agent_pb.rb +30 -0
  7. data/lib/google/cloud/ces/v1beta/agent_service/client.rb +5641 -0
  8. data/lib/google/cloud/ces/v1beta/agent_service/credentials.rb +48 -0
  9. data/lib/google/cloud/ces/v1beta/agent_service/operations.rb +843 -0
  10. data/lib/google/cloud/ces/v1beta/agent_service/paths.rb +481 -0
  11. data/lib/google/cloud/ces/v1beta/agent_service/rest/client.rb +5249 -0
  12. data/lib/google/cloud/ces/v1beta/agent_service/rest/operations.rb +927 -0
  13. data/lib/google/cloud/ces/v1beta/agent_service/rest/service_stub.rb +3213 -0
  14. data/lib/google/cloud/ces/v1beta/agent_service/rest.rb +55 -0
  15. data/lib/google/cloud/ces/v1beta/agent_service.rb +57 -0
  16. data/lib/google/cloud/ces/v1beta/agent_service_pb.rb +132 -0
  17. data/lib/google/cloud/ces/v1beta/agent_service_services_pb.rb +148 -0
  18. data/lib/google/cloud/ces/v1beta/agent_tool_pb.rb +24 -0
  19. data/lib/google/cloud/ces/v1beta/agent_transfers_pb.rb +29 -0
  20. data/lib/google/cloud/ces/v1beta/app_pb.rb +70 -0
  21. data/lib/google/cloud/ces/v1beta/app_version_pb.rb +32 -0
  22. data/lib/google/cloud/ces/v1beta/auth_pb.rb +34 -0
  23. data/lib/google/cloud/ces/v1beta/bigquery_export_pb.rb +23 -0
  24. data/lib/google/cloud/ces/v1beta/bindings_override.rb +75 -0
  25. data/lib/google/cloud/ces/v1beta/changelog_pb.rb +26 -0
  26. data/lib/google/cloud/ces/v1beta/client_function_pb.rb +24 -0
  27. data/lib/google/cloud/ces/v1beta/common_pb.rb +46 -0
  28. data/lib/google/cloud/ces/v1beta/connector_tool_pb.rb +27 -0
  29. data/lib/google/cloud/ces/v1beta/connector_toolset_pb.rb +25 -0
  30. data/lib/google/cloud/ces/v1beta/conversation_pb.rb +31 -0
  31. data/lib/google/cloud/ces/v1beta/data_store_pb.rb +27 -0
  32. data/lib/google/cloud/ces/v1beta/data_store_tool_pb.rb +40 -0
  33. data/lib/google/cloud/ces/v1beta/deployment_pb.rb +30 -0
  34. data/lib/google/cloud/ces/v1beta/evaluation_metrics_config_pb.rb +31 -0
  35. data/lib/google/cloud/ces/v1beta/evaluation_pb.rb +99 -0
  36. data/lib/google/cloud/ces/v1beta/evaluation_service/client.rb +4050 -0
  37. data/lib/google/cloud/ces/v1beta/evaluation_service/credentials.rb +48 -0
  38. data/lib/google/cloud/ces/v1beta/evaluation_service/operations.rb +843 -0
  39. data/lib/google/cloud/ces/v1beta/evaluation_service/paths.rb +306 -0
  40. data/lib/google/cloud/ces/v1beta/evaluation_service/rest/client.rb +3770 -0
  41. data/lib/google/cloud/ces/v1beta/evaluation_service/rest/operations.rb +927 -0
  42. data/lib/google/cloud/ces/v1beta/evaluation_service/rest/service_stub.rb +2233 -0
  43. data/lib/google/cloud/ces/v1beta/evaluation_service/rest.rb +54 -0
  44. data/lib/google/cloud/ces/v1beta/evaluation_service.rb +56 -0
  45. data/lib/google/cloud/ces/v1beta/evaluation_service_pb.rb +93 -0
  46. data/lib/google/cloud/ces/v1beta/evaluation_service_services_pb.rb +116 -0
  47. data/lib/google/cloud/ces/v1beta/example_pb.rb +34 -0
  48. data/lib/google/cloud/ces/v1beta/fakes_pb.rb +25 -0
  49. data/lib/google/cloud/ces/v1beta/file_context_pb.rb +24 -0
  50. data/lib/google/cloud/ces/v1beta/file_search_tool_pb.rb +24 -0
  51. data/lib/google/cloud/ces/v1beta/golden_run_pb.rb +21 -0
  52. data/lib/google/cloud/ces/v1beta/google_search_tool_pb.rb +24 -0
  53. data/lib/google/cloud/ces/v1beta/guardrail_pb.rb +37 -0
  54. data/lib/google/cloud/ces/v1beta/mcp_tool_pb.rb +27 -0
  55. data/lib/google/cloud/ces/v1beta/mcp_toolset_pb.rb +28 -0
  56. data/lib/google/cloud/ces/v1beta/mocks_pb.rb +26 -0
  57. data/lib/google/cloud/ces/v1beta/omnichannel_pb.rb +31 -0
  58. data/lib/google/cloud/ces/v1beta/omnichannel_service_pb.rb +27 -0
  59. data/lib/google/cloud/ces/v1beta/open_api_tool_pb.rb +25 -0
  60. data/lib/google/cloud/ces/v1beta/open_api_toolset_pb.rb +25 -0
  61. data/lib/google/cloud/ces/v1beta/python_function_pb.rb +24 -0
  62. data/lib/google/cloud/ces/v1beta/rest.rb +42 -0
  63. data/lib/google/cloud/ces/v1beta/schema_pb.rb +25 -0
  64. data/lib/google/cloud/ces/v1beta/search_suggestions_pb.rb +22 -0
  65. data/lib/google/cloud/ces/v1beta/security_settings_pb.rb +27 -0
  66. data/lib/google/cloud/ces/v1beta/session_service/client.rb +762 -0
  67. data/lib/google/cloud/ces/v1beta/session_service/credentials.rb +48 -0
  68. data/lib/google/cloud/ces/v1beta/session_service/paths.rb +117 -0
  69. data/lib/google/cloud/ces/v1beta/session_service/rest/client.rb +562 -0
  70. data/lib/google/cloud/ces/v1beta/session_service/rest/service_stub.rb +199 -0
  71. data/lib/google/cloud/ces/v1beta/session_service/rest.rb +53 -0
  72. data/lib/google/cloud/ces/v1beta/session_service.rb +55 -0
  73. data/lib/google/cloud/ces/v1beta/session_service_pb.rb +54 -0
  74. data/lib/google/cloud/ces/v1beta/session_service_services_pb.rb +120 -0
  75. data/lib/google/cloud/ces/v1beta/system_tool_pb.rb +23 -0
  76. data/lib/google/cloud/ces/v1beta/tool_pb.rb +40 -0
  77. data/lib/google/cloud/ces/v1beta/tool_service/client.rb +733 -0
  78. data/lib/google/cloud/ces/v1beta/tool_service/credentials.rb +48 -0
  79. data/lib/google/cloud/ces/v1beta/tool_service/paths.rb +94 -0
  80. data/lib/google/cloud/ces/v1beta/tool_service/rest/client.rb +677 -0
  81. data/lib/google/cloud/ces/v1beta/tool_service/rest/service_stub.rb +267 -0
  82. data/lib/google/cloud/ces/v1beta/tool_service/rest.rb +53 -0
  83. data/lib/google/cloud/ces/v1beta/tool_service.rb +55 -0
  84. data/lib/google/cloud/ces/v1beta/tool_service_pb.rb +37 -0
  85. data/lib/google/cloud/ces/v1beta/tool_service_services_pb.rb +50 -0
  86. data/lib/google/cloud/ces/v1beta/toolset_pb.rb +30 -0
  87. data/lib/google/cloud/ces/v1beta/toolset_tool_pb.rb +24 -0
  88. data/lib/google/cloud/ces/v1beta/version.rb +7 -2
  89. data/lib/google/cloud/ces/v1beta/widget_service/client.rb +503 -0
  90. data/lib/google/cloud/ces/v1beta/widget_service/credentials.rb +48 -0
  91. data/lib/google/cloud/ces/v1beta/widget_service/paths.rb +75 -0
  92. data/lib/google/cloud/ces/v1beta/widget_service/rest/client.rb +461 -0
  93. data/lib/google/cloud/ces/v1beta/widget_service/rest/service_stub.rb +143 -0
  94. data/lib/google/cloud/ces/v1beta/widget_service/rest.rb +53 -0
  95. data/lib/google/cloud/ces/v1beta/widget_service.rb +55 -0
  96. data/lib/google/cloud/ces/v1beta/widget_service_pb.rb +28 -0
  97. data/lib/google/cloud/ces/v1beta/widget_service_services_pb.rb +46 -0
  98. data/lib/google/cloud/ces/v1beta/widget_tool_pb.rb +31 -0
  99. data/lib/google/cloud/ces/v1beta.rb +49 -0
  100. data/lib/google-cloud-ces-v1beta.rb +21 -0
  101. data/proto_docs/README.md +4 -0
  102. data/proto_docs/google/api/client.rb +593 -0
  103. data/proto_docs/google/api/field_behavior.rb +85 -0
  104. data/proto_docs/google/api/launch_stage.rb +71 -0
  105. data/proto_docs/google/api/resource.rb +227 -0
  106. data/proto_docs/google/cloud/ces/v1beta/agent.rb +233 -0
  107. data/proto_docs/google/cloud/ces/v1beta/agent_card.rb +122 -0
  108. data/proto_docs/google/cloud/ces/v1beta/agent_service.rb +1682 -0
  109. data/proto_docs/google/cloud/ces/v1beta/agent_tool.rb +48 -0
  110. data/proto_docs/google/cloud/ces/v1beta/agent_transfers.rb +111 -0
  111. data/proto_docs/google/cloud/ces/v1beta/app.rb +883 -0
  112. data/proto_docs/google/cloud/ces/v1beta/app_version.rb +83 -0
  113. data/proto_docs/google/cloud/ces/v1beta/auth.rb +214 -0
  114. data/proto_docs/google/cloud/ces/v1beta/bigquery_export.rb +45 -0
  115. data/proto_docs/google/cloud/ces/v1beta/changelog.rb +73 -0
  116. data/proto_docs/google/cloud/ces/v1beta/client_function.rb +48 -0
  117. data/proto_docs/google/cloud/ces/v1beta/common.rb +375 -0
  118. data/proto_docs/google/cloud/ces/v1beta/connector_tool.rb +122 -0
  119. data/proto_docs/google/cloud/ces/v1beta/connector_toolset.rb +52 -0
  120. data/proto_docs/google/cloud/ces/v1beta/conversation.rb +159 -0
  121. data/proto_docs/google/cloud/ces/v1beta/data_store.rb +102 -0
  122. data/proto_docs/google/cloud/ces/v1beta/data_store_tool.rb +328 -0
  123. data/proto_docs/google/cloud/ces/v1beta/deployment.rb +123 -0
  124. data/proto_docs/google/cloud/ces/v1beta/evaluation.rb +1687 -0
  125. data/proto_docs/google/cloud/ces/v1beta/evaluation_metrics_config.rb +151 -0
  126. data/proto_docs/google/cloud/ces/v1beta/evaluation_service.rb +1087 -0
  127. data/proto_docs/google/cloud/ces/v1beta/example.rb +245 -0
  128. data/proto_docs/google/cloud/ces/v1beta/fakes.rb +67 -0
  129. data/proto_docs/google/cloud/ces/v1beta/file_context.rb +50 -0
  130. data/proto_docs/google/cloud/ces/v1beta/file_search_tool.rb +60 -0
  131. data/proto_docs/google/cloud/ces/v1beta/golden_run.rb +40 -0
  132. data/proto_docs/google/cloud/ces/v1beta/google_search_tool.rb +76 -0
  133. data/proto_docs/google/cloud/ces/v1beta/guardrail.rb +324 -0
  134. data/proto_docs/google/cloud/ces/v1beta/mcp_tool.rb +110 -0
  135. data/proto_docs/google/cloud/ces/v1beta/mcp_toolset.rb +118 -0
  136. data/proto_docs/google/cloud/ces/v1beta/mocks.rb +60 -0
  137. data/proto_docs/google/cloud/ces/v1beta/omnichannel.rb +163 -0
  138. data/proto_docs/google/cloud/ces/v1beta/omnichannel_service.rb +45 -0
  139. data/proto_docs/google/cloud/ces/v1beta/open_api_tool.rb +66 -0
  140. data/proto_docs/google/cloud/ces/v1beta/open_api_toolset.rb +57 -0
  141. data/proto_docs/google/cloud/ces/v1beta/python_function.rb +47 -0
  142. data/proto_docs/google/cloud/ces/v1beta/schema.rb +162 -0
  143. data/proto_docs/google/cloud/ces/v1beta/search_suggestions.rb +55 -0
  144. data/proto_docs/google/cloud/ces/v1beta/security_settings.rb +80 -0
  145. data/proto_docs/google/cloud/ces/v1beta/session_service.rb +493 -0
  146. data/proto_docs/google/cloud/ces/v1beta/system_tool.rb +38 -0
  147. data/proto_docs/google/cloud/ces/v1beta/tool.rb +136 -0
  148. data/proto_docs/google/cloud/ces/v1beta/tool_service.rb +185 -0
  149. data/proto_docs/google/cloud/ces/v1beta/toolset.rb +80 -0
  150. data/proto_docs/google/cloud/ces/v1beta/toolset_tool.rb +40 -0
  151. data/proto_docs/google/cloud/ces/v1beta/widget_service.rb +62 -0
  152. data/proto_docs/google/cloud/ces/v1beta/widget_tool.rb +182 -0
  153. data/proto_docs/google/longrunning/operations.rb +191 -0
  154. data/proto_docs/google/protobuf/any.rb +145 -0
  155. data/proto_docs/google/protobuf/duration.rb +98 -0
  156. data/proto_docs/google/protobuf/empty.rb +34 -0
  157. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  158. data/proto_docs/google/protobuf/struct.rb +108 -0
  159. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  160. data/proto_docs/google/rpc/status.rb +48 -0
  161. metadata +208 -9
@@ -0,0 +1,481 @@
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
+
20
+ module Google
21
+ module Cloud
22
+ module Ces
23
+ module V1beta
24
+ module AgentService
25
+ # Path helper methods for the AgentService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Agent resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param app [String]
37
+ # @param agent [String]
38
+ #
39
+ # @return [::String]
40
+ def agent_path project:, location:, app:, agent:
41
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
42
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
43
+ raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
44
+
45
+ "projects/#{project}/locations/#{location}/apps/#{app}/agents/#{agent}"
46
+ end
47
+
48
+ ##
49
+ # Create a fully-qualified App resource string.
50
+ #
51
+ # The resource will be in the following format:
52
+ #
53
+ # `projects/{project}/locations/{location}/apps/{app}`
54
+ #
55
+ # @param project [String]
56
+ # @param location [String]
57
+ # @param app [String]
58
+ #
59
+ # @return [::String]
60
+ def app_path project:, location:, app:
61
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
62
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
63
+
64
+ "projects/#{project}/locations/#{location}/apps/#{app}"
65
+ end
66
+
67
+ ##
68
+ # Create a fully-qualified AppVersion resource string.
69
+ #
70
+ # The resource will be in the following format:
71
+ #
72
+ # `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
73
+ #
74
+ # @param project [String]
75
+ # @param location [String]
76
+ # @param app [String]
77
+ # @param version [String]
78
+ #
79
+ # @return [::String]
80
+ def app_version_path project:, location:, app:, version:
81
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
82
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
83
+ raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
84
+
85
+ "projects/#{project}/locations/#{location}/apps/#{app}/versions/#{version}"
86
+ end
87
+
88
+ ##
89
+ # Create a fully-qualified Changelog resource string.
90
+ #
91
+ # The resource will be in the following format:
92
+ #
93
+ # `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}`
94
+ #
95
+ # @param project [String]
96
+ # @param location [String]
97
+ # @param app [String]
98
+ # @param changelog [String]
99
+ #
100
+ # @return [::String]
101
+ def changelog_path project:, location:, app:, changelog:
102
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
103
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
104
+ raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
105
+
106
+ "projects/#{project}/locations/#{location}/apps/#{app}/changelogs/#{changelog}"
107
+ end
108
+
109
+ ##
110
+ # Create a fully-qualified Conversation resource string.
111
+ #
112
+ # The resource will be in the following format:
113
+ #
114
+ # `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}`
115
+ #
116
+ # @param project [String]
117
+ # @param location [String]
118
+ # @param app [String]
119
+ # @param conversation [String]
120
+ #
121
+ # @return [::String]
122
+ def conversation_path project:, location:, app:, conversation:
123
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
124
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
125
+ raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
126
+
127
+ "projects/#{project}/locations/#{location}/apps/#{app}/conversations/#{conversation}"
128
+ end
129
+
130
+ ##
131
+ # Create a fully-qualified Dataset resource string.
132
+ #
133
+ # The resource will be in the following format:
134
+ #
135
+ # `projects/{project}/locations/{location}/datasets/{dataset}`
136
+ #
137
+ # @param project [String]
138
+ # @param location [String]
139
+ # @param dataset [String]
140
+ #
141
+ # @return [::String]
142
+ def dataset_path project:, location:, dataset:
143
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
144
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
145
+
146
+ "projects/#{project}/locations/#{location}/datasets/#{dataset}"
147
+ end
148
+
149
+ ##
150
+ # Create a fully-qualified DeidentifyTemplate resource string.
151
+ #
152
+ # @overload deidentify_template_path(organization:, location:, deidentify_template:)
153
+ # The resource will be in the following format:
154
+ #
155
+ # `organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}`
156
+ #
157
+ # @param organization [String]
158
+ # @param location [String]
159
+ # @param deidentify_template [String]
160
+ #
161
+ # @overload deidentify_template_path(project:, location:, deidentify_template:)
162
+ # The resource will be in the following format:
163
+ #
164
+ # `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
165
+ #
166
+ # @param project [String]
167
+ # @param location [String]
168
+ # @param deidentify_template [String]
169
+ #
170
+ # @return [::String]
171
+ def deidentify_template_path **args
172
+ resources = {
173
+ "deidentify_template:location:organization" => (proc do |organization:, location:, deidentify_template:|
174
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
175
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
176
+
177
+ "organizations/#{organization}/locations/#{location}/deidentifyTemplates/#{deidentify_template}"
178
+ end),
179
+ "deidentify_template:location:project" => (proc do |project:, location:, deidentify_template:|
180
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
181
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
182
+
183
+ "projects/#{project}/locations/#{location}/deidentifyTemplates/#{deidentify_template}"
184
+ end)
185
+ }
186
+
187
+ resource = resources[args.keys.sort.join(":")]
188
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
189
+ resource.call(**args)
190
+ end
191
+
192
+ ##
193
+ # Create a fully-qualified Deployment resource string.
194
+ #
195
+ # The resource will be in the following format:
196
+ #
197
+ # `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
198
+ #
199
+ # @param project [String]
200
+ # @param location [String]
201
+ # @param app [String]
202
+ # @param deployment [String]
203
+ #
204
+ # @return [::String]
205
+ def deployment_path project:, location:, app:, deployment:
206
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
207
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
208
+ raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
209
+
210
+ "projects/#{project}/locations/#{location}/apps/#{app}/deployments/#{deployment}"
211
+ end
212
+
213
+ ##
214
+ # Create a fully-qualified DialogflowAgent resource string.
215
+ #
216
+ # The resource will be in the following format:
217
+ #
218
+ # `projects/{project}/locations/{location}/agents/{agent}`
219
+ #
220
+ # @param project [String]
221
+ # @param location [String]
222
+ # @param agent [String]
223
+ #
224
+ # @return [::String]
225
+ def dialogflow_agent_path project:, location:, agent:
226
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
227
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
228
+
229
+ "projects/#{project}/locations/#{location}/agents/#{agent}"
230
+ end
231
+
232
+ ##
233
+ # Create a fully-qualified Engine resource string.
234
+ #
235
+ # The resource will be in the following format:
236
+ #
237
+ # `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
238
+ #
239
+ # @param project [String]
240
+ # @param location [String]
241
+ # @param collection [String]
242
+ # @param engine [String]
243
+ #
244
+ # @return [::String]
245
+ def engine_path project:, location:, collection:, engine:
246
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
247
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
248
+ raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
249
+
250
+ "projects/#{project}/locations/#{location}/collections/#{collection}/engines/#{engine}"
251
+ end
252
+
253
+ ##
254
+ # Create a fully-qualified EvaluationRun resource string.
255
+ #
256
+ # The resource will be in the following format:
257
+ #
258
+ # `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluation_run}`
259
+ #
260
+ # @param project [String]
261
+ # @param location [String]
262
+ # @param app [String]
263
+ # @param evaluation_run [String]
264
+ #
265
+ # @return [::String]
266
+ def evaluation_run_path project:, location:, app:, evaluation_run:
267
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
268
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
269
+ raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
270
+
271
+ "projects/#{project}/locations/#{location}/apps/#{app}/evaluationRuns/#{evaluation_run}"
272
+ end
273
+
274
+ ##
275
+ # Create a fully-qualified Example resource string.
276
+ #
277
+ # The resource will be in the following format:
278
+ #
279
+ # `projects/{project}/locations/{location}/apps/{app}/examples/{example}`
280
+ #
281
+ # @param project [String]
282
+ # @param location [String]
283
+ # @param app [String]
284
+ # @param example [String]
285
+ #
286
+ # @return [::String]
287
+ def example_path project:, location:, app:, example:
288
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
289
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
290
+ raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
291
+
292
+ "projects/#{project}/locations/#{location}/apps/#{app}/examples/#{example}"
293
+ end
294
+
295
+ ##
296
+ # Create a fully-qualified Guardrail resource string.
297
+ #
298
+ # The resource will be in the following format:
299
+ #
300
+ # `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
301
+ #
302
+ # @param project [String]
303
+ # @param location [String]
304
+ # @param app [String]
305
+ # @param guardrail [String]
306
+ #
307
+ # @return [::String]
308
+ def guardrail_path project:, location:, app:, guardrail:
309
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
310
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
311
+ raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
312
+
313
+ "projects/#{project}/locations/#{location}/apps/#{app}/guardrails/#{guardrail}"
314
+ end
315
+
316
+ ##
317
+ # Create a fully-qualified InspectTemplate resource string.
318
+ #
319
+ # @overload inspect_template_path(organization:, location:, inspect_template:)
320
+ # The resource will be in the following format:
321
+ #
322
+ # `organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}`
323
+ #
324
+ # @param organization [String]
325
+ # @param location [String]
326
+ # @param inspect_template [String]
327
+ #
328
+ # @overload inspect_template_path(project:, location:, inspect_template:)
329
+ # The resource will be in the following format:
330
+ #
331
+ # `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
332
+ #
333
+ # @param project [String]
334
+ # @param location [String]
335
+ # @param inspect_template [String]
336
+ #
337
+ # @return [::String]
338
+ def inspect_template_path **args
339
+ resources = {
340
+ "inspect_template:location:organization" => (proc do |organization:, location:, inspect_template:|
341
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
342
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
343
+
344
+ "organizations/#{organization}/locations/#{location}/inspectTemplates/#{inspect_template}"
345
+ end),
346
+ "inspect_template:location:project" => (proc do |project:, location:, inspect_template:|
347
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
348
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
349
+
350
+ "projects/#{project}/locations/#{location}/inspectTemplates/#{inspect_template}"
351
+ end)
352
+ }
353
+
354
+ resource = resources[args.keys.sort.join(":")]
355
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
356
+ resource.call(**args)
357
+ end
358
+
359
+ ##
360
+ # Create a fully-qualified Location resource string.
361
+ #
362
+ # The resource will be in the following format:
363
+ #
364
+ # `projects/{project}/locations/{location}`
365
+ #
366
+ # @param project [String]
367
+ # @param location [String]
368
+ #
369
+ # @return [::String]
370
+ def location_path project:, location:
371
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
372
+
373
+ "projects/#{project}/locations/#{location}"
374
+ end
375
+
376
+ ##
377
+ # Create a fully-qualified SecretVersion resource string.
378
+ #
379
+ # The resource will be in the following format:
380
+ #
381
+ # `projects/{project}/secrets/{secret}/versions/{secret_version}`
382
+ #
383
+ # @param project [String]
384
+ # @param secret [String]
385
+ # @param secret_version [String]
386
+ #
387
+ # @return [::String]
388
+ def secret_version_path project:, secret:, secret_version:
389
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
390
+ raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"
391
+
392
+ "projects/#{project}/secrets/#{secret}/versions/#{secret_version}"
393
+ end
394
+
395
+ ##
396
+ # Create a fully-qualified SecuritySettings resource string.
397
+ #
398
+ # The resource will be in the following format:
399
+ #
400
+ # `projects/{project}/locations/{location}/securitySettings`
401
+ #
402
+ # @param project [String]
403
+ # @param location [String]
404
+ #
405
+ # @return [::String]
406
+ def security_settings_path project:, location:
407
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
408
+
409
+ "projects/#{project}/locations/#{location}/securitySettings"
410
+ end
411
+
412
+ ##
413
+ # Create a fully-qualified Service resource string.
414
+ #
415
+ # The resource will be in the following format:
416
+ #
417
+ # `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`
418
+ #
419
+ # @param project [String]
420
+ # @param location [String]
421
+ # @param namespace [String]
422
+ # @param service [String]
423
+ #
424
+ # @return [::String]
425
+ def service_path project:, location:, namespace:, service:
426
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
427
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
428
+ raise ::ArgumentError, "namespace cannot contain /" if namespace.to_s.include? "/"
429
+
430
+ "projects/#{project}/locations/#{location}/namespaces/#{namespace}/services/#{service}"
431
+ end
432
+
433
+ ##
434
+ # Create a fully-qualified Tool resource string.
435
+ #
436
+ # The resource will be in the following format:
437
+ #
438
+ # `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
439
+ #
440
+ # @param project [String]
441
+ # @param location [String]
442
+ # @param app [String]
443
+ # @param tool [String]
444
+ #
445
+ # @return [::String]
446
+ def tool_path project:, location:, app:, tool:
447
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
448
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
449
+ raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
450
+
451
+ "projects/#{project}/locations/#{location}/apps/#{app}/tools/#{tool}"
452
+ end
453
+
454
+ ##
455
+ # Create a fully-qualified Toolset resource string.
456
+ #
457
+ # The resource will be in the following format:
458
+ #
459
+ # `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
460
+ #
461
+ # @param project [String]
462
+ # @param location [String]
463
+ # @param app [String]
464
+ # @param toolset [String]
465
+ #
466
+ # @return [::String]
467
+ def toolset_path project:, location:, app:, toolset:
468
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
469
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
470
+ raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
471
+
472
+ "projects/#{project}/locations/#{location}/apps/#{app}/toolsets/#{toolset}"
473
+ end
474
+
475
+ extend self
476
+ end
477
+ end
478
+ end
479
+ end
480
+ end
481
+ end