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 +4 -4
- data/.yardopts +1 -1
- data/README.md +32 -22
- data/lib/google/cloud/security_center_management/v1/security_center_management/client.rb +322 -230
- data/lib/google/cloud/security_center_management/v1/security_center_management/rest/client.rb +322 -230
- data/lib/google/cloud/security_center_management/v1/security_center_management/rest/service_stub.rb +182 -128
- data/lib/google/cloud/security_center_management/v1/version.rb +1 -1
- data/lib/google/cloud/securitycentermanagement/v1/security_center_management_services_pb.rb +60 -41
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/cloud/securitycentermanagement/v1/security_center_management.rb +511 -430
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9edafcef2094c417af25abb94ff6eed43a02a59fdc987ed2cfa36bd6dc9b7071
|
4
|
+
data.tar.gz: 55f4f52af0fbf735bbbba73f6c59ce745e48b86cbc0319e2553a9e6d7ad2bdbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b9f887dd78c453249fd68c903ec792b4c72259830eb928dea967ec498ae63775d0fc64e65cdec71ed604b3441f4f54430089dffd0614889171f46cdb8efeef3
|
7
|
+
data.tar.gz: e5541c8c795139f0a9960edcc064f56245270ca27d0435b3c25bb25d8ffd574fbcb561c4b219a63af3aeb3155affa1d1451340ed792e24865433663bf39d541a
|
data/.yardopts
CHANGED
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
|
-
##
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
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
|
-
|
60
|
-
|
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).
|