Class: Google::Apis::SecuritycenterV1beta2::SecurityPosture
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::SecurityPosture
- 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::PolicyDriftDetails>
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) ⇒ SecurityPosture
constructor
A new instance of SecurityPosture.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecurityPosture
Returns a new instance of SecurityPosture.
11191 11192 11193 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11191 def initialize(**args) update!(**args) end |
Instance Attribute Details
#changed_policy ⇒ String
Corresponds to the JSON property changedPolicy
11154 11155 11156 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11154 def changed_policy @changed_policy end |
#name ⇒ String
Corresponds to the JSON property name
11159 11160 11161 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11159 def name @name end |
#policy ⇒ String
Corresponds to the JSON property policy
11164 11165 11166 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11164 def policy @policy end |
#policy_drift_details ⇒ Array<Google::Apis::SecuritycenterV1beta2::PolicyDriftDetails>
Corresponds to the JSON property policyDriftDetails
11169 11170 11171 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11169 def policy_drift_details @policy_drift_details end |
#policy_set ⇒ String
Corresponds to the JSON property policySet
11174 11175 11176 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11174 def policy_set @policy_set end |
#posture_deployment ⇒ String
Corresponds to the JSON property postureDeployment
11179 11180 11181 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11179 def posture_deployment @posture_deployment end |
#posture_deployment_resource ⇒ String
Corresponds to the JSON property postureDeploymentResource
11184 11185 11186 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11184 def posture_deployment_resource @posture_deployment_resource end |
#revision_id ⇒ String
Corresponds to the JSON property revisionId
11189 11190 11191 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11189 def revision_id @revision_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11196 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 |