Class: OvirtSDK4::OpenstackVolumeAuthenticationKey

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

- (OpenstackVolumeAuthenticationKey) initialize(opts = {})

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

  • :creation_date (DateTime)

    The value of attribute creation_date.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :openstack_volume_provider (OpenStackVolumeProvider, Hash)

    The value of attribute openstack_volume_provider.

  • :usage_type (OpenstackVolumeAuthenticationKeyUsageType)

    The value of attribute usage_type.

  • :uuid (String)

    The value of attribute uuid.

  • :value (String)

    The value of attribute value.



9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
# File 'lib/ovirtsdk4/types.rb', line 9280

def initialize(opts = {})
  super(opts)
  self.comment = opts[:comment]
  self.creation_date = opts[:creation_date]
  self.description = opts[:description]
  self.id = opts[:id]
  self.name = opts[:name]
  self.openstack_volume_provider = opts[:openstack_volume_provider]
  self.usage_type = opts[:usage_type]
  self.uuid = opts[:uuid]
  self.value = opts[:value]
end

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


9090
9091
9092
# File 'lib/ovirtsdk4/types.rb', line 9090

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


9099
9100
9101
# File 'lib/ovirtsdk4/types.rb', line 9099

def comment=(value)
  @comment = value
end

- (DateTime) creation_date

Returns the value of the creation_date attribute.

Returns:

  • (DateTime)


9108
9109
9110
# File 'lib/ovirtsdk4/types.rb', line 9108

def creation_date
  return @creation_date
end

- (Object) creation_date=(value)

Sets the value of the creation_date attribute.

Parameters:

  • value (DateTime)


9117
9118
9119
# File 'lib/ovirtsdk4/types.rb', line 9117

def creation_date=(value)
  @creation_date = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


9126
9127
9128
# File 'lib/ovirtsdk4/types.rb', line 9126

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


9135
9136
9137
# File 'lib/ovirtsdk4/types.rb', line 9135

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


9144
9145
9146
# File 'lib/ovirtsdk4/types.rb', line 9144

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


9153
9154
9155
# File 'lib/ovirtsdk4/types.rb', line 9153

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


9162
9163
9164
# File 'lib/ovirtsdk4/types.rb', line 9162

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


9171
9172
9173
# File 'lib/ovirtsdk4/types.rb', line 9171

def name=(value)
  @name = value
end

- (OpenStackVolumeProvider) openstack_volume_provider

Returns the value of the openstack_volume_provider attribute.



9180
9181
9182
# File 'lib/ovirtsdk4/types.rb', line 9180

def openstack_volume_provider
  return @openstack_volume_provider
end

- (Object) openstack_volume_provider=(value)

Sets the value of the openstack_volume_provider attribute.

The value parameter can be an instance of OvirtSDK4::OpenStackVolumeProvider 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:



9193
9194
9195
9196
9197
9198
# File 'lib/ovirtsdk4/types.rb', line 9193

def openstack_volume_provider=(value)
  if value.is_a?(Hash)
    value = OpenStackVolumeProvider.new(value)
  end
  @openstack_volume_provider = value
end

- (OpenstackVolumeAuthenticationKeyUsageType) usage_type

Returns the value of the usage_type attribute.



9205
9206
9207
# File 'lib/ovirtsdk4/types.rb', line 9205

def usage_type
  return @usage_type
end

- (Object) usage_type=(value)

Sets the value of the usage_type attribute.



9214
9215
9216
# File 'lib/ovirtsdk4/types.rb', line 9214

def usage_type=(value)
  @usage_type = value
end

- (String) uuid

Returns the value of the uuid attribute.

Returns:

  • (String)


9223
9224
9225
# File 'lib/ovirtsdk4/types.rb', line 9223

def uuid
  return @uuid
end

- (Object) uuid=(value)

Sets the value of the uuid attribute.

Parameters:

  • value (String)


9232
9233
9234
# File 'lib/ovirtsdk4/types.rb', line 9232

def uuid=(value)
  @uuid = value
end

- (String) value

Returns the value of the value attribute.

Returns:

  • (String)


9241
9242
9243
# File 'lib/ovirtsdk4/types.rb', line 9241

def value
  return @value
end

- (Object) value=(value)

Sets the value of the value attribute.

Parameters:

  • value (String)


9250
9251
9252
# File 'lib/ovirtsdk4/types.rb', line 9250

def value=(value)
  @value = value
end