Skip to content

Commit 85dc40c

Browse files
feat: Automated regeneration of securitycenter v1 client (googleapis#22314)
Auto-created at 2025-03-30 10:38:59 +0000 using the toys pull request generator.
1 parent 8107302 commit 85dc40c

File tree

5 files changed

+92
-2
lines changed

5 files changed

+92
-2
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317156,6 +317156,8 @@
317156317156
"/securitycenter:v1/AccessReview/version": version
317157317157
"/securitycenter:v1/AdaptiveProtection": adaptive_protection
317158317158
"/securitycenter:v1/AdaptiveProtection/confidence": confidence
317159+
"/securitycenter:v1/AffectedResources": affected_resources
317160+
"/securitycenter:v1/AffectedResources/count": count
317159317161
"/securitycenter:v1/Allowed": allowed
317160317162
"/securitycenter:v1/Allowed/ipRules": ip_rules
317161317163
"/securitycenter:v1/Allowed/ipRules/ip_rule": ip_rule
@@ -317476,6 +317478,7 @@
317476317478
"/securitycenter:v1/File/size": size
317477317479
"/securitycenter:v1/Finding": finding
317478317480
"/securitycenter:v1/Finding/access": access
317481+
"/securitycenter:v1/Finding/affectedResources": affected_resources
317479317482
"/securitycenter:v1/Finding/application": application
317480317483
"/securitycenter:v1/Finding/attackExposure": attack_exposure
317481317484
"/securitycenter:v1/Finding/backupDisasterRecovery": backup_disaster_recovery
@@ -317785,6 +317788,8 @@
317785317788
"/securitycenter:v1/GoogleCloudSecuritycenterV2AccessReview/version": version
317786317789
"/securitycenter:v1/GoogleCloudSecuritycenterV2AdaptiveProtection": google_cloud_securitycenter_v2_adaptive_protection
317787317790
"/securitycenter:v1/GoogleCloudSecuritycenterV2AdaptiveProtection/confidence": confidence
317791+
"/securitycenter:v1/GoogleCloudSecuritycenterV2AffectedResources": google_cloud_securitycenter_v2_affected_resources
317792+
"/securitycenter:v1/GoogleCloudSecuritycenterV2AffectedResources/count": count
317788317793
"/securitycenter:v1/GoogleCloudSecuritycenterV2Allowed": google_cloud_securitycenter_v2_allowed
317789317794
"/securitycenter:v1/GoogleCloudSecuritycenterV2Allowed/ipRules": ip_rules
317790317795
"/securitycenter:v1/GoogleCloudSecuritycenterV2Allowed/ipRules/ip_rule": ip_rule
@@ -318012,6 +318017,7 @@
318012318017
"/securitycenter:v1/GoogleCloudSecuritycenterV2File/size": size
318013318018
"/securitycenter:v1/GoogleCloudSecuritycenterV2Finding": google_cloud_securitycenter_v2_finding
318014318019
"/securitycenter:v1/GoogleCloudSecuritycenterV2Finding/access": access
318020+
"/securitycenter:v1/GoogleCloudSecuritycenterV2Finding/affectedResources": affected_resources
318015318021
"/securitycenter:v1/GoogleCloudSecuritycenterV2Finding/application": application
318016318022
"/securitycenter:v1/GoogleCloudSecuritycenterV2Finding/attackExposure": attack_exposure
318017318023
"/securitycenter:v1/GoogleCloudSecuritycenterV2Finding/backupDisasterRecovery": backup_disaster_recovery

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.97.0 (2025-03-30)
4+
5+
* Regenerated from discovery document revision 20250326
6+
37
### v0.96.0 (2025-03-23)
48

59
* Regenerated from discovery document revision 20250315

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
@@ -211,6 +211,25 @@ def update!(**args)
211211
end
212212
end
213213

214+
# Details about resources affected by this finding.
215+
class AffectedResources
216+
include Google::Apis::Core::Hashable
217+
218+
# The count of resources affected by the finding.
219+
# Corresponds to the JSON property `count`
220+
# @return [Fixnum]
221+
attr_accessor :count
222+
223+
def initialize(**args)
224+
update!(**args)
225+
end
226+
227+
# Update properties of this object
228+
def update!(**args)
229+
@count = args[:count] if args.key?(:count)
230+
end
231+
end
232+
214233
# Allowed IP rule.
215234
class Allowed
216235
include Google::Apis::Core::Hashable
@@ -2618,6 +2637,11 @@ class Finding
26182637
# @return [Google::Apis::SecuritycenterV1::Access]
26192638
attr_accessor :access
26202639

2640+
# Details about resources affected by this finding.
2641+
# Corresponds to the JSON property `affectedResources`
2642+
# @return [Google::Apis::SecuritycenterV1::AffectedResources]
2643+
attr_accessor :affected_resources
2644+
26212645
# Represents an application associated with a finding.
26222646
# Corresponds to the JSON property `application`
26232647
# @return [Google::Apis::SecuritycenterV1::Application]
@@ -2984,6 +3008,7 @@ def initialize(**args)
29843008
# Update properties of this object
29853009
def update!(**args)
29863010
@access = args[:access] if args.key?(:access)
3011+
@affected_resources = args[:affected_resources] if args.key?(:affected_resources)
29873012
@application = args[:application] if args.key?(:application)
29883013
@attack_exposure = args[:attack_exposure] if args.key?(:attack_exposure)
29893014
@backup_disaster_recovery = args[:backup_disaster_recovery] if args.key?(:backup_disaster_recovery)
@@ -4612,6 +4637,25 @@ def update!(**args)
46124637
end
46134638
end
46144639

4640+
# Details about resources affected by this finding.
4641+
class GoogleCloudSecuritycenterV2AffectedResources
4642+
include Google::Apis::Core::Hashable
4643+
4644+
# The count of resources affected by the finding.
4645+
# Corresponds to the JSON property `count`
4646+
# @return [Fixnum]
4647+
attr_accessor :count
4648+
4649+
def initialize(**args)
4650+
update!(**args)
4651+
end
4652+
4653+
# Update properties of this object
4654+
def update!(**args)
4655+
@count = args[:count] if args.key?(:count)
4656+
end
4657+
end
4658+
46154659
# Allowed IP rule.
46164660
class GoogleCloudSecuritycenterV2Allowed
46174661
include Google::Apis::Core::Hashable
@@ -6358,6 +6402,11 @@ class GoogleCloudSecuritycenterV2Finding
63586402
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Access]
63596403
attr_accessor :access
63606404

6405+
# Details about resources affected by this finding.
6406+
# Corresponds to the JSON property `affectedResources`
6407+
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2AffectedResources]
6408+
attr_accessor :affected_resources
6409+
63616410
# Represents an application associated with a finding.
63626411
# Corresponds to the JSON property `application`
63636412
# @return [Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Application]
@@ -6738,6 +6787,7 @@ def initialize(**args)
67386787
# Update properties of this object
67396788
def update!(**args)
67406789
@access = args[:access] if args.key?(:access)
6790+
@affected_resources = args[:affected_resources] if args.key?(:affected_resources)
67416791
@application = args[:application] if args.key?(:application)
67426792
@attack_exposure = args[:attack_exposure] if args.key?(:attack_exposure)
67436793
@backup_disaster_recovery = args[:backup_disaster_recovery] if args.key?(:backup_disaster_recovery)

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.96.0"
19+
GEM_VERSION = "0.97.0"
2020

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

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250315"
25+
REVISION = "20250326"
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
@@ -40,6 +40,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
4040
include Google::Apis::Core::JsonObjectSupport
4141
end
4242

43+
class AffectedResources
44+
class Representation < Google::Apis::Core::JsonRepresentation; end
45+
46+
include Google::Apis::Core::JsonObjectSupport
47+
end
48+
4349
class Allowed
4450
class Representation < Google::Apis::Core::JsonRepresentation; end
4551

@@ -592,6 +598,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
592598
include Google::Apis::Core::JsonObjectSupport
593599
end
594600

601+
class GoogleCloudSecuritycenterV2AffectedResources
602+
class Representation < Google::Apis::Core::JsonRepresentation; end
603+
604+
include Google::Apis::Core::JsonObjectSupport
605+
end
606+
595607
class GoogleCloudSecuritycenterV2Allowed
596608
class Representation < Google::Apis::Core::JsonRepresentation; end
597609

@@ -1849,6 +1861,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
18491861
end
18501862
end
18511863

1864+
class AffectedResources
1865+
# @private
1866+
class Representation < Google::Apis::Core::JsonRepresentation
1867+
property :count, :numeric_string => true, as: 'count'
1868+
end
1869+
end
1870+
18521871
class Allowed
18531872
# @private
18541873
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2464,6 +2483,8 @@ class Finding
24642483
class Representation < Google::Apis::Core::JsonRepresentation
24652484
property :access, as: 'access', class: Google::Apis::SecuritycenterV1::Access, decorator: Google::Apis::SecuritycenterV1::Access::Representation
24662485

2486+
property :affected_resources, as: 'affectedResources', class: Google::Apis::SecuritycenterV1::AffectedResources, decorator: Google::Apis::SecuritycenterV1::AffectedResources::Representation
2487+
24672488
property :application, as: 'application', class: Google::Apis::SecuritycenterV1::Application, decorator: Google::Apis::SecuritycenterV1::Application::Representation
24682489

24692490
property :attack_exposure, as: 'attackExposure', class: Google::Apis::SecuritycenterV1::AttackExposure, decorator: Google::Apis::SecuritycenterV1::AttackExposure::Representation
@@ -2922,6 +2943,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
29222943
end
29232944
end
29242945

2946+
class GoogleCloudSecuritycenterV2AffectedResources
2947+
# @private
2948+
class Representation < Google::Apis::Core::JsonRepresentation
2949+
property :count, :numeric_string => true, as: 'count'
2950+
end
2951+
end
2952+
29252953
class GoogleCloudSecuritycenterV2Allowed
29262954
# @private
29272955
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3377,6 +3405,8 @@ class GoogleCloudSecuritycenterV2Finding
33773405
class Representation < Google::Apis::Core::JsonRepresentation
33783406
property :access, as: 'access', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Access, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Access::Representation
33793407

3408+
property :affected_resources, as: 'affectedResources', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2AffectedResources, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2AffectedResources::Representation
3409+
33803410
property :application, as: 'application', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Application, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Application::Representation
33813411

33823412
property :attack_exposure, as: 'attackExposure', class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2AttackExposure, decorator: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2AttackExposure::Representation

0 commit comments

Comments
 (0)