google-cloud-compute-v1 2.22.0 → 3.0.0
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/compute_pb.rb +125 -2
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +105 -0
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +1218 -0
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/service_stub.rb +641 -0
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups.rb +47 -0
- data/lib/google/cloud/compute/v1/interconnect_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +1318 -0
- data/lib/google/cloud/compute/v1/interconnect_groups/rest/service_stub.rb +704 -0
- data/lib/google/cloud/compute/v1/interconnect_groups/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/interconnect_groups.rb +47 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +104 -0
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +102 -0
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +4 -1
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +659 -0
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +272 -0
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/reservation_sub_blocks.rb +47 -0
- data/lib/google/cloud/compute/v1/rest.rb +3 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +8 -4
- data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +8 -4
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +3 -1
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1.rb +3 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +2265 -64
- metadata +19 -4
@@ -0,0 +1,272 @@
|
|
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 "google/cloud/compute/v1/compute_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Compute
|
24
|
+
module V1
|
25
|
+
module ReservationSubBlocks
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the ReservationSubBlocks service.
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
|
+
#
|
32
|
+
class ServiceStub
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
35
|
+
# These require statements are intentionally placed here to initialize
|
36
|
+
# the REST modules only when it's required.
|
37
|
+
require "gapic/rest"
|
38
|
+
|
39
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
40
|
+
endpoint_template: endpoint_template,
|
41
|
+
universe_domain: universe_domain,
|
42
|
+
credentials: credentials,
|
43
|
+
numeric_enums: false,
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
47
|
+
end
|
48
|
+
|
49
|
+
##
|
50
|
+
# The effective universe domain
|
51
|
+
#
|
52
|
+
# @return [String]
|
53
|
+
#
|
54
|
+
def universe_domain
|
55
|
+
@client_stub.universe_domain
|
56
|
+
end
|
57
|
+
|
58
|
+
##
|
59
|
+
# The effective endpoint
|
60
|
+
#
|
61
|
+
# @return [String]
|
62
|
+
#
|
63
|
+
def endpoint
|
64
|
+
@client_stub.endpoint
|
65
|
+
end
|
66
|
+
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
76
|
+
##
|
77
|
+
# Baseline implementation for the get REST call
|
78
|
+
#
|
79
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetReservationSubBlockRequest]
|
80
|
+
# A request object representing the call parameters. Required.
|
81
|
+
# @param options [::Gapic::CallOptions]
|
82
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
83
|
+
#
|
84
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
85
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::ReservationSubBlocksGetResponse]
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
87
|
+
#
|
88
|
+
# @return [::Google::Cloud::Compute::V1::ReservationSubBlocksGetResponse]
|
89
|
+
# A result object deserialized from the server's reply
|
90
|
+
def get request_pb, options = nil
|
91
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
92
|
+
|
93
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_request request_pb
|
94
|
+
query_string_params = if query_string_params.any?
|
95
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
96
|
+
else
|
97
|
+
{}
|
98
|
+
end
|
99
|
+
|
100
|
+
response = @client_stub.make_http_request(
|
101
|
+
verb,
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "get",
|
106
|
+
options: options
|
107
|
+
)
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
109
|
+
result = ::Google::Cloud::Compute::V1::ReservationSubBlocksGetResponse.decode_json response.body, ignore_unknown_fields: true
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
##
|
117
|
+
# Baseline implementation for the list REST call
|
118
|
+
#
|
119
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListReservationSubBlocksRequest]
|
120
|
+
# A request object representing the call parameters. Required.
|
121
|
+
# @param options [::Gapic::CallOptions]
|
122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
123
|
+
#
|
124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
125
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::ReservationSubBlocksListResponse]
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
127
|
+
#
|
128
|
+
# @return [::Google::Cloud::Compute::V1::ReservationSubBlocksListResponse]
|
129
|
+
# A result object deserialized from the server's reply
|
130
|
+
def list request_pb, options = nil
|
131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
132
|
+
|
133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_request request_pb
|
134
|
+
query_string_params = if query_string_params.any?
|
135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
136
|
+
else
|
137
|
+
{}
|
138
|
+
end
|
139
|
+
|
140
|
+
response = @client_stub.make_http_request(
|
141
|
+
verb,
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "list",
|
146
|
+
options: options
|
147
|
+
)
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
149
|
+
result = ::Google::Cloud::Compute::V1::ReservationSubBlocksListResponse.decode_json response.body, ignore_unknown_fields: true
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
##
|
157
|
+
# Baseline implementation for the perform_maintenance REST call
|
158
|
+
#
|
159
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PerformMaintenanceReservationSubBlockRequest]
|
160
|
+
# A request object representing the call parameters. Required.
|
161
|
+
# @param options [::Gapic::CallOptions]
|
162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
163
|
+
#
|
164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
165
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
167
|
+
#
|
168
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
169
|
+
# A result object deserialized from the server's reply
|
170
|
+
def perform_maintenance request_pb, options = nil
|
171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
172
|
+
|
173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_perform_maintenance_request request_pb
|
174
|
+
query_string_params = if query_string_params.any?
|
175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
176
|
+
else
|
177
|
+
{}
|
178
|
+
end
|
179
|
+
|
180
|
+
response = @client_stub.make_http_request(
|
181
|
+
verb,
|
182
|
+
uri: uri,
|
183
|
+
body: body || "",
|
184
|
+
params: query_string_params,
|
185
|
+
method_name: "perform_maintenance",
|
186
|
+
options: options
|
187
|
+
)
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
189
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
190
|
+
catch :response do
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
##
|
197
|
+
# @private
|
198
|
+
#
|
199
|
+
# GRPC transcoding helper method for the get REST call
|
200
|
+
#
|
201
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetReservationSubBlockRequest]
|
202
|
+
# A request object representing the call parameters. Required.
|
203
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
204
|
+
# Uri, Body, Query string parameters
|
205
|
+
def self.transcode_get_request request_pb
|
206
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
207
|
+
.with_bindings(
|
208
|
+
uri_method: :get,
|
209
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}",
|
210
|
+
matches: [
|
211
|
+
["project", %r{^[^/]+/?$}, false],
|
212
|
+
["zone", %r{^[^/]+/?$}, false],
|
213
|
+
["parent_name", %r{^[^/]+/?$}, false],
|
214
|
+
["reservation_sub_block", %r{^[^/]+/?$}, false]
|
215
|
+
]
|
216
|
+
)
|
217
|
+
transcoder.transcode request_pb
|
218
|
+
end
|
219
|
+
|
220
|
+
##
|
221
|
+
# @private
|
222
|
+
#
|
223
|
+
# GRPC transcoding helper method for the list REST call
|
224
|
+
#
|
225
|
+
# @param request_pb [::Google::Cloud::Compute::V1::ListReservationSubBlocksRequest]
|
226
|
+
# A request object representing the call parameters. Required.
|
227
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
228
|
+
# Uri, Body, Query string parameters
|
229
|
+
def self.transcode_list_request request_pb
|
230
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
231
|
+
.with_bindings(
|
232
|
+
uri_method: :get,
|
233
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks",
|
234
|
+
matches: [
|
235
|
+
["project", %r{^[^/]+/?$}, false],
|
236
|
+
["zone", %r{^[^/]+/?$}, false],
|
237
|
+
["parent_name", %r{^[^/]+/?$}, false]
|
238
|
+
]
|
239
|
+
)
|
240
|
+
transcoder.transcode request_pb
|
241
|
+
end
|
242
|
+
|
243
|
+
##
|
244
|
+
# @private
|
245
|
+
#
|
246
|
+
# GRPC transcoding helper method for the perform_maintenance REST call
|
247
|
+
#
|
248
|
+
# @param request_pb [::Google::Cloud::Compute::V1::PerformMaintenanceReservationSubBlockRequest]
|
249
|
+
# A request object representing the call parameters. Required.
|
250
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
251
|
+
# Uri, Body, Query string parameters
|
252
|
+
def self.transcode_perform_maintenance_request request_pb
|
253
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
254
|
+
.with_bindings(
|
255
|
+
uri_method: :post,
|
256
|
+
uri_template: "/compute/v1/projects/{project}/zones/{zone}/{parent_name}/reservationSubBlocks/{reservation_sub_block}/performMaintenance",
|
257
|
+
matches: [
|
258
|
+
["project", %r{^[^/]+/?$}, false],
|
259
|
+
["zone", %r{^[^/]+/?$}, false],
|
260
|
+
["parent_name", %r{^[^/]+/?$}, false],
|
261
|
+
["reservation_sub_block", %r{^[^/]+/?$}, false]
|
262
|
+
]
|
263
|
+
)
|
264
|
+
transcoder.transcode request_pb
|
265
|
+
end
|
266
|
+
end
|
267
|
+
end
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|
271
|
+
end
|
272
|
+
end
|
@@ -0,0 +1,51 @@
|
|
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 "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/reservation_sub_blocks/credentials"
|
26
|
+
require "google/cloud/compute/v1/reservation_sub_blocks/rest/client"
|
27
|
+
|
28
|
+
module Google
|
29
|
+
module Cloud
|
30
|
+
module Compute
|
31
|
+
module V1
|
32
|
+
##
|
33
|
+
# The ReservationSubBlocks API.
|
34
|
+
#
|
35
|
+
# To load this service and instantiate a REST client:
|
36
|
+
#
|
37
|
+
# require "google/cloud/compute/v1/reservation_sub_blocks/rest"
|
38
|
+
# client = ::Google::Cloud::Compute::V1::ReservationSubBlocks::Rest::Client.new
|
39
|
+
#
|
40
|
+
module ReservationSubBlocks
|
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/reservation_sub_blocks/rest/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,47 @@
|
|
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 "gapic/config"
|
20
|
+
require "gapic/config/method"
|
21
|
+
|
22
|
+
require "google/cloud/compute/v1/version"
|
23
|
+
|
24
|
+
require "google/cloud/compute/v1/reservation_sub_blocks/credentials"
|
25
|
+
require "google/cloud/compute/v1/reservation_sub_blocks/rest"
|
26
|
+
|
27
|
+
module Google
|
28
|
+
module Cloud
|
29
|
+
module Compute
|
30
|
+
module V1
|
31
|
+
##
|
32
|
+
# The ReservationSubBlocks API.
|
33
|
+
#
|
34
|
+
# @example Load this service and instantiate a REST client
|
35
|
+
#
|
36
|
+
# require "google/cloud/compute/v1/reservation_sub_blocks/rest"
|
37
|
+
# client = ::Google::Cloud::Compute::V1::ReservationSubBlocks::Rest::Client.new
|
38
|
+
#
|
39
|
+
module ReservationSubBlocks
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
helper_path = ::File.join __dir__, "reservation_sub_blocks", "helpers.rb"
|
47
|
+
require "google/cloud/compute/v1/reservation_sub_blocks/helpers" if ::File.file? helper_path
|
@@ -43,7 +43,9 @@ require "google/cloud/compute/v1/instance_settings_service/rest"
|
|
43
43
|
require "google/cloud/compute/v1/instance_templates/rest"
|
44
44
|
require "google/cloud/compute/v1/instances/rest"
|
45
45
|
require "google/cloud/compute/v1/instant_snapshots/rest"
|
46
|
+
require "google/cloud/compute/v1/interconnect_attachment_groups/rest"
|
46
47
|
require "google/cloud/compute/v1/interconnect_attachments/rest"
|
48
|
+
require "google/cloud/compute/v1/interconnect_groups/rest"
|
47
49
|
require "google/cloud/compute/v1/interconnect_locations/rest"
|
48
50
|
require "google/cloud/compute/v1/interconnect_remote_locations/rest"
|
49
51
|
require "google/cloud/compute/v1/interconnects/rest"
|
@@ -90,6 +92,7 @@ require "google/cloud/compute/v1/region_url_maps/rest"
|
|
90
92
|
require "google/cloud/compute/v1/region_zones/rest"
|
91
93
|
require "google/cloud/compute/v1/regions/rest"
|
92
94
|
require "google/cloud/compute/v1/reservation_blocks/rest"
|
95
|
+
require "google/cloud/compute/v1/reservation_sub_blocks/rest"
|
93
96
|
require "google/cloud/compute/v1/reservations/rest"
|
94
97
|
require "google/cloud/compute/v1/resource_policies/rest"
|
95
98
|
require "google/cloud/compute/v1/routers/rest"
|
@@ -1195,10 +1195,10 @@ module Google
|
|
1195
1195
|
# @param router [::String]
|
1196
1196
|
# Name or id of the resource for this request. Name should conform to RFC1035.
|
1197
1197
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1198
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::
|
1198
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BgpRoute>]
|
1199
1199
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1200
1200
|
#
|
1201
|
-
# @return [::Google::Cloud::Compute::V1::
|
1201
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BgpRoute>]
|
1202
1202
|
#
|
1203
1203
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1204
1204
|
#
|
@@ -1246,7 +1246,9 @@ module Google
|
|
1246
1246
|
retry_policy: @config.retry_policy
|
1247
1247
|
|
1248
1248
|
@routers_stub.list_bgp_routes request, options do |result, operation|
|
1249
|
+
result = ::Gapic::Rest::PagedEnumerable.new @routers_stub, :list_bgp_routes, "result", request, result, options
|
1249
1250
|
yield result, operation if block_given?
|
1251
|
+
throw :response, result
|
1250
1252
|
end
|
1251
1253
|
rescue ::Gapic::Rest::Error => e
|
1252
1254
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1287,10 +1289,10 @@ module Google
|
|
1287
1289
|
# @param router [::String]
|
1288
1290
|
# Name or id of the resource for this request. Name should conform to RFC1035.
|
1289
1291
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1290
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::
|
1292
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::RoutePolicy>]
|
1291
1293
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1292
1294
|
#
|
1293
|
-
# @return [::Google::Cloud::Compute::V1::
|
1295
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::RoutePolicy>]
|
1294
1296
|
#
|
1295
1297
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1296
1298
|
#
|
@@ -1338,7 +1340,9 @@ module Google
|
|
1338
1340
|
retry_policy: @config.retry_policy
|
1339
1341
|
|
1340
1342
|
@routers_stub.list_route_policies request, options do |result, operation|
|
1343
|
+
result = ::Gapic::Rest::PagedEnumerable.new @routers_stub, :list_route_policies, "result", request, result, options
|
1341
1344
|
yield result, operation if block_given?
|
1345
|
+
throw :response, result
|
1342
1346
|
end
|
1343
1347
|
rescue ::Gapic::Rest::Error => e
|
1344
1348
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -705,10 +705,10 @@ module Google
|
|
705
705
|
# @param zone [::String]
|
706
706
|
# The name of the zone for this request.
|
707
707
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
708
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::
|
708
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::StoragePool>]
|
709
709
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
710
710
|
#
|
711
|
-
# @return [::Google::Cloud::Compute::V1::
|
711
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::StoragePool>]
|
712
712
|
#
|
713
713
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
714
714
|
#
|
@@ -756,7 +756,9 @@ module Google
|
|
756
756
|
retry_policy: @config.retry_policy
|
757
757
|
|
758
758
|
@storage_pools_stub.list request, options do |result, operation|
|
759
|
+
result = ::Gapic::Rest::PagedEnumerable.new @storage_pools_stub, :list, "items", request, result, options
|
759
760
|
yield result, operation if block_given?
|
761
|
+
throw :response, result
|
760
762
|
end
|
761
763
|
rescue ::Gapic::Rest::Error => e
|
762
764
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -797,10 +799,10 @@ module Google
|
|
797
799
|
# @param zone [::String]
|
798
800
|
# The name of the zone for this request.
|
799
801
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
800
|
-
# @yieldparam result [::Google::Cloud::Compute::V1::
|
802
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::StoragePoolDisk>]
|
801
803
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
802
804
|
#
|
803
|
-
# @return [::Google::Cloud::Compute::V1::
|
805
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::StoragePoolDisk>]
|
804
806
|
#
|
805
807
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
806
808
|
#
|
@@ -848,7 +850,9 @@ module Google
|
|
848
850
|
retry_policy: @config.retry_policy
|
849
851
|
|
850
852
|
@storage_pools_stub.list_disks request, options do |result, operation|
|
853
|
+
result = ::Gapic::Rest::PagedEnumerable.new @storage_pools_stub, :list_disks, "items", request, result, options
|
851
854
|
yield result, operation if block_given?
|
855
|
+
throw :response, result
|
852
856
|
end
|
853
857
|
rescue ::Gapic::Rest::Error => e
|
854
858
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -877,7 +877,7 @@ module Google
|
|
877
877
|
# @param options [::Gapic::CallOptions, ::Hash]
|
878
878
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
879
879
|
#
|
880
|
-
# @overload list_usable(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
880
|
+
# @overload list_usable(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project: nil)
|
881
881
|
# Pass arguments to `list_usable` via keyword arguments. Note that at
|
882
882
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
883
883
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -894,6 +894,8 @@ module Google
|
|
894
894
|
# Project ID for this request.
|
895
895
|
# @param return_partial_success [::Boolean]
|
896
896
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
|
897
|
+
# @param service_project [::String]
|
898
|
+
# The project id or project number in which the subnetwork is intended to be used. Only applied for Shared VPC. See [Shared VPC documentation](https://cloud.google.com/vpc/docs/shared-vpc/)
|
897
899
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
898
900
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::UsableSubnetwork>]
|
899
901
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -43,7 +43,9 @@ require "google/cloud/compute/v1/instance_settings_service"
|
|
43
43
|
require "google/cloud/compute/v1/instance_templates"
|
44
44
|
require "google/cloud/compute/v1/instances"
|
45
45
|
require "google/cloud/compute/v1/instant_snapshots"
|
46
|
+
require "google/cloud/compute/v1/interconnect_attachment_groups"
|
46
47
|
require "google/cloud/compute/v1/interconnect_attachments"
|
48
|
+
require "google/cloud/compute/v1/interconnect_groups"
|
47
49
|
require "google/cloud/compute/v1/interconnect_locations"
|
48
50
|
require "google/cloud/compute/v1/interconnect_remote_locations"
|
49
51
|
require "google/cloud/compute/v1/interconnects"
|
@@ -90,6 +92,7 @@ require "google/cloud/compute/v1/region_url_maps"
|
|
90
92
|
require "google/cloud/compute/v1/region_zones"
|
91
93
|
require "google/cloud/compute/v1/regions"
|
92
94
|
require "google/cloud/compute/v1/reservation_blocks"
|
95
|
+
require "google/cloud/compute/v1/reservation_sub_blocks"
|
93
96
|
require "google/cloud/compute/v1/reservations"
|
94
97
|
require "google/cloud/compute/v1/resource_policies"
|
95
98
|
require "google/cloud/compute/v1/routers"
|