Class: OvirtSDK4::EngineBackupInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ EngineBackupInfo

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

  • :last_cinder_backup (DateTime)

    The value of attribute last_cinder_backup.

  • :last_db_backup (DateTime)

    The value of attribute last_db_backup.

  • :last_dwh_backup (DateTime)

    The value of attribute last_dwh_backup.

  • :last_engine_backup (DateTime)

    The value of attribute last_engine_backup.

  • :last_grafana_backup (DateTime)

    The value of attribute last_grafana_backup.

  • :last_keycloak_backup (DateTime)

    The value of attribute last_keycloak_backup.



3632
3633
3634
3635
3636
3637
3638
3639
3640
# File 'lib/ovirtsdk4/types.rb', line 3632

def initialize(opts = {})
  super(opts)
  self.last_cinder_backup = opts[:last_cinder_backup]
  self.last_db_backup = opts[:last_db_backup]
  self.last_dwh_backup = opts[:last_dwh_backup]
  self.last_engine_backup = opts[:last_engine_backup]
  self.last_grafana_backup = opts[:last_grafana_backup]
  self.last_keycloak_backup = opts[:last_keycloak_backup]
end

Instance Method Details

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.



3645
3646
3647
3648
3649
3650
3651
3652
3653
# File 'lib/ovirtsdk4/types.rb', line 3645

def ==(other)
  super &&
  @last_cinder_backup == other.last_cinder_backup &&
  @last_db_backup == other.last_db_backup &&
  @last_dwh_backup == other.last_dwh_backup &&
  @last_engine_backup == other.last_engine_backup &&
  @last_grafana_backup == other.last_grafana_backup &&
  @last_keycloak_backup == other.last_keycloak_backup
end

#hashObject

Generates a hash value for this object.



3658
3659
3660
3661
3662
3663
3664
3665
3666
# File 'lib/ovirtsdk4/types.rb', line 3658

def hash
  super +
  @last_cinder_backup.hash +
  @last_db_backup.hash +
  @last_dwh_backup.hash +
  @last_engine_backup.hash +
  @last_grafana_backup.hash +
  @last_keycloak_backup.hash
end

#last_cinder_backupDateTime

Returns the value of the last_cinder_backup attribute.

Returns:

  • (DateTime)


3509
3510
3511
# File 'lib/ovirtsdk4/types.rb', line 3509

def last_cinder_backup
  @last_cinder_backup
end

#last_cinder_backup=(value) ⇒ Object

Sets the value of the last_cinder_backup attribute.

Parameters:

  • value (DateTime)


3518
3519
3520
# File 'lib/ovirtsdk4/types.rb', line 3518

def last_cinder_backup=(value)
  @last_cinder_backup = value
end

#last_db_backupDateTime

Returns the value of the last_db_backup attribute.

Returns:

  • (DateTime)


3527
3528
3529
# File 'lib/ovirtsdk4/types.rb', line 3527

def last_db_backup
  @last_db_backup
end

#last_db_backup=(value) ⇒ Object

Sets the value of the last_db_backup attribute.

Parameters:

  • value (DateTime)


3536
3537
3538
# File 'lib/ovirtsdk4/types.rb', line 3536

def last_db_backup=(value)
  @last_db_backup = value
end

#last_dwh_backupDateTime

Returns the value of the last_dwh_backup attribute.

Returns:

  • (DateTime)


3545
3546
3547
# File 'lib/ovirtsdk4/types.rb', line 3545

def last_dwh_backup
  @last_dwh_backup
end

#last_dwh_backup=(value) ⇒ Object

Sets the value of the last_dwh_backup attribute.

Parameters:

  • value (DateTime)


3554
3555
3556
# File 'lib/ovirtsdk4/types.rb', line 3554

def last_dwh_backup=(value)
  @last_dwh_backup = value
end

#last_engine_backupDateTime

Returns the value of the last_engine_backup attribute.

Returns:

  • (DateTime)


3563
3564
3565
# File 'lib/ovirtsdk4/types.rb', line 3563

def last_engine_backup
  @last_engine_backup
end

#last_engine_backup=(value) ⇒ Object

Sets the value of the last_engine_backup attribute.

Parameters:

  • value (DateTime)


3572
3573
3574
# File 'lib/ovirtsdk4/types.rb', line 3572

def last_engine_backup=(value)
  @last_engine_backup = value
end

#last_grafana_backupDateTime

Returns the value of the last_grafana_backup attribute.

Returns:

  • (DateTime)


3581
3582
3583
# File 'lib/ovirtsdk4/types.rb', line 3581

def last_grafana_backup
  @last_grafana_backup
end

#last_grafana_backup=(value) ⇒ Object

Sets the value of the last_grafana_backup attribute.

Parameters:

  • value (DateTime)


3590
3591
3592
# File 'lib/ovirtsdk4/types.rb', line 3590

def last_grafana_backup=(value)
  @last_grafana_backup = value
end

#last_keycloak_backupDateTime

Returns the value of the last_keycloak_backup attribute.

Returns:

  • (DateTime)


3599
3600
3601
# File 'lib/ovirtsdk4/types.rb', line 3599

def last_keycloak_backup
  @last_keycloak_backup
end

#last_keycloak_backup=(value) ⇒ Object

Sets the value of the last_keycloak_backup attribute.

Parameters:

  • value (DateTime)


3608
3609
3610
# File 'lib/ovirtsdk4/types.rb', line 3608

def last_keycloak_backup=(value)
  @last_keycloak_backup = value
end