@@ -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 )
0 commit comments