Skip to content

Commit 3f81878

Browse files
feat: Automated regeneration of securitycenter v1beta1 client (#23214)
Auto-created at 2025-05-21 21:32:30 +0000 using the toys pull request generator.
1 parent 907c7a9 commit 3f81878

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
@@ -326169,10 +326169,14 @@
326169326169
"/securitycenter:v1beta1/File/contents": contents
326170326170
"/securitycenter:v1beta1/File/diskPath": disk_path
326171326171
"/securitycenter:v1beta1/File/hashedSize": hashed_size
326172+
"/securitycenter:v1beta1/File/operations": operations
326173+
"/securitycenter:v1beta1/File/operations/operation": operation
326172326174
"/securitycenter:v1beta1/File/partiallyHashed": partially_hashed
326173326175
"/securitycenter:v1beta1/File/path": path
326174326176
"/securitycenter:v1beta1/File/sha256": sha256
326175326177
"/securitycenter:v1beta1/File/size": size
326178+
"/securitycenter:v1beta1/FileOperation": file_operation
326179+
"/securitycenter:v1beta1/FileOperation/type": type
326176326180
"/securitycenter:v1beta1/Finding": finding
326177326181
"/securitycenter:v1beta1/Finding/access": access
326178326182
"/securitycenter:v1beta1/Finding/affectedResources": affected_resources
@@ -326723,10 +326727,14 @@
326723326727
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV2File/contents": contents
326724326728
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV2File/diskPath": disk_path
326725326729
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV2File/hashedSize": hashed_size
326730+
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV2File/operations": operations
326731+
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV2File/operations/operation": operation
326726326732
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV2File/partiallyHashed": partially_hashed
326727326733
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV2File/path": path
326728326734
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV2File/sha256": sha256
326729326735
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV2File/size": size
326736+
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV2FileOperation": google_cloud_securitycenter_v2_file_operation
326737+
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV2FileOperation/type": type
326730326738
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV2Finding": google_cloud_securitycenter_v2_finding
326731326739
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV2Finding/access": access
326732326740
"/securitycenter:v1beta1/GoogleCloudSecuritycenterV2Finding/affectedResources": affected_resources

generated/google-apis-securitycenter_v1beta1/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_v1beta1
22

3+
### v0.90.0 (2025-05-21)
4+
5+
* Regenerated from discovery document revision 20250519
6+
37
### v0.89.0 (2025-05-04)
48

59
* Regenerated using generator version 0.17.0

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

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2042,6 +2042,11 @@ class File
20422042
# @return [Fixnum]
20432043
attr_accessor :hashed_size
20442044

2045+
# Operation(s) performed on a file.
2046+
# Corresponds to the JSON property `operations`
2047+
# @return [Array<Google::Apis::SecuritycenterV1beta1::FileOperation>]
2048+
attr_accessor :operations
2049+
20452050
# True when the hash covers only a prefix of the file.
20462051
# Corresponds to the JSON property `partiallyHashed`
20472052
# @return [Boolean]
@@ -2073,13 +2078,33 @@ def update!(**args)
20732078
@contents = args[:contents] if args.key?(:contents)
20742079
@disk_path = args[:disk_path] if args.key?(:disk_path)
20752080
@hashed_size = args[:hashed_size] if args.key?(:hashed_size)
2081+
@operations = args[:operations] if args.key?(:operations)
20762082
@partially_hashed = args[:partially_hashed] if args.key?(:partially_hashed)
20772083
@path = args[:path] if args.key?(:path)
20782084
@sha256 = args[:sha256] if args.key?(:sha256)
20792085
@size = args[:size] if args.key?(:size)
20802086
end
20812087
end
20822088

2089+
# Operation(s) performed on a file.
2090+
class FileOperation
2091+
include Google::Apis::Core::Hashable
2092+
2093+
# The type of the operation
2094+
# Corresponds to the JSON property `type`
2095+
# @return [String]
2096+
attr_accessor :type
2097+
2098+
def initialize(**args)
2099+
update!(**args)
2100+
end
2101+
2102+
# Update properties of this object
2103+
def update!(**args)
2104+
@type = args[:type] if args.key?(:type)
2105+
end
2106+
end
2107+
20832108
# Security Command Center finding. A finding is a record of assessment data like
20842109
# security, risk, health, or privacy, that is ingested into Security Command
20852110
# Center for presentation, notification, analysis, policy testing, and
@@ -5940,6 +5965,11 @@ class GoogleCloudSecuritycenterV2File
59405965
# @return [Fixnum]
59415966
attr_accessor :hashed_size
59425967

5968+
# Operation(s) performed on a file.
5969+
# Corresponds to the JSON property `operations`
5970+
# @return [Array<Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2FileOperation>]
5971+
attr_accessor :operations
5972+
59435973
# True when the hash covers only a prefix of the file.
59445974
# Corresponds to the JSON property `partiallyHashed`
59455975
# @return [Boolean]
@@ -5971,13 +6001,33 @@ def update!(**args)
59716001
@contents = args[:contents] if args.key?(:contents)
59726002
@disk_path = args[:disk_path] if args.key?(:disk_path)
59736003
@hashed_size = args[:hashed_size] if args.key?(:hashed_size)
6004+
@operations = args[:operations] if args.key?(:operations)
59746005
@partially_hashed = args[:partially_hashed] if args.key?(:partially_hashed)
59756006
@path = args[:path] if args.key?(:path)
59766007
@sha256 = args[:sha256] if args.key?(:sha256)
59776008
@size = args[:size] if args.key?(:size)
59786009
end
59796010
end
59806011

6012+
# Operation(s) performed on a file.
6013+
class GoogleCloudSecuritycenterV2FileOperation
6014+
include Google::Apis::Core::Hashable
6015+
6016+
# The type of the operation
6017+
# Corresponds to the JSON property `type`
6018+
# @return [String]
6019+
attr_accessor :type
6020+
6021+
def initialize(**args)
6022+
update!(**args)
6023+
end
6024+
6025+
# Update properties of this object
6026+
def update!(**args)
6027+
@type = args[:type] if args.key?(:type)
6028+
end
6029+
end
6030+
59816031
# Security Command Center finding. A finding is a record of assessment data like
59826032
# security, risk, health, or privacy, that is ingested into Security Command
59836033
# Center for presentation, notification, analysis, policy testing, and

generated/google-apis-securitycenter_v1beta1/lib/google/apis/securitycenter_v1beta1/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 SecuritycenterV1beta1
1818
# Version of the google-apis-securitycenter_v1beta1 gem
19-
GEM_VERSION = "0.89.0"
19+
GEM_VERSION = "0.90.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 = "20250411"
25+
REVISION = "20250519"
2626
end
2727
end
2828
end

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
334334
include Google::Apis::Core::JsonObjectSupport
335335
end
336336

337+
class FileOperation
338+
class Representation < Google::Apis::Core::JsonRepresentation; end
339+
340+
include Google::Apis::Core::JsonObjectSupport
341+
end
342+
337343
class Finding
338344
class Representation < Google::Apis::Core::JsonRepresentation; end
339345

@@ -808,6 +814,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
808814
include Google::Apis::Core::JsonObjectSupport
809815
end
810816

817+
class GoogleCloudSecuritycenterV2FileOperation
818+
class Representation < Google::Apis::Core::JsonRepresentation; end
819+
820+
include Google::Apis::Core::JsonObjectSupport
821+
end
822+
811823
class GoogleCloudSecuritycenterV2Finding
812824
class Representation < Google::Apis::Core::JsonRepresentation; end
813825

@@ -2098,13 +2110,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
20982110
property :disk_path, as: 'diskPath', class: Google::Apis::SecuritycenterV1beta1::DiskPath, decorator: Google::Apis::SecuritycenterV1beta1::DiskPath::Representation
20992111

21002112
property :hashed_size, :numeric_string => true, as: 'hashedSize'
2113+
collection :operations, as: 'operations', class: Google::Apis::SecuritycenterV1beta1::FileOperation, decorator: Google::Apis::SecuritycenterV1beta1::FileOperation::Representation
2114+
21012115
property :partially_hashed, as: 'partiallyHashed'
21022116
property :path, as: 'path'
21032117
property :sha256, as: 'sha256'
21042118
property :size, :numeric_string => true, as: 'size'
21052119
end
21062120
end
21072121

2122+
class FileOperation
2123+
# @private
2124+
class Representation < Google::Apis::Core::JsonRepresentation
2125+
property :type, as: 'type'
2126+
end
2127+
end
2128+
21082129
class Finding
21092130
# @private
21102131
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3045,13 +3066,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
30453066
property :disk_path, as: 'diskPath', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2DiskPath, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2DiskPath::Representation
30463067

30473068
property :hashed_size, :numeric_string => true, as: 'hashedSize'
3069+
collection :operations, as: 'operations', class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2FileOperation, decorator: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2FileOperation::Representation
3070+
30483071
property :partially_hashed, as: 'partiallyHashed'
30493072
property :path, as: 'path'
30503073
property :sha256, as: 'sha256'
30513074
property :size, :numeric_string => true, as: 'size'
30523075
end
30533076
end
30543077

3078+
class GoogleCloudSecuritycenterV2FileOperation
3079+
# @private
3080+
class Representation < Google::Apis::Core::JsonRepresentation
3081+
property :type, as: 'type'
3082+
end
3083+
end
3084+
30553085
class GoogleCloudSecuritycenterV2Finding
30563086
# @private
30573087
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)