Class: IceGrid::ApplicationUpdateDescriptor

Inherits:
Object
  • Object
show all
Includes:
Ice::Inspect_mixin
Defined in:
lib/IceGrid/Descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Ice::Inspect_mixin

#inspect

Constructor Details

#initialize(name = '', description = nil, distrib = nil, variables = nil, removeVariables = nil, propertySets = nil, removePropertySets = nil, replicaGroups = nil, removeReplicaGroups = nil, serverTemplates = nil, removeServerTemplates = nil, serviceTemplates = nil, removeServiceTemplates = nil, nodes = nil, removeNodes = nil) ⇒ ApplicationUpdateDescriptor

Returns a new instance of ApplicationUpdateDescriptor.



951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
# File 'lib/IceGrid/Descriptor.rb', line 951

def initialize(name='', description=nil, distrib=nil, variables=nil, removeVariables=nil, propertySets=nil, removePropertySets=nil, replicaGroups=nil, removeReplicaGroups=nil, serverTemplates=nil, removeServerTemplates=nil, serviceTemplates=nil, removeServiceTemplates=nil, nodes=nil, removeNodes=nil)
    @name = name
    @description = description
    @distrib = distrib
    @variables = variables
    @removeVariables = removeVariables
    @propertySets = propertySets
    @removePropertySets = removePropertySets
    @replicaGroups = replicaGroups
    @removeReplicaGroups = removeReplicaGroups
    @serverTemplates = serverTemplates
    @removeServerTemplates = removeServerTemplates
    @serviceTemplates = serviceTemplates
    @removeServiceTemplates = removeServiceTemplates
    @nodes = nodes
    @removeNodes = removeNodes
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



1013
1014
1015
# File 'lib/IceGrid/Descriptor.rb', line 1013

def description
  @description
end

#distribObject

Returns the value of attribute distrib.



1013
1014
1015
# File 'lib/IceGrid/Descriptor.rb', line 1013

def distrib
  @distrib
end

#nameObject

Returns the value of attribute name.



1013
1014
1015
# File 'lib/IceGrid/Descriptor.rb', line 1013

def name
  @name
end

#nodesObject

Returns the value of attribute nodes.



1013
1014
1015
# File 'lib/IceGrid/Descriptor.rb', line 1013

def nodes
  @nodes
end

#propertySetsObject

Returns the value of attribute propertySets.



1013
1014
1015
# File 'lib/IceGrid/Descriptor.rb', line 1013

def propertySets
  @propertySets
end

#removeNodesObject

Returns the value of attribute removeNodes.



1013
1014
1015
# File 'lib/IceGrid/Descriptor.rb', line 1013

def removeNodes
  @removeNodes
end

#removePropertySetsObject

Returns the value of attribute removePropertySets.



1013
1014
1015
# File 'lib/IceGrid/Descriptor.rb', line 1013

def removePropertySets
  @removePropertySets
end

#removeReplicaGroupsObject

Returns the value of attribute removeReplicaGroups.



1013
1014
1015
# File 'lib/IceGrid/Descriptor.rb', line 1013

def removeReplicaGroups
  @removeReplicaGroups
end

#removeServerTemplatesObject

Returns the value of attribute removeServerTemplates.



1013
1014
1015
# File 'lib/IceGrid/Descriptor.rb', line 1013

def removeServerTemplates
  @removeServerTemplates
end

#removeServiceTemplatesObject

Returns the value of attribute removeServiceTemplates.



1013
1014
1015
# File 'lib/IceGrid/Descriptor.rb', line 1013

def removeServiceTemplates
  @removeServiceTemplates
end

#removeVariablesObject

Returns the value of attribute removeVariables.



1013
1014
1015
# File 'lib/IceGrid/Descriptor.rb', line 1013

def removeVariables
  @removeVariables
end

#replicaGroupsObject

Returns the value of attribute replicaGroups.



1013
1014
1015
# File 'lib/IceGrid/Descriptor.rb', line 1013

def replicaGroups
  @replicaGroups
end

#serverTemplatesObject

Returns the value of attribute serverTemplates.



1013
1014
1015
# File 'lib/IceGrid/Descriptor.rb', line 1013

def serverTemplates
  @serverTemplates
end

#serviceTemplatesObject

Returns the value of attribute serviceTemplates.



1013
1014
1015
# File 'lib/IceGrid/Descriptor.rb', line 1013

def serviceTemplates
  @serviceTemplates
end

#variablesObject

Returns the value of attribute variables.



1013
1014
1015
# File 'lib/IceGrid/Descriptor.rb', line 1013

def variables
  @variables
end

Instance Method Details

#==(other) ⇒ Object



989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
# File 'lib/IceGrid/Descriptor.rb', line 989

def ==(other)
    return false if !other.is_a? ::IceGrid::ApplicationUpdateDescriptor or
        @name != other.name or
        @description != other.description or
        @distrib != other.distrib or
        @variables != other.variables or
        @removeVariables != other.removeVariables or
        @propertySets != other.propertySets or
        @removePropertySets != other.removePropertySets or
        @replicaGroups != other.replicaGroups or
        @removeReplicaGroups != other.removeReplicaGroups or
        @serverTemplates != other.serverTemplates or
        @removeServerTemplates != other.removeServerTemplates or
        @serviceTemplates != other.serviceTemplates or
        @removeServiceTemplates != other.removeServiceTemplates or
        @nodes != other.nodes or
        @removeNodes != other.removeNodes
    true
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


1009
1010
1011
# File 'lib/IceGrid/Descriptor.rb', line 1009

def eql?(other)
    return other.class == self.class && other == self
end

#hashObject



969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
# File 'lib/IceGrid/Descriptor.rb', line 969

def hash
    _h = 0
    _h = 5 * _h + @name.hash
    _h = 5 * _h + @description.hash
    _h = 5 * _h + @distrib.hash
    _h = 5 * _h + @variables.hash
    _h = 5 * _h + @removeVariables.hash
    _h = 5 * _h + @propertySets.hash
    _h = 5 * _h + @removePropertySets.hash
    _h = 5 * _h + @replicaGroups.hash
    _h = 5 * _h + @removeReplicaGroups.hash
    _h = 5 * _h + @serverTemplates.hash
    _h = 5 * _h + @removeServerTemplates.hash
    _h = 5 * _h + @serviceTemplates.hash
    _h = 5 * _h + @removeServiceTemplates.hash
    _h = 5 * _h + @nodes.hash
    _h = 5 * _h + @removeNodes.hash
    _h % 0x7fffffff
end