google-cloud-security_center-v1p1beta1 0.7.0 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/security_center/v1p1beta1/security_center/client.rb +613 -173
- data/lib/google/cloud/security_center/v1p1beta1/security_center/operations.rb +149 -37
- data/lib/google/cloud/security_center/v1p1beta1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1p1beta1/asset_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/finding_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/folder_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v1p1beta1/notification_config_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/notification_message_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/organization_settings_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/resource_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/security_marks_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/source_pb.rb +2 -2
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5578bc9d410525f6a41973673608d53b92a11276db989f6b7da31e796f55df0f
|
4
|
+
data.tar.gz: 9971bbd9fbe1e6c284cfb63c95435c71b78bff41250f6add2c9be296afc0de48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4e61afb0aa0a996f815711c2fc39b9b6bb31d409e1f494e0f7b8d0d949730576a7c3ae0e3aacb6f8589acf16ba55c797030d2bba4cfb1087b387abe36c8e737
|
7
|
+
data.tar.gz: 0fce8b67898544d298bf52161ed39a311e485b3d1c6aa5fcde09b6b934ea783332072bb3442878aa6c1ecf6de15833aa0b68e0cac0cbd5437740ce9936111da1
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-security_center-v1p1beta1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `SECURITY_CENTER_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `SECURITY_CENTER_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/security_center/v1p1beta1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/security_center/v1p1beta1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/security_center/v1p1beta1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/security_center/v1p1beta1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_source request
|
38
38
|
```
|
39
39
|
|