Class: Google::Apis::SecuritypostureV1::ExtractPostureRequest
- Inherits:
-
Object
- Object
- Google::Apis::SecuritypostureV1::ExtractPostureRequest
- 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
Request message for ExtractPosture.
Instance Attribute Summary collapse
-
#posture_id ⇒ String
Required.
-
#workload ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExtractPostureRequest
constructor
A new instance of ExtractPostureRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExtractPostureRequest
Returns a new instance of ExtractPostureRequest.
325 326 327 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 325 def initialize(**args) update!(**args) end |
Instance Attribute Details
#posture_id ⇒ String
Required. An identifier for the posture.
Corresponds to the JSON property postureId
315 316 317 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 315 def posture_id @posture_id end |
#workload ⇒ String
Required. The organization, folder, or project from which policies are
extracted. Must be within the organization defined in parent. Use one of the
following formats: * organization/organization_number* `folder/`
folder_number * project/project_number`
Corresponds to the JSON propertyworkload`
323 324 325 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 323 def workload @workload end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
330 331 332 333 |
# File 'lib/google/apis/securityposture_v1/classes.rb', line 330 def update!(**args) @posture_id = args[:posture_id] if args.key?(:posture_id) @workload = args[:workload] if args.key?(:workload) end |