Class: IceGrid::ApplicationUpdateDescriptor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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.



1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
# File 'lib/IceGrid/Descriptor.rb', line 1419

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.



1485
1486
1487
# File 'lib/IceGrid/Descriptor.rb', line 1485

def description
  @description
end

#distribObject

Returns the value of attribute distrib.



1485
1486
1487
# File 'lib/IceGrid/Descriptor.rb', line 1485

def distrib
  @distrib
end

#nameObject

Returns the value of attribute name.



1485
1486
1487
# File 'lib/IceGrid/Descriptor.rb', line 1485

def name
  @name
end

#nodesObject

Returns the value of attribute nodes.



1485
1486
1487
# File 'lib/IceGrid/Descriptor.rb', line 1485

def nodes
  @nodes
end

#propertySetsObject

Returns the value of attribute propertySets.



1485
1486
1487
# File 'lib/IceGrid/Descriptor.rb', line 1485

def propertySets
  @propertySets
end

#removeNodesObject

Returns the value of attribute removeNodes.



1485
1486
1487
# File 'lib/IceGrid/Descriptor.rb', line 1485

def removeNodes
  @removeNodes
end

#removePropertySetsObject

Returns the value of attribute removePropertySets.



1485
1486
1487
# File 'lib/IceGrid/Descriptor.rb', line 1485

def removePropertySets
  @removePropertySets
end

#removeReplicaGroupsObject

Returns the value of attribute removeReplicaGroups.



1485
1486
1487
# File 'lib/IceGrid/Descriptor.rb', line 1485

def removeReplicaGroups
  @removeReplicaGroups
end

#removeServerTemplatesObject

Returns the value of attribute removeServerTemplates.



1485
1486
1487
# File 'lib/IceGrid/Descriptor.rb', line 1485

def removeServerTemplates
  @removeServerTemplates
end

#removeServiceTemplatesObject

Returns the value of attribute removeServiceTemplates.



1485
1486
1487
# File 'lib/IceGrid/Descriptor.rb', line 1485

def removeServiceTemplates
  @removeServiceTemplates
end

#removeVariablesObject

Returns the value of attribute removeVariables.



1485
1486
1487
# File 'lib/IceGrid/Descriptor.rb', line 1485

def removeVariables
  @removeVariables
end

#replicaGroupsObject

Returns the value of attribute replicaGroups.



1485
1486
1487
# File 'lib/IceGrid/Descriptor.rb', line 1485

def replicaGroups
  @replicaGroups
end

#serverTemplatesObject

Returns the value of attribute serverTemplates.



1485
1486
1487
# File 'lib/IceGrid/Descriptor.rb', line 1485

def serverTemplates
  @serverTemplates
end

#serviceTemplatesObject

Returns the value of attribute serviceTemplates.



1485
1486
1487
# File 'lib/IceGrid/Descriptor.rb', line 1485

def serviceTemplates
  @serviceTemplates
end

#variablesObject

Returns the value of attribute variables.



1485
1486
1487
# File 'lib/IceGrid/Descriptor.rb', line 1485

def variables
  @variables
end

Instance Method Details

#==(other) ⇒ Object



1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
# File 'lib/IceGrid/Descriptor.rb', line 1457

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)


1477
1478
1479
# File 'lib/IceGrid/Descriptor.rb', line 1477

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

#hashObject



1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
# File 'lib/IceGrid/Descriptor.rb', line 1437

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

#inspectObject



1481
1482
1483
# File 'lib/IceGrid/Descriptor.rb', line 1481

def inspect
    ::Ice::__stringify(self, T_ApplicationUpdateDescriptor)
end