google-cloud-compute-v1 2.10.0 → 2.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/compute_pb.rb +51 -1
  3. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/credentials.rb +52 -0
  4. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +829 -0
  5. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/service_stub.rb +378 -0
  6. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest.rb +51 -0
  7. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests.rb +47 -0
  8. data/lib/google/cloud/compute/v1/instance_settings_service/credentials.rb +52 -0
  9. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +512 -0
  10. data/lib/google/cloud/compute/v1/instance_settings_service/rest/service_stub.rb +190 -0
  11. data/lib/google/cloud/compute/v1/instance_settings_service/rest.rb +51 -0
  12. data/lib/google/cloud/compute/v1/instance_settings_service.rb +47 -0
  13. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +104 -0
  14. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +62 -0
  15. data/lib/google/cloud/compute/v1/rest.rb +4 -0
  16. data/lib/google/cloud/compute/v1/storage_pool_types/credentials.rb +53 -0
  17. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +603 -0
  18. data/lib/google/cloud/compute/v1/storage_pool_types/rest/service_stub.rb +249 -0
  19. data/lib/google/cloud/compute/v1/storage_pool_types/rest.rb +51 -0
  20. data/lib/google/cloud/compute/v1/storage_pool_types.rb +47 -0
  21. data/lib/google/cloud/compute/v1/storage_pools/credentials.rb +52 -0
  22. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +1313 -0
  23. data/lib/google/cloud/compute/v1/storage_pools/rest/service_stub.rb +679 -0
  24. data/lib/google/cloud/compute/v1/storage_pools/rest.rb +51 -0
  25. data/lib/google/cloud/compute/v1/storage_pools.rb +47 -0
  26. data/lib/google/cloud/compute/v1/version.rb +1 -1
  27. data/lib/google/cloud/compute/v1.rb +4 -0
  28. data/proto_docs/google/api/client.rb +4 -0
  29. data/proto_docs/google/cloud/compute/v1/compute.rb +1410 -118
  30. metadata +22 -2
@@ -0,0 +1,190 @@
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 "google/cloud/compute/v1/compute_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Compute
24
+ module V1
25
+ module InstanceSettingsService
26
+ module Rest
27
+ ##
28
+ # REST service stub for the InstanceSettingsService service.
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
+ #
32
+ class ServiceStub
33
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
34
+ # These require statements are intentionally placed here to initialize
35
+ # the REST modules only when it's required.
36
+ require "gapic/rest"
37
+
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
39
+ endpoint_template: endpoint_template,
40
+ universe_domain: universe_domain,
41
+ credentials: credentials,
42
+ numeric_enums: false,
43
+ raise_faraday_errors: false
44
+ end
45
+
46
+ ##
47
+ # The effective universe domain
48
+ #
49
+ # @return [String]
50
+ #
51
+ def universe_domain
52
+ @client_stub.universe_domain
53
+ end
54
+
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
64
+ ##
65
+ # Baseline implementation for the get REST call
66
+ #
67
+ # @param request_pb [::Google::Cloud::Compute::V1::GetInstanceSettingRequest]
68
+ # A request object representing the call parameters. Required.
69
+ # @param options [::Gapic::CallOptions]
70
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
71
+ #
72
+ # @yield [result, operation] Access the result along with the TransportOperation object
73
+ # @yieldparam result [::Google::Cloud::Compute::V1::InstanceSettings]
74
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
75
+ #
76
+ # @return [::Google::Cloud::Compute::V1::InstanceSettings]
77
+ # A result object deserialized from the server's reply
78
+ def get request_pb, options = nil
79
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
80
+
81
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_request request_pb
82
+ query_string_params = if query_string_params.any?
83
+ query_string_params.to_h { |p| p.split "=", 2 }
84
+ else
85
+ {}
86
+ end
87
+
88
+ response = @client_stub.make_http_request(
89
+ verb,
90
+ uri: uri,
91
+ body: body || "",
92
+ params: query_string_params,
93
+ options: options
94
+ )
95
+ operation = ::Gapic::Rest::TransportOperation.new response
96
+ result = ::Google::Cloud::Compute::V1::InstanceSettings.decode_json response.body, ignore_unknown_fields: true
97
+
98
+ yield result, operation if block_given?
99
+ result
100
+ end
101
+
102
+ ##
103
+ # Baseline implementation for the patch REST call
104
+ #
105
+ # @param request_pb [::Google::Cloud::Compute::V1::PatchInstanceSettingRequest]
106
+ # A request object representing the call parameters. Required.
107
+ # @param options [::Gapic::CallOptions]
108
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
109
+ #
110
+ # @yield [result, operation] Access the result along with the TransportOperation object
111
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
112
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
113
+ #
114
+ # @return [::Google::Cloud::Compute::V1::Operation]
115
+ # A result object deserialized from the server's reply
116
+ def patch request_pb, options = nil
117
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
118
+
119
+ verb, uri, query_string_params, body = ServiceStub.transcode_patch_request request_pb
120
+ query_string_params = if query_string_params.any?
121
+ query_string_params.to_h { |p| p.split "=", 2 }
122
+ else
123
+ {}
124
+ end
125
+
126
+ response = @client_stub.make_http_request(
127
+ verb,
128
+ uri: uri,
129
+ body: body || "",
130
+ params: query_string_params,
131
+ options: options
132
+ )
133
+ operation = ::Gapic::Rest::TransportOperation.new response
134
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
135
+
136
+ yield result, operation if block_given?
137
+ result
138
+ end
139
+
140
+ ##
141
+ # @private
142
+ #
143
+ # GRPC transcoding helper method for the get REST call
144
+ #
145
+ # @param request_pb [::Google::Cloud::Compute::V1::GetInstanceSettingRequest]
146
+ # A request object representing the call parameters. Required.
147
+ # @return [Array(String, [String, nil], Hash{String => String})]
148
+ # Uri, Body, Query string parameters
149
+ def self.transcode_get_request request_pb
150
+ transcoder = Gapic::Rest::GrpcTranscoder.new
151
+ .with_bindings(
152
+ uri_method: :get,
153
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceSettings",
154
+ matches: [
155
+ ["project", %r{^[^/]+/?$}, false],
156
+ ["zone", %r{^[^/]+/?$}, false]
157
+ ]
158
+ )
159
+ transcoder.transcode request_pb
160
+ end
161
+
162
+ ##
163
+ # @private
164
+ #
165
+ # GRPC transcoding helper method for the patch REST call
166
+ #
167
+ # @param request_pb [::Google::Cloud::Compute::V1::PatchInstanceSettingRequest]
168
+ # A request object representing the call parameters. Required.
169
+ # @return [Array(String, [String, nil], Hash{String => String})]
170
+ # Uri, Body, Query string parameters
171
+ def self.transcode_patch_request request_pb
172
+ transcoder = Gapic::Rest::GrpcTranscoder.new
173
+ .with_bindings(
174
+ uri_method: :patch,
175
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/instanceSettings",
176
+ body: "instance_settings_resource",
177
+ matches: [
178
+ ["project", %r{^[^/]+/?$}, false],
179
+ ["zone", %r{^[^/]+/?$}, false]
180
+ ]
181
+ )
182
+ transcoder.transcode request_pb
183
+ end
184
+ end
185
+ end
186
+ end
187
+ end
188
+ end
189
+ end
190
+ end
@@ -0,0 +1,51 @@
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 "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/compute/v1/version"
24
+
25
+ require "google/cloud/compute/v1/instance_settings_service/credentials"
26
+ require "google/cloud/compute/v1/instance_settings_service/rest/client"
27
+
28
+ module Google
29
+ module Cloud
30
+ module Compute
31
+ module V1
32
+ ##
33
+ # The InstanceSettings API.
34
+ #
35
+ # To load this service and instantiate a REST client:
36
+ #
37
+ # require "google/cloud/compute/v1/instance_settings_service/rest"
38
+ # client = ::Google::Cloud::Compute::V1::InstanceSettingsService::Rest::Client.new
39
+ #
40
+ module InstanceSettingsService
41
+ # Client for the REST transport
42
+ module Rest
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
51
+ require "google/cloud/compute/v1/instance_settings_service/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,47 @@
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 "gapic/config"
20
+ require "gapic/config/method"
21
+
22
+ require "google/cloud/compute/v1/version"
23
+
24
+ require "google/cloud/compute/v1/instance_settings_service/credentials"
25
+ require "google/cloud/compute/v1/instance_settings_service/rest"
26
+
27
+ module Google
28
+ module Cloud
29
+ module Compute
30
+ module V1
31
+ ##
32
+ # The InstanceSettings API.
33
+ #
34
+ # @example Load this service and instantiate a REST client
35
+ #
36
+ # require "google/cloud/compute/v1/instance_settings_service/rest"
37
+ # client = ::Google::Cloud::Compute::V1::InstanceSettingsService::Rest::Client.new
38
+ #
39
+ module InstanceSettingsService
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+
46
+ helper_path = ::File.join __dir__, "instance_settings_service", "helpers.rb"
47
+ require "google/cloud/compute/v1/instance_settings_service/helpers" if ::File.file? helper_path
@@ -100,6 +100,8 @@ module Google
100
100
 
101
101
  default_config.rpcs.patch.timeout = 600.0
102
102
 
103
+ default_config.rpcs.perform_maintenance.timeout = 600.0
104
+
103
105
  default_config.rpcs.set_iam_policy.timeout = 600.0
104
106
 
105
107
  default_config.rpcs.set_node_template.timeout = 600.0
@@ -1122,6 +1124,101 @@ module Google
1122
1124
  raise ::Google::Cloud::Error.from_error(e)
1123
1125
  end
1124
1126
 
1127
+ ##
1128
+ # Perform maintenance on a subset of nodes in the node group.
1129
+ #
1130
+ # @overload perform_maintenance(request, options = nil)
1131
+ # Pass arguments to `perform_maintenance` via a request object, either of type
1132
+ # {::Google::Cloud::Compute::V1::PerformMaintenanceNodeGroupRequest} or an equivalent Hash.
1133
+ #
1134
+ # @param request [::Google::Cloud::Compute::V1::PerformMaintenanceNodeGroupRequest, ::Hash]
1135
+ # A request object representing the call parameters. Required. To specify no
1136
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1137
+ # @param options [::Gapic::CallOptions, ::Hash]
1138
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1139
+ #
1140
+ # @overload perform_maintenance(node_group: nil, node_groups_perform_maintenance_request_resource: nil, project: nil, request_id: nil, zone: nil)
1141
+ # Pass arguments to `perform_maintenance` via keyword arguments. Note that at
1142
+ # least one keyword argument is required. To specify no parameters, or to keep all
1143
+ # the default parameter values, pass an empty Hash as a request object (see above).
1144
+ #
1145
+ # @param node_group [::String]
1146
+ # Name of the node group scoping this request.
1147
+ # @param node_groups_perform_maintenance_request_resource [::Google::Cloud::Compute::V1::NodeGroupsPerformMaintenanceRequest, ::Hash]
1148
+ # The body resource for this request
1149
+ # @param project [::String]
1150
+ # Project ID for this request.
1151
+ # @param request_id [::String]
1152
+ # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1153
+ # @param zone [::String]
1154
+ # The name of the zone for this request.
1155
+ # @yield [result, operation] Access the result along with the TransportOperation object
1156
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1157
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1158
+ #
1159
+ # @return [::Gapic::GenericLRO::Operation]
1160
+ #
1161
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1162
+ #
1163
+ # @example Basic example
1164
+ # require "google/cloud/compute/v1"
1165
+ #
1166
+ # # Create a client object. The client can be reused for multiple calls.
1167
+ # client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
1168
+ #
1169
+ # # Create a request. To set request fields, pass in keyword arguments.
1170
+ # request = Google::Cloud::Compute::V1::PerformMaintenanceNodeGroupRequest.new
1171
+ #
1172
+ # # Call the perform_maintenance method.
1173
+ # result = client.perform_maintenance request
1174
+ #
1175
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1176
+ # p result
1177
+ #
1178
+ def perform_maintenance request, options = nil
1179
+ raise ::ArgumentError, "request must be provided" if request.nil?
1180
+
1181
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::PerformMaintenanceNodeGroupRequest
1182
+
1183
+ # Converts hash and nil to an options object
1184
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1185
+
1186
+ # Customize the options with defaults
1187
+ call_metadata = @config.rpcs.perform_maintenance.metadata.to_h
1188
+
1189
+ # Set x-goog-api-client and x-goog-user-project headers
1190
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1191
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1192
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1193
+ transports_version_send: [:rest]
1194
+
1195
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1196
+
1197
+ options.apply_defaults timeout: @config.rpcs.perform_maintenance.timeout,
1198
+ metadata: call_metadata,
1199
+ retry_policy: @config.rpcs.perform_maintenance.retry_policy
1200
+
1201
+ options.apply_defaults timeout: @config.timeout,
1202
+ metadata: @config.metadata,
1203
+ retry_policy: @config.retry_policy
1204
+
1205
+ @node_groups_stub.perform_maintenance request, options do |result, response|
1206
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
1207
+ operation: result,
1208
+ client: zone_operations,
1209
+ request_values: {
1210
+ "project" => request.project,
1211
+ "zone" => request.zone
1212
+ },
1213
+ options: options
1214
+ )
1215
+ yield result, response if block_given?
1216
+ return result
1217
+ end
1218
+ rescue ::Gapic::Rest::Error => e
1219
+ raise ::Google::Cloud::Error.from_error(e)
1220
+ end
1221
+
1125
1222
  ##
1126
1223
  # Sets the access control policy on the specified resource. Replaces any existing policy.
1127
1224
  #
@@ -1664,6 +1761,11 @@ module Google
1664
1761
  #
1665
1762
  attr_reader :patch
1666
1763
  ##
1764
+ # RPC-specific configuration for `perform_maintenance`
1765
+ # @return [::Gapic::Config::Method]
1766
+ #
1767
+ attr_reader :perform_maintenance
1768
+ ##
1667
1769
  # RPC-specific configuration for `set_iam_policy`
1668
1770
  # @return [::Gapic::Config::Method]
1669
1771
  #
@@ -1706,6 +1808,8 @@ module Google
1706
1808
  @list_nodes = ::Gapic::Config::Method.new list_nodes_config
1707
1809
  patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
1708
1810
  @patch = ::Gapic::Config::Method.new patch_config
1811
+ perform_maintenance_config = parent_rpcs.perform_maintenance if parent_rpcs.respond_to? :perform_maintenance
1812
+ @perform_maintenance = ::Gapic::Config::Method.new perform_maintenance_config
1709
1813
  set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
1710
1814
  @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
1711
1815
  set_node_template_config = parent_rpcs.set_node_template if parent_rpcs.respond_to? :set_node_template
@@ -441,6 +441,44 @@ module Google
441
441
  result
442
442
  end
443
443
 
444
+ ##
445
+ # Baseline implementation for the perform_maintenance REST call
446
+ #
447
+ # @param request_pb [::Google::Cloud::Compute::V1::PerformMaintenanceNodeGroupRequest]
448
+ # A request object representing the call parameters. Required.
449
+ # @param options [::Gapic::CallOptions]
450
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
451
+ #
452
+ # @yield [result, operation] Access the result along with the TransportOperation object
453
+ # @yieldparam result [::Google::Cloud::Compute::V1::Operation]
454
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
455
+ #
456
+ # @return [::Google::Cloud::Compute::V1::Operation]
457
+ # A result object deserialized from the server's reply
458
+ def perform_maintenance request_pb, options = nil
459
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
460
+
461
+ verb, uri, query_string_params, body = ServiceStub.transcode_perform_maintenance_request request_pb
462
+ query_string_params = if query_string_params.any?
463
+ query_string_params.to_h { |p| p.split "=", 2 }
464
+ else
465
+ {}
466
+ end
467
+
468
+ response = @client_stub.make_http_request(
469
+ verb,
470
+ uri: uri,
471
+ body: body || "",
472
+ params: query_string_params,
473
+ options: options
474
+ )
475
+ operation = ::Gapic::Rest::TransportOperation.new response
476
+ result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
477
+
478
+ yield result, operation if block_given?
479
+ result
480
+ end
481
+
444
482
  ##
445
483
  # Baseline implementation for the set_iam_policy REST call
446
484
  #
@@ -823,6 +861,30 @@ module Google
823
861
  transcoder.transcode request_pb
824
862
  end
825
863
 
864
+ ##
865
+ # @private
866
+ #
867
+ # GRPC transcoding helper method for the perform_maintenance REST call
868
+ #
869
+ # @param request_pb [::Google::Cloud::Compute::V1::PerformMaintenanceNodeGroupRequest]
870
+ # A request object representing the call parameters. Required.
871
+ # @return [Array(String, [String, nil], Hash{String => String})]
872
+ # Uri, Body, Query string parameters
873
+ def self.transcode_perform_maintenance_request request_pb
874
+ transcoder = Gapic::Rest::GrpcTranscoder.new
875
+ .with_bindings(
876
+ uri_method: :post,
877
+ uri_template: "/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{node_group}/performMaintenance",
878
+ body: "node_groups_perform_maintenance_request_resource",
879
+ matches: [
880
+ ["project", %r{^[^/]+/?$}, false],
881
+ ["zone", %r{^[^/]+/?$}, false],
882
+ ["node_group", %r{^[^/]+/?$}, false]
883
+ ]
884
+ )
885
+ transcoder.transcode request_pb
886
+ end
887
+
826
888
  ##
827
889
  # @private
828
890
  #
@@ -36,8 +36,10 @@ require "google/cloud/compute/v1/global_public_delegated_prefixes/rest"
36
36
  require "google/cloud/compute/v1/health_checks/rest"
37
37
  require "google/cloud/compute/v1/image_family_views/rest"
38
38
  require "google/cloud/compute/v1/images/rest"
39
+ require "google/cloud/compute/v1/instance_group_manager_resize_requests/rest"
39
40
  require "google/cloud/compute/v1/instance_group_managers/rest"
40
41
  require "google/cloud/compute/v1/instance_groups/rest"
42
+ require "google/cloud/compute/v1/instance_settings_service/rest"
41
43
  require "google/cloud/compute/v1/instance_templates/rest"
42
44
  require "google/cloud/compute/v1/instances/rest"
43
45
  require "google/cloud/compute/v1/instant_snapshots/rest"
@@ -96,6 +98,8 @@ require "google/cloud/compute/v1/snapshot_settings_service/rest"
96
98
  require "google/cloud/compute/v1/snapshots/rest"
97
99
  require "google/cloud/compute/v1/ssl_certificates/rest"
98
100
  require "google/cloud/compute/v1/ssl_policies/rest"
101
+ require "google/cloud/compute/v1/storage_pool_types/rest"
102
+ require "google/cloud/compute/v1/storage_pools/rest"
99
103
  require "google/cloud/compute/v1/subnetworks/rest"
100
104
  require "google/cloud/compute/v1/target_grpc_proxies/rest"
101
105
  require "google/cloud/compute/v1/target_http_proxies/rest"
@@ -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