Class: Google::Apis::SecuritypostureV1::PostureDetails
- Inherits:
-
Object
- Object
- Google::Apis::SecuritypostureV1::PostureDetails
- 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
-
#policy_set ⇒ String
The identifier for the PolicySet that the relevant policy belongs to.
-
#posture ⇒ String
The posture used in the deployment, in the format
organizations/organization/locations/global/postures/posture_id``. -
#posture_deployment ⇒ String
The name of the posture deployment, in the format
organizations/organization/locations/global/postureDeployments/deployment_id``. -
#posture_deployment_target_resource ⇒ String
The organization, folder, or project where the posture is deployed.
-
#posture_revision_id ⇒ String
The revision ID of the posture used in the deployment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PostureDetails
constructor
A new instance of PostureDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_set ⇒ String
The identifier for the PolicySet that the relevant policy belongs to.
Corresponds to the JSON property policySet
1361 1362 1363 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1361 def policy_set @policy_set end |
#posture ⇒ String
The posture used in the deployment, in the format organizations/organization
/locations/global/postures/posture_id`.
Corresponds to the JSON propertyposture`
1367 1368 1369 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1367 def posture @posture end |
#posture_deployment ⇒ String
The name of the posture deployment, in the format organizations/organization
/locations/global/postureDeployments/deployment_id`.
Corresponds to the JSON propertypostureDeployment`
1373 1374 1375 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 1373 def posture_deployment @posture_deployment end |
#posture_deployment_target_resource ⇒ String
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`
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_id ⇒ String
The revision ID of the posture used in the deployment.
Corresponds to the JSON property postureRevisionId
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 |