google-apis-blockchainnodeengine_v1 0.1.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.
@@ -0,0 +1,496 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module BlockchainnodeengineV1
23
+ # Blockchain Node Engine API
24
+ #
25
+ #
26
+ #
27
+ # @example
28
+ # require 'google/apis/blockchainnodeengine_v1'
29
+ #
30
+ # Blockchainnodeengine = Google::Apis::BlockchainnodeengineV1 # Alias the module
31
+ # service = Blockchainnodeengine::BlockchainNodeEngineService.new
32
+ #
33
+ # @see https://cloud.google.com/blockchain-node-engine
34
+ class BlockchainNodeEngineService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://blockchainnodeengine.googleapis.com/', '',
47
+ client_name: 'google-apis-blockchainnodeengine_v1',
48
+ client_version: Google::Apis::BlockchainnodeengineV1::GEM_VERSION)
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Gets information about a location.
53
+ # @param [String] name
54
+ # Resource name for the location.
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
57
+ # @param [String] quota_user
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [Google::Apis::RequestOptions] options
61
+ # Request-specific options
62
+ #
63
+ # @yield [result, err] Result & error if block supplied
64
+ # @yieldparam result [Google::Apis::BlockchainnodeengineV1::Location] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::BlockchainnodeengineV1::Location]
68
+ #
69
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
72
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:get, 'v1/{+name}', options)
74
+ command.response_representation = Google::Apis::BlockchainnodeengineV1::Location::Representation
75
+ command.response_class = Google::Apis::BlockchainnodeengineV1::Location
76
+ command.params['name'] = name unless name.nil?
77
+ command.query['fields'] = fields unless fields.nil?
78
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
79
+ execute_or_queue_command(command, &block)
80
+ end
81
+
82
+ # Lists information about the supported locations for this service.
83
+ # @param [String] name
84
+ # The resource that owns the locations collection, if applicable.
85
+ # @param [String] filter
86
+ # A filter to narrow down results to a preferred subset. The filtering language
87
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
88
+ # in [AIP-160](https://google.aip.dev/160).
89
+ # @param [Fixnum] page_size
90
+ # The maximum number of results to return. If not set, the service selects a
91
+ # default.
92
+ # @param [String] page_token
93
+ # A page token received from the `next_page_token` field in the response. Send
94
+ # that page token to receive the subsequent page.
95
+ # @param [String] fields
96
+ # Selector specifying which fields to include in a partial response.
97
+ # @param [String] quota_user
98
+ # Available to use for quota purposes for server-side applications. Can be any
99
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
100
+ # @param [Google::Apis::RequestOptions] options
101
+ # Request-specific options
102
+ #
103
+ # @yield [result, err] Result & error if block supplied
104
+ # @yieldparam result [Google::Apis::BlockchainnodeengineV1::ListLocationsResponse] parsed result object
105
+ # @yieldparam err [StandardError] error object if request failed
106
+ #
107
+ # @return [Google::Apis::BlockchainnodeengineV1::ListLocationsResponse]
108
+ #
109
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
112
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
113
+ command = make_simple_command(:get, 'v1/{+name}/locations', options)
114
+ command.response_representation = Google::Apis::BlockchainnodeengineV1::ListLocationsResponse::Representation
115
+ command.response_class = Google::Apis::BlockchainnodeengineV1::ListLocationsResponse
116
+ command.params['name'] = name unless name.nil?
117
+ command.query['filter'] = filter unless filter.nil?
118
+ command.query['pageSize'] = page_size unless page_size.nil?
119
+ command.query['pageToken'] = page_token unless page_token.nil?
120
+ command.query['fields'] = fields unless fields.nil?
121
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
122
+ execute_or_queue_command(command, &block)
123
+ end
124
+
125
+ # Creates a new blockchain node in a given project and location.
126
+ # @param [String] parent
127
+ # Required. Value for parent.
128
+ # @param [Google::Apis::BlockchainnodeengineV1::BlockchainNode] blockchain_node_object
129
+ # @param [String] blockchain_node_id
130
+ # Required. ID of the requesting object.
131
+ # @param [String] request_id
132
+ # Optional. An optional request ID to identify requests. Specify a unique
133
+ # request ID so that if you must retry your request, the server will know to
134
+ # ignore the request if it has already been completed. The server will guarantee
135
+ # that for at least 60 minutes since the first request. For example, consider a
136
+ # situation where you make an initial request and the request times out. If you
137
+ # make the request again with the same request ID, the server can check if
138
+ # original operation with the same request ID was received, and if so, will
139
+ # ignore the second request. This prevents clients from accidentally creating
140
+ # duplicate commitments. The request ID must be a valid UUID with the exception
141
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
142
+ # @param [String] fields
143
+ # Selector specifying which fields to include in a partial response.
144
+ # @param [String] quota_user
145
+ # Available to use for quota purposes for server-side applications. Can be any
146
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
147
+ # @param [Google::Apis::RequestOptions] options
148
+ # Request-specific options
149
+ #
150
+ # @yield [result, err] Result & error if block supplied
151
+ # @yieldparam result [Google::Apis::BlockchainnodeengineV1::Operation] parsed result object
152
+ # @yieldparam err [StandardError] error object if request failed
153
+ #
154
+ # @return [Google::Apis::BlockchainnodeengineV1::Operation]
155
+ #
156
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
157
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
158
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
159
+ def create_project_location_blockchain_node(parent, blockchain_node_object = nil, blockchain_node_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
160
+ command = make_simple_command(:post, 'v1/{+parent}/blockchainNodes', options)
161
+ command.request_representation = Google::Apis::BlockchainnodeengineV1::BlockchainNode::Representation
162
+ command.request_object = blockchain_node_object
163
+ command.response_representation = Google::Apis::BlockchainnodeengineV1::Operation::Representation
164
+ command.response_class = Google::Apis::BlockchainnodeengineV1::Operation
165
+ command.params['parent'] = parent unless parent.nil?
166
+ command.query['blockchainNodeId'] = blockchain_node_id unless blockchain_node_id.nil?
167
+ command.query['requestId'] = request_id unless request_id.nil?
168
+ command.query['fields'] = fields unless fields.nil?
169
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
170
+ execute_or_queue_command(command, &block)
171
+ end
172
+
173
+ # Deletes a single blockchain node.
174
+ # @param [String] name
175
+ # Required. The fully qualified name of the blockchain node to delete. e.g. `
176
+ # projects/my-project/locations/us-central1/blockchainNodes/my-node`.
177
+ # @param [String] request_id
178
+ # Optional. An optional request ID to identify requests. Specify a unique
179
+ # request ID so that if you must retry your request, the server will know to
180
+ # ignore the request if it has already been completed. The server will guarantee
181
+ # that for at least 60 minutes after the first request. For example, consider a
182
+ # situation where you make an initial request and the request times out. If you
183
+ # make the request again with the same request ID, the server can check if
184
+ # original operation with the same request ID was received, and if so, will
185
+ # ignore the second request. This prevents clients from accidentally creating
186
+ # duplicate commitments. The request ID must be a valid UUID with the exception
187
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
188
+ # @param [String] fields
189
+ # Selector specifying which fields to include in a partial response.
190
+ # @param [String] quota_user
191
+ # Available to use for quota purposes for server-side applications. Can be any
192
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
193
+ # @param [Google::Apis::RequestOptions] options
194
+ # Request-specific options
195
+ #
196
+ # @yield [result, err] Result & error if block supplied
197
+ # @yieldparam result [Google::Apis::BlockchainnodeengineV1::Operation] parsed result object
198
+ # @yieldparam err [StandardError] error object if request failed
199
+ #
200
+ # @return [Google::Apis::BlockchainnodeengineV1::Operation]
201
+ #
202
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
205
+ def delete_project_location_blockchain_node(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
206
+ command = make_simple_command(:delete, 'v1/{+name}', options)
207
+ command.response_representation = Google::Apis::BlockchainnodeengineV1::Operation::Representation
208
+ command.response_class = Google::Apis::BlockchainnodeengineV1::Operation
209
+ command.params['name'] = name unless name.nil?
210
+ command.query['requestId'] = request_id unless request_id.nil?
211
+ command.query['fields'] = fields unless fields.nil?
212
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
213
+ execute_or_queue_command(command, &block)
214
+ end
215
+
216
+ # Gets details of a single blockchain node.
217
+ # @param [String] name
218
+ # Required. The fully qualified name of the blockchain node to fetch. e.g. `
219
+ # projects/my-project/locations/us-central1/blockchainNodes/my-node`.
220
+ # @param [String] fields
221
+ # Selector specifying which fields to include in a partial response.
222
+ # @param [String] quota_user
223
+ # Available to use for quota purposes for server-side applications. Can be any
224
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
225
+ # @param [Google::Apis::RequestOptions] options
226
+ # Request-specific options
227
+ #
228
+ # @yield [result, err] Result & error if block supplied
229
+ # @yieldparam result [Google::Apis::BlockchainnodeengineV1::BlockchainNode] parsed result object
230
+ # @yieldparam err [StandardError] error object if request failed
231
+ #
232
+ # @return [Google::Apis::BlockchainnodeengineV1::BlockchainNode]
233
+ #
234
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
235
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
236
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
237
+ def get_project_location_blockchain_node(name, fields: nil, quota_user: nil, options: nil, &block)
238
+ command = make_simple_command(:get, 'v1/{+name}', options)
239
+ command.response_representation = Google::Apis::BlockchainnodeengineV1::BlockchainNode::Representation
240
+ command.response_class = Google::Apis::BlockchainnodeengineV1::BlockchainNode
241
+ command.params['name'] = name unless name.nil?
242
+ command.query['fields'] = fields unless fields.nil?
243
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
244
+ execute_or_queue_command(command, &block)
245
+ end
246
+
247
+ # Lists blockchain nodes in a given project and location.
248
+ # @param [String] parent
249
+ # Required. Parent value for `ListNodesRequest`.
250
+ # @param [String] filter
251
+ # Filtering results.
252
+ # @param [String] order_by
253
+ # Hint for how to order the results.
254
+ # @param [Fixnum] page_size
255
+ # Requested page size. Server may return fewer items than requested. If
256
+ # unspecified, server will pick an appropriate default.
257
+ # @param [String] page_token
258
+ # A token identifying a page of results the server should return.
259
+ # @param [String] fields
260
+ # Selector specifying which fields to include in a partial response.
261
+ # @param [String] quota_user
262
+ # Available to use for quota purposes for server-side applications. Can be any
263
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
264
+ # @param [Google::Apis::RequestOptions] options
265
+ # Request-specific options
266
+ #
267
+ # @yield [result, err] Result & error if block supplied
268
+ # @yieldparam result [Google::Apis::BlockchainnodeengineV1::ListBlockchainNodesResponse] parsed result object
269
+ # @yieldparam err [StandardError] error object if request failed
270
+ #
271
+ # @return [Google::Apis::BlockchainnodeengineV1::ListBlockchainNodesResponse]
272
+ #
273
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
274
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
275
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
276
+ def list_project_location_blockchain_nodes(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
277
+ command = make_simple_command(:get, 'v1/{+parent}/blockchainNodes', options)
278
+ command.response_representation = Google::Apis::BlockchainnodeengineV1::ListBlockchainNodesResponse::Representation
279
+ command.response_class = Google::Apis::BlockchainnodeengineV1::ListBlockchainNodesResponse
280
+ command.params['parent'] = parent unless parent.nil?
281
+ command.query['filter'] = filter unless filter.nil?
282
+ command.query['orderBy'] = order_by unless order_by.nil?
283
+ command.query['pageSize'] = page_size unless page_size.nil?
284
+ command.query['pageToken'] = page_token unless page_token.nil?
285
+ command.query['fields'] = fields unless fields.nil?
286
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
287
+ execute_or_queue_command(command, &block)
288
+ end
289
+
290
+ # Updates the parameters of a single blockchain node.
291
+ # @param [String] name
292
+ # Output only. The fully qualified name of the blockchain node. e.g. `projects/
293
+ # my-project/locations/us-central1/blockchainNodes/my-node`.
294
+ # @param [Google::Apis::BlockchainnodeengineV1::BlockchainNode] blockchain_node_object
295
+ # @param [String] request_id
296
+ # Optional. An optional request ID to identify requests. Specify a unique
297
+ # request ID so that if you must retry your request, the server will know to
298
+ # ignore the request if it has already been completed. The server will guarantee
299
+ # that for at least 60 minutes since the first request. For example, consider a
300
+ # situation where you make an initial request and the request times out. If you
301
+ # make the request again with the same request ID, the server can check if
302
+ # original operation with the same request ID was received, and if so, will
303
+ # ignore the second request. This prevents clients from accidentally creating
304
+ # duplicate commitments. The request ID must be a valid UUID with the exception
305
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
306
+ # @param [String] update_mask
307
+ # Required. Field mask is used to specify the fields to be overwritten in the
308
+ # Blockchain node resource by the update. The fields specified in the `
309
+ # update_mask` are relative to the resource, not the full request. A field will
310
+ # be overwritten if it is in the mask. If the user does not provide a mask then
311
+ # all fields will be overwritten.
312
+ # @param [String] fields
313
+ # Selector specifying which fields to include in a partial response.
314
+ # @param [String] quota_user
315
+ # Available to use for quota purposes for server-side applications. Can be any
316
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
317
+ # @param [Google::Apis::RequestOptions] options
318
+ # Request-specific options
319
+ #
320
+ # @yield [result, err] Result & error if block supplied
321
+ # @yieldparam result [Google::Apis::BlockchainnodeengineV1::Operation] parsed result object
322
+ # @yieldparam err [StandardError] error object if request failed
323
+ #
324
+ # @return [Google::Apis::BlockchainnodeengineV1::Operation]
325
+ #
326
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
327
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
328
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
329
+ def patch_project_location_blockchain_node(name, blockchain_node_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
330
+ command = make_simple_command(:patch, 'v1/{+name}', options)
331
+ command.request_representation = Google::Apis::BlockchainnodeengineV1::BlockchainNode::Representation
332
+ command.request_object = blockchain_node_object
333
+ command.response_representation = Google::Apis::BlockchainnodeengineV1::Operation::Representation
334
+ command.response_class = Google::Apis::BlockchainnodeengineV1::Operation
335
+ command.params['name'] = name unless name.nil?
336
+ command.query['requestId'] = request_id unless request_id.nil?
337
+ command.query['updateMask'] = update_mask unless update_mask.nil?
338
+ command.query['fields'] = fields unless fields.nil?
339
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
340
+ execute_or_queue_command(command, &block)
341
+ end
342
+
343
+ # Starts asynchronous cancellation on a long-running operation. The server makes
344
+ # a best effort to cancel the operation, but success is not guaranteed. If the
345
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
346
+ # Clients can use Operations.GetOperation or other methods to check whether the
347
+ # cancellation succeeded or whether the operation completed despite cancellation.
348
+ # On successful cancellation, the operation is not deleted; instead, it becomes
349
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
350
+ # corresponding to `Code.CANCELLED`.
351
+ # @param [String] name
352
+ # The name of the operation resource to be cancelled.
353
+ # @param [Google::Apis::BlockchainnodeengineV1::CancelOperationRequest] cancel_operation_request_object
354
+ # @param [String] fields
355
+ # Selector specifying which fields to include in a partial response.
356
+ # @param [String] quota_user
357
+ # Available to use for quota purposes for server-side applications. Can be any
358
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
359
+ # @param [Google::Apis::RequestOptions] options
360
+ # Request-specific options
361
+ #
362
+ # @yield [result, err] Result & error if block supplied
363
+ # @yieldparam result [Google::Apis::BlockchainnodeengineV1::GoogleProtobufEmpty] parsed result object
364
+ # @yieldparam err [StandardError] error object if request failed
365
+ #
366
+ # @return [Google::Apis::BlockchainnodeengineV1::GoogleProtobufEmpty]
367
+ #
368
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
369
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
370
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
371
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
372
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
373
+ command.request_representation = Google::Apis::BlockchainnodeengineV1::CancelOperationRequest::Representation
374
+ command.request_object = cancel_operation_request_object
375
+ command.response_representation = Google::Apis::BlockchainnodeengineV1::GoogleProtobufEmpty::Representation
376
+ command.response_class = Google::Apis::BlockchainnodeengineV1::GoogleProtobufEmpty
377
+ command.params['name'] = name unless name.nil?
378
+ command.query['fields'] = fields unless fields.nil?
379
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
380
+ execute_or_queue_command(command, &block)
381
+ end
382
+
383
+ # Deletes a long-running operation. This method indicates that the client is no
384
+ # longer interested in the operation result. It does not cancel the operation.
385
+ # If the server doesn't support this method, it returns `google.rpc.Code.
386
+ # UNIMPLEMENTED`.
387
+ # @param [String] name
388
+ # The name of the operation resource to be deleted.
389
+ # @param [String] fields
390
+ # Selector specifying which fields to include in a partial response.
391
+ # @param [String] quota_user
392
+ # Available to use for quota purposes for server-side applications. Can be any
393
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
394
+ # @param [Google::Apis::RequestOptions] options
395
+ # Request-specific options
396
+ #
397
+ # @yield [result, err] Result & error if block supplied
398
+ # @yieldparam result [Google::Apis::BlockchainnodeengineV1::GoogleProtobufEmpty] parsed result object
399
+ # @yieldparam err [StandardError] error object if request failed
400
+ #
401
+ # @return [Google::Apis::BlockchainnodeengineV1::GoogleProtobufEmpty]
402
+ #
403
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
404
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
405
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
406
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
407
+ command = make_simple_command(:delete, 'v1/{+name}', options)
408
+ command.response_representation = Google::Apis::BlockchainnodeengineV1::GoogleProtobufEmpty::Representation
409
+ command.response_class = Google::Apis::BlockchainnodeengineV1::GoogleProtobufEmpty
410
+ command.params['name'] = name unless name.nil?
411
+ command.query['fields'] = fields unless fields.nil?
412
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
413
+ execute_or_queue_command(command, &block)
414
+ end
415
+
416
+ # Gets the latest state of a long-running operation. Clients can use this method
417
+ # to poll the operation result at intervals as recommended by the API service.
418
+ # @param [String] name
419
+ # The name of the operation resource.
420
+ # @param [String] fields
421
+ # Selector specifying which fields to include in a partial response.
422
+ # @param [String] quota_user
423
+ # Available to use for quota purposes for server-side applications. Can be any
424
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
425
+ # @param [Google::Apis::RequestOptions] options
426
+ # Request-specific options
427
+ #
428
+ # @yield [result, err] Result & error if block supplied
429
+ # @yieldparam result [Google::Apis::BlockchainnodeengineV1::Operation] parsed result object
430
+ # @yieldparam err [StandardError] error object if request failed
431
+ #
432
+ # @return [Google::Apis::BlockchainnodeengineV1::Operation]
433
+ #
434
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
435
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
436
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
437
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
438
+ command = make_simple_command(:get, 'v1/{+name}', options)
439
+ command.response_representation = Google::Apis::BlockchainnodeengineV1::Operation::Representation
440
+ command.response_class = Google::Apis::BlockchainnodeengineV1::Operation
441
+ command.params['name'] = name unless name.nil?
442
+ command.query['fields'] = fields unless fields.nil?
443
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
444
+ execute_or_queue_command(command, &block)
445
+ end
446
+
447
+ # Lists operations that match the specified filter in the request. If the server
448
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
449
+ # @param [String] name
450
+ # The name of the operation's parent resource.
451
+ # @param [String] filter
452
+ # The standard list filter.
453
+ # @param [Fixnum] page_size
454
+ # The standard list page size.
455
+ # @param [String] page_token
456
+ # The standard list page token.
457
+ # @param [String] fields
458
+ # Selector specifying which fields to include in a partial response.
459
+ # @param [String] quota_user
460
+ # Available to use for quota purposes for server-side applications. Can be any
461
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
462
+ # @param [Google::Apis::RequestOptions] options
463
+ # Request-specific options
464
+ #
465
+ # @yield [result, err] Result & error if block supplied
466
+ # @yieldparam result [Google::Apis::BlockchainnodeengineV1::ListOperationsResponse] parsed result object
467
+ # @yieldparam err [StandardError] error object if request failed
468
+ #
469
+ # @return [Google::Apis::BlockchainnodeengineV1::ListOperationsResponse]
470
+ #
471
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
472
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
473
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
474
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
475
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
476
+ command.response_representation = Google::Apis::BlockchainnodeengineV1::ListOperationsResponse::Representation
477
+ command.response_class = Google::Apis::BlockchainnodeengineV1::ListOperationsResponse
478
+ command.params['name'] = name unless name.nil?
479
+ command.query['filter'] = filter unless filter.nil?
480
+ command.query['pageSize'] = page_size unless page_size.nil?
481
+ command.query['pageToken'] = page_token unless page_token.nil?
482
+ command.query['fields'] = fields unless fields.nil?
483
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
484
+ execute_or_queue_command(command, &block)
485
+ end
486
+
487
+ protected
488
+
489
+ def apply_command_defaults(command)
490
+ command.query['key'] = key unless key.nil?
491
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
492
+ end
493
+ end
494
+ end
495
+ end
496
+ end
@@ -0,0 +1,36 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/blockchainnodeengine_v1/service.rb'
16
+ require 'google/apis/blockchainnodeengine_v1/classes.rb'
17
+ require 'google/apis/blockchainnodeengine_v1/representations.rb'
18
+ require 'google/apis/blockchainnodeengine_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Blockchain Node Engine API
23
+ #
24
+ #
25
+ #
26
+ # @see https://cloud.google.com/blockchain-node-engine
27
+ module BlockchainnodeengineV1
28
+ # Version of the Blockchain Node Engine API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1'
31
+
32
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/blockchainnodeengine_v1"
metadata ADDED
@@ -0,0 +1,82 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google-apis-blockchainnodeengine_v1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Google LLC
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-07-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: google-apis-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.11.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 0.11.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 2.a
33
+ description: This is the simple REST client for Blockchain Node Engine API V1. Simple
34
+ REST clients are Ruby client libraries that provide access to Google services via
35
+ their HTTP REST API endpoints. These libraries are generated and updated automatically
36
+ based on the discovery documents published by the service, and they handle most
37
+ concerns such as authentication, pagination, retry, timeouts, and logging. You can
38
+ use this client to access the Blockchain Node Engine API, but note that some services
39
+ may provide a separate modern client that is easier to use.
40
+ email: googleapis-packages@google.com
41
+ executables: []
42
+ extensions: []
43
+ extra_rdoc_files: []
44
+ files:
45
+ - ".yardopts"
46
+ - CHANGELOG.md
47
+ - LICENSE.md
48
+ - OVERVIEW.md
49
+ - lib/google-apis-blockchainnodeengine_v1.rb
50
+ - lib/google/apis/blockchainnodeengine_v1.rb
51
+ - lib/google/apis/blockchainnodeengine_v1/classes.rb
52
+ - lib/google/apis/blockchainnodeengine_v1/gem_version.rb
53
+ - lib/google/apis/blockchainnodeengine_v1/representations.rb
54
+ - lib/google/apis/blockchainnodeengine_v1/service.rb
55
+ homepage: https://github.com/google/google-api-ruby-client
56
+ licenses:
57
+ - Apache-2.0
58
+ metadata:
59
+ bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-blockchainnodeengine_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-blockchainnodeengine_v1/v0.1.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-blockchainnodeengine_v1
63
+ post_install_message:
64
+ rdoc_options: []
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '2.5'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ requirements: []
78
+ rubygems_version: 3.4.2
79
+ signing_key:
80
+ specification_version: 4
81
+ summary: Simple REST client for Blockchain Node Engine API V1
82
+ test_files: []