google-cloud-security_center-v1p1beta1 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 289087e19f0be9249971aa7fe5d2bf215436da5b07043084d9c00a9568d03102
4
- data.tar.gz: faf1035595797c8de5706797d04e2b7f18e4d619843ef73a91666dc5dc659518
3
+ metadata.gz: f8e05d3520cbd11099a6076db0b2e9f48ddcbb0816fa613934abaa2731d609e2
4
+ data.tar.gz: 43bac9632f86404ff457486d9c066205f29a3c89705f462d688c9d7b9f7a1d7f
5
5
  SHA512:
6
- metadata.gz: 26f603a8056d889f742bd327e647075d91fccd4b0a98f84499c7517b280c24e893504a61252178c1ef24e5c7b51a79e4557da8112bec508ec063d1804612bc8b
7
- data.tar.gz: 8f75e7c0176ecb18c84e81c8df38dd106f59d26f727f420840a4ee398f055cf7b7bbadf44f8810a6831d899d49ca97030946405d7feff4f7381817561ed74254
6
+ metadata.gz: 1d8e84493955572476588368dc7d5713820c2d4cedadf33dddb326ad28fd83a488d41c05c652448c95d91e9671de7fba05d262eb8b0a399846127ab6a7937806
7
+ data.tar.gz: 05137f80a2fc4a1e0992e30957aac78d01399dcb9fae791d888dce8839957e6e2c89704a677f06482d295f3f60c2b5a7a1e8f56d40f597653965b4d026f08c03
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-v1p1beta1/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.
@@ -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 = 600.0
68
+ default_config.rpcs.create_source.timeout = 60.0
69
69
 
70
- default_config.rpcs.create_finding.timeout = 600.0
70
+ default_config.rpcs.create_finding.timeout = 60.0
71
71
 
72
- default_config.rpcs.create_notification_config.timeout = 600.0
72
+ default_config.rpcs.create_notification_config.timeout = 60.0
73
73
 
74
- default_config.rpcs.delete_notification_config.timeout = 600.0
74
+ default_config.rpcs.delete_notification_config.timeout = 60.0
75
75
 
76
- default_config.rpcs.get_iam_policy.timeout = 600.0
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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
81
+ retry_codes: [4, 14]
82
82
  }
83
83
 
84
- default_config.rpcs.get_notification_config.timeout = 600.0
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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
89
+ retry_codes: [4, 14]
90
90
  }
91
91
 
92
- default_config.rpcs.get_organization_settings.timeout = 600.0
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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
97
+ retry_codes: [4, 14]
98
98
  }
99
99
 
100
- default_config.rpcs.get_source.timeout = 600.0
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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
105
+ retry_codes: [4, 14]
106
106
  }
107
107
 
108
- default_config.rpcs.group_assets.timeout = 600.0
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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
113
+ retry_codes: [4, 14]
114
114
  }
115
115
 
116
- default_config.rpcs.group_findings.timeout = 600.0
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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
121
+ retry_codes: [4, 14]
122
122
  }
123
123
 
124
- default_config.rpcs.list_assets.timeout = 600.0
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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
129
+ retry_codes: [4, 14]
130
130
  }
131
131
 
132
- default_config.rpcs.list_findings.timeout = 600.0
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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
137
+ retry_codes: [4, 14]
138
138
  }
139
139
 
140
- default_config.rpcs.list_notification_configs.timeout = 600.0
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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
145
+ retry_codes: [4, 14]
146
146
  }
147
147
 
148
- default_config.rpcs.list_sources.timeout = 600.0
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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
153
+ retry_codes: [4, 14]
154
154
  }
155
155
 
156
- default_config.rpcs.run_asset_discovery.timeout = 600.0
156
+ default_config.rpcs.run_asset_discovery.timeout = 60.0
157
157
 
158
- default_config.rpcs.set_finding_state.timeout = 600.0
158
+ default_config.rpcs.set_finding_state.timeout = 60.0
159
159
 
160
- default_config.rpcs.set_iam_policy.timeout = 600.0
160
+ default_config.rpcs.set_iam_policy.timeout = 60.0
161
161
 
162
- default_config.rpcs.test_iam_permissions.timeout = 600.0
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: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
167
+ retry_codes: [4, 14]
168
168
  }
169
169
 
170
- default_config.rpcs.update_finding.timeout = 600.0
170
+ default_config.rpcs.update_finding.timeout = 60.0
171
171
 
172
- default_config.rpcs.update_notification_config.timeout = 600.0
172
+ default_config.rpcs.update_notification_config.timeout = 60.0
173
173
 
174
- default_config.rpcs.update_organization_settings.timeout = 600.0
174
+ default_config.rpcs.update_organization_settings.timeout = 60.0
175
175
 
176
- default_config.rpcs.update_source.timeout = 600.0
176
+ default_config.rpcs.update_source.timeout = 60.0
177
177
 
178
- default_config.rpcs.update_security_marks.timeout = 600.0
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
- # will be used. All other fields will be ignored.
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
- # ignored as they are both output only fields on this resource.
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,16 @@ 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
- # is "organizations/[organization_id]".
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
436
  # Required.
439
437
  # Unique identifier provided by the client within the parent scope.
440
438
  # It must be between 1 and 128 characters, and contains alphanumeric
441
439
  # characters, underscores or hyphens only.
442
440
  # @param notification_config [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig, ::Hash]
443
- # Required. The notification config being created. The name and the service
444
- # account will be ignored as they are both output only fields on this
445
- # resource.
441
+ # Required. The notification config being created. The name and the service account
442
+ # will be ignored as they are both output only fields on this resource.
446
443
  #
447
444
  # @yield [response, operation] Access the result along with the RPC operation
448
445
  # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
@@ -712,8 +709,8 @@ module Google
712
709
  # the default parameter values, pass an empty Hash as a request object (see above).
713
710
  #
714
711
  # @param name [::String]
715
- # Required. Name of the organization to get organization settings for. Its
716
- # format is "organizations/[organization_id]/organizationSettings".
712
+ # Required. Name of the organization to get organization settings for. Its format is
713
+ # "organizations/[organization_id]/organizationSettings".
717
714
  #
718
715
  # @yield [response, operation] Access the result along with the RPC operation
719
716
  # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
@@ -913,9 +910,9 @@ module Google
913
910
  # Use a negated partial match on the empty string to filter based on a
914
911
  # property not existing: `-resource_properties.my_property : ""`
915
912
  # @param group_by [::String]
916
- # Required. Expression that defines what assets fields to use for grouping.
917
- # The string value should follow SQL syntax: comma separated list of fields.
918
- # For example:
913
+ # Required. Expression that defines what assets fields to use for grouping. The string
914
+ # value should follow SQL syntax: comma separated list of fields. For
915
+ # example:
919
916
  # "security_center_properties.resource_project,security_center_properties.project".
920
917
  #
921
918
  # The following fields are supported when compare_duration is not set:
@@ -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
- # (including `state_change`). The string value should follow SQL syntax:
1101
- # comma separated list of fields. For example: "parent,resource_name".
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
  #
@@ -1339,7 +1336,6 @@ module Google
1339
1336
  # is "UNUSED", which will be the state_change set for all assets present at
1340
1337
  # read_time.
1341
1338
  # @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
1342
- # Optional.
1343
1339
  # A field mask to specify the ListAssetsResult fields to be listed in the
1344
1340
  # response.
1345
1341
  # An empty field mask will list all fields.
@@ -1529,7 +1525,6 @@ module Google
1529
1525
  # is "UNUSED", which will be the state_change set for all findings present at
1530
1526
  # read_time.
1531
1527
  # @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
1532
- # Optional.
1533
1528
  # A field mask to specify the Finding fields to be listed in the response.
1534
1529
  # An empty field mask will list all fields.
1535
1530
  # @param page_token [::String]
@@ -1680,8 +1675,8 @@ module Google
1680
1675
  # the default parameter values, pass an empty Hash as a request object (see above).
1681
1676
  #
1682
1677
  # @param parent [::String]
1683
- # Required. Resource name of the parent of sources to list. Its format should
1684
- # be "organizations/[organization_id]".
1678
+ # Required. Resource name of the parent of sources to list. Its format should be
1679
+ # "organizations/[organization_id]".
1685
1680
  # @param page_token [::String]
1686
1681
  # The value returned by the last `ListSourcesResponse`; indicates
1687
1682
  # that this is a continuation of a prior `ListSources` call, and
@@ -1760,8 +1755,8 @@ module Google
1760
1755
  # the default parameter values, pass an empty Hash as a request object (see above).
1761
1756
  #
1762
1757
  # @param parent [::String]
1763
- # Required. Name of the organization to run asset discovery for. Its format
1764
- # is "organizations/[organization_id]".
1758
+ # Required. Name of the organization to run asset discovery for. Its format is
1759
+ # "organizations/[organization_id]".
1765
1760
  #
1766
1761
  # @yield [response, operation] Access the result along with the RPC operation
1767
1762
  # @yieldparam response [::Gapic::Operation]
@@ -2046,8 +2041,8 @@ module Google
2046
2041
  # the default parameter values, pass an empty Hash as a request object (see above).
2047
2042
  #
2048
2043
  # @param finding [::Google::Cloud::SecurityCenter::V1p1beta1::Finding, ::Hash]
2049
- # Required. The finding resource to update or create if it does not already
2050
- # exist. parent, security_marks, and update_time will be ignored.
2044
+ # Required. The finding resource to update or create if it does not already exist.
2045
+ # parent, security_marks, and update_time will be ignored.
2051
2046
  #
2052
2047
  # In the case of creation, the finding id portion of the name must be
2053
2048
  # alphanumeric and less than or equal to 32 characters and greater than 0
@@ -2107,7 +2102,8 @@ module Google
2107
2102
  end
2108
2103
 
2109
2104
  ##
2110
- # Updates a notification config.
2105
+ # Updates a notification config. The following update
2106
+ # fields are allowed: description, pubsub_topic, streaming_config.filter
2111
2107
  #
2112
2108
  # @overload update_notification_config(request, options = nil)
2113
2109
  # Pass arguments to `update_notification_config` via a request object, either of type
@@ -2477,7 +2473,7 @@ module Google
2477
2473
 
2478
2474
  config_attr :endpoint, "securitycenter.googleapis.com", ::String
2479
2475
  config_attr :credentials, nil do |value|
2480
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2476
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2481
2477
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2482
2478
  allowed.any? { |klass| klass === value }
2483
2479
  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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1p1beta1
24
- VERSION = "0.3.0"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  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
@@ -35,7 +35,6 @@ module Google
35
35
 
36
36
  # Creates a source.
37
37
  rpc :CreateSource, Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest, Google::Cloud::SecurityCenter::V1p1beta1::Source
38
- #
39
38
  # Creates a finding. The corresponding source must exist for finding
40
39
  # creation to succeed.
41
40
  rpc :CreateFinding, Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest, Google::Cloud::SecurityCenter::V1p1beta1::Finding
@@ -78,7 +77,6 @@ module Google
78
77
  # it is called too frequently the caller will receive a TOO_MANY_REQUESTS
79
78
  # error.
80
79
  rpc :RunAssetDiscovery, Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest, Google::Longrunning::Operation
81
- #
82
80
  # Updates the state of a finding.
83
81
  rpc :SetFindingState, Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest, Google::Cloud::SecurityCenter::V1p1beta1::Finding
84
82
  # Sets the access control policy on the specified Source.
@@ -88,7 +86,8 @@ module Google
88
86
  # Creates or updates a finding. The corresponding source must exist for a
89
87
  # finding creation to succeed.
90
88
  rpc :UpdateFinding, Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest, Google::Cloud::SecurityCenter::V1p1beta1::Finding
91
- # Updates a notification config.
89
+ # Updates a notification config. The following update
90
+ # fields are allowed: description, pubsub_topic, streaming_config.filter
92
91
  rpc :UpdateNotificationConfig, Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest, Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig
93
92
  # Updates an organization's settings.
94
93
  rpc :UpdateOrganizationSettings, Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest, Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings
@@ -74,12 +74,17 @@ 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. For example, if the finding
78
- # represents an open firewall it would capture the time the detector believes
79
- # the firewall became open. The accuracy is determined by the detector.
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.
83
88
  class Finding
84
89
  include ::Google::Protobuf::MessageExts
85
90
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -105,6 +110,24 @@ module Google
105
110
  # and is no longer active.
106
111
  INACTIVE = 2
107
112
  end
113
+
114
+ # The severity of the finding.
115
+ module Severity
116
+ # No severity specified. The default value.
117
+ SEVERITY_UNSPECIFIED = 0
118
+
119
+ # Critical severity.
120
+ CRITICAL = 1
121
+
122
+ # High severity.
123
+ HIGH = 2
124
+
125
+ # Medium severity.
126
+ MEDIUM = 3
127
+
128
+ # Low severity.
129
+ LOW = 4
130
+ end
108
131
  end
109
132
  end
110
133
  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
- # ignored as they are both output only fields on this resource.
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,8 +41,8 @@ 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
- # is "organizations/[organization_id]".
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
48
  # Required.
@@ -53,9 +51,8 @@ module Google
53
51
  # characters, underscores or hyphens only.
54
52
  # @!attribute [rw] notification_config
55
53
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
56
- # Required. The notification config being created. The name and the service
57
- # account will be ignored as they are both output only fields on this
58
- # resource.
54
+ # Required. The notification config being created. The name and the service account
55
+ # will be ignored as they are both output only fields on this resource.
59
56
  class CreateNotificationConfigRequest
60
57
  include ::Google::Protobuf::MessageExts
61
58
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -68,8 +65,8 @@ module Google
68
65
  # "organizations/[organization_id]".
69
66
  # @!attribute [rw] source
70
67
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
71
- # Required. The Source being created, only the display_name and description
72
- # will be used. All other fields will be ignored.
68
+ # Required. The Source being created, only the display_name and description will be
69
+ # used. All other fields will be ignored.
73
70
  class CreateSourceRequest
74
71
  include ::Google::Protobuf::MessageExts
75
72
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -98,8 +95,8 @@ module Google
98
95
  # Request message for getting organization settings.
99
96
  # @!attribute [rw] name
100
97
  # @return [::String]
101
- # Required. Name of the organization to get organization settings for. Its
102
- # format is "organizations/[organization_id]/organizationSettings".
98
+ # Required. Name of the organization to get organization settings for. Its format is
99
+ # "organizations/[organization_id]/organizationSettings".
103
100
  class GetOrganizationSettingsRequest
104
101
  include ::Google::Protobuf::MessageExts
105
102
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -186,9 +183,9 @@ module Google
186
183
  # property not existing: `-resource_properties.my_property : ""`
187
184
  # @!attribute [rw] group_by
188
185
  # @return [::String]
189
- # Required. Expression that defines what assets fields to use for grouping.
190
- # The string value should follow SQL syntax: comma separated list of fields.
191
- # For example:
186
+ # Required. Expression that defines what assets fields to use for grouping. The string
187
+ # value should follow SQL syntax: comma separated list of fields. For
188
+ # example:
192
189
  # "security_center_properties.resource_project,security_center_properties.project".
193
190
  #
194
191
  # The following fields are supported when compare_duration is not set:
@@ -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
- # (including `state_change`). The string value should follow SQL syntax:
339
- # comma separated list of fields. For example: "parent,resource_name".
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
  #
@@ -479,8 +476,8 @@ module Google
479
476
  # Request message for listing sources.
480
477
  # @!attribute [rw] parent
481
478
  # @return [::String]
482
- # Required. Resource name of the parent of sources to list. Its format should
483
- # be "organizations/[organization_id]".
479
+ # Required. Resource name of the parent of sources to list. Its format should be
480
+ # "organizations/[organization_id]".
484
481
  # @!attribute [rw] page_token
485
482
  # @return [::String]
486
483
  # The value returned by the last `ListSourcesResponse`; indicates
@@ -634,7 +631,6 @@ module Google
634
631
  # read_time.
635
632
  # @!attribute [rw] field_mask
636
633
  # @return [::Google::Protobuf::FieldMask]
637
- # Optional.
638
634
  # A field mask to specify the ListAssetsResult fields to be listed in the
639
635
  # response.
640
636
  # An empty field mask will list all fields.
@@ -821,7 +817,6 @@ module Google
821
817
  # read_time.
822
818
  # @!attribute [rw] field_mask
823
819
  # @return [::Google::Protobuf::FieldMask]
824
- # Optional.
825
820
  # A field mask to specify the Finding fields to be listed in the response.
826
821
  # An empty field mask will list all fields.
827
822
  # @!attribute [rw] page_token
@@ -863,7 +858,7 @@ module Google
863
858
  # @!attribute [rw] state_change
864
859
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult::StateChange]
865
860
  # State change of the finding between the points in time.
866
- # @!attribute [rw] resource
861
+ # @!attribute [r] resource
867
862
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult::Resource]
868
863
  # Output only. Resource that is associated with this finding.
869
864
  class ListFindingsResult
@@ -944,8 +939,8 @@ module Google
944
939
  # Request message for running asset discovery for an organization.
945
940
  # @!attribute [rw] parent
946
941
  # @return [::String]
947
- # Required. Name of the organization to run asset discovery for. Its format
948
- # is "organizations/[organization_id]".
942
+ # Required. Name of the organization to run asset discovery for. Its format is
943
+ # "organizations/[organization_id]".
949
944
  class RunAssetDiscoveryRequest
950
945
  include ::Google::Protobuf::MessageExts
951
946
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -954,8 +949,8 @@ module Google
954
949
  # Request message for updating or creating a finding.
955
950
  # @!attribute [rw] finding
956
951
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
957
- # Required. The finding resource to update or create if it does not already
958
- # exist. parent, security_marks, and update_time will be ignored.
952
+ # Required. The finding resource to update or create if it does not already exist.
953
+ # parent, security_marks, and update_time will be ignored.
959
954
  #
960
955
  # In the case of creation, the finding id portion of the name must be
961
956
  # 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.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: 2020-06-12 00:00:00.000000000 Z
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.2'
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.2'
26
+ version: '0.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-errors
29
29
  requirement: !ruby/object:Gem::Requirement