Class: Google::Apis::SecuritypostureV1::ExtractPostureRequest

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

Request message for ExtractPosture.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idString

Required. An identifier for the posture. Corresponds to the JSON property postureId

Returns:

  • (String)


315
316
317
# File 'lib/google/apis/securityposture_v1/classes.rb', line 315

def posture_id
  @posture_id
end

#workloadString

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`

Returns:

  • (String)


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