Class: Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccount

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb

Overview

The storage account.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #location, #name, #tags, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#account_typeAccountType

include: ‘Standard_LRS’, ‘Standard_ZRS’, ‘Standard_GRS’, ‘Standard_RAGRS’, ‘Premium_LRS’

Returns:

  • (AccountType)

    The type of the storage account. Possible values



23
24
25
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb', line 23

def 
  @account_type
end

#creation_timeDateTime

UTC.

Returns:

  • (DateTime)

    The creation date and time of the storage account in



59
60
61
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb', line 59

def creation_time
  @creation_time
end

#custom_domainCustomDomain

storage account.

Returns:

  • (CustomDomain)

    The custom domain the user assigned to this



63
64
65
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb', line 63

def custom_domain
  @custom_domain
end

#last_geo_failover_timeDateTime

failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS.

Returns:

  • (DateTime)

    The timestamp of the most recent instance of a



44
45
46
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb', line 44

def last_geo_failover_time
  @last_geo_failover_time
end

#primary_endpointsEndpoints

public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint.

Returns:

  • (Endpoints)

    The URLs that are used to perform a retrieval of a



28
29
30
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb', line 28

def primary_endpoints
  @primary_endpoints
end

#primary_locationString

storage account.

Returns:

  • (String)

    The location of the primary data center for the



32
33
34
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb', line 32

def primary_location
  @primary_location
end

#provisioning_stateProvisioningState

time the operation was called. Possible values include: ‘Creating’, ‘ResolvingDNS’, ‘Succeeded’

Returns:



18
19
20
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb', line 18

def provisioning_state
  @provisioning_state
end

#secondary_endpointsEndpoints

public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS.

Returns:

  • (Endpoints)

    The URLs that are used to perform a retrieval of a



68
69
70
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb', line 68

def secondary_endpoints
  @secondary_endpoints
end

#secondary_locationString

storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS.

Returns:

  • (String)

    The location of the geo-replicated secondary for the



49
50
51
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb', line 49

def secondary_location
  @secondary_location
end

#status_of_primaryAccountStatus

location of the storage account is available or unavailable. Possible values include: ‘Available’, ‘Unavailable’

Returns:



37
38
39
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb', line 37

def status_of_primary
  @status_of_primary
end

#status_of_secondaryAccountStatus

location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. Possible values include: ‘Available’, ‘Unavailable’

Returns:

  • (AccountStatus)

    The status indicating whether the secondary



55
56
57
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb', line 55

def status_of_secondary
  @status_of_secondary
end

Class Method Details

.mapperObject

Mapper for StorageAccount 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
# File 'lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb', line 75

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'StorageAccount',
    type: {
      name: 'Composite',
      class_name: 'StorageAccount',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          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'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                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: 'Enum',
            module: 'ProvisioningState'
          }
        },
        account_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.accountType',
          type: {
            name: 'Enum',
            module: 'AccountType'
          }
        },
        primary_endpoints: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.primaryEndpoints',
          type: {
            name: 'Composite',
            class_name: 'Endpoints'
          }
        },
        primary_location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.primaryLocation',
          type: {
            name: 'String'
          }
        },
        status_of_primary: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.statusOfPrimary',
          type: {
            name: 'Enum',
            module: 'AccountStatus'
          }
        },
        last_geo_failover_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.lastGeoFailoverTime',
          type: {
            name: 'DateTime'
          }
        },
        secondary_location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.secondaryLocation',
          type: {
            name: 'String'
          }
        },
        status_of_secondary: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.statusOfSecondary',
          type: {
            name: 'Enum',
            module: 'AccountStatus'
          }
        },
        creation_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.creationTime',
          type: {
            name: 'DateTime'
          }
        },
        custom_domain: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.customDomain',
          type: {
            name: 'Composite',
            class_name: 'CustomDomain'
          }
        },
        secondary_endpoints: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.secondaryEndpoints',
          type: {
            name: 'Composite',
            class_name: 'Endpoints'
          }
        }
      }
    }
  }
end