Class: OvirtSDK4::OpenStackImageProvider

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

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (OpenStackImageProvider) initialize(opts = {})

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

  • :authentication_url (String)

    The value of attribute authentication_url.

  • :certificates (Array<Certificate>, Array<Hash>)

    The values of attribute certificates.

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :images (Array<OpenStackImage>, Array<Hash>)

    The values of attribute images.

  • :name (String)

    The value of attribute name.

  • :password (String)

    The value of attribute password.

  • :properties (Array<Property>, Array<Hash>)

    The values of attribute properties.

  • :requires_authentication (Boolean)

    The value of attribute requires_authentication.

  • :tenant_name (String)

    The value of attribute tenant_name.

  • :url (String)

    The value of attribute url.

  • :username (String)

    The value of attribute username.



42901
42902
42903
42904
42905
42906
42907
42908
42909
42910
42911
42912
42913
42914
42915
42916
# File 'lib/ovirtsdk4/types.rb', line 42901

def initialize(opts = {})
  super(opts)
  self.authentication_url = opts[:authentication_url]
  self.certificates = opts[:certificates]
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.id = opts[:id]
  self.images = opts[:images]
  self.name = opts[:name]
  self.password = opts[:password]
  self.properties = opts[:properties]
  self.requires_authentication = opts[:requires_authentication]
  self.tenant_name = opts[:tenant_name]
  self.url = opts[:url]
  self.username = opts[:username]
end

Instance Method Details

- (String) authentication_url

Returns the value of the authentication_url attribute.

Returns:

  • (String)


42617
42618
42619
# File 'lib/ovirtsdk4/types.rb', line 42617

def authentication_url
  return @authentication_url
end

- (Object) authentication_url=(value)

Sets the value of the authentication_url attribute.

Parameters:

  • value (String)


42626
42627
42628
# File 'lib/ovirtsdk4/types.rb', line 42626

def authentication_url=(value)
  @authentication_url = value
end

- (Array<Certificate>) certificates

Returns the value of the certificates attribute.

Returns:



42635
42636
42637
# File 'lib/ovirtsdk4/types.rb', line 42635

def certificates
  return @certificates
end

- (Object) certificates=(list)

Sets the value of the certificates attribute.

Parameters:



42643
42644
42645
42646
42647
42648
42649
42650
42651
42652
42653
# File 'lib/ovirtsdk4/types.rb', line 42643

def certificates=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Certificate.new(value)
      end
    end
  end
  @certificates = list
end

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


42660
42661
42662
# File 'lib/ovirtsdk4/types.rb', line 42660

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


42669
42670
42671
# File 'lib/ovirtsdk4/types.rb', line 42669

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


42678
42679
42680
# File 'lib/ovirtsdk4/types.rb', line 42678

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


42687
42688
42689
# File 'lib/ovirtsdk4/types.rb', line 42687

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


42696
42697
42698
# File 'lib/ovirtsdk4/types.rb', line 42696

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


42705
42706
42707
# File 'lib/ovirtsdk4/types.rb', line 42705

def id=(value)
  @id = value
end

- (Array<OpenStackImage>) images

Returns the value of the images attribute.

Returns:



42714
42715
42716
# File 'lib/ovirtsdk4/types.rb', line 42714

def images
  return @images
end

- (Object) images=(list)

Sets the value of the images attribute.

Parameters:



42722
42723
42724
42725
42726
42727
42728
42729
42730
42731
42732
# File 'lib/ovirtsdk4/types.rb', line 42722

def images=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = OpenStackImage.new(value)
      end
    end
  end
  @images = list
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


42739
42740
42741
# File 'lib/ovirtsdk4/types.rb', line 42739

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


42748
42749
42750
# File 'lib/ovirtsdk4/types.rb', line 42748

def name=(value)
  @name = value
end

- (String) password

Returns the value of the password attribute.

Returns:

  • (String)


42757
42758
42759
# File 'lib/ovirtsdk4/types.rb', line 42757

def password
  return @password
end

- (Object) password=(value)

Sets the value of the password attribute.

Parameters:

  • value (String)


42766
42767
42768
# File 'lib/ovirtsdk4/types.rb', line 42766

def password=(value)
  @password = value
end

- (Array<Property>) properties

Returns the value of the properties attribute.

Returns:



42775
42776
42777
# File 'lib/ovirtsdk4/types.rb', line 42775

def properties
  return @properties
end

- (Object) properties=(list)

Sets the value of the properties attribute.

Parameters:



42783
42784
42785
42786
42787
42788
42789
42790
42791
42792
42793
# File 'lib/ovirtsdk4/types.rb', line 42783

def properties=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Property.new(value)
      end
    end
  end
  @properties = list
end

- (Boolean) requires_authentication

Returns the value of the requires_authentication attribute.

Returns:

  • (Boolean)


42800
42801
42802
# File 'lib/ovirtsdk4/types.rb', line 42800

def requires_authentication
  return @requires_authentication
end

- (Object) requires_authentication=(value)

Sets the value of the requires_authentication attribute.

Parameters:

  • value (Boolean)


42809
42810
42811
# File 'lib/ovirtsdk4/types.rb', line 42809

def requires_authentication=(value)
  @requires_authentication = value
end

- (String) tenant_name

Returns the value of the tenant_name attribute.

Returns:

  • (String)


42818
42819
42820
# File 'lib/ovirtsdk4/types.rb', line 42818

def tenant_name
  return @tenant_name
end

- (Object) tenant_name=(value)

Sets the value of the tenant_name attribute.

Parameters:

  • value (String)


42827
42828
42829
# File 'lib/ovirtsdk4/types.rb', line 42827

def tenant_name=(value)
  @tenant_name = value
end

- (String) url

Returns the value of the url attribute.

Returns:

  • (String)


42836
42837
42838
# File 'lib/ovirtsdk4/types.rb', line 42836

def url
  return @url
end

- (Object) url=(value)

Sets the value of the url attribute.

Parameters:

  • value (String)


42845
42846
42847
# File 'lib/ovirtsdk4/types.rb', line 42845

def url=(value)
  @url = value
end

- (String) username

Returns the value of the username attribute.

Returns:

  • (String)


42854
42855
42856
# File 'lib/ovirtsdk4/types.rb', line 42854

def username
  return @username
end

- (Object) username=(value)

Sets the value of the username attribute.

Parameters:

  • value (String)


42863
42864
42865
# File 'lib/ovirtsdk4/types.rb', line 42863

def username=(value)
  @username = value
end