Class: Azure::StorageCache::Mgmt::V2019_11_01::Models::Cache

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cache_size_gb ⇒ Integer

Returns The size of this Cache, in GB.

Returns:

  • (Integer) —

    The size of this Cache, in GB.



32
33
34
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache.rb', line 32

def cache_size_gb
  @cache_size_gb
end

#health ⇒ CacheHealth

Returns Health of the Cache.

Returns:



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

def health
  @health
end

#id ⇒ String

Returns Resource ID of the Cache.

Returns:

  • (String) —

    Resource ID of the Cache.



20
21
22
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache.rb', line 20

def id
  @id
end

#location ⇒ String

Returns Region name string.

Returns:

  • (String) —

    Region name string.



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

def location
  @location
end

#mount_addresses ⇒ Array<String>

clients mounting this Cache.

Returns:

  • (Array<String>) —

    Array of IP addresses that can be used by



39
40
41
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache.rb', line 39

def mount_addresses
  @mount_addresses
end

#name ⇒ String

Returns Name of Cache.

Returns:

  • (String) —

    Name of Cache.



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

def name
  @name
end

#provisioning_state ⇒ ProvisioningStateType

https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property. Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Creating', 'Deleting', 'Updating'

Returns:



45
46
47
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache.rb', line 45

def provisioning_state
  @provisioning_state
end

#sku ⇒ CacheSku

Returns SKU for the Cache.

Returns:



54
55
56
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache.rb', line 54

def sku
  @sku
end

#subnet ⇒ String

Returns Subnet used for the Cache.

Returns:

  • (String) —

    Subnet used for the Cache.



48
49
50
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache.rb', line 48

def subnet
  @subnet
end

#tags ⇒ Object

Returns ARM tags as name/value pairs.

Returns:

  • ARM tags as name/value pairs.



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

def tags
  @tags
end

#type ⇒ String

Returns Type of the Cache; Microsoft.StorageCache/Cache.

Returns:

  • (String) —

    Type of the Cache; Microsoft.StorageCache/Cache



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

def type
  @type
end

#upgrade_status ⇒ CacheUpgradeStatus

Returns Upgrade status of the Cache.

Returns:



51
52
53
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache.rb', line 51

def upgrade_status
  @upgrade_status
end

Class Method Details

.mapper ⇒ Object

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



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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# File 'lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache.rb', line 61

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Cache',
    type: {
      name: 'Composite',
      class_name: 'Cache',
      model_properties: {
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Object'
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        cache_size_gb: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.cacheSizeGB',
          type: {
            name: 'Number'
          }
        },
        health: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.health',
          type: {
            name: 'Composite',
            class_name: 'CacheHealth'
          }
        },
        mount_addresses: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.mountAddresses',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        subnet: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.subnet',
          type: {
            name: 'String'
          }
        },
        upgrade_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.upgradeStatus',
          type: {
            name: 'Composite',
            class_name: 'CacheUpgradeStatus'
          }
        },
        sku: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'CacheSku'
          }
        }
      }
    }
  }
end