google-cloud-vmware_engine-v1 0.9.2 → 0.10.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: a92dd83b8ec54929137de2f4c5e6d1c34e0e6038b8a81e6d5d225bc63e0f34d4
4
- data.tar.gz: 4e0298f1f4176fd5c1881d3d0adbaf31eaefa7193393aef6b58280bd7dbff6f4
3
+ metadata.gz: 6fc894db606bb944f2a24730dbe1e39f4040c65f1307be8d8fb7de61f67c1ae8
4
+ data.tar.gz: d50a966d13ebf3e525d325dba8dc683dd1ad53f0c62e4a0c01e92c21985ae2da
5
5
  SHA512:
6
- metadata.gz: 4c0e5591ee5ec14ea2be54750607d6d6f3df637abf78cfedf581a9720760c596c710b9da9e878cf2240f7456d70ff272bdab23a46239acab26fb5b1bb43146b3
7
- data.tar.gz: 959c0d14449a77429e01b5271f8631ff6fe709ce351bee1607fe3b05bfaf4504da130961e304140767ee4240d65e9dd3a37ce1f20dbb33c155ec89ff5afae882
6
+ metadata.gz: 2dcd8e779ebbb5218b0479729168657f5d94dff61fa7c15968906ed956bd3b1178cb72d60d26e0987c7bb37d6401a2c9d46ed05a49ebafe3501b1918431f7494
7
+ data.tar.gz: 2008db3ccf77c4aed2d716f164f57e019fd49d32eb90f9b687ccf529751073cbca8c8f769948423f04f25f4e8f25f9f02028f5498c63ca32f31eb014270f1837
data/README.md CHANGED
@@ -43,33 +43,43 @@ for class and method documentation.
43
43
  See also the [Product Documentation](https://cloud.google.com/vmware-engine/)
44
44
  for general usage information.
45
45
 
46
- ## Enabling Logging
47
-
48
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
- that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
-
54
- Configuring a Ruby stdlib logger:
46
+ ## Debug Logging
47
+
48
+ This library comes with opt-in Debug Logging that can help you troubleshoot
49
+ your application's integration with the API. When logging is activated, key
50
+ events such as requests and responses, along with data payloads and metadata
51
+ such as headers and client configuration, are logged to the standard error
52
+ stream.
53
+
54
+ **WARNING:** Client Library Debug Logging includes your data payloads in
55
+ plaintext, which could include sensitive data such as PII for yourself or your
56
+ customers, private keys, or other security data that could be compromising if
57
+ leaked. Always practice good data hygiene with your application logs, and follow
58
+ the principle of least access. Google also recommends that Client Library Debug
59
+ Logging be enabled only temporarily during active debugging, and not used
60
+ permanently in production.
61
+
62
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
63
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
64
+ list of client library gem names. This will select the default logging behavior,
65
+ which writes logs to the standard error stream. On a local workstation, this may
66
+ result in logs appearing on the console. When running on a Google Cloud hosting
67
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
68
+ results in logs appearing alongside your application logs in the
69
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
70
+
71
+ You can customize logging by modifying the `logger` configuration when
72
+ constructing a client object. For example:
55
73
 
56
74
  ```ruby
75
+ require "google/cloud/vmware_engine/v1"
57
76
  require "logger"
58
77
 
59
- module MyLogger
60
- LOGGER = Logger.new $stderr, level: Logger::WARN
61
- def logger
62
- LOGGER
63
- end
64
- end
65
-
66
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
67
- module GRPC
68
- extend MyLogger
78
+ client = ::Google::Cloud::VmwareEngine::V1::VmwareEngine::Client.new do |config|
79
+ config.logger = Logger.new "my-app.log"
69
80
  end
70
81
  ```
71
82
 
72
-
73
83
  ## Google Cloud Samples
74
84
 
75
85
  To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module VmwareEngine
23
23
  module V1
24
- VERSION = "0.9.2"
24
+ VERSION = "0.10.0"
25
25
  end
26
26
  end
27
27
  end