Class: RubyOctopus::Model::EnvironmentResource

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyoctopus/model/environmentresource.rb

Overview

A class modeling an Environment in Octopus.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute_values) ⇒ EnvironmentResource

Returns a new instance of EnvironmentResource.



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/rubyoctopus/model/environmentresource.rb', line 10

def initialize(attribute_values)
  @id = attribute_values["Id"]
  @space_id = attribute_values["SpaceId"]
  @name = attribute_values["Name"]
  @description = attribute_values["Description"]
  @sort_order = attribute_values["SortOrder"]
  @use_guided_failure = attribute_values["UseGuidedFailure"]
  @allow_dynamic_infrastructure = attribute_values["AllowDynamicInfrastructure"]
  @extension_settings = attribute_values["ExtensionSettings"]
  @links = attribute_values["Links"]
end

Instance Attribute Details

#allow_dynamic_infrastructureObject

Returns the value of attribute allow_dynamic_infrastructure.



7
8
9
# File 'lib/rubyoctopus/model/environmentresource.rb', line 7

def allow_dynamic_infrastructure
  @allow_dynamic_infrastructure
end

#descriptionObject

Returns the value of attribute description.



7
8
9
# File 'lib/rubyoctopus/model/environmentresource.rb', line 7

def description
  @description
end

#extension_settingsObject

Returns the value of attribute extension_settings.



7
8
9
# File 'lib/rubyoctopus/model/environmentresource.rb', line 7

def extension_settings
  @extension_settings
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/rubyoctopus/model/environmentresource.rb', line 7

def id
  @id
end

Returns the value of attribute links.



7
8
9
# File 'lib/rubyoctopus/model/environmentresource.rb', line 7

def links
  @links
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/rubyoctopus/model/environmentresource.rb', line 7

def name
  @name
end

#sort_orderObject

Returns the value of attribute sort_order.



7
8
9
# File 'lib/rubyoctopus/model/environmentresource.rb', line 7

def sort_order
  @sort_order
end

#space_idObject

Returns the value of attribute space_id.



7
8
9
# File 'lib/rubyoctopus/model/environmentresource.rb', line 7

def space_id
  @space_id
end

#use_guided_failureObject

Returns the value of attribute use_guided_failure.



7
8
9
# File 'lib/rubyoctopus/model/environmentresource.rb', line 7

def use_guided_failure
  @use_guided_failure
end