google-cloud-bigtable 2.6.5 → 2.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97a1784cba140215ea8db7b6d43abf58d85363946e10ab682343134dc22a7629
4
- data.tar.gz: 14079406da2a6e296375da01eb5259339ee1b87a6a69789fde5c7ea1d22efc40
3
+ metadata.gz: 67e534271f2a313216bfb3d54e7a5ac84dec994ee4f42da33a81a0ecd9ab1230
4
+ data.tar.gz: 6a4e80bf21ded6b239f26a59fbb51997a3f32130454787ff0c15136841ce8c45
5
5
  SHA512:
6
- metadata.gz: 98aff7f194898cc4bc2168412289709c38cb3bab3f57161617cbb353c7db6426393cc419bf507d6858e1854e9b61034808d0db94e45394c10d183dbe15b75340
7
- data.tar.gz: c09df8da6f3dc5a2e40fa8e0d427ca79d2e4772f9665166f133abc18f1bc6d71709e94bb8072326d3227062054e6a5eeb17a9f7c1105b88e89a571d7a7978c03
6
+ metadata.gz: 0cd1d97d9bb9663ccb56653cb6de6e60062ad9f9bb2ff8a3c010f12dab27d0ef93fb5ce38c3fefc1830df60857cb2fb26189c6bb6c15c21a53b5149b170f7040
7
+ data.tar.gz: d0407fd6d9f71869bc1e3a2897ab83d6de5b65c9c94a14332bb4d557de17c7c9e20cb2c74fd3e005fedb53917db02c098236d96e8aaf2213d101b2760bf0af4c
data/AUTHENTICATION.md CHANGED
@@ -124,15 +124,6 @@ To configure your system for this, simply:
124
124
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
125
125
  *should* only be used during development.
126
126
 
127
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
128
- [dev-console]: https://console.cloud.google.com/project
129
-
130
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
131
-
132
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
133
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
134
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
135
-
136
127
  ## Creating a Service Account
137
128
 
138
129
  Google Cloud requires a **Project ID** and **Service Account Credentials** to
@@ -143,31 +134,22 @@ If you are not running this client within [Google Cloud Platform
143
134
  environments](#google-cloud-platform-environments), you need a Google
144
135
  Developers service account.
145
136
 
146
- 1. Visit the [Google Developers Console][dev-console].
137
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
147
138
  1. Create a new project or click on an existing project.
148
- 1. Activate the slide-out navigation tray and select **API Manager**. From
139
+ 1. Activate the menu in the upper left and select **APIs & Services**. From
149
140
  here, you will enable the APIs that your application requires.
150
141
 
151
- ![Enable the APIs that your application requires][enable-apis]
152
-
153
142
  *Note: You may need to enable billing in order to use these services.*
154
143
 
155
144
  1. Select **Credentials** from the side navigation.
156
145
 
157
- You should see a screen like one of the following.
158
-
159
- ![Create a new service account][create-new-service-account]
160
-
161
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
162
-
163
- Find the "Add credentials" drop down and select "Service account" to be
164
- guided through downloading a new JSON key file.
165
-
166
- If you want to re-use an existing service account, you can easily generate a
167
- new key file. Just select the account you wish to re-use, and click "Generate
168
- new JSON key":
146
+ Find the "Create credentials" drop down near the top of the page, and select
147
+ "Service account" to be guided through downloading a new JSON key file.
169
148
 
170
- ![Re-use an existing service account][reuse-service-account]
149
+ If you want to re-use an existing service account, you can easily generate
150
+ a new key file. Just select the account you wish to re-use click the pencil
151
+ tool on the right side to edit the service account, select the **Keys** tab,
152
+ and then select **Add Key**.
171
153
 
172
154
  The key file you download will be used by this library to authenticate API
173
155
  requests and should be stored in a secure location.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release History
2
2
 
3
+ ### 2.7.1 (2023-06-16)
4
+
5
+ #### Documentation
6
+
7
+ * Fixed broken links in authentication documentation ([#21619](https://github.com/googleapis/google-cloud-ruby/issues/21619))
8
+
9
+ ### 2.7.0 (2022-07-01)
10
+
11
+ #### Features
12
+
13
+ * Updated minimum Ruby version to 2.6 ([#18453](https://github.com/googleapis/google-cloud-ruby/issues/18453))
14
+
3
15
  ### 2.6.5 / 2022-01-11
4
16
 
5
17
  #### Documentation
data/LOGGING.md CHANGED
@@ -3,7 +3,7 @@
3
3
  To enable logging for this library, set the logger for the underlying
4
4
  [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library. The logger
5
5
  that you set may be a Ruby stdlib
6
- [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as
6
+ [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as
7
7
  shown below, or a
8
8
  [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
9
9
  that will write logs to [Stackdriver
@@ -331,7 +331,7 @@ module Google
331
331
  # @return [Hash]
332
332
  #
333
333
  def to_grpc_hash
334
- Hash[to_grpc.to_a]
334
+ to_grpc.to_a.to_h
335
335
  end
336
336
 
337
337
  ##
@@ -103,7 +103,7 @@ module Google
103
103
  location: location,
104
104
  default_storage_type: storage_type,
105
105
  encryption_config: encryption_config
106
- }.delete_if { |_, v| v.nil? }
106
+ }.compact
107
107
 
108
108
  self[name] = Google::Cloud::Bigtable::Admin::V2::Cluster.new attrs
109
109
  end
@@ -245,7 +245,7 @@ module Google
245
245
  labels ||= {}
246
246
  @grpc.labels = Google::Protobuf::Map.new(
247
247
  :string, :string,
248
- Hash[labels.map { |k, v| [String(k), String(v)] }]
248
+ labels.to_h { |k, v| [String(k), String(v)] }
249
249
  )
250
250
  end
251
251
 
@@ -429,7 +429,7 @@ module Google
429
429
  serve_nodes: nodes,
430
430
  default_storage_type: storage_type,
431
431
  location: location
432
- }.delete_if { |_, v| v.nil? }
432
+ }.compact
433
433
 
434
434
  cluster = Google::Cloud::Bigtable::Admin::V2::Cluster.new attrs
435
435
  grpc = service.create_cluster instance_id, cluster_id, cluster
@@ -721,7 +721,7 @@ module Google
721
721
  single_cluster_routing: single_cluster_routing,
722
722
  description: description,
723
723
  etag: etag
724
- }.delete_if { |_, v| v.nil? }
724
+ }.compact
725
725
 
726
726
  grpc = service.create_app_profile(
727
727
  instance_id,
@@ -224,9 +224,9 @@ module Google
224
224
  # end
225
225
  #
226
226
  def create_instance instance_id, display_name: nil, type: nil, labels: nil, clusters: nil
227
- labels = Hash[labels.map { |k, v| [String(k), String(v)] }] if labels
227
+ labels = labels.to_h { |k, v| [String(k), String(v)] } if labels
228
228
 
229
- instance_attrs = { display_name: display_name, type: type, labels: labels }.delete_if { |_, v| v.nil? }
229
+ instance_attrs = { display_name: display_name, type: type, labels: labels }.compact
230
230
  instance = Google::Cloud::Bigtable::Admin::V2::Instance.new instance_attrs
231
231
  clusters ||= Instance::ClusterMap.new
232
232
  yield clusters if block_given?
@@ -282,12 +282,12 @@ module Google
282
282
  initial_splits = initial_splits.map { |key| { key: key } } if initial_splits
283
283
 
284
284
  tables.create_table(
285
- {
285
+ **{
286
286
  parent: instance_path(instance_id),
287
287
  table_id: table_id,
288
288
  table: table,
289
289
  initial_splits: initial_splits
290
- }.delete_if { |_, v| v.nil? }
290
+ }.compact
291
291
  )
292
292
  end
293
293
 
@@ -649,11 +649,15 @@ module Google
649
649
  end
650
650
 
651
651
  def read_rows instance_id, table_id, app_profile_id: nil, rows: nil, filter: nil, rows_limit: nil
652
- client.read_rows table_name: table_path(instance_id, table_id),
653
- rows: rows,
654
- filter: filter,
655
- rows_limit: rows_limit,
656
- app_profile_id: app_profile_id
652
+ client.read_rows(
653
+ **{
654
+ table_name: table_path(instance_id, table_id),
655
+ rows: rows,
656
+ filter: filter,
657
+ rows_limit: rows_limit,
658
+ app_profile_id: app_profile_id
659
+ }
660
+ )
657
661
  end
658
662
 
659
663
  def sample_row_keys table_name, app_profile_id: nil
@@ -662,22 +666,22 @@ module Google
662
666
 
663
667
  def mutate_row table_name, row_key, mutations, app_profile_id: nil
664
668
  client.mutate_row(
665
- {
669
+ **{
666
670
  table_name: table_name,
667
671
  app_profile_id: app_profile_id,
668
672
  row_key: row_key,
669
673
  mutations: mutations
670
- }.delete_if { |_, v| v.nil? }
674
+ }.compact
671
675
  )
672
676
  end
673
677
 
674
678
  def mutate_rows table_name, entries, app_profile_id: nil
675
679
  client.mutate_rows(
676
- {
680
+ **{
677
681
  table_name: table_name,
678
682
  app_profile_id: app_profile_id,
679
683
  entries: entries
680
- }.delete_if { |_, v| v.nil? }
684
+ }.compact
681
685
  )
682
686
  end
683
687
 
@@ -688,25 +692,25 @@ module Google
688
692
  true_mutations: nil,
689
693
  false_mutations: nil
690
694
  client.check_and_mutate_row(
691
- {
695
+ **{
692
696
  table_name: table_name,
693
697
  app_profile_id: app_profile_id,
694
698
  row_key: row_key,
695
699
  predicate_filter: predicate_filter,
696
700
  true_mutations: true_mutations,
697
701
  false_mutations: false_mutations
698
- }.delete_if { |_, v| v.nil? }
702
+ }.compact
699
703
  )
700
704
  end
701
705
 
702
706
  def read_modify_write_row table_name, row_key, rules, app_profile_id: nil
703
707
  client.read_modify_write_row(
704
- {
708
+ **{
705
709
  table_name: table_name,
706
710
  app_profile_id: app_profile_id,
707
711
  row_key: row_key,
708
712
  rules: rules
709
- }.delete_if { |_, v| v.nil? }
713
+ }.compact
710
714
  )
711
715
  end
712
716
 
@@ -470,7 +470,7 @@ module Google
470
470
  table = Google::Cloud::Bigtable::Admin::V2::Table.new({
471
471
  column_families: column_families.to_grpc_hash,
472
472
  granularity: granularity
473
- }.delete_if { |_, v| v.nil? })
473
+ }.compact)
474
474
 
475
475
  grpc = service.create_table instance_id, table_id, table, initial_splits: initial_splits
476
476
  from_grpc grpc, service, view: :SCHEMA_VIEW
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Bigtable
19
- VERSION = "2.6.5".freeze
19
+ VERSION = "2.7.1".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: 2.6.5
4
+ version: 2.7.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: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2023-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-bigtable-admin-v2
@@ -58,28 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.25.1
61
+ version: 1.26.1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.25.1
68
+ version: 1.26.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: minitest
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '5.14'
75
+ version: '5.16'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '5.14'
82
+ version: '5.16'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: minitest-focus
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -242,14 +242,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
242
242
  requirements:
243
243
  - - ">="
244
244
  - !ruby/object:Gem::Version
245
- version: '2.5'
245
+ version: '2.6'
246
246
  required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  requirements:
248
248
  - - ">="
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  requirements: []
252
- rubygems_version: 3.3.4
252
+ rubygems_version: 3.4.2
253
253
  signing_key:
254
254
  specification_version: 4
255
255
  summary: API Client library for Cloud Bigtable API