Skip to content

Commit 81c2c54

Browse files
feat: Automated regeneration of securitycenter v1 client (googleapis#23187)
Auto-created at 2025-05-21 20:26:38 +0000 using the toys pull request generator.
1 parent 409bf9b commit 81c2c54

File tree

5 files changed

+94
-2
lines changed

5 files changed

+94
-2
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323805,10 +323805,14 @@
323805323805
"/securitycenter:v1/File/contents": contents
323806323806
"/securitycenter:v1/File/diskPath": disk_path
323807323807
"/securitycenter:v1/File/hashedSize": hashed_size
323808+
"/securitycenter:v1/File/operations": operations
323809+
"/securitycenter:v1/File/operations/operation": operation
323808323810
"/securitycenter:v1/File/partiallyHashed": partially_hashed
323809323811
"/securitycenter:v1/File/path": path
323810323812
"/securitycenter:v1/File/sha256": sha256
323811323813
"/securitycenter:v1/File/size": size
323814+
"/securitycenter:v1/FileOperation": file_operation
323815+
"/securitycenter:v1/FileOperation/type": type
323812323816
"/securitycenter:v1/Finding": finding
323813323817
"/securitycenter:v1/Finding/access": access
323814323818
"/securitycenter:v1/Finding/affectedResources": affected_resources
@@ -324344,10 +324348,14 @@
324344324348
"/securitycenter:v1/GoogleCloudSecuritycenterV2File/contents": contents
324345324349
"/securitycenter:v1/GoogleCloudSecuritycenterV2File/diskPath": disk_path
324346324350
"/securitycenter:v1/GoogleCloudSecuritycenterV2File/hashedSize": hashed_size
324351+
"/securitycenter:v1/GoogleCloudSecuritycenterV2File/operations": operations
324352+
"/securitycenter:v1/GoogleCloudSecuritycenterV2File/operations/operation": operation
324347324353
"/securitycenter:v1/GoogleCloudSecuritycenterV2File/partiallyHashed": partially_hashed
324348324354
"/securitycenter:v1/GoogleCloudSecuritycenterV2File/path": path
324349324355
"/securitycenter:v1/GoogleCloudSecuritycenterV2File/sha256": sha256
324350324356
"/securitycenter:v1/GoogleCloudSecuritycenterV2File/size": size
324357+
"/securitycenter:v1/GoogleCloudSecuritycenterV2FileOperation": google_cloud_securitycenter_v2_file_operation
324358+
"/securitycenter:v1/GoogleCloudSecuritycenterV2FileOperation/type": type
324351324359
"/securitycenter:v1/GoogleCloudSecuritycenterV2Finding": google_cloud_securitycenter_v2_finding
324352324360
"/securitycenter:v1/GoogleCloudSecuritycenterV2Finding/access": access
324353324361
"/securitycenter:v1/GoogleCloudSecuritycenterV2Finding/affectedResources": affected_resources

generated/google-apis-securitycenter_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-securitycenter_v1
22

3+
### v0.100.0 (2025-05-21)
4+
5+
* Regenerated from discovery document revision 20250519
6+
37
### v0.99.0 (2025-05-18)
48

59
* Regenerated from discovery document revision 20250509

generated/google-apis-securitycenter_v1/lib/google/apis/securitycenter_v1/classes.rb

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2525,6 +2525,11 @@ class File
25252525
# @return [Fixnum]
25262526
attr_accessor :hashed_size
25272527

2528+
# Operation(s) performed on a file.
2529+
# Corresponds to the JSON property `operations`
2530+
# @return [Array<Google::Apis::SecuritycenterV1::FileOperation>]
2531+
attr_accessor :operations
2532+
25282533
# True when the hash covers only a prefix of the file.
25292534
# Corresponds to the JSON property `partiallyHashed`
25302535
# @return [Boolean]
@@ -2556,13 +2561,33 @@ def update!(**args)
25562561
@contents = args[:contents] if args.key?(:contents)
25572562
@disk_path = args[:disk_path] if args.key?(:disk_path)
25582563
@hashed_size = args[:hashed_size] if args.key?(:hashed_size)
2564+
@operations = args[:operations] if args.key?(:operations)
25592565
@partially_hashed = args[:partially_hashed] if args.key?(:partially_hashed)
25602566
@path = args[:path] if args.key?(:path)
25612567
@sha256 = args[:sha256] if args.key?(:sha256)
25622568
@size = args[:size] if args.key?(:size)
25632569
end
25642570
end
25652571

2572+
# Operation(s) performed on a file.
2573+
class FileOperation
2574+
include Google::Apis::Core::Hashable
2575+
2576+
# The type of the operation
2577+
# Corresponds to the JSON property `type`
2578+
# @return [String]
2579+
attr_accessor :type
2580+
2581+
def initialize(**args)
2582+
update!(**args)
2583+
end
2584+
2585+
# Update properties of this object
2586+
def update!(**args)
2587+
@type = args[:type] if args.key?(:type)
2588+
end
2589+
end
2590+
25662591
# Security Command Center finding. A finding is a record of assessment data like
25672592
# security, risk, health, or privacy, that is ingested into Security Command
25682593
# Center for presentation, notification, analysis, policy testing, and
@@ -6290,6 +6315,11 @@ class GoogleCloudSecuritycenterV2File
62906315
# @return [Fixnum]
62916316
attr_accessor :hashed_size
62926317

6318+
# Operation(s) performed on a file.
6319+
# Corresponds to the JSON property `operations`
6320+
# @return [Array<Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2FileOperation>]
6321+
attr_accessor :operations
6322+
62936323
# True when the hash covers only a prefix of the file.
62946324
# Corresponds to the JSON property `partiallyHashed`
62956325
# @return [Boolean]
@@ -6321,13 +6351,33 @@ def update!(**args)
63216351
@contents = args[:contents] if args.key?(:contents)
63226352
@disk_path = args[:disk_path] if args.key?(:disk_path)
63236353
@hashed_size = args[:hashed_size] if args.key?(:hashed_size)
6354+
@operations = args[:operations] if args.key?(:operations)
63246355
@partially_hashed = args[:partially_hashed] if args.key?(:partially_hashed)
63256356
@path = args[:path] if args.key?(:path)
63266357
@sha256 = args[:sha256] if args.key?(:sha256)
63276358
@size = args[:size] if args.key?(:size)
63286359
end
63296360
end
63306361

6362+
# Operation(s) performed on a file.
6363+
class GoogleCloudSecuritycenterV2FileOperation
6364+
include Google::Apis::Core::Hashable
6365+
6366+
# The type of the operation
6367+
# Corresponds to the JSON property `type`
6368+
# @return [String]
6369+
attr_accessor :type
6370+
6371+
def initialize(**args)
6372+
update!(**args)
6373+
end
6374+
6375+
# Update properties of this object
6376+
def update!(**args)
6377+
@type = args[:type] if args.key?(:type)
6378+
end
6379+
end
6380+
63316381
# Security Command Center finding. A finding is a record of assessment data like
63326382
# security, risk, health, or privacy, that is ingested into Security Command
63336383
# Center for presentation, notification, analysis, policy testing, and

generated/google-apis-securitycenter_v1/lib/google/apis/securitycenter_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module SecuritycenterV1
1818
# Version of the google-apis-securitycenter_v1 gem
19-
GEM_VERSION = "0.99.0"
19+
GEM_VERSION = "0.100.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.17.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250509"
25+
REVISION = "20250519"
2626
end
2727
end
2828
end

generated/google-apis-securitycenter_v1/lib/google/apis/securitycenter_v1/representations.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
400400
include Google::Apis::Core::JsonObjectSupport
401401
end
402402

403+
class FileOperation
404+
class Representation < Google::Apis::Core::JsonRepresentation; end
405+
406+
include Google::Apis::Core::JsonObjectSupport
407+
end
408+
403409
class Finding
404410
class Representation < Google::Apis::Core::JsonRepresentation; end
405411

@@ -862,6 +868,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
862868
include Google::Apis::Core::JsonObjectSupport
863869
end
864870

871+
class GoogleCloudSecuritycenterV2FileOperation
872+
class Representation < Google::Apis::Core::JsonRepresentation; end
873+
874+
include Google::Apis::Core::JsonObjectSupport
875+
end
876+
865877
class GoogleCloudSecuritycenterV2Finding
866878
class Representation < Google::Apis::Core::JsonRepresentation; end
867879

@@ -2451,13 +2463,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
24512463
property :disk_path, as: 'diskPath', class: Google::Apis::SecuritycenterV1::DiskPath, decorator: Google::Apis::SecuritycenterV1::DiskPath::Representation
24522464

24532465
property :hashed_size, :numeric_string => true, as: 'hashedSize'
2466+
collection :operations, as: 'operations', class: Google::Apis::SecuritycenterV1::FileOperation, decorator: Google::Apis::SecuritycenterV1::FileOperation::Representation
2467+
24542468
property :partially_hashed, as: 'partiallyHashed'
24552469
property :path, as: 'path'
24562470
property :sha256, as: 'sha256'
24572471
property :size, :numeric_string => true, as: 'size'
24582472
end
24592473
end
24602474

2475+
class FileOperation
2476+
# @private
2477+
class Representation < Google::Apis::Core::JsonRepresentation
2478+
property :type, as: 'type'
2479+
end
2480+
end
2481+
24612482
class Finding
24622483
# @private
24632484
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3373,13 +3394,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
33733394
property :disk_path, as: 'diskPath', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2DiskPath, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2DiskPath::Representation
33743395

33753396
property :hashed_size, :numeric_string => true, as: 'hashedSize'
3397+
collection :operations, as: 'operations', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2FileOperation, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2FileOperation::Representation
3398+
33763399
property :partially_hashed, as: 'partiallyHashed'
33773400
property :path, as: 'path'
33783401
property :sha256, as: 'sha256'
33793402
property :size, :numeric_string => true, as: 'size'
33803403
end
33813404
end
33823405

3406+
class GoogleCloudSecuritycenterV2FileOperation
3407+
# @private
3408+
class Representation < Google::Apis::Core::JsonRepresentation
3409+
property :type, as: 'type'
3410+
end
3411+
end
3412+
33833413
class GoogleCloudSecuritycenterV2Finding
33843414
# @private
33853415
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)