Creates a new instance of the {TemplateVersion} class.
@param opts [Hash] 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.
@option opts [Template, Hash] :base_template The value of attribute `base_template`.
@option opts [String] :version_name The value of attribute `version_name`.
@option opts [Integer] :version_number The value of attribute `version_number`.
# File lib/ovirtsdk4/types.rb, line 16282 def initialize(opts = {}) super(opts) self.base_template = opts[:base_template] self.version_name = opts[:version_name] self.version_number = opts[:version_number] end
Returns the value of the `base_template` attribute.
@return [Template]
# File lib/ovirtsdk4/types.rb, line 16212 def base_template return @base_template end
Sets the value of the `base_template` attribute.
@param value [Template, Hash]
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.
# File lib/ovirtsdk4/types.rb, line 16225 def base_template=(value) if value.is_a?(Hash) value = Template.new(value) end @base_template = value end
Returns the value of the `version_name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 16237 def version_name return @version_name end
Sets the value of the `version_name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 16246 def version_name=(value) @version_name = value end
Returns the value of the `version_number` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 16255 def version_number return @version_number end
Sets the value of the `version_number` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 16264 def version_number=(value) @version_number = value end