google-cloud-storage-control-v2 1.12.0 → 1.13.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/storage_control/client.rb +578 -29
- data/lib/google/cloud/storage/control/v2/storage_control/paths.rb +19 -0
- data/lib/google/cloud/storage/control/v2/storage_control/rest/client.rb +784 -17
- data/lib/google/cloud/storage/control/v2/storage_control/rest/operations.rb +929 -0
- data/lib/google/cloud/storage/control/v2/storage_control/rest/service_stub.rb +430 -0
- data/lib/google/cloud/storage/control/v2/storage_control/rest.rb +1 -0
- data/lib/google/cloud/storage/control/v2/version.rb +1 -1
- data/lib/google/storage/control/v2/storage_control_pb.rb +13 -1
- data/lib/google/storage/control/v2/storage_control_services_pb.rb +14 -3
- data/proto_docs/google/storage/control/v2/storage_control.rb +314 -44
- metadata +2 -1
|
@@ -74,6 +74,286 @@ module Google
|
|
|
74
74
|
stub ? @client_stub.stub_logger : @client_stub.logger
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
+
##
|
|
78
|
+
# Baseline implementation for the create_folder REST call
|
|
79
|
+
#
|
|
80
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::CreateFolderRequest]
|
|
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::Folder]
|
|
87
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
88
|
+
#
|
|
89
|
+
# @return [::Google::Cloud::Storage::Control::V2::Folder]
|
|
90
|
+
# A result object deserialized from the server's reply
|
|
91
|
+
def create_folder 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_create_folder_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: "create_folder",
|
|
107
|
+
options: options
|
|
108
|
+
)
|
|
109
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
110
|
+
result = ::Google::Cloud::Storage::Control::V2::Folder.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 delete_folder REST call
|
|
119
|
+
#
|
|
120
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::DeleteFolderRequest]
|
|
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::Protobuf::Empty]
|
|
127
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
128
|
+
#
|
|
129
|
+
# @return [::Google::Protobuf::Empty]
|
|
130
|
+
# A result object deserialized from the server's reply
|
|
131
|
+
def delete_folder 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_delete_folder_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: "delete_folder",
|
|
147
|
+
options: options
|
|
148
|
+
)
|
|
149
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
150
|
+
result = ::Google::Protobuf::Empty.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 REST call
|
|
159
|
+
#
|
|
160
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::GetFolderRequest]
|
|
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::Folder]
|
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
168
|
+
#
|
|
169
|
+
# @return [::Google::Cloud::Storage::Control::V2::Folder]
|
|
170
|
+
# A result object deserialized from the server's reply
|
|
171
|
+
def get_folder 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_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",
|
|
187
|
+
options: options
|
|
188
|
+
)
|
|
189
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
190
|
+
result = ::Google::Cloud::Storage::Control::V2::Folder.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 list_folders REST call
|
|
199
|
+
#
|
|
200
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::ListFoldersRequest]
|
|
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::ListFoldersResponse]
|
|
207
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
208
|
+
#
|
|
209
|
+
# @return [::Google::Cloud::Storage::Control::V2::ListFoldersResponse]
|
|
210
|
+
# A result object deserialized from the server's reply
|
|
211
|
+
def list_folders 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_list_folders_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: "list_folders",
|
|
227
|
+
options: options
|
|
228
|
+
)
|
|
229
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
230
|
+
result = ::Google::Cloud::Storage::Control::V2::ListFoldersResponse.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 rename_folder REST call
|
|
239
|
+
#
|
|
240
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::RenameFolderRequest]
|
|
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::Longrunning::Operation]
|
|
247
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
248
|
+
#
|
|
249
|
+
# @return [::Google::Longrunning::Operation]
|
|
250
|
+
# A result object deserialized from the server's reply
|
|
251
|
+
def rename_folder 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_rename_folder_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: "rename_folder",
|
|
267
|
+
options: options
|
|
268
|
+
)
|
|
269
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
270
|
+
result = ::Google::Longrunning::Operation.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 delete_folder_recursive REST call
|
|
279
|
+
#
|
|
280
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::DeleteFolderRecursiveRequest]
|
|
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::Longrunning::Operation]
|
|
287
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
288
|
+
#
|
|
289
|
+
# @return [::Google::Longrunning::Operation]
|
|
290
|
+
# A result object deserialized from the server's reply
|
|
291
|
+
def delete_folder_recursive 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_delete_folder_recursive_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: "delete_folder_recursive",
|
|
307
|
+
options: options
|
|
308
|
+
)
|
|
309
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
310
|
+
result = ::Google::Longrunning::Operation.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
|
+
# Baseline implementation for the get_storage_layout REST call
|
|
319
|
+
#
|
|
320
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::GetStorageLayoutRequest]
|
|
321
|
+
# A request object representing the call parameters. Required.
|
|
322
|
+
# @param options [::Gapic::CallOptions]
|
|
323
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
324
|
+
#
|
|
325
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
326
|
+
# @yieldparam result [::Google::Cloud::Storage::Control::V2::StorageLayout]
|
|
327
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
328
|
+
#
|
|
329
|
+
# @return [::Google::Cloud::Storage::Control::V2::StorageLayout]
|
|
330
|
+
# A result object deserialized from the server's reply
|
|
331
|
+
def get_storage_layout request_pb, options = nil
|
|
332
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
333
|
+
|
|
334
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_storage_layout_request request_pb
|
|
335
|
+
query_string_params = if query_string_params.any?
|
|
336
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
337
|
+
else
|
|
338
|
+
{}
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
response = @client_stub.make_http_request(
|
|
342
|
+
verb,
|
|
343
|
+
uri: uri,
|
|
344
|
+
body: body || "",
|
|
345
|
+
params: query_string_params,
|
|
346
|
+
method_name: "get_storage_layout",
|
|
347
|
+
options: options
|
|
348
|
+
)
|
|
349
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
350
|
+
result = ::Google::Cloud::Storage::Control::V2::StorageLayout.decode_json response.body, ignore_unknown_fields: true
|
|
351
|
+
catch :response do
|
|
352
|
+
yield result, operation if block_given?
|
|
353
|
+
result
|
|
354
|
+
end
|
|
355
|
+
end
|
|
356
|
+
|
|
77
357
|
##
|
|
78
358
|
# Baseline implementation for the get_project_intelligence_config REST call
|
|
79
359
|
#
|
|
@@ -514,6 +794,156 @@ module Google
|
|
|
514
794
|
end
|
|
515
795
|
end
|
|
516
796
|
|
|
797
|
+
##
|
|
798
|
+
# @private
|
|
799
|
+
#
|
|
800
|
+
# GRPC transcoding helper method for the create_folder REST call
|
|
801
|
+
#
|
|
802
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::CreateFolderRequest]
|
|
803
|
+
# A request object representing the call parameters. Required.
|
|
804
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
805
|
+
# Uri, Body, Query string parameters
|
|
806
|
+
def self.transcode_create_folder_request request_pb
|
|
807
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
808
|
+
.with_bindings(
|
|
809
|
+
uri_method: :post,
|
|
810
|
+
uri_template: "/v2/{parent}/folders",
|
|
811
|
+
body: "folder",
|
|
812
|
+
matches: [
|
|
813
|
+
["parent", %r{^projects/[^/]+/buckets/[^/]+/?$}, false]
|
|
814
|
+
]
|
|
815
|
+
)
|
|
816
|
+
transcoder.transcode request_pb
|
|
817
|
+
end
|
|
818
|
+
|
|
819
|
+
##
|
|
820
|
+
# @private
|
|
821
|
+
#
|
|
822
|
+
# GRPC transcoding helper method for the delete_folder REST call
|
|
823
|
+
#
|
|
824
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::DeleteFolderRequest]
|
|
825
|
+
# A request object representing the call parameters. Required.
|
|
826
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
827
|
+
# Uri, Body, Query string parameters
|
|
828
|
+
def self.transcode_delete_folder_request request_pb
|
|
829
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
830
|
+
.with_bindings(
|
|
831
|
+
uri_method: :delete,
|
|
832
|
+
uri_template: "/v2/{name}",
|
|
833
|
+
matches: [
|
|
834
|
+
["name", %r{^projects/[^/]+/buckets/[^/]+/folders(?:/.*)?$}, true]
|
|
835
|
+
]
|
|
836
|
+
)
|
|
837
|
+
transcoder.transcode request_pb
|
|
838
|
+
end
|
|
839
|
+
|
|
840
|
+
##
|
|
841
|
+
# @private
|
|
842
|
+
#
|
|
843
|
+
# GRPC transcoding helper method for the get_folder REST call
|
|
844
|
+
#
|
|
845
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::GetFolderRequest]
|
|
846
|
+
# A request object representing the call parameters. Required.
|
|
847
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
848
|
+
# Uri, Body, Query string parameters
|
|
849
|
+
def self.transcode_get_folder_request request_pb
|
|
850
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
851
|
+
.with_bindings(
|
|
852
|
+
uri_method: :get,
|
|
853
|
+
uri_template: "/v2/{name}",
|
|
854
|
+
matches: [
|
|
855
|
+
["name", %r{^projects/[^/]+/buckets/[^/]+/folders(?:/.*)?$}, true]
|
|
856
|
+
]
|
|
857
|
+
)
|
|
858
|
+
transcoder.transcode request_pb
|
|
859
|
+
end
|
|
860
|
+
|
|
861
|
+
##
|
|
862
|
+
# @private
|
|
863
|
+
#
|
|
864
|
+
# GRPC transcoding helper method for the list_folders REST call
|
|
865
|
+
#
|
|
866
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::ListFoldersRequest]
|
|
867
|
+
# A request object representing the call parameters. Required.
|
|
868
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
869
|
+
# Uri, Body, Query string parameters
|
|
870
|
+
def self.transcode_list_folders_request request_pb
|
|
871
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
872
|
+
.with_bindings(
|
|
873
|
+
uri_method: :get,
|
|
874
|
+
uri_template: "/v2/{parent}/folders",
|
|
875
|
+
matches: [
|
|
876
|
+
["parent", %r{^projects/[^/]+/buckets/[^/]+/?$}, false]
|
|
877
|
+
]
|
|
878
|
+
)
|
|
879
|
+
transcoder.transcode request_pb
|
|
880
|
+
end
|
|
881
|
+
|
|
882
|
+
##
|
|
883
|
+
# @private
|
|
884
|
+
#
|
|
885
|
+
# GRPC transcoding helper method for the rename_folder REST call
|
|
886
|
+
#
|
|
887
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::RenameFolderRequest]
|
|
888
|
+
# A request object representing the call parameters. Required.
|
|
889
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
890
|
+
# Uri, Body, Query string parameters
|
|
891
|
+
def self.transcode_rename_folder_request request_pb
|
|
892
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
893
|
+
.with_bindings(
|
|
894
|
+
uri_method: :post,
|
|
895
|
+
uri_template: "/v2/{name}:rename",
|
|
896
|
+
body: "*",
|
|
897
|
+
matches: [
|
|
898
|
+
["name", %r{^projects/[^/]+/buckets/[^/]+/folders(?:/.*)?$}, true]
|
|
899
|
+
]
|
|
900
|
+
)
|
|
901
|
+
transcoder.transcode request_pb
|
|
902
|
+
end
|
|
903
|
+
|
|
904
|
+
##
|
|
905
|
+
# @private
|
|
906
|
+
#
|
|
907
|
+
# GRPC transcoding helper method for the delete_folder_recursive REST call
|
|
908
|
+
#
|
|
909
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::DeleteFolderRecursiveRequest]
|
|
910
|
+
# A request object representing the call parameters. Required.
|
|
911
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
912
|
+
# Uri, Body, Query string parameters
|
|
913
|
+
def self.transcode_delete_folder_recursive_request request_pb
|
|
914
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
915
|
+
.with_bindings(
|
|
916
|
+
uri_method: :post,
|
|
917
|
+
uri_template: "/v2/{name}:deleteRecursive",
|
|
918
|
+
body: "*",
|
|
919
|
+
matches: [
|
|
920
|
+
["name", %r{^projects/[^/]+/buckets/[^/]+/folders(?:/.*)?$}, true]
|
|
921
|
+
]
|
|
922
|
+
)
|
|
923
|
+
transcoder.transcode request_pb
|
|
924
|
+
end
|
|
925
|
+
|
|
926
|
+
##
|
|
927
|
+
# @private
|
|
928
|
+
#
|
|
929
|
+
# GRPC transcoding helper method for the get_storage_layout REST call
|
|
930
|
+
#
|
|
931
|
+
# @param request_pb [::Google::Cloud::Storage::Control::V2::GetStorageLayoutRequest]
|
|
932
|
+
# A request object representing the call parameters. Required.
|
|
933
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
934
|
+
# Uri, Body, Query string parameters
|
|
935
|
+
def self.transcode_get_storage_layout_request request_pb
|
|
936
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
937
|
+
.with_bindings(
|
|
938
|
+
uri_method: :get,
|
|
939
|
+
uri_template: "/v2/{name}",
|
|
940
|
+
matches: [
|
|
941
|
+
["name", %r{^projects/[^/]+/buckets/[^/]+/storageLayout/?$}, false]
|
|
942
|
+
]
|
|
943
|
+
)
|
|
944
|
+
transcoder.transcode request_pb
|
|
945
|
+
end
|
|
946
|
+
|
|
517
947
|
##
|
|
518
948
|
# @private
|
|
519
949
|
#
|
|
@@ -24,6 +24,7 @@ require "google/cloud/storage/control/v2/version"
|
|
|
24
24
|
|
|
25
25
|
require "google/cloud/storage/control/v2/storage_control/credentials"
|
|
26
26
|
require "google/cloud/storage/control/v2/storage_control/paths"
|
|
27
|
+
require "google/cloud/storage/control/v2/storage_control/rest/operations"
|
|
27
28
|
require "google/cloud/storage/control/v2/storage_control/rest/client"
|
|
28
29
|
|
|
29
30
|
module Google
|