Class: Google::Apis::SecuritypostureV1::PostureDetails

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

Overview

Details of a posture deployment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PostureDetails

Returns a new instance of PostureDetails.



1387
1388
1389
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1387

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

Instance Attribute Details

#policy_setString

The identifier for the PolicySet that the relevant policy belongs to. Corresponds to the JSON property policySet

Returns:

  • (String)


1361
1362
1363
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1361

def policy_set
  @policy_set
end

#postureString

The posture used in the deployment, in the format organizations/organization /locations/global/postures/posture_id`. Corresponds to the JSON propertyposture`

Returns:

  • (String)


1367
1368
1369
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1367

def posture
  @posture
end

#posture_deploymentString

The name of the posture deployment, in the format organizations/organization /locations/global/postureDeployments/deployment_id`. Corresponds to the JSON propertypostureDeployment`

Returns:

  • (String)


1373
1374
1375
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1373

def posture_deployment
  @posture_deployment
end

#posture_deployment_target_resourceString

The organization, folder, or project where the posture is deployed. Uses one of the following formats: * organizations/organization_number* `folders/` folder_number * projects/project_number` Corresponds to the JSON propertypostureDeploymentTargetResource`

Returns:

  • (String)


1380
1381
1382
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1380

def posture_deployment_target_resource
  @posture_deployment_target_resource
end

#posture_revision_idString

The revision ID of the posture used in the deployment. Corresponds to the JSON property postureRevisionId

Returns:

  • (String)


1385
1386
1387
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1385

def posture_revision_id
  @posture_revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1392
1393
1394
1395
1396
1397
1398
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1392

def update!(**args)
  @policy_set = args[:policy_set] if args.key?(:policy_set)
  @posture = args[:posture] if args.key?(:posture)
  @posture_deployment = args[:posture_deployment] if args.key?(:posture_deployment)
  @posture_deployment_target_resource = args[:posture_deployment_target_resource] if args.key?(:posture_deployment_target_resource)
  @posture_revision_id = args[:posture_revision_id] if args.key?(:posture_revision_id)
end