Class: Google::Apis::SecuritycenterV1::SecurityPosture

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPosture

Returns a new instance of SecurityPosture.



12747
12748
12749
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12747

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#changed_policyString

Corresponds to the JSON property changedPolicy

Returns:

  • (String)


12710
12711
12712
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12710

def changed_policy
  @changed_policy
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


12715
12716
12717
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12715

def name
  @name
end

#policyString

Corresponds to the JSON property policy

Returns:

  • (String)


12720
12721
12722
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12720

def policy
  @policy
end

#policy_drift_detailsArray<Google::Apis::SecuritycenterV1::PolicyDriftDetails>

Corresponds to the JSON property policyDriftDetails



12725
12726
12727
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12725

def policy_drift_details
  @policy_drift_details
end

#policy_setString

Corresponds to the JSON property policySet

Returns:

  • (String)


12730
12731
12732
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12730

def policy_set
  @policy_set
end

#posture_deploymentString

Corresponds to the JSON property postureDeployment

Returns:

  • (String)


12735
12736
12737
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12735

def posture_deployment
  @posture_deployment
end

#posture_deployment_resourceString

Corresponds to the JSON property postureDeploymentResource

Returns:

  • (String)


12740
12741
12742
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12740

def posture_deployment_resource
  @posture_deployment_resource
end

#revision_idString

Corresponds to the JSON property revisionId

Returns:

  • (String)


12745
12746
12747
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12745

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12752

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