google-cloud-bigtable-admin-v2 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.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +75 -0
  6. data/lib/google-cloud-bigtable-admin-v2.rb +21 -0
  7. data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +148 -0
  8. data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +91 -0
  9. data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +211 -0
  10. data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +155 -0
  11. data/lib/google/bigtable/admin/v2/common_pb.rb +33 -0
  12. data/lib/google/bigtable/admin/v2/instance_pb.rb +77 -0
  13. data/lib/google/bigtable/admin/v2/table_pb.rb +130 -0
  14. data/lib/google/cloud/bigtable/admin/v2.rb +38 -0
  15. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin.rb +54 -0
  16. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb +1940 -0
  17. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials.rb +59 -0
  18. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb +572 -0
  19. data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths.rb +121 -0
  20. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin.rb +56 -0
  21. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb +2293 -0
  22. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/credentials.rb +58 -0
  23. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb +572 -0
  24. data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/paths.rb +132 -0
  25. data/lib/google/cloud/bigtable/admin/v2/version.rb +30 -0
  26. data/proto_docs/README.md +4 -0
  27. data/proto_docs/google/api/field_behavior.rb +59 -0
  28. data/proto_docs/google/api/resource.rb +247 -0
  29. data/proto_docs/google/bigtable/admin/v2/bigtable_instance_admin.rb +378 -0
  30. data/proto_docs/google/bigtable/admin/v2/bigtable_table_admin.rb +686 -0
  31. data/proto_docs/google/bigtable/admin/v2/common.rb +58 -0
  32. data/proto_docs/google/bigtable/admin/v2/instance.rb +223 -0
  33. data/proto_docs/google/bigtable/admin/v2/table.rb +357 -0
  34. data/proto_docs/google/iam/v1/iam_policy.rb +80 -0
  35. data/proto_docs/google/iam/v1/options.rb +40 -0
  36. data/proto_docs/google/iam/v1/policy.rb +248 -0
  37. data/proto_docs/google/longrunning/operations.rb +150 -0
  38. data/proto_docs/google/protobuf/any.rb +138 -0
  39. data/proto_docs/google/protobuf/duration.rb +98 -0
  40. data/proto_docs/google/protobuf/empty.rb +36 -0
  41. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  42. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  43. data/proto_docs/google/rpc/status.rb +46 -0
  44. data/proto_docs/google/type/expr.rb +52 -0
  45. metadata +246 -0
@@ -0,0 +1,155 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/bigtable/admin/v2/bigtable_table_admin.proto for package 'Google.Cloud.Bigtable.Admin.V2'
3
+ # Original file comments:
4
+ # Copyright 2020 Google LLC
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_table_admin_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Bigtable
25
+ module Admin
26
+ module V2
27
+ module BigtableTableAdmin
28
+ # Service for creating, configuring, and deleting Cloud Bigtable tables.
29
+ #
30
+ #
31
+ # Provides access to the table schemas only, not the data stored within
32
+ # the tables.
33
+ class Service
34
+
35
+ include GRPC::GenericService
36
+
37
+ self.marshal_class_method = :encode
38
+ self.unmarshal_class_method = :decode
39
+ self.service_name = 'google.bigtable.admin.v2.BigtableTableAdmin'
40
+
41
+ # Creates a new table in the specified instance.
42
+ # The table can be created with a full set of initial column families,
43
+ # specified in the request.
44
+ rpc :CreateTable, Google::Cloud::Bigtable::Admin::V2::CreateTableRequest, Google::Cloud::Bigtable::Admin::V2::Table
45
+ # Creates a new table from the specified snapshot. The target table must
46
+ # not exist. The snapshot and the table must be in the same instance.
47
+ #
48
+ # Note: This is a private alpha release of Cloud Bigtable snapshots. This
49
+ # feature is not currently available to most Cloud Bigtable customers. This
50
+ # feature might be changed in backward-incompatible ways and is not
51
+ # recommended for production use. It is not subject to any SLA or deprecation
52
+ # policy.
53
+ rpc :CreateTableFromSnapshot, Google::Cloud::Bigtable::Admin::V2::CreateTableFromSnapshotRequest, Google::Longrunning::Operation
54
+ # Lists all tables served from a specified instance.
55
+ rpc :ListTables, Google::Cloud::Bigtable::Admin::V2::ListTablesRequest, Google::Cloud::Bigtable::Admin::V2::ListTablesResponse
56
+ # Gets metadata information about the specified table.
57
+ rpc :GetTable, Google::Cloud::Bigtable::Admin::V2::GetTableRequest, Google::Cloud::Bigtable::Admin::V2::Table
58
+ # Permanently deletes a specified table and all of its data.
59
+ rpc :DeleteTable, Google::Cloud::Bigtable::Admin::V2::DeleteTableRequest, Google::Protobuf::Empty
60
+ # Performs a series of column family modifications on the specified table.
61
+ # Either all or none of the modifications will occur before this method
62
+ # returns, but data requests received prior to that point may see a table
63
+ # where only some modifications have taken effect.
64
+ rpc :ModifyColumnFamilies, Google::Cloud::Bigtable::Admin::V2::ModifyColumnFamiliesRequest, Google::Cloud::Bigtable::Admin::V2::Table
65
+ # Permanently drop/delete a row range from a specified table. The request can
66
+ # specify whether to delete all rows in a table, or only those that match a
67
+ # particular prefix.
68
+ rpc :DropRowRange, Google::Cloud::Bigtable::Admin::V2::DropRowRangeRequest, Google::Protobuf::Empty
69
+ # Generates a consistency token for a Table, which can be used in
70
+ # CheckConsistency to check whether mutations to the table that finished
71
+ # before this call started have been replicated. The tokens will be available
72
+ # for 90 days.
73
+ rpc :GenerateConsistencyToken, Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenRequest, Google::Cloud::Bigtable::Admin::V2::GenerateConsistencyTokenResponse
74
+ # Checks replication consistency based on a consistency token, that is, if
75
+ # replication has caught up based on the conditions specified in the token
76
+ # and the check request.
77
+ rpc :CheckConsistency, Google::Cloud::Bigtable::Admin::V2::CheckConsistencyRequest, Google::Cloud::Bigtable::Admin::V2::CheckConsistencyResponse
78
+ # Creates a new snapshot in the specified cluster from the specified
79
+ # source table. The cluster and the table must be in the same instance.
80
+ #
81
+ # Note: This is a private alpha release of Cloud Bigtable snapshots. This
82
+ # feature is not currently available to most Cloud Bigtable customers. This
83
+ # feature might be changed in backward-incompatible ways and is not
84
+ # recommended for production use. It is not subject to any SLA or deprecation
85
+ # policy.
86
+ rpc :SnapshotTable, Google::Cloud::Bigtable::Admin::V2::SnapshotTableRequest, Google::Longrunning::Operation
87
+ # Gets metadata information about the specified snapshot.
88
+ #
89
+ # Note: This is a private alpha release of Cloud Bigtable snapshots. This
90
+ # feature is not currently available to most Cloud Bigtable customers. This
91
+ # feature might be changed in backward-incompatible ways and is not
92
+ # recommended for production use. It is not subject to any SLA or deprecation
93
+ # policy.
94
+ rpc :GetSnapshot, Google::Cloud::Bigtable::Admin::V2::GetSnapshotRequest, Google::Cloud::Bigtable::Admin::V2::Snapshot
95
+ # Lists all snapshots associated with the specified cluster.
96
+ #
97
+ # Note: This is a private alpha release of Cloud Bigtable snapshots. This
98
+ # feature is not currently available to most Cloud Bigtable customers. This
99
+ # feature might be changed in backward-incompatible ways and is not
100
+ # recommended for production use. It is not subject to any SLA or deprecation
101
+ # policy.
102
+ rpc :ListSnapshots, Google::Cloud::Bigtable::Admin::V2::ListSnapshotsRequest, Google::Cloud::Bigtable::Admin::V2::ListSnapshotsResponse
103
+ # Permanently deletes the specified snapshot.
104
+ #
105
+ # Note: This is a private alpha release of Cloud Bigtable snapshots. This
106
+ # feature is not currently available to most Cloud Bigtable customers. This
107
+ # feature might be changed in backward-incompatible ways and is not
108
+ # recommended for production use. It is not subject to any SLA or deprecation
109
+ # policy.
110
+ rpc :DeleteSnapshot, Google::Cloud::Bigtable::Admin::V2::DeleteSnapshotRequest, Google::Protobuf::Empty
111
+ # Starts creating a new Cloud Bigtable Backup. The returned backup
112
+ # [long-running operation][google.longrunning.Operation] can be used to
113
+ # track creation of the backup. The
114
+ # [metadata][google.longrunning.Operation.metadata] field type is
115
+ # [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The
116
+ # [response][google.longrunning.Operation.response] field type is
117
+ # [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the
118
+ # returned operation will stop the creation and delete the backup.
119
+ rpc :CreateBackup, Google::Cloud::Bigtable::Admin::V2::CreateBackupRequest, Google::Longrunning::Operation
120
+ # Gets metadata on a pending or completed Cloud Bigtable Backup.
121
+ rpc :GetBackup, Google::Cloud::Bigtable::Admin::V2::GetBackupRequest, Google::Cloud::Bigtable::Admin::V2::Backup
122
+ # Updates a pending or completed Cloud Bigtable Backup.
123
+ rpc :UpdateBackup, Google::Cloud::Bigtable::Admin::V2::UpdateBackupRequest, Google::Cloud::Bigtable::Admin::V2::Backup
124
+ # Deletes a pending or completed Cloud Bigtable backup.
125
+ rpc :DeleteBackup, Google::Cloud::Bigtable::Admin::V2::DeleteBackupRequest, Google::Protobuf::Empty
126
+ # Lists Cloud Bigtable backups. Returns both completed and pending
127
+ # backups.
128
+ rpc :ListBackups, Google::Cloud::Bigtable::Admin::V2::ListBackupsRequest, Google::Cloud::Bigtable::Admin::V2::ListBackupsResponse
129
+ # Create a new table by restoring from a completed backup. The new table
130
+ # must be in the same instance as the instance containing the backup. The
131
+ # returned table [long-running operation][google.longrunning.Operation] can
132
+ # be used to track the progress of the operation, and to cancel it. The
133
+ # [metadata][google.longrunning.Operation.metadata] field type is
134
+ # [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The
135
+ # [response][google.longrunning.Operation.response] type is
136
+ # [Table][google.bigtable.admin.v2.Table], if successful.
137
+ rpc :RestoreTable, Google::Cloud::Bigtable::Admin::V2::RestoreTableRequest, Google::Longrunning::Operation
138
+ # Gets the access control policy for a resource.
139
+ # Returns an empty policy if the resource exists but does not have a policy
140
+ # set.
141
+ rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
142
+ # Sets the access control policy on a Table or Backup resource.
143
+ # Replaces any existing policy.
144
+ rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
145
+ # Returns permissions that the caller has on the specified table resource.
146
+ rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
147
+ end
148
+
149
+ Stub = Service.rpc_stub_class
150
+ end
151
+ end
152
+ end
153
+ end
154
+ end
155
+ end
@@ -0,0 +1,33 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/bigtable/admin/v2/common.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/timestamp_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/bigtable/admin/v2/common.proto", :syntax => :proto3) do
9
+ add_message "google.bigtable.admin.v2.OperationProgress" do
10
+ optional :progress_percent, :int32, 1
11
+ optional :start_time, :message, 2, "google.protobuf.Timestamp"
12
+ optional :end_time, :message, 3, "google.protobuf.Timestamp"
13
+ end
14
+ add_enum "google.bigtable.admin.v2.StorageType" do
15
+ value :STORAGE_TYPE_UNSPECIFIED, 0
16
+ value :SSD, 1
17
+ value :HDD, 2
18
+ end
19
+ end
20
+ end
21
+
22
+ module Google
23
+ module Cloud
24
+ module Bigtable
25
+ module Admin
26
+ module V2
27
+ OperationProgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.OperationProgress").msgclass
28
+ StorageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.StorageType").enummodule
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,77 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/bigtable/admin/v2/instance.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/bigtable/admin/v2/common_pb'
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("google/bigtable/admin/v2/instance.proto", :syntax => :proto3) do
11
+ add_message "google.bigtable.admin.v2.Instance" do
12
+ optional :name, :string, 1
13
+ optional :display_name, :string, 2
14
+ optional :state, :enum, 3, "google.bigtable.admin.v2.Instance.State"
15
+ optional :type, :enum, 4, "google.bigtable.admin.v2.Instance.Type"
16
+ map :labels, :string, :string, 5
17
+ end
18
+ add_enum "google.bigtable.admin.v2.Instance.State" do
19
+ value :STATE_NOT_KNOWN, 0
20
+ value :READY, 1
21
+ value :CREATING, 2
22
+ end
23
+ add_enum "google.bigtable.admin.v2.Instance.Type" do
24
+ value :TYPE_UNSPECIFIED, 0
25
+ value :PRODUCTION, 1
26
+ value :DEVELOPMENT, 2
27
+ end
28
+ add_message "google.bigtable.admin.v2.Cluster" do
29
+ optional :name, :string, 1
30
+ optional :location, :string, 2
31
+ optional :state, :enum, 3, "google.bigtable.admin.v2.Cluster.State"
32
+ optional :serve_nodes, :int32, 4
33
+ optional :default_storage_type, :enum, 5, "google.bigtable.admin.v2.StorageType"
34
+ end
35
+ add_enum "google.bigtable.admin.v2.Cluster.State" do
36
+ value :STATE_NOT_KNOWN, 0
37
+ value :READY, 1
38
+ value :CREATING, 2
39
+ value :RESIZING, 3
40
+ value :DISABLED, 4
41
+ end
42
+ add_message "google.bigtable.admin.v2.AppProfile" do
43
+ optional :name, :string, 1
44
+ optional :etag, :string, 2
45
+ optional :description, :string, 3
46
+ oneof :routing_policy do
47
+ optional :multi_cluster_routing_use_any, :message, 5, "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny"
48
+ optional :single_cluster_routing, :message, 6, "google.bigtable.admin.v2.AppProfile.SingleClusterRouting"
49
+ end
50
+ end
51
+ add_message "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny" do
52
+ end
53
+ add_message "google.bigtable.admin.v2.AppProfile.SingleClusterRouting" do
54
+ optional :cluster_id, :string, 1
55
+ optional :allow_transactional_writes, :bool, 2
56
+ end
57
+ end
58
+ end
59
+
60
+ module Google
61
+ module Cloud
62
+ module Bigtable
63
+ module Admin
64
+ module V2
65
+ Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance").msgclass
66
+ Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.State").enummodule
67
+ Instance::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Instance.Type").enummodule
68
+ Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster").msgclass
69
+ Cluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Cluster.State").enummodule
70
+ AppProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile").msgclass
71
+ AppProfile::MultiClusterRoutingUseAny = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny").msgclass
72
+ AppProfile::SingleClusterRouting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.AppProfile.SingleClusterRouting").msgclass
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,130 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/bigtable/admin/v2/table.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/protobuf/duration_pb'
9
+ require 'google/protobuf/timestamp_pb'
10
+ Google::Protobuf::DescriptorPool.generated_pool.build do
11
+ add_file("google/bigtable/admin/v2/table.proto", :syntax => :proto3) do
12
+ add_message "google.bigtable.admin.v2.RestoreInfo" do
13
+ optional :source_type, :enum, 1, "google.bigtable.admin.v2.RestoreSourceType"
14
+ oneof :source_info do
15
+ optional :backup_info, :message, 2, "google.bigtable.admin.v2.BackupInfo"
16
+ end
17
+ end
18
+ add_message "google.bigtable.admin.v2.Table" do
19
+ optional :name, :string, 1
20
+ map :cluster_states, :string, :message, 2, "google.bigtable.admin.v2.Table.ClusterState"
21
+ map :column_families, :string, :message, 3, "google.bigtable.admin.v2.ColumnFamily"
22
+ optional :granularity, :enum, 4, "google.bigtable.admin.v2.Table.TimestampGranularity"
23
+ optional :restore_info, :message, 6, "google.bigtable.admin.v2.RestoreInfo"
24
+ end
25
+ add_message "google.bigtable.admin.v2.Table.ClusterState" do
26
+ optional :replication_state, :enum, 1, "google.bigtable.admin.v2.Table.ClusterState.ReplicationState"
27
+ end
28
+ add_enum "google.bigtable.admin.v2.Table.ClusterState.ReplicationState" do
29
+ value :STATE_NOT_KNOWN, 0
30
+ value :INITIALIZING, 1
31
+ value :PLANNED_MAINTENANCE, 2
32
+ value :UNPLANNED_MAINTENANCE, 3
33
+ value :READY, 4
34
+ value :READY_OPTIMIZING, 5
35
+ end
36
+ add_enum "google.bigtable.admin.v2.Table.TimestampGranularity" do
37
+ value :TIMESTAMP_GRANULARITY_UNSPECIFIED, 0
38
+ value :MILLIS, 1
39
+ end
40
+ add_enum "google.bigtable.admin.v2.Table.View" do
41
+ value :VIEW_UNSPECIFIED, 0
42
+ value :NAME_ONLY, 1
43
+ value :SCHEMA_VIEW, 2
44
+ value :REPLICATION_VIEW, 3
45
+ value :FULL, 4
46
+ end
47
+ add_message "google.bigtable.admin.v2.ColumnFamily" do
48
+ optional :gc_rule, :message, 1, "google.bigtable.admin.v2.GcRule"
49
+ end
50
+ add_message "google.bigtable.admin.v2.GcRule" do
51
+ oneof :rule do
52
+ optional :max_num_versions, :int32, 1
53
+ optional :max_age, :message, 2, "google.protobuf.Duration"
54
+ optional :intersection, :message, 3, "google.bigtable.admin.v2.GcRule.Intersection"
55
+ optional :union, :message, 4, "google.bigtable.admin.v2.GcRule.Union"
56
+ end
57
+ end
58
+ add_message "google.bigtable.admin.v2.GcRule.Intersection" do
59
+ repeated :rules, :message, 1, "google.bigtable.admin.v2.GcRule"
60
+ end
61
+ add_message "google.bigtable.admin.v2.GcRule.Union" do
62
+ repeated :rules, :message, 1, "google.bigtable.admin.v2.GcRule"
63
+ end
64
+ add_message "google.bigtable.admin.v2.Snapshot" do
65
+ optional :name, :string, 1
66
+ optional :source_table, :message, 2, "google.bigtable.admin.v2.Table"
67
+ optional :data_size_bytes, :int64, 3
68
+ optional :create_time, :message, 4, "google.protobuf.Timestamp"
69
+ optional :delete_time, :message, 5, "google.protobuf.Timestamp"
70
+ optional :state, :enum, 6, "google.bigtable.admin.v2.Snapshot.State"
71
+ optional :description, :string, 7
72
+ end
73
+ add_enum "google.bigtable.admin.v2.Snapshot.State" do
74
+ value :STATE_NOT_KNOWN, 0
75
+ value :READY, 1
76
+ value :CREATING, 2
77
+ end
78
+ add_message "google.bigtable.admin.v2.Backup" do
79
+ optional :name, :string, 1
80
+ optional :source_table, :string, 2
81
+ optional :expire_time, :message, 3, "google.protobuf.Timestamp"
82
+ optional :start_time, :message, 4, "google.protobuf.Timestamp"
83
+ optional :end_time, :message, 5, "google.protobuf.Timestamp"
84
+ optional :size_bytes, :int64, 6
85
+ optional :state, :enum, 7, "google.bigtable.admin.v2.Backup.State"
86
+ end
87
+ add_enum "google.bigtable.admin.v2.Backup.State" do
88
+ value :STATE_UNSPECIFIED, 0
89
+ value :CREATING, 1
90
+ value :READY, 2
91
+ end
92
+ add_message "google.bigtable.admin.v2.BackupInfo" do
93
+ optional :backup, :string, 1
94
+ optional :start_time, :message, 2, "google.protobuf.Timestamp"
95
+ optional :end_time, :message, 3, "google.protobuf.Timestamp"
96
+ optional :source_table, :string, 4
97
+ end
98
+ add_enum "google.bigtable.admin.v2.RestoreSourceType" do
99
+ value :RESTORE_SOURCE_TYPE_UNSPECIFIED, 0
100
+ value :BACKUP, 1
101
+ end
102
+ end
103
+ end
104
+
105
+ module Google
106
+ module Cloud
107
+ module Bigtable
108
+ module Admin
109
+ module V2
110
+ RestoreInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreInfo").msgclass
111
+ Table = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table").msgclass
112
+ Table::ClusterState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState").msgclass
113
+ Table::ClusterState::ReplicationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.ClusterState.ReplicationState").enummodule
114
+ Table::TimestampGranularity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.TimestampGranularity").enummodule
115
+ Table::View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Table.View").enummodule
116
+ ColumnFamily = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.ColumnFamily").msgclass
117
+ GcRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule").msgclass
118
+ GcRule::Intersection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Intersection").msgclass
119
+ GcRule::Union = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.GcRule.Union").msgclass
120
+ Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot").msgclass
121
+ Snapshot::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Snapshot.State").enummodule
122
+ Backup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup").msgclass
123
+ Backup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.Backup.State").enummodule
124
+ BackupInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.BackupInfo").msgclass
125
+ RestoreSourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.bigtable.admin.v2.RestoreSourceType").enummodule
126
+ end
127
+ end
128
+ end
129
+ end
130
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/bigtable/admin/v2/bigtable_instance_admin"
20
+ require "google/cloud/bigtable/admin/v2/bigtable_table_admin"
21
+ require "google/cloud/bigtable/admin/v2/version"
22
+
23
+ module Google
24
+ module Cloud
25
+ module Bigtable
26
+ module Admin
27
+ ##
28
+ # To load this package, including all its services, and instantiate a client:
29
+ #
30
+ # require "google/cloud/bigtable/admin/v2"
31
+ # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
32
+ #
33
+ module V2
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/bigtable/admin/v2/version"
24
+
25
+ require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/credentials"
26
+ require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/paths"
27
+ require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations"
28
+ require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module Bigtable
33
+ module Admin
34
+ module V2
35
+ ##
36
+ # Service for creating, configuring, and deleting Cloud Bigtable Instances and
37
+ # Clusters. Provides access to the Instance and Cluster schemas only, not the
38
+ # tables' metadata or data stored in those tables.
39
+ #
40
+ # To load this service and instantiate a client:
41
+ #
42
+ # require "google/cloud/bigtable/admin/v2/bigtable_instance_admin"
43
+ # client = ::Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
44
+ #
45
+ module BigtableInstanceAdmin
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+
53
+ helper_path = ::File.join __dir__, "bigtable_instance_admin", "helpers.rb"
54
+ require "google/cloud/bigtable/admin/v2/bigtable_instance_admin/helpers" if ::File.file? helper_path