google-cloud-compute-v1 2.20.0 → 2.21.1

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.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +1 -1
  3. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +1 -1
  4. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +1 -1
  5. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +1 -1
  6. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +1 -1
  7. data/lib/google/cloud/compute/v1/compute_pb.rb +27 -1
  8. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +1 -1
  9. data/lib/google/cloud/compute/v1/disks/rest/client.rb +1 -1
  10. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +1 -1
  11. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1 -1
  12. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +1 -1
  13. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +1 -1
  14. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +1 -1
  15. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +1 -1
  16. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +1 -1
  17. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +1 -1
  18. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
  19. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +1 -1
  20. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +1 -1
  21. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +1 -1
  22. data/lib/google/cloud/compute/v1/images/rest/client.rb +1 -1
  23. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +1 -1
  24. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +1 -1
  25. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +1 -1
  26. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +1 -1
  27. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +1 -1
  28. data/lib/google/cloud/compute/v1/instances/rest/client.rb +1 -1
  29. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +1 -1
  30. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +1 -1
  31. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
  32. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +1 -1
  33. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +1 -1
  34. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +1 -1
  35. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +1 -1
  36. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +101 -1
  37. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +63 -0
  38. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +1 -1
  39. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +1 -1
  40. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +1 -1
  41. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +1 -1
  42. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1 -1
  43. data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +1 -1
  44. data/lib/google/cloud/compute/v1/networks/rest/client.rb +1 -1
  45. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +1 -1
  46. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +1 -1
  47. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +1 -1
  48. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +1 -1
  49. data/lib/google/cloud/compute/v1/projects/rest/client.rb +1 -1
  50. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +1 -1
  51. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +1 -1
  52. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +1 -1
  53. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +1 -1
  54. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +1 -1
  55. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
  56. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +1 -1
  57. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +1 -1
  58. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +1 -1
  59. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +1 -1
  60. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +1 -1
  61. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +1 -1
  62. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +1 -1
  63. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +1 -1
  64. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +1 -1
  65. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1 -1
  66. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +1 -1
  67. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
  68. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +1 -1
  69. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +1 -1
  70. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +1 -1
  71. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +1 -1
  72. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +1 -1
  73. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +1 -1
  74. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +1 -1
  75. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +1 -1
  76. data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
  77. data/lib/google/cloud/compute/v1/reservation_blocks/credentials.rb +52 -0
  78. data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +661 -0
  79. data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +273 -0
  80. data/lib/google/cloud/compute/v1/reservation_blocks/rest.rb +51 -0
  81. data/lib/google/cloud/compute/v1/reservation_blocks.rb +47 -0
  82. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +106 -1
  83. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +64 -0
  84. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +1 -1
  85. data/lib/google/cloud/compute/v1/rest.rb +1 -0
  86. data/lib/google/cloud/compute/v1/routers/rest/client.rb +1 -1
  87. data/lib/google/cloud/compute/v1/routes/rest/client.rb +1 -1
  88. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +1 -1
  89. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +1 -1
  90. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +1 -1
  91. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +1 -1
  92. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +1 -1
  93. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +1 -1
  94. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +1 -1
  95. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +1 -1
  96. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +1 -1
  97. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +1 -1
  98. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +1 -1
  99. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +1 -1
  100. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +1 -1
  101. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +1 -1
  102. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +1 -1
  103. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +1 -1
  104. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +1 -1
  105. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +1 -1
  106. data/lib/google/cloud/compute/v1/version.rb +1 -1
  107. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +1 -1
  108. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +1 -1
  109. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
  110. data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
  111. data/lib/google/cloud/compute/v1.rb +1 -0
  112. data/proto_docs/google/cloud/compute/v1/compute.rb +514 -20
  113. metadata +8 -3
@@ -1566,7 +1566,7 @@ module Google
1566
1566
 
1567
1567
  config_attr :endpoint, nil, ::String, nil
1568
1568
  config_attr :credentials, nil do |value|
1569
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1569
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
1570
1570
  allowed.any? { |klass| klass === value }
1571
1571
  end
1572
1572
  config_attr :scope, nil, ::String, ::Array, nil
@@ -932,7 +932,7 @@ module Google
932
932
 
933
933
  config_attr :endpoint, nil, ::String, nil
934
934
  config_attr :credentials, nil do |value|
935
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
935
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
936
936
  allowed.any? { |klass| klass === value }
937
937
  end
938
938
  config_attr :scope, nil, ::String, ::Array, nil
@@ -1050,7 +1050,7 @@ module Google
1050
1050
 
1051
1051
  config_attr :endpoint, nil, ::String, nil
1052
1052
  config_attr :credentials, nil do |value|
1053
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1053
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
1054
1054
  allowed.any? { |klass| klass === value }
1055
1055
  end
1056
1056
  config_attr :scope, nil, ::String, ::Array, nil
@@ -857,7 +857,7 @@ module Google
857
857
 
858
858
  config_attr :endpoint, nil, ::String, nil
859
859
  config_attr :credentials, nil do |value|
860
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
860
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
861
861
  allowed.any? { |klass| klass === value }
862
862
  end
863
863
  config_attr :scope, nil, ::String, ::Array, nil
@@ -1398,7 +1398,7 @@ module Google
1398
1398
 
1399
1399
  config_attr :endpoint, nil, ::String, nil
1400
1400
  config_attr :credentials, nil do |value|
1401
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1401
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
1402
1402
  allowed.any? { |klass| klass === value }
1403
1403
  end
1404
1404
  config_attr :scope, nil, ::String, ::Array, nil
@@ -765,7 +765,7 @@ module Google
765
765
 
766
766
  config_attr :endpoint, nil, ::String, nil
767
767
  config_attr :credentials, nil do |value|
768
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
768
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
769
769
  allowed.any? { |klass| klass === value }
770
770
  end
771
771
  config_attr :scope, nil, ::String, ::Array, nil
@@ -454,7 +454,7 @@ module Google
454
454
 
455
455
  config_attr :endpoint, nil, ::String, nil
456
456
  config_attr :credentials, nil do |value|
457
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
457
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
458
458
  allowed.any? { |klass| klass === value }
459
459
  end
460
460
  config_attr :scope, nil, ::String, ::Array, nil
@@ -1901,7 +1901,7 @@ module Google
1901
1901
 
1902
1902
  config_attr :endpoint, nil, ::String, nil
1903
1903
  config_attr :credentials, nil do |value|
1904
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1904
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
1905
1905
  allowed.any? { |klass| klass === value }
1906
1906
  end
1907
1907
  config_attr :scope, nil, ::String, ::Array, nil
@@ -759,7 +759,7 @@ module Google
759
759
 
760
760
  config_attr :endpoint, nil, ::String, nil
761
761
  config_attr :credentials, nil do |value|
762
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
762
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
763
763
  allowed.any? { |klass| klass === value }
764
764
  end
765
765
  config_attr :scope, nil, ::String, ::Array, nil
@@ -857,7 +857,7 @@ module Google
857
857
 
858
858
  config_attr :endpoint, nil, ::String, nil
859
859
  config_attr :credentials, nil do |value|
860
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
860
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
861
861
  allowed.any? { |klass| klass === value }
862
862
  end
863
863
  config_attr :scope, nil, ::String, ::Array, nil
@@ -2516,7 +2516,7 @@ module Google
2516
2516
 
2517
2517
  config_attr :endpoint, nil, ::String, nil
2518
2518
  config_attr :credentials, nil do |value|
2519
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2519
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
2520
2520
  allowed.any? { |klass| klass === value }
2521
2521
  end
2522
2522
  config_attr :scope, nil, ::String, ::Array, nil
@@ -665,7 +665,7 @@ module Google
665
665
 
666
666
  config_attr :endpoint, nil, ::String, nil
667
667
  config_attr :credentials, nil do |value|
668
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
668
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
669
669
  allowed.any? { |klass| klass === value }
670
670
  end
671
671
  config_attr :scope, nil, ::String, ::Array, nil
@@ -661,7 +661,7 @@ module Google
661
661
 
662
662
  config_attr :endpoint, nil, ::String, nil
663
663
  config_attr :credentials, nil do |value|
664
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
664
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
665
665
  allowed.any? { |klass| klass === value }
666
666
  end
667
667
  config_attr :scope, nil, ::String, ::Array, nil
@@ -381,7 +381,7 @@ module Google
381
381
 
382
382
  config_attr :endpoint, nil, ::String, nil
383
383
  config_attr :credentials, nil do |value|
384
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
384
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
385
385
  allowed.any? { |klass| klass === value }
386
386
  end
387
387
  config_attr :scope, nil, ::String, ::Array, nil
@@ -1020,7 +1020,7 @@ module Google
1020
1020
 
1021
1021
  config_attr :endpoint, nil, ::String, nil
1022
1022
  config_attr :credentials, nil do |value|
1023
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1023
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
1024
1024
  allowed.any? { |klass| klass === value }
1025
1025
  end
1026
1026
  config_attr :scope, nil, ::String, ::Array, nil
@@ -953,7 +953,7 @@ module Google
953
953
 
954
954
  config_attr :endpoint, nil, ::String, nil
955
955
  config_attr :credentials, nil do |value|
956
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
956
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
957
957
  allowed.any? { |klass| klass === value }
958
958
  end
959
959
  config_attr :scope, nil, ::String, ::Array, nil
@@ -1881,7 +1881,7 @@ module Google
1881
1881
 
1882
1882
  config_attr :endpoint, nil, ::String, nil
1883
1883
  config_attr :credentials, nil do |value|
1884
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1884
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
1885
1885
  allowed.any? { |klass| klass === value }
1886
1886
  end
1887
1887
  config_attr :scope, nil, ::String, ::Array, nil
@@ -661,7 +661,7 @@ module Google
661
661
 
662
662
  config_attr :endpoint, nil, ::String, nil
663
663
  config_attr :credentials, nil do |value|
664
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
664
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
665
665
  allowed.any? { |klass| klass === value }
666
666
  end
667
667
  config_attr :scope, nil, ::String, ::Array, nil
@@ -622,7 +622,7 @@ module Google
622
622
 
623
623
  config_attr :endpoint, nil, ::String, nil
624
624
  config_attr :credentials, nil do |value|
625
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
625
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
626
626
  allowed.any? { |klass| klass === value }
627
627
  end
628
628
  config_attr :scope, nil, ::String, ::Array, nil
@@ -1246,7 +1246,7 @@ module Google
1246
1246
 
1247
1247
  config_attr :endpoint, nil, ::String, nil
1248
1248
  config_attr :credentials, nil do |value|
1249
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1249
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
1250
1250
  allowed.any? { |klass| klass === value }
1251
1251
  end
1252
1252
  config_attr :scope, nil, ::String, ::Array, nil
@@ -661,7 +661,7 @@ module Google
661
661
 
662
662
  config_attr :endpoint, nil, ::String, nil
663
663
  config_attr :credentials, nil do |value|
664
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
664
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
665
665
  allowed.any? { |klass| klass === value }
666
666
  end
667
667
  config_attr :scope, nil, ::String, ::Array, nil
@@ -854,7 +854,7 @@ module Google
854
854
 
855
855
  config_attr :endpoint, nil, ::String, nil
856
856
  config_attr :credentials, nil do |value|
857
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
857
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
858
858
  allowed.any? { |klass| klass === value }
859
859
  end
860
860
  config_attr :scope, nil, ::String, ::Array, nil
@@ -759,7 +759,7 @@ module Google
759
759
 
760
760
  config_attr :endpoint, nil, ::String, nil
761
761
  config_attr :credentials, nil do |value|
762
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
762
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
763
763
  allowed.any? { |klass| klass === value }
764
764
  end
765
765
  config_attr :scope, nil, ::String, ::Array, nil
@@ -955,7 +955,7 @@ module Google
955
955
 
956
956
  config_attr :endpoint, nil, ::String, nil
957
957
  config_attr :credentials, nil do |value|
958
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
958
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
959
959
  allowed.any? { |klass| klass === value }
960
960
  end
961
961
  config_attr :scope, nil, ::String, ::Array, nil
@@ -661,7 +661,7 @@ module Google
661
661
 
662
662
  config_attr :endpoint, nil, ::String, nil
663
663
  config_attr :credentials, nil do |value|
664
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
664
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
665
665
  allowed.any? { |klass| klass === value }
666
666
  end
667
667
  config_attr :scope, nil, ::String, ::Array, nil
@@ -943,7 +943,7 @@ module Google
943
943
 
944
944
  config_attr :endpoint, nil, ::String, nil
945
945
  config_attr :credentials, nil do |value|
946
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
946
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
947
947
  allowed.any? { |klass| klass === value }
948
948
  end
949
949
  config_attr :scope, nil, ::String, ::Array, nil
@@ -367,7 +367,7 @@ module Google
367
367
 
368
368
  config_attr :endpoint, nil, ::String, nil
369
369
  config_attr :credentials, nil do |value|
370
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
370
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
371
371
  allowed.any? { |klass| klass === value }
372
372
  end
373
373
  config_attr :scope, nil, ::String, ::Array, nil
@@ -450,7 +450,7 @@ module Google
450
450
 
451
451
  config_attr :endpoint, nil, ::String, nil
452
452
  config_attr :credentials, nil do |value|
453
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
453
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
454
454
  allowed.any? { |klass| klass === value }
455
455
  end
456
456
  config_attr :scope, nil, ::String, ::Array, nil
@@ -0,0 +1,52 @@
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 "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Compute
24
+ module V1
25
+ module ReservationBlocks
26
+ # Credentials for the ReservationBlocks API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/compute",
30
+ "https://www.googleapis.com/auth/cloud-platform"
31
+ ]
32
+ self.env_vars = [
33
+ "COMPUTE_CREDENTIALS",
34
+ "COMPUTE_KEYFILE",
35
+ "GOOGLE_CLOUD_CREDENTIALS",
36
+ "GOOGLE_CLOUD_KEYFILE",
37
+ "GCLOUD_KEYFILE",
38
+ "COMPUTE_CREDENTIALS_JSON",
39
+ "COMPUTE_KEYFILE_JSON",
40
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
41
+ "GOOGLE_CLOUD_KEYFILE_JSON",
42
+ "GCLOUD_KEYFILE_JSON"
43
+ ]
44
+ self.paths = [
45
+ "~/.config/google_cloud/application_default_credentials.json"
46
+ ]
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end