google-cloud-compute-v1 2.10.0 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +9 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +27 -12
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +35 -16
- data/lib/google/cloud/compute/v1/compute_pb.rb +51 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +9 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +39 -18
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +39 -18
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +9 -3
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +5 -1
- data/lib/google/cloud/compute/v1/images/rest/client.rb +25 -11
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +837 -0
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/service_stub.rb +378 -0
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests.rb +47 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +43 -20
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/instance_settings_service/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +517 -0
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/service_stub.rb +190 -0
- data/lib/google/cloud/compute/v1/instance_settings_service/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/instance_settings_service.rb +47 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +99 -48
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +7 -2
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +7 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +7 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +9 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +35 -16
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +25 -11
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +136 -14
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +9 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +31 -14
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +27 -12
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +7 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +37 -17
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +41 -19
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +5 -1
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +37 -17
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +5 -1
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +7 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +23 -10
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/rest.rb +4 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +25 -11
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +27 -12
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +7 -2
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/storage_pool_types/credentials.rb +53 -0
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +609 -0
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/service_stub.rb +249 -0
- data/lib/google/cloud/compute/v1/storage_pool_types/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/storage_pool_types.rb +47 -0
- data/lib/google/cloud/compute/v1/storage_pools/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +1326 -0
- data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +679 -0
- data/lib/google/cloud/compute/v1/storage_pools/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/storage_pools.rb +47 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +27 -12
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +13 -5
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +25 -11
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +27 -12
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +17 -7
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +21 -9
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +19 -8
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +15 -6
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +11 -4
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +7 -2
- data/lib/google/cloud/compute/v1.rb +4 -0
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1333 -37
- metadata +22 -2
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# The SslPolicies API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "compute.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -260,12 +263,13 @@ module Google
|
|
260
263
|
# Customize the options with defaults
|
261
264
|
call_metadata = @config.rpcs.aggregated_list.metadata.to_h
|
262
265
|
|
263
|
-
# Set x-goog-api-client
|
266
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
264
267
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
265
268
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
266
269
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
267
270
|
transports_version_send: [:rest]
|
268
271
|
|
272
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
269
273
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
270
274
|
|
271
275
|
options.apply_defaults timeout: @config.rpcs.aggregated_list.timeout,
|
@@ -343,12 +347,13 @@ module Google
|
|
343
347
|
# Customize the options with defaults
|
344
348
|
call_metadata = @config.rpcs.delete.metadata.to_h
|
345
349
|
|
346
|
-
# Set x-goog-api-client
|
350
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
347
351
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
348
352
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
349
353
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
350
354
|
transports_version_send: [:rest]
|
351
355
|
|
356
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
352
357
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
353
358
|
|
354
359
|
options.apply_defaults timeout: @config.rpcs.delete.timeout,
|
@@ -431,12 +436,13 @@ module Google
|
|
431
436
|
# Customize the options with defaults
|
432
437
|
call_metadata = @config.rpcs.get.metadata.to_h
|
433
438
|
|
434
|
-
# Set x-goog-api-client
|
439
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
435
440
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
436
441
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
437
442
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
438
443
|
transports_version_send: [:rest]
|
439
444
|
|
445
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
440
446
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
441
447
|
|
442
448
|
options.apply_defaults timeout: @config.rpcs.get.timeout,
|
@@ -513,12 +519,13 @@ module Google
|
|
513
519
|
# Customize the options with defaults
|
514
520
|
call_metadata = @config.rpcs.insert.metadata.to_h
|
515
521
|
|
516
|
-
# Set x-goog-api-client
|
522
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
517
523
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
518
524
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
519
525
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
520
526
|
transports_version_send: [:rest]
|
521
527
|
|
528
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
522
529
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
523
530
|
|
524
531
|
options.apply_defaults timeout: @config.rpcs.insert.timeout,
|
@@ -609,12 +616,13 @@ module Google
|
|
609
616
|
# Customize the options with defaults
|
610
617
|
call_metadata = @config.rpcs.list.metadata.to_h
|
611
618
|
|
612
|
-
# Set x-goog-api-client
|
619
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
613
620
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
614
621
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
615
622
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
616
623
|
transports_version_send: [:rest]
|
617
624
|
|
625
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
618
626
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
619
627
|
|
620
628
|
options.apply_defaults timeout: @config.rpcs.list.timeout,
|
@@ -698,12 +706,13 @@ module Google
|
|
698
706
|
# Customize the options with defaults
|
699
707
|
call_metadata = @config.rpcs.list_available_features.metadata.to_h
|
700
708
|
|
701
|
-
# Set x-goog-api-client
|
709
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
702
710
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
703
711
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
704
712
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
705
713
|
transports_version_send: [:rest]
|
706
714
|
|
715
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
707
716
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
708
717
|
|
709
718
|
options.apply_defaults timeout: @config.rpcs.list_available_features.timeout,
|
@@ -782,12 +791,13 @@ module Google
|
|
782
791
|
# Customize the options with defaults
|
783
792
|
call_metadata = @config.rpcs.patch.metadata.to_h
|
784
793
|
|
785
|
-
# Set x-goog-api-client
|
794
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
786
795
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
787
796
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
788
797
|
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
789
798
|
transports_version_send: [:rest]
|
790
799
|
|
800
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
791
801
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
792
802
|
|
793
803
|
options.apply_defaults timeout: @config.rpcs.patch.timeout,
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 StoragePoolTypes
|
26
|
+
# Credentials for the StoragePoolTypes API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/compute.readonly",
|
30
|
+
"https://www.googleapis.com/auth/compute",
|
31
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
32
|
+
]
|
33
|
+
self.env_vars = [
|
34
|
+
"COMPUTE_CREDENTIALS",
|
35
|
+
"COMPUTE_KEYFILE",
|
36
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
37
|
+
"GOOGLE_CLOUD_KEYFILE",
|
38
|
+
"GCLOUD_KEYFILE",
|
39
|
+
"COMPUTE_CREDENTIALS_JSON",
|
40
|
+
"COMPUTE_KEYFILE_JSON",
|
41
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
42
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
43
|
+
"GCLOUD_KEYFILE_JSON"
|
44
|
+
]
|
45
|
+
self.paths = [
|
46
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
47
|
+
]
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|