google-cloud-bare_metal_solution-v2 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/client.rb +2773 -407
  3. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/operations.rb +3 -1
  4. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/paths.rb +135 -0
  5. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/client.rb +2035 -287
  6. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/operations.rb +7 -5
  7. data/lib/google/cloud/bare_metal_solution/v2/bare_metal_solution/rest/service_stub.rb +1684 -253
  8. data/lib/google/cloud/bare_metal_solution/v2/version.rb +1 -1
  9. data/lib/google/cloud/baremetalsolution/v2/baremetalsolution_pb.rb +7 -6
  10. data/lib/google/cloud/baremetalsolution/v2/baremetalsolution_services_pb.rb +62 -0
  11. data/lib/google/cloud/baremetalsolution/v2/common_pb.rb +48 -0
  12. data/lib/google/cloud/baremetalsolution/v2/instance_pb.rb +12 -6
  13. data/lib/google/cloud/baremetalsolution/v2/lun_pb.rb +4 -1
  14. data/lib/google/cloud/baremetalsolution/v2/network_pb.rb +3 -1
  15. data/lib/google/cloud/baremetalsolution/v2/nfs_share_pb.rb +5 -1
  16. data/lib/google/cloud/baremetalsolution/v2/osimage_pb.rb +47 -0
  17. data/lib/google/cloud/baremetalsolution/v2/provisioning_pb.rb +80 -0
  18. data/lib/google/cloud/baremetalsolution/v2/ssh_key_pb.rb +49 -0
  19. data/lib/google/cloud/baremetalsolution/v2/volume_pb.rb +8 -1
  20. data/lib/google/cloud/baremetalsolution/v2/volume_snapshot_pb.rb +54 -0
  21. data/proto_docs/google/cloud/baremetalsolution/v2/{baremetalsolution.rb → common.rb} +36 -14
  22. data/proto_docs/google/cloud/baremetalsolution/v2/instance.rb +95 -68
  23. data/proto_docs/google/cloud/baremetalsolution/v2/lun.rb +19 -0
  24. data/proto_docs/google/cloud/baremetalsolution/v2/network.rb +68 -2
  25. data/proto_docs/google/cloud/baremetalsolution/v2/nfs_share.rb +83 -9
  26. data/proto_docs/google/cloud/baremetalsolution/v2/osimage.rb +80 -0
  27. data/proto_docs/google/cloud/baremetalsolution/v2/provisioning.rb +639 -0
  28. data/proto_docs/google/cloud/baremetalsolution/v2/ssh_key.rb +97 -0
  29. data/proto_docs/google/cloud/baremetalsolution/v2/volume.rb +91 -4
  30. data/proto_docs/google/cloud/baremetalsolution/v2/volume_snapshot.rb +134 -0
  31. data/proto_docs/google/type/expr.rb +75 -0
  32. metadata +15 -5
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "baremetalsolution.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "baremetalsolution.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end