Class: OvirtSDK4::GraphicsConsole

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

- (GraphicsConsole) initialize(opts = {})

Creates a new instance of the OvirtSDK4::GraphicsConsole 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):

  • :address (String)

    The value of attribute address.

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :instance_type (InstanceType, Hash)

    The value of attribute instance_type.

  • :name (String)

    The value of attribute name.

  • :port (Integer)

    The value of attribute port.

  • :protocol (GraphicsType)

    The value of attribute protocol.

  • :template (Template, Hash)

    The value of attribute template.

  • :tls_port (Integer)

    The value of attribute tls_port.

  • :vm (Vm, Hash)

    The value of attribute vm.



31961
31962
31963
31964
31965
31966
31967
31968
31969
31970
31971
31972
31973
31974
# File 'lib/ovirtsdk4/types.rb', line 31961

def initialize(opts = {})
  super(opts)
  self.address = opts[:address]
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.id = opts[:id]
  self.instance_type = opts[:instance_type]
  self.name = opts[:name]
  self.port = opts[:port]
  self.protocol = opts[:protocol]
  self.template = opts[:template]
  self.tls_port = opts[:tls_port]
  self.vm = opts[:vm]
end

Instance Method Details

- (String) address

Returns the value of the address attribute.

Returns:

  • (String)


31717
31718
31719
# File 'lib/ovirtsdk4/types.rb', line 31717

def address
  return @address
end

- (Object) address=(value)

Sets the value of the address attribute.

Parameters:

  • value (String)


31726
31727
31728
# File 'lib/ovirtsdk4/types.rb', line 31726

def address=(value)
  @address = value
end

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


31735
31736
31737
# File 'lib/ovirtsdk4/types.rb', line 31735

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


31744
31745
31746
# File 'lib/ovirtsdk4/types.rb', line 31744

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


31753
31754
31755
# File 'lib/ovirtsdk4/types.rb', line 31753

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


31762
31763
31764
# File 'lib/ovirtsdk4/types.rb', line 31762

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


31771
31772
31773
# File 'lib/ovirtsdk4/types.rb', line 31771

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


31780
31781
31782
# File 'lib/ovirtsdk4/types.rb', line 31780

def id=(value)
  @id = value
end

- (InstanceType) instance_type

Returns the value of the instance_type attribute.

Returns:



31789
31790
31791
# File 'lib/ovirtsdk4/types.rb', line 31789

def instance_type
  return @instance_type
end

- (Object) instance_type=(value)

Sets the value of the instance_type attribute.

The value parameter can be an instance of InstanceType 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:



31802
31803
31804
31805
31806
31807
# File 'lib/ovirtsdk4/types.rb', line 31802

def instance_type=(value)
  if value.is_a?(Hash)
    value = InstanceType.new(value)
  end
  @instance_type = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


31814
31815
31816
# File 'lib/ovirtsdk4/types.rb', line 31814

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


31823
31824
31825
# File 'lib/ovirtsdk4/types.rb', line 31823

def name=(value)
  @name = value
end

- (Integer) port

Returns the value of the port attribute.

Returns:

  • (Integer)


31832
31833
31834
# File 'lib/ovirtsdk4/types.rb', line 31832

def port
  return @port
end

- (Object) port=(value)

Sets the value of the port attribute.

Parameters:

  • value (Integer)


31841
31842
31843
# File 'lib/ovirtsdk4/types.rb', line 31841

def port=(value)
  @port = value
end

- (GraphicsType) protocol

Returns the value of the protocol attribute.

Returns:



31850
31851
31852
# File 'lib/ovirtsdk4/types.rb', line 31850

def protocol
  return @protocol
end

- (Object) protocol=(value)

Sets the value of the protocol attribute.

Parameters:



31859
31860
31861
# File 'lib/ovirtsdk4/types.rb', line 31859

def protocol=(value)
  @protocol = value
end

- (Template) template

Returns the value of the template attribute.

Returns:



31868
31869
31870
# File 'lib/ovirtsdk4/types.rb', line 31868

def template
  return @template
end

- (Object) template=(value)

Sets the value of the template attribute.

The value parameter can be an instance of Template 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:



31881
31882
31883
31884
31885
31886
# File 'lib/ovirtsdk4/types.rb', line 31881

def template=(value)
  if value.is_a?(Hash)
    value = Template.new(value)
  end
  @template = value
end

- (Integer) tls_port

Returns the value of the tls_port attribute.

Returns:

  • (Integer)


31893
31894
31895
# File 'lib/ovirtsdk4/types.rb', line 31893

def tls_port
  return @tls_port
end

- (Object) tls_port=(value)

Sets the value of the tls_port attribute.

Parameters:

  • value (Integer)


31902
31903
31904
# File 'lib/ovirtsdk4/types.rb', line 31902

def tls_port=(value)
  @tls_port = value
end

- (Vm) vm

Returns the value of the vm attribute.

Returns:



31911
31912
31913
# File 'lib/ovirtsdk4/types.rb', line 31911

def vm
  return @vm
end

- (Object) vm=(value)

Sets the value of the vm attribute.

The value parameter can be an instance of Vm 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:

  • value (Vm, Hash)


31924
31925
31926
31927
31928
31929
# File 'lib/ovirtsdk4/types.rb', line 31924

def vm=(value)
  if value.is_a?(Hash)
    value = Vm.new(value)
  end
  @vm = value
end