google-cloud-storage-control-v2 1.4.0 → 1.5.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/storage/control/v2/rest.rb +39 -0
- data/lib/google/cloud/storage/control/v2/storage_control/rest/client.rb +913 -0
- data/lib/google/cloud/storage/control/v2/storage_control/rest/service_stub.rb +452 -0
- data/lib/google/cloud/storage/control/v2/storage_control/rest.rb +54 -0
- data/lib/google/cloud/storage/control/v2/storage_control.rb +6 -0
- data/lib/google/cloud/storage/control/v2/version.rb +1 -1
- data/lib/google/cloud/storage/control/v2.rb +5 -0
- metadata +6 -2
@@ -0,0 +1,452 @@
|
|
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/storage/control/v2/storage_control_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Storage
|
24
|
+
module Control
|
25
|
+
module V2
|
26
|
+
module StorageControl
|
27
|
+
module Rest
|
28
|
+
##
|
29
|
+
# REST service stub for the StorageControl service.
|
30
|
+
# Service stub contains baseline method implementations
|
31
|
+
# including transcoding, making the REST call, and deserialing the response.
|
32
|
+
#
|
33
|
+
class ServiceStub
|
34
|
+
# @private
|
35
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
36
|
+
# These require statements are intentionally placed here to initialize
|
37
|
+
# the REST modules only when it's required.
|
38
|
+
require "gapic/rest"
|
39
|
+
|
40
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
41
|
+
endpoint_template: endpoint_template,
|
42
|
+
universe_domain: universe_domain,
|
43
|
+
credentials: credentials,
|
44
|
+
numeric_enums: true,
|
45
|
+
service_name: self.class,
|
46
|
+
raise_faraday_errors: false,
|
47
|
+
logger: logger
|
48
|
+
end
|
49
|
+
|
50
|
+
##
|
51
|
+
# The effective universe domain
|
52
|
+
#
|
53
|
+
# @return [String]
|
54
|
+
#
|
55
|
+
def universe_domain
|
56
|
+
@client_stub.universe_domain
|
57
|
+
end
|
58
|
+
|
59
|
+
##
|
60
|
+
# The effective endpoint
|
61
|
+
#
|
62
|
+
# @return [String]
|
63
|
+
#
|
64
|
+
def endpoint
|
65
|
+
@client_stub.endpoint
|
66
|
+
end
|
67
|
+
|
68
|
+
##
|
69
|
+
# The logger used for request/response debug logging.
|
70
|
+
#
|
71
|
+
# @return [Logger]
|
72
|
+
#
|
73
|
+
def logger stub: false
|
74
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
75
|
+
end
|
76
|
+
|
77
|
+
##
|
78
|
+
# Baseline implementation for the get_project_intelligence_config REST call
|
79
|
+
#
|
80
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::GetProjectIntelligenceConfigRequest]
|
81
|
+
# A request object representing the call parameters. Required.
|
82
|
+
# @param options [::Gapic::CallOptions]
|
83
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
84
|
+
#
|
85
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
86
|
+
# @yieldparam result [::Google::Cloud::Storage::Control::V2::IntelligenceConfig]
|
87
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
88
|
+
#
|
89
|
+
# @return [::Google::Cloud::Storage::Control::V2::IntelligenceConfig]
|
90
|
+
# A result object deserialized from the server's reply
|
91
|
+
def get_project_intelligence_config request_pb, options = nil
|
92
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
93
|
+
|
94
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_project_intelligence_config_request request_pb
|
95
|
+
query_string_params = if query_string_params.any?
|
96
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
97
|
+
else
|
98
|
+
{}
|
99
|
+
end
|
100
|
+
|
101
|
+
response = @client_stub.make_http_request(
|
102
|
+
verb,
|
103
|
+
uri: uri,
|
104
|
+
body: body || "",
|
105
|
+
params: query_string_params,
|
106
|
+
method_name: "get_project_intelligence_config",
|
107
|
+
options: options
|
108
|
+
)
|
109
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
110
|
+
result = ::Google::Cloud::Storage::Control::V2::IntelligenceConfig.decode_json response.body, ignore_unknown_fields: true
|
111
|
+
catch :response do
|
112
|
+
yield result, operation if block_given?
|
113
|
+
result
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
##
|
118
|
+
# Baseline implementation for the update_project_intelligence_config REST call
|
119
|
+
#
|
120
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::UpdateProjectIntelligenceConfigRequest]
|
121
|
+
# A request object representing the call parameters. Required.
|
122
|
+
# @param options [::Gapic::CallOptions]
|
123
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
124
|
+
#
|
125
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
126
|
+
# @yieldparam result [::Google::Cloud::Storage::Control::V2::IntelligenceConfig]
|
127
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
128
|
+
#
|
129
|
+
# @return [::Google::Cloud::Storage::Control::V2::IntelligenceConfig]
|
130
|
+
# A result object deserialized from the server's reply
|
131
|
+
def update_project_intelligence_config request_pb, options = nil
|
132
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
133
|
+
|
134
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_project_intelligence_config_request request_pb
|
135
|
+
query_string_params = if query_string_params.any?
|
136
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
137
|
+
else
|
138
|
+
{}
|
139
|
+
end
|
140
|
+
|
141
|
+
response = @client_stub.make_http_request(
|
142
|
+
verb,
|
143
|
+
uri: uri,
|
144
|
+
body: body || "",
|
145
|
+
params: query_string_params,
|
146
|
+
method_name: "update_project_intelligence_config",
|
147
|
+
options: options
|
148
|
+
)
|
149
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
150
|
+
result = ::Google::Cloud::Storage::Control::V2::IntelligenceConfig.decode_json response.body, ignore_unknown_fields: true
|
151
|
+
catch :response do
|
152
|
+
yield result, operation if block_given?
|
153
|
+
result
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
##
|
158
|
+
# Baseline implementation for the get_folder_intelligence_config REST call
|
159
|
+
#
|
160
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::GetFolderIntelligenceConfigRequest]
|
161
|
+
# A request object representing the call parameters. Required.
|
162
|
+
# @param options [::Gapic::CallOptions]
|
163
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
164
|
+
#
|
165
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
166
|
+
# @yieldparam result [::Google::Cloud::Storage::Control::V2::IntelligenceConfig]
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
168
|
+
#
|
169
|
+
# @return [::Google::Cloud::Storage::Control::V2::IntelligenceConfig]
|
170
|
+
# A result object deserialized from the server's reply
|
171
|
+
def get_folder_intelligence_config request_pb, options = nil
|
172
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
173
|
+
|
174
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_folder_intelligence_config_request request_pb
|
175
|
+
query_string_params = if query_string_params.any?
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
|
+
else
|
178
|
+
{}
|
179
|
+
end
|
180
|
+
|
181
|
+
response = @client_stub.make_http_request(
|
182
|
+
verb,
|
183
|
+
uri: uri,
|
184
|
+
body: body || "",
|
185
|
+
params: query_string_params,
|
186
|
+
method_name: "get_folder_intelligence_config",
|
187
|
+
options: options
|
188
|
+
)
|
189
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
190
|
+
result = ::Google::Cloud::Storage::Control::V2::IntelligenceConfig.decode_json response.body, ignore_unknown_fields: true
|
191
|
+
catch :response do
|
192
|
+
yield result, operation if block_given?
|
193
|
+
result
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
##
|
198
|
+
# Baseline implementation for the update_folder_intelligence_config REST call
|
199
|
+
#
|
200
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::UpdateFolderIntelligenceConfigRequest]
|
201
|
+
# A request object representing the call parameters. Required.
|
202
|
+
# @param options [::Gapic::CallOptions]
|
203
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
204
|
+
#
|
205
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
206
|
+
# @yieldparam result [::Google::Cloud::Storage::Control::V2::IntelligenceConfig]
|
207
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
208
|
+
#
|
209
|
+
# @return [::Google::Cloud::Storage::Control::V2::IntelligenceConfig]
|
210
|
+
# A result object deserialized from the server's reply
|
211
|
+
def update_folder_intelligence_config request_pb, options = nil
|
212
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
213
|
+
|
214
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_folder_intelligence_config_request request_pb
|
215
|
+
query_string_params = if query_string_params.any?
|
216
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
217
|
+
else
|
218
|
+
{}
|
219
|
+
end
|
220
|
+
|
221
|
+
response = @client_stub.make_http_request(
|
222
|
+
verb,
|
223
|
+
uri: uri,
|
224
|
+
body: body || "",
|
225
|
+
params: query_string_params,
|
226
|
+
method_name: "update_folder_intelligence_config",
|
227
|
+
options: options
|
228
|
+
)
|
229
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
230
|
+
result = ::Google::Cloud::Storage::Control::V2::IntelligenceConfig.decode_json response.body, ignore_unknown_fields: true
|
231
|
+
catch :response do
|
232
|
+
yield result, operation if block_given?
|
233
|
+
result
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
##
|
238
|
+
# Baseline implementation for the get_organization_intelligence_config REST call
|
239
|
+
#
|
240
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::GetOrganizationIntelligenceConfigRequest]
|
241
|
+
# A request object representing the call parameters. Required.
|
242
|
+
# @param options [::Gapic::CallOptions]
|
243
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
244
|
+
#
|
245
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
246
|
+
# @yieldparam result [::Google::Cloud::Storage::Control::V2::IntelligenceConfig]
|
247
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
248
|
+
#
|
249
|
+
# @return [::Google::Cloud::Storage::Control::V2::IntelligenceConfig]
|
250
|
+
# A result object deserialized from the server's reply
|
251
|
+
def get_organization_intelligence_config request_pb, options = nil
|
252
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
253
|
+
|
254
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_organization_intelligence_config_request request_pb
|
255
|
+
query_string_params = if query_string_params.any?
|
256
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
257
|
+
else
|
258
|
+
{}
|
259
|
+
end
|
260
|
+
|
261
|
+
response = @client_stub.make_http_request(
|
262
|
+
verb,
|
263
|
+
uri: uri,
|
264
|
+
body: body || "",
|
265
|
+
params: query_string_params,
|
266
|
+
method_name: "get_organization_intelligence_config",
|
267
|
+
options: options
|
268
|
+
)
|
269
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
270
|
+
result = ::Google::Cloud::Storage::Control::V2::IntelligenceConfig.decode_json response.body, ignore_unknown_fields: true
|
271
|
+
catch :response do
|
272
|
+
yield result, operation if block_given?
|
273
|
+
result
|
274
|
+
end
|
275
|
+
end
|
276
|
+
|
277
|
+
##
|
278
|
+
# Baseline implementation for the update_organization_intelligence_config REST call
|
279
|
+
#
|
280
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::UpdateOrganizationIntelligenceConfigRequest]
|
281
|
+
# A request object representing the call parameters. Required.
|
282
|
+
# @param options [::Gapic::CallOptions]
|
283
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
284
|
+
#
|
285
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
286
|
+
# @yieldparam result [::Google::Cloud::Storage::Control::V2::IntelligenceConfig]
|
287
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
288
|
+
#
|
289
|
+
# @return [::Google::Cloud::Storage::Control::V2::IntelligenceConfig]
|
290
|
+
# A result object deserialized from the server's reply
|
291
|
+
def update_organization_intelligence_config request_pb, options = nil
|
292
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
293
|
+
|
294
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_organization_intelligence_config_request request_pb
|
295
|
+
query_string_params = if query_string_params.any?
|
296
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
297
|
+
else
|
298
|
+
{}
|
299
|
+
end
|
300
|
+
|
301
|
+
response = @client_stub.make_http_request(
|
302
|
+
verb,
|
303
|
+
uri: uri,
|
304
|
+
body: body || "",
|
305
|
+
params: query_string_params,
|
306
|
+
method_name: "update_organization_intelligence_config",
|
307
|
+
options: options
|
308
|
+
)
|
309
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
310
|
+
result = ::Google::Cloud::Storage::Control::V2::IntelligenceConfig.decode_json response.body, ignore_unknown_fields: true
|
311
|
+
catch :response do
|
312
|
+
yield result, operation if block_given?
|
313
|
+
result
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
317
|
+
##
|
318
|
+
# @private
|
319
|
+
#
|
320
|
+
# GRPC transcoding helper method for the get_project_intelligence_config REST call
|
321
|
+
#
|
322
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::GetProjectIntelligenceConfigRequest]
|
323
|
+
# A request object representing the call parameters. Required.
|
324
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
325
|
+
# Uri, Body, Query string parameters
|
326
|
+
def self.transcode_get_project_intelligence_config_request request_pb
|
327
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
328
|
+
.with_bindings(
|
329
|
+
uri_method: :get,
|
330
|
+
uri_template: "/v2/{name}",
|
331
|
+
matches: [
|
332
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/intelligenceConfig/?$}, false]
|
333
|
+
]
|
334
|
+
)
|
335
|
+
transcoder.transcode request_pb
|
336
|
+
end
|
337
|
+
|
338
|
+
##
|
339
|
+
# @private
|
340
|
+
#
|
341
|
+
# GRPC transcoding helper method for the update_project_intelligence_config REST call
|
342
|
+
#
|
343
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::UpdateProjectIntelligenceConfigRequest]
|
344
|
+
# A request object representing the call parameters. Required.
|
345
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
346
|
+
# Uri, Body, Query string parameters
|
347
|
+
def self.transcode_update_project_intelligence_config_request request_pb
|
348
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
349
|
+
.with_bindings(
|
350
|
+
uri_method: :patch,
|
351
|
+
uri_template: "/v2/{intelligence_config.name}",
|
352
|
+
body: "intelligence_config",
|
353
|
+
matches: [
|
354
|
+
["intelligence_config.name", %r{^projects/[^/]+/locations/[^/]+/intelligenceConfig/?$}, false]
|
355
|
+
]
|
356
|
+
)
|
357
|
+
transcoder.transcode request_pb
|
358
|
+
end
|
359
|
+
|
360
|
+
##
|
361
|
+
# @private
|
362
|
+
#
|
363
|
+
# GRPC transcoding helper method for the get_folder_intelligence_config REST call
|
364
|
+
#
|
365
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::GetFolderIntelligenceConfigRequest]
|
366
|
+
# A request object representing the call parameters. Required.
|
367
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
368
|
+
# Uri, Body, Query string parameters
|
369
|
+
def self.transcode_get_folder_intelligence_config_request request_pb
|
370
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
371
|
+
.with_bindings(
|
372
|
+
uri_method: :get,
|
373
|
+
uri_template: "/v2/{name}",
|
374
|
+
matches: [
|
375
|
+
["name", %r{^folders/[^/]+/locations/[^/]+/intelligenceConfig/?$}, false]
|
376
|
+
]
|
377
|
+
)
|
378
|
+
transcoder.transcode request_pb
|
379
|
+
end
|
380
|
+
|
381
|
+
##
|
382
|
+
# @private
|
383
|
+
#
|
384
|
+
# GRPC transcoding helper method for the update_folder_intelligence_config REST call
|
385
|
+
#
|
386
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::UpdateFolderIntelligenceConfigRequest]
|
387
|
+
# A request object representing the call parameters. Required.
|
388
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
389
|
+
# Uri, Body, Query string parameters
|
390
|
+
def self.transcode_update_folder_intelligence_config_request request_pb
|
391
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
392
|
+
.with_bindings(
|
393
|
+
uri_method: :patch,
|
394
|
+
uri_template: "/v2/{intelligence_config.name}",
|
395
|
+
body: "intelligence_config",
|
396
|
+
matches: [
|
397
|
+
["intelligence_config.name", %r{^folders/[^/]+/locations/[^/]+/intelligenceConfig/?$}, false]
|
398
|
+
]
|
399
|
+
)
|
400
|
+
transcoder.transcode request_pb
|
401
|
+
end
|
402
|
+
|
403
|
+
##
|
404
|
+
# @private
|
405
|
+
#
|
406
|
+
# GRPC transcoding helper method for the get_organization_intelligence_config REST call
|
407
|
+
#
|
408
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::GetOrganizationIntelligenceConfigRequest]
|
409
|
+
# A request object representing the call parameters. Required.
|
410
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
411
|
+
# Uri, Body, Query string parameters
|
412
|
+
def self.transcode_get_organization_intelligence_config_request request_pb
|
413
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
414
|
+
.with_bindings(
|
415
|
+
uri_method: :get,
|
416
|
+
uri_template: "/v2/{name}",
|
417
|
+
matches: [
|
418
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/intelligenceConfig/?$}, false]
|
419
|
+
]
|
420
|
+
)
|
421
|
+
transcoder.transcode request_pb
|
422
|
+
end
|
423
|
+
|
424
|
+
##
|
425
|
+
# @private
|
426
|
+
#
|
427
|
+
# GRPC transcoding helper method for the update_organization_intelligence_config REST call
|
428
|
+
#
|
429
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::UpdateOrganizationIntelligenceConfigRequest]
|
430
|
+
# A request object representing the call parameters. Required.
|
431
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
432
|
+
# Uri, Body, Query string parameters
|
433
|
+
def self.transcode_update_organization_intelligence_config_request request_pb
|
434
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
435
|
+
.with_bindings(
|
436
|
+
uri_method: :patch,
|
437
|
+
uri_template: "/v2/{intelligence_config.name}",
|
438
|
+
body: "intelligence_config",
|
439
|
+
matches: [
|
440
|
+
["intelligence_config.name", %r{^organizations/[^/]+/locations/[^/]+/intelligenceConfig/?$}, false]
|
441
|
+
]
|
442
|
+
)
|
443
|
+
transcoder.transcode request_pb
|
444
|
+
end
|
445
|
+
end
|
446
|
+
end
|
447
|
+
end
|
448
|
+
end
|
449
|
+
end
|
450
|
+
end
|
451
|
+
end
|
452
|
+
end
|
@@ -0,0 +1,54 @@
|
|
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/storage/control/v2/version"
|
24
|
+
|
25
|
+
require "google/cloud/storage/control/v2/storage_control/credentials"
|
26
|
+
require "google/cloud/storage/control/v2/storage_control/paths"
|
27
|
+
require "google/cloud/storage/control/v2/storage_control/rest/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module Storage
|
32
|
+
module Control
|
33
|
+
module V2
|
34
|
+
##
|
35
|
+
# StorageControl service includes selected control plane operations.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a REST client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/storage/control/v2/storage_control/rest"
|
40
|
+
# client = ::Google::Cloud::Storage::Control::V2::StorageControl::Rest::Client.new
|
41
|
+
#
|
42
|
+
module StorageControl
|
43
|
+
# Client for the REST transport
|
44
|
+
module Rest
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
54
|
+
require "google/cloud/storage/control/v2/storage_control/rest/helpers" if ::File.file? helper_path
|
@@ -26,6 +26,7 @@ require "google/cloud/storage/control/v2/storage_control/credentials"
|
|
26
26
|
require "google/cloud/storage/control/v2/storage_control/paths"
|
27
27
|
require "google/cloud/storage/control/v2/storage_control/operations"
|
28
28
|
require "google/cloud/storage/control/v2/storage_control/client"
|
29
|
+
require "google/cloud/storage/control/v2/storage_control/rest"
|
29
30
|
|
30
31
|
module Google
|
31
32
|
module Cloud
|
@@ -40,6 +41,11 @@ module Google
|
|
40
41
|
# require "google/cloud/storage/control/v2/storage_control"
|
41
42
|
# client = ::Google::Cloud::Storage::Control::V2::StorageControl::Client.new
|
42
43
|
#
|
44
|
+
# @example Load this service and instantiate a REST client
|
45
|
+
#
|
46
|
+
# require "google/cloud/storage/control/v2/storage_control/rest"
|
47
|
+
# client = ::Google::Cloud::Storage::Control::V2::StorageControl::Rest::Client.new
|
48
|
+
#
|
43
49
|
module StorageControl
|
44
50
|
end
|
45
51
|
end
|
@@ -31,6 +31,11 @@ module Google
|
|
31
31
|
# require "google/cloud/storage/control/v2"
|
32
32
|
# client = ::Google::Cloud::Storage::Control::V2::StorageControl::Client.new
|
33
33
|
#
|
34
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
35
|
+
#
|
36
|
+
# require "google/cloud/storage/control/v2"
|
37
|
+
# client = ::Google::Cloud::Storage::Control::V2::StorageControl::Rest::Client.new
|
38
|
+
#
|
34
39
|
module V2
|
35
40
|
end
|
36
41
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-storage-control-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,11 +57,15 @@ files:
|
|
57
57
|
- README.md
|
58
58
|
- lib/google-cloud-storage-control-v2.rb
|
59
59
|
- lib/google/cloud/storage/control/v2.rb
|
60
|
+
- lib/google/cloud/storage/control/v2/rest.rb
|
60
61
|
- lib/google/cloud/storage/control/v2/storage_control.rb
|
61
62
|
- lib/google/cloud/storage/control/v2/storage_control/client.rb
|
62
63
|
- lib/google/cloud/storage/control/v2/storage_control/credentials.rb
|
63
64
|
- lib/google/cloud/storage/control/v2/storage_control/operations.rb
|
64
65
|
- lib/google/cloud/storage/control/v2/storage_control/paths.rb
|
66
|
+
- lib/google/cloud/storage/control/v2/storage_control/rest.rb
|
67
|
+
- lib/google/cloud/storage/control/v2/storage_control/rest/client.rb
|
68
|
+
- lib/google/cloud/storage/control/v2/storage_control/rest/service_stub.rb
|
65
69
|
- lib/google/cloud/storage/control/v2/version.rb
|
66
70
|
- lib/google/storage/control/v2/storage_control_pb.rb
|
67
71
|
- lib/google/storage/control/v2/storage_control_services_pb.rb
|
@@ -98,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
102
|
- !ruby/object:Gem::Version
|
99
103
|
version: '0'
|
100
104
|
requirements: []
|
101
|
-
rubygems_version: 3.6.
|
105
|
+
rubygems_version: 3.6.9
|
102
106
|
specification_version: 4
|
103
107
|
summary: The Storage Control API lets you perform metadata-specific, control plane,
|
104
108
|
and long-running operations. The Storage Control API creates one space to perform
|