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

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

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



1980
1981
1982
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 1980

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



1963
1964
1965
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 1963

def imports
  @imports
end

#interpreterString

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

Returns:

  • (String)


1968
1969
1970
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 1968

def interpreter
  @interpreter
end

#schemaString

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

Returns:

  • (String)


1973
1974
1975
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 1973

def schema
  @schema
end

#templateString

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

Returns:

  • (String)


1978
1979
1980
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 1978

def template
  @template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1985
1986
1987
1988
1989
1990
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 1985

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