google-cloud-logging 2.3.1 → 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: fa5e9177bed7ff2feb86c315d5909c2a4b5a62d737d97013255fce17280fac59
4
- data.tar.gz: 5ffed5d6b74634499303c00fdcd1173a323343b858e43eaa656d09a2b416dff9
3
+ metadata.gz: 11a927b27787fcd8668330bcf4dfa1eb6f657d059eea2cd13b67317f913a2715
4
+ data.tar.gz: 59f533939ac992519a9234edc1b324f0676008c6e0cbf86455d385f2b44e5fec
5
5
  SHA512:
6
- metadata.gz: b10024972a427273f729a219b734af80ad62ec6d5b94bf9e1064a8c30c4f145316df900399ecc07387d10b517ac7cb00b7422868a9493494ae2820f20ea824db
7
- data.tar.gz: '073670209591e5b9dab798cb87f1f505b835f4775221f4923234f2700a0606987a1851dc5b958fc49ccde47915cbb196e53ca46461e28e2f6a560a82d24ec019'
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,17 @@
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
+
9
+ ### 2.3.2 (2022-10-18)
10
+
11
+ #### Bug Fixes
12
+
13
+ * update list logs response ([#19285](https://github.com/googleapis/google-cloud-ruby/issues/19285))
14
+
3
15
  ### 2.3.1 (2022-07-24)
4
16
 
5
17
  #### 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.
@@ -112,10 +112,9 @@ module Google
112
112
 
113
113
  def list_logs resource: nil, token: nil, max: nil
114
114
  parent = resource || "projects/#{@project}"
115
- paged_enum = logging.list_logs parent: parent,
116
- page_size: max,
117
- page_token: token
118
- paged_enum.response
115
+ logging.list_logs parent: parent,
116
+ page_size: max,
117
+ page_token: token
119
118
  end
120
119
 
121
120
  def delete_log name
@@ -136,7 +135,7 @@ module Google
136
135
  sink = Google::Cloud::Logging::V2::LogSink.new(
137
136
  {
138
137
  name: name, destination: destination, filter: filter
139
- }.delete_if { |_, v| v.nil? }
138
+ }.compact
140
139
  )
141
140
  sinks.create_sink parent: project_path,
142
141
  sink: sink,
@@ -151,7 +150,7 @@ module Google
151
150
  sink = Google::Cloud::Logging::V2::LogSink.new(
152
151
  {
153
152
  name: name, destination: destination, filter: filter
154
- }.delete_if { |_, v| v.nil? }
153
+ }.compact
155
154
  )
156
155
  sinks.update_sink sink_name: sink_path(name),
157
156
  sink: sink,
@@ -172,7 +171,7 @@ module Google
172
171
  def create_metric name, filter, description
173
172
  metric = Google::Cloud::Logging::V2::LogMetric.new(
174
173
  { name: name, description: description,
175
- filter: filter }.delete_if { |_, v| v.nil? }
174
+ filter: filter }.compact
176
175
  )
177
176
  metrics.create_log_metric parent: project_path, metric: metric
178
177
  end
@@ -184,7 +183,7 @@ module Google
184
183
  def update_metric name, description, filter
185
184
  metric = Google::Cloud::Logging::V2::LogMetric.new(
186
185
  { name: name, description: description,
187
- filter: filter }.delete_if { |_, v| v.nil? }
186
+ filter: filter }.compact
188
187
  )
189
188
  metrics.update_log_metric metric_name: metric_path(name), metric: metric
190
189
  end
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Logging
19
- VERSION = "2.3.1".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.1
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-07-25 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