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.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +154 -8
- data/lib/google/cloud/ces/v1beta/agent_card_pb.rb +26 -0
- data/lib/google/cloud/ces/v1beta/agent_pb.rb +30 -0
- data/lib/google/cloud/ces/v1beta/agent_service/client.rb +5641 -0
- data/lib/google/cloud/ces/v1beta/agent_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1beta/agent_service/operations.rb +843 -0
- data/lib/google/cloud/ces/v1beta/agent_service/paths.rb +481 -0
- data/lib/google/cloud/ces/v1beta/agent_service/rest/client.rb +5249 -0
- data/lib/google/cloud/ces/v1beta/agent_service/rest/operations.rb +927 -0
- data/lib/google/cloud/ces/v1beta/agent_service/rest/service_stub.rb +3213 -0
- data/lib/google/cloud/ces/v1beta/agent_service/rest.rb +55 -0
- data/lib/google/cloud/ces/v1beta/agent_service.rb +57 -0
- data/lib/google/cloud/ces/v1beta/agent_service_pb.rb +132 -0
- data/lib/google/cloud/ces/v1beta/agent_service_services_pb.rb +148 -0
- data/lib/google/cloud/ces/v1beta/agent_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1beta/agent_transfers_pb.rb +29 -0
- data/lib/google/cloud/ces/v1beta/app_pb.rb +70 -0
- data/lib/google/cloud/ces/v1beta/app_version_pb.rb +32 -0
- data/lib/google/cloud/ces/v1beta/auth_pb.rb +34 -0
- data/lib/google/cloud/ces/v1beta/bigquery_export_pb.rb +23 -0
- data/lib/google/cloud/ces/v1beta/bindings_override.rb +75 -0
- data/lib/google/cloud/ces/v1beta/changelog_pb.rb +26 -0
- data/lib/google/cloud/ces/v1beta/client_function_pb.rb +24 -0
- data/lib/google/cloud/ces/v1beta/common_pb.rb +46 -0
- data/lib/google/cloud/ces/v1beta/connector_tool_pb.rb +27 -0
- data/lib/google/cloud/ces/v1beta/connector_toolset_pb.rb +25 -0
- data/lib/google/cloud/ces/v1beta/conversation_pb.rb +31 -0
- data/lib/google/cloud/ces/v1beta/data_store_pb.rb +27 -0
- data/lib/google/cloud/ces/v1beta/data_store_tool_pb.rb +40 -0
- data/lib/google/cloud/ces/v1beta/deployment_pb.rb +30 -0
- data/lib/google/cloud/ces/v1beta/evaluation_metrics_config_pb.rb +31 -0
- data/lib/google/cloud/ces/v1beta/evaluation_pb.rb +99 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/client.rb +4050 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/operations.rb +843 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/paths.rb +306 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/rest/client.rb +3770 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/rest/operations.rb +927 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/rest/service_stub.rb +2233 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/rest.rb +54 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service.rb +56 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service_pb.rb +93 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service_services_pb.rb +116 -0
- data/lib/google/cloud/ces/v1beta/example_pb.rb +34 -0
- data/lib/google/cloud/ces/v1beta/fakes_pb.rb +25 -0
- data/lib/google/cloud/ces/v1beta/file_context_pb.rb +24 -0
- data/lib/google/cloud/ces/v1beta/file_search_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1beta/golden_run_pb.rb +21 -0
- data/lib/google/cloud/ces/v1beta/google_search_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1beta/guardrail_pb.rb +37 -0
- data/lib/google/cloud/ces/v1beta/mcp_tool_pb.rb +27 -0
- data/lib/google/cloud/ces/v1beta/mcp_toolset_pb.rb +28 -0
- data/lib/google/cloud/ces/v1beta/mocks_pb.rb +26 -0
- data/lib/google/cloud/ces/v1beta/omnichannel_pb.rb +31 -0
- data/lib/google/cloud/ces/v1beta/omnichannel_service_pb.rb +27 -0
- data/lib/google/cloud/ces/v1beta/open_api_tool_pb.rb +25 -0
- data/lib/google/cloud/ces/v1beta/open_api_toolset_pb.rb +25 -0
- data/lib/google/cloud/ces/v1beta/python_function_pb.rb +24 -0
- data/lib/google/cloud/ces/v1beta/rest.rb +42 -0
- data/lib/google/cloud/ces/v1beta/schema_pb.rb +25 -0
- data/lib/google/cloud/ces/v1beta/search_suggestions_pb.rb +22 -0
- data/lib/google/cloud/ces/v1beta/security_settings_pb.rb +27 -0
- data/lib/google/cloud/ces/v1beta/session_service/client.rb +762 -0
- data/lib/google/cloud/ces/v1beta/session_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1beta/session_service/paths.rb +117 -0
- data/lib/google/cloud/ces/v1beta/session_service/rest/client.rb +562 -0
- data/lib/google/cloud/ces/v1beta/session_service/rest/service_stub.rb +199 -0
- data/lib/google/cloud/ces/v1beta/session_service/rest.rb +53 -0
- data/lib/google/cloud/ces/v1beta/session_service.rb +55 -0
- data/lib/google/cloud/ces/v1beta/session_service_pb.rb +54 -0
- data/lib/google/cloud/ces/v1beta/session_service_services_pb.rb +120 -0
- data/lib/google/cloud/ces/v1beta/system_tool_pb.rb +23 -0
- data/lib/google/cloud/ces/v1beta/tool_pb.rb +40 -0
- data/lib/google/cloud/ces/v1beta/tool_service/client.rb +733 -0
- data/lib/google/cloud/ces/v1beta/tool_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1beta/tool_service/paths.rb +94 -0
- data/lib/google/cloud/ces/v1beta/tool_service/rest/client.rb +677 -0
- data/lib/google/cloud/ces/v1beta/tool_service/rest/service_stub.rb +267 -0
- data/lib/google/cloud/ces/v1beta/tool_service/rest.rb +53 -0
- data/lib/google/cloud/ces/v1beta/tool_service.rb +55 -0
- data/lib/google/cloud/ces/v1beta/tool_service_pb.rb +37 -0
- data/lib/google/cloud/ces/v1beta/tool_service_services_pb.rb +50 -0
- data/lib/google/cloud/ces/v1beta/toolset_pb.rb +30 -0
- data/lib/google/cloud/ces/v1beta/toolset_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1beta/version.rb +7 -2
- data/lib/google/cloud/ces/v1beta/widget_service/client.rb +503 -0
- data/lib/google/cloud/ces/v1beta/widget_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1beta/widget_service/paths.rb +75 -0
- data/lib/google/cloud/ces/v1beta/widget_service/rest/client.rb +461 -0
- data/lib/google/cloud/ces/v1beta/widget_service/rest/service_stub.rb +143 -0
- data/lib/google/cloud/ces/v1beta/widget_service/rest.rb +53 -0
- data/lib/google/cloud/ces/v1beta/widget_service.rb +55 -0
- data/lib/google/cloud/ces/v1beta/widget_service_pb.rb +28 -0
- data/lib/google/cloud/ces/v1beta/widget_service_services_pb.rb +46 -0
- data/lib/google/cloud/ces/v1beta/widget_tool_pb.rb +31 -0
- data/lib/google/cloud/ces/v1beta.rb +49 -0
- data/lib/google-cloud-ces-v1beta.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +593 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/ces/v1beta/agent.rb +233 -0
- data/proto_docs/google/cloud/ces/v1beta/agent_card.rb +122 -0
- data/proto_docs/google/cloud/ces/v1beta/agent_service.rb +1682 -0
- data/proto_docs/google/cloud/ces/v1beta/agent_tool.rb +48 -0
- data/proto_docs/google/cloud/ces/v1beta/agent_transfers.rb +111 -0
- data/proto_docs/google/cloud/ces/v1beta/app.rb +883 -0
- data/proto_docs/google/cloud/ces/v1beta/app_version.rb +83 -0
- data/proto_docs/google/cloud/ces/v1beta/auth.rb +214 -0
- data/proto_docs/google/cloud/ces/v1beta/bigquery_export.rb +45 -0
- data/proto_docs/google/cloud/ces/v1beta/changelog.rb +73 -0
- data/proto_docs/google/cloud/ces/v1beta/client_function.rb +48 -0
- data/proto_docs/google/cloud/ces/v1beta/common.rb +375 -0
- data/proto_docs/google/cloud/ces/v1beta/connector_tool.rb +122 -0
- data/proto_docs/google/cloud/ces/v1beta/connector_toolset.rb +52 -0
- data/proto_docs/google/cloud/ces/v1beta/conversation.rb +159 -0
- data/proto_docs/google/cloud/ces/v1beta/data_store.rb +102 -0
- data/proto_docs/google/cloud/ces/v1beta/data_store_tool.rb +328 -0
- data/proto_docs/google/cloud/ces/v1beta/deployment.rb +123 -0
- data/proto_docs/google/cloud/ces/v1beta/evaluation.rb +1687 -0
- data/proto_docs/google/cloud/ces/v1beta/evaluation_metrics_config.rb +151 -0
- data/proto_docs/google/cloud/ces/v1beta/evaluation_service.rb +1087 -0
- data/proto_docs/google/cloud/ces/v1beta/example.rb +245 -0
- data/proto_docs/google/cloud/ces/v1beta/fakes.rb +67 -0
- data/proto_docs/google/cloud/ces/v1beta/file_context.rb +50 -0
- data/proto_docs/google/cloud/ces/v1beta/file_search_tool.rb +60 -0
- data/proto_docs/google/cloud/ces/v1beta/golden_run.rb +40 -0
- data/proto_docs/google/cloud/ces/v1beta/google_search_tool.rb +76 -0
- data/proto_docs/google/cloud/ces/v1beta/guardrail.rb +324 -0
- data/proto_docs/google/cloud/ces/v1beta/mcp_tool.rb +110 -0
- data/proto_docs/google/cloud/ces/v1beta/mcp_toolset.rb +118 -0
- data/proto_docs/google/cloud/ces/v1beta/mocks.rb +60 -0
- data/proto_docs/google/cloud/ces/v1beta/omnichannel.rb +163 -0
- data/proto_docs/google/cloud/ces/v1beta/omnichannel_service.rb +45 -0
- data/proto_docs/google/cloud/ces/v1beta/open_api_tool.rb +66 -0
- data/proto_docs/google/cloud/ces/v1beta/open_api_toolset.rb +57 -0
- data/proto_docs/google/cloud/ces/v1beta/python_function.rb +47 -0
- data/proto_docs/google/cloud/ces/v1beta/schema.rb +162 -0
- data/proto_docs/google/cloud/ces/v1beta/search_suggestions.rb +55 -0
- data/proto_docs/google/cloud/ces/v1beta/security_settings.rb +80 -0
- data/proto_docs/google/cloud/ces/v1beta/session_service.rb +493 -0
- data/proto_docs/google/cloud/ces/v1beta/system_tool.rb +38 -0
- data/proto_docs/google/cloud/ces/v1beta/tool.rb +136 -0
- data/proto_docs/google/cloud/ces/v1beta/tool_service.rb +185 -0
- data/proto_docs/google/cloud/ces/v1beta/toolset.rb +80 -0
- data/proto_docs/google/cloud/ces/v1beta/toolset_tool.rb +40 -0
- data/proto_docs/google/cloud/ces/v1beta/widget_service.rb +62 -0
- data/proto_docs/google/cloud/ces/v1beta/widget_tool.rb +182 -0
- data/proto_docs/google/longrunning/operations.rb +191 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +108 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +208 -9
|
@@ -0,0 +1,306 @@
|
|
|
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 EvaluationService
|
|
25
|
+
# Path helper methods for the EvaluationService 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 Evaluation resource string.
|
|
132
|
+
#
|
|
133
|
+
# The resource will be in the following format:
|
|
134
|
+
#
|
|
135
|
+
# `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}`
|
|
136
|
+
#
|
|
137
|
+
# @param project [String]
|
|
138
|
+
# @param location [String]
|
|
139
|
+
# @param app [String]
|
|
140
|
+
# @param evaluation [String]
|
|
141
|
+
#
|
|
142
|
+
# @return [::String]
|
|
143
|
+
def evaluation_path project:, location:, app:, evaluation:
|
|
144
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
145
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
146
|
+
raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
|
|
147
|
+
|
|
148
|
+
"projects/#{project}/locations/#{location}/apps/#{app}/evaluations/#{evaluation}"
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
##
|
|
152
|
+
# Create a fully-qualified EvaluationDataset resource string.
|
|
153
|
+
#
|
|
154
|
+
# The resource will be in the following format:
|
|
155
|
+
#
|
|
156
|
+
# `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluation_dataset}`
|
|
157
|
+
#
|
|
158
|
+
# @param project [String]
|
|
159
|
+
# @param location [String]
|
|
160
|
+
# @param app [String]
|
|
161
|
+
# @param evaluation_dataset [String]
|
|
162
|
+
#
|
|
163
|
+
# @return [::String]
|
|
164
|
+
def evaluation_dataset_path project:, location:, app:, evaluation_dataset:
|
|
165
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
166
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
167
|
+
raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
|
|
168
|
+
|
|
169
|
+
"projects/#{project}/locations/#{location}/apps/#{app}/evaluationDatasets/#{evaluation_dataset}"
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
##
|
|
173
|
+
# Create a fully-qualified EvaluationExpectation resource string.
|
|
174
|
+
#
|
|
175
|
+
# The resource will be in the following format:
|
|
176
|
+
#
|
|
177
|
+
# `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}`
|
|
178
|
+
#
|
|
179
|
+
# @param project [String]
|
|
180
|
+
# @param location [String]
|
|
181
|
+
# @param app [String]
|
|
182
|
+
# @param evaluation_expectation [String]
|
|
183
|
+
#
|
|
184
|
+
# @return [::String]
|
|
185
|
+
def evaluation_expectation_path project:, location:, app:, evaluation_expectation:
|
|
186
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
187
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
188
|
+
raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
|
|
189
|
+
|
|
190
|
+
"projects/#{project}/locations/#{location}/apps/#{app}/evaluationExpectations/#{evaluation_expectation}"
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
##
|
|
194
|
+
# Create a fully-qualified EvaluationResult resource string.
|
|
195
|
+
#
|
|
196
|
+
# The resource will be in the following format:
|
|
197
|
+
#
|
|
198
|
+
# `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{evaluation_result}`
|
|
199
|
+
#
|
|
200
|
+
# @param project [String]
|
|
201
|
+
# @param location [String]
|
|
202
|
+
# @param app [String]
|
|
203
|
+
# @param evaluation [String]
|
|
204
|
+
# @param evaluation_result [String]
|
|
205
|
+
#
|
|
206
|
+
# @return [::String]
|
|
207
|
+
def evaluation_result_path project:, location:, app:, evaluation:, evaluation_result:
|
|
208
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
209
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
210
|
+
raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
|
|
211
|
+
raise ::ArgumentError, "evaluation cannot contain /" if evaluation.to_s.include? "/"
|
|
212
|
+
|
|
213
|
+
"projects/#{project}/locations/#{location}/apps/#{app}/evaluations/#{evaluation}/results/#{evaluation_result}"
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
##
|
|
217
|
+
# Create a fully-qualified EvaluationRun resource string.
|
|
218
|
+
#
|
|
219
|
+
# The resource will be in the following format:
|
|
220
|
+
#
|
|
221
|
+
# `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluation_run}`
|
|
222
|
+
#
|
|
223
|
+
# @param project [String]
|
|
224
|
+
# @param location [String]
|
|
225
|
+
# @param app [String]
|
|
226
|
+
# @param evaluation_run [String]
|
|
227
|
+
#
|
|
228
|
+
# @return [::String]
|
|
229
|
+
def evaluation_run_path project:, location:, app:, evaluation_run:
|
|
230
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
231
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
232
|
+
raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
|
|
233
|
+
|
|
234
|
+
"projects/#{project}/locations/#{location}/apps/#{app}/evaluationRuns/#{evaluation_run}"
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
##
|
|
238
|
+
# Create a fully-qualified ScheduledEvaluationRun resource string.
|
|
239
|
+
#
|
|
240
|
+
# The resource will be in the following format:
|
|
241
|
+
#
|
|
242
|
+
# `projects/{project}/locations/{location}/apps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_run}`
|
|
243
|
+
#
|
|
244
|
+
# @param project [String]
|
|
245
|
+
# @param location [String]
|
|
246
|
+
# @param app [String]
|
|
247
|
+
# @param scheduled_evaluation_run [String]
|
|
248
|
+
#
|
|
249
|
+
# @return [::String]
|
|
250
|
+
def scheduled_evaluation_run_path project:, location:, app:, scheduled_evaluation_run:
|
|
251
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
252
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
253
|
+
raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
|
|
254
|
+
|
|
255
|
+
"projects/#{project}/locations/#{location}/apps/#{app}/scheduledEvaluationRuns/#{scheduled_evaluation_run}"
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
##
|
|
259
|
+
# Create a fully-qualified Tool resource string.
|
|
260
|
+
#
|
|
261
|
+
# The resource will be in the following format:
|
|
262
|
+
#
|
|
263
|
+
# `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
|
|
264
|
+
#
|
|
265
|
+
# @param project [String]
|
|
266
|
+
# @param location [String]
|
|
267
|
+
# @param app [String]
|
|
268
|
+
# @param tool [String]
|
|
269
|
+
#
|
|
270
|
+
# @return [::String]
|
|
271
|
+
def tool_path project:, location:, app:, tool:
|
|
272
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
273
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
274
|
+
raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
|
|
275
|
+
|
|
276
|
+
"projects/#{project}/locations/#{location}/apps/#{app}/tools/#{tool}"
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
##
|
|
280
|
+
# Create a fully-qualified Toolset resource string.
|
|
281
|
+
#
|
|
282
|
+
# The resource will be in the following format:
|
|
283
|
+
#
|
|
284
|
+
# `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
|
|
285
|
+
#
|
|
286
|
+
# @param project [String]
|
|
287
|
+
# @param location [String]
|
|
288
|
+
# @param app [String]
|
|
289
|
+
# @param toolset [String]
|
|
290
|
+
#
|
|
291
|
+
# @return [::String]
|
|
292
|
+
def toolset_path project:, location:, app:, toolset:
|
|
293
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
294
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
295
|
+
raise ::ArgumentError, "app cannot contain /" if app.to_s.include? "/"
|
|
296
|
+
|
|
297
|
+
"projects/#{project}/locations/#{location}/apps/#{app}/toolsets/#{toolset}"
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
extend self
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
end
|
|
304
|
+
end
|
|
305
|
+
end
|
|
306
|
+
end
|