google-cloud-bigtable 0.7.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +4 -26
- data/CHANGELOG.md +55 -0
- data/OVERVIEW.md +388 -19
- data/lib/google-cloud-bigtable.rb +0 -1
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +1 -1
- data/lib/google/bigtable/v2/bigtable_pb.rb +3 -0
- data/lib/google/bigtable/v2/bigtable_services_pb.rb +1 -1
- 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 +1 -1
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb +2 -2
- data/lib/google/cloud/bigtable/admin/v2/credentials.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_instance_admin.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_table_admin.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/instance.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/table.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/iam_policy.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/options.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/policy.rb +7 -6
- data/lib/google/cloud/bigtable/admin/v2/doc/google/longrunning/operations.rb +2 -2
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/any.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/duration.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/empty.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/field_mask.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/timestamp.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2/doc/google/rpc/status.rb +7 -55
- data/lib/google/cloud/bigtable/admin/v2/doc/google/type/expr.rb +1 -1
- data/lib/google/cloud/bigtable/app_profile.rb +13 -13
- data/lib/google/cloud/bigtable/app_profile/list.rb +7 -7
- data/lib/google/cloud/bigtable/chunk_processor.rb +1 -1
- data/lib/google/cloud/bigtable/cluster.rb +7 -7
- data/lib/google/cloud/bigtable/cluster/list.rb +2 -2
- data/lib/google/cloud/bigtable/column_family.rb +3 -9
- data/lib/google/cloud/bigtable/column_family_map.rb +8 -8
- data/lib/google/cloud/bigtable/column_range.rb +6 -6
- data/lib/google/cloud/bigtable/gc_rule.rb +8 -8
- data/lib/google/cloud/bigtable/instance.rb +78 -71
- data/lib/google/cloud/bigtable/instance/cluster_map.rb +8 -6
- data/lib/google/cloud/bigtable/instance/job.rb +2 -2
- data/lib/google/cloud/bigtable/instance/list.rb +4 -4
- data/lib/google/cloud/bigtable/longrunning_job.rb +1 -1
- data/lib/google/cloud/bigtable/mutation_entry.rb +17 -16
- data/lib/google/cloud/bigtable/mutation_operations.rb +13 -49
- data/lib/google/cloud/bigtable/policy.rb +1 -1
- data/lib/google/cloud/bigtable/project.rb +28 -59
- data/lib/google/cloud/bigtable/read_modify_write_rule.rb +6 -6
- data/lib/google/cloud/bigtable/read_operations.rb +15 -19
- data/lib/google/cloud/bigtable/routing_policy.rb +3 -2
- data/lib/google/cloud/bigtable/row.rb +14 -14
- data/lib/google/cloud/bigtable/row_filter.rb +31 -15
- data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +49 -26
- data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +4 -1
- data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +44 -24
- data/lib/google/cloud/bigtable/row_filter/simple_filter.rb +3 -3
- data/lib/google/cloud/bigtable/rows_mutator.rb +1 -5
- data/lib/google/cloud/bigtable/rows_reader.rb +5 -4
- data/lib/google/cloud/bigtable/sample_row_key.rb +1 -1
- data/lib/google/cloud/bigtable/service.rb +94 -14
- data/lib/google/cloud/bigtable/table.rb +130 -27
- data/lib/google/cloud/bigtable/table/cluster_state.rb +10 -5
- data/lib/google/cloud/bigtable/table/list.rb +2 -2
- data/lib/google/cloud/bigtable/v2.rb +2 -2
- data/lib/google/cloud/bigtable/v2/bigtable_client.rb +13 -13
- data/lib/google/cloud/bigtable/v2/credentials.rb +1 -1
- data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/bigtable.rb +17 -14
- data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/data.rb +1 -1
- data/lib/google/cloud/bigtable/v2/doc/google/protobuf/any.rb +1 -1
- data/lib/google/cloud/bigtable/v2/doc/google/protobuf/wrappers.rb +1 -1
- data/lib/google/cloud/bigtable/v2/doc/google/rpc/status.rb +7 -55
- data/lib/google/cloud/bigtable/value_range.rb +14 -13
- data/lib/google/cloud/bigtable/version.rb +1 -1
- metadata +42 -2
@@ -102,7 +102,6 @@ module Google
|
|
102
102
|
# should already be composed with a `GRPC::Core::CallCredentials` object.
|
103
103
|
# `Proc` will be used as an updater_proc for the gRPC channel. The proc transforms the
|
104
104
|
# metadata for requests, generally, to give OAuth credentials.
|
105
|
-
# @param timeout [Integer]
|
106
105
|
# @param scope [Array<String>]
|
107
106
|
# The OAuth 2.0 scopes controlling the set of resources and operations
|
108
107
|
# that the connection can access. See [Using OAuth 2.0 to Access Google
|
@@ -109,7 +109,7 @@ module Google
|
|
109
109
|
# recommended for production use. It is not subject to any SLA or deprecation
|
110
110
|
# policy.
|
111
111
|
rpc :DeleteSnapshot, DeleteSnapshotRequest, Google::Protobuf::Empty
|
112
|
-
# Gets the access control policy for
|
112
|
+
# Gets the access control policy for a table resource. Returns an empty
|
113
113
|
# policy if an table exists but does not have a policy set.
|
114
114
|
rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
|
115
115
|
# Sets the access control policy on a table resource. Replaces any existing
|
@@ -5,6 +5,9 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
8
11
|
require 'google/bigtable/v2/data_pb'
|
9
12
|
require 'google/protobuf/wrappers_pb'
|
10
13
|
require 'google/rpc/status_pb'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/bigtable/v2/bigtable.proto for package 'google.bigtable.v2'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2019 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2020 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
# rubocop:disable LineLength
|
23
23
|
|
24
24
|
##
|
25
|
-
# # Ruby Client for Cloud Bigtable Admin API ([
|
25
|
+
# # Ruby Client for Cloud Bigtable Admin API ([GA](https://github.com/googleapis/google-cloud-ruby#versioning))
|
26
26
|
#
|
27
27
|
# [Cloud Bigtable Admin API][Product Documentation]:
|
28
28
|
#
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2020 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# rubocop:disable LineLength
|
26
26
|
|
27
27
|
##
|
28
|
-
# # Ruby Client for Cloud Bigtable Admin API ([
|
28
|
+
# # Ruby Client for Cloud Bigtable Admin API ([GA](https://github.com/googleapis/google-cloud-ruby#versioning))
|
29
29
|
#
|
30
30
|
# [Cloud Bigtable Admin API][Product Documentation]:
|
31
31
|
#
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2020 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -870,7 +870,7 @@ module Google
|
|
870
870
|
@check_consistency.call(req, options, &block)
|
871
871
|
end
|
872
872
|
|
873
|
-
# Gets the access control policy for
|
873
|
+
# Gets the access control policy for a table resource. Returns an empty
|
874
874
|
# policy if an table exists but does not have a policy set.
|
875
875
|
#
|
876
876
|
# @param resource [String]
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2020 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -82,12 +82,13 @@ module Google
|
|
82
82
|
#
|
83
83
|
# Operations affecting conditional bindings must specify version 3. This can
|
84
84
|
# be either setting a conditional policy, modifying a conditional binding,
|
85
|
-
# or removing a conditional
|
85
|
+
# or removing a binding (conditional or unconditional) from the stored
|
86
|
+
# conditional policy.
|
86
87
|
# Operations on non-conditional policies may specify any valid value or
|
87
88
|
# leave the field unset.
|
88
89
|
#
|
89
|
-
# If no etag is provided in the call to `setIamPolicy`,
|
90
|
-
#
|
90
|
+
# If no etag is provided in the call to `setIamPolicy`, version compliance
|
91
|
+
# checks against the stored policy is skipped.
|
91
92
|
# @!attribute [rw] bindings
|
92
93
|
# @return [Array<Google::Iam::V1::Binding>]
|
93
94
|
# Associates a list of `members` to a `role`. Optionally may specify a
|
@@ -105,8 +106,8 @@ module Google
|
|
105
106
|
#
|
106
107
|
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
107
108
|
# policy is overwritten. Due to blind-set semantics of an etag-less policy,
|
108
|
-
# 'setIamPolicy' will not fail even if
|
109
|
-
#
|
109
|
+
# 'setIamPolicy' will not fail even if the incoming policy version does not
|
110
|
+
# meet the requirements for modifying the stored policy.
|
110
111
|
class Policy; end
|
111
112
|
|
112
113
|
# Associates `members` with a `role`.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2020 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
# @return [String]
|
22
22
|
# The server-assigned name, which is only unique within the same service that
|
23
23
|
# originally returns it. If you use the default HTTP mapping, the
|
24
|
-
# `name` should
|
24
|
+
# `name` should be a resource name ending with `operations/{unique_id}`.
|
25
25
|
# @!attribute [rw] metadata
|
26
26
|
# @return [Google::Protobuf::Any]
|
27
27
|
# Service-specific metadata associated with the operation. It typically
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright
|
1
|
+
# Copyright 2020 Google LLC
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -17,67 +17,19 @@ module Google
|
|
17
17
|
module Rpc
|
18
18
|
# The `Status` type defines a logical error model that is suitable for
|
19
19
|
# different programming environments, including REST APIs and RPC APIs. It is
|
20
|
-
# used by [gRPC](https://github.com/grpc).
|
20
|
+
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
21
|
+
# three pieces of data: error code, error message, and error details.
|
21
22
|
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
25
|
-
# = Overview
|
26
|
-
#
|
27
|
-
# The `Status` message contains three pieces of data: error code, error
|
28
|
-
# message, and error details. The error code should be an enum value of
|
29
|
-
# {Google::Rpc::Code}, but it may accept additional error codes
|
30
|
-
# if needed. The error message should be a developer-facing English message
|
31
|
-
# that helps developers *understand* and *resolve* the error. If a localized
|
32
|
-
# user-facing error message is needed, put the localized message in the error
|
33
|
-
# details or localize it in the client. The optional error details may contain
|
34
|
-
# arbitrary information about the error. There is a predefined set of error
|
35
|
-
# detail types in the package `google.rpc` that can be used for common error
|
36
|
-
# conditions.
|
37
|
-
#
|
38
|
-
# = Language mapping
|
39
|
-
#
|
40
|
-
# The `Status` message is the logical representation of the error model, but it
|
41
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
42
|
-
# exposed in different client libraries and different wire protocols, it can be
|
43
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
44
|
-
# in Java, but more likely mapped to some error codes in C.
|
45
|
-
#
|
46
|
-
# = Other uses
|
47
|
-
#
|
48
|
-
# The error model and the `Status` message can be used in a variety of
|
49
|
-
# environments, either with or without APIs, to provide a
|
50
|
-
# consistent developer experience across different environments.
|
51
|
-
#
|
52
|
-
# Example uses of this error model include:
|
53
|
-
#
|
54
|
-
# * Partial errors. If a service needs to return partial errors to the client,
|
55
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
56
|
-
# errors.
|
57
|
-
#
|
58
|
-
# * Workflow errors. A typical workflow has multiple steps. Each step may
|
59
|
-
# have a `Status` message for error reporting.
|
60
|
-
#
|
61
|
-
# * Batch operations. If a client uses batch request and batch response, the
|
62
|
-
# `Status` message should be used directly inside batch response, one for
|
63
|
-
# each error sub-response.
|
64
|
-
#
|
65
|
-
# * Asynchronous operations. If an API call embeds asynchronous operation
|
66
|
-
# results in its response, the status of those operations should be
|
67
|
-
# represented directly using the `Status` message.
|
68
|
-
#
|
69
|
-
# * Logging. If some API errors are stored in logs, the message `Status` could
|
70
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
23
|
+
# You can find out more about this error model and how to work with it in the
|
24
|
+
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
71
25
|
# @!attribute [rw] code
|
72
26
|
# @return [Integer]
|
73
|
-
# The status code, which should be an enum value of
|
74
|
-
# {Google::Rpc::Code}.
|
27
|
+
# The status code, which should be an enum value of {Google::Rpc::Code}.
|
75
28
|
# @!attribute [rw] message
|
76
29
|
# @return [String]
|
77
30
|
# A developer-facing error message, which should be in English. Any
|
78
31
|
# user-facing error message should be localized and sent in the
|
79
|
-
# {Google::Rpc::Status#details} field, or localized
|
80
|
-
# by the client.
|
32
|
+
# {Google::Rpc::Status#details} field, or localized by the client.
|
81
33
|
# @!attribute [rw] details
|
82
34
|
# @return [Array<Google::Protobuf::Any>]
|
83
35
|
# A list of messages that carry the error details. There is a common set of
|
@@ -61,7 +61,7 @@ module Google
|
|
61
61
|
end
|
62
62
|
|
63
63
|
##
|
64
|
-
# The unique identifier for the project.
|
64
|
+
# The unique identifier for the project to which the app profile belongs.
|
65
65
|
#
|
66
66
|
# @return [String]
|
67
67
|
#
|
@@ -70,7 +70,7 @@ module Google
|
|
70
70
|
end
|
71
71
|
|
72
72
|
##
|
73
|
-
# The unique identifier for the instance.
|
73
|
+
# The unique identifier for the instance to which the app profile belongs.
|
74
74
|
#
|
75
75
|
# @return [String]
|
76
76
|
#
|
@@ -88,8 +88,8 @@ module Google
|
|
88
88
|
end
|
89
89
|
|
90
90
|
##
|
91
|
-
# The full path for the
|
92
|
-
# `projects/<project_id>/instances/<instance_id>`.
|
91
|
+
# The full path for the app profile resource. Values are of the form:
|
92
|
+
# `projects/<project_id>/instances/<instance_id>/appProfiles/<app_profile_name>`.
|
93
93
|
#
|
94
94
|
# @return [String]
|
95
95
|
#
|
@@ -107,7 +107,7 @@ module Google
|
|
107
107
|
end
|
108
108
|
|
109
109
|
##
|
110
|
-
# Description of the
|
110
|
+
# Description of the app profile.
|
111
111
|
#
|
112
112
|
# @return [String]
|
113
113
|
#
|
@@ -116,7 +116,7 @@ module Google
|
|
116
116
|
end
|
117
117
|
|
118
118
|
##
|
119
|
-
#
|
119
|
+
# Sets the description of the app profile.
|
120
120
|
#
|
121
121
|
# @param text [String] Description text
|
122
122
|
#
|
@@ -168,7 +168,7 @@ module Google
|
|
168
168
|
# availability. Value contains `cluster_id` and optional field
|
169
169
|
# `allow_transactional_writes`.
|
170
170
|
#
|
171
|
-
# @example Set multi cluster routing policy
|
171
|
+
# @example Set multi cluster routing policy.
|
172
172
|
# require "google/cloud/bigtable"
|
173
173
|
#
|
174
174
|
# bigtable = Google::Cloud::Bigtable.new
|
@@ -178,7 +178,7 @@ module Google
|
|
178
178
|
# routing_policy = Google::Cloud::Bigtable::AppProfile.multi_cluster_routing
|
179
179
|
# app_profile.routing_policy = routing_policy
|
180
180
|
#
|
181
|
-
# @example Set single cluster routing policy
|
181
|
+
# @example Set single cluster routing policy.
|
182
182
|
# require "google/cloud/bigtable"
|
183
183
|
#
|
184
184
|
# bigtable = Google::Cloud::Bigtable.new
|
@@ -241,7 +241,7 @@ module Google
|
|
241
241
|
end
|
242
242
|
|
243
243
|
##
|
244
|
-
#
|
244
|
+
# Deletes the app profile.
|
245
245
|
#
|
246
246
|
# @param ignore_warnings [Boolean]
|
247
247
|
# Default value is false. If true, ignore safety checks when deleting
|
@@ -269,14 +269,14 @@ module Google
|
|
269
269
|
end
|
270
270
|
|
271
271
|
##
|
272
|
-
#
|
272
|
+
# Updates the app profile.
|
273
273
|
#
|
274
274
|
# @param ignore_warnings [Boolean]
|
275
275
|
# Default value is false. If true, ignore safety checks when updating
|
276
276
|
# the app profile.
|
277
277
|
# @return [Google::Cloud::Bigtable::AppProfile::Job]
|
278
278
|
#
|
279
|
-
# @example
|
279
|
+
# @example
|
280
280
|
# require "google/cloud/bigtable"
|
281
281
|
#
|
282
282
|
# bigtable = Google::Cloud::Bigtable.new
|
@@ -298,7 +298,7 @@ module Google
|
|
298
298
|
# app_profile = job.app_profile
|
299
299
|
# end
|
300
300
|
#
|
301
|
-
# @example Update with single cluster routing
|
301
|
+
# @example Update with single cluster routing.
|
302
302
|
# require "google/cloud/bigtable"
|
303
303
|
#
|
304
304
|
# bigtable = Google::Cloud::Bigtable.new
|
@@ -336,7 +336,7 @@ module Google
|
|
336
336
|
alias update save
|
337
337
|
|
338
338
|
##
|
339
|
-
#
|
339
|
+
# Reloads the app profile data.
|
340
340
|
#
|
341
341
|
# @return [Google::Cloud::Bigtable::AppProfile]
|
342
342
|
#
|
@@ -32,13 +32,13 @@ module Google
|
|
32
32
|
attr_accessor :grpc
|
33
33
|
|
34
34
|
# @private
|
35
|
-
# Creates a new AppProfile::List with an array of
|
35
|
+
# Creates a new AppProfile::List with an array of app profiles.
|
36
36
|
def initialize arr = []
|
37
37
|
super arr
|
38
38
|
end
|
39
39
|
|
40
40
|
##
|
41
|
-
# Whether there is a next page of
|
41
|
+
# Whether there is a next page of app profiles.
|
42
42
|
#
|
43
43
|
# @return [Boolean]
|
44
44
|
#
|
@@ -59,9 +59,9 @@ module Google
|
|
59
59
|
end
|
60
60
|
|
61
61
|
##
|
62
|
-
# Retrieves the next page of
|
62
|
+
# Retrieves the next page of app profiles.
|
63
63
|
#
|
64
|
-
# @return [AppProfile::List] The list of
|
64
|
+
# @return [AppProfile::List] The list of app profiles.
|
65
65
|
#
|
66
66
|
# @example
|
67
67
|
# require "google/cloud/bigtable"
|
@@ -94,12 +94,12 @@ module Google
|
|
94
94
|
# are retrieved (unlike `#each`, for example, which merely iterates
|
95
95
|
# over the results returned by a single API call). Use with caution.
|
96
96
|
#
|
97
|
-
# @yield [app_profile] The block for accessing each
|
98
|
-
# @yieldparam [AppProfile]
|
97
|
+
# @yield [app_profile] The block for accessing each app profile.
|
98
|
+
# @yieldparam [AppProfile] app_profile The app profile object.
|
99
99
|
#
|
100
100
|
# @return [Enumerator]
|
101
101
|
#
|
102
|
-
# @example Iterating each
|
102
|
+
# @example Iterating each app profile by passing a block:
|
103
103
|
# require "google/cloud/bigtable"
|
104
104
|
#
|
105
105
|
# bigtable = Google::Cloud::Bigtable.new
|