google-cloud-bare_metal_solution-v2 0.8.0 → 0.9.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/README.md +30 -20
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/client.rb +145 -89
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/operations.rb +25 -20
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/client.rb +139 -89
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/operations.rb +54 -42
- data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/service_stub.rb +366 -266
- data/lib/google/cloud/bare_metal_solution/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +74 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +5 -5
@@ -39,6 +39,9 @@ module Google
|
|
39
39
|
# upon specific servers in your Bare Metal Solution environment.
|
40
40
|
#
|
41
41
|
class Client
|
42
|
+
# @private
|
43
|
+
API_VERSION = ""
|
44
|
+
|
42
45
|
# @private
|
43
46
|
DEFAULT_ENDPOINT_TEMPLATE = "baremetalsolution.$UNIVERSE_DOMAIN$"
|
44
47
|
|
@@ -172,14 +175,26 @@ module Google
|
|
172
175
|
universe_domain: @config.universe_domain,
|
173
176
|
channel_args: @config.channel_args,
|
174
177
|
interceptors: @config.interceptors,
|
175
|
-
channel_pool_config: @config.channel_pool
|
178
|
+
channel_pool_config: @config.channel_pool,
|
179
|
+
logger: @config.logger
|
176
180
|
)
|
177
181
|
|
182
|
+
@bare_metal_solution_stub.stub_logger&.info do |entry|
|
183
|
+
entry.set_system_name
|
184
|
+
entry.set_service
|
185
|
+
entry.message = "Created client for #{entry.service}"
|
186
|
+
entry.set_credentials_fields credentials
|
187
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
188
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
189
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
190
|
+
end
|
191
|
+
|
178
192
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
179
193
|
config.credentials = credentials
|
180
194
|
config.quota_project = @quota_project_id
|
181
195
|
config.endpoint = @bare_metal_solution_stub.endpoint
|
182
196
|
config.universe_domain = @bare_metal_solution_stub.universe_domain
|
197
|
+
config.logger = @bare_metal_solution_stub.logger if config.respond_to? :logger=
|
183
198
|
end
|
184
199
|
|
185
200
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
@@ -187,6 +202,7 @@ module Google
|
|
187
202
|
config.quota_project = @quota_project_id
|
188
203
|
config.endpoint = @bare_metal_solution_stub.endpoint
|
189
204
|
config.universe_domain = @bare_metal_solution_stub.universe_domain
|
205
|
+
config.logger = @bare_metal_solution_stub.logger if config.respond_to? :logger=
|
190
206
|
end
|
191
207
|
end
|
192
208
|
|
@@ -211,6 +227,15 @@ module Google
|
|
211
227
|
#
|
212
228
|
attr_reader :iam_policy_client
|
213
229
|
|
230
|
+
##
|
231
|
+
# The logger used for request/response debug logging.
|
232
|
+
#
|
233
|
+
# @return [Logger]
|
234
|
+
#
|
235
|
+
def logger
|
236
|
+
@bare_metal_solution_stub.logger
|
237
|
+
end
|
238
|
+
|
214
239
|
# Service calls
|
215
240
|
|
216
241
|
##
|
@@ -279,10 +304,11 @@ module Google
|
|
279
304
|
# Customize the options with defaults
|
280
305
|
metadata = @config.rpcs.list_instances.metadata.to_h
|
281
306
|
|
282
|
-
# Set x-goog-api-client
|
307
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
283
308
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
284
309
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
285
310
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
311
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
286
312
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
287
313
|
|
288
314
|
header_params = {}
|
@@ -304,7 +330,7 @@ module Google
|
|
304
330
|
@bare_metal_solution_stub.call_rpc :list_instances, request, options: options do |response, operation|
|
305
331
|
response = ::Gapic::PagedEnumerable.new @bare_metal_solution_stub, :list_instances, request, response, operation, options
|
306
332
|
yield response, operation if block_given?
|
307
|
-
|
333
|
+
throw :response, response
|
308
334
|
end
|
309
335
|
rescue ::GRPC::BadStatus => e
|
310
336
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -365,10 +391,11 @@ module Google
|
|
365
391
|
# Customize the options with defaults
|
366
392
|
metadata = @config.rpcs.get_instance.metadata.to_h
|
367
393
|
|
368
|
-
# Set x-goog-api-client
|
394
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
369
395
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
370
396
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
371
397
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
398
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
372
399
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
373
400
|
|
374
401
|
header_params = {}
|
@@ -389,7 +416,6 @@ module Google
|
|
389
416
|
|
390
417
|
@bare_metal_solution_stub.call_rpc :get_instance, request, options: options do |response, operation|
|
391
418
|
yield response, operation if block_given?
|
392
|
-
return response
|
393
419
|
end
|
394
420
|
rescue ::GRPC::BadStatus => e
|
395
421
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -466,10 +492,11 @@ module Google
|
|
466
492
|
# Customize the options with defaults
|
467
493
|
metadata = @config.rpcs.update_instance.metadata.to_h
|
468
494
|
|
469
|
-
# Set x-goog-api-client
|
495
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
470
496
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
471
497
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
472
498
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
499
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
473
500
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
474
501
|
|
475
502
|
header_params = {}
|
@@ -491,7 +518,7 @@ module Google
|
|
491
518
|
@bare_metal_solution_stub.call_rpc :update_instance, request, options: options do |response, operation|
|
492
519
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
493
520
|
yield response, operation if block_given?
|
494
|
-
|
521
|
+
throw :response, response
|
495
522
|
end
|
496
523
|
rescue ::GRPC::BadStatus => e
|
497
524
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -556,10 +583,11 @@ module Google
|
|
556
583
|
# Customize the options with defaults
|
557
584
|
metadata = @config.rpcs.rename_instance.metadata.to_h
|
558
585
|
|
559
|
-
# Set x-goog-api-client
|
586
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
560
587
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
561
588
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
562
589
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
590
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
563
591
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
564
592
|
|
565
593
|
header_params = {}
|
@@ -580,7 +608,6 @@ module Google
|
|
580
608
|
|
581
609
|
@bare_metal_solution_stub.call_rpc :rename_instance, request, options: options do |response, operation|
|
582
610
|
yield response, operation if block_given?
|
583
|
-
return response
|
584
611
|
end
|
585
612
|
rescue ::GRPC::BadStatus => e
|
586
613
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -649,10 +676,11 @@ module Google
|
|
649
676
|
# Customize the options with defaults
|
650
677
|
metadata = @config.rpcs.reset_instance.metadata.to_h
|
651
678
|
|
652
|
-
# Set x-goog-api-client
|
679
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
653
680
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
654
681
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
655
682
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
683
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
656
684
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
657
685
|
|
658
686
|
header_params = {}
|
@@ -674,7 +702,7 @@ module Google
|
|
674
702
|
@bare_metal_solution_stub.call_rpc :reset_instance, request, options: options do |response, operation|
|
675
703
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
676
704
|
yield response, operation if block_given?
|
677
|
-
|
705
|
+
throw :response, response
|
678
706
|
end
|
679
707
|
rescue ::GRPC::BadStatus => e
|
680
708
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -742,10 +770,11 @@ module Google
|
|
742
770
|
# Customize the options with defaults
|
743
771
|
metadata = @config.rpcs.start_instance.metadata.to_h
|
744
772
|
|
745
|
-
# Set x-goog-api-client
|
773
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
746
774
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
747
775
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
748
776
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
777
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
749
778
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
750
779
|
|
751
780
|
header_params = {}
|
@@ -767,7 +796,7 @@ module Google
|
|
767
796
|
@bare_metal_solution_stub.call_rpc :start_instance, request, options: options do |response, operation|
|
768
797
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
769
798
|
yield response, operation if block_given?
|
770
|
-
|
799
|
+
throw :response, response
|
771
800
|
end
|
772
801
|
rescue ::GRPC::BadStatus => e
|
773
802
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -835,10 +864,11 @@ module Google
|
|
835
864
|
# Customize the options with defaults
|
836
865
|
metadata = @config.rpcs.stop_instance.metadata.to_h
|
837
866
|
|
838
|
-
# Set x-goog-api-client
|
867
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
839
868
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
840
869
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
841
870
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
871
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
842
872
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
843
873
|
|
844
874
|
header_params = {}
|
@@ -860,7 +890,7 @@ module Google
|
|
860
890
|
@bare_metal_solution_stub.call_rpc :stop_instance, request, options: options do |response, operation|
|
861
891
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
862
892
|
yield response, operation if block_given?
|
863
|
-
|
893
|
+
throw :response, response
|
864
894
|
end
|
865
895
|
rescue ::GRPC::BadStatus => e
|
866
896
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -928,10 +958,11 @@ module Google
|
|
928
958
|
# Customize the options with defaults
|
929
959
|
metadata = @config.rpcs.enable_interactive_serial_console.metadata.to_h
|
930
960
|
|
931
|
-
# Set x-goog-api-client
|
961
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
932
962
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
933
963
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
934
964
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
965
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
935
966
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
936
967
|
|
937
968
|
header_params = {}
|
@@ -953,7 +984,7 @@ module Google
|
|
953
984
|
@bare_metal_solution_stub.call_rpc :enable_interactive_serial_console, request, options: options do |response, operation|
|
954
985
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
955
986
|
yield response, operation if block_given?
|
956
|
-
|
987
|
+
throw :response, response
|
957
988
|
end
|
958
989
|
rescue ::GRPC::BadStatus => e
|
959
990
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1021,10 +1052,11 @@ module Google
|
|
1021
1052
|
# Customize the options with defaults
|
1022
1053
|
metadata = @config.rpcs.disable_interactive_serial_console.metadata.to_h
|
1023
1054
|
|
1024
|
-
# Set x-goog-api-client
|
1055
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1025
1056
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1026
1057
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1027
1058
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
1059
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1028
1060
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1029
1061
|
|
1030
1062
|
header_params = {}
|
@@ -1046,7 +1078,7 @@ module Google
|
|
1046
1078
|
@bare_metal_solution_stub.call_rpc :disable_interactive_serial_console, request, options: options do |response, operation|
|
1047
1079
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1048
1080
|
yield response, operation if block_given?
|
1049
|
-
|
1081
|
+
throw :response, response
|
1050
1082
|
end
|
1051
1083
|
rescue ::GRPC::BadStatus => e
|
1052
1084
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1118,10 +1150,11 @@ module Google
|
|
1118
1150
|
# Customize the options with defaults
|
1119
1151
|
metadata = @config.rpcs.detach_lun.metadata.to_h
|
1120
1152
|
|
1121
|
-
# Set x-goog-api-client
|
1153
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1122
1154
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1123
1155
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1124
1156
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
1157
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1125
1158
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1126
1159
|
|
1127
1160
|
header_params = {}
|
@@ -1143,7 +1176,7 @@ module Google
|
|
1143
1176
|
@bare_metal_solution_stub.call_rpc :detach_lun, request, options: options do |response, operation|
|
1144
1177
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1145
1178
|
yield response, operation if block_given?
|
1146
|
-
|
1179
|
+
throw :response, response
|
1147
1180
|
end
|
1148
1181
|
rescue ::GRPC::BadStatus => e
|
1149
1182
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1214,10 +1247,11 @@ module Google
|
|
1214
1247
|
# Customize the options with defaults
|
1215
1248
|
metadata = @config.rpcs.list_ssh_keys.metadata.to_h
|
1216
1249
|
|
1217
|
-
# Set x-goog-api-client
|
1250
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1218
1251
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1219
1252
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1220
1253
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
1254
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1221
1255
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1222
1256
|
|
1223
1257
|
header_params = {}
|
@@ -1239,7 +1273,7 @@ module Google
|
|
1239
1273
|
@bare_metal_solution_stub.call_rpc :list_ssh_keys, request, options: options do |response, operation|
|
1240
1274
|
response = ::Gapic::PagedEnumerable.new @bare_metal_solution_stub, :list_ssh_keys, request, response, operation, options
|
1241
1275
|
yield response, operation if block_given?
|
1242
|
-
|
1276
|
+
throw :response, response
|
1243
1277
|
end
|
1244
1278
|
rescue ::GRPC::BadStatus => e
|
1245
1279
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1309,10 +1343,11 @@ module Google
|
|
1309
1343
|
# Customize the options with defaults
|
1310
1344
|
metadata = @config.rpcs.create_ssh_key.metadata.to_h
|
1311
1345
|
|
1312
|
-
# Set x-goog-api-client
|
1346
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1313
1347
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1314
1348
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1315
1349
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
1350
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1316
1351
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1317
1352
|
|
1318
1353
|
header_params = {}
|
@@ -1333,7 +1368,6 @@ module Google
|
|
1333
1368
|
|
1334
1369
|
@bare_metal_solution_stub.call_rpc :create_ssh_key, request, options: options do |response, operation|
|
1335
1370
|
yield response, operation if block_given?
|
1336
|
-
return response
|
1337
1371
|
end
|
1338
1372
|
rescue ::GRPC::BadStatus => e
|
1339
1373
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1395,10 +1429,11 @@ module Google
|
|
1395
1429
|
# Customize the options with defaults
|
1396
1430
|
metadata = @config.rpcs.delete_ssh_key.metadata.to_h
|
1397
1431
|
|
1398
|
-
# Set x-goog-api-client
|
1432
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1399
1433
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1400
1434
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1401
1435
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
1436
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1402
1437
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1403
1438
|
|
1404
1439
|
header_params = {}
|
@@ -1419,7 +1454,6 @@ module Google
|
|
1419
1454
|
|
1420
1455
|
@bare_metal_solution_stub.call_rpc :delete_ssh_key, request, options: options do |response, operation|
|
1421
1456
|
yield response, operation if block_given?
|
1422
|
-
return response
|
1423
1457
|
end
|
1424
1458
|
rescue ::GRPC::BadStatus => e
|
1425
1459
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1491,10 +1525,11 @@ module Google
|
|
1491
1525
|
# Customize the options with defaults
|
1492
1526
|
metadata = @config.rpcs.list_volumes.metadata.to_h
|
1493
1527
|
|
1494
|
-
# Set x-goog-api-client
|
1528
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1495
1529
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1496
1530
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1497
1531
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
1532
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1498
1533
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1499
1534
|
|
1500
1535
|
header_params = {}
|
@@ -1516,7 +1551,7 @@ module Google
|
|
1516
1551
|
@bare_metal_solution_stub.call_rpc :list_volumes, request, options: options do |response, operation|
|
1517
1552
|
response = ::Gapic::PagedEnumerable.new @bare_metal_solution_stub, :list_volumes, request, response, operation, options
|
1518
1553
|
yield response, operation if block_given?
|
1519
|
-
|
1554
|
+
throw :response, response
|
1520
1555
|
end
|
1521
1556
|
rescue ::GRPC::BadStatus => e
|
1522
1557
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1577,10 +1612,11 @@ module Google
|
|
1577
1612
|
# Customize the options with defaults
|
1578
1613
|
metadata = @config.rpcs.get_volume.metadata.to_h
|
1579
1614
|
|
1580
|
-
# Set x-goog-api-client
|
1615
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1581
1616
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1582
1617
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1583
1618
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
1619
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1584
1620
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1585
1621
|
|
1586
1622
|
header_params = {}
|
@@ -1601,7 +1637,6 @@ module Google
|
|
1601
1637
|
|
1602
1638
|
@bare_metal_solution_stub.call_rpc :get_volume, request, options: options do |response, operation|
|
1603
1639
|
yield response, operation if block_given?
|
1604
|
-
return response
|
1605
1640
|
end
|
1606
1641
|
rescue ::GRPC::BadStatus => e
|
1607
1642
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1676,10 +1711,11 @@ module Google
|
|
1676
1711
|
# Customize the options with defaults
|
1677
1712
|
metadata = @config.rpcs.update_volume.metadata.to_h
|
1678
1713
|
|
1679
|
-
# Set x-goog-api-client
|
1714
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1680
1715
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1681
1716
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1682
1717
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
1718
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1683
1719
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1684
1720
|
|
1685
1721
|
header_params = {}
|
@@ -1701,7 +1737,7 @@ module Google
|
|
1701
1737
|
@bare_metal_solution_stub.call_rpc :update_volume, request, options: options do |response, operation|
|
1702
1738
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1703
1739
|
yield response, operation if block_given?
|
1704
|
-
|
1740
|
+
throw :response, response
|
1705
1741
|
end
|
1706
1742
|
rescue ::GRPC::BadStatus => e
|
1707
1743
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1766,10 +1802,11 @@ module Google
|
|
1766
1802
|
# Customize the options with defaults
|
1767
1803
|
metadata = @config.rpcs.rename_volume.metadata.to_h
|
1768
1804
|
|
1769
|
-
# Set x-goog-api-client
|
1805
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1770
1806
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1771
1807
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1772
1808
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
1809
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1773
1810
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1774
1811
|
|
1775
1812
|
header_params = {}
|
@@ -1790,7 +1827,6 @@ module Google
|
|
1790
1827
|
|
1791
1828
|
@bare_metal_solution_stub.call_rpc :rename_volume, request, options: options do |response, operation|
|
1792
1829
|
yield response, operation if block_given?
|
1793
|
-
return response
|
1794
1830
|
end
|
1795
1831
|
rescue ::GRPC::BadStatus => e
|
1796
1832
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1859,10 +1895,11 @@ module Google
|
|
1859
1895
|
# Customize the options with defaults
|
1860
1896
|
metadata = @config.rpcs.evict_volume.metadata.to_h
|
1861
1897
|
|
1862
|
-
# Set x-goog-api-client
|
1898
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1863
1899
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1864
1900
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1865
1901
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
1902
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1866
1903
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1867
1904
|
|
1868
1905
|
header_params = {}
|
@@ -1884,7 +1921,7 @@ module Google
|
|
1884
1921
|
@bare_metal_solution_stub.call_rpc :evict_volume, request, options: options do |response, operation|
|
1885
1922
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1886
1923
|
yield response, operation if block_given?
|
1887
|
-
|
1924
|
+
throw :response, response
|
1888
1925
|
end
|
1889
1926
|
rescue ::GRPC::BadStatus => e
|
1890
1927
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1954,10 +1991,11 @@ module Google
|
|
1954
1991
|
# Customize the options with defaults
|
1955
1992
|
metadata = @config.rpcs.resize_volume.metadata.to_h
|
1956
1993
|
|
1957
|
-
# Set x-goog-api-client
|
1994
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1958
1995
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1959
1996
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1960
1997
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
1998
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1961
1999
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1962
2000
|
|
1963
2001
|
header_params = {}
|
@@ -1979,7 +2017,7 @@ module Google
|
|
1979
2017
|
@bare_metal_solution_stub.call_rpc :resize_volume, request, options: options do |response, operation|
|
1980
2018
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1981
2019
|
yield response, operation if block_given?
|
1982
|
-
|
2020
|
+
throw :response, response
|
1983
2021
|
end
|
1984
2022
|
rescue ::GRPC::BadStatus => e
|
1985
2023
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2051,10 +2089,11 @@ module Google
|
|
2051
2089
|
# Customize the options with defaults
|
2052
2090
|
metadata = @config.rpcs.list_networks.metadata.to_h
|
2053
2091
|
|
2054
|
-
# Set x-goog-api-client
|
2092
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2055
2093
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2056
2094
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2057
2095
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
2096
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2058
2097
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2059
2098
|
|
2060
2099
|
header_params = {}
|
@@ -2076,7 +2115,7 @@ module Google
|
|
2076
2115
|
@bare_metal_solution_stub.call_rpc :list_networks, request, options: options do |response, operation|
|
2077
2116
|
response = ::Gapic::PagedEnumerable.new @bare_metal_solution_stub, :list_networks, request, response, operation, options
|
2078
2117
|
yield response, operation if block_given?
|
2079
|
-
|
2118
|
+
throw :response, response
|
2080
2119
|
end
|
2081
2120
|
rescue ::GRPC::BadStatus => e
|
2082
2121
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2138,10 +2177,11 @@ module Google
|
|
2138
2177
|
# Customize the options with defaults
|
2139
2178
|
metadata = @config.rpcs.list_network_usage.metadata.to_h
|
2140
2179
|
|
2141
|
-
# Set x-goog-api-client
|
2180
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2142
2181
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2143
2182
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2144
2183
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
2184
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2145
2185
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2146
2186
|
|
2147
2187
|
header_params = {}
|
@@ -2162,7 +2202,6 @@ module Google
|
|
2162
2202
|
|
2163
2203
|
@bare_metal_solution_stub.call_rpc :list_network_usage, request, options: options do |response, operation|
|
2164
2204
|
yield response, operation if block_given?
|
2165
|
-
return response
|
2166
2205
|
end
|
2167
2206
|
rescue ::GRPC::BadStatus => e
|
2168
2207
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2223,10 +2262,11 @@ module Google
|
|
2223
2262
|
# Customize the options with defaults
|
2224
2263
|
metadata = @config.rpcs.get_network.metadata.to_h
|
2225
2264
|
|
2226
|
-
# Set x-goog-api-client
|
2265
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2227
2266
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2228
2267
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2229
2268
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
2269
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2230
2270
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2231
2271
|
|
2232
2272
|
header_params = {}
|
@@ -2247,7 +2287,6 @@ module Google
|
|
2247
2287
|
|
2248
2288
|
@bare_metal_solution_stub.call_rpc :get_network, request, options: options do |response, operation|
|
2249
2289
|
yield response, operation if block_given?
|
2250
|
-
return response
|
2251
2290
|
end
|
2252
2291
|
rescue ::GRPC::BadStatus => e
|
2253
2292
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2322,10 +2361,11 @@ module Google
|
|
2322
2361
|
# Customize the options with defaults
|
2323
2362
|
metadata = @config.rpcs.update_network.metadata.to_h
|
2324
2363
|
|
2325
|
-
# Set x-goog-api-client
|
2364
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2326
2365
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2327
2366
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2328
2367
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
2368
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2329
2369
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2330
2370
|
|
2331
2371
|
header_params = {}
|
@@ -2347,7 +2387,7 @@ module Google
|
|
2347
2387
|
@bare_metal_solution_stub.call_rpc :update_network, request, options: options do |response, operation|
|
2348
2388
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2349
2389
|
yield response, operation if block_given?
|
2350
|
-
|
2390
|
+
throw :response, response
|
2351
2391
|
end
|
2352
2392
|
rescue ::GRPC::BadStatus => e
|
2353
2393
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2411,10 +2451,11 @@ module Google
|
|
2411
2451
|
# Customize the options with defaults
|
2412
2452
|
metadata = @config.rpcs.create_volume_snapshot.metadata.to_h
|
2413
2453
|
|
2414
|
-
# Set x-goog-api-client
|
2454
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2415
2455
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2416
2456
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2417
2457
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
2458
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2418
2459
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2419
2460
|
|
2420
2461
|
header_params = {}
|
@@ -2435,7 +2476,6 @@ module Google
|
|
2435
2476
|
|
2436
2477
|
@bare_metal_solution_stub.call_rpc :create_volume_snapshot, request, options: options do |response, operation|
|
2437
2478
|
yield response, operation if block_given?
|
2438
|
-
return response
|
2439
2479
|
end
|
2440
2480
|
rescue ::GRPC::BadStatus => e
|
2441
2481
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2505,10 +2545,11 @@ module Google
|
|
2505
2545
|
# Customize the options with defaults
|
2506
2546
|
metadata = @config.rpcs.restore_volume_snapshot.metadata.to_h
|
2507
2547
|
|
2508
|
-
# Set x-goog-api-client
|
2548
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2509
2549
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2510
2550
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2511
2551
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
2552
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2512
2553
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2513
2554
|
|
2514
2555
|
header_params = {}
|
@@ -2530,7 +2571,7 @@ module Google
|
|
2530
2571
|
@bare_metal_solution_stub.call_rpc :restore_volume_snapshot, request, options: options do |response, operation|
|
2531
2572
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2532
2573
|
yield response, operation if block_given?
|
2533
|
-
|
2574
|
+
throw :response, response
|
2534
2575
|
end
|
2535
2576
|
rescue ::GRPC::BadStatus => e
|
2536
2577
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2592,10 +2633,11 @@ module Google
|
|
2592
2633
|
# Customize the options with defaults
|
2593
2634
|
metadata = @config.rpcs.delete_volume_snapshot.metadata.to_h
|
2594
2635
|
|
2595
|
-
# Set x-goog-api-client
|
2636
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2596
2637
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2597
2638
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2598
2639
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
2640
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2599
2641
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2600
2642
|
|
2601
2643
|
header_params = {}
|
@@ -2616,7 +2658,6 @@ module Google
|
|
2616
2658
|
|
2617
2659
|
@bare_metal_solution_stub.call_rpc :delete_volume_snapshot, request, options: options do |response, operation|
|
2618
2660
|
yield response, operation if block_given?
|
2619
|
-
return response
|
2620
2661
|
end
|
2621
2662
|
rescue ::GRPC::BadStatus => e
|
2622
2663
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2678,10 +2719,11 @@ module Google
|
|
2678
2719
|
# Customize the options with defaults
|
2679
2720
|
metadata = @config.rpcs.get_volume_snapshot.metadata.to_h
|
2680
2721
|
|
2681
|
-
# Set x-goog-api-client
|
2722
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2682
2723
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2683
2724
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2684
2725
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
2726
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2685
2727
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2686
2728
|
|
2687
2729
|
header_params = {}
|
@@ -2702,7 +2744,6 @@ module Google
|
|
2702
2744
|
|
2703
2745
|
@bare_metal_solution_stub.call_rpc :get_volume_snapshot, request, options: options do |response, operation|
|
2704
2746
|
yield response, operation if block_given?
|
2705
|
-
return response
|
2706
2747
|
end
|
2707
2748
|
rescue ::GRPC::BadStatus => e
|
2708
2749
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2774,10 +2815,11 @@ module Google
|
|
2774
2815
|
# Customize the options with defaults
|
2775
2816
|
metadata = @config.rpcs.list_volume_snapshots.metadata.to_h
|
2776
2817
|
|
2777
|
-
# Set x-goog-api-client
|
2818
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2778
2819
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2779
2820
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2780
2821
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
2822
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2781
2823
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2782
2824
|
|
2783
2825
|
header_params = {}
|
@@ -2799,7 +2841,7 @@ module Google
|
|
2799
2841
|
@bare_metal_solution_stub.call_rpc :list_volume_snapshots, request, options: options do |response, operation|
|
2800
2842
|
response = ::Gapic::PagedEnumerable.new @bare_metal_solution_stub, :list_volume_snapshots, request, response, operation, options
|
2801
2843
|
yield response, operation if block_given?
|
2802
|
-
|
2844
|
+
throw :response, response
|
2803
2845
|
end
|
2804
2846
|
rescue ::GRPC::BadStatus => e
|
2805
2847
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2860,10 +2902,11 @@ module Google
|
|
2860
2902
|
# Customize the options with defaults
|
2861
2903
|
metadata = @config.rpcs.get_lun.metadata.to_h
|
2862
2904
|
|
2863
|
-
# Set x-goog-api-client
|
2905
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2864
2906
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2865
2907
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2866
2908
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
2909
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2867
2910
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2868
2911
|
|
2869
2912
|
header_params = {}
|
@@ -2884,7 +2927,6 @@ module Google
|
|
2884
2927
|
|
2885
2928
|
@bare_metal_solution_stub.call_rpc :get_lun, request, options: options do |response, operation|
|
2886
2929
|
yield response, operation if block_given?
|
2887
|
-
return response
|
2888
2930
|
end
|
2889
2931
|
rescue ::GRPC::BadStatus => e
|
2890
2932
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2954,10 +2996,11 @@ module Google
|
|
2954
2996
|
# Customize the options with defaults
|
2955
2997
|
metadata = @config.rpcs.list_luns.metadata.to_h
|
2956
2998
|
|
2957
|
-
# Set x-goog-api-client
|
2999
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2958
3000
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2959
3001
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2960
3002
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
3003
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2961
3004
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2962
3005
|
|
2963
3006
|
header_params = {}
|
@@ -2979,7 +3022,7 @@ module Google
|
|
2979
3022
|
@bare_metal_solution_stub.call_rpc :list_luns, request, options: options do |response, operation|
|
2980
3023
|
response = ::Gapic::PagedEnumerable.new @bare_metal_solution_stub, :list_luns, request, response, operation, options
|
2981
3024
|
yield response, operation if block_given?
|
2982
|
-
|
3025
|
+
throw :response, response
|
2983
3026
|
end
|
2984
3027
|
rescue ::GRPC::BadStatus => e
|
2985
3028
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3048,10 +3091,11 @@ module Google
|
|
3048
3091
|
# Customize the options with defaults
|
3049
3092
|
metadata = @config.rpcs.evict_lun.metadata.to_h
|
3050
3093
|
|
3051
|
-
# Set x-goog-api-client
|
3094
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3052
3095
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3053
3096
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3054
3097
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
3098
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3055
3099
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3056
3100
|
|
3057
3101
|
header_params = {}
|
@@ -3073,7 +3117,7 @@ module Google
|
|
3073
3117
|
@bare_metal_solution_stub.call_rpc :evict_lun, request, options: options do |response, operation|
|
3074
3118
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3075
3119
|
yield response, operation if block_given?
|
3076
|
-
|
3120
|
+
throw :response, response
|
3077
3121
|
end
|
3078
3122
|
rescue ::GRPC::BadStatus => e
|
3079
3123
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3134,10 +3178,11 @@ module Google
|
|
3134
3178
|
# Customize the options with defaults
|
3135
3179
|
metadata = @config.rpcs.get_nfs_share.metadata.to_h
|
3136
3180
|
|
3137
|
-
# Set x-goog-api-client
|
3181
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3138
3182
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3139
3183
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3140
3184
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
3185
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3141
3186
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3142
3187
|
|
3143
3188
|
header_params = {}
|
@@ -3158,7 +3203,6 @@ module Google
|
|
3158
3203
|
|
3159
3204
|
@bare_metal_solution_stub.call_rpc :get_nfs_share, request, options: options do |response, operation|
|
3160
3205
|
yield response, operation if block_given?
|
3161
|
-
return response
|
3162
3206
|
end
|
3163
3207
|
rescue ::GRPC::BadStatus => e
|
3164
3208
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3230,10 +3274,11 @@ module Google
|
|
3230
3274
|
# Customize the options with defaults
|
3231
3275
|
metadata = @config.rpcs.list_nfs_shares.metadata.to_h
|
3232
3276
|
|
3233
|
-
# Set x-goog-api-client
|
3277
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3234
3278
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3235
3279
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3236
3280
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
3281
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3237
3282
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3238
3283
|
|
3239
3284
|
header_params = {}
|
@@ -3255,7 +3300,7 @@ module Google
|
|
3255
3300
|
@bare_metal_solution_stub.call_rpc :list_nfs_shares, request, options: options do |response, operation|
|
3256
3301
|
response = ::Gapic::PagedEnumerable.new @bare_metal_solution_stub, :list_nfs_shares, request, response, operation, options
|
3257
3302
|
yield response, operation if block_given?
|
3258
|
-
|
3303
|
+
throw :response, response
|
3259
3304
|
end
|
3260
3305
|
rescue ::GRPC::BadStatus => e
|
3261
3306
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3331,10 +3376,11 @@ module Google
|
|
3331
3376
|
# Customize the options with defaults
|
3332
3377
|
metadata = @config.rpcs.update_nfs_share.metadata.to_h
|
3333
3378
|
|
3334
|
-
# Set x-goog-api-client
|
3379
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3335
3380
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3336
3381
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3337
3382
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
3383
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3338
3384
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3339
3385
|
|
3340
3386
|
header_params = {}
|
@@ -3356,7 +3402,7 @@ module Google
|
|
3356
3402
|
@bare_metal_solution_stub.call_rpc :update_nfs_share, request, options: options do |response, operation|
|
3357
3403
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3358
3404
|
yield response, operation if block_given?
|
3359
|
-
|
3405
|
+
throw :response, response
|
3360
3406
|
end
|
3361
3407
|
rescue ::GRPC::BadStatus => e
|
3362
3408
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3426,10 +3472,11 @@ module Google
|
|
3426
3472
|
# Customize the options with defaults
|
3427
3473
|
metadata = @config.rpcs.create_nfs_share.metadata.to_h
|
3428
3474
|
|
3429
|
-
# Set x-goog-api-client
|
3475
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3430
3476
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3431
3477
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3432
3478
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
3479
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3433
3480
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3434
3481
|
|
3435
3482
|
header_params = {}
|
@@ -3451,7 +3498,7 @@ module Google
|
|
3451
3498
|
@bare_metal_solution_stub.call_rpc :create_nfs_share, request, options: options do |response, operation|
|
3452
3499
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3453
3500
|
yield response, operation if block_given?
|
3454
|
-
|
3501
|
+
throw :response, response
|
3455
3502
|
end
|
3456
3503
|
rescue ::GRPC::BadStatus => e
|
3457
3504
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3516,10 +3563,11 @@ module Google
|
|
3516
3563
|
# Customize the options with defaults
|
3517
3564
|
metadata = @config.rpcs.rename_nfs_share.metadata.to_h
|
3518
3565
|
|
3519
|
-
# Set x-goog-api-client
|
3566
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3520
3567
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3521
3568
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3522
3569
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
3570
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3523
3571
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3524
3572
|
|
3525
3573
|
header_params = {}
|
@@ -3540,7 +3588,6 @@ module Google
|
|
3540
3588
|
|
3541
3589
|
@bare_metal_solution_stub.call_rpc :rename_nfs_share, request, options: options do |response, operation|
|
3542
3590
|
yield response, operation if block_given?
|
3543
|
-
return response
|
3544
3591
|
end
|
3545
3592
|
rescue ::GRPC::BadStatus => e
|
3546
3593
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3608,10 +3655,11 @@ module Google
|
|
3608
3655
|
# Customize the options with defaults
|
3609
3656
|
metadata = @config.rpcs.delete_nfs_share.metadata.to_h
|
3610
3657
|
|
3611
|
-
# Set x-goog-api-client
|
3658
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3612
3659
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3613
3660
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3614
3661
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
3662
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3615
3663
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3616
3664
|
|
3617
3665
|
header_params = {}
|
@@ -3633,7 +3681,7 @@ module Google
|
|
3633
3681
|
@bare_metal_solution_stub.call_rpc :delete_nfs_share, request, options: options do |response, operation|
|
3634
3682
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
3635
3683
|
yield response, operation if block_given?
|
3636
|
-
|
3684
|
+
throw :response, response
|
3637
3685
|
end
|
3638
3686
|
rescue ::GRPC::BadStatus => e
|
3639
3687
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3705,10 +3753,11 @@ module Google
|
|
3705
3753
|
# Customize the options with defaults
|
3706
3754
|
metadata = @config.rpcs.list_provisioning_quotas.metadata.to_h
|
3707
3755
|
|
3708
|
-
# Set x-goog-api-client
|
3756
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3709
3757
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3710
3758
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3711
3759
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
3760
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3712
3761
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3713
3762
|
|
3714
3763
|
header_params = {}
|
@@ -3730,7 +3779,7 @@ module Google
|
|
3730
3779
|
@bare_metal_solution_stub.call_rpc :list_provisioning_quotas, request, options: options do |response, operation|
|
3731
3780
|
response = ::Gapic::PagedEnumerable.new @bare_metal_solution_stub, :list_provisioning_quotas, request, response, operation, options
|
3732
3781
|
yield response, operation if block_given?
|
3733
|
-
|
3782
|
+
throw :response, response
|
3734
3783
|
end
|
3735
3784
|
rescue ::GRPC::BadStatus => e
|
3736
3785
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3797,10 +3846,11 @@ module Google
|
|
3797
3846
|
# Customize the options with defaults
|
3798
3847
|
metadata = @config.rpcs.submit_provisioning_config.metadata.to_h
|
3799
3848
|
|
3800
|
-
# Set x-goog-api-client
|
3849
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3801
3850
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3802
3851
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3803
3852
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
3853
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3804
3854
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3805
3855
|
|
3806
3856
|
header_params = {}
|
@@ -3821,7 +3871,6 @@ module Google
|
|
3821
3871
|
|
3822
3872
|
@bare_metal_solution_stub.call_rpc :submit_provisioning_config, request, options: options do |response, operation|
|
3823
3873
|
yield response, operation if block_given?
|
3824
|
-
return response
|
3825
3874
|
end
|
3826
3875
|
rescue ::GRPC::BadStatus => e
|
3827
3876
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3882,10 +3931,11 @@ module Google
|
|
3882
3931
|
# Customize the options with defaults
|
3883
3932
|
metadata = @config.rpcs.get_provisioning_config.metadata.to_h
|
3884
3933
|
|
3885
|
-
# Set x-goog-api-client
|
3934
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3886
3935
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3887
3936
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3888
3937
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
3938
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3889
3939
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3890
3940
|
|
3891
3941
|
header_params = {}
|
@@ -3906,7 +3956,6 @@ module Google
|
|
3906
3956
|
|
3907
3957
|
@bare_metal_solution_stub.call_rpc :get_provisioning_config, request, options: options do |response, operation|
|
3908
3958
|
yield response, operation if block_given?
|
3909
|
-
return response
|
3910
3959
|
end
|
3911
3960
|
rescue ::GRPC::BadStatus => e
|
3912
3961
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3973,10 +4022,11 @@ module Google
|
|
3973
4022
|
# Customize the options with defaults
|
3974
4023
|
metadata = @config.rpcs.create_provisioning_config.metadata.to_h
|
3975
4024
|
|
3976
|
-
# Set x-goog-api-client
|
4025
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3977
4026
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3978
4027
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3979
4028
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
4029
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3980
4030
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3981
4031
|
|
3982
4032
|
header_params = {}
|
@@ -3997,7 +4047,6 @@ module Google
|
|
3997
4047
|
|
3998
4048
|
@bare_metal_solution_stub.call_rpc :create_provisioning_config, request, options: options do |response, operation|
|
3999
4049
|
yield response, operation if block_given?
|
4000
|
-
return response
|
4001
4050
|
end
|
4002
4051
|
rescue ::GRPC::BadStatus => e
|
4003
4052
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4063,10 +4112,11 @@ module Google
|
|
4063
4112
|
# Customize the options with defaults
|
4064
4113
|
metadata = @config.rpcs.update_provisioning_config.metadata.to_h
|
4065
4114
|
|
4066
|
-
# Set x-goog-api-client
|
4115
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4067
4116
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4068
4117
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4069
4118
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
4119
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4070
4120
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4071
4121
|
|
4072
4122
|
header_params = {}
|
@@ -4087,7 +4137,6 @@ module Google
|
|
4087
4137
|
|
4088
4138
|
@bare_metal_solution_stub.call_rpc :update_provisioning_config, request, options: options do |response, operation|
|
4089
4139
|
yield response, operation if block_given?
|
4090
|
-
return response
|
4091
4140
|
end
|
4092
4141
|
rescue ::GRPC::BadStatus => e
|
4093
4142
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4152,10 +4201,11 @@ module Google
|
|
4152
4201
|
# Customize the options with defaults
|
4153
4202
|
metadata = @config.rpcs.rename_network.metadata.to_h
|
4154
4203
|
|
4155
|
-
# Set x-goog-api-client
|
4204
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4156
4205
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4157
4206
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4158
4207
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
4208
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4159
4209
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4160
4210
|
|
4161
4211
|
header_params = {}
|
@@ -4176,7 +4226,6 @@ module Google
|
|
4176
4226
|
|
4177
4227
|
@bare_metal_solution_stub.call_rpc :rename_network, request, options: options do |response, operation|
|
4178
4228
|
yield response, operation if block_given?
|
4179
|
-
return response
|
4180
4229
|
end
|
4181
4230
|
rescue ::GRPC::BadStatus => e
|
4182
4231
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4248,10 +4297,11 @@ module Google
|
|
4248
4297
|
# Customize the options with defaults
|
4249
4298
|
metadata = @config.rpcs.list_os_images.metadata.to_h
|
4250
4299
|
|
4251
|
-
# Set x-goog-api-client
|
4300
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4252
4301
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4253
4302
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4254
4303
|
gapic_version: ::Google::Cloud::BareMetalSolution::V2::VERSION
|
4304
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4255
4305
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4256
4306
|
|
4257
4307
|
header_params = {}
|
@@ -4273,7 +4323,7 @@ module Google
|
|
4273
4323
|
@bare_metal_solution_stub.call_rpc :list_os_images, request, options: options do |response, operation|
|
4274
4324
|
response = ::Gapic::PagedEnumerable.new @bare_metal_solution_stub, :list_os_images, request, response, operation, options
|
4275
4325
|
yield response, operation if block_given?
|
4276
|
-
|
4326
|
+
throw :response, response
|
4277
4327
|
end
|
4278
4328
|
rescue ::GRPC::BadStatus => e
|
4279
4329
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4362,6 +4412,11 @@ module Google
|
|
4362
4412
|
# default endpoint URL. The default value of nil uses the environment
|
4363
4413
|
# universe (usually the default "googleapis.com" universe).
|
4364
4414
|
# @return [::String,nil]
|
4415
|
+
# @!attribute [rw] logger
|
4416
|
+
# A custom logger to use for request/response debug logging, or the value
|
4417
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
4418
|
+
# explicitly disable logging.
|
4419
|
+
# @return [::Logger,:default,nil]
|
4365
4420
|
#
|
4366
4421
|
class Configuration
|
4367
4422
|
extend ::Gapic::Config
|
@@ -4386,6 +4441,7 @@ module Google
|
|
4386
4441
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
4387
4442
|
config_attr :quota_project, nil, ::String, nil
|
4388
4443
|
config_attr :universe_domain, nil, ::String, nil
|
4444
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
4389
4445
|
|
4390
4446
|
# @private
|
4391
4447
|
def initialize parent_config = nil
|