Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2SecurityPosture

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) ⇒ GoogleCloudSecuritycenterV2SecurityPosture

Returns a new instance of GoogleCloudSecuritycenterV2SecurityPosture.



9885
9886
9887
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 9885

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

Instance Attribute Details

#changed_policyString

Corresponds to the JSON property changedPolicy

Returns:

  • (String)


9848
9849
9850
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 9848

def changed_policy
  @changed_policy
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


9853
9854
9855
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 9853

def name
  @name
end

#policyString

Corresponds to the JSON property policy

Returns:

  • (String)


9858
9859
9860
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 9858

def policy
  @policy
end

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

Corresponds to the JSON property policyDriftDetails



9863
9864
9865
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 9863

def policy_drift_details
  @policy_drift_details
end

#policy_setString

Corresponds to the JSON property policySet

Returns:

  • (String)


9868
9869
9870
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 9868

def policy_set
  @policy_set
end

#posture_deploymentString

Corresponds to the JSON property postureDeployment

Returns:

  • (String)


9873
9874
9875
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 9873

def posture_deployment
  @posture_deployment
end

#posture_deployment_resourceString

Corresponds to the JSON property postureDeploymentResource

Returns:

  • (String)


9878
9879
9880
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 9878

def posture_deployment_resource
  @posture_deployment_resource
end

#revision_idString

Corresponds to the JSON property revisionId

Returns:

  • (String)


9883
9884
9885
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 9883

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 9890

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