Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecurityPosture

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2SecurityPosture

Returns a new instance of GoogleCloudSecuritycenterV2SecurityPosture.



9762
9763
9764
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9762

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

Instance Attribute Details

#changed_policyString

Corresponds to the JSON property changedPolicy

Returns:

  • (String)


9725
9726
9727
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9725

def changed_policy
  @changed_policy
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


9730
9731
9732
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9730

def name
  @name
end

#policyString

Corresponds to the JSON property policy

Returns:

  • (String)


9735
9736
9737
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9735

def policy
  @policy
end

#policy_drift_detailsArray<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2PolicyDriftDetails>

Corresponds to the JSON property policyDriftDetails



9740
9741
9742
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9740

def policy_drift_details
  @policy_drift_details
end

#policy_setString

Corresponds to the JSON property policySet

Returns:

  • (String)


9745
9746
9747
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9745

def policy_set
  @policy_set
end

#posture_deploymentString

Corresponds to the JSON property postureDeployment

Returns:

  • (String)


9750
9751
9752
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9750

def posture_deployment
  @posture_deployment
end

#posture_deployment_resourceString

Corresponds to the JSON property postureDeploymentResource

Returns:

  • (String)


9755
9756
9757
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9755

def posture_deployment_resource
  @posture_deployment_resource
end

#revision_idString

Corresponds to the JSON property revisionId

Returns:

  • (String)


9760
9761
9762
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9760

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9767

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