google-cloud-security_center-v1 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +1 -1
  4. data/lib/google/cloud/security_center/v1.rb +1 -1
  5. data/lib/google/cloud/security_center/v1/security_center.rb +1 -1
  6. data/lib/google/cloud/security_center/v1/security_center/client.rb +458 -458
  7. data/lib/google/cloud/security_center/v1/security_center/credentials.rb +1 -1
  8. data/lib/google/cloud/security_center/v1/security_center/operations.rb +100 -100
  9. data/lib/google/cloud/security_center/v1/security_center/paths.rb +16 -16
  10. data/lib/google/cloud/security_center/v1/version.rb +1 -1
  11. data/proto_docs/google/api/resource.rb +12 -12
  12. data/proto_docs/google/cloud/securitycenter/v1/asset.rb +26 -26
  13. data/proto_docs/google/cloud/securitycenter/v1/finding.rb +16 -16
  14. data/proto_docs/google/cloud/securitycenter/v1/notification_config.rb +10 -10
  15. data/proto_docs/google/cloud/securitycenter/v1/notification_message.rb +4 -4
  16. data/proto_docs/google/cloud/securitycenter/v1/organization_settings.rb +9 -9
  17. data/proto_docs/google/cloud/securitycenter/v1/run_asset_discovery_response.rb +4 -4
  18. data/proto_docs/google/cloud/securitycenter/v1/security_marks.rb +8 -8
  19. data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +159 -159
  20. data/proto_docs/google/cloud/securitycenter/v1/source.rb +5 -5
  21. data/proto_docs/google/iam/v1/iam_policy.rb +15 -15
  22. data/proto_docs/google/iam/v1/options.rb +3 -3
  23. data/proto_docs/google/iam/v1/policy.rb +26 -26
  24. data/proto_docs/google/longrunning/operations.rb +30 -30
  25. data/proto_docs/google/protobuf/any.rb +4 -4
  26. data/proto_docs/google/protobuf/duration.rb +4 -4
  27. data/proto_docs/google/protobuf/empty.rb +2 -2
  28. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  29. data/proto_docs/google/protobuf/struct.rb +18 -18
  30. data/proto_docs/google/protobuf/timestamp.rb +4 -4
  31. data/proto_docs/google/rpc/status.rb +6 -6
  32. data/proto_docs/google/type/expr.rb +6 -6
  33. metadata +2 -2
@@ -23,15 +23,15 @@ module Google
23
23
  module V1
24
24
  # Cloud SCC's Notification
25
25
  # @!attribute [rw] notification_config_name
26
- # @return [String]
26
+ # @return [::String]
27
27
  # Name of the notification config that generated current notification.
28
28
  # @!attribute [rw] finding
29
- # @return [Google::Cloud::SecurityCenter::V1::Finding]
29
+ # @return [::Google::Cloud::SecurityCenter::V1::Finding]
30
30
  # If it's a Finding based notification config, this field will be
31
31
  # populated.
32
32
  class NotificationMessage
33
- include Google::Protobuf::MessageExts
34
- extend Google::Protobuf::MessageExts::ClassMethods
33
+ include ::Google::Protobuf::MessageExts
34
+ extend ::Google::Protobuf::MessageExts::ClassMethods
35
35
  end
36
36
  end
37
37
  end
@@ -24,34 +24,34 @@ module Google
24
24
  # User specified settings that are attached to the Cloud Security Command
25
25
  # Center (Cloud SCC) organization.
26
26
  # @!attribute [rw] name
27
- # @return [String]
27
+ # @return [::String]
28
28
  # The relative resource name of the settings. See:
29
29
  # https://cloud.google.com/apis/design/resource_names#relative_resource_name
30
30
  # Example:
31
31
  # "organizations/\\{organization_id}/organizationSettings".
32
32
  # @!attribute [rw] enable_asset_discovery
33
- # @return [Boolean]
33
+ # @return [::Boolean]
34
34
  # A flag that indicates if Asset Discovery should be enabled. If the flag is
35
35
  # set to `true`, then discovery of assets will occur. If it is set to `false,
36
36
  # all historical assets will remain, but discovery of future assets will not
37
37
  # occur.
38
38
  # @!attribute [rw] asset_discovery_config
39
- # @return [Google::Cloud::SecurityCenter::V1::OrganizationSettings::AssetDiscoveryConfig]
39
+ # @return [::Google::Cloud::SecurityCenter::V1::OrganizationSettings::AssetDiscoveryConfig]
40
40
  # The configuration used for Asset Discovery runs.
41
41
  class OrganizationSettings
42
- include Google::Protobuf::MessageExts
43
- extend Google::Protobuf::MessageExts::ClassMethods
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
44
 
45
45
  # The configuration used for Asset Discovery runs.
46
46
  # @!attribute [rw] project_ids
47
- # @return [Array<String>]
47
+ # @return [::Array<::String>]
48
48
  # The project ids to use for filtering asset discovery.
49
49
  # @!attribute [rw] inclusion_mode
50
- # @return [Google::Cloud::SecurityCenter::V1::OrganizationSettings::AssetDiscoveryConfig::InclusionMode]
50
+ # @return [::Google::Cloud::SecurityCenter::V1::OrganizationSettings::AssetDiscoveryConfig::InclusionMode]
51
51
  # The mode to use for filtering asset discovery.
52
52
  class AssetDiscoveryConfig
53
- include Google::Protobuf::MessageExts
54
- extend Google::Protobuf::MessageExts::ClassMethods
53
+ include ::Google::Protobuf::MessageExts
54
+ extend ::Google::Protobuf::MessageExts::ClassMethods
55
55
 
56
56
  # The mode of inclusion when running Asset Discovery.
57
57
  # Asset discovery can be limited by explicitly identifying projects to be
@@ -23,14 +23,14 @@ module Google
23
23
  module V1
24
24
  # Response of asset discovery run
25
25
  # @!attribute [rw] state
26
- # @return [Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryResponse::State]
26
+ # @return [::Google::Cloud::SecurityCenter::V1::RunAssetDiscoveryResponse::State]
27
27
  # The state of an asset discovery run.
28
28
  # @!attribute [rw] duration
29
- # @return [Google::Protobuf::Duration]
29
+ # @return [::Google::Protobuf::Duration]
30
30
  # The duration between asset discovery run start and end
31
31
  class RunAssetDiscoveryResponse
32
- include Google::Protobuf::MessageExts
33
- extend Google::Protobuf::MessageExts::ClassMethods
32
+ include ::Google::Protobuf::MessageExts
33
+ extend ::Google::Protobuf::MessageExts::ClassMethods
34
34
 
35
35
  # The state of an asset discovery run.
36
36
  module State
@@ -26,14 +26,14 @@ module Google
26
26
  # SCC organization -- they can be modified and viewed by all users who have
27
27
  # proper permissions on the organization.
28
28
  # @!attribute [rw] name
29
- # @return [String]
29
+ # @return [::String]
30
30
  # The relative resource name of the SecurityMarks. See:
31
31
  # https://cloud.google.com/apis/design/resource_names#relative_resource_name
32
32
  # Examples:
33
33
  # "organizations/\\{organization_id}/assets/\\{asset_id}/securityMarks"
34
34
  # "organizations/\\{organization_id}/sources/\\{source_id}/findings/\\{finding_id}/securityMarks".
35
35
  # @!attribute [rw] marks
36
- # @return [Google::Protobuf::Map{String => String}]
36
+ # @return [::Google::Protobuf::Map{::String => ::String}]
37
37
  # Mutable user specified security marks belonging to the parent resource.
38
38
  # Constraints are as follows:
39
39
  #
@@ -43,16 +43,16 @@ module Google
43
43
  # * Values have leading and trailing whitespace trimmed, remaining
44
44
  # characters must be between 1 - 4096 characters (inclusive)
45
45
  class SecurityMarks
46
- include Google::Protobuf::MessageExts
47
- extend Google::Protobuf::MessageExts::ClassMethods
46
+ include ::Google::Protobuf::MessageExts
47
+ extend ::Google::Protobuf::MessageExts::ClassMethods
48
48
 
49
49
  # @!attribute [rw] key
50
- # @return [String]
50
+ # @return [::String]
51
51
  # @!attribute [rw] value
52
- # @return [String]
52
+ # @return [::String]
53
53
  class MarksEntry
54
- include Google::Protobuf::MessageExts
55
- extend Google::Protobuf::MessageExts::ClassMethods
54
+ include ::Google::Protobuf::MessageExts
55
+ extend ::Google::Protobuf::MessageExts::ClassMethods
56
56
  end
57
57
  end
58
58
  end
@@ -23,105 +23,105 @@ module Google
23
23
  module V1
24
24
  # Request message for creating a finding.
25
25
  # @!attribute [rw] parent
26
- # @return [String]
26
+ # @return [::String]
27
27
  # Required. Resource name of the new finding's parent. Its format should be
28
28
  # "organizations/[organization_id]/sources/[source_id]".
29
29
  # @!attribute [rw] finding_id
30
- # @return [String]
30
+ # @return [::String]
31
31
  # Required. Unique identifier provided by the client within the parent scope.
32
32
  # It must be alphanumeric and less than or equal to 32 characters and
33
33
  # greater than 0 characters in length.
34
34
  # @!attribute [rw] finding
35
- # @return [Google::Cloud::SecurityCenter::V1::Finding]
35
+ # @return [::Google::Cloud::SecurityCenter::V1::Finding]
36
36
  # Required. The Finding being created. The name and security_marks will be
37
37
  # ignored as they are both output only fields on this resource.
38
38
  class CreateFindingRequest
39
- include Google::Protobuf::MessageExts
40
- extend Google::Protobuf::MessageExts::ClassMethods
39
+ include ::Google::Protobuf::MessageExts
40
+ extend ::Google::Protobuf::MessageExts::ClassMethods
41
41
  end
42
42
 
43
43
  # Request message for creating a notification config.
44
44
  # @!attribute [rw] parent
45
- # @return [String]
45
+ # @return [::String]
46
46
  # Required. Resource name of the new notification config's parent. Its format
47
47
  # is "organizations/[organization_id]".
48
48
  # @!attribute [rw] config_id
49
- # @return [String]
49
+ # @return [::String]
50
50
  # Required.
51
51
  # Unique identifier provided by the client within the parent scope.
52
52
  # It must be between 1 and 128 characters, and contains alphanumeric
53
53
  # characters, underscores or hyphens only.
54
54
  # @!attribute [rw] notification_config
55
- # @return [Google::Cloud::SecurityCenter::V1::NotificationConfig]
55
+ # @return [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
56
56
  # Required. The notification config being created. The name and the service
57
57
  # account will be ignored as they are both output only fields on this
58
58
  # resource.
59
59
  class CreateNotificationConfigRequest
60
- include Google::Protobuf::MessageExts
61
- extend Google::Protobuf::MessageExts::ClassMethods
60
+ include ::Google::Protobuf::MessageExts
61
+ extend ::Google::Protobuf::MessageExts::ClassMethods
62
62
  end
63
63
 
64
64
  # Request message for creating a source.
65
65
  # @!attribute [rw] parent
66
- # @return [String]
66
+ # @return [::String]
67
67
  # Required. Resource name of the new source's parent. Its format should be
68
68
  # "organizations/[organization_id]".
69
69
  # @!attribute [rw] source
70
- # @return [Google::Cloud::SecurityCenter::V1::Source]
70
+ # @return [::Google::Cloud::SecurityCenter::V1::Source]
71
71
  # Required. The Source being created, only the display_name and description
72
72
  # will be used. All other fields will be ignored.
73
73
  class CreateSourceRequest
74
- include Google::Protobuf::MessageExts
75
- extend Google::Protobuf::MessageExts::ClassMethods
74
+ include ::Google::Protobuf::MessageExts
75
+ extend ::Google::Protobuf::MessageExts::ClassMethods
76
76
  end
77
77
 
78
78
  # Request message for deleting a notification config.
79
79
  # @!attribute [rw] name
80
- # @return [String]
80
+ # @return [::String]
81
81
  # Required. Name of the notification config to delete. Its format is
82
82
  # "organizations/[organization_id]/notificationConfigs/[config_id]".
83
83
  class DeleteNotificationConfigRequest
84
- include Google::Protobuf::MessageExts
85
- extend Google::Protobuf::MessageExts::ClassMethods
84
+ include ::Google::Protobuf::MessageExts
85
+ extend ::Google::Protobuf::MessageExts::ClassMethods
86
86
  end
87
87
 
88
88
  # Request message for getting a notification config.
89
89
  # @!attribute [rw] name
90
- # @return [String]
90
+ # @return [::String]
91
91
  # Required. Name of the notification config to get. Its format is
92
92
  # "organizations/[organization_id]/notificationConfigs/[config_id]".
93
93
  class GetNotificationConfigRequest
94
- include Google::Protobuf::MessageExts
95
- extend Google::Protobuf::MessageExts::ClassMethods
94
+ include ::Google::Protobuf::MessageExts
95
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
96
  end
97
97
 
98
98
  # Request message for getting organization settings.
99
99
  # @!attribute [rw] name
100
- # @return [String]
100
+ # @return [::String]
101
101
  # Required. Name of the organization to get organization settings for. Its
102
102
  # format is "organizations/[organization_id]/organizationSettings".
103
103
  class GetOrganizationSettingsRequest
104
- include Google::Protobuf::MessageExts
105
- extend Google::Protobuf::MessageExts::ClassMethods
104
+ include ::Google::Protobuf::MessageExts
105
+ extend ::Google::Protobuf::MessageExts::ClassMethods
106
106
  end
107
107
 
108
108
  # Request message for getting a source.
109
109
  # @!attribute [rw] name
110
- # @return [String]
110
+ # @return [::String]
111
111
  # Required. Relative resource name of the source. Its format is
112
112
  # "organizations/[organization_id]/source/[source_id]".
113
113
  class GetSourceRequest
114
- include Google::Protobuf::MessageExts
115
- extend Google::Protobuf::MessageExts::ClassMethods
114
+ include ::Google::Protobuf::MessageExts
115
+ extend ::Google::Protobuf::MessageExts::ClassMethods
116
116
  end
117
117
 
118
118
  # Request message for grouping by assets.
119
119
  # @!attribute [rw] parent
120
- # @return [String]
120
+ # @return [::String]
121
121
  # Required. Name of the organization to groupBy. Its format is
122
122
  # "organizations/[organization_id]".
123
123
  # @!attribute [rw] filter
124
- # @return [String]
124
+ # @return [::String]
125
125
  # Expression that defines the filter to apply across assets.
126
126
  # The expression is a list of zero or more restrictions combined via logical
127
127
  # operators `AND` and `OR`.
@@ -179,7 +179,7 @@ module Google
179
179
  #
180
180
  # For example, `resource_properties.size = 100` is a valid filter string.
181
181
  # @!attribute [rw] group_by
182
- # @return [String]
182
+ # @return [::String]
183
183
  # Required. Expression that defines what assets fields to use for grouping.
184
184
  # The string value should follow SQL syntax: comma separated list of fields.
185
185
  # For example:
@@ -199,7 +199,7 @@ module Google
199
199
  # * security_center_properties.resource_project_display_name
200
200
  # * security_center_properties.resource_parent_display_name
201
201
  # @!attribute [rw] compare_duration
202
- # @return [Google::Protobuf::Duration]
202
+ # @return [::Google::Protobuf::Duration]
203
203
  # When compare_duration is set, the GroupResult's "state_change" property is
204
204
  # updated to indicate whether the asset was added, removed, or remained
205
205
  # present during the compare_duration period of time that precedes the
@@ -228,55 +228,55 @@ module Google
228
228
  # If this field is set then `state_change` must be a specified field in
229
229
  # `group_by`.
230
230
  # @!attribute [rw] read_time
231
- # @return [Google::Protobuf::Timestamp]
231
+ # @return [::Google::Protobuf::Timestamp]
232
232
  # Time used as a reference point when filtering assets. The filter is limited
233
233
  # to assets existing at the supplied time and their values are those at that
234
234
  # specific time. Absence of this field will default to the API's version of
235
235
  # NOW.
236
236
  # @!attribute [rw] page_token
237
- # @return [String]
237
+ # @return [::String]
238
238
  # The value returned by the last `GroupAssetsResponse`; indicates
239
239
  # that this is a continuation of a prior `GroupAssets` call, and that the
240
240
  # system should return the next page of data.
241
241
  # @!attribute [rw] page_size
242
- # @return [Integer]
242
+ # @return [::Integer]
243
243
  # The maximum number of results to return in a single response. Default is
244
244
  # 10, minimum is 1, maximum is 1000.
245
245
  class GroupAssetsRequest
246
- include Google::Protobuf::MessageExts
247
- extend Google::Protobuf::MessageExts::ClassMethods
246
+ include ::Google::Protobuf::MessageExts
247
+ extend ::Google::Protobuf::MessageExts::ClassMethods
248
248
  end
249
249
 
250
250
  # Response message for grouping by assets.
251
251
  # @!attribute [rw] group_by_results
252
- # @return [Array<Google::Cloud::SecurityCenter::V1::GroupResult>]
252
+ # @return [::Array<::Google::Cloud::SecurityCenter::V1::GroupResult>]
253
253
  # Group results. There exists an element for each existing unique
254
254
  # combination of property/values. The element contains a count for the number
255
255
  # of times those specific property/values appear.
256
256
  # @!attribute [rw] read_time
257
- # @return [Google::Protobuf::Timestamp]
257
+ # @return [::Google::Protobuf::Timestamp]
258
258
  # Time used for executing the groupBy request.
259
259
  # @!attribute [rw] next_page_token
260
- # @return [String]
260
+ # @return [::String]
261
261
  # Token to retrieve the next page of results, or empty if there are no more
262
262
  # results.
263
263
  # @!attribute [rw] total_size
264
- # @return [Integer]
264
+ # @return [::Integer]
265
265
  # The total number of results matching the query.
266
266
  class GroupAssetsResponse
267
- include Google::Protobuf::MessageExts
268
- extend Google::Protobuf::MessageExts::ClassMethods
267
+ include ::Google::Protobuf::MessageExts
268
+ extend ::Google::Protobuf::MessageExts::ClassMethods
269
269
  end
270
270
 
271
271
  # Request message for grouping by findings.
272
272
  # @!attribute [rw] parent
273
- # @return [String]
273
+ # @return [::String]
274
274
  # Required. Name of the source to groupBy. Its format is
275
275
  # "organizations/[organization_id]/sources/[source_id]". To groupBy across
276
276
  # all sources provide a source_id of `-`. For example:
277
277
  # organizations/\\{organization_id}/sources/-
278
278
  # @!attribute [rw] filter
279
- # @return [String]
279
+ # @return [::String]
280
280
  # Expression that defines the filter to apply across findings.
281
281
  # The expression is a list of one or more restrictions combined via logical
282
282
  # operators `AND` and `OR`.
@@ -321,7 +321,7 @@ module Google
321
321
  #
322
322
  # For example, `source_properties.size = 100` is a valid filter string.
323
323
  # @!attribute [rw] group_by
324
- # @return [String]
324
+ # @return [::String]
325
325
  # Required. Expression that defines what assets fields to use for grouping
326
326
  # (including `state_change`). The string value should follow SQL syntax:
327
327
  # comma separated list of fields. For example: "parent,resource_name".
@@ -337,13 +337,13 @@ module Google
337
337
  #
338
338
  # * state_change
339
339
  # @!attribute [rw] read_time
340
- # @return [Google::Protobuf::Timestamp]
340
+ # @return [::Google::Protobuf::Timestamp]
341
341
  # Time used as a reference point when filtering findings. The filter is
342
342
  # limited to findings existing at the supplied time and their values are
343
343
  # those at that specific time. Absence of this field will default to the
344
344
  # API's version of NOW.
345
345
  # @!attribute [rw] compare_duration
346
- # @return [Google::Protobuf::Duration]
346
+ # @return [::Google::Protobuf::Duration]
347
347
  # When compare_duration is set, the GroupResult's "state_change" attribute is
348
348
  # updated to indicate whether the finding had its state changed, the
349
349
  # finding's state remained unchanged, or if the finding was added during the
@@ -377,132 +377,132 @@ module Google
377
377
  # If this field is set then `state_change` must be a specified field in
378
378
  # `group_by`.
379
379
  # @!attribute [rw] page_token
380
- # @return [String]
380
+ # @return [::String]
381
381
  # The value returned by the last `GroupFindingsResponse`; indicates
382
382
  # that this is a continuation of a prior `GroupFindings` call, and
383
383
  # that the system should return the next page of data.
384
384
  # @!attribute [rw] page_size
385
- # @return [Integer]
385
+ # @return [::Integer]
386
386
  # The maximum number of results to return in a single response. Default is
387
387
  # 10, minimum is 1, maximum is 1000.
388
388
  class GroupFindingsRequest
389
- include Google::Protobuf::MessageExts
390
- extend Google::Protobuf::MessageExts::ClassMethods
389
+ include ::Google::Protobuf::MessageExts
390
+ extend ::Google::Protobuf::MessageExts::ClassMethods
391
391
  end
392
392
 
393
393
  # Response message for group by findings.
394
394
  # @!attribute [rw] group_by_results
395
- # @return [Array<Google::Cloud::SecurityCenter::V1::GroupResult>]
395
+ # @return [::Array<::Google::Cloud::SecurityCenter::V1::GroupResult>]
396
396
  # Group results. There exists an element for each existing unique
397
397
  # combination of property/values. The element contains a count for the number
398
398
  # of times those specific property/values appear.
399
399
  # @!attribute [rw] read_time
400
- # @return [Google::Protobuf::Timestamp]
400
+ # @return [::Google::Protobuf::Timestamp]
401
401
  # Time used for executing the groupBy request.
402
402
  # @!attribute [rw] next_page_token
403
- # @return [String]
403
+ # @return [::String]
404
404
  # Token to retrieve the next page of results, or empty if there are no more
405
405
  # results.
406
406
  # @!attribute [rw] total_size
407
- # @return [Integer]
407
+ # @return [::Integer]
408
408
  # The total number of results matching the query.
409
409
  class GroupFindingsResponse
410
- include Google::Protobuf::MessageExts
411
- extend Google::Protobuf::MessageExts::ClassMethods
410
+ include ::Google::Protobuf::MessageExts
411
+ extend ::Google::Protobuf::MessageExts::ClassMethods
412
412
  end
413
413
 
414
414
  # Result containing the properties and count of a groupBy request.
415
415
  # @!attribute [rw] properties
416
- # @return [Google::Protobuf::Map{String => Google::Protobuf::Value}]
416
+ # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
417
417
  # Properties matching the groupBy fields in the request.
418
418
  # @!attribute [rw] count
419
- # @return [Integer]
419
+ # @return [::Integer]
420
420
  # Total count of resources for the given properties.
421
421
  class GroupResult
422
- include Google::Protobuf::MessageExts
423
- extend Google::Protobuf::MessageExts::ClassMethods
422
+ include ::Google::Protobuf::MessageExts
423
+ extend ::Google::Protobuf::MessageExts::ClassMethods
424
424
 
425
425
  # @!attribute [rw] key
426
- # @return [String]
426
+ # @return [::String]
427
427
  # @!attribute [rw] value
428
- # @return [Google::Protobuf::Value]
428
+ # @return [::Google::Protobuf::Value]
429
429
  class PropertiesEntry
430
- include Google::Protobuf::MessageExts
431
- extend Google::Protobuf::MessageExts::ClassMethods
430
+ include ::Google::Protobuf::MessageExts
431
+ extend ::Google::Protobuf::MessageExts::ClassMethods
432
432
  end
433
433
  end
434
434
 
435
435
  # Request message for listing notification configs.
436
436
  # @!attribute [rw] parent
437
- # @return [String]
437
+ # @return [::String]
438
438
  # Required. Name of the organization to list notification configs.
439
439
  # Its format is "organizations/[organization_id]".
440
440
  # @!attribute [rw] page_token
441
- # @return [String]
441
+ # @return [::String]
442
442
  # The value returned by the last `ListNotificationConfigsResponse`; indicates
443
443
  # that this is a continuation of a prior `ListNotificationConfigs` call, and
444
444
  # that the system should return the next page of data.
445
445
  # @!attribute [rw] page_size
446
- # @return [Integer]
446
+ # @return [::Integer]
447
447
  # The maximum number of results to return in a single response. Default is
448
448
  # 10, minimum is 1, maximum is 1000.
449
449
  class ListNotificationConfigsRequest
450
- include Google::Protobuf::MessageExts
451
- extend Google::Protobuf::MessageExts::ClassMethods
450
+ include ::Google::Protobuf::MessageExts
451
+ extend ::Google::Protobuf::MessageExts::ClassMethods
452
452
  end
453
453
 
454
454
  # Response message for listing notification configs.
455
455
  # @!attribute [rw] notification_configs
456
- # @return [Array<Google::Cloud::SecurityCenter::V1::NotificationConfig>]
456
+ # @return [::Array<::Google::Cloud::SecurityCenter::V1::NotificationConfig>]
457
457
  # Notification configs belonging to the requested parent.
458
458
  # @!attribute [rw] next_page_token
459
- # @return [String]
459
+ # @return [::String]
460
460
  # Token to retrieve the next page of results, or empty if there are no more
461
461
  # results.
462
462
  class ListNotificationConfigsResponse
463
- include Google::Protobuf::MessageExts
464
- extend Google::Protobuf::MessageExts::ClassMethods
463
+ include ::Google::Protobuf::MessageExts
464
+ extend ::Google::Protobuf::MessageExts::ClassMethods
465
465
  end
466
466
 
467
467
  # Request message for listing sources.
468
468
  # @!attribute [rw] parent
469
- # @return [String]
469
+ # @return [::String]
470
470
  # Required. Resource name of the parent of sources to list. Its format should
471
471
  # be "organizations/[organization_id]".
472
472
  # @!attribute [rw] page_token
473
- # @return [String]
473
+ # @return [::String]
474
474
  # The value returned by the last `ListSourcesResponse`; indicates
475
475
  # that this is a continuation of a prior `ListSources` call, and
476
476
  # that the system should return the next page of data.
477
477
  # @!attribute [rw] page_size
478
- # @return [Integer]
478
+ # @return [::Integer]
479
479
  # The maximum number of results to return in a single response. Default is
480
480
  # 10, minimum is 1, maximum is 1000.
481
481
  class ListSourcesRequest
482
- include Google::Protobuf::MessageExts
483
- extend Google::Protobuf::MessageExts::ClassMethods
482
+ include ::Google::Protobuf::MessageExts
483
+ extend ::Google::Protobuf::MessageExts::ClassMethods
484
484
  end
485
485
 
486
486
  # Response message for listing sources.
487
487
  # @!attribute [rw] sources
488
- # @return [Array<Google::Cloud::SecurityCenter::V1::Source>]
488
+ # @return [::Array<::Google::Cloud::SecurityCenter::V1::Source>]
489
489
  # Sources belonging to the requested parent.
490
490
  # @!attribute [rw] next_page_token
491
- # @return [String]
491
+ # @return [::String]
492
492
  # Token to retrieve the next page of results, or empty if there are no more
493
493
  # results.
494
494
  class ListSourcesResponse
495
- include Google::Protobuf::MessageExts
496
- extend Google::Protobuf::MessageExts::ClassMethods
495
+ include ::Google::Protobuf::MessageExts
496
+ extend ::Google::Protobuf::MessageExts::ClassMethods
497
497
  end
498
498
 
499
499
  # Request message for listing assets.
500
500
  # @!attribute [rw] parent
501
- # @return [String]
501
+ # @return [::String]
502
502
  # Required. Name of the organization assets should belong to. Its format is
503
503
  # "organizations/[organization_id]".
504
504
  # @!attribute [rw] filter
505
- # @return [String]
505
+ # @return [::String]
506
506
  # Expression that defines the filter to apply across assets.
507
507
  # The expression is a list of zero or more restrictions combined via logical
508
508
  # operators `AND` and `OR`.
@@ -560,7 +560,7 @@ module Google
560
560
  #
561
561
  # For example, `resource_properties.size = 100` is a valid filter string.
562
562
  # @!attribute [rw] order_by
563
- # @return [String]
563
+ # @return [::String]
564
564
  # Expression that defines what fields and order to use for sorting. The
565
565
  # string value should follow SQL syntax: comma separated list of fields. For
566
566
  # example: "name,resource_properties.a_property". The default sorting order
@@ -583,13 +583,13 @@ module Google
583
583
  # security_center_properties.resource_project_display_name
584
584
  # security_center_properties.resource_type
585
585
  # @!attribute [rw] read_time
586
- # @return [Google::Protobuf::Timestamp]
586
+ # @return [::Google::Protobuf::Timestamp]
587
587
  # Time used as a reference point when filtering assets. The filter is limited
588
588
  # to assets existing at the supplied time and their values are those at that
589
589
  # specific time. Absence of this field will default to the API's version of
590
590
  # NOW.
591
591
  # @!attribute [rw] compare_duration
592
- # @return [Google::Protobuf::Duration]
592
+ # @return [::Google::Protobuf::Duration]
593
593
  # When compare_duration is set, the ListAssetsResult's "state_change"
594
594
  # attribute is updated to indicate whether the asset was added, removed, or
595
595
  # remained present during the compare_duration period of time that precedes
@@ -615,51 +615,51 @@ module Google
615
615
  # is "UNUSED", which will be the state_change set for all assets present at
616
616
  # read_time.
617
617
  # @!attribute [rw] field_mask
618
- # @return [Google::Protobuf::FieldMask]
618
+ # @return [::Google::Protobuf::FieldMask]
619
619
  # Optional. A field mask to specify the ListAssetsResult fields to be listed
620
620
  # in the response. An empty field mask will list all fields.
621
621
  # @!attribute [rw] page_token
622
- # @return [String]
622
+ # @return [::String]
623
623
  # The value returned by the last `ListAssetsResponse`; indicates
624
624
  # that this is a continuation of a prior `ListAssets` call, and
625
625
  # that the system should return the next page of data.
626
626
  # @!attribute [rw] page_size
627
- # @return [Integer]
627
+ # @return [::Integer]
628
628
  # The maximum number of results to return in a single response. Default is
629
629
  # 10, minimum is 1, maximum is 1000.
630
630
  class ListAssetsRequest
631
- include Google::Protobuf::MessageExts
632
- extend Google::Protobuf::MessageExts::ClassMethods
631
+ include ::Google::Protobuf::MessageExts
632
+ extend ::Google::Protobuf::MessageExts::ClassMethods
633
633
  end
634
634
 
635
635
  # Response message for listing assets.
636
636
  # @!attribute [rw] list_assets_results
637
- # @return [Array<Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult>]
637
+ # @return [::Array<::Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult>]
638
638
  # Assets matching the list request.
639
639
  # @!attribute [rw] read_time
640
- # @return [Google::Protobuf::Timestamp]
640
+ # @return [::Google::Protobuf::Timestamp]
641
641
  # Time used for executing the list request.
642
642
  # @!attribute [rw] next_page_token
643
- # @return [String]
643
+ # @return [::String]
644
644
  # Token to retrieve the next page of results, or empty if there are no more
645
645
  # results.
646
646
  # @!attribute [rw] total_size
647
- # @return [Integer]
647
+ # @return [::Integer]
648
648
  # The total number of assets matching the query.
649
649
  class ListAssetsResponse
650
- include Google::Protobuf::MessageExts
651
- extend Google::Protobuf::MessageExts::ClassMethods
650
+ include ::Google::Protobuf::MessageExts
651
+ extend ::Google::Protobuf::MessageExts::ClassMethods
652
652
 
653
653
  # Result containing the Asset and its State.
654
654
  # @!attribute [rw] asset
655
- # @return [Google::Cloud::SecurityCenter::V1::Asset]
655
+ # @return [::Google::Cloud::SecurityCenter::V1::Asset]
656
656
  # Asset matching the search request.
657
657
  # @!attribute [rw] state_change
658
- # @return [Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult::StateChange]
658
+ # @return [::Google::Cloud::SecurityCenter::V1::ListAssetsResponse::ListAssetsResult::StateChange]
659
659
  # State change of the asset between the points in time.
660
660
  class ListAssetsResult
661
- include Google::Protobuf::MessageExts
662
- extend Google::Protobuf::MessageExts::ClassMethods
661
+ include ::Google::Protobuf::MessageExts
662
+ extend ::Google::Protobuf::MessageExts::ClassMethods
663
663
 
664
664
  # The change in state of the asset.
665
665
  #
@@ -685,13 +685,13 @@ module Google
685
685
 
686
686
  # Request message for listing findings.
687
687
  # @!attribute [rw] parent
688
- # @return [String]
688
+ # @return [::String]
689
689
  # Required. Name of the source the findings belong to. Its format is
690
690
  # "organizations/[organization_id]/sources/[source_id]". To list across all
691
691
  # sources provide a source_id of `-`. For example:
692
692
  # organizations/\\{organization_id}/sources/-
693
693
  # @!attribute [rw] filter
694
- # @return [String]
694
+ # @return [::String]
695
695
  # Expression that defines the filter to apply across findings.
696
696
  # The expression is a list of one or more restrictions combined via logical
697
697
  # operators `AND` and `OR`.
@@ -736,7 +736,7 @@ module Google
736
736
  #
737
737
  # For example, `source_properties.size = 100` is a valid filter string.
738
738
  # @!attribute [rw] order_by
739
- # @return [String]
739
+ # @return [::String]
740
740
  # Expression that defines what fields and order to use for sorting. The
741
741
  # string value should follow SQL syntax: comma separated list of fields. For
742
742
  # example: "name,resource_properties.a_property". The default sorting order
@@ -756,13 +756,13 @@ module Google
756
756
  # source_properties
757
757
  # security_marks.marks
758
758
  # @!attribute [rw] read_time
759
- # @return [Google::Protobuf::Timestamp]
759
+ # @return [::Google::Protobuf::Timestamp]
760
760
  # Time used as a reference point when filtering findings. The filter is
761
761
  # limited to findings existing at the supplied time and their values are
762
762
  # those at that specific time. Absence of this field will default to the
763
763
  # API's version of NOW.
764
764
  # @!attribute [rw] compare_duration
765
- # @return [Google::Protobuf::Duration]
765
+ # @return [::Google::Protobuf::Duration]
766
766
  # When compare_duration is set, the ListFindingsResult's "state_change"
767
767
  # attribute is updated to indicate whether the finding had its state changed,
768
768
  # the finding's state remained unchanged, or if the finding was added in any
@@ -794,76 +794,76 @@ module Google
794
794
  # is "UNUSED", which will be the state_change set for all findings present at
795
795
  # read_time.
796
796
  # @!attribute [rw] field_mask
797
- # @return [Google::Protobuf::FieldMask]
797
+ # @return [::Google::Protobuf::FieldMask]
798
798
  # Optional. A field mask to specify the Finding fields to be listed in the
799
799
  # response. An empty field mask will list all fields.
800
800
  # @!attribute [rw] page_token
801
- # @return [String]
801
+ # @return [::String]
802
802
  # The value returned by the last `ListFindingsResponse`; indicates
803
803
  # that this is a continuation of a prior `ListFindings` call, and
804
804
  # that the system should return the next page of data.
805
805
  # @!attribute [rw] page_size
806
- # @return [Integer]
806
+ # @return [::Integer]
807
807
  # The maximum number of results to return in a single response. Default is
808
808
  # 10, minimum is 1, maximum is 1000.
809
809
  class ListFindingsRequest
810
- include Google::Protobuf::MessageExts
811
- extend Google::Protobuf::MessageExts::ClassMethods
810
+ include ::Google::Protobuf::MessageExts
811
+ extend ::Google::Protobuf::MessageExts::ClassMethods
812
812
  end
813
813
 
814
814
  # Response message for listing findings.
815
815
  # @!attribute [rw] list_findings_results
816
- # @return [Array<Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult>]
816
+ # @return [::Array<::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult>]
817
817
  # Findings matching the list request.
818
818
  # @!attribute [rw] read_time
819
- # @return [Google::Protobuf::Timestamp]
819
+ # @return [::Google::Protobuf::Timestamp]
820
820
  # Time used for executing the list request.
821
821
  # @!attribute [rw] next_page_token
822
- # @return [String]
822
+ # @return [::String]
823
823
  # Token to retrieve the next page of results, or empty if there are no more
824
824
  # results.
825
825
  # @!attribute [rw] total_size
826
- # @return [Integer]
826
+ # @return [::Integer]
827
827
  # The total number of findings matching the query.
828
828
  class ListFindingsResponse
829
- include Google::Protobuf::MessageExts
830
- extend Google::Protobuf::MessageExts::ClassMethods
829
+ include ::Google::Protobuf::MessageExts
830
+ extend ::Google::Protobuf::MessageExts::ClassMethods
831
831
 
832
832
  # Result containing the Finding and its StateChange.
833
833
  # @!attribute [rw] finding
834
- # @return [Google::Cloud::SecurityCenter::V1::Finding]
834
+ # @return [::Google::Cloud::SecurityCenter::V1::Finding]
835
835
  # Finding matching the search request.
836
836
  # @!attribute [rw] state_change
837
- # @return [Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult::StateChange]
837
+ # @return [::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult::StateChange]
838
838
  # State change of the finding between the points in time.
839
839
  # @!attribute [rw] resource
840
- # @return [Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult::Resource]
840
+ # @return [::Google::Cloud::SecurityCenter::V1::ListFindingsResponse::ListFindingsResult::Resource]
841
841
  # Output only. Resource that is associated with this finding.
842
842
  class ListFindingsResult
843
- include Google::Protobuf::MessageExts
844
- extend Google::Protobuf::MessageExts::ClassMethods
843
+ include ::Google::Protobuf::MessageExts
844
+ extend ::Google::Protobuf::MessageExts::ClassMethods
845
845
 
846
846
  # Information related to the Google Cloud Platform (GCP) resource that is
847
847
  # associated with this finding.
848
848
  # @!attribute [rw] name
849
- # @return [String]
849
+ # @return [::String]
850
850
  # The full resource name of the resource. See:
851
851
  # https://cloud.google.com/apis/design/resource_names#full_resource_name
852
852
  # @!attribute [rw] project_name
853
- # @return [String]
853
+ # @return [::String]
854
854
  # The full resource name of project that the resource belongs to.
855
855
  # @!attribute [rw] project_display_name
856
- # @return [String]
856
+ # @return [::String]
857
857
  # The human readable name of project that the resource belongs to.
858
858
  # @!attribute [rw] parent_name
859
- # @return [String]
859
+ # @return [::String]
860
860
  # The full resource name of resource's parent.
861
861
  # @!attribute [rw] parent_display_name
862
- # @return [String]
862
+ # @return [::String]
863
863
  # The human readable name of resource's parent.
864
864
  class Resource
865
- include Google::Protobuf::MessageExts
866
- extend Google::Protobuf::MessageExts::ClassMethods
865
+ include ::Google::Protobuf::MessageExts
866
+ extend ::Google::Protobuf::MessageExts::ClassMethods
867
867
  end
868
868
 
869
869
  # The change in state of the finding.
@@ -898,35 +898,35 @@ module Google
898
898
 
899
899
  # Request message for updating a finding's state.
900
900
  # @!attribute [rw] name
901
- # @return [String]
901
+ # @return [::String]
902
902
  # Required. The relative resource name of the finding. See:
903
903
  # https://cloud.google.com/apis/design/resource_names#relative_resource_name
904
904
  # Example:
905
905
  # "organizations/\\{organization_id}/sources/\\{source_id}/finding/\\{finding_id}".
906
906
  # @!attribute [rw] state
907
- # @return [Google::Cloud::SecurityCenter::V1::Finding::State]
907
+ # @return [::Google::Cloud::SecurityCenter::V1::Finding::State]
908
908
  # Required. The desired State of the finding.
909
909
  # @!attribute [rw] start_time
910
- # @return [Google::Protobuf::Timestamp]
910
+ # @return [::Google::Protobuf::Timestamp]
911
911
  # Required. The time at which the updated state takes effect.
912
912
  class SetFindingStateRequest
913
- include Google::Protobuf::MessageExts
914
- extend Google::Protobuf::MessageExts::ClassMethods
913
+ include ::Google::Protobuf::MessageExts
914
+ extend ::Google::Protobuf::MessageExts::ClassMethods
915
915
  end
916
916
 
917
917
  # Request message for running asset discovery for an organization.
918
918
  # @!attribute [rw] parent
919
- # @return [String]
919
+ # @return [::String]
920
920
  # Required. Name of the organization to run asset discovery for. Its format
921
921
  # is "organizations/[organization_id]".
922
922
  class RunAssetDiscoveryRequest
923
- include Google::Protobuf::MessageExts
924
- extend Google::Protobuf::MessageExts::ClassMethods
923
+ include ::Google::Protobuf::MessageExts
924
+ extend ::Google::Protobuf::MessageExts::ClassMethods
925
925
  end
926
926
 
927
927
  # Request message for updating or creating a finding.
928
928
  # @!attribute [rw] finding
929
- # @return [Google::Cloud::SecurityCenter::V1::Finding]
929
+ # @return [::Google::Cloud::SecurityCenter::V1::Finding]
930
930
  # Required. The finding resource to update or create if it does not already
931
931
  # exist. parent, security_marks, and update_time will be ignored.
932
932
  #
@@ -934,7 +934,7 @@ module Google
934
934
  # alphanumeric and less than or equal to 32 characters and greater than 0
935
935
  # characters in length.
936
936
  # @!attribute [rw] update_mask
937
- # @return [Google::Protobuf::FieldMask]
937
+ # @return [::Google::Protobuf::FieldMask]
938
938
  # The FieldMask to use when updating the finding resource. This field should
939
939
  # not be specified when creating a finding.
940
940
  #
@@ -943,71 +943,71 @@ module Google
943
943
  # be added/updated by using "source_properties.<property key>" in the field
944
944
  # mask.
945
945
  class UpdateFindingRequest
946
- include Google::Protobuf::MessageExts
947
- extend Google::Protobuf::MessageExts::ClassMethods
946
+ include ::Google::Protobuf::MessageExts
947
+ extend ::Google::Protobuf::MessageExts::ClassMethods
948
948
  end
949
949
 
950
950
  # Request message for updating a notification config.
951
951
  # @!attribute [rw] notification_config
952
- # @return [Google::Cloud::SecurityCenter::V1::NotificationConfig]
952
+ # @return [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
953
953
  # Required. The notification config to update.
954
954
  # @!attribute [rw] update_mask
955
- # @return [Google::Protobuf::FieldMask]
955
+ # @return [::Google::Protobuf::FieldMask]
956
956
  # The FieldMask to use when updating the notification config.
957
957
  #
958
958
  # If empty all mutable fields will be updated.
959
959
  class UpdateNotificationConfigRequest
960
- include Google::Protobuf::MessageExts
961
- extend Google::Protobuf::MessageExts::ClassMethods
960
+ include ::Google::Protobuf::MessageExts
961
+ extend ::Google::Protobuf::MessageExts::ClassMethods
962
962
  end
963
963
 
964
964
  # Request message for updating an organization's settings.
965
965
  # @!attribute [rw] organization_settings
966
- # @return [Google::Cloud::SecurityCenter::V1::OrganizationSettings]
966
+ # @return [::Google::Cloud::SecurityCenter::V1::OrganizationSettings]
967
967
  # Required. The organization settings resource to update.
968
968
  # @!attribute [rw] update_mask
969
- # @return [Google::Protobuf::FieldMask]
969
+ # @return [::Google::Protobuf::FieldMask]
970
970
  # The FieldMask to use when updating the settings resource.
971
971
  #
972
972
  # If empty all mutable fields will be updated.
973
973
  class UpdateOrganizationSettingsRequest
974
- include Google::Protobuf::MessageExts
975
- extend Google::Protobuf::MessageExts::ClassMethods
974
+ include ::Google::Protobuf::MessageExts
975
+ extend ::Google::Protobuf::MessageExts::ClassMethods
976
976
  end
977
977
 
978
978
  # Request message for updating a source.
979
979
  # @!attribute [rw] source
980
- # @return [Google::Cloud::SecurityCenter::V1::Source]
980
+ # @return [::Google::Cloud::SecurityCenter::V1::Source]
981
981
  # Required. The source resource to update.
982
982
  # @!attribute [rw] update_mask
983
- # @return [Google::Protobuf::FieldMask]
983
+ # @return [::Google::Protobuf::FieldMask]
984
984
  # The FieldMask to use when updating the source resource.
985
985
  #
986
986
  # If empty all mutable fields will be updated.
987
987
  class UpdateSourceRequest
988
- include Google::Protobuf::MessageExts
989
- extend Google::Protobuf::MessageExts::ClassMethods
988
+ include ::Google::Protobuf::MessageExts
989
+ extend ::Google::Protobuf::MessageExts::ClassMethods
990
990
  end
991
991
 
992
992
  # Request message for updating a SecurityMarks resource.
993
993
  # @!attribute [rw] security_marks
994
- # @return [Google::Cloud::SecurityCenter::V1::SecurityMarks]
994
+ # @return [::Google::Cloud::SecurityCenter::V1::SecurityMarks]
995
995
  # Required. The security marks resource to update.
996
996
  # @!attribute [rw] update_mask
997
- # @return [Google::Protobuf::FieldMask]
997
+ # @return [::Google::Protobuf::FieldMask]
998
998
  # The FieldMask to use when updating the security marks resource.
999
999
  #
1000
1000
  # The field mask must not contain duplicate fields.
1001
1001
  # If empty or set to "marks", all marks will be replaced. Individual
1002
1002
  # marks can be updated using "marks.<mark_key>".
1003
1003
  # @!attribute [rw] start_time
1004
- # @return [Google::Protobuf::Timestamp]
1004
+ # @return [::Google::Protobuf::Timestamp]
1005
1005
  # The time at which the updated SecurityMarks take effect.
1006
1006
  # If not set uses current server time. Updates will be applied to the
1007
1007
  # SecurityMarks that are active immediately preceding this time.
1008
1008
  class UpdateSecurityMarksRequest
1009
- include Google::Protobuf::MessageExts
1010
- extend Google::Protobuf::MessageExts::ClassMethods
1009
+ include ::Google::Protobuf::MessageExts
1010
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1011
1011
  end
1012
1012
  end
1013
1013
  end