google-cloud-security_center-v1p1beta1 0.3.1 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/security_center/v1p1beta1/security_center/client.rb +68 -71
- data/lib/google/cloud/security_center/v1p1beta1/security_center/operations.rb +1 -1
- data/lib/google/cloud/security_center/v1p1beta1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1p1beta1/finding_pb.rb +9 -0
- data/lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_pb.rb +1 -0
- data/lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_services_pb.rb +23 -25
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/finding.rb +28 -3
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/securitycenter_service.rb +34 -37
- 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: 55d4cb10b37b057be24e22f5111c8f232ed0ce29cb2ddf7d3b97bf9dbcceeb1a
|
4
|
+
data.tar.gz: 6006c7922675699717d1e8efa6c838f12936299120484b8dedfc891217694c76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ff41ab173b21ec4f012202cb36c7da10bbf6fbbc00176ae34febf92a53dd4b343bf00fb1fcdbf10596bc8d4778e27b8afd71f57663e3d37ee3eff7bdbc0cdc3
|
7
|
+
data.tar.gz: afb9ea265ac938897f0a8fe5b10d6b64410c271b28a6909d54ad94be04be19af7bb69078d487e606e7aadd526e2e3e08c11b255790e0724d37bdcab7156e4bd0
|
@@ -65,117 +65,117 @@ module Google
|
|
65
65
|
end
|
66
66
|
default_config = Client::Configuration.new parent_config
|
67
67
|
|
68
|
-
default_config.rpcs.create_source.timeout =
|
68
|
+
default_config.rpcs.create_source.timeout = 60.0
|
69
69
|
|
70
|
-
default_config.rpcs.create_finding.timeout =
|
70
|
+
default_config.rpcs.create_finding.timeout = 60.0
|
71
71
|
|
72
|
-
default_config.rpcs.create_notification_config.timeout =
|
72
|
+
default_config.rpcs.create_notification_config.timeout = 60.0
|
73
73
|
|
74
|
-
default_config.rpcs.delete_notification_config.timeout =
|
74
|
+
default_config.rpcs.delete_notification_config.timeout = 60.0
|
75
75
|
|
76
|
-
default_config.rpcs.get_iam_policy.timeout =
|
76
|
+
default_config.rpcs.get_iam_policy.timeout = 60.0
|
77
77
|
default_config.rpcs.get_iam_policy.retry_policy = {
|
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
|
-
default_config.rpcs.get_notification_config.timeout =
|
84
|
+
default_config.rpcs.get_notification_config.timeout = 60.0
|
85
85
|
default_config.rpcs.get_notification_config.retry_policy = {
|
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
|
-
default_config.rpcs.get_organization_settings.timeout =
|
92
|
+
default_config.rpcs.get_organization_settings.timeout = 60.0
|
93
93
|
default_config.rpcs.get_organization_settings.retry_policy = {
|
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
|
-
default_config.rpcs.get_source.timeout =
|
100
|
+
default_config.rpcs.get_source.timeout = 60.0
|
101
101
|
default_config.rpcs.get_source.retry_policy = {
|
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
|
-
default_config.rpcs.list_notification_configs.timeout =
|
140
|
+
default_config.rpcs.list_notification_configs.timeout = 60.0
|
141
141
|
default_config.rpcs.list_notification_configs.retry_policy = {
|
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
|
-
default_config.rpcs.list_sources.timeout =
|
148
|
+
default_config.rpcs.list_sources.timeout = 60.0
|
149
149
|
default_config.rpcs.list_sources.retry_policy = {
|
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
|
-
default_config.rpcs.run_asset_discovery.timeout =
|
156
|
+
default_config.rpcs.run_asset_discovery.timeout = 60.0
|
157
157
|
|
158
|
-
default_config.rpcs.set_finding_state.timeout =
|
158
|
+
default_config.rpcs.set_finding_state.timeout = 60.0
|
159
159
|
|
160
|
-
default_config.rpcs.set_iam_policy.timeout =
|
160
|
+
default_config.rpcs.set_iam_policy.timeout = 60.0
|
161
161
|
|
162
|
-
default_config.rpcs.test_iam_permissions.timeout =
|
162
|
+
default_config.rpcs.test_iam_permissions.timeout = 60.0
|
163
163
|
default_config.rpcs.test_iam_permissions.retry_policy = {
|
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
|
-
default_config.rpcs.update_finding.timeout =
|
170
|
+
default_config.rpcs.update_finding.timeout = 60.0
|
171
171
|
|
172
|
-
default_config.rpcs.update_notification_config.timeout =
|
172
|
+
default_config.rpcs.update_notification_config.timeout = 60.0
|
173
173
|
|
174
|
-
default_config.rpcs.update_organization_settings.timeout =
|
174
|
+
default_config.rpcs.update_organization_settings.timeout = 60.0
|
175
175
|
|
176
|
-
default_config.rpcs.update_source.timeout =
|
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
|
@@ -290,8 +290,8 @@ module Google
|
|
290
290
|
# Required. Resource name of the new source's parent. Its format should be
|
291
291
|
# "organizations/[organization_id]".
|
292
292
|
# @param source [::Google::Cloud::SecurityCenter::V1p1beta1::Source, ::Hash]
|
293
|
-
# Required. The Source being created, only the display_name and description
|
294
|
-
#
|
293
|
+
# Required. The Source being created, only the display_name and description will be
|
294
|
+
# used. All other fields will be ignored.
|
295
295
|
#
|
296
296
|
# @yield [response, operation] Access the result along with the RPC operation
|
297
297
|
# @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
|
@@ -362,11 +362,9 @@ module Google
|
|
362
362
|
# "organizations/[organization_id]/sources/[source_id]".
|
363
363
|
# @param finding_id [::String]
|
364
364
|
# Required. Unique identifier provided by the client within the parent scope.
|
365
|
-
# It must be alphanumeric and less than or equal to 32 characters and
|
366
|
-
# greater than 0 characters in length.
|
367
365
|
# @param finding [::Google::Cloud::SecurityCenter::V1p1beta1::Finding, ::Hash]
|
368
|
-
# Required. The Finding being created. The name and security_marks will be
|
369
|
-
#
|
366
|
+
# Required. The Finding being created. The name and security_marks will be ignored as
|
367
|
+
# they are both output only fields on this resource.
|
370
368
|
#
|
371
369
|
# @yield [response, operation] Access the result along with the RPC operation
|
372
370
|
# @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
|
@@ -432,17 +430,15 @@ module Google
|
|
432
430
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
433
431
|
#
|
434
432
|
# @param parent [::String]
|
435
|
-
# Required. Resource name of the new notification config's parent. Its format
|
436
|
-
#
|
433
|
+
# Required. Resource name of the new notification config's parent. Its format is
|
434
|
+
# "organizations/[organization_id]".
|
437
435
|
# @param config_id [::String]
|
438
|
-
# Required.
|
439
|
-
# Unique identifier provided by the client within the parent scope.
|
436
|
+
# Required. Unique identifier provided by the client within the parent scope.
|
440
437
|
# It must be between 1 and 128 characters, and contains alphanumeric
|
441
438
|
# characters, underscores or hyphens only.
|
442
439
|
# @param notification_config [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig, ::Hash]
|
443
|
-
# Required. The notification config being created. The name and the service
|
444
|
-
#
|
445
|
-
# resource.
|
440
|
+
# Required. The notification config being created. The name and the service account
|
441
|
+
# will be ignored as they are both output only fields on this resource.
|
446
442
|
#
|
447
443
|
# @yield [response, operation] Access the result along with the RPC operation
|
448
444
|
# @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
|
@@ -712,8 +708,8 @@ module Google
|
|
712
708
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
713
709
|
#
|
714
710
|
# @param name [::String]
|
715
|
-
# Required. Name of the organization to get organization settings for. Its
|
716
|
-
#
|
711
|
+
# Required. Name of the organization to get organization settings for. Its format is
|
712
|
+
# "organizations/[organization_id]/organizationSettings".
|
717
713
|
#
|
718
714
|
# @yield [response, operation] Access the result along with the RPC operation
|
719
715
|
# @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
|
@@ -913,9 +909,9 @@ module Google
|
|
913
909
|
# Use a negated partial match on the empty string to filter based on a
|
914
910
|
# property not existing: `-resource_properties.my_property : ""`
|
915
911
|
# @param group_by [::String]
|
916
|
-
# Required. Expression that defines what assets fields to use for grouping.
|
917
|
-
#
|
918
|
-
#
|
912
|
+
# Required. Expression that defines what assets fields to use for grouping. The string
|
913
|
+
# value should follow SQL syntax: comma separated list of fields. For
|
914
|
+
# example:
|
919
915
|
# "security_center_properties.resource_project,security_center_properties.project".
|
920
916
|
#
|
921
917
|
# The following fields are supported when compare_duration is not set:
|
@@ -1079,6 +1075,7 @@ module Google
|
|
1079
1075
|
# * category: `=`, `:`
|
1080
1076
|
# * external_uri: `=`, `:`
|
1081
1077
|
# * event_time: `=`, `>`, `<`, `>=`, `<=`
|
1078
|
+
# * severity: `=`, `:`
|
1082
1079
|
#
|
1083
1080
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
1084
1081
|
# Examples:
|
@@ -1096,9 +1093,9 @@ module Google
|
|
1096
1093
|
# Use a negated partial match on the empty string to filter based on a
|
1097
1094
|
# property not existing: `-source_properties.my_property : ""`
|
1098
1095
|
# @param group_by [::String]
|
1099
|
-
# Required. Expression that defines what assets fields to use for grouping
|
1100
|
-
#
|
1101
|
-
#
|
1096
|
+
# Required. Expression that defines what assets fields to use for grouping (including
|
1097
|
+
# `state_change`). The string value should follow SQL syntax: comma separated
|
1098
|
+
# list of fields. For example: "parent,resource_name".
|
1102
1099
|
#
|
1103
1100
|
# The following fields are supported:
|
1104
1101
|
#
|
@@ -1106,6 +1103,7 @@ module Google
|
|
1106
1103
|
# * category
|
1107
1104
|
# * state
|
1108
1105
|
# * parent
|
1106
|
+
# * severity
|
1109
1107
|
#
|
1110
1108
|
# The following fields are supported when compare_duration is set:
|
1111
1109
|
#
|
@@ -1339,7 +1337,6 @@ module Google
|
|
1339
1337
|
# is "UNUSED", which will be the state_change set for all assets present at
|
1340
1338
|
# read_time.
|
1341
1339
|
# @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1342
|
-
# Optional.
|
1343
1340
|
# A field mask to specify the ListAssetsResult fields to be listed in the
|
1344
1341
|
# response.
|
1345
1342
|
# An empty field mask will list all fields.
|
@@ -1450,13 +1447,14 @@ module Google
|
|
1450
1447
|
#
|
1451
1448
|
# The following field and operator combinations are supported:
|
1452
1449
|
#
|
1453
|
-
# name: `=`
|
1454
|
-
# parent: `=`, `:`
|
1455
|
-
# resource_name: `=`, `:`
|
1456
|
-
# state: `=`, `:`
|
1457
|
-
# category: `=`, `:`
|
1458
|
-
# external_uri: `=`, `:`
|
1459
|
-
# event_time: `=`, `>`, `<`, `>=`, `<=`
|
1450
|
+
# * name: `=`
|
1451
|
+
# * parent: `=`, `:`
|
1452
|
+
# * resource_name: `=`, `:`
|
1453
|
+
# * state: `=`, `:`
|
1454
|
+
# * category: `=`, `:`
|
1455
|
+
# * external_uri: `=`, `:`
|
1456
|
+
# * event_time: `=`, `>`, `<`, `>=`, `<=`
|
1457
|
+
# * severity: `=`, `:`
|
1460
1458
|
#
|
1461
1459
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
1462
1460
|
# Examples:
|
@@ -1529,7 +1527,6 @@ module Google
|
|
1529
1527
|
# is "UNUSED", which will be the state_change set for all findings present at
|
1530
1528
|
# read_time.
|
1531
1529
|
# @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1532
|
-
# Optional.
|
1533
1530
|
# A field mask to specify the Finding fields to be listed in the response.
|
1534
1531
|
# An empty field mask will list all fields.
|
1535
1532
|
# @param page_token [::String]
|
@@ -1680,8 +1677,8 @@ module Google
|
|
1680
1677
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1681
1678
|
#
|
1682
1679
|
# @param parent [::String]
|
1683
|
-
# Required. Resource name of the parent of sources to list. Its format should
|
1684
|
-
#
|
1680
|
+
# Required. Resource name of the parent of sources to list. Its format should be
|
1681
|
+
# "organizations/[organization_id]".
|
1685
1682
|
# @param page_token [::String]
|
1686
1683
|
# The value returned by the last `ListSourcesResponse`; indicates
|
1687
1684
|
# that this is a continuation of a prior `ListSources` call, and
|
@@ -1760,8 +1757,8 @@ module Google
|
|
1760
1757
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1761
1758
|
#
|
1762
1759
|
# @param parent [::String]
|
1763
|
-
# Required. Name of the organization to run asset discovery for. Its format
|
1764
|
-
#
|
1760
|
+
# Required. Name of the organization to run asset discovery for. Its format is
|
1761
|
+
# "organizations/[organization_id]".
|
1765
1762
|
#
|
1766
1763
|
# @yield [response, operation] Access the result along with the RPC operation
|
1767
1764
|
# @yieldparam response [::Gapic::Operation]
|
@@ -2046,8 +2043,8 @@ module Google
|
|
2046
2043
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2047
2044
|
#
|
2048
2045
|
# @param finding [::Google::Cloud::SecurityCenter::V1p1beta1::Finding, ::Hash]
|
2049
|
-
# Required. The finding resource to update or create if it does not already
|
2050
|
-
#
|
2046
|
+
# Required. The finding resource to update or create if it does not already exist.
|
2047
|
+
# parent, security_marks, and update_time will be ignored.
|
2051
2048
|
#
|
2052
2049
|
# In the case of creation, the finding id portion of the name must be
|
2053
2050
|
# alphanumeric and less than or equal to 32 characters and greater than 0
|
@@ -2478,7 +2475,7 @@ module Google
|
|
2478
2475
|
|
2479
2476
|
config_attr :endpoint, "securitycenter.googleapis.com", ::String
|
2480
2477
|
config_attr :credentials, nil do |value|
|
2481
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2478
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2482
2479
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
2483
2480
|
allowed.any? { |klass| klass === value }
|
2484
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
|
@@ -22,12 +22,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
22
22
|
optional :security_marks, :message, 8, "google.cloud.securitycenter.v1p1beta1.SecurityMarks"
|
23
23
|
optional :event_time, :message, 9, "google.protobuf.Timestamp"
|
24
24
|
optional :create_time, :message, 10, "google.protobuf.Timestamp"
|
25
|
+
optional :severity, :enum, 13, "google.cloud.securitycenter.v1p1beta1.Finding.Severity"
|
25
26
|
end
|
26
27
|
add_enum "google.cloud.securitycenter.v1p1beta1.Finding.State" do
|
27
28
|
value :STATE_UNSPECIFIED, 0
|
28
29
|
value :ACTIVE, 1
|
29
30
|
value :INACTIVE, 2
|
30
31
|
end
|
32
|
+
add_enum "google.cloud.securitycenter.v1p1beta1.Finding.Severity" do
|
33
|
+
value :SEVERITY_UNSPECIFIED, 0
|
34
|
+
value :CRITICAL, 1
|
35
|
+
value :HIGH, 2
|
36
|
+
value :MEDIUM, 3
|
37
|
+
value :LOW, 4
|
38
|
+
end
|
31
39
|
end
|
32
40
|
end
|
33
41
|
|
@@ -37,6 +45,7 @@ module Google
|
|
37
45
|
module V1p1beta1
|
38
46
|
Finding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.Finding").msgclass
|
39
47
|
Finding::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.Finding.State").enummodule
|
48
|
+
Finding::Severity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1p1beta1.Finding.Severity").enummodule
|
40
49
|
end
|
41
50
|
end
|
42
51
|
end
|
@@ -34,69 +34,67 @@ module Google
|
|
34
34
|
self.service_name = 'google.cloud.securitycenter.v1p1beta1.SecurityCenter'
|
35
35
|
|
36
36
|
# Creates a source.
|
37
|
-
rpc :CreateSource, Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest, Google::Cloud::SecurityCenter::V1p1beta1::Source
|
38
|
-
#
|
37
|
+
rpc :CreateSource, ::Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::Source
|
39
38
|
# Creates a finding. The corresponding source must exist for finding
|
40
39
|
# creation to succeed.
|
41
|
-
rpc :CreateFinding, Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest, Google::Cloud::SecurityCenter::V1p1beta1::Finding
|
40
|
+
rpc :CreateFinding, ::Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::Finding
|
42
41
|
# Creates a notification config.
|
43
|
-
rpc :CreateNotificationConfig, Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest, Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig
|
42
|
+
rpc :CreateNotificationConfig, ::Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig
|
44
43
|
# Deletes a notification config.
|
45
|
-
rpc :DeleteNotificationConfig, Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest, Google::Protobuf::Empty
|
44
|
+
rpc :DeleteNotificationConfig, ::Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest, ::Google::Protobuf::Empty
|
46
45
|
# Gets the access control policy on the specified Source.
|
47
|
-
rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
|
46
|
+
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
48
47
|
# Gets a notification config.
|
49
|
-
rpc :GetNotificationConfig, Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest, Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig
|
48
|
+
rpc :GetNotificationConfig, ::Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig
|
50
49
|
# Gets the settings for an organization.
|
51
|
-
rpc :GetOrganizationSettings, Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest, Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings
|
50
|
+
rpc :GetOrganizationSettings, ::Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings
|
52
51
|
# Gets a source.
|
53
|
-
rpc :GetSource, Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest, Google::Cloud::SecurityCenter::V1p1beta1::Source
|
52
|
+
rpc :GetSource, ::Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::Source
|
54
53
|
# Filters an organization's assets and groups them by their specified
|
55
54
|
# properties.
|
56
|
-
rpc :GroupAssets, Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest, Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsResponse
|
55
|
+
rpc :GroupAssets, ::Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsResponse
|
57
56
|
# Filters an organization or source's findings and groups them by their
|
58
57
|
# specified properties.
|
59
58
|
#
|
60
59
|
# To group across all sources provide a `-` as the source id.
|
61
60
|
# Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
|
62
|
-
rpc :GroupFindings, Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest, Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsResponse
|
61
|
+
rpc :GroupFindings, ::Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsResponse
|
63
62
|
# Lists an organization's assets.
|
64
|
-
rpc :ListAssets, Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest, Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse
|
63
|
+
rpc :ListAssets, ::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse
|
65
64
|
# Lists an organization or source's findings.
|
66
65
|
#
|
67
66
|
# To list across all sources provide a `-` as the source id.
|
68
67
|
# Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
|
69
|
-
rpc :ListFindings, Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest, Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse
|
68
|
+
rpc :ListFindings, ::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse
|
70
69
|
# Lists notification configs.
|
71
|
-
rpc :ListNotificationConfigs, Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest, Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsResponse
|
70
|
+
rpc :ListNotificationConfigs, ::Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsResponse
|
72
71
|
# Lists all sources belonging to an organization.
|
73
|
-
rpc :ListSources, Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest, Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesResponse
|
72
|
+
rpc :ListSources, ::Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesResponse
|
74
73
|
# Runs asset discovery. The discovery is tracked with a long-running
|
75
74
|
# operation.
|
76
75
|
#
|
77
76
|
# This API can only be called with limited frequency for an organization. If
|
78
77
|
# it is called too frequently the caller will receive a TOO_MANY_REQUESTS
|
79
78
|
# error.
|
80
|
-
rpc :RunAssetDiscovery, Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest, Google::Longrunning::Operation
|
81
|
-
#
|
79
|
+
rpc :RunAssetDiscovery, ::Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest, ::Google::Longrunning::Operation
|
82
80
|
# Updates the state of a finding.
|
83
|
-
rpc :SetFindingState, Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest, Google::Cloud::SecurityCenter::V1p1beta1::Finding
|
81
|
+
rpc :SetFindingState, ::Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::Finding
|
84
82
|
# Sets the access control policy on the specified Source.
|
85
|
-
rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
|
83
|
+
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
86
84
|
# Returns the permissions that a caller has on the specified source.
|
87
|
-
rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
|
85
|
+
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
88
86
|
# Creates or updates a finding. The corresponding source must exist for a
|
89
87
|
# finding creation to succeed.
|
90
|
-
rpc :UpdateFinding, Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest, Google::Cloud::SecurityCenter::V1p1beta1::Finding
|
88
|
+
rpc :UpdateFinding, ::Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::Finding
|
91
89
|
# Updates a notification config. The following update
|
92
90
|
# fields are allowed: description, pubsub_topic, streaming_config.filter
|
93
|
-
rpc :UpdateNotificationConfig, Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest, Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig
|
91
|
+
rpc :UpdateNotificationConfig, ::Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig
|
94
92
|
# Updates an organization's settings.
|
95
|
-
rpc :UpdateOrganizationSettings, Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest, Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings
|
93
|
+
rpc :UpdateOrganizationSettings, ::Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings
|
96
94
|
# Updates a source.
|
97
|
-
rpc :UpdateSource, Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest, Google::Cloud::SecurityCenter::V1p1beta1::Source
|
95
|
+
rpc :UpdateSource, ::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::Source
|
98
96
|
# Updates security marks.
|
99
|
-
rpc :UpdateSecurityMarks, Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest, Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks
|
97
|
+
rpc :UpdateSecurityMarks, ::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks
|
100
98
|
end
|
101
99
|
|
102
100
|
Stub = Service.rpc_stub_class
|
@@ -43,12 +43,12 @@ module Google
|
|
43
43
|
#
|
44
44
|
# The ResourceDescriptor Yaml config will look like:
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
46
|
+
# resources:
|
47
|
+
# - type: "pubsub.googleapis.com/Topic"
|
48
|
+
# name_descriptor:
|
49
|
+
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
+
# parent_name_extractor: "projects/{project}"
|
52
52
|
#
|
53
53
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
54
|
# live under multiple parents.
|
@@ -183,15 +183,24 @@ module Google
|
|
183
183
|
# }
|
184
184
|
# @!attribute [rw] plural
|
185
185
|
# @return [::String]
|
186
|
-
# The plural name used in the resource name, such as
|
187
|
-
# the name of 'projects/\\{project}'
|
188
|
-
#
|
186
|
+
# The plural name used in the resource name and permission names, such as
|
187
|
+
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
188
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
|
189
|
+
# concept of the `plural` field in k8s CRD spec
|
189
190
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
191
|
+
#
|
192
|
+
# Note: The plural form is required even for singleton resources. See
|
193
|
+
# https://aip.dev/156
|
190
194
|
# @!attribute [rw] singular
|
191
195
|
# @return [::String]
|
192
196
|
# The same concept of the `singular` field in k8s CRD spec
|
193
197
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
194
198
|
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
199
|
+
# @!attribute [rw] style
|
200
|
+
# @return [::Array<::Google::Api::ResourceDescriptor::Style>]
|
201
|
+
# Style flag(s) for this resource.
|
202
|
+
# These indicate that a resource is expected to conform to a given
|
203
|
+
# style. See the specific style flags for additional information.
|
195
204
|
class ResourceDescriptor
|
196
205
|
include ::Google::Protobuf::MessageExts
|
197
206
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -211,6 +220,22 @@ module Google
|
|
211
220
|
# that from being necessary once there are multiple patterns.)
|
212
221
|
FUTURE_MULTI_PATTERN = 2
|
213
222
|
end
|
223
|
+
|
224
|
+
# A flag representing a specific style that a resource claims to conform to.
|
225
|
+
module Style
|
226
|
+
# The unspecified value. Do not use.
|
227
|
+
STYLE_UNSPECIFIED = 0
|
228
|
+
|
229
|
+
# This resource is intended to be "declarative-friendly".
|
230
|
+
#
|
231
|
+
# Declarative-friendly resources must be more strictly consistent, and
|
232
|
+
# setting this to true communicates to tools that this resource should
|
233
|
+
# adhere to declarative-friendly expectations.
|
234
|
+
#
|
235
|
+
# Note: This is used by the API linter (linter.aip.dev) to enable
|
236
|
+
# additional checks.
|
237
|
+
DECLARATIVE_FRIENDLY = 1
|
238
|
+
end
|
214
239
|
end
|
215
240
|
|
216
241
|
# Defines a proto annotation that describes a string field that refers to
|
@@ -226,6 +251,17 @@ module Google
|
|
226
251
|
# type: "pubsub.googleapis.com/Topic"
|
227
252
|
# }];
|
228
253
|
# }
|
254
|
+
#
|
255
|
+
# Occasionally, a field may reference an arbitrary resource. In this case,
|
256
|
+
# APIs use the special value * in their resource reference.
|
257
|
+
#
|
258
|
+
# Example:
|
259
|
+
#
|
260
|
+
# message GetIamPolicyRequest {
|
261
|
+
# string resource = 2 [(google.api.resource_reference) = {
|
262
|
+
# type: "*"
|
263
|
+
# }];
|
264
|
+
# }
|
229
265
|
# @!attribute [rw] child_type
|
230
266
|
# @return [::String]
|
231
267
|
# The resource type of a child collection that the annotated field
|
@@ -234,11 +270,11 @@ module Google
|
|
234
270
|
#
|
235
271
|
# Example:
|
236
272
|
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
273
|
+
# message ListLogEntriesRequest {
|
274
|
+
# string parent = 1 [(google.api.resource_reference) = {
|
275
|
+
# child_type: "logging.googleapis.com/LogEntry"
|
276
|
+
# };
|
277
|
+
# }
|
242
278
|
class ResourceReference
|
243
279
|
include ::Google::Protobuf::MessageExts
|
244
280
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -74,12 +74,18 @@ module Google
|
|
74
74
|
# to the finding.
|
75
75
|
# @!attribute [rw] event_time
|
76
76
|
# @return [::Google::Protobuf::Timestamp]
|
77
|
-
# The time at which the event took place
|
78
|
-
# represents an open firewall it would
|
79
|
-
# the firewall became open. The
|
77
|
+
# The time at which the event took place, or when an update to the finding
|
78
|
+
# occurred. For example, if the finding represents an open firewall it would
|
79
|
+
# capture the time the detector believes the firewall became open. The
|
80
|
+
# accuracy is determined by the detector. If the finding were to be resolved
|
81
|
+
# afterward, this time would reflect when the finding was resolved.
|
80
82
|
# @!attribute [rw] create_time
|
81
83
|
# @return [::Google::Protobuf::Timestamp]
|
82
84
|
# The time at which the finding was created in Security Command Center.
|
85
|
+
# @!attribute [rw] severity
|
86
|
+
# @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding::Severity]
|
87
|
+
# The severity of the finding. This field is managed by the source that
|
88
|
+
# writes the finding.
|
83
89
|
class Finding
|
84
90
|
include ::Google::Protobuf::MessageExts
|
85
91
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -105,6 +111,25 @@ module Google
|
|
105
111
|
# and is no longer active.
|
106
112
|
INACTIVE = 2
|
107
113
|
end
|
114
|
+
|
115
|
+
# The severity of the finding. This field is managed by the source that
|
116
|
+
# writes the finding.
|
117
|
+
module Severity
|
118
|
+
# No severity specified. The default value.
|
119
|
+
SEVERITY_UNSPECIFIED = 0
|
120
|
+
|
121
|
+
# Critical severity.
|
122
|
+
CRITICAL = 1
|
123
|
+
|
124
|
+
# High severity.
|
125
|
+
HIGH = 2
|
126
|
+
|
127
|
+
# Medium severity.
|
128
|
+
MEDIUM = 3
|
129
|
+
|
130
|
+
# Low severity.
|
131
|
+
LOW = 4
|
132
|
+
end
|
108
133
|
end
|
109
134
|
end
|
110
135
|
end
|
@@ -29,12 +29,10 @@ module Google
|
|
29
29
|
# @!attribute [rw] finding_id
|
30
30
|
# @return [::String]
|
31
31
|
# Required. Unique identifier provided by the client within the parent scope.
|
32
|
-
# It must be alphanumeric and less than or equal to 32 characters and
|
33
|
-
# greater than 0 characters in length.
|
34
32
|
# @!attribute [rw] finding
|
35
33
|
# @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
|
36
|
-
# Required. The Finding being created. The name and security_marks will be
|
37
|
-
#
|
34
|
+
# Required. The Finding being created. The name and security_marks will be ignored as
|
35
|
+
# they are both output only fields on this resource.
|
38
36
|
class CreateFindingRequest
|
39
37
|
include ::Google::Protobuf::MessageExts
|
40
38
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -43,19 +41,17 @@ module Google
|
|
43
41
|
# Request message for creating a notification config.
|
44
42
|
# @!attribute [rw] parent
|
45
43
|
# @return [::String]
|
46
|
-
# Required. Resource name of the new notification config's parent. Its format
|
47
|
-
#
|
44
|
+
# Required. Resource name of the new notification config's parent. Its format is
|
45
|
+
# "organizations/[organization_id]".
|
48
46
|
# @!attribute [rw] config_id
|
49
47
|
# @return [::String]
|
50
|
-
# Required.
|
51
|
-
# Unique identifier provided by the client within the parent scope.
|
48
|
+
# Required. Unique identifier provided by the client within the parent scope.
|
52
49
|
# It must be between 1 and 128 characters, and contains alphanumeric
|
53
50
|
# characters, underscores or hyphens only.
|
54
51
|
# @!attribute [rw] notification_config
|
55
52
|
# @return [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
|
56
|
-
# Required. The notification config being created. The name and the service
|
57
|
-
#
|
58
|
-
# resource.
|
53
|
+
# Required. The notification config being created. The name and the service account
|
54
|
+
# will be ignored as they are both output only fields on this resource.
|
59
55
|
class CreateNotificationConfigRequest
|
60
56
|
include ::Google::Protobuf::MessageExts
|
61
57
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -68,8 +64,8 @@ module Google
|
|
68
64
|
# "organizations/[organization_id]".
|
69
65
|
# @!attribute [rw] source
|
70
66
|
# @return [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
|
71
|
-
# Required. The Source being created, only the display_name and description
|
72
|
-
#
|
67
|
+
# Required. The Source being created, only the display_name and description will be
|
68
|
+
# used. All other fields will be ignored.
|
73
69
|
class CreateSourceRequest
|
74
70
|
include ::Google::Protobuf::MessageExts
|
75
71
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -98,8 +94,8 @@ module Google
|
|
98
94
|
# Request message for getting organization settings.
|
99
95
|
# @!attribute [rw] name
|
100
96
|
# @return [::String]
|
101
|
-
# Required. Name of the organization to get organization settings for. Its
|
102
|
-
#
|
97
|
+
# Required. Name of the organization to get organization settings for. Its format is
|
98
|
+
# "organizations/[organization_id]/organizationSettings".
|
103
99
|
class GetOrganizationSettingsRequest
|
104
100
|
include ::Google::Protobuf::MessageExts
|
105
101
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -186,9 +182,9 @@ module Google
|
|
186
182
|
# property not existing: `-resource_properties.my_property : ""`
|
187
183
|
# @!attribute [rw] group_by
|
188
184
|
# @return [::String]
|
189
|
-
# Required. Expression that defines what assets fields to use for grouping.
|
190
|
-
#
|
191
|
-
#
|
185
|
+
# Required. Expression that defines what assets fields to use for grouping. The string
|
186
|
+
# value should follow SQL syntax: comma separated list of fields. For
|
187
|
+
# example:
|
192
188
|
# "security_center_properties.resource_project,security_center_properties.project".
|
193
189
|
#
|
194
190
|
# The following fields are supported when compare_duration is not set:
|
@@ -316,6 +312,7 @@ module Google
|
|
316
312
|
# * category: `=`, `:`
|
317
313
|
# * external_uri: `=`, `:`
|
318
314
|
# * event_time: `=`, `>`, `<`, `>=`, `<=`
|
315
|
+
# * severity: `=`, `:`
|
319
316
|
#
|
320
317
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
321
318
|
# Examples:
|
@@ -334,9 +331,9 @@ module Google
|
|
334
331
|
# property not existing: `-source_properties.my_property : ""`
|
335
332
|
# @!attribute [rw] group_by
|
336
333
|
# @return [::String]
|
337
|
-
# Required. Expression that defines what assets fields to use for grouping
|
338
|
-
#
|
339
|
-
#
|
334
|
+
# Required. Expression that defines what assets fields to use for grouping (including
|
335
|
+
# `state_change`). The string value should follow SQL syntax: comma separated
|
336
|
+
# list of fields. For example: "parent,resource_name".
|
340
337
|
#
|
341
338
|
# The following fields are supported:
|
342
339
|
#
|
@@ -344,6 +341,7 @@ module Google
|
|
344
341
|
# * category
|
345
342
|
# * state
|
346
343
|
# * parent
|
344
|
+
# * severity
|
347
345
|
#
|
348
346
|
# The following fields are supported when compare_duration is set:
|
349
347
|
#
|
@@ -479,8 +477,8 @@ module Google
|
|
479
477
|
# Request message for listing sources.
|
480
478
|
# @!attribute [rw] parent
|
481
479
|
# @return [::String]
|
482
|
-
# Required. Resource name of the parent of sources to list. Its format should
|
483
|
-
#
|
480
|
+
# Required. Resource name of the parent of sources to list. Its format should be
|
481
|
+
# "organizations/[organization_id]".
|
484
482
|
# @!attribute [rw] page_token
|
485
483
|
# @return [::String]
|
486
484
|
# The value returned by the last `ListSourcesResponse`; indicates
|
@@ -634,7 +632,6 @@ module Google
|
|
634
632
|
# read_time.
|
635
633
|
# @!attribute [rw] field_mask
|
636
634
|
# @return [::Google::Protobuf::FieldMask]
|
637
|
-
# Optional.
|
638
635
|
# A field mask to specify the ListAssetsResult fields to be listed in the
|
639
636
|
# response.
|
640
637
|
# An empty field mask will list all fields.
|
@@ -738,13 +735,14 @@ module Google
|
|
738
735
|
#
|
739
736
|
# The following field and operator combinations are supported:
|
740
737
|
#
|
741
|
-
# name: `=`
|
742
|
-
# parent: `=`, `:`
|
743
|
-
# resource_name: `=`, `:`
|
744
|
-
# state: `=`, `:`
|
745
|
-
# category: `=`, `:`
|
746
|
-
# external_uri: `=`, `:`
|
747
|
-
# event_time: `=`, `>`, `<`, `>=`, `<=`
|
738
|
+
# * name: `=`
|
739
|
+
# * parent: `=`, `:`
|
740
|
+
# * resource_name: `=`, `:`
|
741
|
+
# * state: `=`, `:`
|
742
|
+
# * category: `=`, `:`
|
743
|
+
# * external_uri: `=`, `:`
|
744
|
+
# * event_time: `=`, `>`, `<`, `>=`, `<=`
|
745
|
+
# * severity: `=`, `:`
|
748
746
|
#
|
749
747
|
# Usage: This should be milliseconds since epoch or an RFC3339 string.
|
750
748
|
# Examples:
|
@@ -821,7 +819,6 @@ module Google
|
|
821
819
|
# read_time.
|
822
820
|
# @!attribute [rw] field_mask
|
823
821
|
# @return [::Google::Protobuf::FieldMask]
|
824
|
-
# Optional.
|
825
822
|
# A field mask to specify the Finding fields to be listed in the response.
|
826
823
|
# An empty field mask will list all fields.
|
827
824
|
# @!attribute [rw] page_token
|
@@ -863,7 +860,7 @@ module Google
|
|
863
860
|
# @!attribute [rw] state_change
|
864
861
|
# @return [::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult::StateChange]
|
865
862
|
# State change of the finding between the points in time.
|
866
|
-
# @!attribute [
|
863
|
+
# @!attribute [r] resource
|
867
864
|
# @return [::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult::Resource]
|
868
865
|
# Output only. Resource that is associated with this finding.
|
869
866
|
class ListFindingsResult
|
@@ -944,8 +941,8 @@ module Google
|
|
944
941
|
# Request message for running asset discovery for an organization.
|
945
942
|
# @!attribute [rw] parent
|
946
943
|
# @return [::String]
|
947
|
-
# Required. Name of the organization to run asset discovery for. Its format
|
948
|
-
#
|
944
|
+
# Required. Name of the organization to run asset discovery for. Its format is
|
945
|
+
# "organizations/[organization_id]".
|
949
946
|
class RunAssetDiscoveryRequest
|
950
947
|
include ::Google::Protobuf::MessageExts
|
951
948
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -954,8 +951,8 @@ module Google
|
|
954
951
|
# Request message for updating or creating a finding.
|
955
952
|
# @!attribute [rw] finding
|
956
953
|
# @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
|
957
|
-
# Required. The finding resource to update or create if it does not already
|
958
|
-
#
|
954
|
+
# Required. The finding resource to update or create if it does not already exist.
|
955
|
+
# parent, security_marks, and update_time will be ignored.
|
959
956
|
#
|
960
957
|
# In the case of creation, the finding id portion of the name must be
|
961
958
|
# alphanumeric and less than or equal to 32 characters and greater than 0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-security_center-v1p1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
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-24 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
|
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
244
|
- !ruby/object:Gem::Version
|
245
245
|
version: '0'
|
246
246
|
requirements: []
|
247
|
-
rubygems_version: 3.1.
|
247
|
+
rubygems_version: 3.1.4
|
248
248
|
signing_key:
|
249
249
|
specification_version: 4
|
250
250
|
summary: API Client library for the Cloud Security Command Center V1p1beta1 API
|