google-cloud-deploy-v1 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/deploy/v1/automation_payload_pb.rb +44 -0
- data/lib/google/cloud/deploy/v1/automationrun_payload_pb.rb +44 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy/client.rb +1155 -136
- data/lib/google/cloud/deploy/v1/cloud_deploy/paths.rb +61 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/client.rb +1088 -134
- data/lib/google/cloud/deploy/v1/cloud_deploy/rest/service_stub.rb +535 -0
- data/lib/google/cloud/deploy/v1/cloud_deploy_pb.rb +38 -1
- data/lib/google/cloud/deploy/v1/cloud_deploy_services_pb.rb +21 -0
- data/lib/google/cloud/deploy/v1/release_render_payload_pb.rb +3 -1
- data/lib/google/cloud/deploy/v1/rollout_update_payload_pb.rb +45 -0
- data/lib/google/cloud/deploy/v1/version.rb +1 -1
- data/proto_docs/google/cloud/deploy/v1/automation_payload.rb +46 -0
- data/proto_docs/google/cloud/deploy/v1/automationrun_payload.rb +55 -0
- data/proto_docs/google/cloud/deploy/v1/cloud_deploy.rb +940 -70
- data/proto_docs/google/cloud/deploy/v1/release_render_payload.rb +4 -1
- data/proto_docs/google/cloud/deploy/v1/rollout_update_payload.rb +99 -0
- metadata +8 -2
@@ -268,6 +268,44 @@ module Google
|
|
268
268
|
result
|
269
269
|
end
|
270
270
|
|
271
|
+
##
|
272
|
+
# Baseline implementation for the rollback_target REST call
|
273
|
+
#
|
274
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::RollbackTargetRequest]
|
275
|
+
# A request object representing the call parameters. Required.
|
276
|
+
# @param options [::Gapic::CallOptions]
|
277
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
278
|
+
#
|
279
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
280
|
+
# @yieldparam result [::Google::Cloud::Deploy::V1::RollbackTargetResponse]
|
281
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
282
|
+
#
|
283
|
+
# @return [::Google::Cloud::Deploy::V1::RollbackTargetResponse]
|
284
|
+
# A result object deserialized from the server's reply
|
285
|
+
def rollback_target request_pb, options = nil
|
286
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
287
|
+
|
288
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_rollback_target_request request_pb
|
289
|
+
query_string_params = if query_string_params.any?
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
|
+
else
|
292
|
+
{}
|
293
|
+
end
|
294
|
+
|
295
|
+
response = @client_stub.make_http_request(
|
296
|
+
verb,
|
297
|
+
uri: uri,
|
298
|
+
body: body || "",
|
299
|
+
params: query_string_params,
|
300
|
+
options: options
|
301
|
+
)
|
302
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
303
|
+
result = ::Google::Cloud::Deploy::V1::RollbackTargetResponse.decode_json response.body, ignore_unknown_fields: true
|
304
|
+
|
305
|
+
yield result, operation if block_given?
|
306
|
+
result
|
307
|
+
end
|
308
|
+
|
271
309
|
##
|
272
310
|
# Baseline implementation for the get_target REST call
|
273
311
|
#
|
@@ -1028,6 +1066,310 @@ module Google
|
|
1028
1066
|
result
|
1029
1067
|
end
|
1030
1068
|
|
1069
|
+
##
|
1070
|
+
# Baseline implementation for the create_automation REST call
|
1071
|
+
#
|
1072
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::CreateAutomationRequest]
|
1073
|
+
# A request object representing the call parameters. Required.
|
1074
|
+
# @param options [::Gapic::CallOptions]
|
1075
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1076
|
+
#
|
1077
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1078
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1079
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1080
|
+
#
|
1081
|
+
# @return [::Google::Longrunning::Operation]
|
1082
|
+
# A result object deserialized from the server's reply
|
1083
|
+
def create_automation request_pb, options = nil
|
1084
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1085
|
+
|
1086
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_automation_request request_pb
|
1087
|
+
query_string_params = if query_string_params.any?
|
1088
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1089
|
+
else
|
1090
|
+
{}
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
response = @client_stub.make_http_request(
|
1094
|
+
verb,
|
1095
|
+
uri: uri,
|
1096
|
+
body: body || "",
|
1097
|
+
params: query_string_params,
|
1098
|
+
options: options
|
1099
|
+
)
|
1100
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1101
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1102
|
+
|
1103
|
+
yield result, operation if block_given?
|
1104
|
+
result
|
1105
|
+
end
|
1106
|
+
|
1107
|
+
##
|
1108
|
+
# Baseline implementation for the update_automation REST call
|
1109
|
+
#
|
1110
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::UpdateAutomationRequest]
|
1111
|
+
# A request object representing the call parameters. Required.
|
1112
|
+
# @param options [::Gapic::CallOptions]
|
1113
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1114
|
+
#
|
1115
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1116
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1117
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1118
|
+
#
|
1119
|
+
# @return [::Google::Longrunning::Operation]
|
1120
|
+
# A result object deserialized from the server's reply
|
1121
|
+
def update_automation request_pb, options = nil
|
1122
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1123
|
+
|
1124
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_automation_request request_pb
|
1125
|
+
query_string_params = if query_string_params.any?
|
1126
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1127
|
+
else
|
1128
|
+
{}
|
1129
|
+
end
|
1130
|
+
|
1131
|
+
response = @client_stub.make_http_request(
|
1132
|
+
verb,
|
1133
|
+
uri: uri,
|
1134
|
+
body: body || "",
|
1135
|
+
params: query_string_params,
|
1136
|
+
options: options
|
1137
|
+
)
|
1138
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1139
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1140
|
+
|
1141
|
+
yield result, operation if block_given?
|
1142
|
+
result
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
##
|
1146
|
+
# Baseline implementation for the delete_automation REST call
|
1147
|
+
#
|
1148
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::DeleteAutomationRequest]
|
1149
|
+
# A request object representing the call parameters. Required.
|
1150
|
+
# @param options [::Gapic::CallOptions]
|
1151
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1152
|
+
#
|
1153
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1154
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1155
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1156
|
+
#
|
1157
|
+
# @return [::Google::Longrunning::Operation]
|
1158
|
+
# A result object deserialized from the server's reply
|
1159
|
+
def delete_automation request_pb, options = nil
|
1160
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1161
|
+
|
1162
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_automation_request request_pb
|
1163
|
+
query_string_params = if query_string_params.any?
|
1164
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1165
|
+
else
|
1166
|
+
{}
|
1167
|
+
end
|
1168
|
+
|
1169
|
+
response = @client_stub.make_http_request(
|
1170
|
+
verb,
|
1171
|
+
uri: uri,
|
1172
|
+
body: body || "",
|
1173
|
+
params: query_string_params,
|
1174
|
+
options: options
|
1175
|
+
)
|
1176
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1177
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1178
|
+
|
1179
|
+
yield result, operation if block_given?
|
1180
|
+
result
|
1181
|
+
end
|
1182
|
+
|
1183
|
+
##
|
1184
|
+
# Baseline implementation for the get_automation REST call
|
1185
|
+
#
|
1186
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::GetAutomationRequest]
|
1187
|
+
# A request object representing the call parameters. Required.
|
1188
|
+
# @param options [::Gapic::CallOptions]
|
1189
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1190
|
+
#
|
1191
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1192
|
+
# @yieldparam result [::Google::Cloud::Deploy::V1::Automation]
|
1193
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1194
|
+
#
|
1195
|
+
# @return [::Google::Cloud::Deploy::V1::Automation]
|
1196
|
+
# A result object deserialized from the server's reply
|
1197
|
+
def get_automation request_pb, options = nil
|
1198
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1199
|
+
|
1200
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_automation_request request_pb
|
1201
|
+
query_string_params = if query_string_params.any?
|
1202
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1203
|
+
else
|
1204
|
+
{}
|
1205
|
+
end
|
1206
|
+
|
1207
|
+
response = @client_stub.make_http_request(
|
1208
|
+
verb,
|
1209
|
+
uri: uri,
|
1210
|
+
body: body || "",
|
1211
|
+
params: query_string_params,
|
1212
|
+
options: options
|
1213
|
+
)
|
1214
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1215
|
+
result = ::Google::Cloud::Deploy::V1::Automation.decode_json response.body, ignore_unknown_fields: true
|
1216
|
+
|
1217
|
+
yield result, operation if block_given?
|
1218
|
+
result
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
##
|
1222
|
+
# Baseline implementation for the list_automations REST call
|
1223
|
+
#
|
1224
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::ListAutomationsRequest]
|
1225
|
+
# A request object representing the call parameters. Required.
|
1226
|
+
# @param options [::Gapic::CallOptions]
|
1227
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1228
|
+
#
|
1229
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1230
|
+
# @yieldparam result [::Google::Cloud::Deploy::V1::ListAutomationsResponse]
|
1231
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1232
|
+
#
|
1233
|
+
# @return [::Google::Cloud::Deploy::V1::ListAutomationsResponse]
|
1234
|
+
# A result object deserialized from the server's reply
|
1235
|
+
def list_automations request_pb, options = nil
|
1236
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1237
|
+
|
1238
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_automations_request request_pb
|
1239
|
+
query_string_params = if query_string_params.any?
|
1240
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1241
|
+
else
|
1242
|
+
{}
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
response = @client_stub.make_http_request(
|
1246
|
+
verb,
|
1247
|
+
uri: uri,
|
1248
|
+
body: body || "",
|
1249
|
+
params: query_string_params,
|
1250
|
+
options: options
|
1251
|
+
)
|
1252
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1253
|
+
result = ::Google::Cloud::Deploy::V1::ListAutomationsResponse.decode_json response.body, ignore_unknown_fields: true
|
1254
|
+
|
1255
|
+
yield result, operation if block_given?
|
1256
|
+
result
|
1257
|
+
end
|
1258
|
+
|
1259
|
+
##
|
1260
|
+
# Baseline implementation for the get_automation_run REST call
|
1261
|
+
#
|
1262
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::GetAutomationRunRequest]
|
1263
|
+
# A request object representing the call parameters. Required.
|
1264
|
+
# @param options [::Gapic::CallOptions]
|
1265
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1266
|
+
#
|
1267
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1268
|
+
# @yieldparam result [::Google::Cloud::Deploy::V1::AutomationRun]
|
1269
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1270
|
+
#
|
1271
|
+
# @return [::Google::Cloud::Deploy::V1::AutomationRun]
|
1272
|
+
# A result object deserialized from the server's reply
|
1273
|
+
def get_automation_run request_pb, options = nil
|
1274
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1275
|
+
|
1276
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_automation_run_request request_pb
|
1277
|
+
query_string_params = if query_string_params.any?
|
1278
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1279
|
+
else
|
1280
|
+
{}
|
1281
|
+
end
|
1282
|
+
|
1283
|
+
response = @client_stub.make_http_request(
|
1284
|
+
verb,
|
1285
|
+
uri: uri,
|
1286
|
+
body: body || "",
|
1287
|
+
params: query_string_params,
|
1288
|
+
options: options
|
1289
|
+
)
|
1290
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1291
|
+
result = ::Google::Cloud::Deploy::V1::AutomationRun.decode_json response.body, ignore_unknown_fields: true
|
1292
|
+
|
1293
|
+
yield result, operation if block_given?
|
1294
|
+
result
|
1295
|
+
end
|
1296
|
+
|
1297
|
+
##
|
1298
|
+
# Baseline implementation for the list_automation_runs REST call
|
1299
|
+
#
|
1300
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::ListAutomationRunsRequest]
|
1301
|
+
# A request object representing the call parameters. Required.
|
1302
|
+
# @param options [::Gapic::CallOptions]
|
1303
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1304
|
+
#
|
1305
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1306
|
+
# @yieldparam result [::Google::Cloud::Deploy::V1::ListAutomationRunsResponse]
|
1307
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1308
|
+
#
|
1309
|
+
# @return [::Google::Cloud::Deploy::V1::ListAutomationRunsResponse]
|
1310
|
+
# A result object deserialized from the server's reply
|
1311
|
+
def list_automation_runs request_pb, options = nil
|
1312
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1313
|
+
|
1314
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_automation_runs_request request_pb
|
1315
|
+
query_string_params = if query_string_params.any?
|
1316
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1317
|
+
else
|
1318
|
+
{}
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
response = @client_stub.make_http_request(
|
1322
|
+
verb,
|
1323
|
+
uri: uri,
|
1324
|
+
body: body || "",
|
1325
|
+
params: query_string_params,
|
1326
|
+
options: options
|
1327
|
+
)
|
1328
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1329
|
+
result = ::Google::Cloud::Deploy::V1::ListAutomationRunsResponse.decode_json response.body, ignore_unknown_fields: true
|
1330
|
+
|
1331
|
+
yield result, operation if block_given?
|
1332
|
+
result
|
1333
|
+
end
|
1334
|
+
|
1335
|
+
##
|
1336
|
+
# Baseline implementation for the cancel_automation_run REST call
|
1337
|
+
#
|
1338
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::CancelAutomationRunRequest]
|
1339
|
+
# A request object representing the call parameters. Required.
|
1340
|
+
# @param options [::Gapic::CallOptions]
|
1341
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1342
|
+
#
|
1343
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1344
|
+
# @yieldparam result [::Google::Cloud::Deploy::V1::CancelAutomationRunResponse]
|
1345
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1346
|
+
#
|
1347
|
+
# @return [::Google::Cloud::Deploy::V1::CancelAutomationRunResponse]
|
1348
|
+
# A result object deserialized from the server's reply
|
1349
|
+
def cancel_automation_run request_pb, options = nil
|
1350
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1351
|
+
|
1352
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_cancel_automation_run_request request_pb
|
1353
|
+
query_string_params = if query_string_params.any?
|
1354
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1355
|
+
else
|
1356
|
+
{}
|
1357
|
+
end
|
1358
|
+
|
1359
|
+
response = @client_stub.make_http_request(
|
1360
|
+
verb,
|
1361
|
+
uri: uri,
|
1362
|
+
body: body || "",
|
1363
|
+
params: query_string_params,
|
1364
|
+
options: options
|
1365
|
+
)
|
1366
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1367
|
+
result = ::Google::Cloud::Deploy::V1::CancelAutomationRunResponse.decode_json response.body, ignore_unknown_fields: true
|
1368
|
+
|
1369
|
+
yield result, operation if block_given?
|
1370
|
+
result
|
1371
|
+
end
|
1372
|
+
|
1031
1373
|
##
|
1032
1374
|
# @private
|
1033
1375
|
#
|
@@ -1156,6 +1498,28 @@ module Google
|
|
1156
1498
|
transcoder.transcode request_pb
|
1157
1499
|
end
|
1158
1500
|
|
1501
|
+
##
|
1502
|
+
# @private
|
1503
|
+
#
|
1504
|
+
# GRPC transcoding helper method for the rollback_target REST call
|
1505
|
+
#
|
1506
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::RollbackTargetRequest]
|
1507
|
+
# A request object representing the call parameters. Required.
|
1508
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1509
|
+
# Uri, Body, Query string parameters
|
1510
|
+
def self.transcode_rollback_target_request request_pb
|
1511
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1512
|
+
.with_bindings(
|
1513
|
+
uri_method: :post,
|
1514
|
+
uri_template: "/v1/{name}:rollbackTarget",
|
1515
|
+
body: "*",
|
1516
|
+
matches: [
|
1517
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/?$}, false]
|
1518
|
+
]
|
1519
|
+
)
|
1520
|
+
transcoder.transcode request_pb
|
1521
|
+
end
|
1522
|
+
|
1159
1523
|
##
|
1160
1524
|
# @private
|
1161
1525
|
#
|
@@ -1586,6 +1950,177 @@ module Google
|
|
1586
1950
|
)
|
1587
1951
|
transcoder.transcode request_pb
|
1588
1952
|
end
|
1953
|
+
|
1954
|
+
##
|
1955
|
+
# @private
|
1956
|
+
#
|
1957
|
+
# GRPC transcoding helper method for the create_automation REST call
|
1958
|
+
#
|
1959
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::CreateAutomationRequest]
|
1960
|
+
# A request object representing the call parameters. Required.
|
1961
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1962
|
+
# Uri, Body, Query string parameters
|
1963
|
+
def self.transcode_create_automation_request request_pb
|
1964
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1965
|
+
.with_bindings(
|
1966
|
+
uri_method: :post,
|
1967
|
+
uri_template: "/v1/{parent}/automations",
|
1968
|
+
body: "automation",
|
1969
|
+
matches: [
|
1970
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/?$}, false]
|
1971
|
+
]
|
1972
|
+
)
|
1973
|
+
transcoder.transcode request_pb
|
1974
|
+
end
|
1975
|
+
|
1976
|
+
##
|
1977
|
+
# @private
|
1978
|
+
#
|
1979
|
+
# GRPC transcoding helper method for the update_automation REST call
|
1980
|
+
#
|
1981
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::UpdateAutomationRequest]
|
1982
|
+
# A request object representing the call parameters. Required.
|
1983
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1984
|
+
# Uri, Body, Query string parameters
|
1985
|
+
def self.transcode_update_automation_request request_pb
|
1986
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1987
|
+
.with_bindings(
|
1988
|
+
uri_method: :patch,
|
1989
|
+
uri_template: "/v1/{automation.name}",
|
1990
|
+
body: "automation",
|
1991
|
+
matches: [
|
1992
|
+
["automation.name", %r{^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/automations/[^/]+/?$}, false]
|
1993
|
+
]
|
1994
|
+
)
|
1995
|
+
transcoder.transcode request_pb
|
1996
|
+
end
|
1997
|
+
|
1998
|
+
##
|
1999
|
+
# @private
|
2000
|
+
#
|
2001
|
+
# GRPC transcoding helper method for the delete_automation REST call
|
2002
|
+
#
|
2003
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::DeleteAutomationRequest]
|
2004
|
+
# A request object representing the call parameters. Required.
|
2005
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2006
|
+
# Uri, Body, Query string parameters
|
2007
|
+
def self.transcode_delete_automation_request request_pb
|
2008
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2009
|
+
.with_bindings(
|
2010
|
+
uri_method: :delete,
|
2011
|
+
uri_template: "/v1/{name}",
|
2012
|
+
matches: [
|
2013
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/automations/[^/]+/?$}, false]
|
2014
|
+
]
|
2015
|
+
)
|
2016
|
+
transcoder.transcode request_pb
|
2017
|
+
end
|
2018
|
+
|
2019
|
+
##
|
2020
|
+
# @private
|
2021
|
+
#
|
2022
|
+
# GRPC transcoding helper method for the get_automation REST call
|
2023
|
+
#
|
2024
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::GetAutomationRequest]
|
2025
|
+
# A request object representing the call parameters. Required.
|
2026
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2027
|
+
# Uri, Body, Query string parameters
|
2028
|
+
def self.transcode_get_automation_request request_pb
|
2029
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2030
|
+
.with_bindings(
|
2031
|
+
uri_method: :get,
|
2032
|
+
uri_template: "/v1/{name}",
|
2033
|
+
matches: [
|
2034
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/automations/[^/]+/?$}, false]
|
2035
|
+
]
|
2036
|
+
)
|
2037
|
+
transcoder.transcode request_pb
|
2038
|
+
end
|
2039
|
+
|
2040
|
+
##
|
2041
|
+
# @private
|
2042
|
+
#
|
2043
|
+
# GRPC transcoding helper method for the list_automations REST call
|
2044
|
+
#
|
2045
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::ListAutomationsRequest]
|
2046
|
+
# A request object representing the call parameters. Required.
|
2047
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2048
|
+
# Uri, Body, Query string parameters
|
2049
|
+
def self.transcode_list_automations_request request_pb
|
2050
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2051
|
+
.with_bindings(
|
2052
|
+
uri_method: :get,
|
2053
|
+
uri_template: "/v1/{parent}/automations",
|
2054
|
+
matches: [
|
2055
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/?$}, false]
|
2056
|
+
]
|
2057
|
+
)
|
2058
|
+
transcoder.transcode request_pb
|
2059
|
+
end
|
2060
|
+
|
2061
|
+
##
|
2062
|
+
# @private
|
2063
|
+
#
|
2064
|
+
# GRPC transcoding helper method for the get_automation_run REST call
|
2065
|
+
#
|
2066
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::GetAutomationRunRequest]
|
2067
|
+
# A request object representing the call parameters. Required.
|
2068
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2069
|
+
# Uri, Body, Query string parameters
|
2070
|
+
def self.transcode_get_automation_run_request request_pb
|
2071
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2072
|
+
.with_bindings(
|
2073
|
+
uri_method: :get,
|
2074
|
+
uri_template: "/v1/{name}",
|
2075
|
+
matches: [
|
2076
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/automationRuns/[^/]+/?$}, false]
|
2077
|
+
]
|
2078
|
+
)
|
2079
|
+
transcoder.transcode request_pb
|
2080
|
+
end
|
2081
|
+
|
2082
|
+
##
|
2083
|
+
# @private
|
2084
|
+
#
|
2085
|
+
# GRPC transcoding helper method for the list_automation_runs REST call
|
2086
|
+
#
|
2087
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::ListAutomationRunsRequest]
|
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_list_automation_runs_request request_pb
|
2092
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2093
|
+
.with_bindings(
|
2094
|
+
uri_method: :get,
|
2095
|
+
uri_template: "/v1/{parent}/automationRuns",
|
2096
|
+
matches: [
|
2097
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/?$}, false]
|
2098
|
+
]
|
2099
|
+
)
|
2100
|
+
transcoder.transcode request_pb
|
2101
|
+
end
|
2102
|
+
|
2103
|
+
##
|
2104
|
+
# @private
|
2105
|
+
#
|
2106
|
+
# GRPC transcoding helper method for the cancel_automation_run REST call
|
2107
|
+
#
|
2108
|
+
# @param request_pb [::Google::Cloud::Deploy::V1::CancelAutomationRunRequest]
|
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_cancel_automation_run_request request_pb
|
2113
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2114
|
+
.with_bindings(
|
2115
|
+
uri_method: :post,
|
2116
|
+
uri_template: "/v1/{name}:cancel",
|
2117
|
+
body: "*",
|
2118
|
+
matches: [
|
2119
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/automationRuns/[^/]+/?$}, false]
|
2120
|
+
]
|
2121
|
+
)
|
2122
|
+
transcoder.transcode request_pb
|
2123
|
+
end
|
1589
2124
|
end
|
1590
2125
|
end
|
1591
2126
|
end
|