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.



9371
9372
9373
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9371

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

Instance Attribute Details

#changed_policyString

Corresponds to the JSON property changedPolicy

Returns:

  • (String)


9334
9335
9336
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9334

def changed_policy
  @changed_policy
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


9339
9340
9341
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9339

def name
  @name
end

#policyString

Corresponds to the JSON property policy

Returns:

  • (String)


9344
9345
9346
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9344

def policy
  @policy
end

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

Corresponds to the JSON property policyDriftDetails



9349
9350
9351
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9349

def policy_drift_details
  @policy_drift_details
end

#policy_setString

Corresponds to the JSON property policySet

Returns:

  • (String)


9354
9355
9356
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9354

def policy_set
  @policy_set
end

#posture_deploymentString

Corresponds to the JSON property postureDeployment

Returns:

  • (String)


9359
9360
9361
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9359

def posture_deployment
  @posture_deployment
end

#posture_deployment_resourceString

Corresponds to the JSON property postureDeploymentResource

Returns:

  • (String)


9364
9365
9366
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9364

def posture_deployment_resource
  @posture_deployment_resource
end

#revision_idString

Corresponds to the JSON property revisionId

Returns:

  • (String)


9369
9370
9371
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9369

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9376

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