Class: OvirtSDK4::TemplateVersion
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::TemplateVersion
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Template) base_template
Returns the value of the
base_template
attribute. -
- (Object) base_template=(value)
Sets the value of the
base_template
attribute. -
- (TemplateVersion) initialize(opts = {})
constructor
Creates a new instance of the TemplateVersion class.
-
- (String) version_name
Returns the value of the
version_name
attribute. -
- (Object) version_name=(value)
Sets the value of the
version_name
attribute. -
- (Integer) version_number
Returns the value of the
version_number
attribute. -
- (Object) version_number=(value)
Sets the value of the
version_number
attribute.
Methods included from Type
Constructor Details
- (TemplateVersion) initialize(opts = {})
Creates a new instance of the OvirtSDK4::TemplateVersion class.
16941 16942 16943 16944 16945 16946 |
# File 'lib/ovirtsdk4/types.rb', line 16941 def initialize(opts = {}) super(opts) self.base_template = opts[:base_template] self.version_name = opts[:version_name] self.version_number = opts[:version_number] end |
Instance Method Details
- (Template) base_template
Returns the value of the base_template
attribute.
16871 16872 16873 |
# File 'lib/ovirtsdk4/types.rb', line 16871 def base_template return @base_template end |
- (Object) base_template=(value)
Sets the value of the base_template
attribute.
The value
parameter can be an instance of OvirtSDK4::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.
16884 16885 16886 16887 16888 16889 |
# File 'lib/ovirtsdk4/types.rb', line 16884 def base_template=(value) if value.is_a?(Hash) value = Template.new(value) end @base_template = value end |
- (String) version_name
Returns the value of the version_name
attribute.
16896 16897 16898 |
# File 'lib/ovirtsdk4/types.rb', line 16896 def version_name return @version_name end |
- (Object) version_name=(value)
Sets the value of the version_name
attribute.
16905 16906 16907 |
# File 'lib/ovirtsdk4/types.rb', line 16905 def version_name=(value) @version_name = value end |
- (Integer) version_number
Returns the value of the version_number
attribute.
16914 16915 16916 |
# File 'lib/ovirtsdk4/types.rb', line 16914 def version_number return @version_number end |
- (Object) version_number=(value)
Sets the value of the version_number
attribute.
16923 16924 16925 |
# File 'lib/ovirtsdk4/types.rb', line 16923 def version_number=(value) @version_number = value end |