google-cloud-ces-v1 0.a → 0.1.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/v1/agent_pb.rb +30 -0
- data/lib/google/cloud/ces/v1/agent_service/client.rb +5315 -0
- data/lib/google/cloud/ces/v1/agent_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1/agent_service/operations.rb +841 -0
- data/lib/google/cloud/ces/v1/agent_service/paths.rb +424 -0
- data/lib/google/cloud/ces/v1/agent_service/rest/client.rb +4944 -0
- data/lib/google/cloud/ces/v1/agent_service/rest/operations.rb +925 -0
- data/lib/google/cloud/ces/v1/agent_service/rest/service_stub.rb +3028 -0
- data/lib/google/cloud/ces/v1/agent_service/rest.rb +55 -0
- data/lib/google/cloud/ces/v1/agent_service.rb +57 -0
- data/lib/google/cloud/ces/v1/agent_service_pb.rb +105 -0
- data/lib/google/cloud/ces/v1/agent_service_services_pb.rb +142 -0
- data/lib/google/cloud/ces/v1/agent_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1/agent_transfers_pb.rb +29 -0
- data/lib/google/cloud/ces/v1/app_pb.rb +58 -0
- data/lib/google/cloud/ces/v1/app_version_pb.rb +32 -0
- data/lib/google/cloud/ces/v1/auth_pb.rb +34 -0
- data/lib/google/cloud/ces/v1/bigquery_export_pb.rb +23 -0
- data/lib/google/cloud/ces/v1/bindings_override.rb +75 -0
- data/lib/google/cloud/ces/v1/changelog_pb.rb +26 -0
- data/lib/google/cloud/ces/v1/client_function_pb.rb +24 -0
- data/lib/google/cloud/ces/v1/common_pb.rb +46 -0
- data/lib/google/cloud/ces/v1/connector_tool_pb.rb +27 -0
- data/lib/google/cloud/ces/v1/connector_toolset_pb.rb +25 -0
- data/lib/google/cloud/ces/v1/conversation_pb.rb +31 -0
- data/lib/google/cloud/ces/v1/data_store_pb.rb +27 -0
- data/lib/google/cloud/ces/v1/data_store_tool_pb.rb +40 -0
- data/lib/google/cloud/ces/v1/deployment_pb.rb +26 -0
- data/lib/google/cloud/ces/v1/example_pb.rb +34 -0
- data/lib/google/cloud/ces/v1/fakes_pb.rb +24 -0
- data/lib/google/cloud/ces/v1/file_search_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1/google_search_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1/guardrail_pb.rb +37 -0
- data/lib/google/cloud/ces/v1/mcp_tool_pb.rb +26 -0
- data/lib/google/cloud/ces/v1/mcp_toolset_pb.rb +25 -0
- data/lib/google/cloud/ces/v1/omnichannel_pb.rb +31 -0
- data/lib/google/cloud/ces/v1/omnichannel_service_pb.rb +27 -0
- data/lib/google/cloud/ces/v1/open_api_tool_pb.rb +25 -0
- data/lib/google/cloud/ces/v1/open_api_toolset_pb.rb +25 -0
- data/lib/google/cloud/ces/v1/python_function_pb.rb +23 -0
- data/lib/google/cloud/ces/v1/rest.rb +41 -0
- data/lib/google/cloud/ces/v1/schema_pb.rb +25 -0
- data/lib/google/cloud/ces/v1/search_suggestions_pb.rb +22 -0
- data/lib/google/cloud/ces/v1/security_settings_pb.rb +27 -0
- data/lib/google/cloud/ces/v1/session_service/client.rb +759 -0
- data/lib/google/cloud/ces/v1/session_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1/session_service/paths.rb +117 -0
- data/lib/google/cloud/ces/v1/session_service/rest/client.rb +560 -0
- data/lib/google/cloud/ces/v1/session_service/rest/service_stub.rb +199 -0
- data/lib/google/cloud/ces/v1/session_service/rest.rb +53 -0
- data/lib/google/cloud/ces/v1/session_service.rb +55 -0
- data/lib/google/cloud/ces/v1/session_service_pb.rb +50 -0
- data/lib/google/cloud/ces/v1/session_service_services_pb.rb +119 -0
- data/lib/google/cloud/ces/v1/system_tool_pb.rb +23 -0
- data/lib/google/cloud/ces/v1/tool_pb.rb +38 -0
- data/lib/google/cloud/ces/v1/tool_service/client.rb +723 -0
- data/lib/google/cloud/ces/v1/tool_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1/tool_service/paths.rb +94 -0
- data/lib/google/cloud/ces/v1/tool_service/rest/client.rb +667 -0
- data/lib/google/cloud/ces/v1/tool_service/rest/service_stub.rb +267 -0
- data/lib/google/cloud/ces/v1/tool_service/rest.rb +53 -0
- data/lib/google/cloud/ces/v1/tool_service.rb +55 -0
- data/lib/google/cloud/ces/v1/tool_service_pb.rb +35 -0
- data/lib/google/cloud/ces/v1/tool_service_services_pb.rb +50 -0
- data/lib/google/cloud/ces/v1/toolset_pb.rb +30 -0
- data/lib/google/cloud/ces/v1/toolset_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1/version.rb +7 -2
- data/lib/google/cloud/ces/v1/widget_service/client.rb +501 -0
- data/lib/google/cloud/ces/v1/widget_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1/widget_service/paths.rb +75 -0
- data/lib/google/cloud/ces/v1/widget_service/rest/client.rb +459 -0
- data/lib/google/cloud/ces/v1/widget_service/rest/service_stub.rb +143 -0
- data/lib/google/cloud/ces/v1/widget_service/rest.rb +53 -0
- data/lib/google/cloud/ces/v1/widget_service.rb +55 -0
- data/lib/google/cloud/ces/v1/widget_service_pb.rb +28 -0
- data/lib/google/cloud/ces/v1/widget_service_services_pb.rb +46 -0
- data/lib/google/cloud/ces/v1/widget_tool_pb.rb +29 -0
- data/lib/google/cloud/ces/v1.rb +48 -0
- data/lib/google-cloud-ces-v1.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/v1/agent.rb +224 -0
- data/proto_docs/google/cloud/ces/v1/agent_service.rb +1250 -0
- data/proto_docs/google/cloud/ces/v1/agent_tool.rb +42 -0
- data/proto_docs/google/cloud/ces/v1/agent_transfers.rb +111 -0
- data/proto_docs/google/cloud/ces/v1/app.rb +685 -0
- data/proto_docs/google/cloud/ces/v1/app_version.rb +83 -0
- data/proto_docs/google/cloud/ces/v1/auth.rb +214 -0
- data/proto_docs/google/cloud/ces/v1/bigquery_export.rb +45 -0
- data/proto_docs/google/cloud/ces/v1/changelog.rb +73 -0
- data/proto_docs/google/cloud/ces/v1/client_function.rb +48 -0
- data/proto_docs/google/cloud/ces/v1/common.rb +375 -0
- data/proto_docs/google/cloud/ces/v1/connector_tool.rb +122 -0
- data/proto_docs/google/cloud/ces/v1/connector_toolset.rb +52 -0
- data/proto_docs/google/cloud/ces/v1/conversation.rb +152 -0
- data/proto_docs/google/cloud/ces/v1/data_store.rb +102 -0
- data/proto_docs/google/cloud/ces/v1/data_store_tool.rb +328 -0
- data/proto_docs/google/cloud/ces/v1/deployment.rb +62 -0
- data/proto_docs/google/cloud/ces/v1/example.rb +244 -0
- data/proto_docs/google/cloud/ces/v1/fakes.rb +55 -0
- data/proto_docs/google/cloud/ces/v1/file_search_tool.rb +60 -0
- data/proto_docs/google/cloud/ces/v1/google_search_tool.rb +76 -0
- data/proto_docs/google/cloud/ces/v1/guardrail.rb +324 -0
- data/proto_docs/google/cloud/ces/v1/mcp_tool.rb +85 -0
- data/proto_docs/google/cloud/ces/v1/mcp_toolset.rb +71 -0
- data/proto_docs/google/cloud/ces/v1/omnichannel.rb +163 -0
- data/proto_docs/google/cloud/ces/v1/omnichannel_service.rb +45 -0
- data/proto_docs/google/cloud/ces/v1/open_api_tool.rb +66 -0
- data/proto_docs/google/cloud/ces/v1/open_api_toolset.rb +57 -0
- data/proto_docs/google/cloud/ces/v1/python_function.rb +44 -0
- data/proto_docs/google/cloud/ces/v1/schema.rb +162 -0
- data/proto_docs/google/cloud/ces/v1/search_suggestions.rb +55 -0
- data/proto_docs/google/cloud/ces/v1/security_settings.rb +80 -0
- data/proto_docs/google/cloud/ces/v1/session_service.rb +464 -0
- data/proto_docs/google/cloud/ces/v1/system_tool.rb +38 -0
- data/proto_docs/google/cloud/ces/v1/tool.rb +126 -0
- data/proto_docs/google/cloud/ces/v1/tool_service.rb +168 -0
- data/proto_docs/google/cloud/ces/v1/toolset.rb +80 -0
- data/proto_docs/google/cloud/ces/v1/toolset_tool.rb +40 -0
- data/proto_docs/google/cloud/ces/v1/widget_service.rb +62 -0
- data/proto_docs/google/cloud/ces/v1/widget_tool.rb +146 -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 +183 -9
|
@@ -0,0 +1,3028 @@
|
|
|
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/ces/v1/agent_service_pb"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module Ces
|
|
24
|
+
module V1
|
|
25
|
+
module AgentService
|
|
26
|
+
module Rest
|
|
27
|
+
##
|
|
28
|
+
# REST service stub for the AgentService service.
|
|
29
|
+
# Service stub contains baseline method implementations
|
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
|
31
|
+
#
|
|
32
|
+
class ServiceStub
|
|
33
|
+
# @private
|
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
|
35
|
+
# These require statements are intentionally placed here to initialize
|
|
36
|
+
# the REST modules only when it's required.
|
|
37
|
+
require "gapic/rest"
|
|
38
|
+
|
|
39
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
40
|
+
endpoint_template: endpoint_template,
|
|
41
|
+
universe_domain: universe_domain,
|
|
42
|
+
credentials: credentials,
|
|
43
|
+
numeric_enums: true,
|
|
44
|
+
service_name: self.class,
|
|
45
|
+
raise_faraday_errors: false,
|
|
46
|
+
logger: logger
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
##
|
|
50
|
+
# The effective universe domain
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
#
|
|
54
|
+
def universe_domain
|
|
55
|
+
@client_stub.universe_domain
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
##
|
|
59
|
+
# The effective endpoint
|
|
60
|
+
#
|
|
61
|
+
# @return [String]
|
|
62
|
+
#
|
|
63
|
+
def endpoint
|
|
64
|
+
@client_stub.endpoint
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
##
|
|
68
|
+
# The logger used for request/response debug logging.
|
|
69
|
+
#
|
|
70
|
+
# @return [Logger]
|
|
71
|
+
#
|
|
72
|
+
def logger stub: false
|
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
##
|
|
77
|
+
# Baseline implementation for the list_apps REST call
|
|
78
|
+
#
|
|
79
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListAppsRequest]
|
|
80
|
+
# A request object representing the call parameters. Required.
|
|
81
|
+
# @param options [::Gapic::CallOptions]
|
|
82
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
83
|
+
#
|
|
84
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
85
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::ListAppsResponse]
|
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
87
|
+
#
|
|
88
|
+
# @return [::Google::Cloud::Ces::V1::ListAppsResponse]
|
|
89
|
+
# A result object deserialized from the server's reply
|
|
90
|
+
def list_apps request_pb, options = nil
|
|
91
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
92
|
+
|
|
93
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_apps_request request_pb
|
|
94
|
+
query_string_params = if query_string_params.any?
|
|
95
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
96
|
+
else
|
|
97
|
+
{}
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
response = @client_stub.make_http_request(
|
|
101
|
+
verb,
|
|
102
|
+
uri: uri,
|
|
103
|
+
body: body || "",
|
|
104
|
+
params: query_string_params,
|
|
105
|
+
method_name: "list_apps",
|
|
106
|
+
options: options
|
|
107
|
+
)
|
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
109
|
+
result = ::Google::Cloud::Ces::V1::ListAppsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
110
|
+
catch :response do
|
|
111
|
+
yield result, operation if block_given?
|
|
112
|
+
result
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
##
|
|
117
|
+
# Baseline implementation for the get_app REST call
|
|
118
|
+
#
|
|
119
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetAppRequest]
|
|
120
|
+
# A request object representing the call parameters. Required.
|
|
121
|
+
# @param options [::Gapic::CallOptions]
|
|
122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
123
|
+
#
|
|
124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
125
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::App]
|
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
127
|
+
#
|
|
128
|
+
# @return [::Google::Cloud::Ces::V1::App]
|
|
129
|
+
# A result object deserialized from the server's reply
|
|
130
|
+
def get_app request_pb, options = nil
|
|
131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
132
|
+
|
|
133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_app_request request_pb
|
|
134
|
+
query_string_params = if query_string_params.any?
|
|
135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
136
|
+
else
|
|
137
|
+
{}
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
response = @client_stub.make_http_request(
|
|
141
|
+
verb,
|
|
142
|
+
uri: uri,
|
|
143
|
+
body: body || "",
|
|
144
|
+
params: query_string_params,
|
|
145
|
+
method_name: "get_app",
|
|
146
|
+
options: options
|
|
147
|
+
)
|
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
149
|
+
result = ::Google::Cloud::Ces::V1::App.decode_json response.body, ignore_unknown_fields: true
|
|
150
|
+
catch :response do
|
|
151
|
+
yield result, operation if block_given?
|
|
152
|
+
result
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
##
|
|
157
|
+
# Baseline implementation for the create_app REST call
|
|
158
|
+
#
|
|
159
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateAppRequest]
|
|
160
|
+
# A request object representing the call parameters. Required.
|
|
161
|
+
# @param options [::Gapic::CallOptions]
|
|
162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
163
|
+
#
|
|
164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
165
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
167
|
+
#
|
|
168
|
+
# @return [::Google::Longrunning::Operation]
|
|
169
|
+
# A result object deserialized from the server's reply
|
|
170
|
+
def create_app request_pb, options = nil
|
|
171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
172
|
+
|
|
173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_app_request request_pb
|
|
174
|
+
query_string_params = if query_string_params.any?
|
|
175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
176
|
+
else
|
|
177
|
+
{}
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
response = @client_stub.make_http_request(
|
|
181
|
+
verb,
|
|
182
|
+
uri: uri,
|
|
183
|
+
body: body || "",
|
|
184
|
+
params: query_string_params,
|
|
185
|
+
method_name: "create_app",
|
|
186
|
+
options: options
|
|
187
|
+
)
|
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
189
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
190
|
+
catch :response do
|
|
191
|
+
yield result, operation if block_given?
|
|
192
|
+
result
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
##
|
|
197
|
+
# Baseline implementation for the update_app REST call
|
|
198
|
+
#
|
|
199
|
+
# @param request_pb [::Google::Cloud::Ces::V1::UpdateAppRequest]
|
|
200
|
+
# A request object representing the call parameters. Required.
|
|
201
|
+
# @param options [::Gapic::CallOptions]
|
|
202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
203
|
+
#
|
|
204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
205
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::App]
|
|
206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
207
|
+
#
|
|
208
|
+
# @return [::Google::Cloud::Ces::V1::App]
|
|
209
|
+
# A result object deserialized from the server's reply
|
|
210
|
+
def update_app request_pb, options = nil
|
|
211
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
212
|
+
|
|
213
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_app_request request_pb
|
|
214
|
+
query_string_params = if query_string_params.any?
|
|
215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
216
|
+
else
|
|
217
|
+
{}
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
response = @client_stub.make_http_request(
|
|
221
|
+
verb,
|
|
222
|
+
uri: uri,
|
|
223
|
+
body: body || "",
|
|
224
|
+
params: query_string_params,
|
|
225
|
+
method_name: "update_app",
|
|
226
|
+
options: options
|
|
227
|
+
)
|
|
228
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
229
|
+
result = ::Google::Cloud::Ces::V1::App.decode_json response.body, ignore_unknown_fields: true
|
|
230
|
+
catch :response do
|
|
231
|
+
yield result, operation if block_given?
|
|
232
|
+
result
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
##
|
|
237
|
+
# Baseline implementation for the delete_app REST call
|
|
238
|
+
#
|
|
239
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteAppRequest]
|
|
240
|
+
# A request object representing the call parameters. Required.
|
|
241
|
+
# @param options [::Gapic::CallOptions]
|
|
242
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
243
|
+
#
|
|
244
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
245
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
246
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
247
|
+
#
|
|
248
|
+
# @return [::Google::Longrunning::Operation]
|
|
249
|
+
# A result object deserialized from the server's reply
|
|
250
|
+
def delete_app request_pb, options = nil
|
|
251
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
252
|
+
|
|
253
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_app_request request_pb
|
|
254
|
+
query_string_params = if query_string_params.any?
|
|
255
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
256
|
+
else
|
|
257
|
+
{}
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
response = @client_stub.make_http_request(
|
|
261
|
+
verb,
|
|
262
|
+
uri: uri,
|
|
263
|
+
body: body || "",
|
|
264
|
+
params: query_string_params,
|
|
265
|
+
method_name: "delete_app",
|
|
266
|
+
options: options
|
|
267
|
+
)
|
|
268
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
269
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
270
|
+
catch :response do
|
|
271
|
+
yield result, operation if block_given?
|
|
272
|
+
result
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
##
|
|
277
|
+
# Baseline implementation for the export_app REST call
|
|
278
|
+
#
|
|
279
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ExportAppRequest]
|
|
280
|
+
# A request object representing the call parameters. Required.
|
|
281
|
+
# @param options [::Gapic::CallOptions]
|
|
282
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
283
|
+
#
|
|
284
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
285
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
287
|
+
#
|
|
288
|
+
# @return [::Google::Longrunning::Operation]
|
|
289
|
+
# A result object deserialized from the server's reply
|
|
290
|
+
def export_app request_pb, options = nil
|
|
291
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
292
|
+
|
|
293
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_export_app_request request_pb
|
|
294
|
+
query_string_params = if query_string_params.any?
|
|
295
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
296
|
+
else
|
|
297
|
+
{}
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
response = @client_stub.make_http_request(
|
|
301
|
+
verb,
|
|
302
|
+
uri: uri,
|
|
303
|
+
body: body || "",
|
|
304
|
+
params: query_string_params,
|
|
305
|
+
method_name: "export_app",
|
|
306
|
+
options: options
|
|
307
|
+
)
|
|
308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
309
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
310
|
+
catch :response do
|
|
311
|
+
yield result, operation if block_given?
|
|
312
|
+
result
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
##
|
|
317
|
+
# Baseline implementation for the import_app REST call
|
|
318
|
+
#
|
|
319
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ImportAppRequest]
|
|
320
|
+
# A request object representing the call parameters. Required.
|
|
321
|
+
# @param options [::Gapic::CallOptions]
|
|
322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
323
|
+
#
|
|
324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
325
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
327
|
+
#
|
|
328
|
+
# @return [::Google::Longrunning::Operation]
|
|
329
|
+
# A result object deserialized from the server's reply
|
|
330
|
+
def import_app request_pb, options = nil
|
|
331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
332
|
+
|
|
333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_import_app_request request_pb
|
|
334
|
+
query_string_params = if query_string_params.any?
|
|
335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
336
|
+
else
|
|
337
|
+
{}
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
response = @client_stub.make_http_request(
|
|
341
|
+
verb,
|
|
342
|
+
uri: uri,
|
|
343
|
+
body: body || "",
|
|
344
|
+
params: query_string_params,
|
|
345
|
+
method_name: "import_app",
|
|
346
|
+
options: options
|
|
347
|
+
)
|
|
348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
349
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
350
|
+
catch :response do
|
|
351
|
+
yield result, operation if block_given?
|
|
352
|
+
result
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
##
|
|
357
|
+
# Baseline implementation for the list_agents REST call
|
|
358
|
+
#
|
|
359
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListAgentsRequest]
|
|
360
|
+
# A request object representing the call parameters. Required.
|
|
361
|
+
# @param options [::Gapic::CallOptions]
|
|
362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
363
|
+
#
|
|
364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
365
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::ListAgentsResponse]
|
|
366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
367
|
+
#
|
|
368
|
+
# @return [::Google::Cloud::Ces::V1::ListAgentsResponse]
|
|
369
|
+
# A result object deserialized from the server's reply
|
|
370
|
+
def list_agents request_pb, options = nil
|
|
371
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
372
|
+
|
|
373
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_agents_request request_pb
|
|
374
|
+
query_string_params = if query_string_params.any?
|
|
375
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
376
|
+
else
|
|
377
|
+
{}
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
response = @client_stub.make_http_request(
|
|
381
|
+
verb,
|
|
382
|
+
uri: uri,
|
|
383
|
+
body: body || "",
|
|
384
|
+
params: query_string_params,
|
|
385
|
+
method_name: "list_agents",
|
|
386
|
+
options: options
|
|
387
|
+
)
|
|
388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
389
|
+
result = ::Google::Cloud::Ces::V1::ListAgentsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
390
|
+
catch :response do
|
|
391
|
+
yield result, operation if block_given?
|
|
392
|
+
result
|
|
393
|
+
end
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
##
|
|
397
|
+
# Baseline implementation for the get_agent REST call
|
|
398
|
+
#
|
|
399
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetAgentRequest]
|
|
400
|
+
# A request object representing the call parameters. Required.
|
|
401
|
+
# @param options [::Gapic::CallOptions]
|
|
402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
403
|
+
#
|
|
404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
405
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Agent]
|
|
406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
407
|
+
#
|
|
408
|
+
# @return [::Google::Cloud::Ces::V1::Agent]
|
|
409
|
+
# A result object deserialized from the server's reply
|
|
410
|
+
def get_agent request_pb, options = nil
|
|
411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
412
|
+
|
|
413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_agent_request request_pb
|
|
414
|
+
query_string_params = if query_string_params.any?
|
|
415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
416
|
+
else
|
|
417
|
+
{}
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
response = @client_stub.make_http_request(
|
|
421
|
+
verb,
|
|
422
|
+
uri: uri,
|
|
423
|
+
body: body || "",
|
|
424
|
+
params: query_string_params,
|
|
425
|
+
method_name: "get_agent",
|
|
426
|
+
options: options
|
|
427
|
+
)
|
|
428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
429
|
+
result = ::Google::Cloud::Ces::V1::Agent.decode_json response.body, ignore_unknown_fields: true
|
|
430
|
+
catch :response do
|
|
431
|
+
yield result, operation if block_given?
|
|
432
|
+
result
|
|
433
|
+
end
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
##
|
|
437
|
+
# Baseline implementation for the create_agent REST call
|
|
438
|
+
#
|
|
439
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateAgentRequest]
|
|
440
|
+
# A request object representing the call parameters. Required.
|
|
441
|
+
# @param options [::Gapic::CallOptions]
|
|
442
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
443
|
+
#
|
|
444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
445
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Agent]
|
|
446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
447
|
+
#
|
|
448
|
+
# @return [::Google::Cloud::Ces::V1::Agent]
|
|
449
|
+
# A result object deserialized from the server's reply
|
|
450
|
+
def create_agent request_pb, options = nil
|
|
451
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
452
|
+
|
|
453
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_agent_request request_pb
|
|
454
|
+
query_string_params = if query_string_params.any?
|
|
455
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
456
|
+
else
|
|
457
|
+
{}
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
response = @client_stub.make_http_request(
|
|
461
|
+
verb,
|
|
462
|
+
uri: uri,
|
|
463
|
+
body: body || "",
|
|
464
|
+
params: query_string_params,
|
|
465
|
+
method_name: "create_agent",
|
|
466
|
+
options: options
|
|
467
|
+
)
|
|
468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
469
|
+
result = ::Google::Cloud::Ces::V1::Agent.decode_json response.body, ignore_unknown_fields: true
|
|
470
|
+
catch :response do
|
|
471
|
+
yield result, operation if block_given?
|
|
472
|
+
result
|
|
473
|
+
end
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
##
|
|
477
|
+
# Baseline implementation for the update_agent REST call
|
|
478
|
+
#
|
|
479
|
+
# @param request_pb [::Google::Cloud::Ces::V1::UpdateAgentRequest]
|
|
480
|
+
# A request object representing the call parameters. Required.
|
|
481
|
+
# @param options [::Gapic::CallOptions]
|
|
482
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
483
|
+
#
|
|
484
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
485
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Agent]
|
|
486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
487
|
+
#
|
|
488
|
+
# @return [::Google::Cloud::Ces::V1::Agent]
|
|
489
|
+
# A result object deserialized from the server's reply
|
|
490
|
+
def update_agent request_pb, options = nil
|
|
491
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
492
|
+
|
|
493
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_agent_request request_pb
|
|
494
|
+
query_string_params = if query_string_params.any?
|
|
495
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
496
|
+
else
|
|
497
|
+
{}
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
response = @client_stub.make_http_request(
|
|
501
|
+
verb,
|
|
502
|
+
uri: uri,
|
|
503
|
+
body: body || "",
|
|
504
|
+
params: query_string_params,
|
|
505
|
+
method_name: "update_agent",
|
|
506
|
+
options: options
|
|
507
|
+
)
|
|
508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
509
|
+
result = ::Google::Cloud::Ces::V1::Agent.decode_json response.body, ignore_unknown_fields: true
|
|
510
|
+
catch :response do
|
|
511
|
+
yield result, operation if block_given?
|
|
512
|
+
result
|
|
513
|
+
end
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
##
|
|
517
|
+
# Baseline implementation for the delete_agent REST call
|
|
518
|
+
#
|
|
519
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteAgentRequest]
|
|
520
|
+
# A request object representing the call parameters. Required.
|
|
521
|
+
# @param options [::Gapic::CallOptions]
|
|
522
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
523
|
+
#
|
|
524
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
525
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
527
|
+
#
|
|
528
|
+
# @return [::Google::Protobuf::Empty]
|
|
529
|
+
# A result object deserialized from the server's reply
|
|
530
|
+
def delete_agent request_pb, options = nil
|
|
531
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
532
|
+
|
|
533
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_agent_request request_pb
|
|
534
|
+
query_string_params = if query_string_params.any?
|
|
535
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
536
|
+
else
|
|
537
|
+
{}
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
response = @client_stub.make_http_request(
|
|
541
|
+
verb,
|
|
542
|
+
uri: uri,
|
|
543
|
+
body: body || "",
|
|
544
|
+
params: query_string_params,
|
|
545
|
+
method_name: "delete_agent",
|
|
546
|
+
options: options
|
|
547
|
+
)
|
|
548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
549
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
550
|
+
catch :response do
|
|
551
|
+
yield result, operation if block_given?
|
|
552
|
+
result
|
|
553
|
+
end
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
##
|
|
557
|
+
# Baseline implementation for the list_examples REST call
|
|
558
|
+
#
|
|
559
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListExamplesRequest]
|
|
560
|
+
# A request object representing the call parameters. Required.
|
|
561
|
+
# @param options [::Gapic::CallOptions]
|
|
562
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
563
|
+
#
|
|
564
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
565
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::ListExamplesResponse]
|
|
566
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
567
|
+
#
|
|
568
|
+
# @return [::Google::Cloud::Ces::V1::ListExamplesResponse]
|
|
569
|
+
# A result object deserialized from the server's reply
|
|
570
|
+
def list_examples request_pb, options = nil
|
|
571
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
572
|
+
|
|
573
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_examples_request request_pb
|
|
574
|
+
query_string_params = if query_string_params.any?
|
|
575
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
576
|
+
else
|
|
577
|
+
{}
|
|
578
|
+
end
|
|
579
|
+
|
|
580
|
+
response = @client_stub.make_http_request(
|
|
581
|
+
verb,
|
|
582
|
+
uri: uri,
|
|
583
|
+
body: body || "",
|
|
584
|
+
params: query_string_params,
|
|
585
|
+
method_name: "list_examples",
|
|
586
|
+
options: options
|
|
587
|
+
)
|
|
588
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
589
|
+
result = ::Google::Cloud::Ces::V1::ListExamplesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
590
|
+
catch :response do
|
|
591
|
+
yield result, operation if block_given?
|
|
592
|
+
result
|
|
593
|
+
end
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
##
|
|
597
|
+
# Baseline implementation for the get_example REST call
|
|
598
|
+
#
|
|
599
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetExampleRequest]
|
|
600
|
+
# A request object representing the call parameters. Required.
|
|
601
|
+
# @param options [::Gapic::CallOptions]
|
|
602
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
603
|
+
#
|
|
604
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
605
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Example]
|
|
606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
607
|
+
#
|
|
608
|
+
# @return [::Google::Cloud::Ces::V1::Example]
|
|
609
|
+
# A result object deserialized from the server's reply
|
|
610
|
+
def get_example request_pb, options = nil
|
|
611
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
612
|
+
|
|
613
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_example_request request_pb
|
|
614
|
+
query_string_params = if query_string_params.any?
|
|
615
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
616
|
+
else
|
|
617
|
+
{}
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
response = @client_stub.make_http_request(
|
|
621
|
+
verb,
|
|
622
|
+
uri: uri,
|
|
623
|
+
body: body || "",
|
|
624
|
+
params: query_string_params,
|
|
625
|
+
method_name: "get_example",
|
|
626
|
+
options: options
|
|
627
|
+
)
|
|
628
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
629
|
+
result = ::Google::Cloud::Ces::V1::Example.decode_json response.body, ignore_unknown_fields: true
|
|
630
|
+
catch :response do
|
|
631
|
+
yield result, operation if block_given?
|
|
632
|
+
result
|
|
633
|
+
end
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
##
|
|
637
|
+
# Baseline implementation for the create_example REST call
|
|
638
|
+
#
|
|
639
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateExampleRequest]
|
|
640
|
+
# A request object representing the call parameters. Required.
|
|
641
|
+
# @param options [::Gapic::CallOptions]
|
|
642
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
643
|
+
#
|
|
644
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
645
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Example]
|
|
646
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
647
|
+
#
|
|
648
|
+
# @return [::Google::Cloud::Ces::V1::Example]
|
|
649
|
+
# A result object deserialized from the server's reply
|
|
650
|
+
def create_example request_pb, options = nil
|
|
651
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
652
|
+
|
|
653
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_example_request request_pb
|
|
654
|
+
query_string_params = if query_string_params.any?
|
|
655
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
656
|
+
else
|
|
657
|
+
{}
|
|
658
|
+
end
|
|
659
|
+
|
|
660
|
+
response = @client_stub.make_http_request(
|
|
661
|
+
verb,
|
|
662
|
+
uri: uri,
|
|
663
|
+
body: body || "",
|
|
664
|
+
params: query_string_params,
|
|
665
|
+
method_name: "create_example",
|
|
666
|
+
options: options
|
|
667
|
+
)
|
|
668
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
669
|
+
result = ::Google::Cloud::Ces::V1::Example.decode_json response.body, ignore_unknown_fields: true
|
|
670
|
+
catch :response do
|
|
671
|
+
yield result, operation if block_given?
|
|
672
|
+
result
|
|
673
|
+
end
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
##
|
|
677
|
+
# Baseline implementation for the update_example REST call
|
|
678
|
+
#
|
|
679
|
+
# @param request_pb [::Google::Cloud::Ces::V1::UpdateExampleRequest]
|
|
680
|
+
# A request object representing the call parameters. Required.
|
|
681
|
+
# @param options [::Gapic::CallOptions]
|
|
682
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
683
|
+
#
|
|
684
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
685
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Example]
|
|
686
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
687
|
+
#
|
|
688
|
+
# @return [::Google::Cloud::Ces::V1::Example]
|
|
689
|
+
# A result object deserialized from the server's reply
|
|
690
|
+
def update_example request_pb, options = nil
|
|
691
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
692
|
+
|
|
693
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_example_request request_pb
|
|
694
|
+
query_string_params = if query_string_params.any?
|
|
695
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
696
|
+
else
|
|
697
|
+
{}
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
response = @client_stub.make_http_request(
|
|
701
|
+
verb,
|
|
702
|
+
uri: uri,
|
|
703
|
+
body: body || "",
|
|
704
|
+
params: query_string_params,
|
|
705
|
+
method_name: "update_example",
|
|
706
|
+
options: options
|
|
707
|
+
)
|
|
708
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
709
|
+
result = ::Google::Cloud::Ces::V1::Example.decode_json response.body, ignore_unknown_fields: true
|
|
710
|
+
catch :response do
|
|
711
|
+
yield result, operation if block_given?
|
|
712
|
+
result
|
|
713
|
+
end
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
##
|
|
717
|
+
# Baseline implementation for the delete_example REST call
|
|
718
|
+
#
|
|
719
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteExampleRequest]
|
|
720
|
+
# A request object representing the call parameters. Required.
|
|
721
|
+
# @param options [::Gapic::CallOptions]
|
|
722
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
723
|
+
#
|
|
724
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
725
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
726
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
727
|
+
#
|
|
728
|
+
# @return [::Google::Protobuf::Empty]
|
|
729
|
+
# A result object deserialized from the server's reply
|
|
730
|
+
def delete_example request_pb, options = nil
|
|
731
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
732
|
+
|
|
733
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_example_request request_pb
|
|
734
|
+
query_string_params = if query_string_params.any?
|
|
735
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
736
|
+
else
|
|
737
|
+
{}
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
response = @client_stub.make_http_request(
|
|
741
|
+
verb,
|
|
742
|
+
uri: uri,
|
|
743
|
+
body: body || "",
|
|
744
|
+
params: query_string_params,
|
|
745
|
+
method_name: "delete_example",
|
|
746
|
+
options: options
|
|
747
|
+
)
|
|
748
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
749
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
750
|
+
catch :response do
|
|
751
|
+
yield result, operation if block_given?
|
|
752
|
+
result
|
|
753
|
+
end
|
|
754
|
+
end
|
|
755
|
+
|
|
756
|
+
##
|
|
757
|
+
# Baseline implementation for the list_tools REST call
|
|
758
|
+
#
|
|
759
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListToolsRequest]
|
|
760
|
+
# A request object representing the call parameters. Required.
|
|
761
|
+
# @param options [::Gapic::CallOptions]
|
|
762
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
763
|
+
#
|
|
764
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
765
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::ListToolsResponse]
|
|
766
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
767
|
+
#
|
|
768
|
+
# @return [::Google::Cloud::Ces::V1::ListToolsResponse]
|
|
769
|
+
# A result object deserialized from the server's reply
|
|
770
|
+
def list_tools request_pb, options = nil
|
|
771
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
772
|
+
|
|
773
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_tools_request request_pb
|
|
774
|
+
query_string_params = if query_string_params.any?
|
|
775
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
776
|
+
else
|
|
777
|
+
{}
|
|
778
|
+
end
|
|
779
|
+
|
|
780
|
+
response = @client_stub.make_http_request(
|
|
781
|
+
verb,
|
|
782
|
+
uri: uri,
|
|
783
|
+
body: body || "",
|
|
784
|
+
params: query_string_params,
|
|
785
|
+
method_name: "list_tools",
|
|
786
|
+
options: options
|
|
787
|
+
)
|
|
788
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
789
|
+
result = ::Google::Cloud::Ces::V1::ListToolsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
790
|
+
catch :response do
|
|
791
|
+
yield result, operation if block_given?
|
|
792
|
+
result
|
|
793
|
+
end
|
|
794
|
+
end
|
|
795
|
+
|
|
796
|
+
##
|
|
797
|
+
# Baseline implementation for the get_tool REST call
|
|
798
|
+
#
|
|
799
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetToolRequest]
|
|
800
|
+
# A request object representing the call parameters. Required.
|
|
801
|
+
# @param options [::Gapic::CallOptions]
|
|
802
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
803
|
+
#
|
|
804
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
805
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Tool]
|
|
806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
807
|
+
#
|
|
808
|
+
# @return [::Google::Cloud::Ces::V1::Tool]
|
|
809
|
+
# A result object deserialized from the server's reply
|
|
810
|
+
def get_tool request_pb, options = nil
|
|
811
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
812
|
+
|
|
813
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_tool_request request_pb
|
|
814
|
+
query_string_params = if query_string_params.any?
|
|
815
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
816
|
+
else
|
|
817
|
+
{}
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
response = @client_stub.make_http_request(
|
|
821
|
+
verb,
|
|
822
|
+
uri: uri,
|
|
823
|
+
body: body || "",
|
|
824
|
+
params: query_string_params,
|
|
825
|
+
method_name: "get_tool",
|
|
826
|
+
options: options
|
|
827
|
+
)
|
|
828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
829
|
+
result = ::Google::Cloud::Ces::V1::Tool.decode_json response.body, ignore_unknown_fields: true
|
|
830
|
+
catch :response do
|
|
831
|
+
yield result, operation if block_given?
|
|
832
|
+
result
|
|
833
|
+
end
|
|
834
|
+
end
|
|
835
|
+
|
|
836
|
+
##
|
|
837
|
+
# Baseline implementation for the list_conversations REST call
|
|
838
|
+
#
|
|
839
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListConversationsRequest]
|
|
840
|
+
# A request object representing the call parameters. Required.
|
|
841
|
+
# @param options [::Gapic::CallOptions]
|
|
842
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
843
|
+
#
|
|
844
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
845
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::ListConversationsResponse]
|
|
846
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
847
|
+
#
|
|
848
|
+
# @return [::Google::Cloud::Ces::V1::ListConversationsResponse]
|
|
849
|
+
# A result object deserialized from the server's reply
|
|
850
|
+
def list_conversations request_pb, options = nil
|
|
851
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
852
|
+
|
|
853
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_conversations_request request_pb
|
|
854
|
+
query_string_params = if query_string_params.any?
|
|
855
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
856
|
+
else
|
|
857
|
+
{}
|
|
858
|
+
end
|
|
859
|
+
|
|
860
|
+
response = @client_stub.make_http_request(
|
|
861
|
+
verb,
|
|
862
|
+
uri: uri,
|
|
863
|
+
body: body || "",
|
|
864
|
+
params: query_string_params,
|
|
865
|
+
method_name: "list_conversations",
|
|
866
|
+
options: options
|
|
867
|
+
)
|
|
868
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
869
|
+
result = ::Google::Cloud::Ces::V1::ListConversationsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
870
|
+
catch :response do
|
|
871
|
+
yield result, operation if block_given?
|
|
872
|
+
result
|
|
873
|
+
end
|
|
874
|
+
end
|
|
875
|
+
|
|
876
|
+
##
|
|
877
|
+
# Baseline implementation for the get_conversation REST call
|
|
878
|
+
#
|
|
879
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetConversationRequest]
|
|
880
|
+
# A request object representing the call parameters. Required.
|
|
881
|
+
# @param options [::Gapic::CallOptions]
|
|
882
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
883
|
+
#
|
|
884
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
885
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Conversation]
|
|
886
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
887
|
+
#
|
|
888
|
+
# @return [::Google::Cloud::Ces::V1::Conversation]
|
|
889
|
+
# A result object deserialized from the server's reply
|
|
890
|
+
def get_conversation request_pb, options = nil
|
|
891
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
892
|
+
|
|
893
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_conversation_request request_pb
|
|
894
|
+
query_string_params = if query_string_params.any?
|
|
895
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
896
|
+
else
|
|
897
|
+
{}
|
|
898
|
+
end
|
|
899
|
+
|
|
900
|
+
response = @client_stub.make_http_request(
|
|
901
|
+
verb,
|
|
902
|
+
uri: uri,
|
|
903
|
+
body: body || "",
|
|
904
|
+
params: query_string_params,
|
|
905
|
+
method_name: "get_conversation",
|
|
906
|
+
options: options
|
|
907
|
+
)
|
|
908
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
909
|
+
result = ::Google::Cloud::Ces::V1::Conversation.decode_json response.body, ignore_unknown_fields: true
|
|
910
|
+
catch :response do
|
|
911
|
+
yield result, operation if block_given?
|
|
912
|
+
result
|
|
913
|
+
end
|
|
914
|
+
end
|
|
915
|
+
|
|
916
|
+
##
|
|
917
|
+
# Baseline implementation for the delete_conversation REST call
|
|
918
|
+
#
|
|
919
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteConversationRequest]
|
|
920
|
+
# A request object representing the call parameters. Required.
|
|
921
|
+
# @param options [::Gapic::CallOptions]
|
|
922
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
923
|
+
#
|
|
924
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
925
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
926
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
927
|
+
#
|
|
928
|
+
# @return [::Google::Protobuf::Empty]
|
|
929
|
+
# A result object deserialized from the server's reply
|
|
930
|
+
def delete_conversation request_pb, options = nil
|
|
931
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
932
|
+
|
|
933
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_conversation_request request_pb
|
|
934
|
+
query_string_params = if query_string_params.any?
|
|
935
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
936
|
+
else
|
|
937
|
+
{}
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
response = @client_stub.make_http_request(
|
|
941
|
+
verb,
|
|
942
|
+
uri: uri,
|
|
943
|
+
body: body || "",
|
|
944
|
+
params: query_string_params,
|
|
945
|
+
method_name: "delete_conversation",
|
|
946
|
+
options: options
|
|
947
|
+
)
|
|
948
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
949
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
950
|
+
catch :response do
|
|
951
|
+
yield result, operation if block_given?
|
|
952
|
+
result
|
|
953
|
+
end
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
##
|
|
957
|
+
# Baseline implementation for the batch_delete_conversations REST call
|
|
958
|
+
#
|
|
959
|
+
# @param request_pb [::Google::Cloud::Ces::V1::BatchDeleteConversationsRequest]
|
|
960
|
+
# A request object representing the call parameters. Required.
|
|
961
|
+
# @param options [::Gapic::CallOptions]
|
|
962
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
963
|
+
#
|
|
964
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
965
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
966
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
967
|
+
#
|
|
968
|
+
# @return [::Google::Longrunning::Operation]
|
|
969
|
+
# A result object deserialized from the server's reply
|
|
970
|
+
def batch_delete_conversations request_pb, options = nil
|
|
971
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
972
|
+
|
|
973
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_batch_delete_conversations_request request_pb
|
|
974
|
+
query_string_params = if query_string_params.any?
|
|
975
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
976
|
+
else
|
|
977
|
+
{}
|
|
978
|
+
end
|
|
979
|
+
|
|
980
|
+
response = @client_stub.make_http_request(
|
|
981
|
+
verb,
|
|
982
|
+
uri: uri,
|
|
983
|
+
body: body || "",
|
|
984
|
+
params: query_string_params,
|
|
985
|
+
method_name: "batch_delete_conversations",
|
|
986
|
+
options: options
|
|
987
|
+
)
|
|
988
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
989
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
990
|
+
catch :response do
|
|
991
|
+
yield result, operation if block_given?
|
|
992
|
+
result
|
|
993
|
+
end
|
|
994
|
+
end
|
|
995
|
+
|
|
996
|
+
##
|
|
997
|
+
# Baseline implementation for the create_tool REST call
|
|
998
|
+
#
|
|
999
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateToolRequest]
|
|
1000
|
+
# A request object representing the call parameters. Required.
|
|
1001
|
+
# @param options [::Gapic::CallOptions]
|
|
1002
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1003
|
+
#
|
|
1004
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1005
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Tool]
|
|
1006
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1007
|
+
#
|
|
1008
|
+
# @return [::Google::Cloud::Ces::V1::Tool]
|
|
1009
|
+
# A result object deserialized from the server's reply
|
|
1010
|
+
def create_tool request_pb, options = nil
|
|
1011
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1012
|
+
|
|
1013
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_tool_request request_pb
|
|
1014
|
+
query_string_params = if query_string_params.any?
|
|
1015
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1016
|
+
else
|
|
1017
|
+
{}
|
|
1018
|
+
end
|
|
1019
|
+
|
|
1020
|
+
response = @client_stub.make_http_request(
|
|
1021
|
+
verb,
|
|
1022
|
+
uri: uri,
|
|
1023
|
+
body: body || "",
|
|
1024
|
+
params: query_string_params,
|
|
1025
|
+
method_name: "create_tool",
|
|
1026
|
+
options: options
|
|
1027
|
+
)
|
|
1028
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1029
|
+
result = ::Google::Cloud::Ces::V1::Tool.decode_json response.body, ignore_unknown_fields: true
|
|
1030
|
+
catch :response do
|
|
1031
|
+
yield result, operation if block_given?
|
|
1032
|
+
result
|
|
1033
|
+
end
|
|
1034
|
+
end
|
|
1035
|
+
|
|
1036
|
+
##
|
|
1037
|
+
# Baseline implementation for the update_tool REST call
|
|
1038
|
+
#
|
|
1039
|
+
# @param request_pb [::Google::Cloud::Ces::V1::UpdateToolRequest]
|
|
1040
|
+
# A request object representing the call parameters. Required.
|
|
1041
|
+
# @param options [::Gapic::CallOptions]
|
|
1042
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1043
|
+
#
|
|
1044
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1045
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Tool]
|
|
1046
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1047
|
+
#
|
|
1048
|
+
# @return [::Google::Cloud::Ces::V1::Tool]
|
|
1049
|
+
# A result object deserialized from the server's reply
|
|
1050
|
+
def update_tool request_pb, options = nil
|
|
1051
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1052
|
+
|
|
1053
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_tool_request request_pb
|
|
1054
|
+
query_string_params = if query_string_params.any?
|
|
1055
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1056
|
+
else
|
|
1057
|
+
{}
|
|
1058
|
+
end
|
|
1059
|
+
|
|
1060
|
+
response = @client_stub.make_http_request(
|
|
1061
|
+
verb,
|
|
1062
|
+
uri: uri,
|
|
1063
|
+
body: body || "",
|
|
1064
|
+
params: query_string_params,
|
|
1065
|
+
method_name: "update_tool",
|
|
1066
|
+
options: options
|
|
1067
|
+
)
|
|
1068
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1069
|
+
result = ::Google::Cloud::Ces::V1::Tool.decode_json response.body, ignore_unknown_fields: true
|
|
1070
|
+
catch :response do
|
|
1071
|
+
yield result, operation if block_given?
|
|
1072
|
+
result
|
|
1073
|
+
end
|
|
1074
|
+
end
|
|
1075
|
+
|
|
1076
|
+
##
|
|
1077
|
+
# Baseline implementation for the delete_tool REST call
|
|
1078
|
+
#
|
|
1079
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteToolRequest]
|
|
1080
|
+
# A request object representing the call parameters. Required.
|
|
1081
|
+
# @param options [::Gapic::CallOptions]
|
|
1082
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1083
|
+
#
|
|
1084
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1085
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
1086
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1087
|
+
#
|
|
1088
|
+
# @return [::Google::Protobuf::Empty]
|
|
1089
|
+
# A result object deserialized from the server's reply
|
|
1090
|
+
def delete_tool request_pb, options = nil
|
|
1091
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1092
|
+
|
|
1093
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_tool_request request_pb
|
|
1094
|
+
query_string_params = if query_string_params.any?
|
|
1095
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1096
|
+
else
|
|
1097
|
+
{}
|
|
1098
|
+
end
|
|
1099
|
+
|
|
1100
|
+
response = @client_stub.make_http_request(
|
|
1101
|
+
verb,
|
|
1102
|
+
uri: uri,
|
|
1103
|
+
body: body || "",
|
|
1104
|
+
params: query_string_params,
|
|
1105
|
+
method_name: "delete_tool",
|
|
1106
|
+
options: options
|
|
1107
|
+
)
|
|
1108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1109
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
1110
|
+
catch :response do
|
|
1111
|
+
yield result, operation if block_given?
|
|
1112
|
+
result
|
|
1113
|
+
end
|
|
1114
|
+
end
|
|
1115
|
+
|
|
1116
|
+
##
|
|
1117
|
+
# Baseline implementation for the list_guardrails REST call
|
|
1118
|
+
#
|
|
1119
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListGuardrailsRequest]
|
|
1120
|
+
# A request object representing the call parameters. Required.
|
|
1121
|
+
# @param options [::Gapic::CallOptions]
|
|
1122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1123
|
+
#
|
|
1124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1125
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::ListGuardrailsResponse]
|
|
1126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1127
|
+
#
|
|
1128
|
+
# @return [::Google::Cloud::Ces::V1::ListGuardrailsResponse]
|
|
1129
|
+
# A result object deserialized from the server's reply
|
|
1130
|
+
def list_guardrails request_pb, options = nil
|
|
1131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1132
|
+
|
|
1133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_guardrails_request request_pb
|
|
1134
|
+
query_string_params = if query_string_params.any?
|
|
1135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1136
|
+
else
|
|
1137
|
+
{}
|
|
1138
|
+
end
|
|
1139
|
+
|
|
1140
|
+
response = @client_stub.make_http_request(
|
|
1141
|
+
verb,
|
|
1142
|
+
uri: uri,
|
|
1143
|
+
body: body || "",
|
|
1144
|
+
params: query_string_params,
|
|
1145
|
+
method_name: "list_guardrails",
|
|
1146
|
+
options: options
|
|
1147
|
+
)
|
|
1148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1149
|
+
result = ::Google::Cloud::Ces::V1::ListGuardrailsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1150
|
+
catch :response do
|
|
1151
|
+
yield result, operation if block_given?
|
|
1152
|
+
result
|
|
1153
|
+
end
|
|
1154
|
+
end
|
|
1155
|
+
|
|
1156
|
+
##
|
|
1157
|
+
# Baseline implementation for the get_guardrail REST call
|
|
1158
|
+
#
|
|
1159
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetGuardrailRequest]
|
|
1160
|
+
# A request object representing the call parameters. Required.
|
|
1161
|
+
# @param options [::Gapic::CallOptions]
|
|
1162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1163
|
+
#
|
|
1164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1165
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Guardrail]
|
|
1166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1167
|
+
#
|
|
1168
|
+
# @return [::Google::Cloud::Ces::V1::Guardrail]
|
|
1169
|
+
# A result object deserialized from the server's reply
|
|
1170
|
+
def get_guardrail request_pb, options = nil
|
|
1171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1172
|
+
|
|
1173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_guardrail_request request_pb
|
|
1174
|
+
query_string_params = if query_string_params.any?
|
|
1175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1176
|
+
else
|
|
1177
|
+
{}
|
|
1178
|
+
end
|
|
1179
|
+
|
|
1180
|
+
response = @client_stub.make_http_request(
|
|
1181
|
+
verb,
|
|
1182
|
+
uri: uri,
|
|
1183
|
+
body: body || "",
|
|
1184
|
+
params: query_string_params,
|
|
1185
|
+
method_name: "get_guardrail",
|
|
1186
|
+
options: options
|
|
1187
|
+
)
|
|
1188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1189
|
+
result = ::Google::Cloud::Ces::V1::Guardrail.decode_json response.body, ignore_unknown_fields: true
|
|
1190
|
+
catch :response do
|
|
1191
|
+
yield result, operation if block_given?
|
|
1192
|
+
result
|
|
1193
|
+
end
|
|
1194
|
+
end
|
|
1195
|
+
|
|
1196
|
+
##
|
|
1197
|
+
# Baseline implementation for the create_guardrail REST call
|
|
1198
|
+
#
|
|
1199
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateGuardrailRequest]
|
|
1200
|
+
# A request object representing the call parameters. Required.
|
|
1201
|
+
# @param options [::Gapic::CallOptions]
|
|
1202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1203
|
+
#
|
|
1204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1205
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Guardrail]
|
|
1206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1207
|
+
#
|
|
1208
|
+
# @return [::Google::Cloud::Ces::V1::Guardrail]
|
|
1209
|
+
# A result object deserialized from the server's reply
|
|
1210
|
+
def create_guardrail request_pb, options = nil
|
|
1211
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1212
|
+
|
|
1213
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_guardrail_request request_pb
|
|
1214
|
+
query_string_params = if query_string_params.any?
|
|
1215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1216
|
+
else
|
|
1217
|
+
{}
|
|
1218
|
+
end
|
|
1219
|
+
|
|
1220
|
+
response = @client_stub.make_http_request(
|
|
1221
|
+
verb,
|
|
1222
|
+
uri: uri,
|
|
1223
|
+
body: body || "",
|
|
1224
|
+
params: query_string_params,
|
|
1225
|
+
method_name: "create_guardrail",
|
|
1226
|
+
options: options
|
|
1227
|
+
)
|
|
1228
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1229
|
+
result = ::Google::Cloud::Ces::V1::Guardrail.decode_json response.body, ignore_unknown_fields: true
|
|
1230
|
+
catch :response do
|
|
1231
|
+
yield result, operation if block_given?
|
|
1232
|
+
result
|
|
1233
|
+
end
|
|
1234
|
+
end
|
|
1235
|
+
|
|
1236
|
+
##
|
|
1237
|
+
# Baseline implementation for the update_guardrail REST call
|
|
1238
|
+
#
|
|
1239
|
+
# @param request_pb [::Google::Cloud::Ces::V1::UpdateGuardrailRequest]
|
|
1240
|
+
# A request object representing the call parameters. Required.
|
|
1241
|
+
# @param options [::Gapic::CallOptions]
|
|
1242
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1243
|
+
#
|
|
1244
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1245
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Guardrail]
|
|
1246
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1247
|
+
#
|
|
1248
|
+
# @return [::Google::Cloud::Ces::V1::Guardrail]
|
|
1249
|
+
# A result object deserialized from the server's reply
|
|
1250
|
+
def update_guardrail request_pb, options = nil
|
|
1251
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1252
|
+
|
|
1253
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_guardrail_request request_pb
|
|
1254
|
+
query_string_params = if query_string_params.any?
|
|
1255
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1256
|
+
else
|
|
1257
|
+
{}
|
|
1258
|
+
end
|
|
1259
|
+
|
|
1260
|
+
response = @client_stub.make_http_request(
|
|
1261
|
+
verb,
|
|
1262
|
+
uri: uri,
|
|
1263
|
+
body: body || "",
|
|
1264
|
+
params: query_string_params,
|
|
1265
|
+
method_name: "update_guardrail",
|
|
1266
|
+
options: options
|
|
1267
|
+
)
|
|
1268
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1269
|
+
result = ::Google::Cloud::Ces::V1::Guardrail.decode_json response.body, ignore_unknown_fields: true
|
|
1270
|
+
catch :response do
|
|
1271
|
+
yield result, operation if block_given?
|
|
1272
|
+
result
|
|
1273
|
+
end
|
|
1274
|
+
end
|
|
1275
|
+
|
|
1276
|
+
##
|
|
1277
|
+
# Baseline implementation for the delete_guardrail REST call
|
|
1278
|
+
#
|
|
1279
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteGuardrailRequest]
|
|
1280
|
+
# A request object representing the call parameters. Required.
|
|
1281
|
+
# @param options [::Gapic::CallOptions]
|
|
1282
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1283
|
+
#
|
|
1284
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1285
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
1286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1287
|
+
#
|
|
1288
|
+
# @return [::Google::Protobuf::Empty]
|
|
1289
|
+
# A result object deserialized from the server's reply
|
|
1290
|
+
def delete_guardrail request_pb, options = nil
|
|
1291
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1292
|
+
|
|
1293
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_guardrail_request request_pb
|
|
1294
|
+
query_string_params = if query_string_params.any?
|
|
1295
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1296
|
+
else
|
|
1297
|
+
{}
|
|
1298
|
+
end
|
|
1299
|
+
|
|
1300
|
+
response = @client_stub.make_http_request(
|
|
1301
|
+
verb,
|
|
1302
|
+
uri: uri,
|
|
1303
|
+
body: body || "",
|
|
1304
|
+
params: query_string_params,
|
|
1305
|
+
method_name: "delete_guardrail",
|
|
1306
|
+
options: options
|
|
1307
|
+
)
|
|
1308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1309
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
1310
|
+
catch :response do
|
|
1311
|
+
yield result, operation if block_given?
|
|
1312
|
+
result
|
|
1313
|
+
end
|
|
1314
|
+
end
|
|
1315
|
+
|
|
1316
|
+
##
|
|
1317
|
+
# Baseline implementation for the list_deployments REST call
|
|
1318
|
+
#
|
|
1319
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListDeploymentsRequest]
|
|
1320
|
+
# A request object representing the call parameters. Required.
|
|
1321
|
+
# @param options [::Gapic::CallOptions]
|
|
1322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1323
|
+
#
|
|
1324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1325
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::ListDeploymentsResponse]
|
|
1326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1327
|
+
#
|
|
1328
|
+
# @return [::Google::Cloud::Ces::V1::ListDeploymentsResponse]
|
|
1329
|
+
# A result object deserialized from the server's reply
|
|
1330
|
+
def list_deployments request_pb, options = nil
|
|
1331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1332
|
+
|
|
1333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_deployments_request request_pb
|
|
1334
|
+
query_string_params = if query_string_params.any?
|
|
1335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1336
|
+
else
|
|
1337
|
+
{}
|
|
1338
|
+
end
|
|
1339
|
+
|
|
1340
|
+
response = @client_stub.make_http_request(
|
|
1341
|
+
verb,
|
|
1342
|
+
uri: uri,
|
|
1343
|
+
body: body || "",
|
|
1344
|
+
params: query_string_params,
|
|
1345
|
+
method_name: "list_deployments",
|
|
1346
|
+
options: options
|
|
1347
|
+
)
|
|
1348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1349
|
+
result = ::Google::Cloud::Ces::V1::ListDeploymentsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1350
|
+
catch :response do
|
|
1351
|
+
yield result, operation if block_given?
|
|
1352
|
+
result
|
|
1353
|
+
end
|
|
1354
|
+
end
|
|
1355
|
+
|
|
1356
|
+
##
|
|
1357
|
+
# Baseline implementation for the get_deployment REST call
|
|
1358
|
+
#
|
|
1359
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetDeploymentRequest]
|
|
1360
|
+
# A request object representing the call parameters. Required.
|
|
1361
|
+
# @param options [::Gapic::CallOptions]
|
|
1362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1363
|
+
#
|
|
1364
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1365
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Deployment]
|
|
1366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1367
|
+
#
|
|
1368
|
+
# @return [::Google::Cloud::Ces::V1::Deployment]
|
|
1369
|
+
# A result object deserialized from the server's reply
|
|
1370
|
+
def get_deployment request_pb, options = nil
|
|
1371
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1372
|
+
|
|
1373
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_deployment_request request_pb
|
|
1374
|
+
query_string_params = if query_string_params.any?
|
|
1375
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1376
|
+
else
|
|
1377
|
+
{}
|
|
1378
|
+
end
|
|
1379
|
+
|
|
1380
|
+
response = @client_stub.make_http_request(
|
|
1381
|
+
verb,
|
|
1382
|
+
uri: uri,
|
|
1383
|
+
body: body || "",
|
|
1384
|
+
params: query_string_params,
|
|
1385
|
+
method_name: "get_deployment",
|
|
1386
|
+
options: options
|
|
1387
|
+
)
|
|
1388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1389
|
+
result = ::Google::Cloud::Ces::V1::Deployment.decode_json response.body, ignore_unknown_fields: true
|
|
1390
|
+
catch :response do
|
|
1391
|
+
yield result, operation if block_given?
|
|
1392
|
+
result
|
|
1393
|
+
end
|
|
1394
|
+
end
|
|
1395
|
+
|
|
1396
|
+
##
|
|
1397
|
+
# Baseline implementation for the create_deployment REST call
|
|
1398
|
+
#
|
|
1399
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateDeploymentRequest]
|
|
1400
|
+
# A request object representing the call parameters. Required.
|
|
1401
|
+
# @param options [::Gapic::CallOptions]
|
|
1402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1403
|
+
#
|
|
1404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1405
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Deployment]
|
|
1406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1407
|
+
#
|
|
1408
|
+
# @return [::Google::Cloud::Ces::V1::Deployment]
|
|
1409
|
+
# A result object deserialized from the server's reply
|
|
1410
|
+
def create_deployment request_pb, options = nil
|
|
1411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1412
|
+
|
|
1413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_deployment_request request_pb
|
|
1414
|
+
query_string_params = if query_string_params.any?
|
|
1415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1416
|
+
else
|
|
1417
|
+
{}
|
|
1418
|
+
end
|
|
1419
|
+
|
|
1420
|
+
response = @client_stub.make_http_request(
|
|
1421
|
+
verb,
|
|
1422
|
+
uri: uri,
|
|
1423
|
+
body: body || "",
|
|
1424
|
+
params: query_string_params,
|
|
1425
|
+
method_name: "create_deployment",
|
|
1426
|
+
options: options
|
|
1427
|
+
)
|
|
1428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1429
|
+
result = ::Google::Cloud::Ces::V1::Deployment.decode_json response.body, ignore_unknown_fields: true
|
|
1430
|
+
catch :response do
|
|
1431
|
+
yield result, operation if block_given?
|
|
1432
|
+
result
|
|
1433
|
+
end
|
|
1434
|
+
end
|
|
1435
|
+
|
|
1436
|
+
##
|
|
1437
|
+
# Baseline implementation for the update_deployment REST call
|
|
1438
|
+
#
|
|
1439
|
+
# @param request_pb [::Google::Cloud::Ces::V1::UpdateDeploymentRequest]
|
|
1440
|
+
# A request object representing the call parameters. Required.
|
|
1441
|
+
# @param options [::Gapic::CallOptions]
|
|
1442
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1443
|
+
#
|
|
1444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1445
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Deployment]
|
|
1446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1447
|
+
#
|
|
1448
|
+
# @return [::Google::Cloud::Ces::V1::Deployment]
|
|
1449
|
+
# A result object deserialized from the server's reply
|
|
1450
|
+
def update_deployment request_pb, options = nil
|
|
1451
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1452
|
+
|
|
1453
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_deployment_request request_pb
|
|
1454
|
+
query_string_params = if query_string_params.any?
|
|
1455
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1456
|
+
else
|
|
1457
|
+
{}
|
|
1458
|
+
end
|
|
1459
|
+
|
|
1460
|
+
response = @client_stub.make_http_request(
|
|
1461
|
+
verb,
|
|
1462
|
+
uri: uri,
|
|
1463
|
+
body: body || "",
|
|
1464
|
+
params: query_string_params,
|
|
1465
|
+
method_name: "update_deployment",
|
|
1466
|
+
options: options
|
|
1467
|
+
)
|
|
1468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1469
|
+
result = ::Google::Cloud::Ces::V1::Deployment.decode_json response.body, ignore_unknown_fields: true
|
|
1470
|
+
catch :response do
|
|
1471
|
+
yield result, operation if block_given?
|
|
1472
|
+
result
|
|
1473
|
+
end
|
|
1474
|
+
end
|
|
1475
|
+
|
|
1476
|
+
##
|
|
1477
|
+
# Baseline implementation for the delete_deployment REST call
|
|
1478
|
+
#
|
|
1479
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteDeploymentRequest]
|
|
1480
|
+
# A request object representing the call parameters. Required.
|
|
1481
|
+
# @param options [::Gapic::CallOptions]
|
|
1482
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1483
|
+
#
|
|
1484
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1485
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
1486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1487
|
+
#
|
|
1488
|
+
# @return [::Google::Protobuf::Empty]
|
|
1489
|
+
# A result object deserialized from the server's reply
|
|
1490
|
+
def delete_deployment request_pb, options = nil
|
|
1491
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1492
|
+
|
|
1493
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_deployment_request request_pb
|
|
1494
|
+
query_string_params = if query_string_params.any?
|
|
1495
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1496
|
+
else
|
|
1497
|
+
{}
|
|
1498
|
+
end
|
|
1499
|
+
|
|
1500
|
+
response = @client_stub.make_http_request(
|
|
1501
|
+
verb,
|
|
1502
|
+
uri: uri,
|
|
1503
|
+
body: body || "",
|
|
1504
|
+
params: query_string_params,
|
|
1505
|
+
method_name: "delete_deployment",
|
|
1506
|
+
options: options
|
|
1507
|
+
)
|
|
1508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1509
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
1510
|
+
catch :response do
|
|
1511
|
+
yield result, operation if block_given?
|
|
1512
|
+
result
|
|
1513
|
+
end
|
|
1514
|
+
end
|
|
1515
|
+
|
|
1516
|
+
##
|
|
1517
|
+
# Baseline implementation for the list_toolsets REST call
|
|
1518
|
+
#
|
|
1519
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListToolsetsRequest]
|
|
1520
|
+
# A request object representing the call parameters. Required.
|
|
1521
|
+
# @param options [::Gapic::CallOptions]
|
|
1522
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1523
|
+
#
|
|
1524
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1525
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::ListToolsetsResponse]
|
|
1526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1527
|
+
#
|
|
1528
|
+
# @return [::Google::Cloud::Ces::V1::ListToolsetsResponse]
|
|
1529
|
+
# A result object deserialized from the server's reply
|
|
1530
|
+
def list_toolsets request_pb, options = nil
|
|
1531
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1532
|
+
|
|
1533
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_toolsets_request request_pb
|
|
1534
|
+
query_string_params = if query_string_params.any?
|
|
1535
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1536
|
+
else
|
|
1537
|
+
{}
|
|
1538
|
+
end
|
|
1539
|
+
|
|
1540
|
+
response = @client_stub.make_http_request(
|
|
1541
|
+
verb,
|
|
1542
|
+
uri: uri,
|
|
1543
|
+
body: body || "",
|
|
1544
|
+
params: query_string_params,
|
|
1545
|
+
method_name: "list_toolsets",
|
|
1546
|
+
options: options
|
|
1547
|
+
)
|
|
1548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1549
|
+
result = ::Google::Cloud::Ces::V1::ListToolsetsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1550
|
+
catch :response do
|
|
1551
|
+
yield result, operation if block_given?
|
|
1552
|
+
result
|
|
1553
|
+
end
|
|
1554
|
+
end
|
|
1555
|
+
|
|
1556
|
+
##
|
|
1557
|
+
# Baseline implementation for the get_toolset REST call
|
|
1558
|
+
#
|
|
1559
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetToolsetRequest]
|
|
1560
|
+
# A request object representing the call parameters. Required.
|
|
1561
|
+
# @param options [::Gapic::CallOptions]
|
|
1562
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1563
|
+
#
|
|
1564
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1565
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Toolset]
|
|
1566
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1567
|
+
#
|
|
1568
|
+
# @return [::Google::Cloud::Ces::V1::Toolset]
|
|
1569
|
+
# A result object deserialized from the server's reply
|
|
1570
|
+
def get_toolset request_pb, options = nil
|
|
1571
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1572
|
+
|
|
1573
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_toolset_request request_pb
|
|
1574
|
+
query_string_params = if query_string_params.any?
|
|
1575
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1576
|
+
else
|
|
1577
|
+
{}
|
|
1578
|
+
end
|
|
1579
|
+
|
|
1580
|
+
response = @client_stub.make_http_request(
|
|
1581
|
+
verb,
|
|
1582
|
+
uri: uri,
|
|
1583
|
+
body: body || "",
|
|
1584
|
+
params: query_string_params,
|
|
1585
|
+
method_name: "get_toolset",
|
|
1586
|
+
options: options
|
|
1587
|
+
)
|
|
1588
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1589
|
+
result = ::Google::Cloud::Ces::V1::Toolset.decode_json response.body, ignore_unknown_fields: true
|
|
1590
|
+
catch :response do
|
|
1591
|
+
yield result, operation if block_given?
|
|
1592
|
+
result
|
|
1593
|
+
end
|
|
1594
|
+
end
|
|
1595
|
+
|
|
1596
|
+
##
|
|
1597
|
+
# Baseline implementation for the create_toolset REST call
|
|
1598
|
+
#
|
|
1599
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateToolsetRequest]
|
|
1600
|
+
# A request object representing the call parameters. Required.
|
|
1601
|
+
# @param options [::Gapic::CallOptions]
|
|
1602
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1603
|
+
#
|
|
1604
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1605
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Toolset]
|
|
1606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1607
|
+
#
|
|
1608
|
+
# @return [::Google::Cloud::Ces::V1::Toolset]
|
|
1609
|
+
# A result object deserialized from the server's reply
|
|
1610
|
+
def create_toolset request_pb, options = nil
|
|
1611
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1612
|
+
|
|
1613
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_toolset_request request_pb
|
|
1614
|
+
query_string_params = if query_string_params.any?
|
|
1615
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1616
|
+
else
|
|
1617
|
+
{}
|
|
1618
|
+
end
|
|
1619
|
+
|
|
1620
|
+
response = @client_stub.make_http_request(
|
|
1621
|
+
verb,
|
|
1622
|
+
uri: uri,
|
|
1623
|
+
body: body || "",
|
|
1624
|
+
params: query_string_params,
|
|
1625
|
+
method_name: "create_toolset",
|
|
1626
|
+
options: options
|
|
1627
|
+
)
|
|
1628
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1629
|
+
result = ::Google::Cloud::Ces::V1::Toolset.decode_json response.body, ignore_unknown_fields: true
|
|
1630
|
+
catch :response do
|
|
1631
|
+
yield result, operation if block_given?
|
|
1632
|
+
result
|
|
1633
|
+
end
|
|
1634
|
+
end
|
|
1635
|
+
|
|
1636
|
+
##
|
|
1637
|
+
# Baseline implementation for the update_toolset REST call
|
|
1638
|
+
#
|
|
1639
|
+
# @param request_pb [::Google::Cloud::Ces::V1::UpdateToolsetRequest]
|
|
1640
|
+
# A request object representing the call parameters. Required.
|
|
1641
|
+
# @param options [::Gapic::CallOptions]
|
|
1642
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1643
|
+
#
|
|
1644
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1645
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Toolset]
|
|
1646
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1647
|
+
#
|
|
1648
|
+
# @return [::Google::Cloud::Ces::V1::Toolset]
|
|
1649
|
+
# A result object deserialized from the server's reply
|
|
1650
|
+
def update_toolset request_pb, options = nil
|
|
1651
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1652
|
+
|
|
1653
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_toolset_request request_pb
|
|
1654
|
+
query_string_params = if query_string_params.any?
|
|
1655
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1656
|
+
else
|
|
1657
|
+
{}
|
|
1658
|
+
end
|
|
1659
|
+
|
|
1660
|
+
response = @client_stub.make_http_request(
|
|
1661
|
+
verb,
|
|
1662
|
+
uri: uri,
|
|
1663
|
+
body: body || "",
|
|
1664
|
+
params: query_string_params,
|
|
1665
|
+
method_name: "update_toolset",
|
|
1666
|
+
options: options
|
|
1667
|
+
)
|
|
1668
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1669
|
+
result = ::Google::Cloud::Ces::V1::Toolset.decode_json response.body, ignore_unknown_fields: true
|
|
1670
|
+
catch :response do
|
|
1671
|
+
yield result, operation if block_given?
|
|
1672
|
+
result
|
|
1673
|
+
end
|
|
1674
|
+
end
|
|
1675
|
+
|
|
1676
|
+
##
|
|
1677
|
+
# Baseline implementation for the delete_toolset REST call
|
|
1678
|
+
#
|
|
1679
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteToolsetRequest]
|
|
1680
|
+
# A request object representing the call parameters. Required.
|
|
1681
|
+
# @param options [::Gapic::CallOptions]
|
|
1682
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1683
|
+
#
|
|
1684
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1685
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
1686
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1687
|
+
#
|
|
1688
|
+
# @return [::Google::Protobuf::Empty]
|
|
1689
|
+
# A result object deserialized from the server's reply
|
|
1690
|
+
def delete_toolset request_pb, options = nil
|
|
1691
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1692
|
+
|
|
1693
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_toolset_request request_pb
|
|
1694
|
+
query_string_params = if query_string_params.any?
|
|
1695
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1696
|
+
else
|
|
1697
|
+
{}
|
|
1698
|
+
end
|
|
1699
|
+
|
|
1700
|
+
response = @client_stub.make_http_request(
|
|
1701
|
+
verb,
|
|
1702
|
+
uri: uri,
|
|
1703
|
+
body: body || "",
|
|
1704
|
+
params: query_string_params,
|
|
1705
|
+
method_name: "delete_toolset",
|
|
1706
|
+
options: options
|
|
1707
|
+
)
|
|
1708
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1709
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
1710
|
+
catch :response do
|
|
1711
|
+
yield result, operation if block_given?
|
|
1712
|
+
result
|
|
1713
|
+
end
|
|
1714
|
+
end
|
|
1715
|
+
|
|
1716
|
+
##
|
|
1717
|
+
# Baseline implementation for the list_app_versions REST call
|
|
1718
|
+
#
|
|
1719
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListAppVersionsRequest]
|
|
1720
|
+
# A request object representing the call parameters. Required.
|
|
1721
|
+
# @param options [::Gapic::CallOptions]
|
|
1722
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1723
|
+
#
|
|
1724
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1725
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::ListAppVersionsResponse]
|
|
1726
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1727
|
+
#
|
|
1728
|
+
# @return [::Google::Cloud::Ces::V1::ListAppVersionsResponse]
|
|
1729
|
+
# A result object deserialized from the server's reply
|
|
1730
|
+
def list_app_versions request_pb, options = nil
|
|
1731
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1732
|
+
|
|
1733
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_app_versions_request request_pb
|
|
1734
|
+
query_string_params = if query_string_params.any?
|
|
1735
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1736
|
+
else
|
|
1737
|
+
{}
|
|
1738
|
+
end
|
|
1739
|
+
|
|
1740
|
+
response = @client_stub.make_http_request(
|
|
1741
|
+
verb,
|
|
1742
|
+
uri: uri,
|
|
1743
|
+
body: body || "",
|
|
1744
|
+
params: query_string_params,
|
|
1745
|
+
method_name: "list_app_versions",
|
|
1746
|
+
options: options
|
|
1747
|
+
)
|
|
1748
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1749
|
+
result = ::Google::Cloud::Ces::V1::ListAppVersionsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1750
|
+
catch :response do
|
|
1751
|
+
yield result, operation if block_given?
|
|
1752
|
+
result
|
|
1753
|
+
end
|
|
1754
|
+
end
|
|
1755
|
+
|
|
1756
|
+
##
|
|
1757
|
+
# Baseline implementation for the get_app_version REST call
|
|
1758
|
+
#
|
|
1759
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetAppVersionRequest]
|
|
1760
|
+
# A request object representing the call parameters. Required.
|
|
1761
|
+
# @param options [::Gapic::CallOptions]
|
|
1762
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1763
|
+
#
|
|
1764
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1765
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::AppVersion]
|
|
1766
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1767
|
+
#
|
|
1768
|
+
# @return [::Google::Cloud::Ces::V1::AppVersion]
|
|
1769
|
+
# A result object deserialized from the server's reply
|
|
1770
|
+
def get_app_version request_pb, options = nil
|
|
1771
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1772
|
+
|
|
1773
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_app_version_request request_pb
|
|
1774
|
+
query_string_params = if query_string_params.any?
|
|
1775
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1776
|
+
else
|
|
1777
|
+
{}
|
|
1778
|
+
end
|
|
1779
|
+
|
|
1780
|
+
response = @client_stub.make_http_request(
|
|
1781
|
+
verb,
|
|
1782
|
+
uri: uri,
|
|
1783
|
+
body: body || "",
|
|
1784
|
+
params: query_string_params,
|
|
1785
|
+
method_name: "get_app_version",
|
|
1786
|
+
options: options
|
|
1787
|
+
)
|
|
1788
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1789
|
+
result = ::Google::Cloud::Ces::V1::AppVersion.decode_json response.body, ignore_unknown_fields: true
|
|
1790
|
+
catch :response do
|
|
1791
|
+
yield result, operation if block_given?
|
|
1792
|
+
result
|
|
1793
|
+
end
|
|
1794
|
+
end
|
|
1795
|
+
|
|
1796
|
+
##
|
|
1797
|
+
# Baseline implementation for the create_app_version REST call
|
|
1798
|
+
#
|
|
1799
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateAppVersionRequest]
|
|
1800
|
+
# A request object representing the call parameters. Required.
|
|
1801
|
+
# @param options [::Gapic::CallOptions]
|
|
1802
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1803
|
+
#
|
|
1804
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1805
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::AppVersion]
|
|
1806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1807
|
+
#
|
|
1808
|
+
# @return [::Google::Cloud::Ces::V1::AppVersion]
|
|
1809
|
+
# A result object deserialized from the server's reply
|
|
1810
|
+
def create_app_version request_pb, options = nil
|
|
1811
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1812
|
+
|
|
1813
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_app_version_request request_pb
|
|
1814
|
+
query_string_params = if query_string_params.any?
|
|
1815
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1816
|
+
else
|
|
1817
|
+
{}
|
|
1818
|
+
end
|
|
1819
|
+
|
|
1820
|
+
response = @client_stub.make_http_request(
|
|
1821
|
+
verb,
|
|
1822
|
+
uri: uri,
|
|
1823
|
+
body: body || "",
|
|
1824
|
+
params: query_string_params,
|
|
1825
|
+
method_name: "create_app_version",
|
|
1826
|
+
options: options
|
|
1827
|
+
)
|
|
1828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1829
|
+
result = ::Google::Cloud::Ces::V1::AppVersion.decode_json response.body, ignore_unknown_fields: true
|
|
1830
|
+
catch :response do
|
|
1831
|
+
yield result, operation if block_given?
|
|
1832
|
+
result
|
|
1833
|
+
end
|
|
1834
|
+
end
|
|
1835
|
+
|
|
1836
|
+
##
|
|
1837
|
+
# Baseline implementation for the delete_app_version REST call
|
|
1838
|
+
#
|
|
1839
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteAppVersionRequest]
|
|
1840
|
+
# A request object representing the call parameters. Required.
|
|
1841
|
+
# @param options [::Gapic::CallOptions]
|
|
1842
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1843
|
+
#
|
|
1844
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1845
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
1846
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1847
|
+
#
|
|
1848
|
+
# @return [::Google::Protobuf::Empty]
|
|
1849
|
+
# A result object deserialized from the server's reply
|
|
1850
|
+
def delete_app_version request_pb, options = nil
|
|
1851
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1852
|
+
|
|
1853
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_app_version_request request_pb
|
|
1854
|
+
query_string_params = if query_string_params.any?
|
|
1855
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1856
|
+
else
|
|
1857
|
+
{}
|
|
1858
|
+
end
|
|
1859
|
+
|
|
1860
|
+
response = @client_stub.make_http_request(
|
|
1861
|
+
verb,
|
|
1862
|
+
uri: uri,
|
|
1863
|
+
body: body || "",
|
|
1864
|
+
params: query_string_params,
|
|
1865
|
+
method_name: "delete_app_version",
|
|
1866
|
+
options: options
|
|
1867
|
+
)
|
|
1868
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1869
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
1870
|
+
catch :response do
|
|
1871
|
+
yield result, operation if block_given?
|
|
1872
|
+
result
|
|
1873
|
+
end
|
|
1874
|
+
end
|
|
1875
|
+
|
|
1876
|
+
##
|
|
1877
|
+
# Baseline implementation for the restore_app_version REST call
|
|
1878
|
+
#
|
|
1879
|
+
# @param request_pb [::Google::Cloud::Ces::V1::RestoreAppVersionRequest]
|
|
1880
|
+
# A request object representing the call parameters. Required.
|
|
1881
|
+
# @param options [::Gapic::CallOptions]
|
|
1882
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1883
|
+
#
|
|
1884
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1885
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
1886
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1887
|
+
#
|
|
1888
|
+
# @return [::Google::Longrunning::Operation]
|
|
1889
|
+
# A result object deserialized from the server's reply
|
|
1890
|
+
def restore_app_version request_pb, options = nil
|
|
1891
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1892
|
+
|
|
1893
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_restore_app_version_request request_pb
|
|
1894
|
+
query_string_params = if query_string_params.any?
|
|
1895
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1896
|
+
else
|
|
1897
|
+
{}
|
|
1898
|
+
end
|
|
1899
|
+
|
|
1900
|
+
response = @client_stub.make_http_request(
|
|
1901
|
+
verb,
|
|
1902
|
+
uri: uri,
|
|
1903
|
+
body: body || "",
|
|
1904
|
+
params: query_string_params,
|
|
1905
|
+
method_name: "restore_app_version",
|
|
1906
|
+
options: options
|
|
1907
|
+
)
|
|
1908
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1909
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
1910
|
+
catch :response do
|
|
1911
|
+
yield result, operation if block_given?
|
|
1912
|
+
result
|
|
1913
|
+
end
|
|
1914
|
+
end
|
|
1915
|
+
|
|
1916
|
+
##
|
|
1917
|
+
# Baseline implementation for the list_changelogs REST call
|
|
1918
|
+
#
|
|
1919
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListChangelogsRequest]
|
|
1920
|
+
# A request object representing the call parameters. Required.
|
|
1921
|
+
# @param options [::Gapic::CallOptions]
|
|
1922
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1923
|
+
#
|
|
1924
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1925
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::ListChangelogsResponse]
|
|
1926
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1927
|
+
#
|
|
1928
|
+
# @return [::Google::Cloud::Ces::V1::ListChangelogsResponse]
|
|
1929
|
+
# A result object deserialized from the server's reply
|
|
1930
|
+
def list_changelogs request_pb, options = nil
|
|
1931
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1932
|
+
|
|
1933
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_changelogs_request request_pb
|
|
1934
|
+
query_string_params = if query_string_params.any?
|
|
1935
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1936
|
+
else
|
|
1937
|
+
{}
|
|
1938
|
+
end
|
|
1939
|
+
|
|
1940
|
+
response = @client_stub.make_http_request(
|
|
1941
|
+
verb,
|
|
1942
|
+
uri: uri,
|
|
1943
|
+
body: body || "",
|
|
1944
|
+
params: query_string_params,
|
|
1945
|
+
method_name: "list_changelogs",
|
|
1946
|
+
options: options
|
|
1947
|
+
)
|
|
1948
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1949
|
+
result = ::Google::Cloud::Ces::V1::ListChangelogsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1950
|
+
catch :response do
|
|
1951
|
+
yield result, operation if block_given?
|
|
1952
|
+
result
|
|
1953
|
+
end
|
|
1954
|
+
end
|
|
1955
|
+
|
|
1956
|
+
##
|
|
1957
|
+
# Baseline implementation for the get_changelog REST call
|
|
1958
|
+
#
|
|
1959
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetChangelogRequest]
|
|
1960
|
+
# A request object representing the call parameters. Required.
|
|
1961
|
+
# @param options [::Gapic::CallOptions]
|
|
1962
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1963
|
+
#
|
|
1964
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1965
|
+
# @yieldparam result [::Google::Cloud::Ces::V1::Changelog]
|
|
1966
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1967
|
+
#
|
|
1968
|
+
# @return [::Google::Cloud::Ces::V1::Changelog]
|
|
1969
|
+
# A result object deserialized from the server's reply
|
|
1970
|
+
def get_changelog request_pb, options = nil
|
|
1971
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1972
|
+
|
|
1973
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_changelog_request request_pb
|
|
1974
|
+
query_string_params = if query_string_params.any?
|
|
1975
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1976
|
+
else
|
|
1977
|
+
{}
|
|
1978
|
+
end
|
|
1979
|
+
|
|
1980
|
+
response = @client_stub.make_http_request(
|
|
1981
|
+
verb,
|
|
1982
|
+
uri: uri,
|
|
1983
|
+
body: body || "",
|
|
1984
|
+
params: query_string_params,
|
|
1985
|
+
method_name: "get_changelog",
|
|
1986
|
+
options: options
|
|
1987
|
+
)
|
|
1988
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1989
|
+
result = ::Google::Cloud::Ces::V1::Changelog.decode_json response.body, ignore_unknown_fields: true
|
|
1990
|
+
catch :response do
|
|
1991
|
+
yield result, operation if block_given?
|
|
1992
|
+
result
|
|
1993
|
+
end
|
|
1994
|
+
end
|
|
1995
|
+
|
|
1996
|
+
##
|
|
1997
|
+
# @private
|
|
1998
|
+
#
|
|
1999
|
+
# GRPC transcoding helper method for the list_apps REST call
|
|
2000
|
+
#
|
|
2001
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListAppsRequest]
|
|
2002
|
+
# A request object representing the call parameters. Required.
|
|
2003
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2004
|
+
# Uri, Body, Query string parameters
|
|
2005
|
+
def self.transcode_list_apps_request request_pb
|
|
2006
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2007
|
+
.with_bindings(
|
|
2008
|
+
uri_method: :get,
|
|
2009
|
+
uri_template: "/v1/{parent}/apps",
|
|
2010
|
+
matches: [
|
|
2011
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
2012
|
+
]
|
|
2013
|
+
)
|
|
2014
|
+
transcoder.transcode request_pb
|
|
2015
|
+
end
|
|
2016
|
+
|
|
2017
|
+
##
|
|
2018
|
+
# @private
|
|
2019
|
+
#
|
|
2020
|
+
# GRPC transcoding helper method for the get_app REST call
|
|
2021
|
+
#
|
|
2022
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetAppRequest]
|
|
2023
|
+
# A request object representing the call parameters. Required.
|
|
2024
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2025
|
+
# Uri, Body, Query string parameters
|
|
2026
|
+
def self.transcode_get_app_request request_pb
|
|
2027
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2028
|
+
.with_bindings(
|
|
2029
|
+
uri_method: :get,
|
|
2030
|
+
uri_template: "/v1/{name}",
|
|
2031
|
+
matches: [
|
|
2032
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2033
|
+
]
|
|
2034
|
+
)
|
|
2035
|
+
transcoder.transcode request_pb
|
|
2036
|
+
end
|
|
2037
|
+
|
|
2038
|
+
##
|
|
2039
|
+
# @private
|
|
2040
|
+
#
|
|
2041
|
+
# GRPC transcoding helper method for the create_app REST call
|
|
2042
|
+
#
|
|
2043
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateAppRequest]
|
|
2044
|
+
# A request object representing the call parameters. Required.
|
|
2045
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2046
|
+
# Uri, Body, Query string parameters
|
|
2047
|
+
def self.transcode_create_app_request request_pb
|
|
2048
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2049
|
+
.with_bindings(
|
|
2050
|
+
uri_method: :post,
|
|
2051
|
+
uri_template: "/v1/{parent}/apps",
|
|
2052
|
+
body: "app",
|
|
2053
|
+
matches: [
|
|
2054
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
2055
|
+
]
|
|
2056
|
+
)
|
|
2057
|
+
transcoder.transcode request_pb
|
|
2058
|
+
end
|
|
2059
|
+
|
|
2060
|
+
##
|
|
2061
|
+
# @private
|
|
2062
|
+
#
|
|
2063
|
+
# GRPC transcoding helper method for the update_app REST call
|
|
2064
|
+
#
|
|
2065
|
+
# @param request_pb [::Google::Cloud::Ces::V1::UpdateAppRequest]
|
|
2066
|
+
# A request object representing the call parameters. Required.
|
|
2067
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2068
|
+
# Uri, Body, Query string parameters
|
|
2069
|
+
def self.transcode_update_app_request request_pb
|
|
2070
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2071
|
+
.with_bindings(
|
|
2072
|
+
uri_method: :patch,
|
|
2073
|
+
uri_template: "/v1/{app.name}",
|
|
2074
|
+
body: "app",
|
|
2075
|
+
matches: [
|
|
2076
|
+
["app.name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2077
|
+
]
|
|
2078
|
+
)
|
|
2079
|
+
transcoder.transcode request_pb
|
|
2080
|
+
end
|
|
2081
|
+
|
|
2082
|
+
##
|
|
2083
|
+
# @private
|
|
2084
|
+
#
|
|
2085
|
+
# GRPC transcoding helper method for the delete_app REST call
|
|
2086
|
+
#
|
|
2087
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteAppRequest]
|
|
2088
|
+
# A request object representing the call parameters. Required.
|
|
2089
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2090
|
+
# Uri, Body, Query string parameters
|
|
2091
|
+
def self.transcode_delete_app_request request_pb
|
|
2092
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2093
|
+
.with_bindings(
|
|
2094
|
+
uri_method: :delete,
|
|
2095
|
+
uri_template: "/v1/{name}",
|
|
2096
|
+
matches: [
|
|
2097
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2098
|
+
]
|
|
2099
|
+
)
|
|
2100
|
+
transcoder.transcode request_pb
|
|
2101
|
+
end
|
|
2102
|
+
|
|
2103
|
+
##
|
|
2104
|
+
# @private
|
|
2105
|
+
#
|
|
2106
|
+
# GRPC transcoding helper method for the export_app REST call
|
|
2107
|
+
#
|
|
2108
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ExportAppRequest]
|
|
2109
|
+
# A request object representing the call parameters. Required.
|
|
2110
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2111
|
+
# Uri, Body, Query string parameters
|
|
2112
|
+
def self.transcode_export_app_request request_pb
|
|
2113
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2114
|
+
.with_bindings(
|
|
2115
|
+
uri_method: :post,
|
|
2116
|
+
uri_template: "/v1/{name}:exportApp",
|
|
2117
|
+
body: "*",
|
|
2118
|
+
matches: [
|
|
2119
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2120
|
+
]
|
|
2121
|
+
)
|
|
2122
|
+
transcoder.transcode request_pb
|
|
2123
|
+
end
|
|
2124
|
+
|
|
2125
|
+
##
|
|
2126
|
+
# @private
|
|
2127
|
+
#
|
|
2128
|
+
# GRPC transcoding helper method for the import_app REST call
|
|
2129
|
+
#
|
|
2130
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ImportAppRequest]
|
|
2131
|
+
# A request object representing the call parameters. Required.
|
|
2132
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2133
|
+
# Uri, Body, Query string parameters
|
|
2134
|
+
def self.transcode_import_app_request request_pb
|
|
2135
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2136
|
+
.with_bindings(
|
|
2137
|
+
uri_method: :post,
|
|
2138
|
+
uri_template: "/v1/{parent}/apps:importApp",
|
|
2139
|
+
body: "*",
|
|
2140
|
+
matches: [
|
|
2141
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
|
2142
|
+
]
|
|
2143
|
+
)
|
|
2144
|
+
transcoder.transcode request_pb
|
|
2145
|
+
end
|
|
2146
|
+
|
|
2147
|
+
##
|
|
2148
|
+
# @private
|
|
2149
|
+
#
|
|
2150
|
+
# GRPC transcoding helper method for the list_agents REST call
|
|
2151
|
+
#
|
|
2152
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListAgentsRequest]
|
|
2153
|
+
# A request object representing the call parameters. Required.
|
|
2154
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2155
|
+
# Uri, Body, Query string parameters
|
|
2156
|
+
def self.transcode_list_agents_request request_pb
|
|
2157
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2158
|
+
.with_bindings(
|
|
2159
|
+
uri_method: :get,
|
|
2160
|
+
uri_template: "/v1/{parent}/agents",
|
|
2161
|
+
matches: [
|
|
2162
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2163
|
+
]
|
|
2164
|
+
)
|
|
2165
|
+
transcoder.transcode request_pb
|
|
2166
|
+
end
|
|
2167
|
+
|
|
2168
|
+
##
|
|
2169
|
+
# @private
|
|
2170
|
+
#
|
|
2171
|
+
# GRPC transcoding helper method for the get_agent REST call
|
|
2172
|
+
#
|
|
2173
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetAgentRequest]
|
|
2174
|
+
# A request object representing the call parameters. Required.
|
|
2175
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2176
|
+
# Uri, Body, Query string parameters
|
|
2177
|
+
def self.transcode_get_agent_request request_pb
|
|
2178
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2179
|
+
.with_bindings(
|
|
2180
|
+
uri_method: :get,
|
|
2181
|
+
uri_template: "/v1/{name}",
|
|
2182
|
+
matches: [
|
|
2183
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+/?$}, false]
|
|
2184
|
+
]
|
|
2185
|
+
)
|
|
2186
|
+
transcoder.transcode request_pb
|
|
2187
|
+
end
|
|
2188
|
+
|
|
2189
|
+
##
|
|
2190
|
+
# @private
|
|
2191
|
+
#
|
|
2192
|
+
# GRPC transcoding helper method for the create_agent REST call
|
|
2193
|
+
#
|
|
2194
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateAgentRequest]
|
|
2195
|
+
# A request object representing the call parameters. Required.
|
|
2196
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2197
|
+
# Uri, Body, Query string parameters
|
|
2198
|
+
def self.transcode_create_agent_request request_pb
|
|
2199
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2200
|
+
.with_bindings(
|
|
2201
|
+
uri_method: :post,
|
|
2202
|
+
uri_template: "/v1/{parent}/agents",
|
|
2203
|
+
body: "agent",
|
|
2204
|
+
matches: [
|
|
2205
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2206
|
+
]
|
|
2207
|
+
)
|
|
2208
|
+
transcoder.transcode request_pb
|
|
2209
|
+
end
|
|
2210
|
+
|
|
2211
|
+
##
|
|
2212
|
+
# @private
|
|
2213
|
+
#
|
|
2214
|
+
# GRPC transcoding helper method for the update_agent REST call
|
|
2215
|
+
#
|
|
2216
|
+
# @param request_pb [::Google::Cloud::Ces::V1::UpdateAgentRequest]
|
|
2217
|
+
# A request object representing the call parameters. Required.
|
|
2218
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2219
|
+
# Uri, Body, Query string parameters
|
|
2220
|
+
def self.transcode_update_agent_request request_pb
|
|
2221
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2222
|
+
.with_bindings(
|
|
2223
|
+
uri_method: :patch,
|
|
2224
|
+
uri_template: "/v1/{agent.name}",
|
|
2225
|
+
body: "agent",
|
|
2226
|
+
matches: [
|
|
2227
|
+
["agent.name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+/?$}, false]
|
|
2228
|
+
]
|
|
2229
|
+
)
|
|
2230
|
+
transcoder.transcode request_pb
|
|
2231
|
+
end
|
|
2232
|
+
|
|
2233
|
+
##
|
|
2234
|
+
# @private
|
|
2235
|
+
#
|
|
2236
|
+
# GRPC transcoding helper method for the delete_agent REST call
|
|
2237
|
+
#
|
|
2238
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteAgentRequest]
|
|
2239
|
+
# A request object representing the call parameters. Required.
|
|
2240
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2241
|
+
# Uri, Body, Query string parameters
|
|
2242
|
+
def self.transcode_delete_agent_request request_pb
|
|
2243
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2244
|
+
.with_bindings(
|
|
2245
|
+
uri_method: :delete,
|
|
2246
|
+
uri_template: "/v1/{name}",
|
|
2247
|
+
matches: [
|
|
2248
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+/?$}, false]
|
|
2249
|
+
]
|
|
2250
|
+
)
|
|
2251
|
+
transcoder.transcode request_pb
|
|
2252
|
+
end
|
|
2253
|
+
|
|
2254
|
+
##
|
|
2255
|
+
# @private
|
|
2256
|
+
#
|
|
2257
|
+
# GRPC transcoding helper method for the list_examples REST call
|
|
2258
|
+
#
|
|
2259
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListExamplesRequest]
|
|
2260
|
+
# A request object representing the call parameters. Required.
|
|
2261
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2262
|
+
# Uri, Body, Query string parameters
|
|
2263
|
+
def self.transcode_list_examples_request request_pb
|
|
2264
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2265
|
+
.with_bindings(
|
|
2266
|
+
uri_method: :get,
|
|
2267
|
+
uri_template: "/v1/{parent}/examples",
|
|
2268
|
+
matches: [
|
|
2269
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2270
|
+
]
|
|
2271
|
+
)
|
|
2272
|
+
transcoder.transcode request_pb
|
|
2273
|
+
end
|
|
2274
|
+
|
|
2275
|
+
##
|
|
2276
|
+
# @private
|
|
2277
|
+
#
|
|
2278
|
+
# GRPC transcoding helper method for the get_example REST call
|
|
2279
|
+
#
|
|
2280
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetExampleRequest]
|
|
2281
|
+
# A request object representing the call parameters. Required.
|
|
2282
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2283
|
+
# Uri, Body, Query string parameters
|
|
2284
|
+
def self.transcode_get_example_request request_pb
|
|
2285
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2286
|
+
.with_bindings(
|
|
2287
|
+
uri_method: :get,
|
|
2288
|
+
uri_template: "/v1/{name}",
|
|
2289
|
+
matches: [
|
|
2290
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+/?$}, false]
|
|
2291
|
+
]
|
|
2292
|
+
)
|
|
2293
|
+
transcoder.transcode request_pb
|
|
2294
|
+
end
|
|
2295
|
+
|
|
2296
|
+
##
|
|
2297
|
+
# @private
|
|
2298
|
+
#
|
|
2299
|
+
# GRPC transcoding helper method for the create_example REST call
|
|
2300
|
+
#
|
|
2301
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateExampleRequest]
|
|
2302
|
+
# A request object representing the call parameters. Required.
|
|
2303
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2304
|
+
# Uri, Body, Query string parameters
|
|
2305
|
+
def self.transcode_create_example_request request_pb
|
|
2306
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2307
|
+
.with_bindings(
|
|
2308
|
+
uri_method: :post,
|
|
2309
|
+
uri_template: "/v1/{parent}/examples",
|
|
2310
|
+
body: "example",
|
|
2311
|
+
matches: [
|
|
2312
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2313
|
+
]
|
|
2314
|
+
)
|
|
2315
|
+
transcoder.transcode request_pb
|
|
2316
|
+
end
|
|
2317
|
+
|
|
2318
|
+
##
|
|
2319
|
+
# @private
|
|
2320
|
+
#
|
|
2321
|
+
# GRPC transcoding helper method for the update_example REST call
|
|
2322
|
+
#
|
|
2323
|
+
# @param request_pb [::Google::Cloud::Ces::V1::UpdateExampleRequest]
|
|
2324
|
+
# A request object representing the call parameters. Required.
|
|
2325
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2326
|
+
# Uri, Body, Query string parameters
|
|
2327
|
+
def self.transcode_update_example_request request_pb
|
|
2328
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2329
|
+
.with_bindings(
|
|
2330
|
+
uri_method: :patch,
|
|
2331
|
+
uri_template: "/v1/{example.name}",
|
|
2332
|
+
body: "example",
|
|
2333
|
+
matches: [
|
|
2334
|
+
["example.name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+/?$}, false]
|
|
2335
|
+
]
|
|
2336
|
+
)
|
|
2337
|
+
transcoder.transcode request_pb
|
|
2338
|
+
end
|
|
2339
|
+
|
|
2340
|
+
##
|
|
2341
|
+
# @private
|
|
2342
|
+
#
|
|
2343
|
+
# GRPC transcoding helper method for the delete_example REST call
|
|
2344
|
+
#
|
|
2345
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteExampleRequest]
|
|
2346
|
+
# A request object representing the call parameters. Required.
|
|
2347
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2348
|
+
# Uri, Body, Query string parameters
|
|
2349
|
+
def self.transcode_delete_example_request request_pb
|
|
2350
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2351
|
+
.with_bindings(
|
|
2352
|
+
uri_method: :delete,
|
|
2353
|
+
uri_template: "/v1/{name}",
|
|
2354
|
+
matches: [
|
|
2355
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+/?$}, false]
|
|
2356
|
+
]
|
|
2357
|
+
)
|
|
2358
|
+
transcoder.transcode request_pb
|
|
2359
|
+
end
|
|
2360
|
+
|
|
2361
|
+
##
|
|
2362
|
+
# @private
|
|
2363
|
+
#
|
|
2364
|
+
# GRPC transcoding helper method for the list_tools REST call
|
|
2365
|
+
#
|
|
2366
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListToolsRequest]
|
|
2367
|
+
# A request object representing the call parameters. Required.
|
|
2368
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2369
|
+
# Uri, Body, Query string parameters
|
|
2370
|
+
def self.transcode_list_tools_request request_pb
|
|
2371
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2372
|
+
.with_bindings(
|
|
2373
|
+
uri_method: :get,
|
|
2374
|
+
uri_template: "/v1/{parent}/tools",
|
|
2375
|
+
matches: [
|
|
2376
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2377
|
+
]
|
|
2378
|
+
)
|
|
2379
|
+
transcoder.transcode request_pb
|
|
2380
|
+
end
|
|
2381
|
+
|
|
2382
|
+
##
|
|
2383
|
+
# @private
|
|
2384
|
+
#
|
|
2385
|
+
# GRPC transcoding helper method for the get_tool REST call
|
|
2386
|
+
#
|
|
2387
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetToolRequest]
|
|
2388
|
+
# A request object representing the call parameters. Required.
|
|
2389
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2390
|
+
# Uri, Body, Query string parameters
|
|
2391
|
+
def self.transcode_get_tool_request request_pb
|
|
2392
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2393
|
+
.with_bindings(
|
|
2394
|
+
uri_method: :get,
|
|
2395
|
+
uri_template: "/v1/{name}",
|
|
2396
|
+
matches: [
|
|
2397
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+/?$}, false]
|
|
2398
|
+
]
|
|
2399
|
+
)
|
|
2400
|
+
transcoder.transcode request_pb
|
|
2401
|
+
end
|
|
2402
|
+
|
|
2403
|
+
##
|
|
2404
|
+
# @private
|
|
2405
|
+
#
|
|
2406
|
+
# GRPC transcoding helper method for the list_conversations REST call
|
|
2407
|
+
#
|
|
2408
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListConversationsRequest]
|
|
2409
|
+
# A request object representing the call parameters. Required.
|
|
2410
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2411
|
+
# Uri, Body, Query string parameters
|
|
2412
|
+
def self.transcode_list_conversations_request request_pb
|
|
2413
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2414
|
+
.with_bindings(
|
|
2415
|
+
uri_method: :get,
|
|
2416
|
+
uri_template: "/v1/{parent}/conversations",
|
|
2417
|
+
matches: [
|
|
2418
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2419
|
+
]
|
|
2420
|
+
)
|
|
2421
|
+
transcoder.transcode request_pb
|
|
2422
|
+
end
|
|
2423
|
+
|
|
2424
|
+
##
|
|
2425
|
+
# @private
|
|
2426
|
+
#
|
|
2427
|
+
# GRPC transcoding helper method for the get_conversation REST call
|
|
2428
|
+
#
|
|
2429
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetConversationRequest]
|
|
2430
|
+
# A request object representing the call parameters. Required.
|
|
2431
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2432
|
+
# Uri, Body, Query string parameters
|
|
2433
|
+
def self.transcode_get_conversation_request request_pb
|
|
2434
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2435
|
+
.with_bindings(
|
|
2436
|
+
uri_method: :get,
|
|
2437
|
+
uri_template: "/v1/{name}",
|
|
2438
|
+
matches: [
|
|
2439
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+/?$}, false]
|
|
2440
|
+
]
|
|
2441
|
+
)
|
|
2442
|
+
transcoder.transcode request_pb
|
|
2443
|
+
end
|
|
2444
|
+
|
|
2445
|
+
##
|
|
2446
|
+
# @private
|
|
2447
|
+
#
|
|
2448
|
+
# GRPC transcoding helper method for the delete_conversation REST call
|
|
2449
|
+
#
|
|
2450
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteConversationRequest]
|
|
2451
|
+
# A request object representing the call parameters. Required.
|
|
2452
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2453
|
+
# Uri, Body, Query string parameters
|
|
2454
|
+
def self.transcode_delete_conversation_request request_pb
|
|
2455
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2456
|
+
.with_bindings(
|
|
2457
|
+
uri_method: :delete,
|
|
2458
|
+
uri_template: "/v1/{name}",
|
|
2459
|
+
matches: [
|
|
2460
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+/?$}, false]
|
|
2461
|
+
]
|
|
2462
|
+
)
|
|
2463
|
+
transcoder.transcode request_pb
|
|
2464
|
+
end
|
|
2465
|
+
|
|
2466
|
+
##
|
|
2467
|
+
# @private
|
|
2468
|
+
#
|
|
2469
|
+
# GRPC transcoding helper method for the batch_delete_conversations REST call
|
|
2470
|
+
#
|
|
2471
|
+
# @param request_pb [::Google::Cloud::Ces::V1::BatchDeleteConversationsRequest]
|
|
2472
|
+
# A request object representing the call parameters. Required.
|
|
2473
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2474
|
+
# Uri, Body, Query string parameters
|
|
2475
|
+
def self.transcode_batch_delete_conversations_request request_pb
|
|
2476
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2477
|
+
.with_bindings(
|
|
2478
|
+
uri_method: :post,
|
|
2479
|
+
uri_template: "/v1/{parent}/conversations:batchDelete",
|
|
2480
|
+
body: "*",
|
|
2481
|
+
matches: [
|
|
2482
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2483
|
+
]
|
|
2484
|
+
)
|
|
2485
|
+
transcoder.transcode request_pb
|
|
2486
|
+
end
|
|
2487
|
+
|
|
2488
|
+
##
|
|
2489
|
+
# @private
|
|
2490
|
+
#
|
|
2491
|
+
# GRPC transcoding helper method for the create_tool REST call
|
|
2492
|
+
#
|
|
2493
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateToolRequest]
|
|
2494
|
+
# A request object representing the call parameters. Required.
|
|
2495
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2496
|
+
# Uri, Body, Query string parameters
|
|
2497
|
+
def self.transcode_create_tool_request request_pb
|
|
2498
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2499
|
+
.with_bindings(
|
|
2500
|
+
uri_method: :post,
|
|
2501
|
+
uri_template: "/v1/{parent}/tools",
|
|
2502
|
+
body: "tool",
|
|
2503
|
+
matches: [
|
|
2504
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2505
|
+
]
|
|
2506
|
+
)
|
|
2507
|
+
transcoder.transcode request_pb
|
|
2508
|
+
end
|
|
2509
|
+
|
|
2510
|
+
##
|
|
2511
|
+
# @private
|
|
2512
|
+
#
|
|
2513
|
+
# GRPC transcoding helper method for the update_tool REST call
|
|
2514
|
+
#
|
|
2515
|
+
# @param request_pb [::Google::Cloud::Ces::V1::UpdateToolRequest]
|
|
2516
|
+
# A request object representing the call parameters. Required.
|
|
2517
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2518
|
+
# Uri, Body, Query string parameters
|
|
2519
|
+
def self.transcode_update_tool_request request_pb
|
|
2520
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2521
|
+
.with_bindings(
|
|
2522
|
+
uri_method: :patch,
|
|
2523
|
+
uri_template: "/v1/{tool.name}",
|
|
2524
|
+
body: "tool",
|
|
2525
|
+
matches: [
|
|
2526
|
+
["tool.name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+/?$}, false]
|
|
2527
|
+
]
|
|
2528
|
+
)
|
|
2529
|
+
transcoder.transcode request_pb
|
|
2530
|
+
end
|
|
2531
|
+
|
|
2532
|
+
##
|
|
2533
|
+
# @private
|
|
2534
|
+
#
|
|
2535
|
+
# GRPC transcoding helper method for the delete_tool REST call
|
|
2536
|
+
#
|
|
2537
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteToolRequest]
|
|
2538
|
+
# A request object representing the call parameters. Required.
|
|
2539
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2540
|
+
# Uri, Body, Query string parameters
|
|
2541
|
+
def self.transcode_delete_tool_request request_pb
|
|
2542
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2543
|
+
.with_bindings(
|
|
2544
|
+
uri_method: :delete,
|
|
2545
|
+
uri_template: "/v1/{name}",
|
|
2546
|
+
matches: [
|
|
2547
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+/?$}, false]
|
|
2548
|
+
]
|
|
2549
|
+
)
|
|
2550
|
+
transcoder.transcode request_pb
|
|
2551
|
+
end
|
|
2552
|
+
|
|
2553
|
+
##
|
|
2554
|
+
# @private
|
|
2555
|
+
#
|
|
2556
|
+
# GRPC transcoding helper method for the list_guardrails REST call
|
|
2557
|
+
#
|
|
2558
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListGuardrailsRequest]
|
|
2559
|
+
# A request object representing the call parameters. Required.
|
|
2560
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2561
|
+
# Uri, Body, Query string parameters
|
|
2562
|
+
def self.transcode_list_guardrails_request request_pb
|
|
2563
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2564
|
+
.with_bindings(
|
|
2565
|
+
uri_method: :get,
|
|
2566
|
+
uri_template: "/v1/{parent}/guardrails",
|
|
2567
|
+
matches: [
|
|
2568
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2569
|
+
]
|
|
2570
|
+
)
|
|
2571
|
+
transcoder.transcode request_pb
|
|
2572
|
+
end
|
|
2573
|
+
|
|
2574
|
+
##
|
|
2575
|
+
# @private
|
|
2576
|
+
#
|
|
2577
|
+
# GRPC transcoding helper method for the get_guardrail REST call
|
|
2578
|
+
#
|
|
2579
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetGuardrailRequest]
|
|
2580
|
+
# A request object representing the call parameters. Required.
|
|
2581
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2582
|
+
# Uri, Body, Query string parameters
|
|
2583
|
+
def self.transcode_get_guardrail_request request_pb
|
|
2584
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2585
|
+
.with_bindings(
|
|
2586
|
+
uri_method: :get,
|
|
2587
|
+
uri_template: "/v1/{name}",
|
|
2588
|
+
matches: [
|
|
2589
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+/?$}, false]
|
|
2590
|
+
]
|
|
2591
|
+
)
|
|
2592
|
+
transcoder.transcode request_pb
|
|
2593
|
+
end
|
|
2594
|
+
|
|
2595
|
+
##
|
|
2596
|
+
# @private
|
|
2597
|
+
#
|
|
2598
|
+
# GRPC transcoding helper method for the create_guardrail REST call
|
|
2599
|
+
#
|
|
2600
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateGuardrailRequest]
|
|
2601
|
+
# A request object representing the call parameters. Required.
|
|
2602
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2603
|
+
# Uri, Body, Query string parameters
|
|
2604
|
+
def self.transcode_create_guardrail_request request_pb
|
|
2605
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2606
|
+
.with_bindings(
|
|
2607
|
+
uri_method: :post,
|
|
2608
|
+
uri_template: "/v1/{parent}/guardrails",
|
|
2609
|
+
body: "guardrail",
|
|
2610
|
+
matches: [
|
|
2611
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2612
|
+
]
|
|
2613
|
+
)
|
|
2614
|
+
transcoder.transcode request_pb
|
|
2615
|
+
end
|
|
2616
|
+
|
|
2617
|
+
##
|
|
2618
|
+
# @private
|
|
2619
|
+
#
|
|
2620
|
+
# GRPC transcoding helper method for the update_guardrail REST call
|
|
2621
|
+
#
|
|
2622
|
+
# @param request_pb [::Google::Cloud::Ces::V1::UpdateGuardrailRequest]
|
|
2623
|
+
# A request object representing the call parameters. Required.
|
|
2624
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2625
|
+
# Uri, Body, Query string parameters
|
|
2626
|
+
def self.transcode_update_guardrail_request request_pb
|
|
2627
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2628
|
+
.with_bindings(
|
|
2629
|
+
uri_method: :patch,
|
|
2630
|
+
uri_template: "/v1/{guardrail.name}",
|
|
2631
|
+
body: "guardrail",
|
|
2632
|
+
matches: [
|
|
2633
|
+
["guardrail.name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+/?$}, false]
|
|
2634
|
+
]
|
|
2635
|
+
)
|
|
2636
|
+
transcoder.transcode request_pb
|
|
2637
|
+
end
|
|
2638
|
+
|
|
2639
|
+
##
|
|
2640
|
+
# @private
|
|
2641
|
+
#
|
|
2642
|
+
# GRPC transcoding helper method for the delete_guardrail REST call
|
|
2643
|
+
#
|
|
2644
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteGuardrailRequest]
|
|
2645
|
+
# A request object representing the call parameters. Required.
|
|
2646
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2647
|
+
# Uri, Body, Query string parameters
|
|
2648
|
+
def self.transcode_delete_guardrail_request request_pb
|
|
2649
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2650
|
+
.with_bindings(
|
|
2651
|
+
uri_method: :delete,
|
|
2652
|
+
uri_template: "/v1/{name}",
|
|
2653
|
+
matches: [
|
|
2654
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+/?$}, false]
|
|
2655
|
+
]
|
|
2656
|
+
)
|
|
2657
|
+
transcoder.transcode request_pb
|
|
2658
|
+
end
|
|
2659
|
+
|
|
2660
|
+
##
|
|
2661
|
+
# @private
|
|
2662
|
+
#
|
|
2663
|
+
# GRPC transcoding helper method for the list_deployments REST call
|
|
2664
|
+
#
|
|
2665
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListDeploymentsRequest]
|
|
2666
|
+
# A request object representing the call parameters. Required.
|
|
2667
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2668
|
+
# Uri, Body, Query string parameters
|
|
2669
|
+
def self.transcode_list_deployments_request request_pb
|
|
2670
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2671
|
+
.with_bindings(
|
|
2672
|
+
uri_method: :get,
|
|
2673
|
+
uri_template: "/v1/{parent}/deployments",
|
|
2674
|
+
matches: [
|
|
2675
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2676
|
+
]
|
|
2677
|
+
)
|
|
2678
|
+
transcoder.transcode request_pb
|
|
2679
|
+
end
|
|
2680
|
+
|
|
2681
|
+
##
|
|
2682
|
+
# @private
|
|
2683
|
+
#
|
|
2684
|
+
# GRPC transcoding helper method for the get_deployment REST call
|
|
2685
|
+
#
|
|
2686
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetDeploymentRequest]
|
|
2687
|
+
# A request object representing the call parameters. Required.
|
|
2688
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2689
|
+
# Uri, Body, Query string parameters
|
|
2690
|
+
def self.transcode_get_deployment_request request_pb
|
|
2691
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2692
|
+
.with_bindings(
|
|
2693
|
+
uri_method: :get,
|
|
2694
|
+
uri_template: "/v1/{name}",
|
|
2695
|
+
matches: [
|
|
2696
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+/?$}, false]
|
|
2697
|
+
]
|
|
2698
|
+
)
|
|
2699
|
+
transcoder.transcode request_pb
|
|
2700
|
+
end
|
|
2701
|
+
|
|
2702
|
+
##
|
|
2703
|
+
# @private
|
|
2704
|
+
#
|
|
2705
|
+
# GRPC transcoding helper method for the create_deployment REST call
|
|
2706
|
+
#
|
|
2707
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateDeploymentRequest]
|
|
2708
|
+
# A request object representing the call parameters. Required.
|
|
2709
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2710
|
+
# Uri, Body, Query string parameters
|
|
2711
|
+
def self.transcode_create_deployment_request request_pb
|
|
2712
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2713
|
+
.with_bindings(
|
|
2714
|
+
uri_method: :post,
|
|
2715
|
+
uri_template: "/v1/{parent}/deployments",
|
|
2716
|
+
body: "deployment",
|
|
2717
|
+
matches: [
|
|
2718
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2719
|
+
]
|
|
2720
|
+
)
|
|
2721
|
+
transcoder.transcode request_pb
|
|
2722
|
+
end
|
|
2723
|
+
|
|
2724
|
+
##
|
|
2725
|
+
# @private
|
|
2726
|
+
#
|
|
2727
|
+
# GRPC transcoding helper method for the update_deployment REST call
|
|
2728
|
+
#
|
|
2729
|
+
# @param request_pb [::Google::Cloud::Ces::V1::UpdateDeploymentRequest]
|
|
2730
|
+
# A request object representing the call parameters. Required.
|
|
2731
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2732
|
+
# Uri, Body, Query string parameters
|
|
2733
|
+
def self.transcode_update_deployment_request request_pb
|
|
2734
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2735
|
+
.with_bindings(
|
|
2736
|
+
uri_method: :patch,
|
|
2737
|
+
uri_template: "/v1/{deployment.name}",
|
|
2738
|
+
body: "deployment",
|
|
2739
|
+
matches: [
|
|
2740
|
+
["deployment.name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+/?$}, false]
|
|
2741
|
+
]
|
|
2742
|
+
)
|
|
2743
|
+
transcoder.transcode request_pb
|
|
2744
|
+
end
|
|
2745
|
+
|
|
2746
|
+
##
|
|
2747
|
+
# @private
|
|
2748
|
+
#
|
|
2749
|
+
# GRPC transcoding helper method for the delete_deployment REST call
|
|
2750
|
+
#
|
|
2751
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteDeploymentRequest]
|
|
2752
|
+
# A request object representing the call parameters. Required.
|
|
2753
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2754
|
+
# Uri, Body, Query string parameters
|
|
2755
|
+
def self.transcode_delete_deployment_request request_pb
|
|
2756
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2757
|
+
.with_bindings(
|
|
2758
|
+
uri_method: :delete,
|
|
2759
|
+
uri_template: "/v1/{name}",
|
|
2760
|
+
matches: [
|
|
2761
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+/?$}, false]
|
|
2762
|
+
]
|
|
2763
|
+
)
|
|
2764
|
+
transcoder.transcode request_pb
|
|
2765
|
+
end
|
|
2766
|
+
|
|
2767
|
+
##
|
|
2768
|
+
# @private
|
|
2769
|
+
#
|
|
2770
|
+
# GRPC transcoding helper method for the list_toolsets REST call
|
|
2771
|
+
#
|
|
2772
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListToolsetsRequest]
|
|
2773
|
+
# A request object representing the call parameters. Required.
|
|
2774
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2775
|
+
# Uri, Body, Query string parameters
|
|
2776
|
+
def self.transcode_list_toolsets_request request_pb
|
|
2777
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2778
|
+
.with_bindings(
|
|
2779
|
+
uri_method: :get,
|
|
2780
|
+
uri_template: "/v1/{parent}/toolsets",
|
|
2781
|
+
matches: [
|
|
2782
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2783
|
+
]
|
|
2784
|
+
)
|
|
2785
|
+
transcoder.transcode request_pb
|
|
2786
|
+
end
|
|
2787
|
+
|
|
2788
|
+
##
|
|
2789
|
+
# @private
|
|
2790
|
+
#
|
|
2791
|
+
# GRPC transcoding helper method for the get_toolset REST call
|
|
2792
|
+
#
|
|
2793
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetToolsetRequest]
|
|
2794
|
+
# A request object representing the call parameters. Required.
|
|
2795
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2796
|
+
# Uri, Body, Query string parameters
|
|
2797
|
+
def self.transcode_get_toolset_request request_pb
|
|
2798
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2799
|
+
.with_bindings(
|
|
2800
|
+
uri_method: :get,
|
|
2801
|
+
uri_template: "/v1/{name}",
|
|
2802
|
+
matches: [
|
|
2803
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+/?$}, false]
|
|
2804
|
+
]
|
|
2805
|
+
)
|
|
2806
|
+
transcoder.transcode request_pb
|
|
2807
|
+
end
|
|
2808
|
+
|
|
2809
|
+
##
|
|
2810
|
+
# @private
|
|
2811
|
+
#
|
|
2812
|
+
# GRPC transcoding helper method for the create_toolset REST call
|
|
2813
|
+
#
|
|
2814
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateToolsetRequest]
|
|
2815
|
+
# A request object representing the call parameters. Required.
|
|
2816
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2817
|
+
# Uri, Body, Query string parameters
|
|
2818
|
+
def self.transcode_create_toolset_request request_pb
|
|
2819
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2820
|
+
.with_bindings(
|
|
2821
|
+
uri_method: :post,
|
|
2822
|
+
uri_template: "/v1/{parent}/toolsets",
|
|
2823
|
+
body: "toolset",
|
|
2824
|
+
matches: [
|
|
2825
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2826
|
+
]
|
|
2827
|
+
)
|
|
2828
|
+
transcoder.transcode request_pb
|
|
2829
|
+
end
|
|
2830
|
+
|
|
2831
|
+
##
|
|
2832
|
+
# @private
|
|
2833
|
+
#
|
|
2834
|
+
# GRPC transcoding helper method for the update_toolset REST call
|
|
2835
|
+
#
|
|
2836
|
+
# @param request_pb [::Google::Cloud::Ces::V1::UpdateToolsetRequest]
|
|
2837
|
+
# A request object representing the call parameters. Required.
|
|
2838
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2839
|
+
# Uri, Body, Query string parameters
|
|
2840
|
+
def self.transcode_update_toolset_request request_pb
|
|
2841
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2842
|
+
.with_bindings(
|
|
2843
|
+
uri_method: :patch,
|
|
2844
|
+
uri_template: "/v1/{toolset.name}",
|
|
2845
|
+
body: "toolset",
|
|
2846
|
+
matches: [
|
|
2847
|
+
["toolset.name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+/?$}, false]
|
|
2848
|
+
]
|
|
2849
|
+
)
|
|
2850
|
+
transcoder.transcode request_pb
|
|
2851
|
+
end
|
|
2852
|
+
|
|
2853
|
+
##
|
|
2854
|
+
# @private
|
|
2855
|
+
#
|
|
2856
|
+
# GRPC transcoding helper method for the delete_toolset REST call
|
|
2857
|
+
#
|
|
2858
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteToolsetRequest]
|
|
2859
|
+
# A request object representing the call parameters. Required.
|
|
2860
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2861
|
+
# Uri, Body, Query string parameters
|
|
2862
|
+
def self.transcode_delete_toolset_request request_pb
|
|
2863
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2864
|
+
.with_bindings(
|
|
2865
|
+
uri_method: :delete,
|
|
2866
|
+
uri_template: "/v1/{name}",
|
|
2867
|
+
matches: [
|
|
2868
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+/?$}, false]
|
|
2869
|
+
]
|
|
2870
|
+
)
|
|
2871
|
+
transcoder.transcode request_pb
|
|
2872
|
+
end
|
|
2873
|
+
|
|
2874
|
+
##
|
|
2875
|
+
# @private
|
|
2876
|
+
#
|
|
2877
|
+
# GRPC transcoding helper method for the list_app_versions REST call
|
|
2878
|
+
#
|
|
2879
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListAppVersionsRequest]
|
|
2880
|
+
# A request object representing the call parameters. Required.
|
|
2881
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2882
|
+
# Uri, Body, Query string parameters
|
|
2883
|
+
def self.transcode_list_app_versions_request request_pb
|
|
2884
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2885
|
+
.with_bindings(
|
|
2886
|
+
uri_method: :get,
|
|
2887
|
+
uri_template: "/v1/{parent}/versions",
|
|
2888
|
+
matches: [
|
|
2889
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2890
|
+
]
|
|
2891
|
+
)
|
|
2892
|
+
transcoder.transcode request_pb
|
|
2893
|
+
end
|
|
2894
|
+
|
|
2895
|
+
##
|
|
2896
|
+
# @private
|
|
2897
|
+
#
|
|
2898
|
+
# GRPC transcoding helper method for the get_app_version REST call
|
|
2899
|
+
#
|
|
2900
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetAppVersionRequest]
|
|
2901
|
+
# A request object representing the call parameters. Required.
|
|
2902
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2903
|
+
# Uri, Body, Query string parameters
|
|
2904
|
+
def self.transcode_get_app_version_request request_pb
|
|
2905
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2906
|
+
.with_bindings(
|
|
2907
|
+
uri_method: :get,
|
|
2908
|
+
uri_template: "/v1/{name}",
|
|
2909
|
+
matches: [
|
|
2910
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+/?$}, false]
|
|
2911
|
+
]
|
|
2912
|
+
)
|
|
2913
|
+
transcoder.transcode request_pb
|
|
2914
|
+
end
|
|
2915
|
+
|
|
2916
|
+
##
|
|
2917
|
+
# @private
|
|
2918
|
+
#
|
|
2919
|
+
# GRPC transcoding helper method for the create_app_version REST call
|
|
2920
|
+
#
|
|
2921
|
+
# @param request_pb [::Google::Cloud::Ces::V1::CreateAppVersionRequest]
|
|
2922
|
+
# A request object representing the call parameters. Required.
|
|
2923
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2924
|
+
# Uri, Body, Query string parameters
|
|
2925
|
+
def self.transcode_create_app_version_request request_pb
|
|
2926
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2927
|
+
.with_bindings(
|
|
2928
|
+
uri_method: :post,
|
|
2929
|
+
uri_template: "/v1/{parent}/versions",
|
|
2930
|
+
body: "app_version",
|
|
2931
|
+
matches: [
|
|
2932
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2933
|
+
]
|
|
2934
|
+
)
|
|
2935
|
+
transcoder.transcode request_pb
|
|
2936
|
+
end
|
|
2937
|
+
|
|
2938
|
+
##
|
|
2939
|
+
# @private
|
|
2940
|
+
#
|
|
2941
|
+
# GRPC transcoding helper method for the delete_app_version REST call
|
|
2942
|
+
#
|
|
2943
|
+
# @param request_pb [::Google::Cloud::Ces::V1::DeleteAppVersionRequest]
|
|
2944
|
+
# A request object representing the call parameters. Required.
|
|
2945
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2946
|
+
# Uri, Body, Query string parameters
|
|
2947
|
+
def self.transcode_delete_app_version_request request_pb
|
|
2948
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2949
|
+
.with_bindings(
|
|
2950
|
+
uri_method: :delete,
|
|
2951
|
+
uri_template: "/v1/{name}",
|
|
2952
|
+
matches: [
|
|
2953
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+/?$}, false]
|
|
2954
|
+
]
|
|
2955
|
+
)
|
|
2956
|
+
transcoder.transcode request_pb
|
|
2957
|
+
end
|
|
2958
|
+
|
|
2959
|
+
##
|
|
2960
|
+
# @private
|
|
2961
|
+
#
|
|
2962
|
+
# GRPC transcoding helper method for the restore_app_version REST call
|
|
2963
|
+
#
|
|
2964
|
+
# @param request_pb [::Google::Cloud::Ces::V1::RestoreAppVersionRequest]
|
|
2965
|
+
# A request object representing the call parameters. Required.
|
|
2966
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2967
|
+
# Uri, Body, Query string parameters
|
|
2968
|
+
def self.transcode_restore_app_version_request request_pb
|
|
2969
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2970
|
+
.with_bindings(
|
|
2971
|
+
uri_method: :post,
|
|
2972
|
+
uri_template: "/v1/{name}:restore",
|
|
2973
|
+
body: "*",
|
|
2974
|
+
matches: [
|
|
2975
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+/?$}, false]
|
|
2976
|
+
]
|
|
2977
|
+
)
|
|
2978
|
+
transcoder.transcode request_pb
|
|
2979
|
+
end
|
|
2980
|
+
|
|
2981
|
+
##
|
|
2982
|
+
# @private
|
|
2983
|
+
#
|
|
2984
|
+
# GRPC transcoding helper method for the list_changelogs REST call
|
|
2985
|
+
#
|
|
2986
|
+
# @param request_pb [::Google::Cloud::Ces::V1::ListChangelogsRequest]
|
|
2987
|
+
# A request object representing the call parameters. Required.
|
|
2988
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2989
|
+
# Uri, Body, Query string parameters
|
|
2990
|
+
def self.transcode_list_changelogs_request request_pb
|
|
2991
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2992
|
+
.with_bindings(
|
|
2993
|
+
uri_method: :get,
|
|
2994
|
+
uri_template: "/v1/{parent}/changelogs",
|
|
2995
|
+
matches: [
|
|
2996
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
|
|
2997
|
+
]
|
|
2998
|
+
)
|
|
2999
|
+
transcoder.transcode request_pb
|
|
3000
|
+
end
|
|
3001
|
+
|
|
3002
|
+
##
|
|
3003
|
+
# @private
|
|
3004
|
+
#
|
|
3005
|
+
# GRPC transcoding helper method for the get_changelog REST call
|
|
3006
|
+
#
|
|
3007
|
+
# @param request_pb [::Google::Cloud::Ces::V1::GetChangelogRequest]
|
|
3008
|
+
# A request object representing the call parameters. Required.
|
|
3009
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
3010
|
+
# Uri, Body, Query string parameters
|
|
3011
|
+
def self.transcode_get_changelog_request request_pb
|
|
3012
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3013
|
+
.with_bindings(
|
|
3014
|
+
uri_method: :get,
|
|
3015
|
+
uri_template: "/v1/{name}",
|
|
3016
|
+
matches: [
|
|
3017
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/changelogs/[^/]+/?$}, false]
|
|
3018
|
+
]
|
|
3019
|
+
)
|
|
3020
|
+
transcoder.transcode request_pb
|
|
3021
|
+
end
|
|
3022
|
+
end
|
|
3023
|
+
end
|
|
3024
|
+
end
|
|
3025
|
+
end
|
|
3026
|
+
end
|
|
3027
|
+
end
|
|
3028
|
+
end
|