Class: Azure::StorageCache::Mgmt::V2019_11_01::Models::CacheUpgradeStatus

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb

Overview

Properties describing the software upgrade state of the Cache.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#current_firmware_versionString

this Cache.

Returns:

  • (String)

    Version string of the firmware currently installed on



17
18
19
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb', line 17

def current_firmware_version
  @current_firmware_version
end

#firmware_update_deadlineDateTime

automatically be installed on the Cache.

Returns:

  • (DateTime)

    Time at which the pending firmware update will



27
28
29
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb', line 27

def firmware_update_deadline
  @firmware_update_deadline
end

#firmware_update_statusFirmwareStatusType

to install on this Cache. The firmware will automatically be installed after firmwareUpdateDeadline if not triggered earlier via the upgrade operation. Possible values include: ‘available’, ‘unavailable’

Returns:



23
24
25
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb', line 23

def firmware_update_status
  @firmware_update_status
end

#last_firmware_updateDateTime

Returns Time of the last successful firmware update.

Returns:

  • (DateTime)

    Time of the last successful firmware update.



30
31
32
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb', line 30

def last_firmware_update
  @last_firmware_update
end

#pending_firmware_versionString

the version string for the update.

Returns:

  • (String)

    When firmwareUpdateAvailable is true, this field holds



34
35
36
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb', line 34

def pending_firmware_version
  @pending_firmware_version
end

Class Method Details

.mapperObject

Mapper for CacheUpgradeStatus class as Ruby Hash. This will be used for serialization/deserialization.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb', line 41

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CacheUpgradeStatus',
    type: {
      name: 'Composite',
      class_name: 'CacheUpgradeStatus',
      model_properties: {
        current_firmware_version: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'currentFirmwareVersion',
          type: {
            name: 'String'
          }
        },
        firmware_update_status: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'firmwareUpdateStatus',
          type: {
            name: 'String'
          }
        },
        firmware_update_deadline: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'firmwareUpdateDeadline',
          type: {
            name: 'DateTime'
          }
        },
        last_firmware_update: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'lastFirmwareUpdate',
          type: {
            name: 'DateTime'
          }
        },
        pending_firmware_version: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'pendingFirmwareVersion',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end