google-cloud-bigtable 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +3 -0
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +6 -3
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +3 -0
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +6 -5
- data/lib/google/bigtable/admin/v2/instance_pb.rb +2 -0
- data/lib/google/bigtable/admin/v2/table_pb.rb +2 -0
- data/lib/google/cloud/bigtable/admin.rb +2 -2
- data/lib/google/cloud/bigtable/admin/v2.rb +2 -2
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb +59 -49
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json +1 -1
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb +56 -44
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json +1 -1
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_instance_admin.rb +46 -39
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_table_admin.rb +48 -40
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/instance.rb +14 -16
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/table.rb +13 -23
- data/lib/google/cloud/bigtable/v2.rb +1 -1
- data/lib/google/cloud/bigtable/v2/bigtable_client.rb +3 -0
- data/lib/google/cloud/bigtable/version.rb +1 -1
- metadata +2 -2
@@ -21,14 +21,12 @@ module Google
|
|
21
21
|
# Each table is served using the resources of its parent cluster.
|
22
22
|
# @!attribute [rw] name
|
23
23
|
# @return [String]
|
24
|
-
#
|
25
|
-
# The unique name of the table. Values are of the form
|
24
|
+
# Output only. The unique name of the table. Values are of the form
|
26
25
|
# `projects/<project>/instances/<instance>/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`.
|
27
26
|
# Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`
|
28
27
|
# @!attribute [rw] cluster_states
|
29
28
|
# @return [Hash{String => Google::Bigtable::Admin::V2::Table::ClusterState}]
|
30
|
-
#
|
31
|
-
# Map from cluster ID to per-cluster table state.
|
29
|
+
# Output only. Map from cluster ID to per-cluster table state.
|
32
30
|
# If it could not be determined whether or not the table has data in a
|
33
31
|
# particular cluster (for example, if its zone is unavailable), then
|
34
32
|
# there will be an entry for the cluster with UNKNOWN `replication_status`.
|
@@ -44,13 +42,12 @@ module Google
|
|
44
42
|
# The granularity (i.e. `MILLIS`) at which timestamps are stored in
|
45
43
|
# this table. Timestamps not matching the granularity will be rejected.
|
46
44
|
# If unspecified at creation time, the value will be set to `MILLIS`.
|
47
|
-
# Views: `SCHEMA_VIEW`, `FULL
|
45
|
+
# Views: `SCHEMA_VIEW`, `FULL`.
|
48
46
|
class Table
|
49
47
|
# The state of a table's data in a particular cluster.
|
50
48
|
# @!attribute [rw] replication_state
|
51
49
|
# @return [Google::Bigtable::Admin::V2::Table::ClusterState::ReplicationState]
|
52
|
-
#
|
53
|
-
# The state of replication for the table in this cluster.
|
50
|
+
# Output only. The state of replication for the table in this cluster.
|
54
51
|
class ClusterState
|
55
52
|
# Table replication states.
|
56
53
|
module ReplicationState
|
@@ -99,8 +96,8 @@ module Google
|
|
99
96
|
# Only populates `name` and fields related to the table's schema.
|
100
97
|
SCHEMA_VIEW = 2
|
101
98
|
|
102
|
-
# Only populates `name` and fields related to the table's
|
103
|
-
#
|
99
|
+
# Only populates `name` and fields related to the table's replication
|
100
|
+
# state.
|
104
101
|
REPLICATION_VIEW = 3
|
105
102
|
|
106
103
|
# Populates all fields.
|
@@ -157,38 +154,31 @@ module Google
|
|
157
154
|
# for production use. It is not subject to any SLA or deprecation policy.
|
158
155
|
# @!attribute [rw] name
|
159
156
|
# @return [String]
|
160
|
-
#
|
161
|
-
# The unique name of the snapshot.
|
157
|
+
# Output only. The unique name of the snapshot.
|
162
158
|
# Values are of the form
|
163
159
|
# `projects/<project>/instances/<instance>/clusters/<cluster>/snapshots/<snapshot>`.
|
164
160
|
# @!attribute [rw] source_table
|
165
161
|
# @return [Google::Bigtable::Admin::V2::Table]
|
166
|
-
#
|
167
|
-
# The source table at the time the snapshot was taken.
|
162
|
+
# Output only. The source table at the time the snapshot was taken.
|
168
163
|
# @!attribute [rw] data_size_bytes
|
169
164
|
# @return [Integer]
|
170
|
-
#
|
171
|
-
# The size of the data in the source table at the time the snapshot was
|
165
|
+
# Output only. The size of the data in the source table at the time the snapshot was
|
172
166
|
# taken. In some cases, this value may be computed asynchronously via a
|
173
167
|
# background process and a placeholder of 0 will be used in the meantime.
|
174
168
|
# @!attribute [rw] create_time
|
175
169
|
# @return [Google::Protobuf::Timestamp]
|
176
|
-
#
|
177
|
-
# The time when the snapshot is created.
|
170
|
+
# Output only. The time when the snapshot is created.
|
178
171
|
# @!attribute [rw] delete_time
|
179
172
|
# @return [Google::Protobuf::Timestamp]
|
180
|
-
#
|
181
|
-
# The time when the snapshot will be deleted. The maximum amount of time a
|
173
|
+
# Output only. The time when the snapshot will be deleted. The maximum amount of time a
|
182
174
|
# snapshot can stay active is 365 days. If 'ttl' is not specified,
|
183
175
|
# the default maximum of 365 days will be used.
|
184
176
|
# @!attribute [rw] state
|
185
177
|
# @return [Google::Bigtable::Admin::V2::Snapshot::State]
|
186
|
-
#
|
187
|
-
# The current state of the snapshot.
|
178
|
+
# Output only. The current state of the snapshot.
|
188
179
|
# @!attribute [rw] description
|
189
180
|
# @return [String]
|
190
|
-
#
|
191
|
-
# Description of the snapshot.
|
181
|
+
# Output only. Description of the snapshot.
|
192
182
|
class Snapshot
|
193
183
|
# Possible states of a snapshot.
|
194
184
|
module State
|
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
# rubocop:disable LineLength
|
22
22
|
|
23
23
|
##
|
24
|
-
# # Ruby Client for Cloud Bigtable API
|
24
|
+
# # Ruby Client for Cloud Bigtable API
|
25
25
|
#
|
26
26
|
# [Cloud Bigtable API][Product Documentation]:
|
27
27
|
# API for reading and writing the contents of Bigtables associated with a
|
@@ -160,6 +160,9 @@ module Google
|
|
160
160
|
google_api_client.freeze
|
161
161
|
|
162
162
|
headers = { :"x-goog-api-client" => google_api_client }
|
163
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
164
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
165
|
+
end
|
163
166
|
headers.merge!(metadata) unless metadata.nil?
|
164
167
|
client_config_file = Pathname.new(__dir__).join(
|
165
168
|
"bigtable_client_config.json"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigtable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|