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.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/compute_pb.rb +27 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/images/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +101 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/reservation_blocks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +661 -0
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +273 -0
- data/lib/google/cloud/compute/v1/reservation_blocks/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/reservation_blocks.rb +47 -0
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +106 -1
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1.rb +1 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +514 -20
- metadata +8 -3
@@ -553,7 +553,7 @@ module Google
|
|
553
553
|
|
554
554
|
config_attr :endpoint, nil, ::String, nil
|
555
555
|
config_attr :credentials, nil do |value|
|
556
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
556
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
557
557
|
allowed.any? { |klass| klass === value }
|
558
558
|
end
|
559
559
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -2002,7 +2002,7 @@ module Google
|
|
2002
2002
|
|
2003
2003
|
config_attr :endpoint, nil, ::String, nil
|
2004
2004
|
config_attr :credentials, nil do |value|
|
2005
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2005
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
2006
2006
|
allowed.any? { |klass| klass === value }
|
2007
2007
|
end
|
2008
2008
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -828,7 +828,7 @@ module Google
|
|
828
828
|
|
829
829
|
config_attr :endpoint, nil, ::String, nil
|
830
830
|
config_attr :credentials, nil do |value|
|
831
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
831
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
832
832
|
allowed.any? { |klass| klass === value }
|
833
833
|
end
|
834
834
|
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
|
@@ -841,7 +841,7 @@ module Google
|
|
841
841
|
|
842
842
|
config_attr :endpoint, nil, ::String, nil
|
843
843
|
config_attr :credentials, nil do |value|
|
844
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
844
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
845
845
|
allowed.any? { |klass| klass === value }
|
846
846
|
end
|
847
847
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -1054,7 +1054,7 @@ module Google
|
|
1054
1054
|
|
1055
1055
|
config_attr :endpoint, nil, ::String, nil
|
1056
1056
|
config_attr :credentials, nil do |value|
|
1057
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1057
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1058
1058
|
allowed.any? { |klass| klass === value }
|
1059
1059
|
end
|
1060
1060
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -839,7 +839,7 @@ module Google
|
|
839
839
|
|
840
840
|
config_attr :endpoint, nil, ::String, nil
|
841
841
|
config_attr :credentials, nil do |value|
|
842
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
842
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
843
843
|
allowed.any? { |klass| klass === value }
|
844
844
|
end
|
845
845
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -934,7 +934,7 @@ module Google
|
|
934
934
|
|
935
935
|
config_attr :endpoint, nil, ::String, nil
|
936
936
|
config_attr :credentials, nil do |value|
|
937
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
937
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
938
938
|
allowed.any? { |klass| klass === value }
|
939
939
|
end
|
940
940
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -935,7 +935,7 @@ module Google
|
|
935
935
|
|
936
936
|
config_attr :endpoint, nil, ::String, nil
|
937
937
|
config_attr :credentials, nil do |value|
|
938
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
938
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
939
939
|
allowed.any? { |klass| klass === value }
|
940
940
|
end
|
941
941
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -713,7 +713,7 @@ module Google
|
|
713
713
|
|
714
714
|
config_attr :endpoint, nil, ::String, nil
|
715
715
|
config_attr :credentials, nil do |value|
|
716
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
716
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
717
717
|
allowed.any? { |klass| klass === value }
|
718
718
|
end
|
719
719
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -532,7 +532,7 @@ module Google
|
|
532
532
|
|
533
533
|
config_attr :endpoint, nil, ::String, nil
|
534
534
|
config_attr :credentials, nil do |value|
|
535
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
535
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
536
536
|
allowed.any? { |klass| klass === value }
|
537
537
|
end
|
538
538
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -746,7 +746,7 @@ module Google
|
|
746
746
|
|
747
747
|
config_attr :endpoint, nil, ::String, nil
|
748
748
|
config_attr :credentials, nil do |value|
|
749
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
749
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
750
750
|
allowed.any? { |klass| klass === value }
|
751
751
|
end
|
752
752
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -940,7 +940,7 @@ module Google
|
|
940
940
|
|
941
941
|
config_attr :endpoint, nil, ::String, nil
|
942
942
|
config_attr :credentials, nil do |value|
|
943
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
943
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
944
944
|
allowed.any? { |klass| klass === value }
|
945
945
|
end
|
946
946
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -357,7 +357,7 @@ module Google
|
|
357
357
|
|
358
358
|
config_attr :endpoint, nil, ::String, nil
|
359
359
|
config_attr :credentials, nil do |value|
|
360
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
360
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
361
361
|
allowed.any? { |klass| klass === value }
|
362
362
|
end
|
363
363
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -1276,7 +1276,7 @@ module Google
|
|
1276
1276
|
|
1277
1277
|
config_attr :endpoint, nil, ::String, nil
|
1278
1278
|
config_attr :credentials, nil do |value|
|
1279
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1279
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1280
1280
|
allowed.any? { |klass| klass === value }
|
1281
1281
|
end
|
1282
1282
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -767,7 +767,7 @@ module Google
|
|
767
767
|
|
768
768
|
config_attr :endpoint, nil, ::String, nil
|
769
769
|
config_attr :credentials, nil do |value|
|
770
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
770
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
771
771
|
allowed.any? { |klass| klass === value }
|
772
772
|
end
|
773
773
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -2615,7 +2615,7 @@ module Google
|
|
2615
2615
|
|
2616
2616
|
config_attr :endpoint, nil, ::String, nil
|
2617
2617
|
config_attr :credentials, nil do |value|
|
2618
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2618
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
2619
2619
|
allowed.any? { |klass| klass === value }
|
2620
2620
|
end
|
2621
2621
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -1152,7 +1152,7 @@ module Google
|
|
1152
1152
|
|
1153
1153
|
config_attr :endpoint, nil, ::String, nil
|
1154
1154
|
config_attr :credentials, nil do |value|
|
1155
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1155
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1156
1156
|
allowed.any? { |klass| klass === value }
|
1157
1157
|
end
|
1158
1158
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -468,7 +468,7 @@ module Google
|
|
468
468
|
|
469
469
|
config_attr :endpoint, nil, ::String, nil
|
470
470
|
config_attr :credentials, nil do |value|
|
471
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
471
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
472
472
|
allowed.any? { |klass| klass === value }
|
473
473
|
end
|
474
474
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -1005,7 +1005,7 @@ module Google
|
|
1005
1005
|
|
1006
1006
|
config_attr :endpoint, nil, ::String, nil
|
1007
1007
|
config_attr :credentials, nil do |value|
|
1008
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1008
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1009
1009
|
allowed.any? { |klass| klass === value }
|
1010
1010
|
end
|
1011
1011
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -4993,7 +4993,7 @@ module Google
|
|
4993
4993
|
|
4994
4994
|
config_attr :endpoint, nil, ::String, nil
|
4995
4995
|
config_attr :credentials, nil do |value|
|
4996
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
4996
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
4997
4997
|
allowed.any? { |klass| klass === value }
|
4998
4998
|
end
|
4999
4999
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -1119,7 +1119,7 @@ module Google
|
|
1119
1119
|
|
1120
1120
|
config_attr :endpoint, nil, ::String, nil
|
1121
1121
|
config_attr :credentials, nil do |value|
|
1122
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1122
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1123
1123
|
allowed.any? { |klass| klass === value }
|
1124
1124
|
end
|
1125
1125
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -958,7 +958,7 @@ module Google
|
|
958
958
|
|
959
959
|
config_attr :endpoint, nil, ::String, nil
|
960
960
|
config_attr :credentials, nil do |value|
|
961
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
961
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
962
962
|
allowed.any? { |klass| klass === value }
|
963
963
|
end
|
964
964
|
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
|
@@ -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
|
@@ -1009,7 +1009,7 @@ module Google
|
|
1009
1009
|
|
1010
1010
|
config_attr :endpoint, nil, ::String, nil
|
1011
1011
|
config_attr :credentials, nil do |value|
|
1012
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1012
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1013
1013
|
allowed.any? { |klass| klass === value }
|
1014
1014
|
end
|
1015
1015
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -439,7 +439,7 @@ module Google
|
|
439
439
|
|
440
440
|
config_attr :endpoint, nil, ::String, nil
|
441
441
|
config_attr :credentials, nil do |value|
|
442
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
442
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
443
443
|
allowed.any? { |klass| klass === value }
|
444
444
|
end
|
445
445
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -906,7 +906,7 @@ module Google
|
|
906
906
|
|
907
907
|
config_attr :endpoint, nil, ::String, nil
|
908
908
|
config_attr :credentials, nil do |value|
|
909
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
909
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
910
910
|
allowed.any? { |klass| klass === value }
|
911
911
|
end
|
912
912
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -92,6 +92,8 @@ module Google
|
|
92
92
|
|
93
93
|
default_config.rpcs.set_iam_policy.timeout = 600.0
|
94
94
|
|
95
|
+
default_config.rpcs.set_labels.timeout = 600.0
|
96
|
+
|
95
97
|
default_config.rpcs.test_iam_permissions.timeout = 600.0
|
96
98
|
|
97
99
|
default_config
|
@@ -730,6 +732,97 @@ module Google
|
|
730
732
|
raise ::Google::Cloud::Error.from_error(e)
|
731
733
|
end
|
732
734
|
|
735
|
+
##
|
736
|
+
# Sets the labels on a machine image. To learn more about labels, read the Labeling Resources documentation.
|
737
|
+
#
|
738
|
+
# @overload set_labels(request, options = nil)
|
739
|
+
# Pass arguments to `set_labels` via a request object, either of type
|
740
|
+
# {::Google::Cloud::Compute::V1::SetLabelsMachineImageRequest} or an equivalent Hash.
|
741
|
+
#
|
742
|
+
# @param request [::Google::Cloud::Compute::V1::SetLabelsMachineImageRequest, ::Hash]
|
743
|
+
# A request object representing the call parameters. Required. To specify no
|
744
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
745
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
746
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
747
|
+
#
|
748
|
+
# @overload set_labels(global_set_labels_request_resource: nil, project: nil, resource: nil)
|
749
|
+
# Pass arguments to `set_labels` via keyword arguments. Note that at
|
750
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
751
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
752
|
+
#
|
753
|
+
# @param global_set_labels_request_resource [::Google::Cloud::Compute::V1::GlobalSetLabelsRequest, ::Hash]
|
754
|
+
# The body resource for this request
|
755
|
+
# @param project [::String]
|
756
|
+
# Project ID for this request.
|
757
|
+
# @param resource [::String]
|
758
|
+
# Name or id of the resource for this request.
|
759
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
760
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
761
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
762
|
+
#
|
763
|
+
# @return [::Gapic::GenericLRO::Operation]
|
764
|
+
#
|
765
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
766
|
+
#
|
767
|
+
# @example Basic example
|
768
|
+
# require "google/cloud/compute/v1"
|
769
|
+
#
|
770
|
+
# # Create a client object. The client can be reused for multiple calls.
|
771
|
+
# client = Google::Cloud::Compute::V1::MachineImages::Rest::Client.new
|
772
|
+
#
|
773
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
774
|
+
# request = Google::Cloud::Compute::V1::SetLabelsMachineImageRequest.new
|
775
|
+
#
|
776
|
+
# # Call the set_labels method.
|
777
|
+
# result = client.set_labels request
|
778
|
+
#
|
779
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
780
|
+
# p result
|
781
|
+
#
|
782
|
+
def set_labels request, options = nil
|
783
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
784
|
+
|
785
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SetLabelsMachineImageRequest
|
786
|
+
|
787
|
+
# Converts hash and nil to an options object
|
788
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
789
|
+
|
790
|
+
# Customize the options with defaults
|
791
|
+
call_metadata = @config.rpcs.set_labels.metadata.to_h
|
792
|
+
|
793
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
794
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
795
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
796
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
797
|
+
transports_version_send: [:rest]
|
798
|
+
|
799
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
800
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
801
|
+
|
802
|
+
options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
|
803
|
+
metadata: call_metadata,
|
804
|
+
retry_policy: @config.rpcs.set_labels.retry_policy
|
805
|
+
|
806
|
+
options.apply_defaults timeout: @config.timeout,
|
807
|
+
metadata: @config.metadata,
|
808
|
+
retry_policy: @config.retry_policy
|
809
|
+
|
810
|
+
@machine_images_stub.set_labels request, options do |result, response|
|
811
|
+
result = ::Google::Cloud::Compute::V1::GlobalOperations::Rest::NonstandardLro.create_operation(
|
812
|
+
operation: result,
|
813
|
+
client: global_operations,
|
814
|
+
request_values: {
|
815
|
+
"project" => request.project
|
816
|
+
},
|
817
|
+
options: options
|
818
|
+
)
|
819
|
+
yield result, response if block_given?
|
820
|
+
throw :response, result
|
821
|
+
end
|
822
|
+
rescue ::Gapic::Rest::Error => e
|
823
|
+
raise ::Google::Cloud::Error.from_error(e)
|
824
|
+
end
|
825
|
+
|
733
826
|
##
|
734
827
|
# Returns permissions that a caller has on the specified resource.
|
735
828
|
#
|
@@ -908,7 +1001,7 @@ module Google
|
|
908
1001
|
|
909
1002
|
config_attr :endpoint, nil, ::String, nil
|
910
1003
|
config_attr :credentials, nil do |value|
|
911
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1004
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
912
1005
|
allowed.any? { |klass| klass === value }
|
913
1006
|
end
|
914
1007
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -989,6 +1082,11 @@ module Google
|
|
989
1082
|
#
|
990
1083
|
attr_reader :set_iam_policy
|
991
1084
|
##
|
1085
|
+
# RPC-specific configuration for `set_labels`
|
1086
|
+
# @return [::Gapic::Config::Method]
|
1087
|
+
#
|
1088
|
+
attr_reader :set_labels
|
1089
|
+
##
|
992
1090
|
# RPC-specific configuration for `test_iam_permissions`
|
993
1091
|
# @return [::Gapic::Config::Method]
|
994
1092
|
#
|
@@ -1008,6 +1106,8 @@ module Google
|
|
1008
1106
|
@list = ::Gapic::Config::Method.new list_config
|
1009
1107
|
set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
|
1010
1108
|
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
1109
|
+
set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
|
1110
|
+
@set_labels = ::Gapic::Config::Method.new set_labels_config
|
1011
1111
|
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
1012
1112
|
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
1013
1113
|
|
@@ -313,6 +313,46 @@ module Google
|
|
313
313
|
end
|
314
314
|
end
|
315
315
|
|
316
|
+
##
|
317
|
+
# Baseline implementation for the set_labels REST call
|
318
|
+
#
|
319
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetLabelsMachineImageRequest]
|
320
|
+
# A request object representing the call parameters. Required.
|
321
|
+
# @param options [::Gapic::CallOptions]
|
322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
323
|
+
#
|
324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
325
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
327
|
+
#
|
328
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
329
|
+
# A result object deserialized from the server's reply
|
330
|
+
def set_labels request_pb, options = nil
|
331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
332
|
+
|
333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_set_labels_request request_pb
|
334
|
+
query_string_params = if query_string_params.any?
|
335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
336
|
+
else
|
337
|
+
{}
|
338
|
+
end
|
339
|
+
|
340
|
+
response = @client_stub.make_http_request(
|
341
|
+
verb,
|
342
|
+
uri: uri,
|
343
|
+
body: body || "",
|
344
|
+
params: query_string_params,
|
345
|
+
method_name: "set_labels",
|
346
|
+
options: options
|
347
|
+
)
|
348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
349
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
350
|
+
catch :response do
|
351
|
+
yield result, operation if block_given?
|
352
|
+
result
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
316
356
|
##
|
317
357
|
# Baseline implementation for the test_iam_permissions REST call
|
318
358
|
#
|
@@ -485,6 +525,29 @@ module Google
|
|
485
525
|
transcoder.transcode request_pb
|
486
526
|
end
|
487
527
|
|
528
|
+
##
|
529
|
+
# @private
|
530
|
+
#
|
531
|
+
# GRPC transcoding helper method for the set_labels REST call
|
532
|
+
#
|
533
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetLabelsMachineImageRequest]
|
534
|
+
# A request object representing the call parameters. Required.
|
535
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
536
|
+
# Uri, Body, Query string parameters
|
537
|
+
def self.transcode_set_labels_request request_pb
|
538
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
539
|
+
.with_bindings(
|
540
|
+
uri_method: :post,
|
541
|
+
uri_template: "/compute/v1/projects/{project}/global/machineImages/{resource}/setLabels",
|
542
|
+
body: "global_set_labels_request_resource",
|
543
|
+
matches: [
|
544
|
+
["project", %r{^[^/]+/?$}, false],
|
545
|
+
["resource", %r{^[^/]+/?$}, false]
|
546
|
+
]
|
547
|
+
)
|
548
|
+
transcoder.transcode request_pb
|
549
|
+
end
|
550
|
+
|
488
551
|
##
|
489
552
|
# @private
|
490
553
|
#
|
@@ -553,7 +553,7 @@ module Google
|
|
553
553
|
|
554
554
|
config_attr :endpoint, nil, ::String, nil
|
555
555
|
config_attr :credentials, nil do |value|
|
556
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
556
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
557
557
|
allowed.any? { |klass| klass === value }
|
558
558
|
end
|
559
559
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -1119,7 +1119,7 @@ module Google
|
|
1119
1119
|
|
1120
1120
|
config_attr :endpoint, nil, ::String, nil
|
1121
1121
|
config_attr :credentials, nil do |value|
|
1122
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1122
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1123
1123
|
allowed.any? { |klass| klass === value }
|
1124
1124
|
end
|
1125
1125
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -766,7 +766,7 @@ module Google
|
|
766
766
|
|
767
767
|
config_attr :endpoint, nil, ::String, nil
|
768
768
|
config_attr :credentials, nil do |value|
|
769
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
769
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
770
770
|
allowed.any? { |klass| klass === value }
|
771
771
|
end
|
772
772
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -1140,7 +1140,7 @@ module Google
|
|
1140
1140
|
|
1141
1141
|
config_attr :endpoint, nil, ::String, nil
|
1142
1142
|
config_attr :credentials, nil do |value|
|
1143
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1143
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1144
1144
|
allowed.any? { |klass| klass === value }
|
1145
1145
|
end
|
1146
1146
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -2230,7 +2230,7 @@ module Google
|
|
2230
2230
|
|
2231
2231
|
config_attr :endpoint, nil, ::String, nil
|
2232
2232
|
config_attr :credentials, nil do |value|
|
2233
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2233
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
2234
2234
|
allowed.any? { |klass| klass === value }
|
2235
2235
|
end
|
2236
2236
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -448,7 +448,7 @@ module Google
|
|
448
448
|
|
449
449
|
config_attr :endpoint, nil, ::String, nil
|
450
450
|
config_attr :credentials, nil do |value|
|
451
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
451
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
452
452
|
allowed.any? { |klass| klass === value }
|
453
453
|
end
|
454
454
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -1313,7 +1313,7 @@ module Google
|
|
1313
1313
|
|
1314
1314
|
config_attr :endpoint, nil, ::String, nil
|
1315
1315
|
config_attr :credentials, nil do |value|
|
1316
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1316
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1317
1317
|
allowed.any? { |klass| klass === value }
|
1318
1318
|
end
|
1319
1319
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -1707,7 +1707,7 @@ module Google
|
|
1707
1707
|
|
1708
1708
|
config_attr :endpoint, nil, ::String, nil
|
1709
1709
|
config_attr :credentials, nil do |value|
|
1710
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1710
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1711
1711
|
allowed.any? { |klass| klass === value }
|
1712
1712
|
end
|
1713
1713
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -1021,7 +1021,7 @@ module Google
|
|
1021
1021
|
|
1022
1022
|
config_attr :endpoint, nil, ::String, nil
|
1023
1023
|
config_attr :credentials, nil do |value|
|
1024
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1024
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
1025
1025
|
allowed.any? { |klass| klass === value }
|
1026
1026
|
end
|
1027
1027
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -553,7 +553,7 @@ module Google
|
|
553
553
|
|
554
554
|
config_attr :endpoint, nil, ::String, nil
|
555
555
|
config_attr :credentials, nil do |value|
|
556
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
556
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
557
557
|
allowed.any? { |klass| klass === value }
|
558
558
|
end
|
559
559
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -944,7 +944,7 @@ module Google
|
|
944
944
|
|
945
945
|
config_attr :endpoint, nil, ::String, nil
|
946
946
|
config_attr :credentials, nil do |value|
|
947
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
947
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
948
948
|
allowed.any? { |klass| klass === value }
|
949
949
|
end
|
950
950
|
config_attr :scope, nil, ::String, ::Array, nil
|