google-cloud-security_center-v2 0.3.0 → 0.4.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.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/security_center/v2/security_center/client.rb +37 -33
  3. data/lib/google/cloud/security_center/v2/security_center/rest/client.rb +37 -33
  4. data/lib/google/cloud/security_center/v2/version.rb +1 -1
  5. data/lib/google/cloud/securitycenter/v2/bigquery_export_pb.rb +1 -1
  6. data/lib/google/cloud/securitycenter/v2/finding_pb.rb +4 -1
  7. data/lib/google/cloud/securitycenter/v2/mitre_attack_pb.rb +1 -1
  8. data/lib/google/cloud/securitycenter/v2/mute_config_pb.rb +1 -1
  9. data/lib/google/cloud/securitycenter/v2/notification_config_pb.rb +1 -1
  10. data/lib/google/cloud/securitycenter/v2/resource_value_config_pb.rb +1 -1
  11. data/lib/google/cloud/securitycenter/v2/securitycenter_service_pb.rb +2 -1
  12. data/lib/google/cloud/securitycenter/v2/vulnerability_pb.rb +1 -1
  13. data/proto_docs/google/api/client.rb +14 -10
  14. data/proto_docs/google/api/resource.rb +7 -2
  15. data/proto_docs/google/cloud/securitycenter/v2/attack_exposure.rb +1 -1
  16. data/proto_docs/google/cloud/securitycenter/v2/attack_path.rb +3 -3
  17. data/proto_docs/google/cloud/securitycenter/v2/bigquery_export.rb +2 -2
  18. data/proto_docs/google/cloud/securitycenter/v2/finding.rb +47 -0
  19. data/proto_docs/google/cloud/securitycenter/v2/mitre_attack.rb +8 -2
  20. data/proto_docs/google/cloud/securitycenter/v2/mute_config.rb +15 -2
  21. data/proto_docs/google/cloud/securitycenter/v2/notification_config.rb +1 -1
  22. data/proto_docs/google/cloud/securitycenter/v2/resource.rb +5 -5
  23. data/proto_docs/google/cloud/securitycenter/v2/resource_value_config.rb +9 -9
  24. data/proto_docs/google/cloud/securitycenter/v2/securitycenter_service.rb +52 -35
  25. data/proto_docs/google/cloud/securitycenter/v2/simulation.rb +1 -1
  26. data/proto_docs/google/cloud/securitycenter/v2/vulnerability.rb +3 -0
  27. metadata +2 -2
@@ -84,9 +84,26 @@ module Google
84
84
  # * string literals in quotes.
85
85
  # * integer literals without quotes.
86
86
  # * boolean literals `true` and `false` without quotes.
87
+ # @!attribute [rw] mute_state
88
+ # @return [::Google::Cloud::SecurityCenter::V2::BulkMuteFindingsRequest::MuteState]
89
+ # Optional. All findings matching the given filter will have their mute state
90
+ # set to this value. The default value is `MUTED`. Setting this to
91
+ # `UNDEFINED` will clear the mute state on all matching findings.
87
92
  class BulkMuteFindingsRequest
88
93
  include ::Google::Protobuf::MessageExts
89
94
  extend ::Google::Protobuf::MessageExts::ClassMethods
95
+
96
+ # The mute state.
97
+ module MuteState
98
+ # Unused.
99
+ MUTE_STATE_UNSPECIFIED = 0
100
+
101
+ # Matching findings will be muted (default).
102
+ MUTED = 1
103
+
104
+ # Matching findings will have their mute state cleared.
105
+ UNDEFINED = 2
106
+ end
90
107
  end
91
108
 
92
109
  # The response to a BulkMute request. Contains the LRO information.
@@ -99,9 +116,9 @@ module Google
99
116
  # @!attribute [rw] parent
100
117
  # @return [::String]
101
118
  # Required. The name of the parent resource of the new BigQuery export. Its
102
- # format is "organizations/[organization_id]/locations/[location_id]",
103
- # "folders/[folder_id]/locations/[location_id]", or
104
- # "projects/[project_id]/locations/[location_id]".
119
+ # format is `organizations/[organization_id]/locations/[location_id]`,
120
+ # `folders/[folder_id]/locations/[location_id]`, or
121
+ # `projects/[project_id]/locations/[location_id]`.
105
122
  # @!attribute [rw] big_query_export
106
123
  # @return [::Google::Cloud::SecurityCenter::V2::BigQueryExport]
107
124
  # Required. The BigQuery export being created.
@@ -143,9 +160,9 @@ module Google
143
160
  # @!attribute [rw] parent
144
161
  # @return [::String]
145
162
  # Required. Resource name of the new mute configs's parent. Its format is
146
- # "organizations/[organization_id]/locations/[location_id]",
147
- # "folders/[folder_id]/locations/[location_id]", or
148
- # "projects/[project_id]/locations/[location_id]".
163
+ # `organizations/[organization_id]/locations/[location_id]`,
164
+ # `folders/[folder_id]/locations/[location_id]`, or
165
+ # `projects/[project_id]/locations/[location_id]`.
149
166
  # @!attribute [rw] mute_config
150
167
  # @return [::Google::Cloud::SecurityCenter::V2::MuteConfig]
151
168
  # Required. The mute config being created.
@@ -164,9 +181,9 @@ module Google
164
181
  # @!attribute [rw] parent
165
182
  # @return [::String]
166
183
  # Required. Resource name of the new notification config's parent. Its format
167
- # is "organizations/[organization_id]/locations/[location_id]",
168
- # "folders/[folder_id]/locations/[location_id]", or
169
- # "projects/[project_id]/locations/[location_id]".
184
+ # is `organizations/[organization_id]/locations/[location_id]`,
185
+ # `folders/[folder_id]/locations/[location_id]`, or
186
+ # `projects/[project_id]/locations/[location_id]`.
170
187
  # @!attribute [rw] config_id
171
188
  # @return [::String]
172
189
  # Required.
@@ -199,7 +216,7 @@ module Google
199
216
  # @!attribute [rw] parent
200
217
  # @return [::String]
201
218
  # Required. Resource name of the new source's parent. Its format should be
202
- # "organizations/[organization_id]".
219
+ # `organizations/[organization_id]`.
203
220
  # @!attribute [rw] source
204
221
  # @return [::Google::Cloud::SecurityCenter::V2::Source]
205
222
  # Required. The Source being created, only the display_name and description
@@ -334,7 +351,7 @@ module Google
334
351
  # @!attribute [rw] name
335
352
  # @return [::String]
336
353
  # Required. Relative resource name of the source. Its format is
337
- # "organizations/[organization_id]/source/[source_id]".
354
+ # `organizations/[organization_id]/source/[source_id]`.
338
355
  class GetSourceRequest
339
356
  include ::Google::Protobuf::MessageExts
340
357
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -478,10 +495,10 @@ module Google
478
495
  # Required. Name of parent to list attack paths.
479
496
  #
480
497
  # Valid formats:
481
- # "organizations/\\{organization}",
482
- # "organizations/\\{organization}/simulations/\\{simulation}"
483
- # "organizations/\\{organization}/simulations/\\{simulation}/attackExposureResults/\\{attack_exposure_result_v2}"
484
- # "organizations/\\{organization}/simulations/\\{simulation}/valuedResources/\\{valued_resource}"
498
+ # `organizations/{organization}`,
499
+ # `organizations/{organization}/simulations/{simulation}`
500
+ # `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
501
+ # `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
485
502
  # @!attribute [rw] filter
486
503
  # @return [::String]
487
504
  # The filter expression that filters the attack path in the response.
@@ -524,8 +541,8 @@ module Google
524
541
  # Required. The organization name or simulation name of this simulation
525
542
  #
526
543
  # Valid format:
527
- # "organizations/\\{organization}/simulations/latest"
528
- # "organizations/\\{organization}/simulations/\\{simulation}"
544
+ # `organizations/{organization}/simulations/latest`
545
+ # `organizations/{organization}/simulations/{simulation}`
529
546
  class GetSimulationRequest
530
547
  include ::Google::Protobuf::MessageExts
531
548
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -537,7 +554,7 @@ module Google
537
554
  # Required. The name of this valued resource
538
555
  #
539
556
  # Valid format:
540
- # "organizations/\\{organization}/simulations/\\{simulation}/valuedResources/\\{valued_resource}"
557
+ # `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
541
558
  class GetValuedResourceRequest
542
559
  include ::Google::Protobuf::MessageExts
543
560
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -548,9 +565,9 @@ module Google
548
565
  # @!attribute [rw] parent
549
566
  # @return [::String]
550
567
  # Required. The parent, which owns the collection of BigQuery exports. Its
551
- # format is "organizations/[organization_id]/locations/[location_id]",
552
- # "folders/[folder_id]/locations/[location_id]", or
553
- # "projects/[project_id]/locations/[location_id]".
568
+ # format is `organizations/[organization_id]/locations/[location_id]`,
569
+ # `folders/[folder_id]/locations/[location_id]`, or
570
+ # `projects/[project_id]/locations/[location_id]`.
554
571
  # @!attribute [rw] page_size
555
572
  # @return [::Integer]
556
573
  # The maximum number of configs to return. The service may return fewer than
@@ -755,13 +772,13 @@ module Google
755
772
  # @return [::String]
756
773
  # A string representation of the resource path.
757
774
  # For Google Cloud, it has the format of
758
- # organizations/\\{organization_id}/folders/\\{folder_id}/folders/\\{folder_id}/projects/\\{project_id}
775
+ # `organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}`
759
776
  # where there can be any number of folders.
760
777
  # For AWS, it has the format of
761
- # org/\\{organization_id}/ou/\\{organizational_unit_id}/ou/\\{organizational_unit_id}/account/\\{account_id}
778
+ # `org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}`
762
779
  # where there can be any number of organizational units.
763
780
  # For Azure, it has the format of
764
- # mg/\\{management_group_id}/mg/\\{management_group_id}/subscription/\\{subscription_id}/rg/\\{resource_group_name}
781
+ # `mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}`
765
782
  # where there can be any number of management groups.
766
783
  class Resource
767
784
  include ::Google::Protobuf::MessageExts
@@ -776,11 +793,11 @@ module Google
776
793
  # @!attribute [rw] parent
777
794
  # @return [::String]
778
795
  # Required. The parent, which owns the collection of mute configs. Its format
779
- # is "organizations/[organization_id]", "folders/[folder_id]",
780
- # "projects/[project_id]",
781
- # "organizations/[organization_id]/locations/[location_id]",
782
- # "folders/[folder_id]/locations/[location_id]",
783
- # "projects/[project_id]/locations/[location_id]".
796
+ # is `organizations/[organization_id]", "folders/[folder_id]`,
797
+ # `projects/[project_id]`,
798
+ # `organizations/[organization_id]/locations/[location_id]`,
799
+ # `folders/[folder_id]/locations/[location_id]`,
800
+ # `projects/[project_id]/locations/[location_id]`.
784
801
  # @!attribute [rw] page_size
785
802
  # @return [::Integer]
786
803
  # The maximum number of configs to return. The service may return fewer than
@@ -852,7 +869,7 @@ module Google
852
869
  # @return [::String]
853
870
  # Required. The parent, which owns the collection of resource value configs.
854
871
  # Its format is
855
- # "organizations/[organization_id]"
872
+ # `organizations/[organization_id]`
856
873
  # @!attribute [rw] page_size
857
874
  # @return [::Integer]
858
875
  # The maximum number of configs to return. The service may return fewer than
@@ -891,8 +908,8 @@ module Google
891
908
  # @!attribute [rw] parent
892
909
  # @return [::String]
893
910
  # Required. Resource name of the parent of sources to list. Its format should
894
- # be "organizations/[organization_id]", "folders/[folder_id]", or
895
- # "projects/[project_id]".
911
+ # be `organizations/[organization_id]`, `folders/[folder_id]`, or
912
+ # `projects/[project_id]`.
896
913
  # @!attribute [rw] page_token
897
914
  # @return [::String]
898
915
  # The value returned by the last `ListSourcesResponse`; indicates
@@ -926,9 +943,9 @@ module Google
926
943
  # Required. Name of parent to list exposed resources.
927
944
  #
928
945
  # Valid formats:
929
- # "organizations/\\{organization}",
930
- # "organizations/\\{organization}/simulations/\\{simulation}"
931
- # "organizations/\\{organization}/simulations/\\{simulation}/attackExposureResults/\\{attack_exposure_result_v2}"
946
+ # `organizations/{organization}`,
947
+ # `organizations/{organization}/simulations/{simulation}`
948
+ # `organizations/{organization}/simulations/{simulation}/attackExposureResults/{attack_exposure_result_v2}`
932
949
  # @!attribute [rw] filter
933
950
  # @return [::String]
934
951
  # The filter expression that filters the valued resources in the response.
@@ -25,7 +25,7 @@ module Google
25
25
  # @!attribute [rw] name
26
26
  # @return [::String]
27
27
  # Full resource name of the Simulation:
28
- # organizations/123/simulations/456
28
+ # `organizations/123/simulations/456`
29
29
  # @!attribute [r] create_time
30
30
  # @return [::Google::Protobuf::Timestamp]
31
31
  # Output only. Time simulation was created
@@ -71,6 +71,9 @@ module Google
71
71
  # @return [::Boolean]
72
72
  # Whether or not the vulnerability was zero day when the finding was
73
73
  # published.
74
+ # @!attribute [rw] exploit_release_date
75
+ # @return [::Google::Protobuf::Timestamp]
76
+ # Date the first publicly available exploit or PoC was released.
74
77
  class Cve
75
78
  include ::Google::Protobuf::MessageExts
76
79
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-security_center-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-28 00:00:00.000000000 Z
11
+ date: 2024-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common