google-cloud-security_center-v1p1beta1 0.6.0 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/security_center/v1p1beta1/security_center/client.rb +131 -114
- data/lib/google/cloud/security_center/v1p1beta1/security_center/operations.rb +34 -25
- data/lib/google/cloud/security_center/v1p1beta1/security_center/paths.rb +174 -16
- data/lib/google/cloud/security_center/v1p1beta1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1p1beta1/asset_pb.rb +4 -1
- data/lib/google/cloud/securitycenter/v1p1beta1/finding_pb.rb +2 -1
- data/lib/google/cloud/securitycenter/v1p1beta1/folder_pb.rb +24 -0
- data/lib/google/cloud/securitycenter/v1p1beta1/notification_config_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v1p1beta1/notification_message_pb.rb +1 -2
- data/lib/google/cloud/securitycenter/v1p1beta1/organization_settings_pb.rb +2 -1
- data/lib/google/cloud/securitycenter/v1p1beta1/resource_pb.rb +3 -0
- data/lib/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v1p1beta1/security_marks_pb.rb +2 -1
- data/lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_pb.rb +2 -0
- data/lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_services_pb.rb +3 -1
- data/lib/google/cloud/securitycenter/v1p1beta1/source_pb.rb +2 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/asset.rb +13 -2
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/finding.rb +10 -1
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/folder.rb +40 -0
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/organization_settings.rb +4 -0
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/resource.rb +5 -0
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/security_marks.rb +10 -0
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/securitycenter_service.rb +23 -9
- data/proto_docs/google/cloud/securitycenter/v1p1beta1/source.rb +8 -0
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +17 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecc075ed52af61d5baad5aed6fa59853adefea64ba7bebe4d864243a4db039d5
|
4
|
+
data.tar.gz: 45dc71a2ec4e6005cba24f17b93ed45270d044f29d73ca27f2264f7d7fa2c3f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaf20bbe541834acd979ba1d5695d0e89eef4016a4e647e76490e0179ea7f6b76b0ead00b9357ff24185427cfac39f0a324563161efdb75ba09313a047221d9c
|
7
|
+
data.tar.gz: 6b400d98051bf0e22add367c257fb75446c7be69d969240ef874d937f47ad2f97706e033abef59cec7463d7cee216b7cc7a6b2d9ce2f86f9ac4caece9fa2591a
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-security_center-v1p1beta1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::SecurityCenter::V1p1beta1::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/v1p1beta1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::SecurityCenter::V1p1beta1::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/v1p1beta1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
|
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/v1p1beta1"
|
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/v1p1beta1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::SecurityCenter::V1p1beta1::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::V1p1beta1::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::V1p1beta1::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::V1p1beta1::SecurityCenter::Client.new
|
175
|
+
# @example
|
215
176
|
#
|
216
|
-
#
|
217
|
-
#
|
177
|
+
# # Create a client using the default configuration
|
178
|
+
# client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
|
218
179
|
#
|
219
|
-
#
|
220
|
-
#
|
221
|
-
#
|
180
|
+
# # Create a client using a custom configuration
|
181
|
+
# client = ::Google::Cloud::SecurityCenter::V1p1beta1::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
|
@@ -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|
|
@@ -406,7 +369,9 @@ module Google
|
|
406
369
|
options.apply_defaults timeout: @config.rpcs.create_finding.timeout,
|
407
370
|
metadata: metadata,
|
408
371
|
retry_policy: @config.rpcs.create_finding.retry_policy
|
409
|
-
|
372
|
+
|
373
|
+
options.apply_defaults timeout: @config.timeout,
|
374
|
+
metadata: @config.metadata,
|
410
375
|
retry_policy: @config.retry_policy
|
411
376
|
|
412
377
|
@security_center_stub.call_rpc :create_finding, request, options: options do |response, operation|
|
@@ -480,7 +445,9 @@ module Google
|
|
480
445
|
options.apply_defaults timeout: @config.rpcs.create_notification_config.timeout,
|
481
446
|
metadata: metadata,
|
482
447
|
retry_policy: @config.rpcs.create_notification_config.retry_policy
|
483
|
-
|
448
|
+
|
449
|
+
options.apply_defaults timeout: @config.timeout,
|
450
|
+
metadata: @config.metadata,
|
484
451
|
retry_policy: @config.retry_policy
|
485
452
|
|
486
453
|
@security_center_stub.call_rpc :create_notification_config, request, options: options do |response, operation|
|
@@ -547,7 +514,9 @@ module Google
|
|
547
514
|
options.apply_defaults timeout: @config.rpcs.delete_notification_config.timeout,
|
548
515
|
metadata: metadata,
|
549
516
|
retry_policy: @config.rpcs.delete_notification_config.retry_policy
|
550
|
-
|
517
|
+
|
518
|
+
options.apply_defaults timeout: @config.timeout,
|
519
|
+
metadata: @config.metadata,
|
551
520
|
retry_policy: @config.retry_policy
|
552
521
|
|
553
522
|
@security_center_stub.call_rpc :delete_notification_config, request, options: options do |response, operation|
|
@@ -617,7 +586,9 @@ module Google
|
|
617
586
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
618
587
|
metadata: metadata,
|
619
588
|
retry_policy: @config.rpcs.get_iam_policy.retry_policy
|
620
|
-
|
589
|
+
|
590
|
+
options.apply_defaults timeout: @config.timeout,
|
591
|
+
metadata: @config.metadata,
|
621
592
|
retry_policy: @config.retry_policy
|
622
593
|
|
623
594
|
@security_center_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
@@ -684,7 +655,9 @@ module Google
|
|
684
655
|
options.apply_defaults timeout: @config.rpcs.get_notification_config.timeout,
|
685
656
|
metadata: metadata,
|
686
657
|
retry_policy: @config.rpcs.get_notification_config.retry_policy
|
687
|
-
|
658
|
+
|
659
|
+
options.apply_defaults timeout: @config.timeout,
|
660
|
+
metadata: @config.metadata,
|
688
661
|
retry_policy: @config.retry_policy
|
689
662
|
|
690
663
|
@security_center_stub.call_rpc :get_notification_config, request, options: options do |response, operation|
|
@@ -751,7 +724,9 @@ module Google
|
|
751
724
|
options.apply_defaults timeout: @config.rpcs.get_organization_settings.timeout,
|
752
725
|
metadata: metadata,
|
753
726
|
retry_policy: @config.rpcs.get_organization_settings.retry_policy
|
754
|
-
|
727
|
+
|
728
|
+
options.apply_defaults timeout: @config.timeout,
|
729
|
+
metadata: @config.metadata,
|
755
730
|
retry_policy: @config.retry_policy
|
756
731
|
|
757
732
|
@security_center_stub.call_rpc :get_organization_settings, request, options: options do |response, operation|
|
@@ -818,7 +793,9 @@ module Google
|
|
818
793
|
options.apply_defaults timeout: @config.rpcs.get_source.timeout,
|
819
794
|
metadata: metadata,
|
820
795
|
retry_policy: @config.rpcs.get_source.retry_policy
|
821
|
-
|
796
|
+
|
797
|
+
options.apply_defaults timeout: @config.timeout,
|
798
|
+
metadata: @config.metadata,
|
822
799
|
retry_policy: @config.retry_policy
|
823
800
|
|
824
801
|
@security_center_stub.call_rpc :get_source, request, options: options do |response, operation|
|
@@ -850,7 +827,8 @@ module Google
|
|
850
827
|
#
|
851
828
|
# @param parent [::String]
|
852
829
|
# Required. Name of the organization to groupBy. Its format is
|
853
|
-
# "organizations/[organization_id]
|
830
|
+
# "organizations/[organization_id], folders/[folder_id], or
|
831
|
+
# projects/[project_id]".
|
854
832
|
# @param filter [::String]
|
855
833
|
# Expression that defines the filter to apply across assets.
|
856
834
|
# The expression is a list of zero or more restrictions combined via logical
|
@@ -1008,7 +986,9 @@ module Google
|
|
1008
986
|
options.apply_defaults timeout: @config.rpcs.group_assets.timeout,
|
1009
987
|
metadata: metadata,
|
1010
988
|
retry_policy: @config.rpcs.group_assets.retry_policy
|
1011
|
-
|
989
|
+
|
990
|
+
options.apply_defaults timeout: @config.timeout,
|
991
|
+
metadata: @config.metadata,
|
1012
992
|
retry_policy: @config.retry_policy
|
1013
993
|
|
1014
994
|
@security_center_stub.call_rpc :group_assets, request, options: options do |response, operation|
|
@@ -1025,7 +1005,9 @@ module Google
|
|
1025
1005
|
# specified properties.
|
1026
1006
|
#
|
1027
1007
|
# To group across all sources provide a `-` as the source id.
|
1028
|
-
# Example: /
|
1008
|
+
# Example: /v1/organizations/\\{organization_id}/sources/-/findings,
|
1009
|
+
# /v1/folders/\\{folder_id}/sources/-/findings,
|
1010
|
+
# /v1/projects/\\{project_id}/sources/-/findings
|
1029
1011
|
#
|
1030
1012
|
# @overload group_findings(request, options = nil)
|
1031
1013
|
# Pass arguments to `group_findings` via a request object, either of type
|
@@ -1044,9 +1026,12 @@ module Google
|
|
1044
1026
|
#
|
1045
1027
|
# @param parent [::String]
|
1046
1028
|
# Required. Name of the source to groupBy. Its format is
|
1047
|
-
# "organizations/[organization_id]/sources/[source_id]"
|
1048
|
-
#
|
1049
|
-
#
|
1029
|
+
# "organizations/[organization_id]/sources/[source_id]",
|
1030
|
+
# folders/[folder_id]/sources/[source_id], or
|
1031
|
+
# projects/[project_id]/sources/[source_id]. To groupBy across all sources
|
1032
|
+
# provide a source_id of `-`. For example:
|
1033
|
+
# organizations/\\{organization_id}/sources/-, folders/\\{folder_id}/sources/-,
|
1034
|
+
# or projects/\\{project_id}/sources/-
|
1050
1035
|
# @param filter [::String]
|
1051
1036
|
# Expression that defines the filter to apply across findings.
|
1052
1037
|
# The expression is a list of one or more restrictions combined via logical
|
@@ -1194,7 +1179,9 @@ module Google
|
|
1194
1179
|
options.apply_defaults timeout: @config.rpcs.group_findings.timeout,
|
1195
1180
|
metadata: metadata,
|
1196
1181
|
retry_policy: @config.rpcs.group_findings.retry_policy
|
1197
|
-
|
1182
|
+
|
1183
|
+
options.apply_defaults timeout: @config.timeout,
|
1184
|
+
metadata: @config.metadata,
|
1198
1185
|
retry_policy: @config.retry_policy
|
1199
1186
|
|
1200
1187
|
@security_center_stub.call_rpc :group_findings, request, options: options do |response, operation|
|
@@ -1226,7 +1213,8 @@ module Google
|
|
1226
1213
|
#
|
1227
1214
|
# @param parent [::String]
|
1228
1215
|
# Required. Name of the organization assets should belong to. Its format is
|
1229
|
-
# "organizations/[organization_id]
|
1216
|
+
# "organizations/[organization_id], folders/[folder_id], or
|
1217
|
+
# projects/[project_id]".
|
1230
1218
|
# @param filter [::String]
|
1231
1219
|
# Expression that defines the filter to apply across assets.
|
1232
1220
|
# The expression is a list of zero or more restrictions combined via logical
|
@@ -1388,7 +1376,9 @@ module Google
|
|
1388
1376
|
options.apply_defaults timeout: @config.rpcs.list_assets.timeout,
|
1389
1377
|
metadata: metadata,
|
1390
1378
|
retry_policy: @config.rpcs.list_assets.retry_policy
|
1391
|
-
|
1379
|
+
|
1380
|
+
options.apply_defaults timeout: @config.timeout,
|
1381
|
+
metadata: @config.metadata,
|
1392
1382
|
retry_policy: @config.retry_policy
|
1393
1383
|
|
1394
1384
|
@security_center_stub.call_rpc :list_assets, request, options: options do |response, operation|
|
@@ -1423,9 +1413,12 @@ module Google
|
|
1423
1413
|
#
|
1424
1414
|
# @param parent [::String]
|
1425
1415
|
# Required. Name of the source the findings belong to. Its format is
|
1426
|
-
# "organizations/[organization_id]/sources/[source_id]
|
1427
|
-
# sources
|
1428
|
-
#
|
1416
|
+
# "organizations/[organization_id]/sources/[source_id],
|
1417
|
+
# folders/[folder_id]/sources/[source_id], or
|
1418
|
+
# projects/[project_id]/sources/[source_id]". To list across all sources
|
1419
|
+
# provide a source_id of `-`. For example:
|
1420
|
+
# organizations/\\{organization_id}/sources/-, folders/\\{folder_id}/sources/- or
|
1421
|
+
# projects/\\{projects_id}/sources/-
|
1429
1422
|
# @param filter [::String]
|
1430
1423
|
# Expression that defines the filter to apply across findings.
|
1431
1424
|
# The expression is a list of one or more restrictions combined via logical
|
@@ -1577,7 +1570,9 @@ module Google
|
|
1577
1570
|
options.apply_defaults timeout: @config.rpcs.list_findings.timeout,
|
1578
1571
|
metadata: metadata,
|
1579
1572
|
retry_policy: @config.rpcs.list_findings.retry_policy
|
1580
|
-
|
1573
|
+
|
1574
|
+
options.apply_defaults timeout: @config.timeout,
|
1575
|
+
metadata: @config.metadata,
|
1581
1576
|
retry_policy: @config.retry_policy
|
1582
1577
|
|
1583
1578
|
@security_center_stub.call_rpc :list_findings, request, options: options do |response, operation|
|
@@ -1652,7 +1647,9 @@ module Google
|
|
1652
1647
|
options.apply_defaults timeout: @config.rpcs.list_notification_configs.timeout,
|
1653
1648
|
metadata: metadata,
|
1654
1649
|
retry_policy: @config.rpcs.list_notification_configs.retry_policy
|
1655
|
-
|
1650
|
+
|
1651
|
+
options.apply_defaults timeout: @config.timeout,
|
1652
|
+
metadata: @config.metadata,
|
1656
1653
|
retry_policy: @config.retry_policy
|
1657
1654
|
|
1658
1655
|
@security_center_stub.call_rpc :list_notification_configs, request, options: options do |response, operation|
|
@@ -1684,7 +1681,8 @@ module Google
|
|
1684
1681
|
#
|
1685
1682
|
# @param parent [::String]
|
1686
1683
|
# Required. Resource name of the parent of sources to list. Its format should be
|
1687
|
-
# "organizations/[organization_id]
|
1684
|
+
# "organizations/[organization_id], folders/[folder_id], or
|
1685
|
+
# projects/[project_id]".
|
1688
1686
|
# @param page_token [::String]
|
1689
1687
|
# The value returned by the last `ListSourcesResponse`; indicates
|
1690
1688
|
# that this is a continuation of a prior `ListSources` call, and
|
@@ -1727,7 +1725,9 @@ module Google
|
|
1727
1725
|
options.apply_defaults timeout: @config.rpcs.list_sources.timeout,
|
1728
1726
|
metadata: metadata,
|
1729
1727
|
retry_policy: @config.rpcs.list_sources.retry_policy
|
1730
|
-
|
1728
|
+
|
1729
|
+
options.apply_defaults timeout: @config.timeout,
|
1730
|
+
metadata: @config.metadata,
|
1731
1731
|
retry_policy: @config.retry_policy
|
1732
1732
|
|
1733
1733
|
@security_center_stub.call_rpc :list_sources, request, options: options do |response, operation|
|
@@ -1800,7 +1800,9 @@ module Google
|
|
1800
1800
|
options.apply_defaults timeout: @config.rpcs.run_asset_discovery.timeout,
|
1801
1801
|
metadata: metadata,
|
1802
1802
|
retry_policy: @config.rpcs.run_asset_discovery.retry_policy
|
1803
|
-
|
1803
|
+
|
1804
|
+
options.apply_defaults timeout: @config.timeout,
|
1805
|
+
metadata: @config.metadata,
|
1804
1806
|
retry_policy: @config.retry_policy
|
1805
1807
|
|
1806
1808
|
@security_center_stub.call_rpc :run_asset_discovery, request, options: options do |response, operation|
|
@@ -1874,7 +1876,9 @@ module Google
|
|
1874
1876
|
options.apply_defaults timeout: @config.rpcs.set_finding_state.timeout,
|
1875
1877
|
metadata: metadata,
|
1876
1878
|
retry_policy: @config.rpcs.set_finding_state.retry_policy
|
1877
|
-
|
1879
|
+
|
1880
|
+
options.apply_defaults timeout: @config.timeout,
|
1881
|
+
metadata: @config.metadata,
|
1878
1882
|
retry_policy: @config.retry_policy
|
1879
1883
|
|
1880
1884
|
@security_center_stub.call_rpc :set_finding_state, request, options: options do |response, operation|
|
@@ -1946,7 +1950,9 @@ module Google
|
|
1946
1950
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
1947
1951
|
metadata: metadata,
|
1948
1952
|
retry_policy: @config.rpcs.set_iam_policy.retry_policy
|
1949
|
-
|
1953
|
+
|
1954
|
+
options.apply_defaults timeout: @config.timeout,
|
1955
|
+
metadata: @config.metadata,
|
1950
1956
|
retry_policy: @config.retry_policy
|
1951
1957
|
|
1952
1958
|
@security_center_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
@@ -2018,7 +2024,9 @@ module Google
|
|
2018
2024
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
2019
2025
|
metadata: metadata,
|
2020
2026
|
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
2021
|
-
|
2027
|
+
|
2028
|
+
options.apply_defaults timeout: @config.timeout,
|
2029
|
+
metadata: @config.metadata,
|
2022
2030
|
retry_policy: @config.retry_policy
|
2023
2031
|
|
2024
2032
|
@security_center_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
@@ -2098,7 +2106,9 @@ module Google
|
|
2098
2106
|
options.apply_defaults timeout: @config.rpcs.update_finding.timeout,
|
2099
2107
|
metadata: metadata,
|
2100
2108
|
retry_policy: @config.rpcs.update_finding.retry_policy
|
2101
|
-
|
2109
|
+
|
2110
|
+
options.apply_defaults timeout: @config.timeout,
|
2111
|
+
metadata: @config.metadata,
|
2102
2112
|
retry_policy: @config.retry_policy
|
2103
2113
|
|
2104
2114
|
@security_center_stub.call_rpc :update_finding, request, options: options do |response, operation|
|
@@ -2169,7 +2179,9 @@ module Google
|
|
2169
2179
|
options.apply_defaults timeout: @config.rpcs.update_notification_config.timeout,
|
2170
2180
|
metadata: metadata,
|
2171
2181
|
retry_policy: @config.rpcs.update_notification_config.retry_policy
|
2172
|
-
|
2182
|
+
|
2183
|
+
options.apply_defaults timeout: @config.timeout,
|
2184
|
+
metadata: @config.metadata,
|
2173
2185
|
retry_policy: @config.retry_policy
|
2174
2186
|
|
2175
2187
|
@security_center_stub.call_rpc :update_notification_config, request, options: options do |response, operation|
|
@@ -2239,7 +2251,9 @@ module Google
|
|
2239
2251
|
options.apply_defaults timeout: @config.rpcs.update_organization_settings.timeout,
|
2240
2252
|
metadata: metadata,
|
2241
2253
|
retry_policy: @config.rpcs.update_organization_settings.retry_policy
|
2242
|
-
|
2254
|
+
|
2255
|
+
options.apply_defaults timeout: @config.timeout,
|
2256
|
+
metadata: @config.metadata,
|
2243
2257
|
retry_policy: @config.retry_policy
|
2244
2258
|
|
2245
2259
|
@security_center_stub.call_rpc :update_organization_settings, request, options: options do |response, operation|
|
@@ -2309,7 +2323,9 @@ module Google
|
|
2309
2323
|
options.apply_defaults timeout: @config.rpcs.update_source.timeout,
|
2310
2324
|
metadata: metadata,
|
2311
2325
|
retry_policy: @config.rpcs.update_source.retry_policy
|
2312
|
-
|
2326
|
+
|
2327
|
+
options.apply_defaults timeout: @config.timeout,
|
2328
|
+
metadata: @config.metadata,
|
2313
2329
|
retry_policy: @config.retry_policy
|
2314
2330
|
|
2315
2331
|
@security_center_stub.call_rpc :update_source, request, options: options do |response, operation|
|
@@ -2385,7 +2401,9 @@ module Google
|
|
2385
2401
|
options.apply_defaults timeout: @config.rpcs.update_security_marks.timeout,
|
2386
2402
|
metadata: metadata,
|
2387
2403
|
retry_policy: @config.rpcs.update_security_marks.retry_policy
|
2388
|
-
|
2404
|
+
|
2405
|
+
options.apply_defaults timeout: @config.timeout,
|
2406
|
+
metadata: @config.metadata,
|
2389
2407
|
retry_policy: @config.retry_policy
|
2390
2408
|
|
2391
2409
|
@security_center_stub.call_rpc :update_security_marks, request, options: options do |response, operation|
|
@@ -2409,22 +2427,21 @@ module Google
|
|
2409
2427
|
# Configuration can be applied globally to all clients, or to a single client
|
2410
2428
|
# on construction.
|
2411
2429
|
#
|
2412
|
-
#
|
2413
|
-
#
|
2414
|
-
#
|
2415
|
-
# to 20 seconds,
|
2416
|
-
#
|
2417
|
-
#
|
2418
|
-
#
|
2419
|
-
#
|
2420
|
-
#
|
2421
|
-
#
|
2422
|
-
#
|
2423
|
-
#
|
2424
|
-
#
|
2425
|
-
#
|
2426
|
-
#
|
2427
|
-
# end
|
2430
|
+
# @example
|
2431
|
+
#
|
2432
|
+
# # Modify the global config, setting the timeout for
|
2433
|
+
# # create_source to 20 seconds,
|
2434
|
+
# # and all remaining timeouts to 10 seconds.
|
2435
|
+
# ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.configure do |config|
|
2436
|
+
# config.timeout = 10.0
|
2437
|
+
# config.rpcs.create_source.timeout = 20.0
|
2438
|
+
# end
|
2439
|
+
#
|
2440
|
+
# # Apply the above configuration only to a new client.
|
2441
|
+
# client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new do |config|
|
2442
|
+
# config.timeout = 10.0
|
2443
|
+
# config.rpcs.create_source.timeout = 20.0
|
2444
|
+
# end
|
2428
2445
|
#
|
2429
2446
|
# @!attribute [rw] endpoint
|
2430
2447
|
# The hostname or hostname:port of the service endpoint.
|