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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/deploymentmanager_v2beta/classes.rb,
generated/google/apis/deploymentmanager_v2beta/representations.rb,
generated/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TemplateContents

Returns a new instance of TemplateContents



2208
2209
2210
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 2208

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



2186
2187
2188
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 2186

def imports
  @imports
end

#interpreterString

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

Returns:

  • (String)


2191
2192
2193
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 2191

def interpreter
  @interpreter
end

#main_templateString

The filename of the mainTemplate Corresponds to the JSON property mainTemplate

Returns:

  • (String)


2196
2197
2198
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 2196

def main_template
  @main_template
end

#schemaString

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

Returns:

  • (String)


2201
2202
2203
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 2201

def schema
  @schema
end

#templateString

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

Returns:

  • (String)


2206
2207
2208
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 2206

def template
  @template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2213
2214
2215
2216
2217
2218
2219
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 2213

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