google-cloud-bigtable 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +19 -0
- data/AUTHENTICATION.md +177 -0
- data/CHANGELOG.md +223 -0
- data/CODE_OF_CONDUCT.md +40 -0
- data/CONTRIBUTING.md +188 -0
- data/EMULATOR.md +30 -0
- data/LICENSE +201 -0
- data/LOGGING.md +32 -0
- data/OVERVIEW.md +400 -0
- data/TROUBLESHOOTING.md +31 -0
- data/lib/google-cloud-bigtable.rb +171 -0
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +145 -0
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +90 -0
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +208 -0
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +154 -0
- data/lib/google/bigtable/admin/v2/common_pb.rb +30 -0
- data/lib/google/bigtable/admin/v2/instance_pb.rb +74 -0
- data/lib/google/bigtable/admin/v2/table_pb.rb +127 -0
- data/lib/google/bigtable/v2/bigtable_pb.rb +113 -0
- data/lib/google/bigtable/v2/bigtable_services_pb.rb +68 -0
- data/lib/google/bigtable/v2/data_pb.rb +156 -0
- data/lib/google/cloud/bigtable.rb +184 -0
- data/lib/google/cloud/bigtable/admin.rb +202 -0
- data/lib/google/cloud/bigtable/admin/credentials.rb +27 -0
- data/lib/google/cloud/bigtable/admin/v2.rb +223 -0
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb +1451 -0
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json +139 -0
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb +1734 -0
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json +163 -0
- data/lib/google/cloud/bigtable/admin/v2/credentials.rb +51 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_instance_admin.rb +297 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_table_admin.rb +587 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/instance.rb +193 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/table.rb +303 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/iam_policy.rb +64 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/options.rb +33 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/policy.rb +151 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/longrunning/operations.rb +51 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/any.rb +131 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/duration.rb +91 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/empty.rb +29 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/field_mask.rb +222 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/timestamp.rb +113 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/rpc/status.rb +39 -0
- data/lib/google/cloud/bigtable/admin/v2/doc/google/type/expr.rb +45 -0
- data/lib/google/cloud/bigtable/app_profile.rb +439 -0
- data/lib/google/cloud/bigtable/app_profile/job.rb +99 -0
- data/lib/google/cloud/bigtable/app_profile/list.rb +165 -0
- data/lib/google/cloud/bigtable/backup.rb +324 -0
- data/lib/google/cloud/bigtable/backup/job.rb +87 -0
- data/lib/google/cloud/bigtable/backup/list.rb +167 -0
- data/lib/google/cloud/bigtable/chunk_processor.rb +241 -0
- data/lib/google/cloud/bigtable/cluster.rb +390 -0
- data/lib/google/cloud/bigtable/cluster/job.rb +88 -0
- data/lib/google/cloud/bigtable/cluster/list.rb +171 -0
- data/lib/google/cloud/bigtable/column_family.rb +73 -0
- data/lib/google/cloud/bigtable/column_family_map.rb +426 -0
- data/lib/google/cloud/bigtable/column_range.rb +194 -0
- data/lib/google/cloud/bigtable/convert.rb +83 -0
- data/lib/google/cloud/bigtable/credentials.rb +25 -0
- data/lib/google/cloud/bigtable/errors.rb +38 -0
- data/lib/google/cloud/bigtable/gc_rule.rb +334 -0
- data/lib/google/cloud/bigtable/instance.rb +935 -0
- data/lib/google/cloud/bigtable/instance/cluster_map.rb +74 -0
- data/lib/google/cloud/bigtable/instance/job.rb +98 -0
- data/lib/google/cloud/bigtable/instance/list.rb +164 -0
- data/lib/google/cloud/bigtable/longrunning_job.rb +122 -0
- data/lib/google/cloud/bigtable/mutation_entry.rb +256 -0
- data/lib/google/cloud/bigtable/mutation_operations.rb +357 -0
- data/lib/google/cloud/bigtable/policy.rb +167 -0
- data/lib/google/cloud/bigtable/project.rb +471 -0
- data/lib/google/cloud/bigtable/read_modify_write_rule.rb +134 -0
- data/lib/google/cloud/bigtable/read_operations.rb +328 -0
- data/lib/google/cloud/bigtable/routing_policy.rb +172 -0
- data/lib/google/cloud/bigtable/row.rb +136 -0
- data/lib/google/cloud/bigtable/row_filter.rb +639 -0
- data/lib/google/cloud/bigtable/row_filter/chain_filter.rb +590 -0
- data/lib/google/cloud/bigtable/row_filter/condition_filter.rb +114 -0
- data/lib/google/cloud/bigtable/row_filter/interleave_filter.rb +621 -0
- data/lib/google/cloud/bigtable/row_filter/simple_filter.rb +287 -0
- data/lib/google/cloud/bigtable/row_range.rb +179 -0
- data/lib/google/cloud/bigtable/rows_mutator.rb +113 -0
- data/lib/google/cloud/bigtable/rows_reader.rb +200 -0
- data/lib/google/cloud/bigtable/sample_row_key.rb +85 -0
- data/lib/google/cloud/bigtable/service.rb +913 -0
- data/lib/google/cloud/bigtable/status.rb +76 -0
- data/lib/google/cloud/bigtable/table.rb +686 -0
- data/lib/google/cloud/bigtable/table/cluster_state.rb +125 -0
- data/lib/google/cloud/bigtable/table/list.rb +154 -0
- data/lib/google/cloud/bigtable/table/restore_job.rb +117 -0
- data/lib/google/cloud/bigtable/v2.rb +146 -0
- data/lib/google/cloud/bigtable/v2/bigtable_client.rb +591 -0
- data/lib/google/cloud/bigtable/v2/bigtable_client_config.json +83 -0
- data/lib/google/cloud/bigtable/v2/credentials.rb +46 -0
- data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/bigtable.rb +290 -0
- data/lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/data.rb +493 -0
- data/lib/google/cloud/bigtable/v2/doc/google/protobuf/any.rb +131 -0
- data/lib/google/cloud/bigtable/v2/doc/google/protobuf/wrappers.rb +34 -0
- data/lib/google/cloud/bigtable/v2/doc/google/rpc/status.rb +39 -0
- data/lib/google/cloud/bigtable/value_range.rb +181 -0
- data/lib/google/cloud/bigtable/version.rb +22 -0
- metadata +337 -0
@@ -0,0 +1,131 @@
|
|
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
|
+
# https://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
|
+
|
16
|
+
module Google
|
17
|
+
module Protobuf
|
18
|
+
# `Any` contains an arbitrary serialized protocol buffer message along with a
|
19
|
+
# URL that describes the type of the serialized message.
|
20
|
+
#
|
21
|
+
# Protobuf library provides support to pack/unpack Any values in the form
|
22
|
+
# of utility functions or additional generated methods of the Any type.
|
23
|
+
#
|
24
|
+
# Example 1: Pack and unpack a message in C++.
|
25
|
+
#
|
26
|
+
# Foo foo = ...;
|
27
|
+
# Any any;
|
28
|
+
# any.PackFrom(foo);
|
29
|
+
# ...
|
30
|
+
# if (any.UnpackTo(&foo)) {
|
31
|
+
# ...
|
32
|
+
# }
|
33
|
+
#
|
34
|
+
# Example 2: Pack and unpack a message in Java.
|
35
|
+
#
|
36
|
+
# Foo foo = ...;
|
37
|
+
# Any any = Any.pack(foo);
|
38
|
+
# ...
|
39
|
+
# if (any.is(Foo.class)) {
|
40
|
+
# foo = any.unpack(Foo.class);
|
41
|
+
# }
|
42
|
+
#
|
43
|
+
# Example 3: Pack and unpack a message in Python.
|
44
|
+
#
|
45
|
+
# foo = Foo(...)
|
46
|
+
# any = Any()
|
47
|
+
# any.Pack(foo)
|
48
|
+
# ...
|
49
|
+
# if any.Is(Foo.DESCRIPTOR):
|
50
|
+
# any.Unpack(foo)
|
51
|
+
# ...
|
52
|
+
#
|
53
|
+
# Example 4: Pack and unpack a message in Go
|
54
|
+
#
|
55
|
+
# foo := &pb.Foo{...}
|
56
|
+
# any, err := ptypes.MarshalAny(foo)
|
57
|
+
# ...
|
58
|
+
# foo := &pb.Foo{}
|
59
|
+
# if err := ptypes.UnmarshalAny(any, foo); err != nil {
|
60
|
+
# ...
|
61
|
+
# }
|
62
|
+
#
|
63
|
+
# The pack methods provided by protobuf library will by default use
|
64
|
+
# 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
65
|
+
# methods only use the fully qualified type name after the last '/'
|
66
|
+
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
67
|
+
# name "y.z".
|
68
|
+
#
|
69
|
+
#
|
70
|
+
# = JSON
|
71
|
+
#
|
72
|
+
# The JSON representation of an `Any` value uses the regular
|
73
|
+
# representation of the deserialized, embedded message, with an
|
74
|
+
# additional field `@type` which contains the type URL. Example:
|
75
|
+
#
|
76
|
+
# package google.profile;
|
77
|
+
# message Person {
|
78
|
+
# string first_name = 1;
|
79
|
+
# string last_name = 2;
|
80
|
+
# }
|
81
|
+
#
|
82
|
+
# {
|
83
|
+
# "@type": "type.googleapis.com/google.profile.Person",
|
84
|
+
# "firstName": <string>,
|
85
|
+
# "lastName": <string>
|
86
|
+
# }
|
87
|
+
#
|
88
|
+
# If the embedded message type is well-known and has a custom JSON
|
89
|
+
# representation, that representation will be embedded adding a field
|
90
|
+
# `value` which holds the custom JSON in addition to the `@type`
|
91
|
+
# field. Example (for message {Google::Protobuf::Duration}):
|
92
|
+
#
|
93
|
+
# {
|
94
|
+
# "@type": "type.googleapis.com/google.protobuf.Duration",
|
95
|
+
# "value": "1.212s"
|
96
|
+
# }
|
97
|
+
# @!attribute [rw] type_url
|
98
|
+
# @return [String]
|
99
|
+
# A URL/resource name that uniquely identifies the type of the serialized
|
100
|
+
# protocol buffer message. This string must contain at least
|
101
|
+
# one "/" character. The last segment of the URL's path must represent
|
102
|
+
# the fully qualified name of the type (as in
|
103
|
+
# `path/google.protobuf.Duration`). The name should be in a canonical form
|
104
|
+
# (e.g., leading "." is not accepted).
|
105
|
+
#
|
106
|
+
# In practice, teams usually precompile into the binary all types that they
|
107
|
+
# expect it to use in the context of Any. However, for URLs which use the
|
108
|
+
# scheme `http`, `https`, or no scheme, one can optionally set up a type
|
109
|
+
# server that maps type URLs to message definitions as follows:
|
110
|
+
#
|
111
|
+
# * If no scheme is provided, `https` is assumed.
|
112
|
+
# * An HTTP GET on the URL must yield a {Google::Protobuf::Type}
|
113
|
+
# value in binary format, or produce an error.
|
114
|
+
# * Applications are allowed to cache lookup results based on the
|
115
|
+
# URL, or have them precompiled into a binary to avoid any
|
116
|
+
# lookup. Therefore, binary compatibility needs to be preserved
|
117
|
+
# on changes to types. (Use versioned type names to manage
|
118
|
+
# breaking changes.)
|
119
|
+
#
|
120
|
+
# Note: this functionality is not currently available in the official
|
121
|
+
# protobuf release, and it is not used for type URLs beginning with
|
122
|
+
# type.googleapis.com.
|
123
|
+
#
|
124
|
+
# Schemes other than `http`, `https` (or the empty scheme) might be
|
125
|
+
# used with implementation specific semantics.
|
126
|
+
# @!attribute [rw] value
|
127
|
+
# @return [String]
|
128
|
+
# Must be a valid serialized protocol buffer of the above specified type.
|
129
|
+
class Any; end
|
130
|
+
end
|
131
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
# https://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
|
+
|
16
|
+
module Google
|
17
|
+
module Protobuf
|
18
|
+
# Wrapper message for `string`.
|
19
|
+
#
|
20
|
+
# The JSON representation for `StringValue` is JSON string.
|
21
|
+
# @!attribute [rw] value
|
22
|
+
# @return [String]
|
23
|
+
# The string value.
|
24
|
+
class StringValue; end
|
25
|
+
|
26
|
+
# Wrapper message for `bytes`.
|
27
|
+
#
|
28
|
+
# The JSON representation for `BytesValue` is JSON string.
|
29
|
+
# @!attribute [rw] value
|
30
|
+
# @return [String]
|
31
|
+
# The bytes value.
|
32
|
+
class BytesValue; end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,39 @@
|
|
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
|
+
# https://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
|
+
|
16
|
+
module Google
|
17
|
+
module Rpc
|
18
|
+
# The `Status` type defines a logical error model that is suitable for
|
19
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
20
|
+
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
21
|
+
# three pieces of data: error code, error message, and error details.
|
22
|
+
#
|
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).
|
25
|
+
# @!attribute [rw] code
|
26
|
+
# @return [Integer]
|
27
|
+
# The status code, which should be an enum value of {Google::Rpc::Code}.
|
28
|
+
# @!attribute [rw] message
|
29
|
+
# @return [String]
|
30
|
+
# A developer-facing error message, which should be in English. Any
|
31
|
+
# user-facing error message should be localized and sent in the
|
32
|
+
# {Google::Rpc::Status#details} field, or localized by the client.
|
33
|
+
# @!attribute [rw] details
|
34
|
+
# @return [Array<Google::Protobuf::Any>]
|
35
|
+
# A list of messages that carry the error details. There is a common set of
|
36
|
+
# message types for APIs to use.
|
37
|
+
class Status; end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,181 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2018 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
|
+
|
18
|
+
module Google
|
19
|
+
module Cloud
|
20
|
+
module Bigtable
|
21
|
+
##
|
22
|
+
# # ValueRange
|
23
|
+
#
|
24
|
+
# Specifies a contiguous range of string values.
|
25
|
+
#
|
26
|
+
# * from value bound : The value at which to begin the range.
|
27
|
+
# If neither field is set, interpreted as an empty string, inclusive.
|
28
|
+
# * End value bound: The value at which to end the range.
|
29
|
+
# If neither field is set, interpreted as an infinite string value, exclusive.
|
30
|
+
#
|
31
|
+
# @example
|
32
|
+
# require "google/cloud/bigtable"
|
33
|
+
#
|
34
|
+
# bigtable = Google::Cloud::Bigtable.new
|
35
|
+
# table = bigtable.table("my-instance", "my-table")
|
36
|
+
#
|
37
|
+
# # Range that includes all row keys including "value-001" to "value-005" excluding.
|
38
|
+
# table.new_value_range.from("value-001").to("value-005")
|
39
|
+
#
|
40
|
+
# # Range that includes all row keys including "value-001" up to inclusive "value-010".
|
41
|
+
# table.new_value_range.from("value-001").to("value-010", inclusive: true)
|
42
|
+
#
|
43
|
+
# # Range that includes all row keys including "value-001" up until end of the row keys.
|
44
|
+
# table.new_value_range.from("value-001")
|
45
|
+
#
|
46
|
+
# # Range that includes all row keys exclusive "value-001" up until end of the row keys.
|
47
|
+
# table.new_value_range.from("value-001", inclusive: false)
|
48
|
+
#
|
49
|
+
# # Range with unbounded from and the exclusive end "value-100".
|
50
|
+
# table.new_value_range.to("value-100")
|
51
|
+
#
|
52
|
+
# # Range that includes all row keys including from and end row keys "value-001", "value-100".
|
53
|
+
# table.new_value_range.between("value-001", "value-100")
|
54
|
+
#
|
55
|
+
# # Range that includes all row keys including "value-001" up until "value-100".
|
56
|
+
# table.new_value_range.of("value-001", "value-100")
|
57
|
+
#
|
58
|
+
class ValueRange
|
59
|
+
# @private
|
60
|
+
# Creates a value range instance.
|
61
|
+
def initialize
|
62
|
+
@grpc = Google::Bigtable::V2::ValueRange.new
|
63
|
+
end
|
64
|
+
|
65
|
+
##
|
66
|
+
# Sets the row range with the lower bound.
|
67
|
+
#
|
68
|
+
# @param value [String] The value. Required.
|
69
|
+
# @param inclusive [Boolean] Whether the value is an inclusive or
|
70
|
+
# exclusive lower bound. Default is `true`, an inclusive lower bound.
|
71
|
+
# @return [Google::Cloud::Bigtable::ValueRange]
|
72
|
+
#
|
73
|
+
# @example Inclusive lower bound.
|
74
|
+
# require "google/cloud/bigtable"
|
75
|
+
#
|
76
|
+
# bigtable = Google::Cloud::Bigtable.new
|
77
|
+
# table = bigtable.table("my-instance", "my-table")
|
78
|
+
#
|
79
|
+
# range = table.new_value_range.from("value-001")
|
80
|
+
#
|
81
|
+
# @example Exclusive lower bound.
|
82
|
+
# require "google/cloud/bigtable"
|
83
|
+
#
|
84
|
+
# bigtable = Google::Cloud::Bigtable.new
|
85
|
+
# table = bigtable.table("my-instance", "my-table")
|
86
|
+
#
|
87
|
+
# range = table.new_value_range.from("value-001", inclusive: false)
|
88
|
+
#
|
89
|
+
def from value, inclusive: true
|
90
|
+
if inclusive
|
91
|
+
@grpc.start_value_closed = value
|
92
|
+
else
|
93
|
+
@grpc.start_value_open = value
|
94
|
+
end
|
95
|
+
self
|
96
|
+
end
|
97
|
+
|
98
|
+
##
|
99
|
+
# Sets the value range with upper bound.
|
100
|
+
#
|
101
|
+
# @param value [String] value. Required
|
102
|
+
# @param inclusive [Boolean] Whether the value is an inclusive or
|
103
|
+
# exclusive lower bound. Default is `false`, an exclusive lower bound.
|
104
|
+
# @return [Google::Cloud::Bigtable::ValueRange]
|
105
|
+
#
|
106
|
+
# @example Inclusive upper bound.
|
107
|
+
# require "google/cloud/bigtable"
|
108
|
+
#
|
109
|
+
# bigtable = Google::Cloud::Bigtable.new
|
110
|
+
# table = bigtable.table("my-instance", "my-table")
|
111
|
+
#
|
112
|
+
# range = table.new_value_range.to("value-010", inclusive: true)
|
113
|
+
#
|
114
|
+
# @example Exclusive upper bound.
|
115
|
+
# require "google/cloud/bigtable"
|
116
|
+
#
|
117
|
+
# bigtable = Google::Cloud::Bigtable.new
|
118
|
+
# table = bigtable.table("my-instance", "my-table")
|
119
|
+
#
|
120
|
+
# range = table.new_value_range.to("value-010")
|
121
|
+
#
|
122
|
+
def to value, inclusive: false
|
123
|
+
if inclusive
|
124
|
+
@grpc.end_value_closed = value
|
125
|
+
else
|
126
|
+
@grpc.end_value_open = value
|
127
|
+
end
|
128
|
+
self
|
129
|
+
end
|
130
|
+
|
131
|
+
##
|
132
|
+
# Sets the value range with inclusive lower and upper bounds.
|
133
|
+
#
|
134
|
+
# @param from_value [String] Inclusive from value. Required
|
135
|
+
# @param to_value [String] Inclusive to value. Required
|
136
|
+
# @return [Google::Cloud::Bigtable::ValueRange]
|
137
|
+
# Range with inclusive from and to values.
|
138
|
+
#
|
139
|
+
# @example
|
140
|
+
# require "google/cloud/bigtable"
|
141
|
+
#
|
142
|
+
# bigtable = Google::Cloud::Bigtable.new
|
143
|
+
# table = bigtable.table("my-instance", "my-table")
|
144
|
+
#
|
145
|
+
# range = table.new_value_range.between("value-001", "value-010")
|
146
|
+
#
|
147
|
+
def between from_value, to_value
|
148
|
+
from(from_value).to(to_value, inclusive: true)
|
149
|
+
end
|
150
|
+
|
151
|
+
##
|
152
|
+
# Set value range with an inclusive lower bound and an exclusive upper bound.
|
153
|
+
#
|
154
|
+
# @param from_value [String] Inclusive from value
|
155
|
+
# @param to_value [String] Exclusive to value
|
156
|
+
# @return [Google::Cloud::Bigtable::ValueRange]
|
157
|
+
# Range with an inclusive from value and an exclusive to value.
|
158
|
+
#
|
159
|
+
# @example
|
160
|
+
# require "google/cloud/bigtable"
|
161
|
+
#
|
162
|
+
# bigtable = Google::Cloud::Bigtable.new
|
163
|
+
# table = bigtable.table("my-instance", "my-table")
|
164
|
+
#
|
165
|
+
# range = table.new_value_range.of("value-001", "value-010")
|
166
|
+
#
|
167
|
+
def of from_value, to_value
|
168
|
+
from(from_value).to(to_value)
|
169
|
+
end
|
170
|
+
|
171
|
+
# @private
|
172
|
+
#
|
173
|
+
# @return [Google::Bigtable::V2::ValueRange]
|
174
|
+
#
|
175
|
+
def to_grpc
|
176
|
+
@grpc
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Copyright 2018 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
|
+
# https://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
|
+
|
16
|
+
module Google
|
17
|
+
module Cloud
|
18
|
+
module Bigtable
|
19
|
+
VERSION = "1.3.0".freeze
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,337 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: google-cloud-bigtable
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.3.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Google LLC
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-07-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: google-cloud-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: google-gax
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.8'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.8'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: googleapis-common-protos
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.3.9
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '2.0'
|
51
|
+
type: :runtime
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 1.3.9
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '2.0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: googleapis-common-protos-types
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 1.0.4
|
68
|
+
- - "<"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '2.0'
|
71
|
+
type: :runtime
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.0.4
|
78
|
+
- - "<"
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '2.0'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: grpc-google-iam-v1
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - "~>"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 0.6.9
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - "~>"
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 0.6.9
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: google-style
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - "~>"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 1.24.0
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - "~>"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 1.24.0
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: minitest
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - "~>"
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '5.14'
|
116
|
+
type: :development
|
117
|
+
prerelease: false
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - "~>"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '5.14'
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: minitest-focus
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '1.1'
|
130
|
+
type: :development
|
131
|
+
prerelease: false
|
132
|
+
version_requirements: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - "~>"
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '1.1'
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
name: minitest-rg
|
139
|
+
requirement: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - "~>"
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '5.2'
|
144
|
+
type: :development
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - "~>"
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '5.2'
|
151
|
+
- !ruby/object:Gem::Dependency
|
152
|
+
name: redcarpet
|
153
|
+
requirement: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - "~>"
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '3.0'
|
158
|
+
type: :development
|
159
|
+
prerelease: false
|
160
|
+
version_requirements: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - "~>"
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '3.0'
|
165
|
+
- !ruby/object:Gem::Dependency
|
166
|
+
name: simplecov
|
167
|
+
requirement: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - "~>"
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: '0.9'
|
172
|
+
type: :development
|
173
|
+
prerelease: false
|
174
|
+
version_requirements: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - "~>"
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0.9'
|
179
|
+
- !ruby/object:Gem::Dependency
|
180
|
+
name: yard
|
181
|
+
requirement: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - "~>"
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '0.9'
|
186
|
+
type: :development
|
187
|
+
prerelease: false
|
188
|
+
version_requirements: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - "~>"
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '0.9'
|
193
|
+
- !ruby/object:Gem::Dependency
|
194
|
+
name: yard-doctest
|
195
|
+
requirement: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - "~>"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: 0.1.13
|
200
|
+
type: :development
|
201
|
+
prerelease: false
|
202
|
+
version_requirements: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - "~>"
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: 0.1.13
|
207
|
+
description: google-cloud-bigtable is the official library for Cloud Bigtable API.
|
208
|
+
email: googleapis-packages@google.com
|
209
|
+
executables: []
|
210
|
+
extensions: []
|
211
|
+
extra_rdoc_files: []
|
212
|
+
files:
|
213
|
+
- ".yardopts"
|
214
|
+
- AUTHENTICATION.md
|
215
|
+
- CHANGELOG.md
|
216
|
+
- CODE_OF_CONDUCT.md
|
217
|
+
- CONTRIBUTING.md
|
218
|
+
- EMULATOR.md
|
219
|
+
- LICENSE
|
220
|
+
- LOGGING.md
|
221
|
+
- OVERVIEW.md
|
222
|
+
- TROUBLESHOOTING.md
|
223
|
+
- lib/google-cloud-bigtable.rb
|
224
|
+
- lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb
|
225
|
+
- lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb
|
226
|
+
- lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb
|
227
|
+
- lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb
|
228
|
+
- lib/google/bigtable/admin/v2/common_pb.rb
|
229
|
+
- lib/google/bigtable/admin/v2/instance_pb.rb
|
230
|
+
- lib/google/bigtable/admin/v2/table_pb.rb
|
231
|
+
- lib/google/bigtable/v2/bigtable_pb.rb
|
232
|
+
- lib/google/bigtable/v2/bigtable_services_pb.rb
|
233
|
+
- lib/google/bigtable/v2/data_pb.rb
|
234
|
+
- lib/google/cloud/bigtable.rb
|
235
|
+
- lib/google/cloud/bigtable/admin.rb
|
236
|
+
- lib/google/cloud/bigtable/admin/credentials.rb
|
237
|
+
- lib/google/cloud/bigtable/admin/v2.rb
|
238
|
+
- lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb
|
239
|
+
- lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client_config.json
|
240
|
+
- lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb
|
241
|
+
- lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client_config.json
|
242
|
+
- lib/google/cloud/bigtable/admin/v2/credentials.rb
|
243
|
+
- lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_instance_admin.rb
|
244
|
+
- lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/bigtable_table_admin.rb
|
245
|
+
- lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/instance.rb
|
246
|
+
- lib/google/cloud/bigtable/admin/v2/doc/google/bigtable/admin/v2/table.rb
|
247
|
+
- lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/iam_policy.rb
|
248
|
+
- lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/options.rb
|
249
|
+
- lib/google/cloud/bigtable/admin/v2/doc/google/iam/v1/policy.rb
|
250
|
+
- lib/google/cloud/bigtable/admin/v2/doc/google/longrunning/operations.rb
|
251
|
+
- lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/any.rb
|
252
|
+
- lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/duration.rb
|
253
|
+
- lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/empty.rb
|
254
|
+
- lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/field_mask.rb
|
255
|
+
- lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/timestamp.rb
|
256
|
+
- lib/google/cloud/bigtable/admin/v2/doc/google/rpc/status.rb
|
257
|
+
- lib/google/cloud/bigtable/admin/v2/doc/google/type/expr.rb
|
258
|
+
- lib/google/cloud/bigtable/app_profile.rb
|
259
|
+
- lib/google/cloud/bigtable/app_profile/job.rb
|
260
|
+
- lib/google/cloud/bigtable/app_profile/list.rb
|
261
|
+
- lib/google/cloud/bigtable/backup.rb
|
262
|
+
- lib/google/cloud/bigtable/backup/job.rb
|
263
|
+
- lib/google/cloud/bigtable/backup/list.rb
|
264
|
+
- lib/google/cloud/bigtable/chunk_processor.rb
|
265
|
+
- lib/google/cloud/bigtable/cluster.rb
|
266
|
+
- lib/google/cloud/bigtable/cluster/job.rb
|
267
|
+
- lib/google/cloud/bigtable/cluster/list.rb
|
268
|
+
- lib/google/cloud/bigtable/column_family.rb
|
269
|
+
- lib/google/cloud/bigtable/column_family_map.rb
|
270
|
+
- lib/google/cloud/bigtable/column_range.rb
|
271
|
+
- lib/google/cloud/bigtable/convert.rb
|
272
|
+
- lib/google/cloud/bigtable/credentials.rb
|
273
|
+
- lib/google/cloud/bigtable/errors.rb
|
274
|
+
- lib/google/cloud/bigtable/gc_rule.rb
|
275
|
+
- lib/google/cloud/bigtable/instance.rb
|
276
|
+
- lib/google/cloud/bigtable/instance/cluster_map.rb
|
277
|
+
- lib/google/cloud/bigtable/instance/job.rb
|
278
|
+
- lib/google/cloud/bigtable/instance/list.rb
|
279
|
+
- lib/google/cloud/bigtable/longrunning_job.rb
|
280
|
+
- lib/google/cloud/bigtable/mutation_entry.rb
|
281
|
+
- lib/google/cloud/bigtable/mutation_operations.rb
|
282
|
+
- lib/google/cloud/bigtable/policy.rb
|
283
|
+
- lib/google/cloud/bigtable/project.rb
|
284
|
+
- lib/google/cloud/bigtable/read_modify_write_rule.rb
|
285
|
+
- lib/google/cloud/bigtable/read_operations.rb
|
286
|
+
- lib/google/cloud/bigtable/routing_policy.rb
|
287
|
+
- lib/google/cloud/bigtable/row.rb
|
288
|
+
- lib/google/cloud/bigtable/row_filter.rb
|
289
|
+
- lib/google/cloud/bigtable/row_filter/chain_filter.rb
|
290
|
+
- lib/google/cloud/bigtable/row_filter/condition_filter.rb
|
291
|
+
- lib/google/cloud/bigtable/row_filter/interleave_filter.rb
|
292
|
+
- lib/google/cloud/bigtable/row_filter/simple_filter.rb
|
293
|
+
- lib/google/cloud/bigtable/row_range.rb
|
294
|
+
- lib/google/cloud/bigtable/rows_mutator.rb
|
295
|
+
- lib/google/cloud/bigtable/rows_reader.rb
|
296
|
+
- lib/google/cloud/bigtable/sample_row_key.rb
|
297
|
+
- lib/google/cloud/bigtable/service.rb
|
298
|
+
- lib/google/cloud/bigtable/status.rb
|
299
|
+
- lib/google/cloud/bigtable/table.rb
|
300
|
+
- lib/google/cloud/bigtable/table/cluster_state.rb
|
301
|
+
- lib/google/cloud/bigtable/table/list.rb
|
302
|
+
- lib/google/cloud/bigtable/table/restore_job.rb
|
303
|
+
- lib/google/cloud/bigtable/v2.rb
|
304
|
+
- lib/google/cloud/bigtable/v2/bigtable_client.rb
|
305
|
+
- lib/google/cloud/bigtable/v2/bigtable_client_config.json
|
306
|
+
- lib/google/cloud/bigtable/v2/credentials.rb
|
307
|
+
- lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/bigtable.rb
|
308
|
+
- lib/google/cloud/bigtable/v2/doc/google/bigtable/v2/data.rb
|
309
|
+
- lib/google/cloud/bigtable/v2/doc/google/protobuf/any.rb
|
310
|
+
- lib/google/cloud/bigtable/v2/doc/google/protobuf/wrappers.rb
|
311
|
+
- lib/google/cloud/bigtable/v2/doc/google/rpc/status.rb
|
312
|
+
- lib/google/cloud/bigtable/value_range.rb
|
313
|
+
- lib/google/cloud/bigtable/version.rb
|
314
|
+
homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-bigtable
|
315
|
+
licenses:
|
316
|
+
- Apache-2.0
|
317
|
+
metadata: {}
|
318
|
+
post_install_message:
|
319
|
+
rdoc_options: []
|
320
|
+
require_paths:
|
321
|
+
- lib
|
322
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
323
|
+
requirements:
|
324
|
+
- - ">="
|
325
|
+
- !ruby/object:Gem::Version
|
326
|
+
version: '2.4'
|
327
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
328
|
+
requirements:
|
329
|
+
- - ">="
|
330
|
+
- !ruby/object:Gem::Version
|
331
|
+
version: '0'
|
332
|
+
requirements: []
|
333
|
+
rubygems_version: 3.1.3
|
334
|
+
signing_key:
|
335
|
+
specification_version: 4
|
336
|
+
summary: API Client library for Cloud Bigtable API
|
337
|
+
test_files: []
|