google-cloud-security_center-v1 0.7.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/security_center/v1/security_center/client.rb +132 -127
- data/lib/google/cloud/security_center/v1/security_center/operations.rb +34 -25
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/asset_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/finding_pb.rb +15 -2
- data/lib/google/cloud/securitycenter/v1/folder_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/indicator_pb.rb +24 -0
- data/lib/google/cloud/securitycenter/v1/notification_config_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/notification_message_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/organization_settings_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/resource_pb.rb +3 -2
- data/lib/google/cloud/securitycenter/v1/run_asset_discovery_response_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/security_marks_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/source_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/vulnerability_pb.rb +86 -0
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/securitycenter/v1/finding.rb +35 -0
- data/proto_docs/google/cloud/securitycenter/v1/indicator.rb +41 -0
- data/proto_docs/google/cloud/securitycenter/v1/resource.rb +3 -0
- data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +22 -23
- data/proto_docs/google/cloud/securitycenter/v1/vulnerability.rb +226 -0
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9544668b93bf62b6a525f12c79213f71ad4113073505bdec57fea1ed5a10643e
|
4
|
+
data.tar.gz: 71f8ec0fef19f6a77ad40a3070c60d26ac68d176a57c6d005275ca811863a4f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba5853c6fdca6c247026b6fb1f0e86c784a5af98cea06a66582ff0f5fa4791da81412096ee18908e95424cd5c97f46f74446f2a12b08475570682dc34dea0b9a
|
7
|
+
data.tar.gz: 9d3652bc7ed972de2162d364970a35fbba0d93e44bf30492f40bc4912a1db6d886e212c09bdbfd02e590fe5e8ddb77e9abbab6fcd441897631a40babfb67ec72
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-security_center-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::SecurityCenter::V1::SecurityCenter::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `SECURITY_CENTER_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `SECURITY_CENTER_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/security_center/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/security_center/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new do |con
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/security_center/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/security_center/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::SecurityCenter::V1::CreateSourceRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_source request
|
38
38
|
```
|
39
39
|
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all SecurityCenter clients
|
47
|
+
# ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -75,82 +74,52 @@ module Google
|
|
75
74
|
|
76
75
|
default_config.rpcs.get_iam_policy.timeout = 60.0
|
77
76
|
default_config.rpcs.get_iam_policy.retry_policy = {
|
78
|
-
initial_delay: 0.1,
|
79
|
-
max_delay: 60.0,
|
80
|
-
multiplier: 1.3,
|
81
|
-
retry_codes: [4, 14]
|
77
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
82
78
|
}
|
83
79
|
|
84
80
|
default_config.rpcs.get_notification_config.timeout = 60.0
|
85
81
|
default_config.rpcs.get_notification_config.retry_policy = {
|
86
|
-
initial_delay: 0.1,
|
87
|
-
max_delay: 60.0,
|
88
|
-
multiplier: 1.3,
|
89
|
-
retry_codes: [4, 14]
|
82
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
90
83
|
}
|
91
84
|
|
92
85
|
default_config.rpcs.get_organization_settings.timeout = 60.0
|
93
86
|
default_config.rpcs.get_organization_settings.retry_policy = {
|
94
|
-
initial_delay: 0.1,
|
95
|
-
max_delay: 60.0,
|
96
|
-
multiplier: 1.3,
|
97
|
-
retry_codes: [4, 14]
|
87
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
98
88
|
}
|
99
89
|
|
100
90
|
default_config.rpcs.get_source.timeout = 60.0
|
101
91
|
default_config.rpcs.get_source.retry_policy = {
|
102
|
-
initial_delay: 0.1,
|
103
|
-
max_delay: 60.0,
|
104
|
-
multiplier: 1.3,
|
105
|
-
retry_codes: [4, 14]
|
92
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
106
93
|
}
|
107
94
|
|
108
95
|
default_config.rpcs.group_assets.timeout = 480.0
|
109
96
|
default_config.rpcs.group_assets.retry_policy = {
|
110
|
-
initial_delay: 0.1,
|
111
|
-
max_delay: 60.0,
|
112
|
-
multiplier: 1.3,
|
113
|
-
retry_codes: [4, 14]
|
97
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
114
98
|
}
|
115
99
|
|
116
100
|
default_config.rpcs.group_findings.timeout = 480.0
|
117
101
|
default_config.rpcs.group_findings.retry_policy = {
|
118
|
-
initial_delay: 0.1,
|
119
|
-
max_delay: 60.0,
|
120
|
-
multiplier: 1.3,
|
121
|
-
retry_codes: [4, 14]
|
102
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
122
103
|
}
|
123
104
|
|
124
105
|
default_config.rpcs.list_assets.timeout = 480.0
|
125
106
|
default_config.rpcs.list_assets.retry_policy = {
|
126
|
-
initial_delay: 0.1,
|
127
|
-
max_delay: 60.0,
|
128
|
-
multiplier: 1.3,
|
129
|
-
retry_codes: [4, 14]
|
107
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
130
108
|
}
|
131
109
|
|
132
110
|
default_config.rpcs.list_findings.timeout = 480.0
|
133
111
|
default_config.rpcs.list_findings.retry_policy = {
|
134
|
-
initial_delay: 0.1,
|
135
|
-
max_delay: 60.0,
|
136
|
-
multiplier: 1.3,
|
137
|
-
retry_codes: [4, 14]
|
112
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
138
113
|
}
|
139
114
|
|
140
115
|
default_config.rpcs.list_notification_configs.timeout = 60.0
|
141
116
|
default_config.rpcs.list_notification_configs.retry_policy = {
|
142
|
-
initial_delay: 0.1,
|
143
|
-
max_delay: 60.0,
|
144
|
-
multiplier: 1.3,
|
145
|
-
retry_codes: [4, 14]
|
117
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
146
118
|
}
|
147
119
|
|
148
120
|
default_config.rpcs.list_sources.timeout = 60.0
|
149
121
|
default_config.rpcs.list_sources.retry_policy = {
|
150
|
-
initial_delay: 0.1,
|
151
|
-
max_delay: 60.0,
|
152
|
-
multiplier: 1.3,
|
153
|
-
retry_codes: [4, 14]
|
122
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
154
123
|
}
|
155
124
|
|
156
125
|
default_config.rpcs.run_asset_discovery.timeout = 60.0
|
@@ -161,10 +130,7 @@ module Google
|
|
161
130
|
|
162
131
|
default_config.rpcs.test_iam_permissions.timeout = 60.0
|
163
132
|
default_config.rpcs.test_iam_permissions.retry_policy = {
|
164
|
-
initial_delay: 0.1,
|
165
|
-
max_delay: 60.0,
|
166
|
-
multiplier: 1.3,
|
167
|
-
retry_codes: [4, 14]
|
133
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
168
134
|
}
|
169
135
|
|
170
136
|
default_config.rpcs.update_finding.timeout = 60.0
|
@@ -206,19 +172,15 @@ module Google
|
|
206
172
|
##
|
207
173
|
# Create a new SecurityCenter client object.
|
208
174
|
#
|
209
|
-
#
|
210
|
-
#
|
211
|
-
# To create a new SecurityCenter client with the default
|
212
|
-
# configuration:
|
213
|
-
#
|
214
|
-
# client = ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
|
175
|
+
# @example
|
215
176
|
#
|
216
|
-
#
|
217
|
-
#
|
177
|
+
# # Create a client using the default configuration
|
178
|
+
# client = ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new
|
218
179
|
#
|
219
|
-
#
|
220
|
-
#
|
221
|
-
#
|
180
|
+
# # Create a client using a custom configuration
|
181
|
+
# client = ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new do |config|
|
182
|
+
# config.timeout = 10.0
|
183
|
+
# end
|
222
184
|
#
|
223
185
|
# @yield [config] Configure the SecurityCenter client.
|
224
186
|
# @yieldparam config [Client::Configuration]
|
@@ -238,14 +200,13 @@ module Google
|
|
238
200
|
|
239
201
|
# Create credentials
|
240
202
|
credentials = @config.credentials
|
241
|
-
# Use self-signed JWT if the
|
203
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
242
204
|
# but only if the default endpoint does not have a region prefix.
|
243
|
-
enable_self_signed_jwt = @config.
|
244
|
-
@config.endpoint == Client.configure.endpoint &&
|
205
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
245
206
|
!@config.endpoint.split(".").first.include?("-")
|
246
207
|
credentials ||= Credentials.default scope: @config.scope,
|
247
208
|
enable_self_signed_jwt: enable_self_signed_jwt
|
248
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
209
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
249
210
|
credentials = Credentials.new credentials, scope: @config.scope
|
250
211
|
end
|
251
212
|
@quota_project_id = @config.quota_project
|
@@ -296,8 +257,8 @@ module Google
|
|
296
257
|
# Required. Resource name of the new source's parent. Its format should be
|
297
258
|
# "organizations/[organization_id]".
|
298
259
|
# @param source [::Google::Cloud::SecurityCenter::V1::Source, ::Hash]
|
299
|
-
# Required. The Source being created, only the display_name and description
|
300
|
-
#
|
260
|
+
# Required. The Source being created, only the display_name and description will be
|
261
|
+
# used. All other fields will be ignored.
|
301
262
|
#
|
302
263
|
# @yield [response, operation] Access the result along with the RPC operation
|
303
264
|
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::Source]
|
@@ -333,7 +294,9 @@ module Google
|
|
333
294
|
options.apply_defaults timeout: @config.rpcs.create_source.timeout,
|
334
295
|
metadata: metadata,
|
335
296
|
retry_policy: @config.rpcs.create_source.retry_policy
|
336
|
-
|
297
|
+
|
298
|
+
options.apply_defaults timeout: @config.timeout,
|
299
|
+
metadata: @config.metadata,
|
337
300
|
retry_policy: @config.retry_policy
|
338
301
|
|
339
302
|
@security_center_stub.call_rpc :create_source, request, options: options do |response, operation|
|
@@ -371,8 +334,8 @@ module Google
|
|
371
334
|
# It must be alphanumeric and less than or equal to 32 characters and
|
372
335
|
# greater than 0 characters in length.
|
373
336
|
# @param finding [::Google::Cloud::SecurityCenter::V1::Finding, ::Hash]
|
374
|
-
# Required. The Finding being created. The name and security_marks will be
|
375
|
-
#
|
337
|
+
# Required. The Finding being created. The name and security_marks will be ignored as
|
338
|
+
# they are both output only fields on this resource.
|
376
339
|
#
|
377
340
|
# @yield [response, operation] Access the result along with the RPC operation
|
378
341
|
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::Finding]
|
@@ -408,7 +371,9 @@ module Google
|
|
408
371
|
options.apply_defaults timeout: @config.rpcs.create_finding.timeout,
|
409
372
|
metadata: metadata,
|
410
373
|
retry_policy: @config.rpcs.create_finding.retry_policy
|
411
|
-
|
374
|
+
|
375
|
+
options.apply_defaults timeout: @config.timeout,
|
376
|
+
metadata: @config.metadata,
|
412
377
|
retry_policy: @config.retry_policy
|
413
378
|
|
414
379
|
@security_center_stub.call_rpc :create_finding, request, options: options do |response, operation|
|
@@ -438,17 +403,16 @@ module Google
|
|
438
403
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
439
404
|
#
|
440
405
|
# @param parent [::String]
|
441
|
-
# Required. Resource name of the new notification config's parent. Its format
|
442
|
-
#
|
406
|
+
# Required. Resource name of the new notification config's parent. Its format is
|
407
|
+
# "organizations/[organization_id]".
|
443
408
|
# @param config_id [::String]
|
444
409
|
# Required.
|
445
410
|
# Unique identifier provided by the client within the parent scope.
|
446
411
|
# It must be between 1 and 128 characters, and contains alphanumeric
|
447
412
|
# characters, underscores or hyphens only.
|
448
413
|
# @param notification_config [::Google::Cloud::SecurityCenter::V1::NotificationConfig, ::Hash]
|
449
|
-
# Required. The notification config being created. The name and the service
|
450
|
-
#
|
451
|
-
# resource.
|
414
|
+
# Required. The notification config being created. The name and the service account
|
415
|
+
# will be ignored as they are both output only fields on this resource.
|
452
416
|
#
|
453
417
|
# @yield [response, operation] Access the result along with the RPC operation
|
454
418
|
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
@@ -484,7 +448,9 @@ module Google
|
|
484
448
|
options.apply_defaults timeout: @config.rpcs.create_notification_config.timeout,
|
485
449
|
metadata: metadata,
|
486
450
|
retry_policy: @config.rpcs.create_notification_config.retry_policy
|
487
|
-
|
451
|
+
|
452
|
+
options.apply_defaults timeout: @config.timeout,
|
453
|
+
metadata: @config.metadata,
|
488
454
|
retry_policy: @config.retry_policy
|
489
455
|
|
490
456
|
@security_center_stub.call_rpc :create_notification_config, request, options: options do |response, operation|
|
@@ -551,7 +517,9 @@ module Google
|
|
551
517
|
options.apply_defaults timeout: @config.rpcs.delete_notification_config.timeout,
|
552
518
|
metadata: metadata,
|
553
519
|
retry_policy: @config.rpcs.delete_notification_config.retry_policy
|
554
|
-
|
520
|
+
|
521
|
+
options.apply_defaults timeout: @config.timeout,
|
522
|
+
metadata: @config.metadata,
|
555
523
|
retry_policy: @config.retry_policy
|
556
524
|
|
557
525
|
@security_center_stub.call_rpc :delete_notification_config, request, options: options do |response, operation|
|
@@ -621,7 +589,9 @@ module Google
|
|
621
589
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
622
590
|
metadata: metadata,
|
623
591
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
624
|
-
|
592
|
+
|
593
|
+
options.apply_defaults timeout: @config.timeout,
|
594
|
+
metadata: @config.metadata,
|
625
595
|
retry_policy: @config.retry_policy
|
626
596
|
|
627
597
|
@security_center_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -688,7 +658,9 @@ module Google
|
|
688
658
|
options.apply_defaults timeout: @config.rpcs.get_notification_config.timeout,
|
689
659
|
metadata: metadata,
|
690
660
|
retry_policy: @config.rpcs.get_notification_config.retry_policy
|
691
|
-
|
661
|
+
|
662
|
+
options.apply_defaults timeout: @config.timeout,
|
663
|
+
metadata: @config.metadata,
|
692
664
|
retry_policy: @config.retry_policy
|
693
665
|
|
694
666
|
@security_center_stub.call_rpc :get_notification_config, request, options: options do |response, operation|
|
@@ -718,8 +690,8 @@ module Google
|
|
718
690
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
719
691
|
#
|
720
692
|
# @param name [::String]
|
721
|
-
# Required. Name of the organization to get organization settings for. Its
|
722
|
-
#
|
693
|
+
# Required. Name of the organization to get organization settings for. Its format is
|
694
|
+
# "organizations/[organization_id]/organizationSettings".
|
723
695
|
#
|
724
696
|
# @yield [response, operation] Access the result along with the RPC operation
|
725
697
|
# @yieldparam response [::Google::Cloud::SecurityCenter::V1::OrganizationSettings]
|
@@ -755,7 +727,9 @@ module Google
|
|
755
727
|
options.apply_defaults timeout: @config.rpcs.get_organization_settings.timeout,
|
756
728
|
metadata: metadata,
|
757
729
|
retry_policy: @config.rpcs.get_organization_settings.retry_policy
|
758
|
-
|
730
|
+
|
731
|
+
options.apply_defaults timeout: @config.timeout,
|
732
|
+
metadata: @config.metadata,
|
759
733
|
retry_policy: @config.retry_policy
|
760
734
|
|
761
735
|
@security_center_stub.call_rpc :get_organization_settings, request, options: options do |response, operation|
|
@@ -822,7 +796,9 @@ module Google
|
|
822
796
|
options.apply_defaults timeout: @config.rpcs.get_source.timeout,
|
823
797
|
metadata: metadata,
|
824
798
|
retry_policy: @config.rpcs.get_source.retry_policy
|
825
|
-
|
799
|
+
|
800
|
+
options.apply_defaults timeout: @config.timeout,
|
801
|
+
metadata: @config.metadata,
|
826
802
|
retry_policy: @config.retry_policy
|
827
803
|
|
828
804
|
@security_center_stub.call_rpc :get_source, request, options: options do |response, operation|
|
@@ -920,9 +896,9 @@ module Google
|
|
920
896
|
# Use a negated partial match on the empty string to filter based on a
|
921
897
|
# property not existing: `-resource_properties.my_property : ""`
|
922
898
|
# @param group_by [::String]
|
923
|
-
# Required. Expression that defines what assets fields to use for grouping.
|
924
|
-
#
|
925
|
-
#
|
899
|
+
# Required. Expression that defines what assets fields to use for grouping. The string
|
900
|
+
# value should follow SQL syntax: comma separated list of fields. For
|
901
|
+
# example:
|
926
902
|
# "security_center_properties.resource_project,security_center_properties.project".
|
927
903
|
#
|
928
904
|
# The following fields are supported when compare_duration is not set:
|
@@ -1013,7 +989,9 @@ module Google
|
|
1013
989
|
options.apply_defaults timeout: @config.rpcs.group_assets.timeout,
|
1014
990
|
metadata: metadata,
|
1015
991
|
retry_policy: @config.rpcs.group_assets.retry_policy
|
1016
|
-
|
992
|
+
|
993
|
+
options.apply_defaults timeout: @config.timeout,
|
994
|
+
metadata: @config.metadata,
|
1017
995
|
retry_policy: @config.retry_policy
|
1018
996
|
|
1019
997
|
@security_center_stub.call_rpc :group_assets, request, options: options do |response, operation|
|
@@ -1118,9 +1096,9 @@ module Google
|
|
1118
1096
|
# * resource.project_display_name: `=`, `:`
|
1119
1097
|
# * resource.type: `=`, `:`
|
1120
1098
|
# @param group_by [::String]
|
1121
|
-
# Required. Expression that defines what assets fields to use for grouping
|
1122
|
-
#
|
1123
|
-
#
|
1099
|
+
# Required. Expression that defines what assets fields to use for grouping (including
|
1100
|
+
# `state_change`). The string value should follow SQL syntax: comma separated
|
1101
|
+
# list of fields. For example: "parent,resource_name".
|
1124
1102
|
#
|
1125
1103
|
# The following fields are supported:
|
1126
1104
|
#
|
@@ -1213,7 +1191,9 @@ module Google
|
|
1213
1191
|
options.apply_defaults timeout: @config.rpcs.group_findings.timeout,
|
1214
1192
|
metadata: metadata,
|
1215
1193
|
retry_policy: @config.rpcs.group_findings.retry_policy
|
1216
|
-
|
1194
|
+
|
1195
|
+
options.apply_defaults timeout: @config.timeout,
|
1196
|
+
metadata: @config.metadata,
|
1217
1197
|
retry_policy: @config.retry_policy
|
1218
1198
|
|
1219
1199
|
@security_center_stub.call_rpc :group_findings, request, options: options do |response, operation|
|
@@ -1408,7 +1388,9 @@ module Google
|
|
1408
1388
|
options.apply_defaults timeout: @config.rpcs.list_assets.timeout,
|
1409
1389
|
metadata: metadata,
|
1410
1390
|
retry_policy: @config.rpcs.list_assets.retry_policy
|
1411
|
-
|
1391
|
+
|
1392
|
+
options.apply_defaults timeout: @config.timeout,
|
1393
|
+
metadata: @config.metadata,
|
1412
1394
|
retry_policy: @config.retry_policy
|
1413
1395
|
|
1414
1396
|
@security_center_stub.call_rpc :list_assets, request, options: options do |response, operation|
|
@@ -1610,7 +1592,9 @@ module Google
|
|
1610
1592
|
options.apply_defaults timeout: @config.rpcs.list_findings.timeout,
|
1611
1593
|
metadata: metadata,
|
1612
1594
|
retry_policy: @config.rpcs.list_findings.retry_policy
|
1613
|
-
|
1595
|
+
|
1596
|
+
options.apply_defaults timeout: @config.timeout,
|
1597
|
+
metadata: @config.metadata,
|
1614
1598
|
retry_policy: @config.retry_policy
|
1615
1599
|
|
1616
1600
|
@security_center_stub.call_rpc :list_findings, request, options: options do |response, operation|
|
@@ -1685,7 +1669,9 @@ module Google
|
|
1685
1669
|
options.apply_defaults timeout: @config.rpcs.list_notification_configs.timeout,
|
1686
1670
|
metadata: metadata,
|
1687
1671
|
retry_policy: @config.rpcs.list_notification_configs.retry_policy
|
1688
|
-
|
1672
|
+
|
1673
|
+
options.apply_defaults timeout: @config.timeout,
|
1674
|
+
metadata: @config.metadata,
|
1689
1675
|
retry_policy: @config.retry_policy
|
1690
1676
|
|
1691
1677
|
@security_center_stub.call_rpc :list_notification_configs, request, options: options do |response, operation|
|
@@ -1716,8 +1702,8 @@ module Google
|
|
1716
1702
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1717
1703
|
#
|
1718
1704
|
# @param parent [::String]
|
1719
|
-
# Required. Resource name of the parent of sources to list. Its format should
|
1720
|
-
#
|
1705
|
+
# Required. Resource name of the parent of sources to list. Its format should be
|
1706
|
+
# "organizations/[organization_id], folders/[folder_id], or
|
1721
1707
|
# projects/[project_id]".
|
1722
1708
|
# @param page_token [::String]
|
1723
1709
|
# The value returned by the last `ListSourcesResponse`; indicates
|
@@ -1761,7 +1747,9 @@ module Google
|
|
1761
1747
|
options.apply_defaults timeout: @config.rpcs.list_sources.timeout,
|
1762
1748
|
metadata: metadata,
|
1763
1749
|
retry_policy: @config.rpcs.list_sources.retry_policy
|
1764
|
-
|
1750
|
+
|
1751
|
+
options.apply_defaults timeout: @config.timeout,
|
1752
|
+
metadata: @config.metadata,
|
1765
1753
|
retry_policy: @config.retry_policy
|
1766
1754
|
|
1767
1755
|
@security_center_stub.call_rpc :list_sources, request, options: options do |response, operation|
|
@@ -1797,8 +1785,8 @@ module Google
|
|
1797
1785
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1798
1786
|
#
|
1799
1787
|
# @param parent [::String]
|
1800
|
-
# Required. Name of the organization to run asset discovery for. Its format
|
1801
|
-
#
|
1788
|
+
# Required. Name of the organization to run asset discovery for. Its format is
|
1789
|
+
# "organizations/[organization_id]".
|
1802
1790
|
#
|
1803
1791
|
# @yield [response, operation] Access the result along with the RPC operation
|
1804
1792
|
# @yieldparam response [::Gapic::Operation]
|
@@ -1834,7 +1822,9 @@ module Google
|
|
1834
1822
|
options.apply_defaults timeout: @config.rpcs.run_asset_discovery.timeout,
|
1835
1823
|
metadata: metadata,
|
1836
1824
|
retry_policy: @config.rpcs.run_asset_discovery.retry_policy
|
1837
|
-
|
1825
|
+
|
1826
|
+
options.apply_defaults timeout: @config.timeout,
|
1827
|
+
metadata: @config.metadata,
|
1838
1828
|
retry_policy: @config.retry_policy
|
1839
1829
|
|
1840
1830
|
@security_center_stub.call_rpc :run_asset_discovery, request, options: options do |response, operation|
|
@@ -1908,7 +1898,9 @@ module Google
|
|
1908
1898
|
options.apply_defaults timeout: @config.rpcs.set_finding_state.timeout,
|
1909
1899
|
metadata: metadata,
|
1910
1900
|
retry_policy: @config.rpcs.set_finding_state.retry_policy
|
1911
|
-
|
1901
|
+
|
1902
|
+
options.apply_defaults timeout: @config.timeout,
|
1903
|
+
metadata: @config.metadata,
|
1912
1904
|
retry_policy: @config.retry_policy
|
1913
1905
|
|
1914
1906
|
@security_center_stub.call_rpc :set_finding_state, request, options: options do |response, operation|
|
@@ -1980,7 +1972,9 @@ module Google
|
|
1980
1972
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1981
1973
|
metadata: metadata,
|
1982
1974
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
1983
|
-
|
1975
|
+
|
1976
|
+
options.apply_defaults timeout: @config.timeout,
|
1977
|
+
metadata: @config.metadata,
|
1984
1978
|
retry_policy: @config.retry_policy
|
1985
1979
|
|
1986
1980
|
@security_center_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -2052,7 +2046,9 @@ module Google
|
|
2052
2046
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
2053
2047
|
metadata: metadata,
|
2054
2048
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
2055
|
-
|
2049
|
+
|
2050
|
+
options.apply_defaults timeout: @config.timeout,
|
2051
|
+
metadata: @config.metadata,
|
2056
2052
|
retry_policy: @config.retry_policy
|
2057
2053
|
|
2058
2054
|
@security_center_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -2083,8 +2079,8 @@ module Google
|
|
2083
2079
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2084
2080
|
#
|
2085
2081
|
# @param finding [::Google::Cloud::SecurityCenter::V1::Finding, ::Hash]
|
2086
|
-
# Required. The finding resource to update or create if it does not already
|
2087
|
-
#
|
2082
|
+
# Required. The finding resource to update or create if it does not already exist.
|
2083
|
+
# parent, security_marks, and update_time will be ignored.
|
2088
2084
|
#
|
2089
2085
|
# In the case of creation, the finding id portion of the name must be
|
2090
2086
|
# alphanumeric and less than or equal to 32 characters and greater than 0
|
@@ -2132,7 +2128,9 @@ module Google
|
|
2132
2128
|
options.apply_defaults timeout: @config.rpcs.update_finding.timeout,
|
2133
2129
|
metadata: metadata,
|
2134
2130
|
retry_policy: @config.rpcs.update_finding.retry_policy
|
2135
|
-
|
2131
|
+
|
2132
|
+
options.apply_defaults timeout: @config.timeout,
|
2133
|
+
metadata: @config.metadata,
|
2136
2134
|
retry_policy: @config.retry_policy
|
2137
2135
|
|
2138
2136
|
@security_center_stub.call_rpc :update_finding, request, options: options do |response, operation|
|
@@ -2203,7 +2201,9 @@ module Google
|
|
2203
2201
|
options.apply_defaults timeout: @config.rpcs.update_notification_config.timeout,
|
2204
2202
|
metadata: metadata,
|
2205
2203
|
retry_policy: @config.rpcs.update_notification_config.retry_policy
|
2206
|
-
|
2204
|
+
|
2205
|
+
options.apply_defaults timeout: @config.timeout,
|
2206
|
+
metadata: @config.metadata,
|
2207
2207
|
retry_policy: @config.retry_policy
|
2208
2208
|
|
2209
2209
|
@security_center_stub.call_rpc :update_notification_config, request, options: options do |response, operation|
|
@@ -2273,7 +2273,9 @@ module Google
|
|
2273
2273
|
options.apply_defaults timeout: @config.rpcs.update_organization_settings.timeout,
|
2274
2274
|
metadata: metadata,
|
2275
2275
|
retry_policy: @config.rpcs.update_organization_settings.retry_policy
|
2276
|
-
|
2276
|
+
|
2277
|
+
options.apply_defaults timeout: @config.timeout,
|
2278
|
+
metadata: @config.metadata,
|
2277
2279
|
retry_policy: @config.retry_policy
|
2278
2280
|
|
2279
2281
|
@security_center_stub.call_rpc :update_organization_settings, request, options: options do |response, operation|
|
@@ -2343,7 +2345,9 @@ module Google
|
|
2343
2345
|
options.apply_defaults timeout: @config.rpcs.update_source.timeout,
|
2344
2346
|
metadata: metadata,
|
2345
2347
|
retry_policy: @config.rpcs.update_source.retry_policy
|
2346
|
-
|
2348
|
+
|
2349
|
+
options.apply_defaults timeout: @config.timeout,
|
2350
|
+
metadata: @config.metadata,
|
2347
2351
|
retry_policy: @config.retry_policy
|
2348
2352
|
|
2349
2353
|
@security_center_stub.call_rpc :update_source, request, options: options do |response, operation|
|
@@ -2419,7 +2423,9 @@ module Google
|
|
2419
2423
|
options.apply_defaults timeout: @config.rpcs.update_security_marks.timeout,
|
2420
2424
|
metadata: metadata,
|
2421
2425
|
retry_policy: @config.rpcs.update_security_marks.retry_policy
|
2422
|
-
|
2426
|
+
|
2427
|
+
options.apply_defaults timeout: @config.timeout,
|
2428
|
+
metadata: @config.metadata,
|
2423
2429
|
retry_policy: @config.retry_policy
|
2424
2430
|
|
2425
2431
|
@security_center_stub.call_rpc :update_security_marks, request, options: options do |response, operation|
|
@@ -2443,22 +2449,21 @@ module Google
|
|
2443
2449
|
# Configuration can be applied globally to all clients, or to a single client
|
2444
2450
|
# on construction.
|
2445
2451
|
#
|
2446
|
-
#
|
2447
|
-
#
|
2448
|
-
#
|
2449
|
-
# to 20 seconds,
|
2450
|
-
#
|
2451
|
-
#
|
2452
|
-
#
|
2453
|
-
#
|
2454
|
-
#
|
2455
|
-
#
|
2456
|
-
#
|
2457
|
-
#
|
2458
|
-
#
|
2459
|
-
#
|
2460
|
-
#
|
2461
|
-
# end
|
2452
|
+
# @example
|
2453
|
+
#
|
2454
|
+
# # Modify the global config, setting the timeout for
|
2455
|
+
# # create_source to 20 seconds,
|
2456
|
+
# # and all remaining timeouts to 10 seconds.
|
2457
|
+
# ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.configure do |config|
|
2458
|
+
# config.timeout = 10.0
|
2459
|
+
# config.rpcs.create_source.timeout = 20.0
|
2460
|
+
# end
|
2461
|
+
#
|
2462
|
+
# # Apply the above configuration only to a new client.
|
2463
|
+
# client = ::Google::Cloud::SecurityCenter::V1::SecurityCenter::Client.new do |config|
|
2464
|
+
# config.timeout = 10.0
|
2465
|
+
# config.rpcs.create_source.timeout = 20.0
|
2466
|
+
# end
|
2462
2467
|
#
|
2463
2468
|
# @!attribute [rw] endpoint
|
2464
2469
|
# The hostname or hostname:port of the service endpoint.
|