Class: OvirtSDK4::OpenStackImageProvider
- Inherits:
-
OpenStackProvider
- Object
- Struct
- Identified
- ExternalProvider
- OpenStackProvider
- OvirtSDK4::OpenStackImageProvider
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#authentication_url ⇒ String
Returns the value of the
authentication_url
attribute. -
#authentication_url=(value) ⇒ Object
Sets the value of the
authentication_url
attribute. -
#certificates ⇒ Array<Certificate>
Returns the value of the
certificates
attribute. -
#certificates=(list) ⇒ Object
Sets the value of the
certificates
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#images ⇒ Array<OpenStackImage>
Returns the value of the
images
attribute. -
#images=(list) ⇒ Object
Sets the value of the
images
attribute. -
#initialize(opts = {}) ⇒ OpenStackImageProvider
constructor
Creates a new instance of the OpenStackImageProvider class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#password ⇒ String
Returns the value of the
password
attribute. -
#password=(value) ⇒ Object
Sets the value of the
password
attribute. -
#properties ⇒ Array<Property>
Returns the value of the
properties
attribute. -
#properties=(list) ⇒ Object
Sets the value of the
properties
attribute. -
#requires_authentication ⇒ Boolean
Returns the value of the
requires_authentication
attribute. -
#requires_authentication=(value) ⇒ Object
Sets the value of the
requires_authentication
attribute. -
#tenant_name ⇒ String
Returns the value of the
tenant_name
attribute. -
#tenant_name=(value) ⇒ Object
Sets the value of the
tenant_name
attribute. -
#url ⇒ String
Returns the value of the
url
attribute. -
#url=(value) ⇒ Object
Sets the value of the
url
attribute. -
#username ⇒ String
Returns the value of the
username
attribute. -
#username=(value) ⇒ Object
Sets the value of the
username
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ OpenStackImageProvider
Creates a new instance of the OvirtSDK4::OpenStackImageProvider class.
53189 53190 53191 53192 53193 |
# File 'lib/ovirtsdk4/types.rb', line 53189 def initialize(opts = {}) super(opts) self.certificates = opts[:certificates] self.images = opts[:images] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
53198 53199 53200 53201 53202 |
# File 'lib/ovirtsdk4/types.rb', line 53198 def ==(other) super && @certificates == other.certificates && @images == other.images end |
#authentication_url ⇒ String
Returns the value of the authentication_url
attribute.
52902 52903 52904 |
# File 'lib/ovirtsdk4/types.rb', line 52902 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
52911 52912 52913 |
# File 'lib/ovirtsdk4/types.rb', line 52911 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
52920 52921 52922 |
# File 'lib/ovirtsdk4/types.rb', line 52920 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
52929 52930 52931 52932 52933 52934 52935 52936 52937 52938 52939 |
# File 'lib/ovirtsdk4/types.rb', line 52929 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 |
#comment ⇒ String
Returns the value of the comment
attribute.
52946 52947 52948 |
# File 'lib/ovirtsdk4/types.rb', line 52946 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
52955 52956 52957 |
# File 'lib/ovirtsdk4/types.rb', line 52955 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
52964 52965 52966 |
# File 'lib/ovirtsdk4/types.rb', line 52964 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
52973 52974 52975 |
# File 'lib/ovirtsdk4/types.rb', line 52973 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
53207 53208 53209 53210 53211 |
# File 'lib/ovirtsdk4/types.rb', line 53207 def hash super + @certificates.hash + @images.hash end |
#id ⇒ String
Returns the value of the id
attribute.
52982 52983 52984 |
# File 'lib/ovirtsdk4/types.rb', line 52982 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
52991 52992 52993 |
# File 'lib/ovirtsdk4/types.rb', line 52991 def id=(value) @id = value end |
#images ⇒ Array<OpenStackImage>
Returns the value of the images
attribute.
53000 53001 53002 |
# File 'lib/ovirtsdk4/types.rb', line 53000 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images
attribute.
53009 53010 53011 53012 53013 53014 53015 53016 53017 53018 53019 |
# File 'lib/ovirtsdk4/types.rb', line 53009 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 |
#name ⇒ String
Returns the value of the name
attribute.
53026 53027 53028 |
# File 'lib/ovirtsdk4/types.rb', line 53026 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
53035 53036 53037 |
# File 'lib/ovirtsdk4/types.rb', line 53035 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
53044 53045 53046 |
# File 'lib/ovirtsdk4/types.rb', line 53044 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
53053 53054 53055 |
# File 'lib/ovirtsdk4/types.rb', line 53053 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
53062 53063 53064 |
# File 'lib/ovirtsdk4/types.rb', line 53062 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
53071 53072 53073 53074 53075 53076 53077 53078 53079 53080 53081 |
# File 'lib/ovirtsdk4/types.rb', line 53071 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 |
#requires_authentication ⇒ Boolean
Returns the value of the requires_authentication
attribute.
53088 53089 53090 |
# File 'lib/ovirtsdk4/types.rb', line 53088 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
53097 53098 53099 |
# File 'lib/ovirtsdk4/types.rb', line 53097 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name
attribute.
53106 53107 53108 |
# File 'lib/ovirtsdk4/types.rb', line 53106 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name
attribute.
53115 53116 53117 |
# File 'lib/ovirtsdk4/types.rb', line 53115 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url
attribute.
53124 53125 53126 |
# File 'lib/ovirtsdk4/types.rb', line 53124 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
53133 53134 53135 |
# File 'lib/ovirtsdk4/types.rb', line 53133 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
53142 53143 53144 |
# File 'lib/ovirtsdk4/types.rb', line 53142 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
53151 53152 53153 |
# File 'lib/ovirtsdk4/types.rb', line 53151 def username=(value) @username = value end |