google-apis-blockchainnodeengine_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,265 @@
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 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module BlockchainnodeengineV1
24
+
25
+ class BlockchainNode
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class CancelOperationRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ConnectionInfo
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class EndpointInfo
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class EthereumDetails
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class EthereumEndpoints
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GethDetails
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GoogleProtobufEmpty
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ListBlockchainNodesResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ListLocationsResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ListOperationsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Location
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class Operation
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class OperationMetadata
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Status
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class BlockchainNode
116
+ # @private
117
+ class Representation < Google::Apis::Core::JsonRepresentation
118
+ property :blockchain_type, as: 'blockchainType'
119
+ property :connection_info, as: 'connectionInfo', class: Google::Apis::BlockchainnodeengineV1::ConnectionInfo, decorator: Google::Apis::BlockchainnodeengineV1::ConnectionInfo::Representation
120
+
121
+ property :create_time, as: 'createTime'
122
+ property :ethereum_details, as: 'ethereumDetails', class: Google::Apis::BlockchainnodeengineV1::EthereumDetails, decorator: Google::Apis::BlockchainnodeengineV1::EthereumDetails::Representation
123
+
124
+ hash :labels, as: 'labels'
125
+ property :name, as: 'name'
126
+ property :state, as: 'state'
127
+ property :update_time, as: 'updateTime'
128
+ end
129
+ end
130
+
131
+ class CancelOperationRequest
132
+ # @private
133
+ class Representation < Google::Apis::Core::JsonRepresentation
134
+ end
135
+ end
136
+
137
+ class ConnectionInfo
138
+ # @private
139
+ class Representation < Google::Apis::Core::JsonRepresentation
140
+ property :endpoint_info, as: 'endpointInfo', class: Google::Apis::BlockchainnodeengineV1::EndpointInfo, decorator: Google::Apis::BlockchainnodeengineV1::EndpointInfo::Representation
141
+
142
+ end
143
+ end
144
+
145
+ class EndpointInfo
146
+ # @private
147
+ class Representation < Google::Apis::Core::JsonRepresentation
148
+ property :json_rpc_api_endpoint, as: 'jsonRpcApiEndpoint'
149
+ property :websockets_api_endpoint, as: 'websocketsApiEndpoint'
150
+ end
151
+ end
152
+
153
+ class EthereumDetails
154
+ # @private
155
+ class Representation < Google::Apis::Core::JsonRepresentation
156
+ property :additional_endpoints, as: 'additionalEndpoints', class: Google::Apis::BlockchainnodeengineV1::EthereumEndpoints, decorator: Google::Apis::BlockchainnodeengineV1::EthereumEndpoints::Representation
157
+
158
+ property :api_enable_admin, as: 'apiEnableAdmin'
159
+ property :api_enable_debug, as: 'apiEnableDebug'
160
+ property :consensus_client, as: 'consensusClient'
161
+ property :execution_client, as: 'executionClient'
162
+ property :geth_details, as: 'gethDetails', class: Google::Apis::BlockchainnodeengineV1::GethDetails, decorator: Google::Apis::BlockchainnodeengineV1::GethDetails::Representation
163
+
164
+ property :network, as: 'network'
165
+ property :node_type, as: 'nodeType'
166
+ end
167
+ end
168
+
169
+ class EthereumEndpoints
170
+ # @private
171
+ class Representation < Google::Apis::Core::JsonRepresentation
172
+ property :beacon_api_endpoint, as: 'beaconApiEndpoint'
173
+ property :beacon_prometheus_metrics_api_endpoint, as: 'beaconPrometheusMetricsApiEndpoint'
174
+ property :execution_client_prometheus_metrics_api_endpoint, as: 'executionClientPrometheusMetricsApiEndpoint'
175
+ end
176
+ end
177
+
178
+ class GethDetails
179
+ # @private
180
+ class Representation < Google::Apis::Core::JsonRepresentation
181
+ property :garbage_collection_mode, as: 'garbageCollectionMode'
182
+ end
183
+ end
184
+
185
+ class GoogleProtobufEmpty
186
+ # @private
187
+ class Representation < Google::Apis::Core::JsonRepresentation
188
+ end
189
+ end
190
+
191
+ class ListBlockchainNodesResponse
192
+ # @private
193
+ class Representation < Google::Apis::Core::JsonRepresentation
194
+ collection :blockchain_nodes, as: 'blockchainNodes', class: Google::Apis::BlockchainnodeengineV1::BlockchainNode, decorator: Google::Apis::BlockchainnodeengineV1::BlockchainNode::Representation
195
+
196
+ property :next_page_token, as: 'nextPageToken'
197
+ collection :unreachable, as: 'unreachable'
198
+ end
199
+ end
200
+
201
+ class ListLocationsResponse
202
+ # @private
203
+ class Representation < Google::Apis::Core::JsonRepresentation
204
+ collection :locations, as: 'locations', class: Google::Apis::BlockchainnodeengineV1::Location, decorator: Google::Apis::BlockchainnodeengineV1::Location::Representation
205
+
206
+ property :next_page_token, as: 'nextPageToken'
207
+ end
208
+ end
209
+
210
+ class ListOperationsResponse
211
+ # @private
212
+ class Representation < Google::Apis::Core::JsonRepresentation
213
+ property :next_page_token, as: 'nextPageToken'
214
+ collection :operations, as: 'operations', class: Google::Apis::BlockchainnodeengineV1::Operation, decorator: Google::Apis::BlockchainnodeengineV1::Operation::Representation
215
+
216
+ end
217
+ end
218
+
219
+ class Location
220
+ # @private
221
+ class Representation < Google::Apis::Core::JsonRepresentation
222
+ property :display_name, as: 'displayName'
223
+ hash :labels, as: 'labels'
224
+ property :location_id, as: 'locationId'
225
+ hash :metadata, as: 'metadata'
226
+ property :name, as: 'name'
227
+ end
228
+ end
229
+
230
+ class Operation
231
+ # @private
232
+ class Representation < Google::Apis::Core::JsonRepresentation
233
+ property :done, as: 'done'
234
+ property :error, as: 'error', class: Google::Apis::BlockchainnodeengineV1::Status, decorator: Google::Apis::BlockchainnodeengineV1::Status::Representation
235
+
236
+ hash :metadata, as: 'metadata'
237
+ property :name, as: 'name'
238
+ hash :response, as: 'response'
239
+ end
240
+ end
241
+
242
+ class OperationMetadata
243
+ # @private
244
+ class Representation < Google::Apis::Core::JsonRepresentation
245
+ property :api_version, as: 'apiVersion'
246
+ property :create_time, as: 'createTime'
247
+ property :end_time, as: 'endTime'
248
+ property :requested_cancellation, as: 'requestedCancellation'
249
+ property :status_message, as: 'statusMessage'
250
+ property :target, as: 'target'
251
+ property :verb, as: 'verb'
252
+ end
253
+ end
254
+
255
+ class Status
256
+ # @private
257
+ class Representation < Google::Apis::Core::JsonRepresentation
258
+ property :code, as: 'code'
259
+ collection :details, as: 'details'
260
+ property :message, as: 'message'
261
+ end
262
+ end
263
+ end
264
+ end
265
+ end