google-cloud-security_center-v1 0.3.0 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/google/cloud/security_center/v1/security_center/client.rb +19 -18
- data/lib/google/cloud/security_center/v1/security_center/operations.rb +1 -1
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_services_pb.rb +2 -2
- data/proto_docs/google/cloud/securitycenter/v1/finding.rb +5 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9d2378b4719a0610bd2d8c0d52d876c96b29095f9cfdf1bfe55fee64a8b03df
|
4
|
+
data.tar.gz: 891b570b8ac41a553e50de6c05f04297c805c100ee5ab3327ecc1cb7934bd24d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcb9d3ed3966aad8a6d78952276d3318e9f55afcc83a42eca5874fa28c45c9777095c8a30ce4d5b74b3c0aabb5171f60e57f69295e29d282637bd8e88e1914bc
|
7
|
+
data.tar.gz: e62a087417860ec5d1ea1a35bda34af96bc5366e51a431663d52d9f150b1fc7a6f5fa57a77cab107e4b6df79dcd2a8168184e6ab89d7964bb760a493f06fc3c1
|
data/README.md
CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
18
18
|
|
19
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
20
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/securitycenter.googleapis.com)
|
21
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
22
23
|
|
23
24
|
## Quick Start
|
@@ -33,6 +34,9 @@ response = client.create_source request
|
|
33
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-security_center-v1/latest)
|
34
35
|
for class and method documentation.
|
35
36
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/security-command-center)
|
38
|
+
for general usage information.
|
39
|
+
|
36
40
|
## Enabling Logging
|
37
41
|
|
38
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
@@ -78,7 +78,7 @@ module Google
|
|
78
78
|
initial_delay: 0.1,
|
79
79
|
max_delay: 60.0,
|
80
80
|
multiplier: 1.3,
|
81
|
-
retry_codes: [
|
81
|
+
retry_codes: [4, 14]
|
82
82
|
}
|
83
83
|
|
84
84
|
default_config.rpcs.get_notification_config.timeout = 60.0
|
@@ -86,7 +86,7 @@ module Google
|
|
86
86
|
initial_delay: 0.1,
|
87
87
|
max_delay: 60.0,
|
88
88
|
multiplier: 1.3,
|
89
|
-
retry_codes: [
|
89
|
+
retry_codes: [4, 14]
|
90
90
|
}
|
91
91
|
|
92
92
|
default_config.rpcs.get_organization_settings.timeout = 60.0
|
@@ -94,7 +94,7 @@ module Google
|
|
94
94
|
initial_delay: 0.1,
|
95
95
|
max_delay: 60.0,
|
96
96
|
multiplier: 1.3,
|
97
|
-
retry_codes: [
|
97
|
+
retry_codes: [4, 14]
|
98
98
|
}
|
99
99
|
|
100
100
|
default_config.rpcs.get_source.timeout = 60.0
|
@@ -102,39 +102,39 @@ module Google
|
|
102
102
|
initial_delay: 0.1,
|
103
103
|
max_delay: 60.0,
|
104
104
|
multiplier: 1.3,
|
105
|
-
retry_codes: [
|
105
|
+
retry_codes: [4, 14]
|
106
106
|
}
|
107
107
|
|
108
|
-
default_config.rpcs.group_assets.timeout =
|
108
|
+
default_config.rpcs.group_assets.timeout = 480.0
|
109
109
|
default_config.rpcs.group_assets.retry_policy = {
|
110
110
|
initial_delay: 0.1,
|
111
111
|
max_delay: 60.0,
|
112
112
|
multiplier: 1.3,
|
113
|
-
retry_codes: [
|
113
|
+
retry_codes: [4, 14]
|
114
114
|
}
|
115
115
|
|
116
|
-
default_config.rpcs.group_findings.timeout =
|
116
|
+
default_config.rpcs.group_findings.timeout = 480.0
|
117
117
|
default_config.rpcs.group_findings.retry_policy = {
|
118
118
|
initial_delay: 0.1,
|
119
119
|
max_delay: 60.0,
|
120
120
|
multiplier: 1.3,
|
121
|
-
retry_codes: [
|
121
|
+
retry_codes: [4, 14]
|
122
122
|
}
|
123
123
|
|
124
|
-
default_config.rpcs.list_assets.timeout =
|
124
|
+
default_config.rpcs.list_assets.timeout = 480.0
|
125
125
|
default_config.rpcs.list_assets.retry_policy = {
|
126
126
|
initial_delay: 0.1,
|
127
127
|
max_delay: 60.0,
|
128
128
|
multiplier: 1.3,
|
129
|
-
retry_codes: [
|
129
|
+
retry_codes: [4, 14]
|
130
130
|
}
|
131
131
|
|
132
|
-
default_config.rpcs.list_findings.timeout =
|
132
|
+
default_config.rpcs.list_findings.timeout = 480.0
|
133
133
|
default_config.rpcs.list_findings.retry_policy = {
|
134
134
|
initial_delay: 0.1,
|
135
135
|
max_delay: 60.0,
|
136
136
|
multiplier: 1.3,
|
137
|
-
retry_codes: [
|
137
|
+
retry_codes: [4, 14]
|
138
138
|
}
|
139
139
|
|
140
140
|
default_config.rpcs.list_notification_configs.timeout = 60.0
|
@@ -142,7 +142,7 @@ module Google
|
|
142
142
|
initial_delay: 0.1,
|
143
143
|
max_delay: 60.0,
|
144
144
|
multiplier: 1.3,
|
145
|
-
retry_codes: [
|
145
|
+
retry_codes: [4, 14]
|
146
146
|
}
|
147
147
|
|
148
148
|
default_config.rpcs.list_sources.timeout = 60.0
|
@@ -150,7 +150,7 @@ module Google
|
|
150
150
|
initial_delay: 0.1,
|
151
151
|
max_delay: 60.0,
|
152
152
|
multiplier: 1.3,
|
153
|
-
retry_codes: [
|
153
|
+
retry_codes: [4, 14]
|
154
154
|
}
|
155
155
|
|
156
156
|
default_config.rpcs.run_asset_discovery.timeout = 60.0
|
@@ -164,7 +164,7 @@ module Google
|
|
164
164
|
initial_delay: 0.1,
|
165
165
|
max_delay: 60.0,
|
166
166
|
multiplier: 1.3,
|
167
|
-
retry_codes: [
|
167
|
+
retry_codes: [4, 14]
|
168
168
|
}
|
169
169
|
|
170
170
|
default_config.rpcs.update_finding.timeout = 60.0
|
@@ -175,7 +175,7 @@ module Google
|
|
175
175
|
|
176
176
|
default_config.rpcs.update_source.timeout = 60.0
|
177
177
|
|
178
|
-
default_config.rpcs.update_security_marks.timeout =
|
178
|
+
default_config.rpcs.update_security_marks.timeout = 480.0
|
179
179
|
|
180
180
|
default_config
|
181
181
|
end
|
@@ -2104,7 +2104,8 @@ module Google
|
|
2104
2104
|
end
|
2105
2105
|
|
2106
2106
|
##
|
2107
|
-
# Updates a notification config.
|
2107
|
+
# Updates a notification config. The following update
|
2108
|
+
# fields are allowed: description, pubsub_topic, streaming_config.filter
|
2108
2109
|
#
|
2109
2110
|
# @overload update_notification_config(request, options = nil)
|
2110
2111
|
# Pass arguments to `update_notification_config` via a request object, either of type
|
@@ -2474,7 +2475,7 @@ module Google
|
|
2474
2475
|
|
2475
2476
|
config_attr :endpoint, "securitycenter.googleapis.com", ::String
|
2476
2477
|
config_attr :credentials, nil do |value|
|
2477
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2478
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2478
2479
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
2479
2480
|
allowed.any? { |klass| klass === value }
|
2480
2481
|
end
|
@@ -475,7 +475,7 @@ module Google
|
|
475
475
|
|
476
476
|
config_attr :endpoint, "securitycenter.googleapis.com", ::String
|
477
477
|
config_attr :credentials, nil do |value|
|
478
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
478
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
479
479
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
480
480
|
allowed.any? { |klass| klass === value }
|
481
481
|
end
|
@@ -86,8 +86,8 @@ module Google
|
|
86
86
|
# Creates or updates a finding. The corresponding source must exist for a
|
87
87
|
# finding creation to succeed.
|
88
88
|
rpc :UpdateFinding, Google::Cloud::SecurityCenter::V1::UpdateFindingRequest, Google::Cloud::SecurityCenter::V1::Finding
|
89
|
-
#
|
90
|
-
#
|
89
|
+
# Updates a notification config. The following update
|
90
|
+
# fields are allowed: description, pubsub_topic, streaming_config.filter
|
91
91
|
rpc :UpdateNotificationConfig, Google::Cloud::SecurityCenter::V1::UpdateNotificationConfigRequest, Google::Cloud::SecurityCenter::V1::NotificationConfig
|
92
92
|
# Updates an organization's settings.
|
93
93
|
rpc :UpdateOrganizationSettings, Google::Cloud::SecurityCenter::V1::UpdateOrganizationSettingsRequest, Google::Cloud::SecurityCenter::V1::OrganizationSettings
|
@@ -75,9 +75,11 @@ module Google
|
|
75
75
|
# to the finding.
|
76
76
|
# @!attribute [rw] event_time
|
77
77
|
# @return [::Google::Protobuf::Timestamp]
|
78
|
-
# The time at which the event took place
|
79
|
-
# represents an open firewall it would
|
80
|
-
# the firewall became open. The
|
78
|
+
# The time at which the event took place, or when an update to the finding
|
79
|
+
# occurred. For example, if the finding represents an open firewall it would
|
80
|
+
# capture the time the detector believes the firewall became open. The
|
81
|
+
# accuracy is determined by the detector. If the finding were to be resolved
|
82
|
+
# afterward, this time would reflect when the finding was resolved.
|
81
83
|
# @!attribute [rw] create_time
|
82
84
|
# @return [::Google::Protobuf::Timestamp]
|
83
85
|
# The time at which the finding was created in Security Command Center.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-security_center-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-errors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|