google-cloud-bigtable 2.7.0 → 2.7.1

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: ec6f4d74dfa766b50aad6316df5d1a573ce463c692a165f7a5b187ba8f7cff57
4
- data.tar.gz: 725ec7db3d5a85a4071b4914393917381a9a2fc603826700c0ebd00f5962b3a8
3
+ metadata.gz: 67e534271f2a313216bfb3d54e7a5ac84dec994ee4f42da33a81a0ecd9ab1230
4
+ data.tar.gz: 6a4e80bf21ded6b239f26a59fbb51997a3f32130454787ff0c15136841ce8c45
5
5
  SHA512:
6
- metadata.gz: 2f4f3d6b8c14de86c5b6c63187d652ad351d59409507e0c35abe99cfa52a9e0ce83ee57ed8be17c102f18576464a4b09ee4eb15ab076743286f57aa99f603315
7
- data.tar.gz: 8c33973c6872a227da6b1342e88738072485968df25160d9ad3fa1c5029d5a31cf03ee02ba612bae4c66b0d5665fd2f209940222be931392f4cee6ede2803780
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,11 @@
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
+
3
9
  ### 2.7.0 (2022-07-01)
4
10
 
5
11
  #### Features
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
@@ -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
@@ -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,
@@ -226,7 +226,7 @@ module Google
226
226
  def create_instance instance_id, display_name: nil, type: nil, labels: nil, clusters: nil
227
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
 
@@ -650,7 +650,7 @@ module Google
650
650
 
651
651
  def read_rows instance_id, table_id, app_profile_id: nil, rows: nil, filter: nil, rows_limit: nil
652
652
  client.read_rows(
653
- {
653
+ **{
654
654
  table_name: table_path(instance_id, table_id),
655
655
  rows: rows,
656
656
  filter: filter,
@@ -666,22 +666,22 @@ module Google
666
666
 
667
667
  def mutate_row table_name, row_key, mutations, app_profile_id: nil
668
668
  client.mutate_row(
669
- {
669
+ **{
670
670
  table_name: table_name,
671
671
  app_profile_id: app_profile_id,
672
672
  row_key: row_key,
673
673
  mutations: mutations
674
- }.delete_if { |_, v| v.nil? }
674
+ }.compact
675
675
  )
676
676
  end
677
677
 
678
678
  def mutate_rows table_name, entries, app_profile_id: nil
679
679
  client.mutate_rows(
680
- {
680
+ **{
681
681
  table_name: table_name,
682
682
  app_profile_id: app_profile_id,
683
683
  entries: entries
684
- }.delete_if { |_, v| v.nil? }
684
+ }.compact
685
685
  )
686
686
  end
687
687
 
@@ -692,25 +692,25 @@ module Google
692
692
  true_mutations: nil,
693
693
  false_mutations: nil
694
694
  client.check_and_mutate_row(
695
- {
695
+ **{
696
696
  table_name: table_name,
697
697
  app_profile_id: app_profile_id,
698
698
  row_key: row_key,
699
699
  predicate_filter: predicate_filter,
700
700
  true_mutations: true_mutations,
701
701
  false_mutations: false_mutations
702
- }.delete_if { |_, v| v.nil? }
702
+ }.compact
703
703
  )
704
704
  end
705
705
 
706
706
  def read_modify_write_row table_name, row_key, rules, app_profile_id: nil
707
707
  client.read_modify_write_row(
708
- {
708
+ **{
709
709
  table_name: table_name,
710
710
  app_profile_id: app_profile_id,
711
711
  row_key: row_key,
712
712
  rules: rules
713
- }.delete_if { |_, v| v.nil? }
713
+ }.compact
714
714
  )
715
715
  end
716
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.7.0".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.7.0
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-07-01 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
@@ -249,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  requirements: []
252
- rubygems_version: 3.3.14
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