Class: Google::Apis::SecuritypostureV1::IaC

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 an infrastructure-as-code (IaC) configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IaC

Returns a new instance of IaC.



563
564
565
# File 'lib/google/apis/securityposture_v1/classes.rb', line 563

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

Instance Attribute Details

#tf_planString

Optional. A Terraform plan file, formatted as a stringified JSON object. To learn how to generate a Terraform plan file in JSON format, see JSON output format in the Terraform documentation. Corresponds to the JSON property tfPlan NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


561
562
563
# File 'lib/google/apis/securityposture_v1/classes.rb', line 561

def tf_plan
  @tf_plan
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



568
569
570
# File 'lib/google/apis/securityposture_v1/classes.rb', line 568

def update!(**args)
  @tf_plan = args[:tf_plan] if args.key?(:tf_plan)
end