google-cloud-logging 2.3.2 → 2.3.3

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: 473b09d591b64edc8378ad490294f2fd02d87840f87a3e3142f8558d4863d420
4
- data.tar.gz: 55095632346aca38160e35c163d52b96ead2b8bf9838f789f0f23ab73fd8bf3e
3
+ metadata.gz: 11a927b27787fcd8668330bcf4dfa1eb6f657d059eea2cd13b67317f913a2715
4
+ data.tar.gz: 59f533939ac992519a9234edc1b324f0676008c6e0cbf86455d385f2b44e5fec
5
5
  SHA512:
6
- metadata.gz: 18f459f8c336ea18deefe4abd05e794869a9e7b7f1e56bc589987de11780cf87498275a39aa30bd2a32964b4d039c5fa143ca96962f83d939bb2c8b14c1a00f0
7
- data.tar.gz: de57958405f5f8fe2eab91eb63def2d3b06b2143eaba9ad415140b47967a6535d53675d7758acc6c246766cbfd4a72b33428b6cda881b184df5f33fa85488576
6
+ metadata.gz: 7db0ad8097c35103ae99f0984b349469ca5a919ff61c8685c633e6d6b49ec57149333d5db773bf54cd6e74a7a0cf86e1f14f04bff6c6cccb2092d183397e7009
7
+ data.tar.gz: 2dc9663f86aaf7f2c1999003d21c948495b3c120e0f1b4c942f82cddbca1907da1a017382038c34e8c49a6145ee0d32ef0a8f0f1353900b45f087b5ac1f56ffa
data/AUTHENTICATION.md CHANGED
@@ -125,15 +125,6 @@ To configure your system for this, simply:
125
125
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
126
126
  *should* only be used during development.
127
127
 
128
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
129
- [dev-console]: https://console.cloud.google.com/project
130
-
131
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
132
-
133
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
134
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
135
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
136
-
137
128
  ## Creating a Service Account
138
129
 
139
130
  Google Cloud requires a **Project ID** and **Service Account Credentials** to
@@ -144,31 +135,22 @@ If you are not running this client within [Google Cloud Platform
144
135
  environments](#google-cloud-platform-environments), you need a Google
145
136
  Developers service account.
146
137
 
147
- 1. Visit the [Google Developers Console][dev-console].
138
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
148
139
  1. Create a new project or click on an existing project.
149
- 1. Activate the slide-out navigation tray and select **API Manager**. From
140
+ 1. Activate the menu in the upper left and select **APIs & Services**. From
150
141
  here, you will enable the APIs that your application requires.
151
142
 
152
- ![Enable the APIs that your application requires][enable-apis]
153
-
154
143
  *Note: You may need to enable billing in order to use these services.*
155
144
 
156
145
  1. Select **Credentials** from the side navigation.
157
146
 
158
- You should see a screen like one of the following.
159
-
160
- ![Create a new service account][create-new-service-account]
161
-
162
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
163
-
164
- Find the "Add credentials" drop down and select "Service account" to be
165
- guided through downloading a new JSON key file.
166
-
167
- If you want to re-use an existing service account, you can easily generate a
168
- new key file. Just select the account you wish to re-use, and click "Generate
169
- new JSON key":
147
+ Find the "Create credentials" drop down near the top of the page, and select
148
+ "Service account" to be guided through downloading a new JSON key file.
170
149
 
171
- ![Re-use an existing service account][reuse-service-account]
150
+ If you want to re-use an existing service account, you can easily generate
151
+ a new key file. Just select the account you wish to re-use click the pencil
152
+ tool on the right side to edit the service account, select the **Keys** tab,
153
+ and then select **Add Key**.
172
154
 
173
155
  The key file you download will be used by this library to authenticate API
174
156
  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.3.3 (2023-05-19)
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.3.2 (2022-10-18)
4
10
 
5
11
  #### Bug Fixes
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
data/OVERVIEW.md CHANGED
@@ -266,7 +266,7 @@ async.write_entries [entry1, entry2],
266
266
  ### Creating a Ruby Logger implementation
267
267
 
268
268
  If your environment requires a logger instance that is API-compatible with
269
- Ruby's standard library [Logger](http://ruby-doc.org/stdlib/libdoc/logger/rdoc),
269
+ Ruby's standard library [Logger](https://ruby-doc.org/current/stdlibs/logger/),
270
270
  you can use {Google::Cloud::Logging::Project#logger Project#logger} to create
271
271
  one.
272
272
 
@@ -164,7 +164,7 @@ module Google
164
164
 
165
165
  ##
166
166
  # Creates a logger instance that is API-compatible with Ruby's standard
167
- # library [Logger](http://ruby-doc.org/stdlib/libdoc/logger/rdoc).
167
+ # library [Logger](https://ruby-doc.org/current/stdlibs/logger/).
168
168
  #
169
169
  # The logger will use AsyncWriter to transmit log entries on a
170
170
  # background thread.
@@ -398,7 +398,7 @@ module Google
398
398
 
399
399
  ##
400
400
  # Creates a logger instance that is API-compatible with Ruby's standard
401
- # library [Logger](http://ruby-doc.org/stdlib/libdoc/logger/rdoc).
401
+ # library [Logger](https://ruby-doc.org/current/stdlibs/logger/).
402
402
  #
403
403
  # The logger will create a new AsyncWriter object to transmit log
404
404
  # entries on a background thread.
@@ -135,7 +135,7 @@ module Google
135
135
  sink = Google::Cloud::Logging::V2::LogSink.new(
136
136
  {
137
137
  name: name, destination: destination, filter: filter
138
- }.delete_if { |_, v| v.nil? }
138
+ }.compact
139
139
  )
140
140
  sinks.create_sink parent: project_path,
141
141
  sink: sink,
@@ -150,7 +150,7 @@ module Google
150
150
  sink = Google::Cloud::Logging::V2::LogSink.new(
151
151
  {
152
152
  name: name, destination: destination, filter: filter
153
- }.delete_if { |_, v| v.nil? }
153
+ }.compact
154
154
  )
155
155
  sinks.update_sink sink_name: sink_path(name),
156
156
  sink: sink,
@@ -171,7 +171,7 @@ module Google
171
171
  def create_metric name, filter, description
172
172
  metric = Google::Cloud::Logging::V2::LogMetric.new(
173
173
  { name: name, description: description,
174
- filter: filter }.delete_if { |_, v| v.nil? }
174
+ filter: filter }.compact
175
175
  )
176
176
  metrics.create_log_metric parent: project_path, metric: metric
177
177
  end
@@ -183,7 +183,7 @@ module Google
183
183
  def update_metric name, description, filter
184
184
  metric = Google::Cloud::Logging::V2::LogMetric.new(
185
185
  { name: name, description: description,
186
- filter: filter }.delete_if { |_, v| v.nil? }
186
+ filter: filter }.compact
187
187
  )
188
188
  metrics.update_log_metric metric_name: metric_path(name), metric: metric
189
189
  end
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Logging
19
- VERSION = "2.3.2".freeze
19
+ VERSION = "2.3.3".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-10-18 00:00:00.000000000 Z
12
+ date: 2023-05-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -297,7 +297,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
297
297
  - !ruby/object:Gem::Version
298
298
  version: '0'
299
299
  requirements: []
300
- rubygems_version: 3.3.14
300
+ rubygems_version: 3.4.2
301
301
  signing_key:
302
302
  specification_version: 4
303
303
  summary: API Client library for Stackdriver Logging