google-cloud-bigtable 0.3.0 → 0.3.1
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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +33 -12
- data/CHANGELOG.md +8 -1
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin_client.rb +30 -30
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin_client.rb +16 -16
- data/lib/google/cloud/bigtable/admin/v2/doc/google/longrunning/operations.rb +1 -1
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/any.rb +2 -1
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/field_mask.rb +18 -26
- data/lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/timestamp.rb +15 -13
- data/lib/google/cloud/bigtable/admin/v2/doc/google/rpc/status.rb +17 -14
- data/lib/google/cloud/bigtable/v2/doc/google/protobuf/any.rb +2 -1
- data/lib/google/cloud/bigtable/v2/doc/google/rpc/status.rb +17 -14
- data/lib/google/cloud/bigtable/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e96eaa48bcec3ab6fab8533966876027b77088244e0c6bec5b151ceb522c6220
|
4
|
+
data.tar.gz: 72698b0ededc6e54c6180773e7bd3645fa80f87e5c06a8d1e2843390b7f9a75b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a145ed4ab0c4aacae800daf4730e83f65aea6723840e3c7ef98ab34ef6cda35d6614b7885ff0d2bd510d3725d5bd09b76854a477a6b5d02a8d2e74f88779c731
|
7
|
+
data.tar.gz: 21413487d39eac4d928db6525397e9b19756f0ec1b42d03646f3bf6ee094ff1446782b9aab9e3ec7dd5ef6c5f1ddcd56089e4aa5242b1d7c20849f5808c00c6a
|
data/AUTHENTICATION.md
CHANGED
@@ -2,20 +2,39 @@
|
|
2
2
|
|
3
3
|
In general, the google-cloud-bigtable library uses [Service
|
4
4
|
Account](https://cloud.google.com/iam/docs/creating-managing-service-accounts)
|
5
|
-
credentials to connect to Google Cloud services. When running
|
5
|
+
credentials to connect to Google Cloud services. When running within [Google
|
6
|
+
Cloud Platform environments](#google-cloud-platform-environments)
|
6
7
|
the credentials will be discovered automatically. When running on other
|
7
8
|
environments, the Service Account credentials can be specified by providing the
|
8
9
|
path to the [JSON
|
9
10
|
keyfile](https://cloud.google.com/iam/docs/managing-service-account-keys) for
|
10
|
-
the account (or the JSON itself) in environment
|
11
|
-
SDK credentials can also
|
12
|
-
recommended during development.
|
11
|
+
the account (or the JSON itself) in [environment
|
12
|
+
variables](#environment-variables). Additionally, Cloud SDK credentials can also
|
13
|
+
be discovered automatically, but this is only recommended during development.
|
14
|
+
|
15
|
+
## Quickstart
|
16
|
+
|
17
|
+
1. [Create a service account and credentials](#creating-a-service-account).
|
18
|
+
2. Set the [environment variable](#environment-variables).
|
19
|
+
|
20
|
+
```sh
|
21
|
+
export BIGTABLE_CREDENTIALS=/path/to/json`
|
22
|
+
```
|
23
|
+
|
24
|
+
3. Initialize the client.
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
require "google/cloud/bigtable"
|
28
|
+
|
29
|
+
client = Google::Cloud::Bigtable.new
|
30
|
+
```
|
13
31
|
|
14
32
|
## Project and Credential Lookup
|
15
33
|
|
16
|
-
The google-cloud-bigtable library aims to make authentication
|
17
|
-
possible, and provides several mechanisms to configure your system
|
18
|
-
providing **Project ID** and **Service Account Credentials** directly in
|
34
|
+
The google-cloud-bigtable library aims to make authentication
|
35
|
+
as simple as possible, and provides several mechanisms to configure your system
|
36
|
+
without providing **Project ID** and **Service Account Credentials** directly in
|
37
|
+
code.
|
19
38
|
|
20
39
|
**Project ID** is discovered in the following order:
|
21
40
|
|
@@ -23,6 +42,7 @@ providing **Project ID** and **Service Account Credentials** directly in code.
|
|
23
42
|
2. Specify project ID in configuration
|
24
43
|
3. Discover project ID in environment variables
|
25
44
|
4. Discover GCE project ID
|
45
|
+
5. Discover project ID in credentials JSON
|
26
46
|
|
27
47
|
**Credentials** are discovered in the following order:
|
28
48
|
|
@@ -73,12 +93,12 @@ environment variable, or the **Credentials JSON** itself can be stored for
|
|
73
93
|
environments such as Docker containers where writing files is difficult or not
|
74
94
|
encouraged.
|
75
95
|
|
76
|
-
The environment variables that
|
96
|
+
The environment variables that google-cloud-bigtable checks for project ID are:
|
77
97
|
|
78
98
|
1. `BIGTABLE_PROJECT`
|
79
99
|
2. `GOOGLE_CLOUD_PROJECT`
|
80
100
|
|
81
|
-
The environment variables that
|
101
|
+
The environment variables that google-cloud-bigtable checks for credentials are configured on {Google::Cloud::Bigtable::V2::Credentials}:
|
82
102
|
|
83
103
|
1. `BIGTABLE_CREDENTIALS` - Path to JSON file, or JSON contents
|
84
104
|
2. `BIGTABLE_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -92,7 +112,7 @@ require "google/cloud/bigtable"
|
|
92
112
|
ENV["BIGTABLE_PROJECT"] = "my-project-id"
|
93
113
|
ENV["BIGTABLE_CREDENTIALS"] = "path/to/keyfile.json"
|
94
114
|
|
95
|
-
|
115
|
+
client = Google::Cloud::Bigtable.new
|
96
116
|
```
|
97
117
|
|
98
118
|
### Configuration
|
@@ -107,7 +127,7 @@ Google::Cloud::Bigtable.configure do |config|
|
|
107
127
|
config.credentials = "path/to/keyfile.json"
|
108
128
|
end
|
109
129
|
|
110
|
-
|
130
|
+
client = Google::Cloud::Bigtable.new
|
111
131
|
```
|
112
132
|
|
113
133
|
### Cloud SDK
|
@@ -140,7 +160,8 @@ Google Cloud requires a **Project ID** and **Service Account Credentials** to
|
|
140
160
|
connect to the APIs. You will use the **Project ID** and **JSON key file** to
|
141
161
|
connect to most services with google-cloud-bigtable.
|
142
162
|
|
143
|
-
If you are not running this client
|
163
|
+
If you are not running this client within [Google Cloud Platform
|
164
|
+
environments](#google-cloud-platform-environments), you need a Google
|
144
165
|
Developers service account.
|
145
166
|
|
146
167
|
1. Visit the [Google Developers Console][dev-console].
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 0.3.1 / 2019-04-29
|
4
|
+
|
5
|
+
* Add AUTHENTICATION.md guide.
|
6
|
+
* Update generated documentation.
|
7
|
+
* Update generated code examples.
|
8
|
+
* Extract gRPC header values from request.
|
9
|
+
|
3
10
|
### 0.3.0 / 2019-02-01
|
4
11
|
|
5
12
|
* Move library to Beta.
|
@@ -9,7 +16,7 @@
|
|
9
16
|
This value was added in googleauth 0.7.0.
|
10
17
|
* Loosen googleauth dependency
|
11
18
|
Allow for new releases up to 0.10.
|
12
|
-
The googleauth devs have committed to
|
19
|
+
The googleauth devs have committed to maintaining the current API
|
13
20
|
and will not make backwards compatible changes before 0.10.
|
14
21
|
|
15
22
|
### 0.2.0 / 2018-11-15
|
@@ -85,18 +85,6 @@ module Google
|
|
85
85
|
self::GRPC_INTERCEPTORS = BigtableInstanceAdminClient::GRPC_INTERCEPTORS
|
86
86
|
end
|
87
87
|
|
88
|
-
PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
89
|
-
"projects/{project}"
|
90
|
-
)
|
91
|
-
|
92
|
-
private_constant :PROJECT_PATH_TEMPLATE
|
93
|
-
|
94
|
-
INSTANCE_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
95
|
-
"projects/{project}/instances/{instance}"
|
96
|
-
)
|
97
|
-
|
98
|
-
private_constant :INSTANCE_PATH_TEMPLATE
|
99
|
-
|
100
88
|
APP_PROFILE_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
101
89
|
"projects/{project}/instances/{instance}/appProfiles/{app_profile}"
|
102
90
|
)
|
@@ -109,31 +97,23 @@ module Google
|
|
109
97
|
|
110
98
|
private_constant :CLUSTER_PATH_TEMPLATE
|
111
99
|
|
100
|
+
INSTANCE_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
101
|
+
"projects/{project}/instances/{instance}"
|
102
|
+
)
|
103
|
+
|
104
|
+
private_constant :INSTANCE_PATH_TEMPLATE
|
105
|
+
|
112
106
|
LOCATION_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
113
107
|
"projects/{project}/locations/{location}"
|
114
108
|
)
|
115
109
|
|
116
110
|
private_constant :LOCATION_PATH_TEMPLATE
|
117
111
|
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
def self.project_path project
|
122
|
-
PROJECT_PATH_TEMPLATE.render(
|
123
|
-
:"project" => project
|
124
|
-
)
|
125
|
-
end
|
112
|
+
PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
113
|
+
"projects/{project}"
|
114
|
+
)
|
126
115
|
|
127
|
-
|
128
|
-
# @param project [String]
|
129
|
-
# @param instance [String]
|
130
|
-
# @return [String]
|
131
|
-
def self.instance_path project, instance
|
132
|
-
INSTANCE_PATH_TEMPLATE.render(
|
133
|
-
:"project" => project,
|
134
|
-
:"instance" => instance
|
135
|
-
)
|
136
|
-
end
|
116
|
+
private_constant :PROJECT_PATH_TEMPLATE
|
137
117
|
|
138
118
|
# Returns a fully-qualified app_profile resource name string.
|
139
119
|
# @param project [String]
|
@@ -161,6 +141,17 @@ module Google
|
|
161
141
|
)
|
162
142
|
end
|
163
143
|
|
144
|
+
# Returns a fully-qualified instance resource name string.
|
145
|
+
# @param project [String]
|
146
|
+
# @param instance [String]
|
147
|
+
# @return [String]
|
148
|
+
def self.instance_path project, instance
|
149
|
+
INSTANCE_PATH_TEMPLATE.render(
|
150
|
+
:"project" => project,
|
151
|
+
:"instance" => instance
|
152
|
+
)
|
153
|
+
end
|
154
|
+
|
164
155
|
# Returns a fully-qualified location resource name string.
|
165
156
|
# @param project [String]
|
166
157
|
# @param location [String]
|
@@ -172,6 +163,15 @@ module Google
|
|
172
163
|
)
|
173
164
|
end
|
174
165
|
|
166
|
+
# Returns a fully-qualified project resource name string.
|
167
|
+
# @param project [String]
|
168
|
+
# @return [String]
|
169
|
+
def self.project_path project
|
170
|
+
PROJECT_PATH_TEMPLATE.render(
|
171
|
+
:"project" => project
|
172
|
+
)
|
173
|
+
end
|
174
|
+
|
175
175
|
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
176
176
|
# Provides the means for authenticating requests made by the client. This parameter can
|
177
177
|
# be many types.
|
@@ -91,18 +91,18 @@ module Google
|
|
91
91
|
self::GRPC_INTERCEPTORS = BigtableTableAdminClient::GRPC_INTERCEPTORS
|
92
92
|
end
|
93
93
|
|
94
|
-
INSTANCE_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
95
|
-
"projects/{project}/instances/{instance}"
|
96
|
-
)
|
97
|
-
|
98
|
-
private_constant :INSTANCE_PATH_TEMPLATE
|
99
|
-
|
100
94
|
CLUSTER_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
101
95
|
"projects/{project}/instances/{instance}/clusters/{cluster}"
|
102
96
|
)
|
103
97
|
|
104
98
|
private_constant :CLUSTER_PATH_TEMPLATE
|
105
99
|
|
100
|
+
INSTANCE_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
101
|
+
"projects/{project}/instances/{instance}"
|
102
|
+
)
|
103
|
+
|
104
|
+
private_constant :INSTANCE_PATH_TEMPLATE
|
105
|
+
|
106
106
|
SNAPSHOT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
107
107
|
"projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}"
|
108
108
|
)
|
@@ -115,27 +115,27 @@ module Google
|
|
115
115
|
|
116
116
|
private_constant :TABLE_PATH_TEMPLATE
|
117
117
|
|
118
|
-
# Returns a fully-qualified
|
118
|
+
# Returns a fully-qualified cluster resource name string.
|
119
119
|
# @param project [String]
|
120
120
|
# @param instance [String]
|
121
|
+
# @param cluster [String]
|
121
122
|
# @return [String]
|
122
|
-
def self.
|
123
|
-
|
123
|
+
def self.cluster_path project, instance, cluster
|
124
|
+
CLUSTER_PATH_TEMPLATE.render(
|
124
125
|
:"project" => project,
|
125
|
-
:"instance" => instance
|
126
|
+
:"instance" => instance,
|
127
|
+
:"cluster" => cluster
|
126
128
|
)
|
127
129
|
end
|
128
130
|
|
129
|
-
# Returns a fully-qualified
|
131
|
+
# Returns a fully-qualified instance resource name string.
|
130
132
|
# @param project [String]
|
131
133
|
# @param instance [String]
|
132
|
-
# @param cluster [String]
|
133
134
|
# @return [String]
|
134
|
-
def self.
|
135
|
-
|
135
|
+
def self.instance_path project, instance
|
136
|
+
INSTANCE_PATH_TEMPLATE.render(
|
136
137
|
:"project" => project,
|
137
|
-
:"instance" => instance
|
138
|
-
:"cluster" => cluster
|
138
|
+
:"instance" => instance
|
139
139
|
)
|
140
140
|
end
|
141
141
|
|
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
# @!attribute [rw] done
|
32
32
|
# @return [true, false]
|
33
33
|
# If the value is `false`, it means the operation is still in progress.
|
34
|
-
# If true
|
34
|
+
# If `true`, the operation is completed, and either `error` or `response` is
|
35
35
|
# available.
|
36
36
|
# @!attribute [rw] error
|
37
37
|
# @return [Google::Rpc::Status]
|
@@ -97,7 +97,8 @@ module Google
|
|
97
97
|
# @!attribute [rw] type_url
|
98
98
|
# @return [String]
|
99
99
|
# A URL/resource name that uniquely identifies the type of the serialized
|
100
|
-
# protocol buffer message.
|
100
|
+
# protocol buffer message. This string must contain at least
|
101
|
+
# one "/" character. The last segment of the URL's path must represent
|
101
102
|
# the fully qualified name of the type (as in
|
102
103
|
# `path/google.protobuf.Duration`). The name should be in a canonical form
|
103
104
|
# (e.g., leading "." is not accepted).
|
@@ -83,57 +83,49 @@ module Google
|
|
83
83
|
# describe the updated values, the API ignores the values of all
|
84
84
|
# fields not covered by the mask.
|
85
85
|
#
|
86
|
-
# If a repeated field is specified for an update operation,
|
87
|
-
#
|
88
|
-
#
|
89
|
-
# string.
|
86
|
+
# If a repeated field is specified for an update operation, new values will
|
87
|
+
# be appended to the existing repeated field in the target resource. Note that
|
88
|
+
# a repeated field is only allowed in the last position of a `paths` string.
|
90
89
|
#
|
91
90
|
# If a sub-message is specified in the last position of the field mask for an
|
92
|
-
# update operation, then the existing sub-message
|
93
|
-
#
|
91
|
+
# update operation, then new value will be merged into the existing sub-message
|
92
|
+
# in the target resource.
|
93
|
+
#
|
94
|
+
# For example, given the target message:
|
94
95
|
#
|
95
96
|
# f {
|
96
97
|
# b {
|
97
|
-
# d
|
98
|
-
# x
|
98
|
+
# d: 1
|
99
|
+
# x: 2
|
99
100
|
# }
|
100
|
-
# c
|
101
|
+
# c: [1]
|
101
102
|
# }
|
102
103
|
#
|
103
104
|
# And an update message:
|
104
105
|
#
|
105
106
|
# f {
|
106
107
|
# b {
|
107
|
-
# d
|
108
|
+
# d: 10
|
108
109
|
# }
|
110
|
+
# c: [2]
|
109
111
|
# }
|
110
112
|
#
|
111
113
|
# then if the field mask is:
|
112
114
|
#
|
113
|
-
# paths: "f.b"
|
115
|
+
# paths: ["f.b", "f.c"]
|
114
116
|
#
|
115
117
|
# then the result will be:
|
116
118
|
#
|
117
119
|
# f {
|
118
120
|
# b {
|
119
|
-
# d
|
121
|
+
# d: 10
|
122
|
+
# x: 2
|
120
123
|
# }
|
121
|
-
# c
|
124
|
+
# c: [1, 2]
|
122
125
|
# }
|
123
126
|
#
|
124
|
-
#
|
125
|
-
#
|
126
|
-
# paths: "f.b.d"
|
127
|
-
#
|
128
|
-
# then the result would be:
|
129
|
-
#
|
130
|
-
# f {
|
131
|
-
# b {
|
132
|
-
# d : 10
|
133
|
-
# x : 2
|
134
|
-
# }
|
135
|
-
# c : 1
|
136
|
-
# }
|
127
|
+
# An implementation may provide options to override this default behavior for
|
128
|
+
# repeated and message fields.
|
137
129
|
#
|
138
130
|
# In order to reset a field's value to the default, the field must
|
139
131
|
# be in the mask and set to the default value in the provided resource.
|
@@ -15,17 +15,19 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Protobuf
|
18
|
-
# A Timestamp represents a point in time independent of any time zone
|
19
|
-
#
|
20
|
-
# nanosecond resolution
|
21
|
-
#
|
22
|
-
# backwards to year one.
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
27
|
-
#
|
28
|
-
#
|
18
|
+
# A Timestamp represents a point in time independent of any time zone or local
|
19
|
+
# calendar, encoded as a count of seconds and fractions of seconds at
|
20
|
+
# nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
21
|
+
# January 1, 1970, in the proleptic Gregorian calendar which extends the
|
22
|
+
# Gregorian calendar backwards to year one.
|
23
|
+
#
|
24
|
+
# All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
25
|
+
# second table is needed for interpretation, using a [24-hour linear
|
26
|
+
# smear](https://developers.google.com/time/smear).
|
27
|
+
#
|
28
|
+
# The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
29
|
+
# restricting to that range, we ensure that we can convert to and from [RFC
|
30
|
+
# 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
29
31
|
#
|
30
32
|
# = Examples
|
31
33
|
#
|
@@ -86,12 +88,12 @@ module Google
|
|
86
88
|
# 01:30 UTC on January 15, 2017.
|
87
89
|
#
|
88
90
|
# In JavaScript, one can convert a Date object to this format using the
|
89
|
-
# standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
|
91
|
+
# standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
90
92
|
# method. In Python, a standard `datetime.datetime` object can be converted
|
91
93
|
# to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime)
|
92
94
|
# with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one
|
93
95
|
# can use the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
94
|
-
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime
|
96
|
+
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
95
97
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
96
98
|
# @!attribute [rw] seconds
|
97
99
|
# @return [Integer]
|
@@ -15,24 +15,25 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Rpc
|
18
|
-
# The `Status` type defines a logical error model that is suitable for
|
19
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
20
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
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). The error model is designed to be:
|
21
21
|
#
|
22
22
|
# * Simple to use and understand for most users
|
23
23
|
# * Flexible enough to meet unexpected needs
|
24
24
|
#
|
25
25
|
# = Overview
|
26
26
|
#
|
27
|
-
# The `Status` message contains three pieces of data: error code, error
|
28
|
-
# and error details. The error code should be an enum value of
|
29
|
-
# {Google::Rpc::Code}, but it may accept additional error codes
|
30
|
-
# error message should be a developer-facing English message
|
31
|
-
# developers *understand* and *resolve* the error. If a localized
|
32
|
-
# error message is needed, put the localized message in the error
|
33
|
-
# localize it in the client. The optional error details may contain
|
34
|
-
# information about the error. There is a predefined set of error
|
35
|
-
# in the package `google.rpc` that can be used for common error
|
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.
|
36
37
|
#
|
37
38
|
# = Language mapping
|
38
39
|
#
|
@@ -69,12 +70,14 @@ module Google
|
|
69
70
|
# be used directly after any stripping needed for security/privacy reasons.
|
70
71
|
# @!attribute [rw] code
|
71
72
|
# @return [Integer]
|
72
|
-
# The status code, which should be an enum value of
|
73
|
+
# The status code, which should be an enum value of
|
74
|
+
# {Google::Rpc::Code}.
|
73
75
|
# @!attribute [rw] message
|
74
76
|
# @return [String]
|
75
77
|
# A developer-facing error message, which should be in English. Any
|
76
78
|
# user-facing error message should be localized and sent in the
|
77
|
-
# {Google::Rpc::Status#details} field, or localized
|
79
|
+
# {Google::Rpc::Status#details} field, or localized
|
80
|
+
# by the client.
|
78
81
|
# @!attribute [rw] details
|
79
82
|
# @return [Array<Google::Protobuf::Any>]
|
80
83
|
# A list of messages that carry the error details. There is a common set of
|
@@ -97,7 +97,8 @@ module Google
|
|
97
97
|
# @!attribute [rw] type_url
|
98
98
|
# @return [String]
|
99
99
|
# A URL/resource name that uniquely identifies the type of the serialized
|
100
|
-
# protocol buffer message.
|
100
|
+
# protocol buffer message. This string must contain at least
|
101
|
+
# one "/" character. The last segment of the URL's path must represent
|
101
102
|
# the fully qualified name of the type (as in
|
102
103
|
# `path/google.protobuf.Duration`). The name should be in a canonical form
|
103
104
|
# (e.g., leading "." is not accepted).
|
@@ -15,24 +15,25 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Rpc
|
18
|
-
# The `Status` type defines a logical error model that is suitable for
|
19
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
20
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
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). The error model is designed to be:
|
21
21
|
#
|
22
22
|
# * Simple to use and understand for most users
|
23
23
|
# * Flexible enough to meet unexpected needs
|
24
24
|
#
|
25
25
|
# = Overview
|
26
26
|
#
|
27
|
-
# The `Status` message contains three pieces of data: error code, error
|
28
|
-
# and error details. The error code should be an enum value of
|
29
|
-
# {Google::Rpc::Code}, but it may accept additional error codes
|
30
|
-
# error message should be a developer-facing English message
|
31
|
-
# developers *understand* and *resolve* the error. If a localized
|
32
|
-
# error message is needed, put the localized message in the error
|
33
|
-
# localize it in the client. The optional error details may contain
|
34
|
-
# information about the error. There is a predefined set of error
|
35
|
-
# in the package `google.rpc` that can be used for common error
|
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.
|
36
37
|
#
|
37
38
|
# = Language mapping
|
38
39
|
#
|
@@ -69,12 +70,14 @@ module Google
|
|
69
70
|
# be used directly after any stripping needed for security/privacy reasons.
|
70
71
|
# @!attribute [rw] code
|
71
72
|
# @return [Integer]
|
72
|
-
# The status code, which should be an enum value of
|
73
|
+
# The status code, which should be an enum value of
|
74
|
+
# {Google::Rpc::Code}.
|
73
75
|
# @!attribute [rw] message
|
74
76
|
# @return [String]
|
75
77
|
# A developer-facing error message, which should be in English. Any
|
76
78
|
# user-facing error message should be localized and sent in the
|
77
|
-
# {Google::Rpc::Status#details} field, or localized
|
79
|
+
# {Google::Rpc::Status#details} field, or localized
|
80
|
+
# by the client.
|
78
81
|
# @!attribute [rw] details
|
79
82
|
# @return [Array<Google::Protobuf::Any>]
|
80
83
|
# A list of messages that carry the error details. There is a common set of
|
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: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
117
|
+
version: 0.64.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
124
|
+
version: 0.64.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: simplecov
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -282,8 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
282
282
|
- !ruby/object:Gem::Version
|
283
283
|
version: '0'
|
284
284
|
requirements: []
|
285
|
-
|
286
|
-
rubygems_version: 2.7.7
|
285
|
+
rubygems_version: 3.0.3
|
287
286
|
signing_key:
|
288
287
|
specification_version: 4
|
289
288
|
summary: API Client library for Cloud Bigtable API
|