Class: OvirtSDK4::ExternalComputeResource

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

- (ExternalComputeResource) initialize(opts = {})

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

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :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.

  • :provider (String)

    The value of attribute provider.

  • :url (String)

    The value of attribute url.

  • :user (String)

    The value of attribute user.



28661
28662
28663
28664
28665
28666
28667
28668
28669
28670
28671
# File 'lib/ovirtsdk4/types.rb', line 28661

def initialize(opts = {})
  super(opts)
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.external_host_provider = opts[:external_host_provider]
  self.id = opts[:id]
  self.name = opts[:name]
  self.provider = opts[:provider]
  self.url = opts[:url]
  self.user = opts[:user]
end

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


28491
28492
28493
# File 'lib/ovirtsdk4/types.rb', line 28491

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


28500
28501
28502
# File 'lib/ovirtsdk4/types.rb', line 28500

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


28509
28510
28511
# File 'lib/ovirtsdk4/types.rb', line 28509

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


28518
28519
28520
# File 'lib/ovirtsdk4/types.rb', line 28518

def description=(value)
  @description = value
end

- (ExternalHostProvider) external_host_provider

Returns the value of the external_host_provider attribute.



28527
28528
28529
# File 'lib/ovirtsdk4/types.rb', line 28527

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:



28540
28541
28542
28543
28544
28545
# File 'lib/ovirtsdk4/types.rb', line 28540

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)


28552
28553
28554
# File 'lib/ovirtsdk4/types.rb', line 28552

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


28561
28562
28563
# File 'lib/ovirtsdk4/types.rb', line 28561

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


28570
28571
28572
# File 'lib/ovirtsdk4/types.rb', line 28570

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


28579
28580
28581
# File 'lib/ovirtsdk4/types.rb', line 28579

def name=(value)
  @name = value
end

- (String) provider

Returns the value of the provider attribute.

Returns:

  • (String)


28588
28589
28590
# File 'lib/ovirtsdk4/types.rb', line 28588

def provider
  return @provider
end

- (Object) provider=(value)

Sets the value of the provider attribute.

Parameters:

  • value (String)


28597
28598
28599
# File 'lib/ovirtsdk4/types.rb', line 28597

def provider=(value)
  @provider = value
end

- (String) url

Returns the value of the url attribute.

Returns:

  • (String)


28606
28607
28608
# File 'lib/ovirtsdk4/types.rb', line 28606

def url
  return @url
end

- (Object) url=(value)

Sets the value of the url attribute.

Parameters:

  • value (String)


28615
28616
28617
# File 'lib/ovirtsdk4/types.rb', line 28615

def url=(value)
  @url = value
end

- (String) user

Returns the value of the user attribute.

Returns:

  • (String)


28624
28625
28626
# File 'lib/ovirtsdk4/types.rb', line 28624

def user
  return @user
end

- (Object) user=(value)

Sets the value of the user attribute.

Parameters:

  • value (String)


28633
28634
28635
# File 'lib/ovirtsdk4/types.rb', line 28633

def user=(value)
  @user = value
end