google-cloud-security_center 0.4.3 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/security_center/v1/asset_pb.rb +4 -1
- data/lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/asset.rb +9 -0
- data/lib/google/cloud/security_center/v1/doc/google/cloud/securitycenter/v1/securitycenter_service.rb +36 -0
- data/lib/google/cloud/security_center/v1/finding_pb.rb +1 -1
- data/lib/google/cloud/security_center/v1/organization_settings_pb.rb +1 -1
- data/lib/google/cloud/security_center/v1/run_asset_discovery_response_pb.rb +1 -1
- data/lib/google/cloud/security_center/v1/security_center_client.rb +13 -0
- data/lib/google/cloud/security_center/v1/security_center_client_config.json +2 -2
- data/lib/google/cloud/security_center/v1/security_marks_pb.rb +1 -1
- data/lib/google/cloud/security_center/v1/securitycenter_service_pb.rb +9 -1
- data/lib/google/cloud/security_center/v1/source_pb.rb +1 -1
- data/lib/google/cloud/security_center/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca1cd5239f4e6031b1366299f0334e8f36d5656f406ad158277ece3a5d35ff74
|
4
|
+
data.tar.gz: 1427cd9859d08d023b65f98b478b2b1b3f1cc3727c4a3c3792f9c8250c06d624
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a96242920b10a5f8937e748aec03cf7418aa85ed8c55b1c53848c413a9b9bf6ea3777eea066ede793a9bcbfe419c7142188d809bba5676c48e6f274f7449421f
|
7
|
+
data.tar.gz: 8b927a58cee7cb58500880923bb70fb208f2657ff8dc645b92bb0e80a9bf8ce56352b3005421f337d6d79b8ad64eef6a795d3f5eb62f28bfb097471d1415b766
|
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/api/resource_pb'
|
9
8
|
require 'google/cloud/security_center/v1/security_marks_pb'
|
10
9
|
require 'google/protobuf/struct_pb'
|
11
10
|
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/api/annotations_pb'
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_message "google.cloud.securitycenter.v1.Asset" do
|
14
14
|
optional :name, :string, 1
|
@@ -25,6 +25,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
25
25
|
optional :resource_parent, :string, 3
|
26
26
|
optional :resource_project, :string, 4
|
27
27
|
repeated :resource_owners, :string, 5
|
28
|
+
optional :resource_display_name, :string, 6
|
29
|
+
optional :resource_parent_display_name, :string, 7
|
30
|
+
optional :resource_project_display_name, :string, 8
|
28
31
|
end
|
29
32
|
add_message "google.cloud.securitycenter.v1.Asset.IamPolicy" do
|
30
33
|
optional :policy_blob, :string, 1
|
@@ -78,6 +78,15 @@ module Google
|
|
78
78
|
# @!attribute [rw] resource_owners
|
79
79
|
# @return [Array<String>]
|
80
80
|
# Owners of the Google Cloud resource.
|
81
|
+
# @!attribute [rw] resource_display_name
|
82
|
+
# @return [String]
|
83
|
+
# The user defined display name for this resource.
|
84
|
+
# @!attribute [rw] resource_parent_display_name
|
85
|
+
# @return [String]
|
86
|
+
# The user defined display name for the parent of this resource.
|
87
|
+
# @!attribute [rw] resource_project_display_name
|
88
|
+
# @return [String]
|
89
|
+
# The user defined display name for the project of this resource.
|
81
90
|
class SecurityCenterProperties; end
|
82
91
|
|
83
92
|
# IAM Policy information associated with the GCP resource described by the
|
@@ -112,9 +112,12 @@ module Google
|
|
112
112
|
# * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
113
113
|
# * security_marks.marks: `=`, `:`
|
114
114
|
# * security_center_properties.resource_name: `=`, `:`
|
115
|
+
# * security_center_properties.resource_display_name: `=`, `:`
|
115
116
|
# * security_center_properties.resource_type: `=`, `:`
|
116
117
|
# * security_center_properties.resource_parent: `=`, `:`
|
118
|
+
# * security_center_properties.resource_parent_display_name: `=`, `:`
|
117
119
|
# * security_center_properties.resource_project: `=`, `:`
|
120
|
+
# * security_center_properties.resource_project_display_name: `=`, `:`
|
118
121
|
# * security_center_properties.resource_owners: `=`, `:`
|
119
122
|
#
|
120
123
|
# For example, `resource_properties.size = 100` is a valid filter string.
|
@@ -128,12 +131,16 @@ module Google
|
|
128
131
|
# The following fields are supported when compare_duration is not set:
|
129
132
|
#
|
130
133
|
# * security_center_properties.resource_project
|
134
|
+
# * security_center_properties.resource_project_display_name
|
131
135
|
# * security_center_properties.resource_type
|
132
136
|
# * security_center_properties.resource_parent
|
137
|
+
# * security_center_properties.resource_parent_display_name
|
133
138
|
#
|
134
139
|
# The following fields are supported when compare_duration is set:
|
135
140
|
#
|
136
141
|
# * security_center_properties.resource_type
|
142
|
+
# * security_center_properties.resource_project_display_name
|
143
|
+
# * security_center_properties.resource_parent_display_name
|
137
144
|
# @!attribute [rw] compare_duration
|
138
145
|
# @return [Google::Protobuf::Duration]
|
139
146
|
# When compare_duration is set, the GroupResult's "state_change" property is
|
@@ -418,9 +425,12 @@ module Google
|
|
418
425
|
# * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
419
426
|
# * security_marks.marks: `=`, `:`
|
420
427
|
# * security_center_properties.resource_name: `=`, `:`
|
428
|
+
# * security_center_properties.resource_display_name: `=`, `:`
|
421
429
|
# * security_center_properties.resource_type: `=`, `:`
|
422
430
|
# * security_center_properties.resource_parent: `=`, `:`
|
431
|
+
# * security_center_properties.resource_parent_display_name: `=`, `:`
|
423
432
|
# * security_center_properties.resource_project: `=`, `:`
|
433
|
+
# * security_center_properties.resource_project_display_name: `=`, `:`
|
424
434
|
# * security_center_properties.resource_owners: `=`, `:`
|
425
435
|
#
|
426
436
|
# For example, `resource_properties.size = 100` is a valid filter string.
|
@@ -441,8 +451,11 @@ module Google
|
|
441
451
|
# resource_properties
|
442
452
|
# security_marks.marks
|
443
453
|
# security_center_properties.resource_name
|
454
|
+
# security_center_properties.resource_display_name
|
444
455
|
# security_center_properties.resource_parent
|
456
|
+
# security_center_properties.resource_parent_display_name
|
445
457
|
# security_center_properties.resource_project
|
458
|
+
# security_center_properties.resource_project_display_name
|
446
459
|
# security_center_properties.resource_type
|
447
460
|
# @!attribute [rw] read_time
|
448
461
|
# @return [Google::Protobuf::Timestamp]
|
@@ -678,7 +691,30 @@ module Google
|
|
678
691
|
# @!attribute [rw] state_change
|
679
692
|
# @return [Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult::StateChange]
|
680
693
|
# State change of the finding between the points in time.
|
694
|
+
# @!attribute [rw] resource
|
695
|
+
# @return [Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult::Resource]
|
696
|
+
# Output only. Resource that is associated with this finding.
|
681
697
|
class ListFindingsResult
|
698
|
+
# Information related to the Google Cloud Platform (GCP) resource that is
|
699
|
+
# associated with this finding.
|
700
|
+
# @!attribute [rw] name
|
701
|
+
# @return [String]
|
702
|
+
# The full resource name of the resource. See:
|
703
|
+
# https://cloud.google.com/apis/design/resource_names#full_resource_name
|
704
|
+
# @!attribute [rw] project_name
|
705
|
+
# @return [String]
|
706
|
+
# The full resource name of project that the resource belongs to.
|
707
|
+
# @!attribute [rw] project_display_name
|
708
|
+
# @return [String]
|
709
|
+
# The human readable name of project that the resource belongs to.
|
710
|
+
# @!attribute [rw] parent_name
|
711
|
+
# @return [String]
|
712
|
+
# The full resource name of resource's parent.
|
713
|
+
# @!attribute [rw] parent_display_name
|
714
|
+
# @return [String]
|
715
|
+
# The human readable name of resource's parent.
|
716
|
+
class Resource; end
|
717
|
+
|
682
718
|
# The change in state of the finding.
|
683
719
|
#
|
684
720
|
# When querying across two points in time this describes
|
@@ -4,12 +4,12 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/api/field_behavior_pb'
|
9
8
|
require 'google/api/resource_pb'
|
10
9
|
require 'google/cloud/security_center/v1/security_marks_pb'
|
11
10
|
require 'google/protobuf/struct_pb'
|
12
11
|
require 'google/protobuf/timestamp_pb'
|
12
|
+
require 'google/api/annotations_pb'
|
13
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
14
|
add_message "google.cloud.securitycenter.v1.Finding" do
|
15
15
|
optional :name, :string, 1
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/api/resource_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_message "google.cloud.securitycenter.v1.OrganizationSettings" do
|
11
11
|
optional :name, :string, 1
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/protobuf/duration_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_message "google.cloud.securitycenter.v1.RunAssetDiscoveryResponse" do
|
11
11
|
optional :state, :enum, 1, "google.cloud.securitycenter.v1.RunAssetDiscoveryResponse.State"
|
@@ -701,12 +701,16 @@ module Google
|
|
701
701
|
# The following fields are supported when compare_duration is not set:
|
702
702
|
#
|
703
703
|
# * security_center_properties.resource_project
|
704
|
+
# * security_center_properties.resource_project_display_name
|
704
705
|
# * security_center_properties.resource_type
|
705
706
|
# * security_center_properties.resource_parent
|
707
|
+
# * security_center_properties.resource_parent_display_name
|
706
708
|
#
|
707
709
|
# The following fields are supported when compare_duration is set:
|
708
710
|
#
|
709
711
|
# * security_center_properties.resource_type
|
712
|
+
# * security_center_properties.resource_project_display_name
|
713
|
+
# * security_center_properties.resource_parent_display_name
|
710
714
|
# @param filter [String]
|
711
715
|
# Expression that defines the filter to apply across assets.
|
712
716
|
# The expression is a list of zero or more restrictions combined via logical
|
@@ -755,9 +759,12 @@ module Google
|
|
755
759
|
# * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
756
760
|
# * security_marks.marks: `=`, `:`
|
757
761
|
# * security_center_properties.resource_name: `=`, `:`
|
762
|
+
# * security_center_properties.resource_display_name: `=`, `:`
|
758
763
|
# * security_center_properties.resource_type: `=`, `:`
|
759
764
|
# * security_center_properties.resource_parent: `=`, `:`
|
765
|
+
# * security_center_properties.resource_parent_display_name: `=`, `:`
|
760
766
|
# * security_center_properties.resource_project: `=`, `:`
|
767
|
+
# * security_center_properties.resource_project_display_name: `=`, `:`
|
761
768
|
# * security_center_properties.resource_owners: `=`, `:`
|
762
769
|
#
|
763
770
|
# For example, `resource_properties.size = 100` is a valid filter string.
|
@@ -1079,9 +1086,12 @@ module Google
|
|
1079
1086
|
# * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
|
1080
1087
|
# * security_marks.marks: `=`, `:`
|
1081
1088
|
# * security_center_properties.resource_name: `=`, `:`
|
1089
|
+
# * security_center_properties.resource_display_name: `=`, `:`
|
1082
1090
|
# * security_center_properties.resource_type: `=`, `:`
|
1083
1091
|
# * security_center_properties.resource_parent: `=`, `:`
|
1092
|
+
# * security_center_properties.resource_parent_display_name: `=`, `:`
|
1084
1093
|
# * security_center_properties.resource_project: `=`, `:`
|
1094
|
+
# * security_center_properties.resource_project_display_name: `=`, `:`
|
1085
1095
|
# * security_center_properties.resource_owners: `=`, `:`
|
1086
1096
|
#
|
1087
1097
|
# For example, `resource_properties.size = 100` is a valid filter string.
|
@@ -1101,8 +1111,11 @@ module Google
|
|
1101
1111
|
# resource_properties
|
1102
1112
|
# security_marks.marks
|
1103
1113
|
# security_center_properties.resource_name
|
1114
|
+
# security_center_properties.resource_display_name
|
1104
1115
|
# security_center_properties.resource_parent
|
1116
|
+
# security_center_properties.resource_parent_display_name
|
1105
1117
|
# security_center_properties.resource_project
|
1118
|
+
# security_center_properties.resource_project_display_name
|
1106
1119
|
# security_center_properties.resource_type
|
1107
1120
|
# @param read_time [Google::Protobuf::Timestamp | Hash]
|
1108
1121
|
# Time used as a reference point when filtering assets. The filter is limited
|
@@ -13,9 +13,9 @@
|
|
13
13
|
"initial_retry_delay_millis": 100,
|
14
14
|
"retry_delay_multiplier": 1.3,
|
15
15
|
"max_retry_delay_millis": 60000,
|
16
|
-
"initial_rpc_timeout_millis":
|
16
|
+
"initial_rpc_timeout_millis": 480000,
|
17
17
|
"rpc_timeout_multiplier": 1.0,
|
18
|
-
"max_rpc_timeout_millis":
|
18
|
+
"max_rpc_timeout_millis": 480000,
|
19
19
|
"total_timeout_millis": 600000
|
20
20
|
}
|
21
21
|
},
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/api/resource_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_message "google.cloud.securitycenter.v1.SecurityMarks" do
|
11
11
|
optional :name, :string, 1
|
@@ -11,7 +11,6 @@ require 'google/api/resource_pb'
|
|
11
11
|
require 'google/cloud/security_center/v1/asset_pb'
|
12
12
|
require 'google/cloud/security_center/v1/finding_pb'
|
13
13
|
require 'google/cloud/security_center/v1/organization_settings_pb'
|
14
|
-
require 'google/cloud/security_center/v1/run_asset_discovery_response_pb'
|
15
14
|
require 'google/cloud/security_center/v1/security_marks_pb'
|
16
15
|
require 'google/cloud/security_center/v1/source_pb'
|
17
16
|
require 'google/iam/v1/iam_policy_pb'
|
@@ -126,6 +125,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
126
125
|
add_message "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult" do
|
127
126
|
optional :finding, :message, 1, "google.cloud.securitycenter.v1.Finding"
|
128
127
|
optional :state_change, :enum, 2, "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange"
|
128
|
+
optional :resource, :message, 3, "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource"
|
129
|
+
end
|
130
|
+
add_message "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource" do
|
131
|
+
optional :name, :string, 1
|
132
|
+
optional :project_name, :string, 2
|
133
|
+
optional :project_display_name, :string, 3
|
134
|
+
optional :parent_name, :string, 4
|
135
|
+
optional :parent_display_name, :string, 5
|
129
136
|
end
|
130
137
|
add_enum "google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange" do
|
131
138
|
value :UNUSED, 0
|
@@ -180,6 +187,7 @@ module Google::Cloud::SecurityCenter::V1
|
|
180
187
|
ListFindingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListFindingsRequest").msgclass
|
181
188
|
ListFindingsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListFindingsResponse").msgclass
|
182
189
|
ListFindingsResponse::ListFindingsResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult").msgclass
|
190
|
+
ListFindingsResponse::ListFindingsResult::Resource = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.Resource").msgclass
|
183
191
|
ListFindingsResponse::ListFindingsResult::StateChange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.ListFindingsResponse.ListFindingsResult.StateChange").enummodule
|
184
192
|
SetFindingStateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.SetFindingStateRequest").msgclass
|
185
193
|
RunAssetDiscoveryRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.securitycenter.v1.RunAssetDiscoveryRequest").msgclass
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/api/resource_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_message "google.cloud.securitycenter.v1.Source" do
|
11
11
|
optional :name, :string, 1
|