Skip to content

Commit 73bef71

Browse files
feat: Automated regeneration of securitycenter v1beta2 client (googleapis#23203)
Auto-created at 2025-05-21 21:03:33 +0000 using the toys pull request generator.
1 parent 60face7 commit 73bef71

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
@@ -327730,10 +327730,14 @@
327730327730
"/securitycenter:v1beta2/File/contents": contents
327731327731
"/securitycenter:v1beta2/File/diskPath": disk_path
327732327732
"/securitycenter:v1beta2/File/hashedSize": hashed_size
327733+
"/securitycenter:v1beta2/File/operations": operations
327734+
"/securitycenter:v1beta2/File/operations/operation": operation
327733327735
"/securitycenter:v1beta2/File/partiallyHashed": partially_hashed
327734327736
"/securitycenter:v1beta2/File/path": path
327735327737
"/securitycenter:v1beta2/File/sha256": sha256
327736327738
"/securitycenter:v1beta2/File/size": size
327739+
"/securitycenter:v1beta2/FileOperation": file_operation
327740+
"/securitycenter:v1beta2/FileOperation/type": type
327737327741
"/securitycenter:v1beta2/Finding": finding
327738327742
"/securitycenter:v1beta2/Finding/access": access
327739327743
"/securitycenter:v1beta2/Finding/affectedResources": affected_resources
@@ -328264,10 +328268,14 @@
328264328268
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File/contents": contents
328265328269
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File/diskPath": disk_path
328266328270
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File/hashedSize": hashed_size
328271+
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File/operations": operations
328272+
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File/operations/operation": operation
328267328273
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File/partiallyHashed": partially_hashed
328268328274
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File/path": path
328269328275
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File/sha256": sha256
328270328276
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2File/size": size
328277+
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2FileOperation": google_cloud_securitycenter_v2_file_operation
328278+
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2FileOperation/type": type
328271328279
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding": google_cloud_securitycenter_v2_finding
328272328280
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/access": access
328273328281
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV2Finding/affectedResources": affected_resources

generated/google-apis-securitycenter_v1beta2/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_v1beta2
22

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

59
* Regenerated using generator version 0.17.0

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

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1906,6 +1906,11 @@ class File
19061906
# @return [Fixnum]
19071907
attr_accessor :hashed_size
19081908

1909+
# Operation(s) performed on a file.
1910+
# Corresponds to the JSON property `operations`
1911+
# @return [Array<Google::Apis::SecuritycenterV1beta2::FileOperation>]
1912+
attr_accessor :operations
1913+
19091914
# True when the hash covers only a prefix of the file.
19101915
# Corresponds to the JSON property `partiallyHashed`
19111916
# @return [Boolean]
@@ -1937,13 +1942,33 @@ def update!(**args)
19371942
@contents = args[:contents] if args.key?(:contents)
19381943
@disk_path = args[:disk_path] if args.key?(:disk_path)
19391944
@hashed_size = args[:hashed_size] if args.key?(:hashed_size)
1945+
@operations = args[:operations] if args.key?(:operations)
19401946
@partially_hashed = args[:partially_hashed] if args.key?(:partially_hashed)
19411947
@path = args[:path] if args.key?(:path)
19421948
@sha256 = args[:sha256] if args.key?(:sha256)
19431949
@size = args[:size] if args.key?(:size)
19441950
end
19451951
end
19461952

1953+
# Operation(s) performed on a file.
1954+
class FileOperation
1955+
include Google::Apis::Core::Hashable
1956+
1957+
# The type of the operation
1958+
# Corresponds to the JSON property `type`
1959+
# @return [String]
1960+
attr_accessor :type
1961+
1962+
def initialize(**args)
1963+
update!(**args)
1964+
end
1965+
1966+
# Update properties of this object
1967+
def update!(**args)
1968+
@type = args[:type] if args.key?(:type)
1969+
end
1970+
end
1971+
19471972
# Security Command Center finding. A finding is a record of assessment data like
19481973
# security, risk, health, or privacy, that is ingested into Security Command
19491974
# Center for presentation, notification, analysis, policy testing, and
@@ -5624,6 +5649,11 @@ class GoogleCloudSecuritycenterV2File
56245649
# @return [Fixnum]
56255650
attr_accessor :hashed_size
56265651

5652+
# Operation(s) performed on a file.
5653+
# Corresponds to the JSON property `operations`
5654+
# @return [Array<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2FileOperation>]
5655+
attr_accessor :operations
5656+
56275657
# True when the hash covers only a prefix of the file.
56285658
# Corresponds to the JSON property `partiallyHashed`
56295659
# @return [Boolean]
@@ -5655,13 +5685,33 @@ def update!(**args)
56555685
@contents = args[:contents] if args.key?(:contents)
56565686
@disk_path = args[:disk_path] if args.key?(:disk_path)
56575687
@hashed_size = args[:hashed_size] if args.key?(:hashed_size)
5688+
@operations = args[:operations] if args.key?(:operations)
56585689
@partially_hashed = args[:partially_hashed] if args.key?(:partially_hashed)
56595690
@path = args[:path] if args.key?(:path)
56605691
@sha256 = args[:sha256] if args.key?(:sha256)
56615692
@size = args[:size] if args.key?(:size)
56625693
end
56635694
end
56645695

5696+
# Operation(s) performed on a file.
5697+
class GoogleCloudSecuritycenterV2FileOperation
5698+
include Google::Apis::Core::Hashable
5699+
5700+
# The type of the operation
5701+
# Corresponds to the JSON property `type`
5702+
# @return [String]
5703+
attr_accessor :type
5704+
5705+
def initialize(**args)
5706+
update!(**args)
5707+
end
5708+
5709+
# Update properties of this object
5710+
def update!(**args)
5711+
@type = args[:type] if args.key?(:type)
5712+
end
5713+
end
5714+
56655715
# Security Command Center finding. A finding is a record of assessment data like
56665716
# security, risk, health, or privacy, that is ingested into Security Command
56675717
# Center for presentation, notification, analysis, policy testing, and

generated/google-apis-securitycenter_v1beta2/lib/google/apis/securitycenter_v1beta2/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 SecuritycenterV1beta2
1818
# Version of the google-apis-securitycenter_v1beta2 gem
19-
GEM_VERSION = "0.81.0"
19+
GEM_VERSION = "0.82.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_v1beta2/lib/google/apis/securitycenter_v1beta2/representations.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
316316
include Google::Apis::Core::JsonObjectSupport
317317
end
318318

319+
class FileOperation
320+
class Representation < Google::Apis::Core::JsonRepresentation; end
321+
322+
include Google::Apis::Core::JsonObjectSupport
323+
end
324+
319325
class Finding
320326
class Representation < Google::Apis::Core::JsonRepresentation; end
321327

@@ -766,6 +772,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
766772
include Google::Apis::Core::JsonObjectSupport
767773
end
768774

775+
class GoogleCloudSecuritycenterV2FileOperation
776+
class Representation < Google::Apis::Core::JsonRepresentation; end
777+
778+
include Google::Apis::Core::JsonObjectSupport
779+
end
780+
769781
class GoogleCloudSecuritycenterV2Finding
770782
class Representation < Google::Apis::Core::JsonRepresentation; end
771783

@@ -1945,13 +1957,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
19451957
property :disk_path, as: 'diskPath', class: Google::Apis::SecuritycenterV1beta2::DiskPath, decorator: Google::Apis::SecuritycenterV1beta2::DiskPath::Representation
19461958

19471959
property :hashed_size, :numeric_string => true, as: 'hashedSize'
1960+
collection :operations, as: 'operations', class: Google::Apis::SecuritycenterV1beta2::FileOperation, decorator: Google::Apis::SecuritycenterV1beta2::FileOperation::Representation
1961+
19481962
property :partially_hashed, as: 'partiallyHashed'
19491963
property :path, as: 'path'
19501964
property :sha256, as: 'sha256'
19511965
property :size, :numeric_string => true, as: 'size'
19521966
end
19531967
end
19541968

1969+
class FileOperation
1970+
# @private
1971+
class Representation < Google::Apis::Core::JsonRepresentation
1972+
property :type, as: 'type'
1973+
end
1974+
end
1975+
19551976
class Finding
19561977
# @private
19571978
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2852,13 +2873,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
28522873
property :disk_path, as: 'diskPath', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2DiskPath, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2DiskPath::Representation
28532874

28542875
property :hashed_size, :numeric_string => true, as: 'hashedSize'
2876+
collection :operations, as: 'operations', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2FileOperation, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2FileOperation::Representation
2877+
28552878
property :partially_hashed, as: 'partiallyHashed'
28562879
property :path, as: 'path'
28572880
property :sha256, as: 'sha256'
28582881
property :size, :numeric_string => true, as: 'size'
28592882
end
28602883
end
28612884

2885+
class GoogleCloudSecuritycenterV2FileOperation
2886+
# @private
2887+
class Representation < Google::Apis::Core::JsonRepresentation
2888+
property :type, as: 'type'
2889+
end
2890+
end
2891+
28622892
class GoogleCloudSecuritycenterV2Finding
28632893
# @private
28642894
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)