Class: OvirtSDK4::Qos

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

- (Qos) initialize(opts = {})

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

  • :cpu_limit (Integer)

    The value of attribute cpu_limit.

  • :data_center (DataCenter, Hash)

    The value of attribute data_center.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :inbound_average (Integer)

    The value of attribute inbound_average.

  • :inbound_burst (Integer)

    The value of attribute inbound_burst.

  • :inbound_peak (Integer)

    The value of attribute inbound_peak.

  • :max_iops (Integer)

    The value of attribute max_iops.

  • :max_read_iops (Integer)

    The value of attribute max_read_iops.

  • :max_read_throughput (Integer)

    The value of attribute max_read_throughput.

  • :max_throughput (Integer)

    The value of attribute max_throughput.

  • :max_write_iops (Integer)

    The value of attribute max_write_iops.

  • :max_write_throughput (Integer)

    The value of attribute max_write_throughput.

  • :name (String)

    The value of attribute name.

  • :outbound_average (Integer)

    The value of attribute outbound_average.

  • :outbound_average_linkshare (Integer)

    The value of attribute outbound_average_linkshare.

  • :outbound_average_realtime (Integer)

    The value of attribute outbound_average_realtime.

  • :outbound_average_upperlimit (Integer)

    The value of attribute outbound_average_upperlimit.

  • :outbound_burst (Integer)

    The value of attribute outbound_burst.

  • :outbound_peak (Integer)

    The value of attribute outbound_peak.

  • :type (QosType)

    The value of attribute type.



11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
# File 'lib/ovirtsdk4/types.rb', line 11609

def initialize(opts = {})
  super(opts)
  self.comment = opts[:comment]
  self.cpu_limit = opts[:cpu_limit]
  self.data_center = opts[:data_center]
  self.description = opts[:description]
  self.id = opts[:id]
  self.inbound_average = opts[:inbound_average]
  self.inbound_burst = opts[:inbound_burst]
  self.inbound_peak = opts[:inbound_peak]
  self.max_iops = opts[:max_iops]
  self.max_read_iops = opts[:max_read_iops]
  self.max_read_throughput = opts[:max_read_throughput]
  self.max_throughput = opts[:max_throughput]
  self.max_write_iops = opts[:max_write_iops]
  self.max_write_throughput = opts[:max_write_throughput]
  self.name = opts[:name]
  self.outbound_average = opts[:outbound_average]
  self.outbound_average_linkshare = opts[:outbound_average_linkshare]
  self.outbound_average_realtime = opts[:outbound_average_realtime]
  self.outbound_average_upperlimit = opts[:outbound_average_upperlimit]
  self.outbound_burst = opts[:outbound_burst]
  self.outbound_peak = opts[:outbound_peak]
  self.type = opts[:type]
end

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


11159
11160
11161
# File 'lib/ovirtsdk4/types.rb', line 11159

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


11168
11169
11170
# File 'lib/ovirtsdk4/types.rb', line 11168

def comment=(value)
  @comment = value
end

- (Integer) cpu_limit

Returns the value of the cpu_limit attribute.

Returns:

  • (Integer)


11177
11178
11179
# File 'lib/ovirtsdk4/types.rb', line 11177

def cpu_limit
  return @cpu_limit
end

- (Object) cpu_limit=(value)

Sets the value of the cpu_limit attribute.

Parameters:

  • value (Integer)


11186
11187
11188
# File 'lib/ovirtsdk4/types.rb', line 11186

def cpu_limit=(value)
  @cpu_limit = value
end

- (DataCenter) data_center

Returns the value of the data_center attribute.

Returns:



11195
11196
11197
# File 'lib/ovirtsdk4/types.rb', line 11195

def data_center
  return @data_center
end

- (Object) data_center=(value)

Sets the value of the data_center attribute.

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



11208
11209
11210
11211
11212
11213
# File 'lib/ovirtsdk4/types.rb', line 11208

def data_center=(value)
  if value.is_a?(Hash)
    value = DataCenter.new(value)
  end
  @data_center = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


11220
11221
11222
# File 'lib/ovirtsdk4/types.rb', line 11220

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


11229
11230
11231
# File 'lib/ovirtsdk4/types.rb', line 11229

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


11238
11239
11240
# File 'lib/ovirtsdk4/types.rb', line 11238

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


11247
11248
11249
# File 'lib/ovirtsdk4/types.rb', line 11247

def id=(value)
  @id = value
end

- (Integer) inbound_average

Returns the value of the inbound_average attribute.

Returns:

  • (Integer)


11256
11257
11258
# File 'lib/ovirtsdk4/types.rb', line 11256

def inbound_average
  return @inbound_average
end

- (Object) inbound_average=(value)

Sets the value of the inbound_average attribute.

Parameters:

  • value (Integer)


11265
11266
11267
# File 'lib/ovirtsdk4/types.rb', line 11265

def inbound_average=(value)
  @inbound_average = value
end

- (Integer) inbound_burst

Returns the value of the inbound_burst attribute.

Returns:

  • (Integer)


11274
11275
11276
# File 'lib/ovirtsdk4/types.rb', line 11274

def inbound_burst
  return @inbound_burst
end

- (Object) inbound_burst=(value)

Sets the value of the inbound_burst attribute.

Parameters:

  • value (Integer)


11283
11284
11285
# File 'lib/ovirtsdk4/types.rb', line 11283

def inbound_burst=(value)
  @inbound_burst = value
end

- (Integer) inbound_peak

Returns the value of the inbound_peak attribute.

Returns:

  • (Integer)


11292
11293
11294
# File 'lib/ovirtsdk4/types.rb', line 11292

def inbound_peak
  return @inbound_peak
end

- (Object) inbound_peak=(value)

Sets the value of the inbound_peak attribute.

Parameters:

  • value (Integer)


11301
11302
11303
# File 'lib/ovirtsdk4/types.rb', line 11301

def inbound_peak=(value)
  @inbound_peak = value
end

- (Integer) max_iops

Returns the value of the max_iops attribute.

Returns:

  • (Integer)


11310
11311
11312
# File 'lib/ovirtsdk4/types.rb', line 11310

def max_iops
  return @max_iops
end

- (Object) max_iops=(value)

Sets the value of the max_iops attribute.

Parameters:

  • value (Integer)


11319
11320
11321
# File 'lib/ovirtsdk4/types.rb', line 11319

def max_iops=(value)
  @max_iops = value
end

- (Integer) max_read_iops

Returns the value of the max_read_iops attribute.

Returns:

  • (Integer)


11328
11329
11330
# File 'lib/ovirtsdk4/types.rb', line 11328

def max_read_iops
  return @max_read_iops
end

- (Object) max_read_iops=(value)

Sets the value of the max_read_iops attribute.

Parameters:

  • value (Integer)


11337
11338
11339
# File 'lib/ovirtsdk4/types.rb', line 11337

def max_read_iops=(value)
  @max_read_iops = value
end

- (Integer) max_read_throughput

Returns the value of the max_read_throughput attribute.

Returns:

  • (Integer)


11346
11347
11348
# File 'lib/ovirtsdk4/types.rb', line 11346

def max_read_throughput
  return @max_read_throughput
end

- (Object) max_read_throughput=(value)

Sets the value of the max_read_throughput attribute.

Parameters:

  • value (Integer)


11355
11356
11357
# File 'lib/ovirtsdk4/types.rb', line 11355

def max_read_throughput=(value)
  @max_read_throughput = value
end

- (Integer) max_throughput

Returns the value of the max_throughput attribute.

Returns:

  • (Integer)


11364
11365
11366
# File 'lib/ovirtsdk4/types.rb', line 11364

def max_throughput
  return @max_throughput
end

- (Object) max_throughput=(value)

Sets the value of the max_throughput attribute.

Parameters:

  • value (Integer)


11373
11374
11375
# File 'lib/ovirtsdk4/types.rb', line 11373

def max_throughput=(value)
  @max_throughput = value
end

- (Integer) max_write_iops

Returns the value of the max_write_iops attribute.

Returns:

  • (Integer)


11382
11383
11384
# File 'lib/ovirtsdk4/types.rb', line 11382

def max_write_iops
  return @max_write_iops
end

- (Object) max_write_iops=(value)

Sets the value of the max_write_iops attribute.

Parameters:

  • value (Integer)


11391
11392
11393
# File 'lib/ovirtsdk4/types.rb', line 11391

def max_write_iops=(value)
  @max_write_iops = value
end

- (Integer) max_write_throughput

Returns the value of the max_write_throughput attribute.

Returns:

  • (Integer)


11400
11401
11402
# File 'lib/ovirtsdk4/types.rb', line 11400

def max_write_throughput
  return @max_write_throughput
end

- (Object) max_write_throughput=(value)

Sets the value of the max_write_throughput attribute.

Parameters:

  • value (Integer)


11409
11410
11411
# File 'lib/ovirtsdk4/types.rb', line 11409

def max_write_throughput=(value)
  @max_write_throughput = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


11418
11419
11420
# File 'lib/ovirtsdk4/types.rb', line 11418

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


11427
11428
11429
# File 'lib/ovirtsdk4/types.rb', line 11427

def name=(value)
  @name = value
end

- (Integer) outbound_average

Returns the value of the outbound_average attribute.

Returns:

  • (Integer)


11436
11437
11438
# File 'lib/ovirtsdk4/types.rb', line 11436

def outbound_average
  return @outbound_average
end

- (Object) outbound_average=(value)

Sets the value of the outbound_average attribute.

Parameters:

  • value (Integer)


11445
11446
11447
# File 'lib/ovirtsdk4/types.rb', line 11445

def outbound_average=(value)
  @outbound_average = value
end

- (Integer) outbound_average_linkshare

Returns the value of the outbound_average_linkshare attribute.

Returns:

  • (Integer)


11454
11455
11456
# File 'lib/ovirtsdk4/types.rb', line 11454

def outbound_average_linkshare
  return @outbound_average_linkshare
end

- (Object) outbound_average_linkshare=(value)

Sets the value of the outbound_average_linkshare attribute.

Parameters:

  • value (Integer)


11463
11464
11465
# File 'lib/ovirtsdk4/types.rb', line 11463

def outbound_average_linkshare=(value)
  @outbound_average_linkshare = value
end

- (Integer) outbound_average_realtime

Returns the value of the outbound_average_realtime attribute.

Returns:

  • (Integer)


11472
11473
11474
# File 'lib/ovirtsdk4/types.rb', line 11472

def outbound_average_realtime
  return @outbound_average_realtime
end

- (Object) outbound_average_realtime=(value)

Sets the value of the outbound_average_realtime attribute.

Parameters:

  • value (Integer)


11481
11482
11483
# File 'lib/ovirtsdk4/types.rb', line 11481

def outbound_average_realtime=(value)
  @outbound_average_realtime = value
end

- (Integer) outbound_average_upperlimit

Returns the value of the outbound_average_upperlimit attribute.

Returns:

  • (Integer)


11490
11491
11492
# File 'lib/ovirtsdk4/types.rb', line 11490

def outbound_average_upperlimit
  return @outbound_average_upperlimit
end

- (Object) outbound_average_upperlimit=(value)

Sets the value of the outbound_average_upperlimit attribute.

Parameters:

  • value (Integer)


11499
11500
11501
# File 'lib/ovirtsdk4/types.rb', line 11499

def outbound_average_upperlimit=(value)
  @outbound_average_upperlimit = value
end

- (Integer) outbound_burst

Returns the value of the outbound_burst attribute.

Returns:

  • (Integer)


11508
11509
11510
# File 'lib/ovirtsdk4/types.rb', line 11508

def outbound_burst
  return @outbound_burst
end

- (Object) outbound_burst=(value)

Sets the value of the outbound_burst attribute.

Parameters:

  • value (Integer)


11517
11518
11519
# File 'lib/ovirtsdk4/types.rb', line 11517

def outbound_burst=(value)
  @outbound_burst = value
end

- (Integer) outbound_peak

Returns the value of the outbound_peak attribute.

Returns:

  • (Integer)


11526
11527
11528
# File 'lib/ovirtsdk4/types.rb', line 11526

def outbound_peak
  return @outbound_peak
end

- (Object) outbound_peak=(value)

Sets the value of the outbound_peak attribute.

Parameters:

  • value (Integer)


11535
11536
11537
# File 'lib/ovirtsdk4/types.rb', line 11535

def outbound_peak=(value)
  @outbound_peak = value
end

- (QosType) type

Returns the value of the type attribute.

Returns:



11544
11545
11546
# File 'lib/ovirtsdk4/types.rb', line 11544

def type
  return @type
end

- (Object) type=(value)

Sets the value of the type attribute.

Parameters:



11553
11554
11555
# File 'lib/ovirtsdk4/types.rb', line 11553

def type=(value)
  @type = value
end