Skip to content

Commit f4dfbca

Browse files
feat: Automated regeneration of securitycenter v1beta1 client (#17135)
Auto-created at 2024-01-21 09:05:53 +0000 using the toys pull request generator.
1 parent f0fbf69 commit f4dfbca

File tree

5 files changed

+93
-9
lines changed

5 files changed

+93
-9
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280854,6 +280854,10 @@
280854280854
"/securitycenter:v1beta1/Policy/bindings/binding": binding
280855280855
"/securitycenter:v1beta1/Policy/etag": etag
280856280856
"/securitycenter:v1beta1/Policy/version": version
280857+
"/securitycenter:v1beta1/PolicyDriftDetails": policy_drift_details
280858+
"/securitycenter:v1beta1/PolicyDriftDetails/detectedValue": detected_value
280859+
"/securitycenter:v1beta1/PolicyDriftDetails/expectedValue": expected_value
280860+
"/securitycenter:v1beta1/PolicyDriftDetails/field": field
280857280861
"/securitycenter:v1beta1/Process": process
280858280862
"/securitycenter:v1beta1/Process/args": args
280859280863
"/securitycenter:v1beta1/Process/args/arg": arg
@@ -280899,6 +280903,10 @@
280899280903
"/securitycenter:v1beta1/SecurityPosture": security_posture
280900280904
"/securitycenter:v1beta1/SecurityPosture/changedPolicy": changed_policy
280901280905
"/securitycenter:v1beta1/SecurityPosture/name": name
280906+
"/securitycenter:v1beta1/SecurityPosture/policy": policy
280907+
"/securitycenter:v1beta1/SecurityPosture/policyDriftDetails": policy_drift_details
280908+
"/securitycenter:v1beta1/SecurityPosture/policyDriftDetails/policy_drift_detail": policy_drift_detail
280909+
"/securitycenter:v1beta1/SecurityPosture/policySet": policy_set
280902280910
"/securitycenter:v1beta1/SecurityPosture/postureDeployment": posture_deployment
280903280911
"/securitycenter:v1beta1/SecurityPosture/postureDeploymentResource": posture_deployment_resource
280904280912
"/securitycenter:v1beta1/SecurityPosture/revisionId": revision_id

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.69.0 (2024-01-21)
4+
5+
* Regenerated from discovery document revision 20240117
6+
37
### v0.68.0 (2024-01-07)
48

59
* Regenerated from discovery document revision 20240101

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

Lines changed: 60 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ class AttackExposure
307307

308308
# The resource name of the attack path simulation result that contains the
309309
# details regarding this attack exposure score. Example: organizations/123/
310-
# attackExposureResults/456
310+
# simulations/456/attackExposureResults/789
311311
# Corresponds to the JSON property `attackExposureResult`
312312
# @return [String]
313313
attr_accessor :attack_exposure_result
@@ -4173,6 +4173,41 @@ def update!(**args)
41734173
end
41744174
end
41754175

4176+
# The policy field that violates the deployed posture and its expected and and
4177+
# detected values.
4178+
class PolicyDriftDetails
4179+
include Google::Apis::Core::Hashable
4180+
4181+
# The detected value that violates the deployed posture, for example, `false` or
4182+
# `allowed_values=`"projects/22831892”``.
4183+
# Corresponds to the JSON property `detectedValue`
4184+
# @return [String]
4185+
attr_accessor :detected_value
4186+
4187+
# The value of this field that was configured in a posture, for example, `true`
4188+
# or `allowed_values=`"projects/29831892”``.
4189+
# Corresponds to the JSON property `expectedValue`
4190+
# @return [String]
4191+
attr_accessor :expected_value
4192+
4193+
# The name of the updated field, for example constraint.implementation.
4194+
# policy_rules[0].enforce
4195+
# Corresponds to the JSON property `field`
4196+
# @return [String]
4197+
attr_accessor :field
4198+
4199+
def initialize(**args)
4200+
update!(**args)
4201+
end
4202+
4203+
# Update properties of this object
4204+
def update!(**args)
4205+
@detected_value = args[:detected_value] if args.key?(:detected_value)
4206+
@expected_value = args[:expected_value] if args.key?(:expected_value)
4207+
@field = args[:field] if args.key?(:field)
4208+
end
4209+
end
4210+
41764211
# Represents an operating system process.
41774212
class Process
41784213
include Google::Apis::Core::Hashable
@@ -4488,26 +4523,41 @@ def update!(**args)
44884523
class SecurityPosture
44894524
include Google::Apis::Core::Hashable
44904525

4491-
# The name of the policy that has been updated, for example, `projects/`
4492-
# project_id`/policies/`constraint_name``.
4526+
# The name of the updated policy, for example, `projects/`project_id`/policies/`
4527+
# constraint_name``.
44934528
# Corresponds to the JSON property `changedPolicy`
44944529
# @return [String]
44954530
attr_accessor :changed_policy
44964531

4497-
# Name of the posture, for example, `organizations/`org_id`/locations/`location`/
4498-
# postures/`posture_name``.
4532+
# Name of the posture, for example, `CIS-Posture`.
44994533
# Corresponds to the JSON property `name`
45004534
# @return [String]
45014535
attr_accessor :name
45024536

4503-
# The name of the posture deployment, for example, `projects/`project_id`/
4537+
# The ID of the updated policy, for example, `compute-policy-1`.
4538+
# Corresponds to the JSON property `policy`
4539+
# @return [String]
4540+
attr_accessor :policy
4541+
4542+
# The details about a change in an updated policy that violates the deployed
4543+
# posture.
4544+
# Corresponds to the JSON property `policyDriftDetails`
4545+
# @return [Array<Google::Apis::SecuritycenterV1beta1::PolicyDriftDetails>]
4546+
attr_accessor :policy_drift_details
4547+
4548+
# The name of the updated policyset, for example, `cis-policyset`.
4549+
# Corresponds to the JSON property `policySet`
4550+
# @return [String]
4551+
attr_accessor :policy_set
4552+
4553+
# The name of the posture deployment, for example, `organizations/`org_id`/
45044554
# posturedeployments/`posture_deployment_id``.
45054555
# Corresponds to the JSON property `postureDeployment`
45064556
# @return [String]
45074557
attr_accessor :posture_deployment
45084558

45094559
# The project, folder, or organization on which the posture is deployed, for
4510-
# example, `projects/`project_id``.
4560+
# example, `projects/`project_number``.
45114561
# Corresponds to the JSON property `postureDeploymentResource`
45124562
# @return [String]
45134563
attr_accessor :posture_deployment_resource
@@ -4525,6 +4575,9 @@ def initialize(**args)
45254575
def update!(**args)
45264576
@changed_policy = args[:changed_policy] if args.key?(:changed_policy)
45274577
@name = args[:name] if args.key?(:name)
4578+
@policy = args[:policy] if args.key?(:policy)
4579+
@policy_drift_details = args[:policy_drift_details] if args.key?(:policy_drift_details)
4580+
@policy_set = args[:policy_set] if args.key?(:policy_set)
45284581
@posture_deployment = args[:posture_deployment] if args.key?(:posture_deployment)
45294582
@posture_deployment_resource = args[:posture_deployment_resource] if args.key?(:posture_deployment_resource)
45304583
@revision_id = args[:revision_id] if args.key?(:revision_id)

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.68.0"
19+
GEM_VERSION = "0.69.0"
2020

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

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

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
544544
include Google::Apis::Core::JsonObjectSupport
545545
end
546546

547+
class PolicyDriftDetails
548+
class Representation < Google::Apis::Core::JsonRepresentation; end
549+
550+
include Google::Apis::Core::JsonObjectSupport
551+
end
552+
547553
class Process
548554
class Representation < Google::Apis::Core::JsonRepresentation; end
549555

@@ -1646,6 +1652,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
16461652
end
16471653
end
16481654

1655+
class PolicyDriftDetails
1656+
# @private
1657+
class Representation < Google::Apis::Core::JsonRepresentation
1658+
property :detected_value, as: 'detectedValue'
1659+
property :expected_value, as: 'expectedValue'
1660+
property :field, as: 'field'
1661+
end
1662+
end
1663+
16491664
class Process
16501665
# @private
16511666
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1734,6 +1749,10 @@ class SecurityPosture
17341749
class Representation < Google::Apis::Core::JsonRepresentation
17351750
property :changed_policy, as: 'changedPolicy'
17361751
property :name, as: 'name'
1752+
property :policy, as: 'policy'
1753+
collection :policy_drift_details, as: 'policyDriftDetails', class: Google::Apis::SecuritycenterV1beta1::PolicyDriftDetails, decorator: Google::Apis::SecuritycenterV1beta1::PolicyDriftDetails::Representation
1754+
1755+
property :policy_set, as: 'policySet'
17371756
property :posture_deployment, as: 'postureDeployment'
17381757
property :posture_deployment_resource, as: 'postureDeploymentResource'
17391758
property :revision_id, as: 'revisionId'

0 commit comments

Comments
 (0)