google-cloud-resource_manager 0.29.0 → 0.30.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b4f6df99ae367d39f011dea18efabf2379755b8d2969c087d5a1c00ab8bacf0
|
4
|
+
data.tar.gz: d6fac18225cd9beb1e90f149ab506aaf3bc8031119fcae9bde38d7e18c7d4294
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72e46a071a6feaee960ea92b84cd04aa10f591dda5e8c907706bfa4b609d5032c9860ed3eaa742e5bb577707055a8dfb13879d37be6f9db210492ca070e20830
|
7
|
+
data.tar.gz: a1461d754b77f742afb56ffb417c52d8ea1200b650468ebc12a22f6e64f36453efb10f3e8f00ba848db0a50ddf878f81777c1d0010618a92b2a83cc0ed56d659
|
data/README.md
CHANGED
@@ -60,10 +60,35 @@ end
|
|
60
60
|
projects = resource_manager.projects filter: "labels.env:production"
|
61
61
|
```
|
62
62
|
|
63
|
+
## Enabling Logging
|
64
|
+
|
65
|
+
To enable logging for this library, set the logger for the underlying [Google API Client](https://github.com/google/google-api-ruby-client/blob/master/README.md#logging) library. The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html) as shown below, or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger) that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/).
|
66
|
+
|
67
|
+
If you do not set the logger explicitly and your application is running in a Rails environment, it will default to `Rails.logger`. Otherwise, if you do not set the logger and you are not using Rails, logging is disabled by default.
|
68
|
+
|
69
|
+
Configuring a Ruby stdlib logger:
|
70
|
+
|
71
|
+
```ruby
|
72
|
+
require "logger"
|
73
|
+
|
74
|
+
my_logger = Logger.new $stderr
|
75
|
+
my_logger.level = Logger::WARN
|
76
|
+
|
77
|
+
# Set the Google API Client logger
|
78
|
+
Google::Apis.logger = my_logger
|
79
|
+
```
|
80
|
+
|
63
81
|
## Supported Ruby Versions
|
64
82
|
|
65
83
|
This library is supported on Ruby 2.0+.
|
66
84
|
|
85
|
+
However, Ruby 2.3 or later is strongly recommended, as earlier releases have
|
86
|
+
reached or are nearing end-of-life. After June 1, 2018, Google will provide
|
87
|
+
official support only for Ruby versions that are considered current and
|
88
|
+
supported by Ruby Core (that is, Ruby versions that are either in normal
|
89
|
+
maintenance or in security maintenance).
|
90
|
+
See https://www.ruby-lang.org/en/downloads/branches/ for further details.
|
91
|
+
|
67
92
|
## Versioning
|
68
93
|
|
69
94
|
This library follows [Semantic Versioning](http://semver.org/).
|
@@ -58,6 +58,34 @@ module Google
|
|
58
58
|
# resource_manager = Google::Cloud::ResourceManager.new
|
59
59
|
# ```
|
60
60
|
#
|
61
|
+
# ## Enabling Logging
|
62
|
+
#
|
63
|
+
# To enable logging for this library, set the logger for the underlying
|
64
|
+
# [Google API Client](https://github.com/google/google-api-ruby-client/blob/master/README.md#logging)
|
65
|
+
# library. The logger that you set may be a Ruby stdlib
|
66
|
+
# [`Logger`](https://ruby-doc.org/stdlib-2.4.0/libdoc/logger/rdoc/Logger.html)
|
67
|
+
# as shown below, or a
|
68
|
+
# [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
|
69
|
+
# that will write logs to [Stackdriver
|
70
|
+
# Logging](https://cloud.google.com/logging/).
|
71
|
+
#
|
72
|
+
# If you do not set the logger explicitly and your application is running in
|
73
|
+
# a Rails environment, it will default to `Rails.logger`. Otherwise, if you
|
74
|
+
# do not set the logger and you are not using Rails, logging is disabled by
|
75
|
+
# default.
|
76
|
+
#
|
77
|
+
# Configuring a Ruby stdlib logger:
|
78
|
+
#
|
79
|
+
# ```ruby
|
80
|
+
# require "logger"
|
81
|
+
#
|
82
|
+
# my_logger = Logger.new $stderr
|
83
|
+
# my_logger.level = Logger::WARN
|
84
|
+
#
|
85
|
+
# # Set the Google API Client logger
|
86
|
+
# Google::Apis.logger = my_logger
|
87
|
+
# ```
|
88
|
+
#
|
61
89
|
# ## Listing Projects
|
62
90
|
#
|
63
91
|
# Project is a collection of settings, credentials, and metadata about the
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-resource_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.30.0
|
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: 2018-
|
12
|
+
date: 2018-06-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.
|
34
|
+
version: '0.23'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.
|
41
|
+
version: '0.23'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: googleauth
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
221
|
version: '0'
|
222
222
|
requirements: []
|
223
223
|
rubyforge_project:
|
224
|
-
rubygems_version: 2.7.
|
224
|
+
rubygems_version: 2.7.7
|
225
225
|
signing_key:
|
226
226
|
specification_version: 4
|
227
227
|
summary: API Client library for Google Cloud Resource Manager
|