google-cloud-security_center-v1p1beta1 0.4.0 → 0.4.1

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: f8e05d3520cbd11099a6076db0b2e9f48ddcbb0816fa613934abaa2731d609e2
4
- data.tar.gz: 43bac9632f86404ff457486d9c066205f29a3c89705f462d688c9d7b9f7a1d7f
3
+ metadata.gz: 55d4cb10b37b057be24e22f5111c8f232ed0ce29cb2ddf7d3b97bf9dbcceeb1a
4
+ data.tar.gz: 6006c7922675699717d1e8efa6c838f12936299120484b8dedfc891217694c76
5
5
  SHA512:
6
- metadata.gz: 1d8e84493955572476588368dc7d5713820c2d4cedadf33dddb326ad28fd83a488d41c05c652448c95d91e9671de7fba05d262eb8b0a399846127ab6a7937806
7
- data.tar.gz: 05137f80a2fc4a1e0992e30957aac78d01399dcb9fae791d888dce8839957e6e2c89704a677f06482d295f3f60c2b5a7a1e8f56d40f597653965b4d026f08c03
6
+ metadata.gz: 8ff41ab173b21ec4f012202cb36c7da10bbf6fbbc00176ae34febf92a53dd4b343bf00fb1fcdbf10596bc8d4778e27b8afd71f57663e3d37ee3eff7bdbc0cdc3
7
+ data.tar.gz: afb9ea265ac938897f0a8fe5b10d6b64410c271b28a6909d54ad94be04be19af7bb69078d487e606e7aadd526e2e3e08c11b255790e0724d37bdcab7156e4bd0
@@ -433,8 +433,7 @@ module Google
433
433
  # Required. Resource name of the new notification config's parent. Its format is
434
434
  # "organizations/[organization_id]".
435
435
  # @param config_id [::String]
436
- # Required.
437
- # Unique identifier provided by the client within the parent scope.
436
+ # Required. Unique identifier provided by the client within the parent scope.
438
437
  # It must be between 1 and 128 characters, and contains alphanumeric
439
438
  # characters, underscores or hyphens only.
440
439
  # @param notification_config [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig, ::Hash]
@@ -1076,6 +1075,7 @@ module Google
1076
1075
  # * category: `=`, `:`
1077
1076
  # * external_uri: `=`, `:`
1078
1077
  # * event_time: `=`, `>`, `<`, `>=`, `<=`
1078
+ # * severity: `=`, `:`
1079
1079
  #
1080
1080
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
1081
1081
  # Examples:
@@ -1103,6 +1103,7 @@ module Google
1103
1103
  # * category
1104
1104
  # * state
1105
1105
  # * parent
1106
+ # * severity
1106
1107
  #
1107
1108
  # The following fields are supported when compare_duration is set:
1108
1109
  #
@@ -1446,13 +1447,14 @@ module Google
1446
1447
  #
1447
1448
  # The following field and operator combinations are supported:
1448
1449
  #
1449
- # name: `=`
1450
- # parent: `=`, `:`
1451
- # resource_name: `=`, `:`
1452
- # state: `=`, `:`
1453
- # category: `=`, `:`
1454
- # external_uri: `=`, `:`
1455
- # event_time: `=`, `>`, `<`, `>=`, `<=`
1450
+ # * name: `=`
1451
+ # * parent: `=`, `:`
1452
+ # * resource_name: `=`, `:`
1453
+ # * state: `=`, `:`
1454
+ # * category: `=`, `:`
1455
+ # * external_uri: `=`, `:`
1456
+ # * event_time: `=`, `>`, `<`, `>=`, `<=`
1457
+ # * severity: `=`, `:`
1456
1458
  #
1457
1459
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
1458
1460
  # Examples:
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module SecurityCenter
23
23
  module V1p1beta1
24
- VERSION = "0.4.0"
24
+ VERSION = "0.4.1"
25
25
  end
26
26
  end
27
27
  end
@@ -3,6 +3,7 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/cloud/securitycenter/v1p1beta1/notification_message_pb'
6
7
  require 'google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response_pb'
7
8
  require 'google/api/annotations_pb'
8
9
  require 'google/api/client_pb'
@@ -34,67 +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
37
+ rpc :CreateSource, ::Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest, ::Google::Cloud::SecurityCenter::V1p1beta1::Source
38
38
  # Creates a finding. The corresponding source must exist for finding
39
39
  # creation to succeed.
40
- 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
41
41
  # Creates a notification config.
42
- 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
43
43
  # Deletes a notification config.
44
- rpc :DeleteNotificationConfig, Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest, Google::Protobuf::Empty
44
+ rpc :DeleteNotificationConfig, ::Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest, ::Google::Protobuf::Empty
45
45
  # Gets the access control policy on the specified Source.
46
- rpc :GetIamPolicy, Google::Iam::V1::GetIamPolicyRequest, Google::Iam::V1::Policy
46
+ rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
47
47
  # Gets a notification config.
48
- 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
49
49
  # Gets the settings for an organization.
50
- 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
51
51
  # Gets a source.
52
- 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
53
53
  # Filters an organization's assets and groups them by their specified
54
54
  # properties.
55
- 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
56
56
  # Filters an organization or source's findings and groups them by their
57
57
  # specified properties.
58
58
  #
59
59
  # To group across all sources provide a `-` as the source id.
60
60
  # Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
61
- 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
62
62
  # Lists an organization's assets.
63
- 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
64
64
  # Lists an organization or source's findings.
65
65
  #
66
66
  # To list across all sources provide a `-` as the source id.
67
67
  # Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings
68
- 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
69
69
  # Lists notification configs.
70
- 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
71
71
  # Lists all sources belonging to an organization.
72
- 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
73
73
  # Runs asset discovery. The discovery is tracked with a long-running
74
74
  # operation.
75
75
  #
76
76
  # This API can only be called with limited frequency for an organization. If
77
77
  # it is called too frequently the caller will receive a TOO_MANY_REQUESTS
78
78
  # error.
79
- rpc :RunAssetDiscovery, Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest, Google::Longrunning::Operation
79
+ rpc :RunAssetDiscovery, ::Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest, ::Google::Longrunning::Operation
80
80
  # Updates the state of a finding.
81
- 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
82
82
  # Sets the access control policy on the specified Source.
83
- rpc :SetIamPolicy, Google::Iam::V1::SetIamPolicyRequest, Google::Iam::V1::Policy
83
+ rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
84
84
  # Returns the permissions that a caller has on the specified source.
85
- rpc :TestIamPermissions, Google::Iam::V1::TestIamPermissionsRequest, Google::Iam::V1::TestIamPermissionsResponse
85
+ rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
86
86
  # Creates or updates a finding. The corresponding source must exist for a
87
87
  # finding creation to succeed.
88
- 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
89
89
  # Updates a notification config. The following update
90
90
  # fields are allowed: description, pubsub_topic, streaming_config.filter
91
- 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
92
92
  # Updates an organization's settings.
93
- 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
94
94
  # Updates a source.
95
- 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
96
96
  # Updates security marks.
97
- 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
98
98
  end
99
99
 
100
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
- # 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}"
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 'projects' for
187
- # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
- # field in k8s CRD spec
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
- # message ListLogEntriesRequest {
238
- # string parent = 1 [(google.api.resource_reference) = {
239
- # child_type: "logging.googleapis.com/LogEntry"
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
@@ -84,7 +84,8 @@ module Google
84
84
  # The time at which the finding was created in Security Command Center.
85
85
  # @!attribute [rw] severity
86
86
  # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding::Severity]
87
- # The severity of the finding.
87
+ # The severity of the finding. This field is managed by the source that
88
+ # writes the finding.
88
89
  class Finding
89
90
  include ::Google::Protobuf::MessageExts
90
91
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -111,7 +112,8 @@ module Google
111
112
  INACTIVE = 2
112
113
  end
113
114
 
114
- # The severity of the finding.
115
+ # The severity of the finding. This field is managed by the source that
116
+ # writes the finding.
115
117
  module Severity
116
118
  # No severity specified. The default value.
117
119
  SEVERITY_UNSPECIFIED = 0
@@ -45,8 +45,7 @@ module Google
45
45
  # "organizations/[organization_id]".
46
46
  # @!attribute [rw] config_id
47
47
  # @return [::String]
48
- # Required.
49
- # Unique identifier provided by the client within the parent scope.
48
+ # Required. Unique identifier provided by the client within the parent scope.
50
49
  # It must be between 1 and 128 characters, and contains alphanumeric
51
50
  # characters, underscores or hyphens only.
52
51
  # @!attribute [rw] notification_config
@@ -313,6 +312,7 @@ module Google
313
312
  # * category: `=`, `:`
314
313
  # * external_uri: `=`, `:`
315
314
  # * event_time: `=`, `>`, `<`, `>=`, `<=`
315
+ # * severity: `=`, `:`
316
316
  #
317
317
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
318
318
  # Examples:
@@ -341,6 +341,7 @@ module Google
341
341
  # * category
342
342
  # * state
343
343
  # * parent
344
+ # * severity
344
345
  #
345
346
  # The following fields are supported when compare_duration is set:
346
347
  #
@@ -734,13 +735,14 @@ module Google
734
735
  #
735
736
  # The following field and operator combinations are supported:
736
737
  #
737
- # name: `=`
738
- # parent: `=`, `:`
739
- # resource_name: `=`, `:`
740
- # state: `=`, `:`
741
- # category: `=`, `:`
742
- # external_uri: `=`, `:`
743
- # event_time: `=`, `>`, `<`, `>=`, `<=`
738
+ # * name: `=`
739
+ # * parent: `=`, `:`
740
+ # * resource_name: `=`, `:`
741
+ # * state: `=`, `:`
742
+ # * category: `=`, `:`
743
+ # * external_uri: `=`, `:`
744
+ # * event_time: `=`, `>`, `<`, `>=`, `<=`
745
+ # * severity: `=`, `:`
744
746
  #
745
747
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
746
748
  # Examples:
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.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-09-03 00:00:00.000000000 Z
11
+ date: 2020-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -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.3
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