google-apis-bigtableadmin_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
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
+ module Google
16
+ module Apis
17
+ module BigtableadminV1
18
+ # Version of the google-apis-bigtableadmin_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20200821"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,331 @@
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 BigtableadminV1
24
+
25
+ class Backup
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class BackupInfo
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Cluster
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CreateBackupMetadata
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CreateClusterMetadata
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class CreateClusterRequest
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class CreateInstanceMetadata
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class CreateInstanceRequest
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class FailureTrace
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Frame
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Instance
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class OperationProgress
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class OptimizeRestoredTableMetadata
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class PartialUpdateInstanceRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class RestoreTableMetadata
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class TableProgress
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class UpdateAppProfileMetadata
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class UpdateClusterMetadata
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class UpdateInstanceMetadata
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class Backup
140
+ # @private
141
+ class Representation < Google::Apis::Core::JsonRepresentation
142
+ property :end_time, as: 'endTime'
143
+ property :expire_time, as: 'expireTime'
144
+ property :name, as: 'name'
145
+ property :size_bytes, :numeric_string => true, as: 'sizeBytes'
146
+ property :source_table, as: 'sourceTable'
147
+ property :start_time, as: 'startTime'
148
+ property :state, as: 'state'
149
+ end
150
+ end
151
+
152
+ class BackupInfo
153
+ # @private
154
+ class Representation < Google::Apis::Core::JsonRepresentation
155
+ property :backup, as: 'backup'
156
+ property :end_time, as: 'endTime'
157
+ property :source_table, as: 'sourceTable'
158
+ property :start_time, as: 'startTime'
159
+ end
160
+ end
161
+
162
+ class Cluster
163
+ # @private
164
+ class Representation < Google::Apis::Core::JsonRepresentation
165
+ property :default_storage_type, as: 'defaultStorageType'
166
+ property :location, as: 'location'
167
+ property :name, as: 'name'
168
+ property :serve_nodes, as: 'serveNodes'
169
+ property :state, as: 'state'
170
+ end
171
+ end
172
+
173
+ class CreateBackupMetadata
174
+ # @private
175
+ class Representation < Google::Apis::Core::JsonRepresentation
176
+ property :end_time, as: 'endTime'
177
+ property :name, as: 'name'
178
+ property :source_table, as: 'sourceTable'
179
+ property :start_time, as: 'startTime'
180
+ end
181
+ end
182
+
183
+ class CreateClusterMetadata
184
+ # @private
185
+ class Representation < Google::Apis::Core::JsonRepresentation
186
+ property :finish_time, as: 'finishTime'
187
+ property :original_request, as: 'originalRequest', class: Google::Apis::BigtableadminV1::CreateClusterRequest, decorator: Google::Apis::BigtableadminV1::CreateClusterRequest::Representation
188
+
189
+ property :request_time, as: 'requestTime'
190
+ hash :tables, as: 'tables', class: Google::Apis::BigtableadminV1::TableProgress, decorator: Google::Apis::BigtableadminV1::TableProgress::Representation
191
+
192
+ end
193
+ end
194
+
195
+ class CreateClusterRequest
196
+ # @private
197
+ class Representation < Google::Apis::Core::JsonRepresentation
198
+ property :cluster, as: 'cluster', class: Google::Apis::BigtableadminV1::Cluster, decorator: Google::Apis::BigtableadminV1::Cluster::Representation
199
+
200
+ property :cluster_id, as: 'clusterId'
201
+ property :parent, as: 'parent'
202
+ end
203
+ end
204
+
205
+ class CreateInstanceMetadata
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ property :finish_time, as: 'finishTime'
209
+ property :original_request, as: 'originalRequest', class: Google::Apis::BigtableadminV1::CreateInstanceRequest, decorator: Google::Apis::BigtableadminV1::CreateInstanceRequest::Representation
210
+
211
+ property :request_time, as: 'requestTime'
212
+ end
213
+ end
214
+
215
+ class CreateInstanceRequest
216
+ # @private
217
+ class Representation < Google::Apis::Core::JsonRepresentation
218
+ hash :clusters, as: 'clusters', class: Google::Apis::BigtableadminV1::Cluster, decorator: Google::Apis::BigtableadminV1::Cluster::Representation
219
+
220
+ property :instance, as: 'instance', class: Google::Apis::BigtableadminV1::Instance, decorator: Google::Apis::BigtableadminV1::Instance::Representation
221
+
222
+ property :instance_id, as: 'instanceId'
223
+ property :parent, as: 'parent'
224
+ end
225
+ end
226
+
227
+ class FailureTrace
228
+ # @private
229
+ class Representation < Google::Apis::Core::JsonRepresentation
230
+ collection :frames, as: 'frames', class: Google::Apis::BigtableadminV1::Frame, decorator: Google::Apis::BigtableadminV1::Frame::Representation
231
+
232
+ end
233
+ end
234
+
235
+ class Frame
236
+ # @private
237
+ class Representation < Google::Apis::Core::JsonRepresentation
238
+ property :target_name, as: 'targetName'
239
+ property :workflow_guid, as: 'workflowGuid'
240
+ property :zone_id, as: 'zoneId'
241
+ end
242
+ end
243
+
244
+ class Instance
245
+ # @private
246
+ class Representation < Google::Apis::Core::JsonRepresentation
247
+ property :display_name, as: 'displayName'
248
+ hash :labels, as: 'labels'
249
+ property :name, as: 'name'
250
+ property :state, as: 'state'
251
+ property :type, as: 'type'
252
+ end
253
+ end
254
+
255
+ class OperationProgress
256
+ # @private
257
+ class Representation < Google::Apis::Core::JsonRepresentation
258
+ property :end_time, as: 'endTime'
259
+ property :progress_percent, as: 'progressPercent'
260
+ property :start_time, as: 'startTime'
261
+ end
262
+ end
263
+
264
+ class OptimizeRestoredTableMetadata
265
+ # @private
266
+ class Representation < Google::Apis::Core::JsonRepresentation
267
+ property :name, as: 'name'
268
+ property :progress, as: 'progress', class: Google::Apis::BigtableadminV1::OperationProgress, decorator: Google::Apis::BigtableadminV1::OperationProgress::Representation
269
+
270
+ end
271
+ end
272
+
273
+ class PartialUpdateInstanceRequest
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ property :instance, as: 'instance', class: Google::Apis::BigtableadminV1::Instance, decorator: Google::Apis::BigtableadminV1::Instance::Representation
277
+
278
+ property :update_mask, as: 'updateMask'
279
+ end
280
+ end
281
+
282
+ class RestoreTableMetadata
283
+ # @private
284
+ class Representation < Google::Apis::Core::JsonRepresentation
285
+ property :backup_info, as: 'backupInfo', class: Google::Apis::BigtableadminV1::BackupInfo, decorator: Google::Apis::BigtableadminV1::BackupInfo::Representation
286
+
287
+ property :name, as: 'name'
288
+ property :optimize_table_operation_name, as: 'optimizeTableOperationName'
289
+ property :progress, as: 'progress', class: Google::Apis::BigtableadminV1::OperationProgress, decorator: Google::Apis::BigtableadminV1::OperationProgress::Representation
290
+
291
+ property :source_type, as: 'sourceType'
292
+ end
293
+ end
294
+
295
+ class TableProgress
296
+ # @private
297
+ class Representation < Google::Apis::Core::JsonRepresentation
298
+ property :estimated_copied_bytes, :numeric_string => true, as: 'estimatedCopiedBytes'
299
+ property :estimated_size_bytes, :numeric_string => true, as: 'estimatedSizeBytes'
300
+ property :state, as: 'state'
301
+ end
302
+ end
303
+
304
+ class UpdateAppProfileMetadata
305
+ # @private
306
+ class Representation < Google::Apis::Core::JsonRepresentation
307
+ end
308
+ end
309
+
310
+ class UpdateClusterMetadata
311
+ # @private
312
+ class Representation < Google::Apis::Core::JsonRepresentation
313
+ property :finish_time, as: 'finishTime'
314
+ property :original_request, as: 'originalRequest', class: Google::Apis::BigtableadminV1::Cluster, decorator: Google::Apis::BigtableadminV1::Cluster::Representation
315
+
316
+ property :request_time, as: 'requestTime'
317
+ end
318
+ end
319
+
320
+ class UpdateInstanceMetadata
321
+ # @private
322
+ class Representation < Google::Apis::Core::JsonRepresentation
323
+ property :finish_time, as: 'finishTime'
324
+ property :original_request, as: 'originalRequest', class: Google::Apis::BigtableadminV1::PartialUpdateInstanceRequest, decorator: Google::Apis::BigtableadminV1::PartialUpdateInstanceRequest::Representation
325
+
326
+ property :request_time, as: 'requestTime'
327
+ end
328
+ end
329
+ end
330
+ end
331
+ end
@@ -0,0 +1,61 @@
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 BigtableadminV1
23
+ # Cloud Bigtable Admin API
24
+ #
25
+ # Administer your Cloud Bigtable tables and instances.
26
+ #
27
+ # @example
28
+ # require 'google/apis/bigtableadmin_v1'
29
+ #
30
+ # Bigtableadmin = Google::Apis::BigtableadminV1 # Alias the module
31
+ # service = Bigtableadmin::BigtableAdminService.new
32
+ #
33
+ # @see https://cloud.google.com/bigtable/
34
+ class BigtableAdminService < 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://bigtableadmin.googleapis.com/', '',
47
+ client_name: 'google-apis-bigtableadmin_v1',
48
+ client_version: Google::Apis::BigtableadminV1::GEM_VERSION)
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ protected
53
+
54
+ def apply_command_defaults(command)
55
+ command.query['key'] = key unless key.nil?
56
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google-apis-bigtableadmin_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: 2021-01-08 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.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.1'
27
+ description: This is the simple REST client for Cloud Bigtable Admin API V1. Simple
28
+ REST clients are Ruby client libraries that provide access to Google services via
29
+ their HTTP REST API endpoints. These libraries are generated and updated automatically
30
+ based on the discovery documents published by the service, and they handle most
31
+ concerns such as authentication, pagination, retry, timeouts, and logging. You can
32
+ use this client to access the Cloud Bigtable Admin API, but note that some services
33
+ may provide a separate modern client that is easier to use.
34
+ email: googleapis-packages@google.com
35
+ executables: []
36
+ extensions: []
37
+ extra_rdoc_files: []
38
+ files:
39
+ - ".yardopts"
40
+ - CHANGELOG.md
41
+ - LICENSE.md
42
+ - OVERVIEW.md
43
+ - lib/google-apis-bigtableadmin_v1.rb
44
+ - lib/google/apis/bigtableadmin_v1.rb
45
+ - lib/google/apis/bigtableadmin_v1/classes.rb
46
+ - lib/google/apis/bigtableadmin_v1/gem_version.rb
47
+ - lib/google/apis/bigtableadmin_v1/representations.rb
48
+ - lib/google/apis/bigtableadmin_v1/service.rb
49
+ homepage: https://github.com/google/google-api-ruby-client
50
+ licenses:
51
+ - Apache-2.0
52
+ metadata:
53
+ bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigtableadmin_v1/CHANGELOG.md
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigtableadmin_v1/v0.1.0
56
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigtableadmin_v1
57
+ post_install_message:
58
+ rdoc_options: []
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: '2.4'
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ requirements: []
72
+ rubygems_version: 3.1.4
73
+ signing_key:
74
+ specification_version: 4
75
+ summary: Simple REST client for Cloud Bigtable Admin API V1
76
+ test_files: []