google-apis-securitycenter_v1 0.20.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/apis/securitycenter_v1/classes.rb +130 -10
- data/lib/google/apis/securitycenter_v1/gem_version.rb +2 -2
- data/lib/google/apis/securitycenter_v1/representations.rb +36 -0
- data/lib/google/apis/securitycenter_v1/service.rb +588 -12
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c6fe5ea46500a157ec0dec1887e0a0962ed0d1f963f9c51da9640445e939256
|
4
|
+
data.tar.gz: 1000152f2e5dbc2c4a329ff6c5881fff9fb40005d987402c78271cb4102e2d2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bc9caf85e4fbdb26b6b5eaec3f005dec611015b8253400cb0835c9ef1622a192dc7a3301e284904a3e40b92ec4d59e18de65bf9bba204ad9a4e2b6d85d66a20
|
7
|
+
data.tar.gz: 1b192debb90c39dcfac88df908588f1ff79eab1155d07395cc1d58b424558462e98df8bec23d3df3513f0090b0d41a257d4b8dc3c07e4d31fe0c6961dfd8eb3d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-securitycenter_v1
|
2
2
|
|
3
|
+
### v0.23.0 (2022-03-08)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220303
|
6
|
+
|
7
|
+
### v0.22.0 (2022-02-23)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220219
|
10
|
+
|
11
|
+
### v0.21.0 (2022-02-15)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220210
|
14
|
+
|
3
15
|
### v0.20.0 (2022-02-01)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220127
|
@@ -381,6 +381,12 @@ module Google
|
|
381
381
|
# @return [Array<Google::Apis::SecuritycenterV1::Reference>]
|
382
382
|
attr_accessor :references
|
383
383
|
|
384
|
+
# Whether upstream fix is available for the CVE.
|
385
|
+
# Corresponds to the JSON property `upstreamFixAvailable`
|
386
|
+
# @return [Boolean]
|
387
|
+
attr_accessor :upstream_fix_available
|
388
|
+
alias_method :upstream_fix_available?, :upstream_fix_available
|
389
|
+
|
384
390
|
def initialize(**args)
|
385
391
|
update!(**args)
|
386
392
|
end
|
@@ -390,6 +396,7 @@ module Google
|
|
390
396
|
@cvssv3 = args[:cvssv3] if args.key?(:cvssv3)
|
391
397
|
@id = args[:id] if args.key?(:id)
|
392
398
|
@references = args[:references] if args.key?(:references)
|
399
|
+
@upstream_fix_available = args[:upstream_fix_available] if args.key?(:upstream_fix_available)
|
393
400
|
end
|
394
401
|
end
|
395
402
|
|
@@ -814,6 +821,93 @@ module Google
|
|
814
821
|
end
|
815
822
|
end
|
816
823
|
|
824
|
+
# Configures how to deliver Findings to BigQuery Instance.
|
825
|
+
class GoogleCloudSecuritycenterV1BigQueryExport
|
826
|
+
include Google::Apis::Core::Hashable
|
827
|
+
|
828
|
+
# Output only. The time at which the big query export was created. This field is
|
829
|
+
# set by the server and will be ignored if provided on export on creation.
|
830
|
+
# Corresponds to the JSON property `createTime`
|
831
|
+
# @return [String]
|
832
|
+
attr_accessor :create_time
|
833
|
+
|
834
|
+
# The dataset to write findings' updates to. Its format is "projects/[project_id]
|
835
|
+
# /datasets/[bigquery_dataset_id]". BigQuery Dataset unique ID must contain only
|
836
|
+
# letters (a-z, A-Z), numbers (0-9), or underscores (_).
|
837
|
+
# Corresponds to the JSON property `dataset`
|
838
|
+
# @return [String]
|
839
|
+
attr_accessor :dataset
|
840
|
+
|
841
|
+
# The description of the export (max of 1024 characters).
|
842
|
+
# Corresponds to the JSON property `description`
|
843
|
+
# @return [String]
|
844
|
+
attr_accessor :description
|
845
|
+
|
846
|
+
# Expression that defines the filter to apply across create/update events of
|
847
|
+
# findings. The expression is a list of zero or more restrictions combined via
|
848
|
+
# logical operators `AND` and `OR`. Parentheses are supported, and `OR` has
|
849
|
+
# higher precedence than `AND`. Restrictions have the form ` ` and may have a `-`
|
850
|
+
# character in front of them to indicate negation. The fields map to those
|
851
|
+
# defined in the corresponding resource. The supported operators are: * `=` for
|
852
|
+
# all value types. * `>`, `<`, `>=`, `<=` for integer values. * `:`, meaning
|
853
|
+
# substring matching, for strings. The supported value types are: * string
|
854
|
+
# literals in quotes. * integer literals without quotes. * boolean literals `
|
855
|
+
# true` and `false` without quotes. Please see the proto documentation in the
|
856
|
+
# finding (https://source.corp.google.com/piper///depot/google3/google/cloud/
|
857
|
+
# securitycenter/v1/finding.proto) and in the ListFindingsRequest for valid
|
858
|
+
# filter syntax. (https://source.corp.google.com/piper///depot/google3/google/
|
859
|
+
# cloud/securitycenter/v1/securitycenter_service.proto).
|
860
|
+
# Corresponds to the JSON property `filter`
|
861
|
+
# @return [String]
|
862
|
+
attr_accessor :filter
|
863
|
+
|
864
|
+
# Output only. Email address of the user who last edited the big query export.
|
865
|
+
# This field is set by the server and will be ignored if provided on export
|
866
|
+
# creation or update.
|
867
|
+
# Corresponds to the JSON property `mostRecentEditor`
|
868
|
+
# @return [String]
|
869
|
+
attr_accessor :most_recent_editor
|
870
|
+
|
871
|
+
# The relative resource name of this export. See: https://cloud.google.com/apis/
|
872
|
+
# design/resource_names#relative_resource_name. Example format: "organizations/`
|
873
|
+
# organization_id`/bigQueryExports/`export_id`" Example format: "folders/`
|
874
|
+
# folder_id`/bigQueryExports/`export_id`" Example format: "projects/`project_id`/
|
875
|
+
# bigQueryExports/`export_id`" This field is provided in responses, and is
|
876
|
+
# ignored when provided in create requests.
|
877
|
+
# Corresponds to the JSON property `name`
|
878
|
+
# @return [String]
|
879
|
+
attr_accessor :name
|
880
|
+
|
881
|
+
# Output only. The service account that needs permission to create table, upload
|
882
|
+
# data to the big query dataset.
|
883
|
+
# Corresponds to the JSON property `principal`
|
884
|
+
# @return [String]
|
885
|
+
attr_accessor :principal
|
886
|
+
|
887
|
+
# Output only. The most recent time at which the big export was updated. This
|
888
|
+
# field is set by the server and will be ignored if provided on export creation
|
889
|
+
# or update.
|
890
|
+
# Corresponds to the JSON property `updateTime`
|
891
|
+
# @return [String]
|
892
|
+
attr_accessor :update_time
|
893
|
+
|
894
|
+
def initialize(**args)
|
895
|
+
update!(**args)
|
896
|
+
end
|
897
|
+
|
898
|
+
# Update properties of this object
|
899
|
+
def update!(**args)
|
900
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
901
|
+
@dataset = args[:dataset] if args.key?(:dataset)
|
902
|
+
@description = args[:description] if args.key?(:description)
|
903
|
+
@filter = args[:filter] if args.key?(:filter)
|
904
|
+
@most_recent_editor = args[:most_recent_editor] if args.key?(:most_recent_editor)
|
905
|
+
@name = args[:name] if args.key?(:name)
|
906
|
+
@principal = args[:principal] if args.key?(:principal)
|
907
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
908
|
+
end
|
909
|
+
end
|
910
|
+
|
817
911
|
# The response to a BulkMute request. Contains the LRO information.
|
818
912
|
class GoogleCloudSecuritycenterV1BulkMuteFindingsResponse
|
819
913
|
include Google::Apis::Core::Hashable
|
@@ -847,10 +941,10 @@ module Google
|
|
847
941
|
# @return [String]
|
848
942
|
attr_accessor :external_uid
|
849
943
|
|
850
|
-
# External System Name e.g. jira, demisto, etc. e.g.: organizations/1234/
|
851
|
-
# 5678/findings/123456/externalSystems/jira folders/1234/sources/5678/
|
852
|
-
# 123456/externalSystems/jira projects/1234/sources/5678/findings/
|
853
|
-
# externalSystems/jira
|
944
|
+
# External System Name e.g. jira, demisto, etc. e.g.: `organizations/1234/
|
945
|
+
# sources/5678/findings/123456/externalSystems/jira` `folders/1234/sources/5678/
|
946
|
+
# findings/123456/externalSystems/jira` `projects/1234/sources/5678/findings/
|
947
|
+
# 123456/externalSystems/jira`
|
854
948
|
# Corresponds to the JSON property `name`
|
855
949
|
# @return [String]
|
856
950
|
attr_accessor :name
|
@@ -1019,7 +1113,7 @@ module Google
|
|
1019
1113
|
# @return [String]
|
1020
1114
|
attr_accessor :project
|
1021
1115
|
|
1022
|
-
# The
|
1116
|
+
# The project id that the resource belongs to.
|
1023
1117
|
# Corresponds to the JSON property `projectDisplayName`
|
1024
1118
|
# @return [String]
|
1025
1119
|
attr_accessor :project_display_name
|
@@ -1304,7 +1398,7 @@ module Google
|
|
1304
1398
|
# @return [String]
|
1305
1399
|
attr_accessor :project
|
1306
1400
|
|
1307
|
-
# The
|
1401
|
+
# The project id that the resource belongs to.
|
1308
1402
|
# Corresponds to the JSON property `projectDisplayName`
|
1309
1403
|
# @return [String]
|
1310
1404
|
attr_accessor :project_display_name
|
@@ -1830,6 +1924,32 @@ module Google
|
|
1830
1924
|
end
|
1831
1925
|
end
|
1832
1926
|
|
1927
|
+
# Response message for listing BigQuery exports.
|
1928
|
+
class ListBigQueryExportsResponse
|
1929
|
+
include Google::Apis::Core::Hashable
|
1930
|
+
|
1931
|
+
# The BigQuery exports from the specified parent.
|
1932
|
+
# Corresponds to the JSON property `bigQueryExports`
|
1933
|
+
# @return [Array<Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport>]
|
1934
|
+
attr_accessor :big_query_exports
|
1935
|
+
|
1936
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
1937
|
+
# field is omitted, there are no subsequent pages.
|
1938
|
+
# Corresponds to the JSON property `nextPageToken`
|
1939
|
+
# @return [String]
|
1940
|
+
attr_accessor :next_page_token
|
1941
|
+
|
1942
|
+
def initialize(**args)
|
1943
|
+
update!(**args)
|
1944
|
+
end
|
1945
|
+
|
1946
|
+
# Update properties of this object
|
1947
|
+
def update!(**args)
|
1948
|
+
@big_query_exports = args[:big_query_exports] if args.key?(:big_query_exports)
|
1949
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1950
|
+
end
|
1951
|
+
end
|
1952
|
+
|
1833
1953
|
# Response message for listing findings.
|
1834
1954
|
class ListFindingsResponse
|
1835
1955
|
include Google::Apis::Core::Hashable
|
@@ -2031,9 +2151,9 @@ module Google
|
|
2031
2151
|
# The MITRE ATT&CK technique most closely represented by this finding, if any.
|
2032
2152
|
# primary_techniques is a repeated field because there are multiple levels of
|
2033
2153
|
# MITRE ATT&CK techniques. If the technique most closely represented by this
|
2034
|
-
# finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique
|
2035
|
-
# and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS
|
2036
|
-
# ACTIVE_SCANNING).
|
2154
|
+
# finding is a sub-technique (e.g. `SCANNING_IP_BLOCKS`), both the sub-technique
|
2155
|
+
# and its parent technique(s) will be listed (e.g. `SCANNING_IP_BLOCKS`, `
|
2156
|
+
# ACTIVE_SCANNING`).
|
2037
2157
|
# Corresponds to the JSON property `primaryTechniques`
|
2038
2158
|
# @return [Array<String>]
|
2039
2159
|
attr_accessor :primary_techniques
|
@@ -2360,7 +2480,7 @@ module Google
|
|
2360
2480
|
# @return [String]
|
2361
2481
|
attr_accessor :parent_name
|
2362
2482
|
|
2363
|
-
# The
|
2483
|
+
# The project id that the resource belongs to.
|
2364
2484
|
# Corresponds to the JSON property `projectDisplayName`
|
2365
2485
|
# @return [String]
|
2366
2486
|
attr_accessor :project_display_name
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module SecuritycenterV1
|
18
18
|
# Version of the google-apis-securitycenter_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.23.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220303"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -118,6 +118,12 @@ module Google
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
+
class GoogleCloudSecuritycenterV1BigQueryExport
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
121
127
|
class GoogleCloudSecuritycenterV1BulkMuteFindingsResponse
|
122
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
129
|
|
@@ -250,6 +256,12 @@ module Google
|
|
250
256
|
include Google::Apis::Core::JsonObjectSupport
|
251
257
|
end
|
252
258
|
|
259
|
+
class ListBigQueryExportsResponse
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
263
|
+
end
|
264
|
+
|
253
265
|
class ListFindingsResponse
|
254
266
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
267
|
|
@@ -482,6 +494,7 @@ module Google
|
|
482
494
|
property :id, as: 'id'
|
483
495
|
collection :references, as: 'references', class: Google::Apis::SecuritycenterV1::Reference, decorator: Google::Apis::SecuritycenterV1::Reference::Representation
|
484
496
|
|
497
|
+
property :upstream_fix_available, as: 'upstreamFixAvailable'
|
485
498
|
end
|
486
499
|
end
|
487
500
|
|
@@ -579,6 +592,20 @@ module Google
|
|
579
592
|
end
|
580
593
|
end
|
581
594
|
|
595
|
+
class GoogleCloudSecuritycenterV1BigQueryExport
|
596
|
+
# @private
|
597
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
598
|
+
property :create_time, as: 'createTime'
|
599
|
+
property :dataset, as: 'dataset'
|
600
|
+
property :description, as: 'description'
|
601
|
+
property :filter, as: 'filter'
|
602
|
+
property :most_recent_editor, as: 'mostRecentEditor'
|
603
|
+
property :name, as: 'name'
|
604
|
+
property :principal, as: 'principal'
|
605
|
+
property :update_time, as: 'updateTime'
|
606
|
+
end
|
607
|
+
end
|
608
|
+
|
582
609
|
class GoogleCloudSecuritycenterV1BulkMuteFindingsResponse
|
583
610
|
# @private
|
584
611
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -808,6 +835,15 @@ module Google
|
|
808
835
|
end
|
809
836
|
end
|
810
837
|
|
838
|
+
class ListBigQueryExportsResponse
|
839
|
+
# @private
|
840
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
841
|
+
collection :big_query_exports, as: 'bigQueryExports', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
842
|
+
|
843
|
+
property :next_page_token, as: 'nextPageToken'
|
844
|
+
end
|
845
|
+
end
|
846
|
+
|
811
847
|
class ListFindingsResponse
|
812
848
|
# @private
|
813
849
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -248,6 +248,198 @@ module Google
|
|
248
248
|
execute_or_queue_command(command, &block)
|
249
249
|
end
|
250
250
|
|
251
|
+
# Creates a big query export.
|
252
|
+
# @param [String] parent
|
253
|
+
# Required. Resource name of the new big query export's parent. Its format is "
|
254
|
+
# organizations/[organization_id]", "folders/[folder_id]", or "projects/[
|
255
|
+
# project_id]".
|
256
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] google_cloud_securitycenter_v1_big_query_export_object
|
257
|
+
# @param [String] big_query_export_id
|
258
|
+
# Required. Unique identifier provided by the client within the parent scope. It
|
259
|
+
# must consist of lower case letters, numbers, and hyphen, with the first
|
260
|
+
# character a letter, the last a letter or a number, and a 63 character maximum.
|
261
|
+
# @param [String] fields
|
262
|
+
# Selector specifying which fields to include in a partial response.
|
263
|
+
# @param [String] quota_user
|
264
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
265
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
266
|
+
# @param [Google::Apis::RequestOptions] options
|
267
|
+
# Request-specific options
|
268
|
+
#
|
269
|
+
# @yield [result, err] Result & error if block supplied
|
270
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] parsed result object
|
271
|
+
# @yieldparam err [StandardError] error object if request failed
|
272
|
+
#
|
273
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport]
|
274
|
+
#
|
275
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
276
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
277
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
278
|
+
def create_folder_big_query_export(parent, google_cloud_securitycenter_v1_big_query_export_object = nil, big_query_export_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
279
|
+
command = make_simple_command(:post, 'v1/{+parent}/bigQueryExports', options)
|
280
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
281
|
+
command.request_object = google_cloud_securitycenter_v1_big_query_export_object
|
282
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
283
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport
|
284
|
+
command.params['parent'] = parent unless parent.nil?
|
285
|
+
command.query['bigQueryExportId'] = big_query_export_id unless big_query_export_id.nil?
|
286
|
+
command.query['fields'] = fields unless fields.nil?
|
287
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
288
|
+
execute_or_queue_command(command, &block)
|
289
|
+
end
|
290
|
+
|
291
|
+
# Deletes an existing big query export.
|
292
|
+
# @param [String] name
|
293
|
+
# Required. Name of the big query export to delete. Its format is organizations/`
|
294
|
+
# organization`/bigQueryExports/`export_id`, folders/`folder`/bigQueryExports/`
|
295
|
+
# export_id`, or projects/`project`/bigQueryExports/`export_id`
|
296
|
+
# @param [String] fields
|
297
|
+
# Selector specifying which fields to include in a partial response.
|
298
|
+
# @param [String] quota_user
|
299
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
300
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
301
|
+
# @param [Google::Apis::RequestOptions] options
|
302
|
+
# Request-specific options
|
303
|
+
#
|
304
|
+
# @yield [result, err] Result & error if block supplied
|
305
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
|
306
|
+
# @yieldparam err [StandardError] error object if request failed
|
307
|
+
#
|
308
|
+
# @return [Google::Apis::SecuritycenterV1::Empty]
|
309
|
+
#
|
310
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
311
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
312
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
313
|
+
def delete_folder_big_query_export(name, fields: nil, quota_user: nil, options: nil, &block)
|
314
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
315
|
+
command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
|
316
|
+
command.response_class = Google::Apis::SecuritycenterV1::Empty
|
317
|
+
command.params['name'] = name unless name.nil?
|
318
|
+
command.query['fields'] = fields unless fields.nil?
|
319
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
320
|
+
execute_or_queue_command(command, &block)
|
321
|
+
end
|
322
|
+
|
323
|
+
# Gets a big query export.
|
324
|
+
# @param [String] name
|
325
|
+
# Required. Name of the big query export to retrieve. Its format is
|
326
|
+
# organizations/`organization`/bigQueryExports/`export_id`, folders/`folder`/
|
327
|
+
# bigQueryExports/`export_id`, or projects/`project`/bigQueryExports/`export_id`
|
328
|
+
# @param [String] fields
|
329
|
+
# Selector specifying which fields to include in a partial response.
|
330
|
+
# @param [String] quota_user
|
331
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
332
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
333
|
+
# @param [Google::Apis::RequestOptions] options
|
334
|
+
# Request-specific options
|
335
|
+
#
|
336
|
+
# @yield [result, err] Result & error if block supplied
|
337
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] parsed result object
|
338
|
+
# @yieldparam err [StandardError] error object if request failed
|
339
|
+
#
|
340
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport]
|
341
|
+
#
|
342
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
343
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
344
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
345
|
+
def get_folder_big_query_export(name, fields: nil, quota_user: nil, options: nil, &block)
|
346
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
347
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
348
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport
|
349
|
+
command.params['name'] = name unless name.nil?
|
350
|
+
command.query['fields'] = fields unless fields.nil?
|
351
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
352
|
+
execute_or_queue_command(command, &block)
|
353
|
+
end
|
354
|
+
|
355
|
+
# Lists BigQuery exports. Note that when requesting BigQuery exports at a given
|
356
|
+
# level all exports under that level are also returned e.g. if requesting
|
357
|
+
# BigQuery exports under a folder, then all BigQuery exports immediately under
|
358
|
+
# the folder plus the ones created under the projects within the folder are
|
359
|
+
# returned.
|
360
|
+
# @param [String] parent
|
361
|
+
# Required. The parent, which owns the collection of BigQuery exports. Its
|
362
|
+
# format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[
|
363
|
+
# project_id]".
|
364
|
+
# @param [Fixnum] page_size
|
365
|
+
# The maximum number of configs to return. The service may return fewer than
|
366
|
+
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
367
|
+
# value is 1000; values above 1000 will be coerced to 1000.
|
368
|
+
# @param [String] page_token
|
369
|
+
# A page token, received from a previous `ListBigQueryExports` call. Provide
|
370
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
371
|
+
# provided to `ListBigQueryExports` must match the call that provided the page
|
372
|
+
# token.
|
373
|
+
# @param [String] fields
|
374
|
+
# Selector specifying which fields to include in a partial response.
|
375
|
+
# @param [String] quota_user
|
376
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
377
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
378
|
+
# @param [Google::Apis::RequestOptions] options
|
379
|
+
# Request-specific options
|
380
|
+
#
|
381
|
+
# @yield [result, err] Result & error if block supplied
|
382
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse] parsed result object
|
383
|
+
# @yieldparam err [StandardError] error object if request failed
|
384
|
+
#
|
385
|
+
# @return [Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse]
|
386
|
+
#
|
387
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
388
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
389
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
390
|
+
def list_folder_big_query_exports(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
391
|
+
command = make_simple_command(:get, 'v1/{+parent}/bigQueryExports', options)
|
392
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse::Representation
|
393
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse
|
394
|
+
command.params['parent'] = parent unless parent.nil?
|
395
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
396
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
397
|
+
command.query['fields'] = fields unless fields.nil?
|
398
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
399
|
+
execute_or_queue_command(command, &block)
|
400
|
+
end
|
401
|
+
|
402
|
+
# Updates a BigQuery export.
|
403
|
+
# @param [String] name
|
404
|
+
# The relative resource name of this export. See: https://cloud.google.com/apis/
|
405
|
+
# design/resource_names#relative_resource_name. Example format: "organizations/`
|
406
|
+
# organization_id`/bigQueryExports/`export_id`" Example format: "folders/`
|
407
|
+
# folder_id`/bigQueryExports/`export_id`" Example format: "projects/`project_id`/
|
408
|
+
# bigQueryExports/`export_id`" This field is provided in responses, and is
|
409
|
+
# ignored when provided in create requests.
|
410
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] google_cloud_securitycenter_v1_big_query_export_object
|
411
|
+
# @param [String] update_mask
|
412
|
+
# The list of fields to be updated. If empty all mutable fields will be updated.
|
413
|
+
# @param [String] fields
|
414
|
+
# Selector specifying which fields to include in a partial response.
|
415
|
+
# @param [String] quota_user
|
416
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
417
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
418
|
+
# @param [Google::Apis::RequestOptions] options
|
419
|
+
# Request-specific options
|
420
|
+
#
|
421
|
+
# @yield [result, err] Result & error if block supplied
|
422
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] parsed result object
|
423
|
+
# @yieldparam err [StandardError] error object if request failed
|
424
|
+
#
|
425
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport]
|
426
|
+
#
|
427
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
428
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
429
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
430
|
+
def patch_folder_big_query_export(name, google_cloud_securitycenter_v1_big_query_export_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
431
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
432
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
433
|
+
command.request_object = google_cloud_securitycenter_v1_big_query_export_object
|
434
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
435
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport
|
436
|
+
command.params['name'] = name unless name.nil?
|
437
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
438
|
+
command.query['fields'] = fields unless fields.nil?
|
439
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
440
|
+
execute_or_queue_command(command, &block)
|
441
|
+
end
|
442
|
+
|
251
443
|
# Kicks off an LRO to bulk mute findings for a parent based on a filter. The
|
252
444
|
# parent can be either an organization, folder or project. The findings matched
|
253
445
|
# by the filter will be muted after the LRO is done.
|
@@ -829,10 +1021,10 @@ module Google
|
|
829
1021
|
|
830
1022
|
# Updates external system. This is for a given finding.
|
831
1023
|
# @param [String] name
|
832
|
-
# External System Name e.g. jira, demisto, etc. e.g.: organizations/1234/
|
833
|
-
# 5678/findings/123456/externalSystems/jira folders/1234/sources/5678/
|
834
|
-
# 123456/externalSystems/jira projects/1234/sources/5678/findings/
|
835
|
-
# externalSystems/jira
|
1024
|
+
# External System Name e.g. jira, demisto, etc. e.g.: `organizations/1234/
|
1025
|
+
# sources/5678/findings/123456/externalSystems/jira` `folders/1234/sources/5678/
|
1026
|
+
# findings/123456/externalSystems/jira` `projects/1234/sources/5678/findings/
|
1027
|
+
# 123456/externalSystems/jira`
|
836
1028
|
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1ExternalSystem] google_cloud_securitycenter_v1_external_system_object
|
837
1029
|
# @param [String] update_mask
|
838
1030
|
# The FieldMask to use when updating the external system resource. If empty all
|
@@ -1171,6 +1363,198 @@ module Google
|
|
1171
1363
|
execute_or_queue_command(command, &block)
|
1172
1364
|
end
|
1173
1365
|
|
1366
|
+
# Creates a big query export.
|
1367
|
+
# @param [String] parent
|
1368
|
+
# Required. Resource name of the new big query export's parent. Its format is "
|
1369
|
+
# organizations/[organization_id]", "folders/[folder_id]", or "projects/[
|
1370
|
+
# project_id]".
|
1371
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] google_cloud_securitycenter_v1_big_query_export_object
|
1372
|
+
# @param [String] big_query_export_id
|
1373
|
+
# Required. Unique identifier provided by the client within the parent scope. It
|
1374
|
+
# must consist of lower case letters, numbers, and hyphen, with the first
|
1375
|
+
# character a letter, the last a letter or a number, and a 63 character maximum.
|
1376
|
+
# @param [String] fields
|
1377
|
+
# Selector specifying which fields to include in a partial response.
|
1378
|
+
# @param [String] quota_user
|
1379
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1380
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1381
|
+
# @param [Google::Apis::RequestOptions] options
|
1382
|
+
# Request-specific options
|
1383
|
+
#
|
1384
|
+
# @yield [result, err] Result & error if block supplied
|
1385
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] parsed result object
|
1386
|
+
# @yieldparam err [StandardError] error object if request failed
|
1387
|
+
#
|
1388
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport]
|
1389
|
+
#
|
1390
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1391
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1392
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1393
|
+
def create_organization_big_query_export(parent, google_cloud_securitycenter_v1_big_query_export_object = nil, big_query_export_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1394
|
+
command = make_simple_command(:post, 'v1/{+parent}/bigQueryExports', options)
|
1395
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
1396
|
+
command.request_object = google_cloud_securitycenter_v1_big_query_export_object
|
1397
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
1398
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport
|
1399
|
+
command.params['parent'] = parent unless parent.nil?
|
1400
|
+
command.query['bigQueryExportId'] = big_query_export_id unless big_query_export_id.nil?
|
1401
|
+
command.query['fields'] = fields unless fields.nil?
|
1402
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1403
|
+
execute_or_queue_command(command, &block)
|
1404
|
+
end
|
1405
|
+
|
1406
|
+
# Deletes an existing big query export.
|
1407
|
+
# @param [String] name
|
1408
|
+
# Required. Name of the big query export to delete. Its format is organizations/`
|
1409
|
+
# organization`/bigQueryExports/`export_id`, folders/`folder`/bigQueryExports/`
|
1410
|
+
# export_id`, or projects/`project`/bigQueryExports/`export_id`
|
1411
|
+
# @param [String] fields
|
1412
|
+
# Selector specifying which fields to include in a partial response.
|
1413
|
+
# @param [String] quota_user
|
1414
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1415
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1416
|
+
# @param [Google::Apis::RequestOptions] options
|
1417
|
+
# Request-specific options
|
1418
|
+
#
|
1419
|
+
# @yield [result, err] Result & error if block supplied
|
1420
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
|
1421
|
+
# @yieldparam err [StandardError] error object if request failed
|
1422
|
+
#
|
1423
|
+
# @return [Google::Apis::SecuritycenterV1::Empty]
|
1424
|
+
#
|
1425
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1426
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1427
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1428
|
+
def delete_organization_big_query_export(name, fields: nil, quota_user: nil, options: nil, &block)
|
1429
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1430
|
+
command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
|
1431
|
+
command.response_class = Google::Apis::SecuritycenterV1::Empty
|
1432
|
+
command.params['name'] = name unless name.nil?
|
1433
|
+
command.query['fields'] = fields unless fields.nil?
|
1434
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1435
|
+
execute_or_queue_command(command, &block)
|
1436
|
+
end
|
1437
|
+
|
1438
|
+
# Gets a big query export.
|
1439
|
+
# @param [String] name
|
1440
|
+
# Required. Name of the big query export to retrieve. Its format is
|
1441
|
+
# organizations/`organization`/bigQueryExports/`export_id`, folders/`folder`/
|
1442
|
+
# bigQueryExports/`export_id`, or projects/`project`/bigQueryExports/`export_id`
|
1443
|
+
# @param [String] fields
|
1444
|
+
# Selector specifying which fields to include in a partial response.
|
1445
|
+
# @param [String] quota_user
|
1446
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1447
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1448
|
+
# @param [Google::Apis::RequestOptions] options
|
1449
|
+
# Request-specific options
|
1450
|
+
#
|
1451
|
+
# @yield [result, err] Result & error if block supplied
|
1452
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] parsed result object
|
1453
|
+
# @yieldparam err [StandardError] error object if request failed
|
1454
|
+
#
|
1455
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport]
|
1456
|
+
#
|
1457
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1458
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1459
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1460
|
+
def get_organization_big_query_export(name, fields: nil, quota_user: nil, options: nil, &block)
|
1461
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1462
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
1463
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport
|
1464
|
+
command.params['name'] = name unless name.nil?
|
1465
|
+
command.query['fields'] = fields unless fields.nil?
|
1466
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1467
|
+
execute_or_queue_command(command, &block)
|
1468
|
+
end
|
1469
|
+
|
1470
|
+
# Lists BigQuery exports. Note that when requesting BigQuery exports at a given
|
1471
|
+
# level all exports under that level are also returned e.g. if requesting
|
1472
|
+
# BigQuery exports under a folder, then all BigQuery exports immediately under
|
1473
|
+
# the folder plus the ones created under the projects within the folder are
|
1474
|
+
# returned.
|
1475
|
+
# @param [String] parent
|
1476
|
+
# Required. The parent, which owns the collection of BigQuery exports. Its
|
1477
|
+
# format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[
|
1478
|
+
# project_id]".
|
1479
|
+
# @param [Fixnum] page_size
|
1480
|
+
# The maximum number of configs to return. The service may return fewer than
|
1481
|
+
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
1482
|
+
# value is 1000; values above 1000 will be coerced to 1000.
|
1483
|
+
# @param [String] page_token
|
1484
|
+
# A page token, received from a previous `ListBigQueryExports` call. Provide
|
1485
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
1486
|
+
# provided to `ListBigQueryExports` must match the call that provided the page
|
1487
|
+
# token.
|
1488
|
+
# @param [String] fields
|
1489
|
+
# Selector specifying which fields to include in a partial response.
|
1490
|
+
# @param [String] quota_user
|
1491
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1492
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1493
|
+
# @param [Google::Apis::RequestOptions] options
|
1494
|
+
# Request-specific options
|
1495
|
+
#
|
1496
|
+
# @yield [result, err] Result & error if block supplied
|
1497
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse] parsed result object
|
1498
|
+
# @yieldparam err [StandardError] error object if request failed
|
1499
|
+
#
|
1500
|
+
# @return [Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse]
|
1501
|
+
#
|
1502
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1503
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1504
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1505
|
+
def list_organization_big_query_exports(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1506
|
+
command = make_simple_command(:get, 'v1/{+parent}/bigQueryExports', options)
|
1507
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse::Representation
|
1508
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse
|
1509
|
+
command.params['parent'] = parent unless parent.nil?
|
1510
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1511
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1512
|
+
command.query['fields'] = fields unless fields.nil?
|
1513
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1514
|
+
execute_or_queue_command(command, &block)
|
1515
|
+
end
|
1516
|
+
|
1517
|
+
# Updates a BigQuery export.
|
1518
|
+
# @param [String] name
|
1519
|
+
# The relative resource name of this export. See: https://cloud.google.com/apis/
|
1520
|
+
# design/resource_names#relative_resource_name. Example format: "organizations/`
|
1521
|
+
# organization_id`/bigQueryExports/`export_id`" Example format: "folders/`
|
1522
|
+
# folder_id`/bigQueryExports/`export_id`" Example format: "projects/`project_id`/
|
1523
|
+
# bigQueryExports/`export_id`" This field is provided in responses, and is
|
1524
|
+
# ignored when provided in create requests.
|
1525
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] google_cloud_securitycenter_v1_big_query_export_object
|
1526
|
+
# @param [String] update_mask
|
1527
|
+
# The list of fields to be updated. If empty all mutable fields will be updated.
|
1528
|
+
# @param [String] fields
|
1529
|
+
# Selector specifying which fields to include in a partial response.
|
1530
|
+
# @param [String] quota_user
|
1531
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1532
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1533
|
+
# @param [Google::Apis::RequestOptions] options
|
1534
|
+
# Request-specific options
|
1535
|
+
#
|
1536
|
+
# @yield [result, err] Result & error if block supplied
|
1537
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] parsed result object
|
1538
|
+
# @yieldparam err [StandardError] error object if request failed
|
1539
|
+
#
|
1540
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport]
|
1541
|
+
#
|
1542
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1543
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1544
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1545
|
+
def patch_organization_big_query_export(name, google_cloud_securitycenter_v1_big_query_export_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1546
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1547
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
1548
|
+
command.request_object = google_cloud_securitycenter_v1_big_query_export_object
|
1549
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
1550
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport
|
1551
|
+
command.params['name'] = name unless name.nil?
|
1552
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1553
|
+
command.query['fields'] = fields unless fields.nil?
|
1554
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1555
|
+
execute_or_queue_command(command, &block)
|
1556
|
+
end
|
1557
|
+
|
1174
1558
|
# Kicks off an LRO to bulk mute findings for a parent based on a filter. The
|
1175
1559
|
# parent can be either an organization, folder or project. The findings matched
|
1176
1560
|
# by the filter will be muted after the LRO is done.
|
@@ -2326,10 +2710,10 @@ module Google
|
|
2326
2710
|
|
2327
2711
|
# Updates external system. This is for a given finding.
|
2328
2712
|
# @param [String] name
|
2329
|
-
# External System Name e.g. jira, demisto, etc. e.g.: organizations/1234/
|
2330
|
-
# 5678/findings/123456/externalSystems/jira folders/1234/sources/5678/
|
2331
|
-
# 123456/externalSystems/jira projects/1234/sources/5678/findings/
|
2332
|
-
# externalSystems/jira
|
2713
|
+
# External System Name e.g. jira, demisto, etc. e.g.: `organizations/1234/
|
2714
|
+
# sources/5678/findings/123456/externalSystems/jira` `folders/1234/sources/5678/
|
2715
|
+
# findings/123456/externalSystems/jira` `projects/1234/sources/5678/findings/
|
2716
|
+
# 123456/externalSystems/jira`
|
2333
2717
|
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1ExternalSystem] google_cloud_securitycenter_v1_external_system_object
|
2334
2718
|
# @param [String] update_mask
|
2335
2719
|
# The FieldMask to use when updating the external system resource. If empty all
|
@@ -2562,6 +2946,198 @@ module Google
|
|
2562
2946
|
execute_or_queue_command(command, &block)
|
2563
2947
|
end
|
2564
2948
|
|
2949
|
+
# Creates a big query export.
|
2950
|
+
# @param [String] parent
|
2951
|
+
# Required. Resource name of the new big query export's parent. Its format is "
|
2952
|
+
# organizations/[organization_id]", "folders/[folder_id]", or "projects/[
|
2953
|
+
# project_id]".
|
2954
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] google_cloud_securitycenter_v1_big_query_export_object
|
2955
|
+
# @param [String] big_query_export_id
|
2956
|
+
# Required. Unique identifier provided by the client within the parent scope. It
|
2957
|
+
# must consist of lower case letters, numbers, and hyphen, with the first
|
2958
|
+
# character a letter, the last a letter or a number, and a 63 character maximum.
|
2959
|
+
# @param [String] fields
|
2960
|
+
# Selector specifying which fields to include in a partial response.
|
2961
|
+
# @param [String] quota_user
|
2962
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2963
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2964
|
+
# @param [Google::Apis::RequestOptions] options
|
2965
|
+
# Request-specific options
|
2966
|
+
#
|
2967
|
+
# @yield [result, err] Result & error if block supplied
|
2968
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] parsed result object
|
2969
|
+
# @yieldparam err [StandardError] error object if request failed
|
2970
|
+
#
|
2971
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport]
|
2972
|
+
#
|
2973
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2974
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2975
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2976
|
+
def create_project_big_query_export(parent, google_cloud_securitycenter_v1_big_query_export_object = nil, big_query_export_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2977
|
+
command = make_simple_command(:post, 'v1/{+parent}/bigQueryExports', options)
|
2978
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
2979
|
+
command.request_object = google_cloud_securitycenter_v1_big_query_export_object
|
2980
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
2981
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport
|
2982
|
+
command.params['parent'] = parent unless parent.nil?
|
2983
|
+
command.query['bigQueryExportId'] = big_query_export_id unless big_query_export_id.nil?
|
2984
|
+
command.query['fields'] = fields unless fields.nil?
|
2985
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2986
|
+
execute_or_queue_command(command, &block)
|
2987
|
+
end
|
2988
|
+
|
2989
|
+
# Deletes an existing big query export.
|
2990
|
+
# @param [String] name
|
2991
|
+
# Required. Name of the big query export to delete. Its format is organizations/`
|
2992
|
+
# organization`/bigQueryExports/`export_id`, folders/`folder`/bigQueryExports/`
|
2993
|
+
# export_id`, or projects/`project`/bigQueryExports/`export_id`
|
2994
|
+
# @param [String] fields
|
2995
|
+
# Selector specifying which fields to include in a partial response.
|
2996
|
+
# @param [String] quota_user
|
2997
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2998
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2999
|
+
# @param [Google::Apis::RequestOptions] options
|
3000
|
+
# Request-specific options
|
3001
|
+
#
|
3002
|
+
# @yield [result, err] Result & error if block supplied
|
3003
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
|
3004
|
+
# @yieldparam err [StandardError] error object if request failed
|
3005
|
+
#
|
3006
|
+
# @return [Google::Apis::SecuritycenterV1::Empty]
|
3007
|
+
#
|
3008
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3009
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3010
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3011
|
+
def delete_project_big_query_export(name, fields: nil, quota_user: nil, options: nil, &block)
|
3012
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
3013
|
+
command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
|
3014
|
+
command.response_class = Google::Apis::SecuritycenterV1::Empty
|
3015
|
+
command.params['name'] = name unless name.nil?
|
3016
|
+
command.query['fields'] = fields unless fields.nil?
|
3017
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3018
|
+
execute_or_queue_command(command, &block)
|
3019
|
+
end
|
3020
|
+
|
3021
|
+
# Gets a big query export.
|
3022
|
+
# @param [String] name
|
3023
|
+
# Required. Name of the big query export to retrieve. Its format is
|
3024
|
+
# organizations/`organization`/bigQueryExports/`export_id`, folders/`folder`/
|
3025
|
+
# bigQueryExports/`export_id`, or projects/`project`/bigQueryExports/`export_id`
|
3026
|
+
# @param [String] fields
|
3027
|
+
# Selector specifying which fields to include in a partial response.
|
3028
|
+
# @param [String] quota_user
|
3029
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3030
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3031
|
+
# @param [Google::Apis::RequestOptions] options
|
3032
|
+
# Request-specific options
|
3033
|
+
#
|
3034
|
+
# @yield [result, err] Result & error if block supplied
|
3035
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] parsed result object
|
3036
|
+
# @yieldparam err [StandardError] error object if request failed
|
3037
|
+
#
|
3038
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport]
|
3039
|
+
#
|
3040
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3041
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3042
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3043
|
+
def get_project_big_query_export(name, fields: nil, quota_user: nil, options: nil, &block)
|
3044
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
3045
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
3046
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport
|
3047
|
+
command.params['name'] = name unless name.nil?
|
3048
|
+
command.query['fields'] = fields unless fields.nil?
|
3049
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3050
|
+
execute_or_queue_command(command, &block)
|
3051
|
+
end
|
3052
|
+
|
3053
|
+
# Lists BigQuery exports. Note that when requesting BigQuery exports at a given
|
3054
|
+
# level all exports under that level are also returned e.g. if requesting
|
3055
|
+
# BigQuery exports under a folder, then all BigQuery exports immediately under
|
3056
|
+
# the folder plus the ones created under the projects within the folder are
|
3057
|
+
# returned.
|
3058
|
+
# @param [String] parent
|
3059
|
+
# Required. The parent, which owns the collection of BigQuery exports. Its
|
3060
|
+
# format is "organizations/[organization_id]", "folders/[folder_id]", "projects/[
|
3061
|
+
# project_id]".
|
3062
|
+
# @param [Fixnum] page_size
|
3063
|
+
# The maximum number of configs to return. The service may return fewer than
|
3064
|
+
# this value. If unspecified, at most 10 configs will be returned. The maximum
|
3065
|
+
# value is 1000; values above 1000 will be coerced to 1000.
|
3066
|
+
# @param [String] page_token
|
3067
|
+
# A page token, received from a previous `ListBigQueryExports` call. Provide
|
3068
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
3069
|
+
# provided to `ListBigQueryExports` must match the call that provided the page
|
3070
|
+
# token.
|
3071
|
+
# @param [String] fields
|
3072
|
+
# Selector specifying which fields to include in a partial response.
|
3073
|
+
# @param [String] quota_user
|
3074
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3075
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3076
|
+
# @param [Google::Apis::RequestOptions] options
|
3077
|
+
# Request-specific options
|
3078
|
+
#
|
3079
|
+
# @yield [result, err] Result & error if block supplied
|
3080
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse] parsed result object
|
3081
|
+
# @yieldparam err [StandardError] error object if request failed
|
3082
|
+
#
|
3083
|
+
# @return [Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse]
|
3084
|
+
#
|
3085
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3086
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3087
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3088
|
+
def list_project_big_query_exports(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3089
|
+
command = make_simple_command(:get, 'v1/{+parent}/bigQueryExports', options)
|
3090
|
+
command.response_representation = Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse::Representation
|
3091
|
+
command.response_class = Google::Apis::SecuritycenterV1::ListBigQueryExportsResponse
|
3092
|
+
command.params['parent'] = parent unless parent.nil?
|
3093
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3094
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3095
|
+
command.query['fields'] = fields unless fields.nil?
|
3096
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3097
|
+
execute_or_queue_command(command, &block)
|
3098
|
+
end
|
3099
|
+
|
3100
|
+
# Updates a BigQuery export.
|
3101
|
+
# @param [String] name
|
3102
|
+
# The relative resource name of this export. See: https://cloud.google.com/apis/
|
3103
|
+
# design/resource_names#relative_resource_name. Example format: "organizations/`
|
3104
|
+
# organization_id`/bigQueryExports/`export_id`" Example format: "folders/`
|
3105
|
+
# folder_id`/bigQueryExports/`export_id`" Example format: "projects/`project_id`/
|
3106
|
+
# bigQueryExports/`export_id`" This field is provided in responses, and is
|
3107
|
+
# ignored when provided in create requests.
|
3108
|
+
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] google_cloud_securitycenter_v1_big_query_export_object
|
3109
|
+
# @param [String] update_mask
|
3110
|
+
# The list of fields to be updated. If empty all mutable fields will be updated.
|
3111
|
+
# @param [String] fields
|
3112
|
+
# Selector specifying which fields to include in a partial response.
|
3113
|
+
# @param [String] quota_user
|
3114
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3115
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3116
|
+
# @param [Google::Apis::RequestOptions] options
|
3117
|
+
# Request-specific options
|
3118
|
+
#
|
3119
|
+
# @yield [result, err] Result & error if block supplied
|
3120
|
+
# @yieldparam result [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport] parsed result object
|
3121
|
+
# @yieldparam err [StandardError] error object if request failed
|
3122
|
+
#
|
3123
|
+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport]
|
3124
|
+
#
|
3125
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3126
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3127
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3128
|
+
def patch_project_big_query_export(name, google_cloud_securitycenter_v1_big_query_export_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3129
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
3130
|
+
command.request_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
3131
|
+
command.request_object = google_cloud_securitycenter_v1_big_query_export_object
|
3132
|
+
command.response_representation = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport::Representation
|
3133
|
+
command.response_class = Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1BigQueryExport
|
3134
|
+
command.params['name'] = name unless name.nil?
|
3135
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3136
|
+
command.query['fields'] = fields unless fields.nil?
|
3137
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3138
|
+
execute_or_queue_command(command, &block)
|
3139
|
+
end
|
3140
|
+
|
2565
3141
|
# Kicks off an LRO to bulk mute findings for a parent based on a filter. The
|
2566
3142
|
# parent can be either an organization, folder or project. The findings matched
|
2567
3143
|
# by the filter will be muted after the LRO is done.
|
@@ -3143,10 +3719,10 @@ module Google
|
|
3143
3719
|
|
3144
3720
|
# Updates external system. This is for a given finding.
|
3145
3721
|
# @param [String] name
|
3146
|
-
# External System Name e.g. jira, demisto, etc. e.g.: organizations/1234/
|
3147
|
-
# 5678/findings/123456/externalSystems/jira folders/1234/sources/5678/
|
3148
|
-
# 123456/externalSystems/jira projects/1234/sources/5678/findings/
|
3149
|
-
# externalSystems/jira
|
3722
|
+
# External System Name e.g. jira, demisto, etc. e.g.: `organizations/1234/
|
3723
|
+
# sources/5678/findings/123456/externalSystems/jira` `folders/1234/sources/5678/
|
3724
|
+
# findings/123456/externalSystems/jira` `projects/1234/sources/5678/findings/
|
3725
|
+
# 123456/externalSystems/jira`
|
3150
3726
|
# @param [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1ExternalSystem] google_cloud_securitycenter_v1_external_system_object
|
3151
3727
|
# @param [String] update_mask
|
3152
3728
|
# The FieldMask to use when updating the external system resource. If empty all
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-securitycenter_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-securitycenter_v1/v0.23.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-securitycenter_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|