google-cloud-config_delivery-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/config_delivery/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/config_delivery/v1/config_delivery/client.rb +3222 -0
- data/lib/google/cloud/config_delivery/v1/config_delivery/credentials.rb +47 -0
- data/lib/google/cloud/config_delivery/v1/config_delivery/operations.rb +813 -0
- data/lib/google/cloud/config_delivery/v1/config_delivery/paths.rb +188 -0
- data/lib/google/cloud/config_delivery/v1/config_delivery/rest/client.rb +3029 -0
- data/lib/google/cloud/config_delivery/v1/config_delivery/rest/operations.rb +914 -0
- data/lib/google/cloud/config_delivery/v1/config_delivery/rest/service_stub.rb +1617 -0
- data/lib/google/cloud/config_delivery/v1/config_delivery/rest.rb +55 -0
- data/lib/google/cloud/config_delivery/v1/config_delivery.rb +57 -0
- data/lib/google/cloud/config_delivery/v1/rest.rb +38 -0
- data/lib/google/cloud/config_delivery/v1/version.rb +7 -2
- data/lib/google/cloud/config_delivery/v1.rb +45 -0
- data/lib/google/cloud/configdelivery/v1/config_delivery_pb.rb +115 -0
- data/lib/google/cloud/configdelivery/v1/config_delivery_services_pb.rb +95 -0
- data/lib/google-cloud-config_delivery-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +473 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +88 -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/configdelivery/v1/config_delivery.rb +1384 -0
- data/proto_docs/google/longrunning/operations.rb +173 -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/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +82 -9
@@ -0,0 +1,1617 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/configdelivery/v1/config_delivery_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module ConfigDelivery
|
24
|
+
module V1
|
25
|
+
module ConfigDelivery
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the ConfigDelivery 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_resource_bundles REST call
|
78
|
+
#
|
79
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::ListResourceBundlesRequest]
|
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::ConfigDelivery::V1::ListResourceBundlesResponse]
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
87
|
+
#
|
88
|
+
# @return [::Google::Cloud::ConfigDelivery::V1::ListResourceBundlesResponse]
|
89
|
+
# A result object deserialized from the server's reply
|
90
|
+
def list_resource_bundles 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_resource_bundles_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_resource_bundles",
|
106
|
+
options: options
|
107
|
+
)
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
109
|
+
result = ::Google::Cloud::ConfigDelivery::V1::ListResourceBundlesResponse.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_resource_bundle REST call
|
118
|
+
#
|
119
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::GetResourceBundleRequest]
|
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::ConfigDelivery::V1::ResourceBundle]
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
127
|
+
#
|
128
|
+
# @return [::Google::Cloud::ConfigDelivery::V1::ResourceBundle]
|
129
|
+
# A result object deserialized from the server's reply
|
130
|
+
def get_resource_bundle 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_resource_bundle_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_resource_bundle",
|
146
|
+
options: options
|
147
|
+
)
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
149
|
+
result = ::Google::Cloud::ConfigDelivery::V1::ResourceBundle.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_resource_bundle REST call
|
158
|
+
#
|
159
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::CreateResourceBundleRequest]
|
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_resource_bundle 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_resource_bundle_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_resource_bundle",
|
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_resource_bundle REST call
|
198
|
+
#
|
199
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::UpdateResourceBundleRequest]
|
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::Longrunning::Operation]
|
206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
207
|
+
#
|
208
|
+
# @return [::Google::Longrunning::Operation]
|
209
|
+
# A result object deserialized from the server's reply
|
210
|
+
def update_resource_bundle 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_resource_bundle_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_resource_bundle",
|
226
|
+
options: options
|
227
|
+
)
|
228
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
229
|
+
result = ::Google::Longrunning::Operation.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_resource_bundle REST call
|
238
|
+
#
|
239
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::DeleteResourceBundleRequest]
|
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_resource_bundle 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_resource_bundle_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_resource_bundle",
|
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 list_fleet_packages REST call
|
278
|
+
#
|
279
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::ListFleetPackagesRequest]
|
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::Cloud::ConfigDelivery::V1::ListFleetPackagesResponse]
|
286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
287
|
+
#
|
288
|
+
# @return [::Google::Cloud::ConfigDelivery::V1::ListFleetPackagesResponse]
|
289
|
+
# A result object deserialized from the server's reply
|
290
|
+
def list_fleet_packages 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_list_fleet_packages_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: "list_fleet_packages",
|
306
|
+
options: options
|
307
|
+
)
|
308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
309
|
+
result = ::Google::Cloud::ConfigDelivery::V1::ListFleetPackagesResponse.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 get_fleet_package REST call
|
318
|
+
#
|
319
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::GetFleetPackageRequest]
|
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::Cloud::ConfigDelivery::V1::FleetPackage]
|
326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
327
|
+
#
|
328
|
+
# @return [::Google::Cloud::ConfigDelivery::V1::FleetPackage]
|
329
|
+
# A result object deserialized from the server's reply
|
330
|
+
def get_fleet_package 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_get_fleet_package_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: "get_fleet_package",
|
346
|
+
options: options
|
347
|
+
)
|
348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
349
|
+
result = ::Google::Cloud::ConfigDelivery::V1::FleetPackage.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 create_fleet_package REST call
|
358
|
+
#
|
359
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::CreateFleetPackageRequest]
|
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::Longrunning::Operation]
|
366
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
367
|
+
#
|
368
|
+
# @return [::Google::Longrunning::Operation]
|
369
|
+
# A result object deserialized from the server's reply
|
370
|
+
def create_fleet_package 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_create_fleet_package_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: "create_fleet_package",
|
386
|
+
options: options
|
387
|
+
)
|
388
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
389
|
+
result = ::Google::Longrunning::Operation.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 update_fleet_package REST call
|
398
|
+
#
|
399
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::UpdateFleetPackageRequest]
|
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::Longrunning::Operation]
|
406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
407
|
+
#
|
408
|
+
# @return [::Google::Longrunning::Operation]
|
409
|
+
# A result object deserialized from the server's reply
|
410
|
+
def update_fleet_package 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_update_fleet_package_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: "update_fleet_package",
|
426
|
+
options: options
|
427
|
+
)
|
428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
429
|
+
result = ::Google::Longrunning::Operation.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 delete_fleet_package REST call
|
438
|
+
#
|
439
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::DeleteFleetPackageRequest]
|
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::Longrunning::Operation]
|
446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
447
|
+
#
|
448
|
+
# @return [::Google::Longrunning::Operation]
|
449
|
+
# A result object deserialized from the server's reply
|
450
|
+
def delete_fleet_package 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_delete_fleet_package_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: "delete_fleet_package",
|
466
|
+
options: options
|
467
|
+
)
|
468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
469
|
+
result = ::Google::Longrunning::Operation.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 list_releases REST call
|
478
|
+
#
|
479
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::ListReleasesRequest]
|
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::ConfigDelivery::V1::ListReleasesResponse]
|
486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
487
|
+
#
|
488
|
+
# @return [::Google::Cloud::ConfigDelivery::V1::ListReleasesResponse]
|
489
|
+
# A result object deserialized from the server's reply
|
490
|
+
def list_releases 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_list_releases_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: "list_releases",
|
506
|
+
options: options
|
507
|
+
)
|
508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
509
|
+
result = ::Google::Cloud::ConfigDelivery::V1::ListReleasesResponse.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 get_release REST call
|
518
|
+
#
|
519
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::GetReleaseRequest]
|
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::Cloud::ConfigDelivery::V1::Release]
|
526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
527
|
+
#
|
528
|
+
# @return [::Google::Cloud::ConfigDelivery::V1::Release]
|
529
|
+
# A result object deserialized from the server's reply
|
530
|
+
def get_release 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_get_release_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: "get_release",
|
546
|
+
options: options
|
547
|
+
)
|
548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
549
|
+
result = ::Google::Cloud::ConfigDelivery::V1::Release.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 create_release REST call
|
558
|
+
#
|
559
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::CreateReleaseRequest]
|
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::Longrunning::Operation]
|
566
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
567
|
+
#
|
568
|
+
# @return [::Google::Longrunning::Operation]
|
569
|
+
# A result object deserialized from the server's reply
|
570
|
+
def create_release 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_create_release_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: "create_release",
|
586
|
+
options: options
|
587
|
+
)
|
588
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
589
|
+
result = ::Google::Longrunning::Operation.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 update_release REST call
|
598
|
+
#
|
599
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::UpdateReleaseRequest]
|
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::Longrunning::Operation]
|
606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
607
|
+
#
|
608
|
+
# @return [::Google::Longrunning::Operation]
|
609
|
+
# A result object deserialized from the server's reply
|
610
|
+
def update_release 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_update_release_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: "update_release",
|
626
|
+
options: options
|
627
|
+
)
|
628
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
629
|
+
result = ::Google::Longrunning::Operation.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 delete_release REST call
|
638
|
+
#
|
639
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::DeleteReleaseRequest]
|
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::Longrunning::Operation]
|
646
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
647
|
+
#
|
648
|
+
# @return [::Google::Longrunning::Operation]
|
649
|
+
# A result object deserialized from the server's reply
|
650
|
+
def delete_release 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_delete_release_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: "delete_release",
|
666
|
+
options: options
|
667
|
+
)
|
668
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
669
|
+
result = ::Google::Longrunning::Operation.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 list_variants REST call
|
678
|
+
#
|
679
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::ListVariantsRequest]
|
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::ConfigDelivery::V1::ListVariantsResponse]
|
686
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
687
|
+
#
|
688
|
+
# @return [::Google::Cloud::ConfigDelivery::V1::ListVariantsResponse]
|
689
|
+
# A result object deserialized from the server's reply
|
690
|
+
def list_variants 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_list_variants_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: "list_variants",
|
706
|
+
options: options
|
707
|
+
)
|
708
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
709
|
+
result = ::Google::Cloud::ConfigDelivery::V1::ListVariantsResponse.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 get_variant REST call
|
718
|
+
#
|
719
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::GetVariantRequest]
|
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::Cloud::ConfigDelivery::V1::Variant]
|
726
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
727
|
+
#
|
728
|
+
# @return [::Google::Cloud::ConfigDelivery::V1::Variant]
|
729
|
+
# A result object deserialized from the server's reply
|
730
|
+
def get_variant 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_get_variant_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: "get_variant",
|
746
|
+
options: options
|
747
|
+
)
|
748
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
749
|
+
result = ::Google::Cloud::ConfigDelivery::V1::Variant.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 create_variant REST call
|
758
|
+
#
|
759
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::CreateVariantRequest]
|
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::Longrunning::Operation]
|
766
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
767
|
+
#
|
768
|
+
# @return [::Google::Longrunning::Operation]
|
769
|
+
# A result object deserialized from the server's reply
|
770
|
+
def create_variant 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_create_variant_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: "create_variant",
|
786
|
+
options: options
|
787
|
+
)
|
788
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
789
|
+
result = ::Google::Longrunning::Operation.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 update_variant REST call
|
798
|
+
#
|
799
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::UpdateVariantRequest]
|
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::Longrunning::Operation]
|
806
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
807
|
+
#
|
808
|
+
# @return [::Google::Longrunning::Operation]
|
809
|
+
# A result object deserialized from the server's reply
|
810
|
+
def update_variant 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_update_variant_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: "update_variant",
|
826
|
+
options: options
|
827
|
+
)
|
828
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
829
|
+
result = ::Google::Longrunning::Operation.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 delete_variant REST call
|
838
|
+
#
|
839
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::DeleteVariantRequest]
|
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::Longrunning::Operation]
|
846
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
847
|
+
#
|
848
|
+
# @return [::Google::Longrunning::Operation]
|
849
|
+
# A result object deserialized from the server's reply
|
850
|
+
def delete_variant 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_delete_variant_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: "delete_variant",
|
866
|
+
options: options
|
867
|
+
)
|
868
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
869
|
+
result = ::Google::Longrunning::Operation.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 list_rollouts REST call
|
878
|
+
#
|
879
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::ListRolloutsRequest]
|
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::ConfigDelivery::V1::ListRolloutsResponse]
|
886
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
887
|
+
#
|
888
|
+
# @return [::Google::Cloud::ConfigDelivery::V1::ListRolloutsResponse]
|
889
|
+
# A result object deserialized from the server's reply
|
890
|
+
def list_rollouts 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_list_rollouts_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: "list_rollouts",
|
906
|
+
options: options
|
907
|
+
)
|
908
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
909
|
+
result = ::Google::Cloud::ConfigDelivery::V1::ListRolloutsResponse.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 get_rollout REST call
|
918
|
+
#
|
919
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::GetRolloutRequest]
|
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::Cloud::ConfigDelivery::V1::Rollout]
|
926
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
927
|
+
#
|
928
|
+
# @return [::Google::Cloud::ConfigDelivery::V1::Rollout]
|
929
|
+
# A result object deserialized from the server's reply
|
930
|
+
def get_rollout 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_get_rollout_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: "get_rollout",
|
946
|
+
options: options
|
947
|
+
)
|
948
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
949
|
+
result = ::Google::Cloud::ConfigDelivery::V1::Rollout.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 suspend_rollout REST call
|
958
|
+
#
|
959
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::SuspendRolloutRequest]
|
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 suspend_rollout 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_suspend_rollout_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: "suspend_rollout",
|
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 resume_rollout REST call
|
998
|
+
#
|
999
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::ResumeRolloutRequest]
|
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::Longrunning::Operation]
|
1006
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1007
|
+
#
|
1008
|
+
# @return [::Google::Longrunning::Operation]
|
1009
|
+
# A result object deserialized from the server's reply
|
1010
|
+
def resume_rollout 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_resume_rollout_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: "resume_rollout",
|
1026
|
+
options: options
|
1027
|
+
)
|
1028
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1029
|
+
result = ::Google::Longrunning::Operation.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 abort_rollout REST call
|
1038
|
+
#
|
1039
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::AbortRolloutRequest]
|
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::Longrunning::Operation]
|
1046
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1047
|
+
#
|
1048
|
+
# @return [::Google::Longrunning::Operation]
|
1049
|
+
# A result object deserialized from the server's reply
|
1050
|
+
def abort_rollout 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_abort_rollout_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: "abort_rollout",
|
1066
|
+
options: options
|
1067
|
+
)
|
1068
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1069
|
+
result = ::Google::Longrunning::Operation.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
|
+
# @private
|
1078
|
+
#
|
1079
|
+
# GRPC transcoding helper method for the list_resource_bundles REST call
|
1080
|
+
#
|
1081
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::ListResourceBundlesRequest]
|
1082
|
+
# A request object representing the call parameters. Required.
|
1083
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1084
|
+
# Uri, Body, Query string parameters
|
1085
|
+
def self.transcode_list_resource_bundles_request request_pb
|
1086
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1087
|
+
.with_bindings(
|
1088
|
+
uri_method: :get,
|
1089
|
+
uri_template: "/v1/{parent}/resourceBundles",
|
1090
|
+
matches: [
|
1091
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1092
|
+
]
|
1093
|
+
)
|
1094
|
+
transcoder.transcode request_pb
|
1095
|
+
end
|
1096
|
+
|
1097
|
+
##
|
1098
|
+
# @private
|
1099
|
+
#
|
1100
|
+
# GRPC transcoding helper method for the get_resource_bundle REST call
|
1101
|
+
#
|
1102
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::GetResourceBundleRequest]
|
1103
|
+
# A request object representing the call parameters. Required.
|
1104
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1105
|
+
# Uri, Body, Query string parameters
|
1106
|
+
def self.transcode_get_resource_bundle_request request_pb
|
1107
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1108
|
+
.with_bindings(
|
1109
|
+
uri_method: :get,
|
1110
|
+
uri_template: "/v1/{name}",
|
1111
|
+
matches: [
|
1112
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/resourceBundles/[^/]+/?$}, false]
|
1113
|
+
]
|
1114
|
+
)
|
1115
|
+
transcoder.transcode request_pb
|
1116
|
+
end
|
1117
|
+
|
1118
|
+
##
|
1119
|
+
# @private
|
1120
|
+
#
|
1121
|
+
# GRPC transcoding helper method for the create_resource_bundle REST call
|
1122
|
+
#
|
1123
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::CreateResourceBundleRequest]
|
1124
|
+
# A request object representing the call parameters. Required.
|
1125
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1126
|
+
# Uri, Body, Query string parameters
|
1127
|
+
def self.transcode_create_resource_bundle_request request_pb
|
1128
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1129
|
+
.with_bindings(
|
1130
|
+
uri_method: :post,
|
1131
|
+
uri_template: "/v1/{parent}/resourceBundles",
|
1132
|
+
body: "resource_bundle",
|
1133
|
+
matches: [
|
1134
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1135
|
+
]
|
1136
|
+
)
|
1137
|
+
transcoder.transcode request_pb
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
##
|
1141
|
+
# @private
|
1142
|
+
#
|
1143
|
+
# GRPC transcoding helper method for the update_resource_bundle REST call
|
1144
|
+
#
|
1145
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::UpdateResourceBundleRequest]
|
1146
|
+
# A request object representing the call parameters. Required.
|
1147
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1148
|
+
# Uri, Body, Query string parameters
|
1149
|
+
def self.transcode_update_resource_bundle_request request_pb
|
1150
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1151
|
+
.with_bindings(
|
1152
|
+
uri_method: :patch,
|
1153
|
+
uri_template: "/v1/{resource_bundle.name}",
|
1154
|
+
body: "resource_bundle",
|
1155
|
+
matches: [
|
1156
|
+
["resource_bundle.name", %r{^projects/[^/]+/locations/[^/]+/resourceBundles/[^/]+/?$}, false]
|
1157
|
+
]
|
1158
|
+
)
|
1159
|
+
transcoder.transcode request_pb
|
1160
|
+
end
|
1161
|
+
|
1162
|
+
##
|
1163
|
+
# @private
|
1164
|
+
#
|
1165
|
+
# GRPC transcoding helper method for the delete_resource_bundle REST call
|
1166
|
+
#
|
1167
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::DeleteResourceBundleRequest]
|
1168
|
+
# A request object representing the call parameters. Required.
|
1169
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1170
|
+
# Uri, Body, Query string parameters
|
1171
|
+
def self.transcode_delete_resource_bundle_request request_pb
|
1172
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1173
|
+
.with_bindings(
|
1174
|
+
uri_method: :delete,
|
1175
|
+
uri_template: "/v1/{name}",
|
1176
|
+
matches: [
|
1177
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/resourceBundles/[^/]+/?$}, false]
|
1178
|
+
]
|
1179
|
+
)
|
1180
|
+
transcoder.transcode request_pb
|
1181
|
+
end
|
1182
|
+
|
1183
|
+
##
|
1184
|
+
# @private
|
1185
|
+
#
|
1186
|
+
# GRPC transcoding helper method for the list_fleet_packages REST call
|
1187
|
+
#
|
1188
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::ListFleetPackagesRequest]
|
1189
|
+
# A request object representing the call parameters. Required.
|
1190
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1191
|
+
# Uri, Body, Query string parameters
|
1192
|
+
def self.transcode_list_fleet_packages_request request_pb
|
1193
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1194
|
+
.with_bindings(
|
1195
|
+
uri_method: :get,
|
1196
|
+
uri_template: "/v1/{parent}/fleetPackages",
|
1197
|
+
matches: [
|
1198
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1199
|
+
]
|
1200
|
+
)
|
1201
|
+
transcoder.transcode request_pb
|
1202
|
+
end
|
1203
|
+
|
1204
|
+
##
|
1205
|
+
# @private
|
1206
|
+
#
|
1207
|
+
# GRPC transcoding helper method for the get_fleet_package REST call
|
1208
|
+
#
|
1209
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::GetFleetPackageRequest]
|
1210
|
+
# A request object representing the call parameters. Required.
|
1211
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1212
|
+
# Uri, Body, Query string parameters
|
1213
|
+
def self.transcode_get_fleet_package_request request_pb
|
1214
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1215
|
+
.with_bindings(
|
1216
|
+
uri_method: :get,
|
1217
|
+
uri_template: "/v1/{name}",
|
1218
|
+
matches: [
|
1219
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/fleetPackages/[^/]+/?$}, false]
|
1220
|
+
]
|
1221
|
+
)
|
1222
|
+
transcoder.transcode request_pb
|
1223
|
+
end
|
1224
|
+
|
1225
|
+
##
|
1226
|
+
# @private
|
1227
|
+
#
|
1228
|
+
# GRPC transcoding helper method for the create_fleet_package REST call
|
1229
|
+
#
|
1230
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::CreateFleetPackageRequest]
|
1231
|
+
# A request object representing the call parameters. Required.
|
1232
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1233
|
+
# Uri, Body, Query string parameters
|
1234
|
+
def self.transcode_create_fleet_package_request request_pb
|
1235
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1236
|
+
.with_bindings(
|
1237
|
+
uri_method: :post,
|
1238
|
+
uri_template: "/v1/{parent}/fleetPackages",
|
1239
|
+
body: "fleet_package",
|
1240
|
+
matches: [
|
1241
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1242
|
+
]
|
1243
|
+
)
|
1244
|
+
transcoder.transcode request_pb
|
1245
|
+
end
|
1246
|
+
|
1247
|
+
##
|
1248
|
+
# @private
|
1249
|
+
#
|
1250
|
+
# GRPC transcoding helper method for the update_fleet_package REST call
|
1251
|
+
#
|
1252
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::UpdateFleetPackageRequest]
|
1253
|
+
# A request object representing the call parameters. Required.
|
1254
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1255
|
+
# Uri, Body, Query string parameters
|
1256
|
+
def self.transcode_update_fleet_package_request request_pb
|
1257
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1258
|
+
.with_bindings(
|
1259
|
+
uri_method: :patch,
|
1260
|
+
uri_template: "/v1/{fleet_package.name}",
|
1261
|
+
body: "fleet_package",
|
1262
|
+
matches: [
|
1263
|
+
["fleet_package.name", %r{^projects/[^/]+/locations/[^/]+/fleetPackages/[^/]+/?$}, false]
|
1264
|
+
]
|
1265
|
+
)
|
1266
|
+
transcoder.transcode request_pb
|
1267
|
+
end
|
1268
|
+
|
1269
|
+
##
|
1270
|
+
# @private
|
1271
|
+
#
|
1272
|
+
# GRPC transcoding helper method for the delete_fleet_package REST call
|
1273
|
+
#
|
1274
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::DeleteFleetPackageRequest]
|
1275
|
+
# A request object representing the call parameters. Required.
|
1276
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1277
|
+
# Uri, Body, Query string parameters
|
1278
|
+
def self.transcode_delete_fleet_package_request request_pb
|
1279
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1280
|
+
.with_bindings(
|
1281
|
+
uri_method: :delete,
|
1282
|
+
uri_template: "/v1/{name}",
|
1283
|
+
matches: [
|
1284
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/fleetPackages/[^/]+/?$}, false]
|
1285
|
+
]
|
1286
|
+
)
|
1287
|
+
transcoder.transcode request_pb
|
1288
|
+
end
|
1289
|
+
|
1290
|
+
##
|
1291
|
+
# @private
|
1292
|
+
#
|
1293
|
+
# GRPC transcoding helper method for the list_releases REST call
|
1294
|
+
#
|
1295
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::ListReleasesRequest]
|
1296
|
+
# A request object representing the call parameters. Required.
|
1297
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1298
|
+
# Uri, Body, Query string parameters
|
1299
|
+
def self.transcode_list_releases_request request_pb
|
1300
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1301
|
+
.with_bindings(
|
1302
|
+
uri_method: :get,
|
1303
|
+
uri_template: "/v1/{parent}/releases",
|
1304
|
+
matches: [
|
1305
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/resourceBundles/[^/]+/?$}, false]
|
1306
|
+
]
|
1307
|
+
)
|
1308
|
+
transcoder.transcode request_pb
|
1309
|
+
end
|
1310
|
+
|
1311
|
+
##
|
1312
|
+
# @private
|
1313
|
+
#
|
1314
|
+
# GRPC transcoding helper method for the get_release REST call
|
1315
|
+
#
|
1316
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::GetReleaseRequest]
|
1317
|
+
# A request object representing the call parameters. Required.
|
1318
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1319
|
+
# Uri, Body, Query string parameters
|
1320
|
+
def self.transcode_get_release_request request_pb
|
1321
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1322
|
+
.with_bindings(
|
1323
|
+
uri_method: :get,
|
1324
|
+
uri_template: "/v1/{name}",
|
1325
|
+
matches: [
|
1326
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/resourceBundles/[^/]+/releases/[^/]+/?$}, false]
|
1327
|
+
]
|
1328
|
+
)
|
1329
|
+
transcoder.transcode request_pb
|
1330
|
+
end
|
1331
|
+
|
1332
|
+
##
|
1333
|
+
# @private
|
1334
|
+
#
|
1335
|
+
# GRPC transcoding helper method for the create_release REST call
|
1336
|
+
#
|
1337
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::CreateReleaseRequest]
|
1338
|
+
# A request object representing the call parameters. Required.
|
1339
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1340
|
+
# Uri, Body, Query string parameters
|
1341
|
+
def self.transcode_create_release_request request_pb
|
1342
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1343
|
+
.with_bindings(
|
1344
|
+
uri_method: :post,
|
1345
|
+
uri_template: "/v1/{parent}/releases",
|
1346
|
+
body: "release",
|
1347
|
+
matches: [
|
1348
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/resourceBundles/[^/]+/?$}, false]
|
1349
|
+
]
|
1350
|
+
)
|
1351
|
+
transcoder.transcode request_pb
|
1352
|
+
end
|
1353
|
+
|
1354
|
+
##
|
1355
|
+
# @private
|
1356
|
+
#
|
1357
|
+
# GRPC transcoding helper method for the update_release REST call
|
1358
|
+
#
|
1359
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::UpdateReleaseRequest]
|
1360
|
+
# A request object representing the call parameters. Required.
|
1361
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1362
|
+
# Uri, Body, Query string parameters
|
1363
|
+
def self.transcode_update_release_request request_pb
|
1364
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1365
|
+
.with_bindings(
|
1366
|
+
uri_method: :patch,
|
1367
|
+
uri_template: "/v1/{release.name}",
|
1368
|
+
body: "release",
|
1369
|
+
matches: [
|
1370
|
+
["release.name", %r{^projects/[^/]+/locations/[^/]+/resourceBundles/[^/]+/releases/[^/]+/?$}, false]
|
1371
|
+
]
|
1372
|
+
)
|
1373
|
+
transcoder.transcode request_pb
|
1374
|
+
end
|
1375
|
+
|
1376
|
+
##
|
1377
|
+
# @private
|
1378
|
+
#
|
1379
|
+
# GRPC transcoding helper method for the delete_release REST call
|
1380
|
+
#
|
1381
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::DeleteReleaseRequest]
|
1382
|
+
# A request object representing the call parameters. Required.
|
1383
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1384
|
+
# Uri, Body, Query string parameters
|
1385
|
+
def self.transcode_delete_release_request request_pb
|
1386
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1387
|
+
.with_bindings(
|
1388
|
+
uri_method: :delete,
|
1389
|
+
uri_template: "/v1/{name}",
|
1390
|
+
matches: [
|
1391
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/resourceBundles/[^/]+/releases/[^/]+/?$}, false]
|
1392
|
+
]
|
1393
|
+
)
|
1394
|
+
transcoder.transcode request_pb
|
1395
|
+
end
|
1396
|
+
|
1397
|
+
##
|
1398
|
+
# @private
|
1399
|
+
#
|
1400
|
+
# GRPC transcoding helper method for the list_variants REST call
|
1401
|
+
#
|
1402
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::ListVariantsRequest]
|
1403
|
+
# A request object representing the call parameters. Required.
|
1404
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1405
|
+
# Uri, Body, Query string parameters
|
1406
|
+
def self.transcode_list_variants_request request_pb
|
1407
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1408
|
+
.with_bindings(
|
1409
|
+
uri_method: :get,
|
1410
|
+
uri_template: "/v1/{parent}/variants",
|
1411
|
+
matches: [
|
1412
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/resourceBundles/[^/]+/releases/[^/]+/?$}, false]
|
1413
|
+
]
|
1414
|
+
)
|
1415
|
+
transcoder.transcode request_pb
|
1416
|
+
end
|
1417
|
+
|
1418
|
+
##
|
1419
|
+
# @private
|
1420
|
+
#
|
1421
|
+
# GRPC transcoding helper method for the get_variant REST call
|
1422
|
+
#
|
1423
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::GetVariantRequest]
|
1424
|
+
# A request object representing the call parameters. Required.
|
1425
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1426
|
+
# Uri, Body, Query string parameters
|
1427
|
+
def self.transcode_get_variant_request request_pb
|
1428
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1429
|
+
.with_bindings(
|
1430
|
+
uri_method: :get,
|
1431
|
+
uri_template: "/v1/{name}",
|
1432
|
+
matches: [
|
1433
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/resourceBundles/[^/]+/releases/[^/]+/variants/[^/]+/?$}, false]
|
1434
|
+
]
|
1435
|
+
)
|
1436
|
+
transcoder.transcode request_pb
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
##
|
1440
|
+
# @private
|
1441
|
+
#
|
1442
|
+
# GRPC transcoding helper method for the create_variant REST call
|
1443
|
+
#
|
1444
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::CreateVariantRequest]
|
1445
|
+
# A request object representing the call parameters. Required.
|
1446
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1447
|
+
# Uri, Body, Query string parameters
|
1448
|
+
def self.transcode_create_variant_request request_pb
|
1449
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1450
|
+
.with_bindings(
|
1451
|
+
uri_method: :post,
|
1452
|
+
uri_template: "/v1/{parent}/variants",
|
1453
|
+
body: "variant",
|
1454
|
+
matches: [
|
1455
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/resourceBundles/[^/]+/releases/[^/]+/?$}, false]
|
1456
|
+
]
|
1457
|
+
)
|
1458
|
+
transcoder.transcode request_pb
|
1459
|
+
end
|
1460
|
+
|
1461
|
+
##
|
1462
|
+
# @private
|
1463
|
+
#
|
1464
|
+
# GRPC transcoding helper method for the update_variant REST call
|
1465
|
+
#
|
1466
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::UpdateVariantRequest]
|
1467
|
+
# A request object representing the call parameters. Required.
|
1468
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1469
|
+
# Uri, Body, Query string parameters
|
1470
|
+
def self.transcode_update_variant_request request_pb
|
1471
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1472
|
+
.with_bindings(
|
1473
|
+
uri_method: :patch,
|
1474
|
+
uri_template: "/v1/{variant.name}",
|
1475
|
+
body: "variant",
|
1476
|
+
matches: [
|
1477
|
+
["variant.name", %r{^projects/[^/]+/locations/[^/]+/resourceBundles/[^/]+/releases/[^/]+/variants/[^/]+/?$}, false]
|
1478
|
+
]
|
1479
|
+
)
|
1480
|
+
transcoder.transcode request_pb
|
1481
|
+
end
|
1482
|
+
|
1483
|
+
##
|
1484
|
+
# @private
|
1485
|
+
#
|
1486
|
+
# GRPC transcoding helper method for the delete_variant REST call
|
1487
|
+
#
|
1488
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::DeleteVariantRequest]
|
1489
|
+
# A request object representing the call parameters. Required.
|
1490
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1491
|
+
# Uri, Body, Query string parameters
|
1492
|
+
def self.transcode_delete_variant_request request_pb
|
1493
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1494
|
+
.with_bindings(
|
1495
|
+
uri_method: :delete,
|
1496
|
+
uri_template: "/v1/{name}",
|
1497
|
+
matches: [
|
1498
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/resourceBundles/[^/]+/releases/[^/]+/variants/[^/]+/?$}, false]
|
1499
|
+
]
|
1500
|
+
)
|
1501
|
+
transcoder.transcode request_pb
|
1502
|
+
end
|
1503
|
+
|
1504
|
+
##
|
1505
|
+
# @private
|
1506
|
+
#
|
1507
|
+
# GRPC transcoding helper method for the list_rollouts REST call
|
1508
|
+
#
|
1509
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::ListRolloutsRequest]
|
1510
|
+
# A request object representing the call parameters. Required.
|
1511
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1512
|
+
# Uri, Body, Query string parameters
|
1513
|
+
def self.transcode_list_rollouts_request request_pb
|
1514
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1515
|
+
.with_bindings(
|
1516
|
+
uri_method: :get,
|
1517
|
+
uri_template: "/v1/{parent}/rollouts",
|
1518
|
+
matches: [
|
1519
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/fleetPackages/[^/]+/?$}, false]
|
1520
|
+
]
|
1521
|
+
)
|
1522
|
+
transcoder.transcode request_pb
|
1523
|
+
end
|
1524
|
+
|
1525
|
+
##
|
1526
|
+
# @private
|
1527
|
+
#
|
1528
|
+
# GRPC transcoding helper method for the get_rollout REST call
|
1529
|
+
#
|
1530
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::GetRolloutRequest]
|
1531
|
+
# A request object representing the call parameters. Required.
|
1532
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1533
|
+
# Uri, Body, Query string parameters
|
1534
|
+
def self.transcode_get_rollout_request request_pb
|
1535
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1536
|
+
.with_bindings(
|
1537
|
+
uri_method: :get,
|
1538
|
+
uri_template: "/v1/{name}",
|
1539
|
+
matches: [
|
1540
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/fleetPackages/[^/]+/rollouts/[^/]+/?$}, false]
|
1541
|
+
]
|
1542
|
+
)
|
1543
|
+
transcoder.transcode request_pb
|
1544
|
+
end
|
1545
|
+
|
1546
|
+
##
|
1547
|
+
# @private
|
1548
|
+
#
|
1549
|
+
# GRPC transcoding helper method for the suspend_rollout REST call
|
1550
|
+
#
|
1551
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::SuspendRolloutRequest]
|
1552
|
+
# A request object representing the call parameters. Required.
|
1553
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1554
|
+
# Uri, Body, Query string parameters
|
1555
|
+
def self.transcode_suspend_rollout_request request_pb
|
1556
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1557
|
+
.with_bindings(
|
1558
|
+
uri_method: :post,
|
1559
|
+
uri_template: "/v1/{name}:suspend",
|
1560
|
+
body: "*",
|
1561
|
+
matches: [
|
1562
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/fleetPackages/[^/]+/rollouts/[^/]+/?$}, false]
|
1563
|
+
]
|
1564
|
+
)
|
1565
|
+
transcoder.transcode request_pb
|
1566
|
+
end
|
1567
|
+
|
1568
|
+
##
|
1569
|
+
# @private
|
1570
|
+
#
|
1571
|
+
# GRPC transcoding helper method for the resume_rollout REST call
|
1572
|
+
#
|
1573
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::ResumeRolloutRequest]
|
1574
|
+
# A request object representing the call parameters. Required.
|
1575
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1576
|
+
# Uri, Body, Query string parameters
|
1577
|
+
def self.transcode_resume_rollout_request request_pb
|
1578
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1579
|
+
.with_bindings(
|
1580
|
+
uri_method: :post,
|
1581
|
+
uri_template: "/v1/{name}:resume",
|
1582
|
+
body: "*",
|
1583
|
+
matches: [
|
1584
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/fleetPackages/[^/]+/rollouts/[^/]+/?$}, false]
|
1585
|
+
]
|
1586
|
+
)
|
1587
|
+
transcoder.transcode request_pb
|
1588
|
+
end
|
1589
|
+
|
1590
|
+
##
|
1591
|
+
# @private
|
1592
|
+
#
|
1593
|
+
# GRPC transcoding helper method for the abort_rollout REST call
|
1594
|
+
#
|
1595
|
+
# @param request_pb [::Google::Cloud::ConfigDelivery::V1::AbortRolloutRequest]
|
1596
|
+
# A request object representing the call parameters. Required.
|
1597
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1598
|
+
# Uri, Body, Query string parameters
|
1599
|
+
def self.transcode_abort_rollout_request request_pb
|
1600
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1601
|
+
.with_bindings(
|
1602
|
+
uri_method: :post,
|
1603
|
+
uri_template: "/v1/{name}:abort",
|
1604
|
+
body: "*",
|
1605
|
+
matches: [
|
1606
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/fleetPackages/[^/]+/rollouts/[^/]+/?$}, false]
|
1607
|
+
]
|
1608
|
+
)
|
1609
|
+
transcoder.transcode request_pb
|
1610
|
+
end
|
1611
|
+
end
|
1612
|
+
end
|
1613
|
+
end
|
1614
|
+
end
|
1615
|
+
end
|
1616
|
+
end
|
1617
|
+
end
|