Class: Google::Apis::DeploymentmanagerV2beta::TemplateContents

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

Overview

Files that make up the template contents of a template type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TemplateContents

Returns a new instance of TemplateContents.



2028
2029
2030
# File 'lib/google/apis/deploymentmanager_v2beta/classes.rb', line 2028

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

Instance Attribute Details

#importsArray<Google::Apis::DeploymentmanagerV2beta::ImportFile>

Import files referenced by the main template. Corresponds to the JSON property imports



2006
2007
2008
# File 'lib/google/apis/deploymentmanager_v2beta/classes.rb', line 2006

def imports
  @imports
end

#interpreterString

Which interpreter (python or jinja) should be used during expansion. Corresponds to the JSON property interpreter

Returns:

  • (String)


2011
2012
2013
# File 'lib/google/apis/deploymentmanager_v2beta/classes.rb', line 2011

def interpreter
  @interpreter
end

#main_templateString

The filename of the mainTemplate Corresponds to the JSON property mainTemplate

Returns:

  • (String)


2016
2017
2018
# File 'lib/google/apis/deploymentmanager_v2beta/classes.rb', line 2016

def main_template
  @main_template
end

#schemaString

The contents of the template schema. Corresponds to the JSON property schema

Returns:

  • (String)


2021
2022
2023
# File 'lib/google/apis/deploymentmanager_v2beta/classes.rb', line 2021

def schema
  @schema
end

#templateString

The contents of the main template file. Corresponds to the JSON property template

Returns:

  • (String)


2026
2027
2028
# File 'lib/google/apis/deploymentmanager_v2beta/classes.rb', line 2026

def template
  @template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2033
2034
2035
2036
2037
2038
2039
# File 'lib/google/apis/deploymentmanager_v2beta/classes.rb', line 2033

def update!(**args)
  @imports = args[:imports] if args.key?(:imports)
  @interpreter = args[:interpreter] if args.key?(:interpreter)
  @main_template = args[:main_template] if args.key?(:main_template)
  @schema = args[:schema] if args.key?(:schema)
  @template = args[:template] if args.key?(:template)
end