Class: Google::Apis::DeploymentmanagerAlpha::TemplateContents

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



2780
2781
2782
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 2780

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

Instance Attribute Details

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

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



2758
2759
2760
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 2758

def imports
  @imports
end

#interpreterString

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

Returns:

  • (String)


2763
2764
2765
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 2763

def interpreter
  @interpreter
end

#main_templateString

The filename of the mainTemplate Corresponds to the JSON property mainTemplate

Returns:

  • (String)


2768
2769
2770
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 2768

def main_template
  @main_template
end

#schemaString

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

Returns:

  • (String)


2773
2774
2775
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 2773

def schema
  @schema
end

#templateString

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

Returns:

  • (String)


2778
2779
2780
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 2778

def template
  @template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2785
2786
2787
2788
2789
2790
2791
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 2785

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