google-cloud-security_center_management-v1 1.0.1 → 1.2.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: 776d72d7c4af790365445ea6c665f2050515eb7d8ca69375dd6f8e8c1a53772d
4
- data.tar.gz: dc23cbf119a0425f3720ecf4256265238bf223f62ce7ca2245793fb86e5e695e
3
+ metadata.gz: 9edafcef2094c417af25abb94ff6eed43a02a59fdc987ed2cfa36bd6dc9b7071
4
+ data.tar.gz: 55f4f52af0fbf735bbbba73f6c59ce745e48b86cbc0319e2553a9e6d7ad2bdbb
5
5
  SHA512:
6
- metadata.gz: 4dffc56dc80c9c2a189a1d12608032b085e8f1939c992c8d62cce103287fa3829f161e9382f4973f5ac50c58885cf7bd47c321e561fa2933fad3b986c4724c39
7
- data.tar.gz: 5be224ef5d0207d9936a4b6e3fbb08bd2c1af68e38bde338b3d1209f71b767c41aa0bce96c0522d688f38faf66223e2183ec0f1f3e5aa03e1c4ace1002f106e7
6
+ metadata.gz: 4b9f887dd78c453249fd68c903ec792b4c72259830eb928dea967ec498ae63775d0fc64e65cdec71ed604b3441f4f54430089dffd0614889171f46cdb8efeef3
7
+ data.tar.gz: e5541c8c795139f0a9960edcc064f56245270ca27d0435b3c25bb25d8ffd574fbcb561c4b219a63af3aeb3155affa1d1451340ed792e24865433663bf39d541a
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title="Security Center Management V1 API"
2
+ --title="Security Command Center Management V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Ruby Client for the Security Center Management V1 API
1
+ # Ruby Client for the Security Command Center Management V1 API
2
2
 
3
3
  Management API for Security Command Center, a built-in security and risk management solution for Google Cloud. Use this API to programmatically update the settings and configuration of Security Command Center.
4
4
 
@@ -7,7 +7,7 @@ Management API for Security Command Center, a built-in security and risk managem
7
7
  https://github.com/googleapis/google-cloud-ruby
8
8
 
9
9
  This gem is a _versioned_ client. It provides basic client classes for a
10
- specific version of the Security Center Management V1 API. Most users should consider using
10
+ specific version of the Security Command Center Management V1 API. Most users should consider using
11
11
  the main client gem,
12
12
  [google-cloud-security_center_management](https://rubygems.org/gems/google-cloud-security_center_management).
13
13
  See the section below titled *Which client should I use?* for more information.
@@ -43,33 +43,43 @@ for class and method documentation.
43
43
  See also the [Product Documentation](https://cloud.google.com/security-command-center/docs/reference/security-center-management/rest)
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/security_center_management/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::SecurityCenterManagement::V1::SecurityCenterManagement::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).