Class: Azure::StorageCache::Mgmt::V2020_03_01::Models::Cache

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

Overview

A Cache instance. Follows Azure Resource Manager standards: github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cache_size_gbInteger



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

def cache_size_gb
  @cache_size_gb
end

#encryption_settingsCacheEncryptionSettings

cache.



61
62
63
# File 'lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache.rb', line 61

def encryption_settings
  @encryption_settings
end

#healthCacheHealth



38
39
40
# File 'lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache.rb', line 38

def health
  @health
end

#idString



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

def id
  @id
end

#identityCacheIdentity



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

def identity
  @identity
end

#locationString



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

def location
  @location
end

#mount_addressesArray<String>

clients mounting this Cache.



42
43
44
# File 'lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache.rb', line 42

def mount_addresses
  @mount_addresses
end

#nameString



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

def name
  @name
end

#network_settingsCacheNetworkSettings



57
58
59
# File 'lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache.rb', line 57

def network_settings
  @network_settings
end

#provisioning_stateProvisioningStateType

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



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

def provisioning_state
  @provisioning_state
end

#security_settingsCacheSecuritySettings

cache.



65
66
67
# File 'lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache.rb', line 65

def security_settings
  @security_settings
end

#skuCacheSku



68
69
70
# File 'lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache.rb', line 68

def sku
  @sku
end

#subnetString



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

def subnet
  @subnet
end

#tagsObject



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

def tags
  @tags
end

#typeString



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

def type
  @type
end

#upgrade_statusCacheUpgradeStatus



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

def upgrade_status
  @upgrade_status
end

Class Method Details

.mapperObject

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



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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# File 'lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache.rb', line 75

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'
          }
        },
        identity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'identity',
          type: {
            name: 'Composite',
            class_name: 'CacheIdentity'
          }
        },
        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'
          }
        },
        network_settings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.networkSettings',
          type: {
            name: 'Composite',
            class_name: 'CacheNetworkSettings'
          }
        },
        encryption_settings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.encryptionSettings',
          type: {
            name: 'Composite',
            class_name: 'CacheEncryptionSettings'
          }
        },
        security_settings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.securitySettings',
          type: {
            name: 'Composite',
            class_name: 'CacheSecuritySettings'
          }
        },
        sku: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'CacheSku'
          }
        }
      }
    }
  }
end