Class: OvirtSDK4::ExternalHostGroup

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (ExternalHostGroup) initialize(opts = {})

Creates a new instance of the OvirtSDK4::ExternalHostGroup class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :architecture_name (String)

    The value of attribute architecture_name.

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :domain_name (String)

    The value of attribute domain_name.

  • :external_host_provider (ExternalHostProvider, Hash)

    The value of attribute external_host_provider.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :operating_system_name (String)

    The value of attribute operating_system_name.

  • :subnet_name (String)

    The value of attribute subnet_name.



29233
29234
29235
29236
29237
29238
29239
29240
29241
29242
29243
29244
# File 'lib/ovirtsdk4/types.rb', line 29233

def initialize(opts = {})
  super(opts)
  self.architecture_name = opts[:architecture_name]
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.domain_name = opts[:domain_name]
  self.external_host_provider = opts[:external_host_provider]
  self.id = opts[:id]
  self.name = opts[:name]
  self.operating_system_name = opts[:operating_system_name]
  self.subnet_name = opts[:subnet_name]
end

Instance Method Details

- (String) architecture_name

Returns the value of the architecture_name attribute.

Returns:

  • (String)


29043
29044
29045
# File 'lib/ovirtsdk4/types.rb', line 29043

def architecture_name
  return @architecture_name
end

- (Object) architecture_name=(value)

Sets the value of the architecture_name attribute.

Parameters:

  • value (String)


29052
29053
29054
# File 'lib/ovirtsdk4/types.rb', line 29052

def architecture_name=(value)
  @architecture_name = value
end

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


29061
29062
29063
# File 'lib/ovirtsdk4/types.rb', line 29061

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


29070
29071
29072
# File 'lib/ovirtsdk4/types.rb', line 29070

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


29079
29080
29081
# File 'lib/ovirtsdk4/types.rb', line 29079

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


29088
29089
29090
# File 'lib/ovirtsdk4/types.rb', line 29088

def description=(value)
  @description = value
end

- (String) domain_name

Returns the value of the domain_name attribute.

Returns:

  • (String)


29097
29098
29099
# File 'lib/ovirtsdk4/types.rb', line 29097

def domain_name
  return @domain_name
end

- (Object) domain_name=(value)

Sets the value of the domain_name attribute.

Parameters:

  • value (String)


29106
29107
29108
# File 'lib/ovirtsdk4/types.rb', line 29106

def domain_name=(value)
  @domain_name = value
end

- (ExternalHostProvider) external_host_provider

Returns the value of the external_host_provider attribute.



29115
29116
29117
# File 'lib/ovirtsdk4/types.rb', line 29115

def external_host_provider
  return @external_host_provider
end

- (Object) external_host_provider=(value)

Sets the value of the external_host_provider attribute.

The value parameter can be an instance of OvirtSDK4::ExternalHostProvider or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:



29128
29129
29130
29131
29132
29133
# File 'lib/ovirtsdk4/types.rb', line 29128

def external_host_provider=(value)
  if value.is_a?(Hash)
    value = ExternalHostProvider.new(value)
  end
  @external_host_provider = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


29140
29141
29142
# File 'lib/ovirtsdk4/types.rb', line 29140

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


29149
29150
29151
# File 'lib/ovirtsdk4/types.rb', line 29149

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


29158
29159
29160
# File 'lib/ovirtsdk4/types.rb', line 29158

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


29167
29168
29169
# File 'lib/ovirtsdk4/types.rb', line 29167

def name=(value)
  @name = value
end

- (String) operating_system_name

Returns the value of the operating_system_name attribute.

Returns:

  • (String)


29176
29177
29178
# File 'lib/ovirtsdk4/types.rb', line 29176

def operating_system_name
  return @operating_system_name
end

- (Object) operating_system_name=(value)

Sets the value of the operating_system_name attribute.

Parameters:

  • value (String)


29185
29186
29187
# File 'lib/ovirtsdk4/types.rb', line 29185

def operating_system_name=(value)
  @operating_system_name = value
end

- (String) subnet_name

Returns the value of the subnet_name attribute.

Returns:

  • (String)


29194
29195
29196
# File 'lib/ovirtsdk4/types.rb', line 29194

def subnet_name
  return @subnet_name
end

- (Object) subnet_name=(value)

Sets the value of the subnet_name attribute.

Parameters:

  • value (String)


29203
29204
29205
# File 'lib/ovirtsdk4/types.rb', line 29203

def subnet_name=(value)
  @subnet_name = value
end