google-cloud-bigtable 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e96eaa48bcec3ab6fab8533966876027b77088244e0c6bec5b151ceb522c6220
4
- data.tar.gz: 72698b0ededc6e54c6180773e7bd3645fa80f87e5c06a8d1e2843390b7f9a75b
3
+ metadata.gz: 06a68f2e11bad1fa10497a7ce2059fb533237f2b84882789f7d459fcaadbeafa
4
+ data.tar.gz: ce52206b1283cde94b9526e11a51f992fc46e1d1c6e69ba4450f10febb10649f
5
5
  SHA512:
6
- metadata.gz: a145ed4ab0c4aacae800daf4730e83f65aea6723840e3c7ef98ab34ef6cda35d6614b7885ff0d2bd510d3725d5bd09b76854a477a6b5d02a8d2e74f88779c731
7
- data.tar.gz: 21413487d39eac4d928db6525397e9b19756f0ec1b42d03646f3bf6ee094ff1446782b9aab9e3ec7dd5ef6c5f1ddcd56089e4aa5242b1d7c20849f5808c00c6a
6
+ metadata.gz: 3f486d9a0bed12b33bbc3969882198532b6a4620318ba1c6a1ee7a82f1360ea77bb88b7d2088a78f3c14553dd8852a5ffd388d3ffeaa3542651000d78b6e2783
7
+ data.tar.gz: 70f01322da03b7994b542ff31e03432b25b2d916d0436519f5ddd45ec7048a7e87f8f6f892452e27432fc8a600b240947f1463981687a8f0096f8adbe87f156f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 0.4.0 / 2019-05-21
4
+
5
+ * Add Google::Cloud::Bigtable::VERSION
6
+ * Set gRPC headers to allow maximum message size
7
+ * Fix errors in code sample documentation
8
+
3
9
  ### 0.3.1 / 2019-04-29
4
10
 
5
11
  * Add AUTHENTICATION.md guide.
@@ -29,6 +29,7 @@ require "google/longrunning/operations_client"
29
29
 
30
30
  require "google/bigtable/admin/v2/bigtable_instance_admin_pb"
31
31
  require "google/cloud/bigtable/admin/v2/credentials"
32
+ require "google/cloud/bigtable/version"
32
33
 
33
34
  module Google
34
35
  module Cloud
@@ -243,7 +244,7 @@ module Google
243
244
  updater_proc = credentials.updater_proc
244
245
  end
245
246
 
246
- package_version = Gem.loaded_specs['google-cloud-bigtable'].version.version
247
+ package_version = Google::Cloud::Bigtable::VERSION
247
248
 
248
249
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
249
250
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
@@ -1305,8 +1306,7 @@ module Google
1305
1306
  #
1306
1307
  # @param resource [String]
1307
1308
  # REQUIRED: The resource for which the policy is being requested.
1308
- # `resource` is usually specified as a path. For example, a Project
1309
- # resource is specified as `projects/{project}`.
1309
+ # See the operation documentation for the appropriate value for this field.
1310
1310
  # @param options [Google::Gax::CallOptions]
1311
1311
  # Overrides the default settings for this call, e.g, timeout,
1312
1312
  # retries, etc.
@@ -1338,8 +1338,7 @@ module Google
1338
1338
  #
1339
1339
  # @param resource [String]
1340
1340
  # REQUIRED: The resource for which the policy is being specified.
1341
- # `resource` is usually specified as a path. For example, a Project
1342
- # resource is specified as `projects/{project}`.
1341
+ # See the operation documentation for the appropriate value for this field.
1343
1342
  # @param policy [Google::Iam::V1::Policy | Hash]
1344
1343
  # REQUIRED: The complete policy to be applied to the `resource`. The size of
1345
1344
  # the policy is limited to a few 10s of KB. An empty policy is a
@@ -1382,8 +1381,7 @@ module Google
1382
1381
  #
1383
1382
  # @param resource [String]
1384
1383
  # REQUIRED: The resource for which the policy detail is being requested.
1385
- # `resource` is usually specified as a path. For example, a Project
1386
- # resource is specified as `projects/{project}`.
1384
+ # See the operation documentation for the appropriate value for this field.
1387
1385
  # @param permissions [Array<String>]
1388
1386
  # The set of permissions to check for the `resource`. Permissions with
1389
1387
  # wildcards (such as '*' or 'storage.*') are not allowed. For more
@@ -29,6 +29,7 @@ require "google/longrunning/operations_client"
29
29
 
30
30
  require "google/bigtable/admin/v2/bigtable_table_admin_pb"
31
31
  require "google/cloud/bigtable/admin/v2/credentials"
32
+ require "google/cloud/bigtable/version"
32
33
 
33
34
  module Google
34
35
  module Cloud
@@ -238,7 +239,7 @@ module Google
238
239
  updater_proc = credentials.updater_proc
239
240
  end
240
241
 
241
- package_version = Gem.loaded_specs['google-cloud-bigtable'].version.version
242
+ package_version = Google::Cloud::Bigtable::VERSION
242
243
 
243
244
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
244
245
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
@@ -20,8 +20,7 @@ module Google
20
20
  # @!attribute [rw] resource
21
21
  # @return [String]
22
22
  # REQUIRED: The resource for which the policy is being specified.
23
- # `resource` is usually specified as a path. For example, a Project
24
- # resource is specified as `projects/{project}`.
23
+ # See the operation documentation for the appropriate value for this field.
25
24
  # @!attribute [rw] policy
26
25
  # @return [Google::Iam::V1::Policy]
27
26
  # REQUIRED: The complete policy to be applied to the `resource`. The size of
@@ -34,16 +33,14 @@ module Google
34
33
  # @!attribute [rw] resource
35
34
  # @return [String]
36
35
  # REQUIRED: The resource for which the policy is being requested.
37
- # `resource` is usually specified as a path. For example, a Project
38
- # resource is specified as `projects/{project}`.
36
+ # See the operation documentation for the appropriate value for this field.
39
37
  class GetIamPolicyRequest; end
40
38
 
41
39
  # Request message for `TestIamPermissions` method.
42
40
  # @!attribute [rw] resource
43
41
  # @return [String]
44
42
  # REQUIRED: The resource for which the policy detail is being requested.
45
- # `resource` is usually specified as a path. For example, a Project
46
- # resource is specified as `projects/{project}`.
43
+ # See the operation documentation for the appropriate value for this field.
47
44
  # @!attribute [rw] permissions
48
45
  # @return [Array<String>]
49
46
  # The set of permissions to check for the `resource`. Permissions with
@@ -20,12 +20,12 @@ module Google
20
20
  # specify access control policies for Cloud Platform resources.
21
21
  #
22
22
  #
23
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
23
+ # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
24
24
  # `members` to a `role`, where the members can be user accounts, Google groups,
25
25
  # Google domains, and service accounts. A `role` is a named list of permissions
26
26
  # defined by IAM.
27
27
  #
28
- # **Example**
28
+ # **JSON Example**
29
29
  #
30
30
  # {
31
31
  # "bindings": [
@@ -35,7 +35,7 @@ module Google
35
35
  # "user:mike@example.com",
36
36
  # "group:admins@example.com",
37
37
  # "domain:google.com",
38
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
38
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
39
39
  # ]
40
40
  # },
41
41
  # {
@@ -45,15 +45,28 @@ module Google
45
45
  # ]
46
46
  # }
47
47
  #
48
- # For a description of IAM and its features, see the
49
- # [IAM developer's guide](https://cloud.google.com/iam).
48
+ # **YAML Example**
49
+ #
50
+ # bindings:
51
+ # * members:
52
+ # * user:mike@example.com
53
+ # * group:admins@example.com
54
+ # * domain:google.com
55
+ # * serviceAccount:my-other-app@appspot.gserviceaccount.com
56
+ # role: roles/owner
57
+ # * members:
58
+ # * user:sean@example.com
59
+ # role: roles/viewer
60
+ #
61
+ #
62
+ # For a description of IAM and its features, see the
63
+ # [IAM developer's guide](https://cloud.google.com/iam/docs).
50
64
  # @!attribute [rw] version
51
65
  # @return [Integer]
52
- # Version of the `Policy`. The default version is 0.
66
+ # Deprecated.
53
67
  # @!attribute [rw] bindings
54
68
  # @return [Array<Google::Iam::V1::Binding>]
55
69
  # Associates a list of `members` to a `role`.
56
- # Multiple `bindings` must not be specified for the same `role`.
57
70
  # `bindings` with no members will result in an error.
58
71
  # @!attribute [rw] etag
59
72
  # @return [String]
@@ -74,7 +87,6 @@ module Google
74
87
  # @return [String]
75
88
  # Role that is assigned to `members`.
76
89
  # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
77
- # Required
78
90
  # @!attribute [rw] members
79
91
  # @return [Array<String>]
80
92
  # Specifies the identities requesting access for a Cloud Platform resource.
@@ -87,7 +99,7 @@ module Google
87
99
  # who is authenticated with a Google account or a service account.
88
100
  #
89
101
  # * `user:{emailid}`: An email address that represents a specific Google
90
- # account. For example, `alice@gmail.com` or `joe@example.com`.
102
+ # account. For example, `alice@gmail.com` .
91
103
  #
92
104
  #
93
105
  # * `serviceAccount:{emailid}`: An email address that represents a service
@@ -96,8 +108,15 @@ module Google
96
108
  # * `group:{emailid}`: An email address that represents a Google group.
97
109
  # For example, `admins@example.com`.
98
110
  #
99
- # * `domain:{domain}`: A Google Apps domain name that represents all the
111
+ #
112
+ # * `domain:{domain}`: The G Suite domain (primary) that represents all the
100
113
  # users of that domain. For example, `google.com` or `example.com`.
114
+ # @!attribute [rw] condition
115
+ # @return [Google::Type::Expr]
116
+ # The condition that is associated with this binding.
117
+ # NOTE: An unsatisfied condition will not allow user access via current
118
+ # binding. Different bindings, including their conditions, are examined
119
+ # independently.
101
120
  class Binding; end
102
121
  end
103
122
  end
@@ -0,0 +1,45 @@
1
+ # Copyright 2019 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 Type
18
+ # Represents an expression text. Example:
19
+ #
20
+ # title: "User account presence"
21
+ # description: "Determines whether the request has a user account"
22
+ # expression: "size(request.user) > 0"
23
+ # @!attribute [rw] expression
24
+ # @return [String]
25
+ # Textual representation of an expression in
26
+ # Common Expression Language syntax.
27
+ #
28
+ # The application context of the containing message determines which
29
+ # well-known feature set of CEL is supported.
30
+ # @!attribute [rw] title
31
+ # @return [String]
32
+ # An optional title for the expression, i.e. a short string describing
33
+ # its purpose. This can be used e.g. in UIs which allow to enter the
34
+ # expression.
35
+ # @!attribute [rw] description
36
+ # @return [String]
37
+ # An optional description of the expression. This is a longer text which
38
+ # describes the expression, e.g. when hovered over it in a UI.
39
+ # @!attribute [rw] location
40
+ # @return [String]
41
+ # An optional string indicating the location of the expression for error
42
+ # reporting, e.g. a file name and a position in the file.
43
+ class Expr; end
44
+ end
45
+ end
@@ -485,9 +485,9 @@ module Google
485
485
  # entry.set_cell(
486
486
  # "cf-1",
487
487
  # "field-1",
488
- # "XYZ"
488
+ # "XYZ",
489
489
  # timestamp: Time.now.to_i * 1000 # Time stamp in milli seconds.
490
- # ).delete_from_column("cf2", "field02")
490
+ # ).delete_cells("cf2", "field02")
491
491
  #
492
492
  # table.mutate_row(entry)
493
493
  #
@@ -96,7 +96,7 @@ module Google
96
96
  # entry.set_cell(
97
97
  # "cf-1",
98
98
  # "field-1",
99
- # "XYZ"
99
+ # "XYZ",
100
100
  # timestamp: Time.now.to_i * 1000 # Time stamp in millis seconds.
101
101
  # )
102
102
  #
@@ -66,9 +66,9 @@ module Google
66
66
  # entry.set_cell(
67
67
  # "cf-1",
68
68
  # "field-1",
69
- # "XYZ"
69
+ # "XYZ",
70
70
  # timestamp: Time.now.to_i * 1000 # Time stamp in milli seconds.
71
- # ).delete_from_column("cf2", "field02")
71
+ # ).delete_cells("cf2", "field02")
72
72
  #
73
73
  # table.mutate_row(entry)
74
74
  #
@@ -217,7 +217,7 @@ module Google
217
217
  # "field-1",
218
218
  # "XYZ",
219
219
  # timestamp: Time.now.to_i * 1000 # Time stamp in micro seconds.
220
- # ).delete_from_column("cf2", "field02")
220
+ # ).delete_cells("cf2", "field02")
221
221
  #
222
222
  # otherwise_mutations = Google::Cloud::Bigtable::MutationEntry.new
223
223
  # otherwise_mutations.delete_from_family("cf3")
@@ -359,9 +359,9 @@ module Google
359
359
  # entry.set_cell(
360
360
  # "cf-1",
361
361
  # "field-1",
362
- # "XYZ"
362
+ # "XYZ",
363
363
  # timestamp: Time.now.to_i * 1000 # Timestamp in milliseconds.
364
- # ).delete_from_column("cf2", "field02")
364
+ # ).delete_cells("cf2", "field02")
365
365
  #
366
366
  # table.mutate_row(entry)
367
367
  # @example Read rows using app profile routing
@@ -68,7 +68,12 @@ module Google
68
68
 
69
69
  def channel default_host
70
70
  require "grpc"
71
- GRPC::Core::Channel.new((host || default_host), nil, chan_creds)
71
+ GRPC::Core::Channel.new((host || default_host), chan_args, chan_creds)
72
+ end
73
+
74
+ def chan_args
75
+ { "grpc.max_send_message_length" => -1,
76
+ "grpc.max_receive_message_length" => -1 }
72
77
  end
73
78
 
74
79
  def chan_creds
@@ -27,6 +27,7 @@ require "google/gax"
27
27
 
28
28
  require "google/bigtable/v2/bigtable_pb"
29
29
  require "google/cloud/bigtable/v2/credentials"
30
+ require "google/cloud/bigtable/version"
30
31
 
31
32
  module Google
32
33
  module Cloud
@@ -144,7 +145,7 @@ module Google
144
145
  updater_proc = credentials.updater_proc
145
146
  end
146
147
 
147
- package_version = Gem.loaded_specs['google-cloud-bigtable'].version.version
148
+ package_version = Google::Cloud::Bigtable::VERSION
148
149
 
149
150
  google_api_client = "gl-ruby/#{RUBY_VERSION}"
150
151
  google_api_client << " #{lib_name}/#{lib_version}" if lib_name
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Bigtable
19
- VERSION = "0.3.1".freeze
19
+ VERSION = "0.4.0".freeze
20
20
  end
21
21
  end
22
22
  end
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.1
4
+ version: 0.4.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: 2019-04-29 00:00:00.000000000 Z
11
+ date: 2019-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -213,6 +213,7 @@ files:
213
213
  - lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/field_mask.rb
214
214
  - lib/google/cloud/bigtable/admin/v2/doc/google/protobuf/timestamp.rb
215
215
  - lib/google/cloud/bigtable/admin/v2/doc/google/rpc/status.rb
216
+ - lib/google/cloud/bigtable/admin/v2/doc/google/type/expr.rb
216
217
  - lib/google/cloud/bigtable/app_profile.rb
217
218
  - lib/google/cloud/bigtable/app_profile/job.rb
218
219
  - lib/google/cloud/bigtable/app_profile/list.rb