google-cloud-bigtable 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +10 -0
  3. data/LICENSE +201 -0
  4. data/README.md +65 -0
  5. data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +139 -0
  6. data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +85 -0
  7. data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +137 -0
  8. data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +117 -0
  9. data/lib/google/bigtable/admin/v2/common_pb.rb +24 -0
  10. data/lib/google/bigtable/admin/v2/instance_pb.rb +72 -0
  11. data/lib/google/bigtable/admin/v2/table_pb.rb +88 -0
  12. data/lib/google/bigtable/v2/bigtable_pb.rb +109 -0
  13. data/lib/google/bigtable/v2/bigtable_services_pb.rb +67 -0
  14. data/lib/google/bigtable/v2/data_pb.rb +155 -0
  15. data/lib/google/cloud/bigtable/admin/credentials.rb +26 -0
  16. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb +1417 -0
  17. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json +123 -0
  18. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb +1079 -0
  19. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json +109 -0
  20. data/lib/google/cloud/bigtable/admin/v2/credentials.rb +50 -0
  21. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_instance_admin.rb +279 -0
  22. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_table_admin.rb +353 -0
  23. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/instance.rb +194 -0
  24. data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/table.rb +209 -0
  25. data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/iam_policy.rb +62 -0
  26. data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/policy.rb +127 -0
  27. data/lib/google/cloud/bigtable/admin/v2/doc/google/longrunning/operations.rb +92 -0
  28. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/any.rb +124 -0
  29. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/duration.rb +90 -0
  30. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/empty.rb +28 -0
  31. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/field_mask.rb +223 -0
  32. data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/timestamp.rb +106 -0
  33. data/lib/google/cloud/bigtable/admin/v2/doc/google/rpc/status.rb +83 -0
  34. data/lib/google/cloud/bigtable/admin/v2.rb +200 -0
  35. data/lib/google/cloud/bigtable/admin.rb +196 -0
  36. data/lib/google/cloud/bigtable/app_profile/job.rb +102 -0
  37. data/lib/google/cloud/bigtable/app_profile/list.rb +159 -0
  38. data/lib/google/cloud/bigtable/app_profile.rb +373 -0
  39. data/lib/google/cloud/bigtable/chunk_processor.rb +253 -0
  40. data/lib/google/cloud/bigtable/cluster/job.rb +92 -0
  41. data/lib/google/cloud/bigtable/cluster/list.rb +169 -0
  42. data/lib/google/cloud/bigtable/cluster.rb +264 -0
  43. data/lib/google/cloud/bigtable/column_family.rb +280 -0
  44. data/lib/google/cloud/bigtable/column_range.rb +186 -0
  45. data/lib/google/cloud/bigtable/convert.rb +75 -0
  46. data/lib/google/cloud/bigtable/credentials.rb +24 -0
  47. data/lib/google/cloud/bigtable/errors.rb +35 -0
  48. data/lib/google/cloud/bigtable/gc_rule.rb +215 -0
  49. data/lib/google/cloud/bigtable/instance/cluster_map.rb +70 -0
  50. data/lib/google/cloud/bigtable/instance/job.rb +97 -0
  51. data/lib/google/cloud/bigtable/instance/list.rb +159 -0
  52. data/lib/google/cloud/bigtable/instance.rb +921 -0
  53. data/lib/google/cloud/bigtable/longrunning_job.rb +105 -0
  54. data/lib/google/cloud/bigtable/mutation_entry.rb +244 -0
  55. data/lib/google/cloud/bigtable/mutation_operations.rb +338 -0
  56. data/lib/google/cloud/bigtable/policy.rb +163 -0
  57. data/lib/google/cloud/bigtable/project.rb +580 -0
  58. data/lib/google/cloud/bigtable/read_modify_write_rule.rb +129 -0
  59. data/lib/google/cloud/bigtable/read_operations.rb +345 -0
  60. data/lib/google/cloud/bigtable/row.rb +125 -0
  61. data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +539 -0
  62. data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +108 -0
  63. data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +570 -0
  64. data/lib/google/cloud/bigtable/row_filter/simple_filter.rb +273 -0
  65. data/lib/google/cloud/bigtable/row_filter.rb +593 -0
  66. data/lib/google/cloud/bigtable/row_range.rb +174 -0
  67. data/lib/google/cloud/bigtable/rows_mutator.rb +120 -0
  68. data/lib/google/cloud/bigtable/rows_reader.rb +196 -0
  69. data/lib/google/cloud/bigtable/sample_row_key.rb +82 -0
  70. data/lib/google/cloud/bigtable/service.rb +817 -0
  71. data/lib/google/cloud/bigtable/table/cluster_state.rb +93 -0
  72. data/lib/google/cloud/bigtable/table/column_family_map.rb +68 -0
  73. data/lib/google/cloud/bigtable/table/list.rb +147 -0
  74. data/lib/google/cloud/bigtable/table.rb +676 -0
  75. data/lib/google/cloud/bigtable/v2/bigtable_client.rb +579 -0
  76. data/lib/google/cloud/bigtable/v2/bigtable_client_config.json +65 -0
  77. data/lib/google/cloud/bigtable/v2/credentials.rb +45 -0
  78. data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/bigtable.rb +286 -0
  79. data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/data.rb +492 -0
  80. data/lib/google/cloud/bigtable/v2/doc/google/protobuf/any.rb +124 -0
  81. data/lib/google/cloud/bigtable/v2/doc/google/protobuf/wrappers.rb +89 -0
  82. data/lib/google/cloud/bigtable/v2/doc/google/rpc/status.rb +83 -0
  83. data/lib/google/cloud/bigtable/v2.rb +132 -0
  84. data/lib/google/cloud/bigtable/value_range.rb +175 -0
  85. data/lib/google/cloud/bigtable/version.rb +22 -0
  86. data/lib/google/cloud/bigtable.rb +223 -0
  87. data/lib/google-cloud-bigtable.rb +167 -0
  88. metadata +283 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0c1907245ebb2c825232806b169a633d96c3e059a6917adc690d16756a6d10a7
4
+ data.tar.gz: a82a4c017301ced370cc210c846deed72237391245a638ca13712a131cc83da7
5
+ SHA512:
6
+ metadata.gz: 1591cee6df26c7700433b1eb465643b84cc6e85a60173daf7cec2fe08869fecb1f14bf000e23ca82fdd381f67e1d1a9ace8f22ccb6ef116345dfed94face520c
7
+ data.tar.gz: 33a640d69ddc76879786d86b0e62016a68591979ec1103562907843a2c7df1a63e53851a5e282587f2b42f6ee35bd28d82f9d9e16e70d872aef3c32c388c2fe2
data/.yardopts ADDED
@@ -0,0 +1,10 @@
1
+ --no-private
2
+ --title=Cloud Bigtable API
3
+ --exclude _pb\.rb$
4
+ --markup markdown
5
+ --markup-provider redcarpet
6
+ --embed-mixins
7
+
8
+ ./lib/**/*.rb
9
+ -
10
+ README.md
data/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ https://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ https://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # Ruby Client for Cloud Bigtable API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
2
+
3
+ [Cloud Bigtable API][Product Documentation]:
4
+ API for reading and writing the contents of Bigtables associated with a
5
+ cloud project.
6
+ - [Client Library Documentation][]
7
+ - [Product Documentation][]
8
+
9
+ ## Quick Start
10
+ In order to use this library, you first need to go through the following
11
+ steps:
12
+
13
+ 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
14
+ 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
15
+ 3. [Enable the Cloud Bigtable API.](https://console.cloud.google.com/apis/api/bigtable)
16
+ 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
17
+
18
+ ### Installation
19
+ ```
20
+ $ gem install google-cloud-bigtable
21
+ ```
22
+
23
+ ### Next Steps
24
+ - Read the [Client Library Documentation][] for Cloud Bigtable API
25
+ to see other available methods on the client.
26
+ - Read the [Cloud Bigtable API Product documentation][Product Documentation]
27
+ to learn more about the product and see How-to Guides.
28
+ - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
29
+ to see the full list of Cloud APIs that we cover.
30
+
31
+ ## Enabling Logging
32
+
33
+ To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library. The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below, or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger) that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb) and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
34
+
35
+ Configuring a Ruby stdlib logger:
36
+
37
+ ```ruby
38
+ require "logger"
39
+
40
+ module MyLogger
41
+ LOGGER = Logger.new $stderr, level: Logger::WARN
42
+ def logger
43
+ LOGGER
44
+ end
45
+ end
46
+
47
+ # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
48
+ module GRPC
49
+ extend MyLogger
50
+ end
51
+ ```
52
+
53
+ ## Supported Ruby Versions
54
+
55
+ This library is supported on Ruby 2.3+.
56
+
57
+ Google provides official support for Ruby versions that are actively supported
58
+ by Ruby Core—that is, Ruby versions that are either in normal maintenance or
59
+ in security maintenance, and not end of life. Currently, this means Ruby 2.3
60
+ and later. Older versions of Ruby _may_ still work, but are unsupported and not
61
+ recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
62
+ about the Ruby support schedule.
63
+
64
+ [Client Library Documentation]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable/latest/google/bigtable/v2
65
+ [Product Documentation]: https://cloud.google.com/bigtable
@@ -0,0 +1,139 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/bigtable/admin/v2/bigtable_instance_admin.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/bigtable/admin/v2/instance_pb'
8
+ require 'google/iam/v1/iam_policy_pb'
9
+ require 'google/iam/v1/policy_pb'
10
+ require 'google/longrunning/operations_pb'
11
+ require 'google/protobuf/empty_pb'
12
+ require 'google/protobuf/field_mask_pb'
13
+ require 'google/protobuf/timestamp_pb'
14
+ Google::Protobuf::DescriptorPool.generated_pool.build do
15
+ add_message "google.bigtable.admin.v2.CreateInstanceRequest" do
16
+ optional :parent, :string, 1
17
+ optional :instance_id, :string, 2
18
+ optional :instance, :message, 3, "google.bigtable.admin.v2.Instance"
19
+ map :clusters, :string, :message, 4, "google.bigtable.admin.v2.Cluster"
20
+ end
21
+ add_message "google.bigtable.admin.v2.GetInstanceRequest" do
22
+ optional :name, :string, 1
23
+ end
24
+ add_message "google.bigtable.admin.v2.ListInstancesRequest" do
25
+ optional :parent, :string, 1
26
+ optional :page_token, :string, 2
27
+ end
28
+ add_message "google.bigtable.admin.v2.ListInstancesResponse" do
29
+ repeated :instances, :message, 1, "google.bigtable.admin.v2.Instance"
30
+ repeated :failed_locations, :string, 2
31
+ optional :next_page_token, :string, 3
32
+ end
33
+ add_message "google.bigtable.admin.v2.PartialUpdateInstanceRequest" do
34
+ optional :instance, :message, 1, "google.bigtable.admin.v2.Instance"
35
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
36
+ end
37
+ add_message "google.bigtable.admin.v2.DeleteInstanceRequest" do
38
+ optional :name, :string, 1
39
+ end
40
+ add_message "google.bigtable.admin.v2.CreateClusterRequest" do
41
+ optional :parent, :string, 1
42
+ optional :cluster_id, :string, 2
43
+ optional :cluster, :message, 3, "google.bigtable.admin.v2.Cluster"
44
+ end
45
+ add_message "google.bigtable.admin.v2.GetClusterRequest" do
46
+ optional :name, :string, 1
47
+ end
48
+ add_message "google.bigtable.admin.v2.ListClustersRequest" do
49
+ optional :parent, :string, 1
50
+ optional :page_token, :string, 2
51
+ end
52
+ add_message "google.bigtable.admin.v2.ListClustersResponse" do
53
+ repeated :clusters, :message, 1, "google.bigtable.admin.v2.Cluster"
54
+ repeated :failed_locations, :string, 2
55
+ optional :next_page_token, :string, 3
56
+ end
57
+ add_message "google.bigtable.admin.v2.DeleteClusterRequest" do
58
+ optional :name, :string, 1
59
+ end
60
+ add_message "google.bigtable.admin.v2.CreateInstanceMetadata" do
61
+ optional :original_request, :message, 1, "google.bigtable.admin.v2.CreateInstanceRequest"
62
+ optional :request_time, :message, 2, "google.protobuf.Timestamp"
63
+ optional :finish_time, :message, 3, "google.protobuf.Timestamp"
64
+ end
65
+ add_message "google.bigtable.admin.v2.UpdateInstanceMetadata" do
66
+ optional :original_request, :message, 1, "google.bigtable.admin.v2.PartialUpdateInstanceRequest"
67
+ optional :request_time, :message, 2, "google.protobuf.Timestamp"
68
+ optional :finish_time, :message, 3, "google.protobuf.Timestamp"
69
+ end
70
+ add_message "google.bigtable.admin.v2.CreateClusterMetadata" do
71
+ optional :original_request, :message, 1, "google.bigtable.admin.v2.CreateClusterRequest"
72
+ optional :request_time, :message, 2, "google.protobuf.Timestamp"
73
+ optional :finish_time, :message, 3, "google.protobuf.Timestamp"
74
+ end
75
+ add_message "google.bigtable.admin.v2.UpdateClusterMetadata" do
76
+ optional :original_request, :message, 1, "google.bigtable.admin.v2.Cluster"
77
+ optional :request_time, :message, 2, "google.protobuf.Timestamp"
78
+ optional :finish_time, :message, 3, "google.protobuf.Timestamp"
79
+ end
80
+ add_message "google.bigtable.admin.v2.CreateAppProfileRequest" do
81
+ optional :parent, :string, 1
82
+ optional :app_profile_id, :string, 2
83
+ optional :app_profile, :message, 3, "google.bigtable.admin.v2.AppProfile"
84
+ optional :ignore_warnings, :bool, 4
85
+ end
86
+ add_message "google.bigtable.admin.v2.GetAppProfileRequest" do
87
+ optional :name, :string, 1
88
+ end
89
+ add_message "google.bigtable.admin.v2.ListAppProfilesRequest" do
90
+ optional :parent, :string, 1
91
+ optional :page_token, :string, 2
92
+ end
93
+ add_message "google.bigtable.admin.v2.ListAppProfilesResponse" do
94
+ repeated :app_profiles, :message, 1, "google.bigtable.admin.v2.AppProfile"
95
+ optional :next_page_token, :string, 2
96
+ end
97
+ add_message "google.bigtable.admin.v2.UpdateAppProfileRequest" do
98
+ optional :app_profile, :message, 1, "google.bigtable.admin.v2.AppProfile"
99
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
100
+ optional :ignore_warnings, :bool, 3
101
+ end
102
+ add_message "google.bigtable.admin.v2.DeleteAppProfileRequest" do
103
+ optional :name, :string, 1
104
+ optional :ignore_warnings, :bool, 2
105
+ end
106
+ add_message "google.bigtable.admin.v2.UpdateAppProfileMetadata" do
107
+ end
108
+ end
109
+
110
+ module Google
111
+ module Bigtable
112
+ module Admin
113
+ module V2
114
+ CreateInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceRequest").msgclass
115
+ GetInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetInstanceRequest").msgclass
116
+ ListInstancesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesRequest").msgclass
117
+ ListInstancesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListInstancesResponse").msgclass
118
+ PartialUpdateInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.PartialUpdateInstanceRequest").msgclass
119
+ DeleteInstanceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteInstanceRequest").msgclass
120
+ CreateClusterRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterRequest").msgclass
121
+ GetClusterRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetClusterRequest").msgclass
122
+ ListClustersRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersRequest").msgclass
123
+ ListClustersResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListClustersResponse").msgclass
124
+ DeleteClusterRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteClusterRequest").msgclass
125
+ CreateInstanceMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateInstanceMetadata").msgclass
126
+ UpdateInstanceMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateInstanceMetadata").msgclass
127
+ CreateClusterMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateClusterMetadata").msgclass
128
+ UpdateClusterMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateClusterMetadata").msgclass
129
+ CreateAppProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.CreateAppProfileRequest").msgclass
130
+ GetAppProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GetAppProfileRequest").msgclass
131
+ ListAppProfilesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesRequest").msgclass
132
+ ListAppProfilesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ListAppProfilesResponse").msgclass
133
+ UpdateAppProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileRequest").msgclass
134
+ DeleteAppProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.DeleteAppProfileRequest").msgclass
135
+ UpdateAppProfileMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.UpdateAppProfileMetadata").msgclass
136
+ end
137
+ end
138
+ end
139
+ end
@@ -0,0 +1,85 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/bigtable/admin/v2/bigtable_instance_admin.proto for package 'google.bigtable.admin.v2'
3
+ # Original file comments:
4
+ # Copyright 2018 Google Inc.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/bigtable/admin/v2/bigtable_instance_admin_pb'
21
+
22
+ module Google
23
+ module Bigtable
24
+ module Admin
25
+ module V2
26
+ module BigtableInstanceAdmin
27
+ # Service for creating, configuring, and deleting Cloud Bigtable Instances and
28
+ # Clusters. Provides access to the Instance and Cluster schemas only, not the
29
+ # tables' metadata or data stored in those tables.
30
+ class Service
31
+
32
+ include GRPC::GenericService
33
+
34
+ self.marshal_class_method = :encode
35
+ self.unmarshal_class_method = :decode
36
+ self.service_name = 'google.bigtable.admin.v2.BigtableInstanceAdmin'
37
+
38
+ # Create an instance within a project.
39
+ rpc :CreateInstance, CreateInstanceRequest, Google::Longrunning::Operation
40
+ # Gets information about an instance.
41
+ rpc :GetInstance, GetInstanceRequest, Instance
42
+ # Lists information about instances in a project.
43
+ rpc :ListInstances, ListInstancesRequest, ListInstancesResponse
44
+ # Updates an instance within a project.
45
+ rpc :UpdateInstance, Instance, Instance
46
+ # Partially updates an instance within a project.
47
+ rpc :PartialUpdateInstance, PartialUpdateInstanceRequest, Google::Longrunning::Operation
48
+ # Delete an instance from a project.
49
+ rpc :DeleteInstance, DeleteInstanceRequest, Google::Protobuf::Empty
50
+ # Creates a cluster within an instance.
51
+ rpc :CreateCluster, CreateClusterRequest, Google::Longrunning::Operation
52
+ # Gets information about a cluster.
53
+ rpc :GetCluster, GetClusterRequest, Cluster
54
+ # Lists information about clusters in an instance.
55
+ rpc :ListClusters, ListClustersRequest, ListClustersResponse
56
+ # Updates a cluster within an instance.
57
+ rpc :UpdateCluster, Cluster, Google::Longrunning::Operation
58
+ # Deletes a cluster from an instance.
59
+ rpc :DeleteCluster, DeleteClusterRequest, Google::Protobuf::Empty
60
+ # Creates an app profile within an instance.
61
+ rpc :CreateAppProfile, CreateAppProfileRequest, AppProfile
62
+ # Gets information about an app profile.
63
+ rpc :GetAppProfile, GetAppProfileRequest, AppProfile
64
+ # Lists information about app profiles in an instance.
65
+ rpc :ListAppProfiles, ListAppProfilesRequest, ListAppProfilesResponse
66
+ # Updates an app profile within an instance.
67
+ rpc :UpdateAppProfile, UpdateAppProfileRequest, Google::Longrunning::Operation
68
+ # Deletes an app profile from an instance.
69
+ rpc :DeleteAppProfile, DeleteAppProfileRequest, Google::Protobuf::Empty
70
+ # Gets the access control policy for an instance resource. Returns an empty
71
+ # policy if an instance exists but does not have a policy set.
72
+ rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
73
+ # Sets the access control policy on an instance resource. Replaces any
74
+ # existing policy.
75
+ rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
76
+ # Returns permissions that the caller has on the specified instance resource.
77
+ rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
78
+ end
79
+
80
+ Stub = Service.rpc_stub_class
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end