Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecurityPosture
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecurityPosture
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb
Instance Attribute Summary collapse
-
#changed_policy ⇒ String
Corresponds to the JSON property
changedPolicy. -
#name ⇒ String
Corresponds to the JSON property
name. -
#policy ⇒ String
Corresponds to the JSON property
policy. -
#policy_drift_details ⇒ Array<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2PolicyDriftDetails>
Corresponds to the JSON property
policyDriftDetails. -
#policy_set ⇒ String
Corresponds to the JSON property
policySet. -
#posture_deployment ⇒ String
Corresponds to the JSON property
postureDeployment. -
#posture_deployment_resource ⇒ String
Corresponds to the JSON property
postureDeploymentResource. -
#revision_id ⇒ String
Corresponds to the JSON property
revisionId.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2SecurityPosture
constructor
A new instance of GoogleCloudSecuritycenterV2SecurityPosture.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2SecurityPosture
Returns a new instance of GoogleCloudSecuritycenterV2SecurityPosture.
9359 9360 9361 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9359 def initialize(**args) update!(**args) end |
Instance Attribute Details
#changed_policy ⇒ String
Corresponds to the JSON property changedPolicy
9322 9323 9324 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9322 def changed_policy @changed_policy end |
#name ⇒ String
Corresponds to the JSON property name
9327 9328 9329 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9327 def name @name end |
#policy ⇒ String
Corresponds to the JSON property policy
9332 9333 9334 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9332 def policy @policy end |
#policy_drift_details ⇒ Array<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2PolicyDriftDetails>
Corresponds to the JSON property policyDriftDetails
9337 9338 9339 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9337 def policy_drift_details @policy_drift_details end |
#policy_set ⇒ String
Corresponds to the JSON property policySet
9342 9343 9344 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9342 def policy_set @policy_set end |
#posture_deployment ⇒ String
Corresponds to the JSON property postureDeployment
9347 9348 9349 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9347 def posture_deployment @posture_deployment end |
#posture_deployment_resource ⇒ String
Corresponds to the JSON property postureDeploymentResource
9352 9353 9354 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9352 def posture_deployment_resource @posture_deployment_resource end |
#revision_id ⇒ String
Corresponds to the JSON property revisionId
9357 9358 9359 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9357 def revision_id @revision_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9364 def update!(**args) @changed_policy = args[:changed_policy] if args.key?(:changed_policy) @name = args[:name] if args.key?(:name) @policy = args[:policy] if args.key?(:policy) @policy_drift_details = args[:policy_drift_details] if args.key?(:policy_drift_details) @policy_set = args[:policy_set] if args.key?(:policy_set) @posture_deployment = args[:posture_deployment] if args.key?(:posture_deployment) @posture_deployment_resource = args[:posture_deployment_resource] if args.key?(:posture_deployment_resource) @revision_id = args[:revision_id] if args.key?(:revision_id) end |