class Azure::Storage::Mgmt::V2021_01_01::Models::StorageAccount

The storage account.

Attributes

access_tier[RW]

@return [AccessTier] Required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'

allow_blob_public_access[RW]

@return [Boolean] Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property.

allow_shared_key_access[RW]

@return [Boolean] Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true.

azure_files_identity_based_authentication[RW]

@return [AzureFilesIdentityBasedAuthentication] Provides the identity based authentication settings for Azure Files.

blob_restore_status[RW]

@return [BlobRestoreStatus] Blob restore status

creation_time[RW]

@return [DateTime] Gets the creation date and time of the storage account in UTC.

custom_domain[RW]

@return [CustomDomain] Gets the custom domain the user assigned to this storage account.

enable_https_traffic_only[RW]

@return [Boolean] Allows https traffic only to storage service if sets to true.

enable_nfs_v3[RW]

@return [Boolean] NFS 3.0 protocol support enabled if set to true.

encryption[RW]

@return [Encryption] Gets the encryption settings on the account. If unspecified, the account is unencrypted.

extended_location[RW]

@return [ExtendedLocation] The extendedLocation of the resource.

failover_in_progress[RW]

@return [Boolean] If the failover is in progress, the value will be true, otherwise, it will be null.

geo_replication_stats[RW]

@return [GeoReplicationStats] Geo Replication Stats

identity[RW]

@return [Identity] The identity of the resource.

is_hns_enabled[RW]

@return [Boolean] Account HierarchicalNamespace enabled if sets to true.

kind[RW]

@return [Kind] Gets the Kind. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage'

large_file_shares_state[RW]

@return [LargeFileSharesState] Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Possible values include: 'Disabled', 'Enabled'

last_geo_failover_time[RW]

@return [DateTime] Gets the timestamp of the most recent instance of a 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.

minimum_tls_version[RW]

@return [MinimumTlsVersion] Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Possible values include: 'TLS1_0', 'TLS1_1', 'TLS1_2'

network_rule_set[RW]

@return [NetworkRuleSet] Network rule set

primary_endpoints[RW]

@return [Endpoints] Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint.

primary_location[RW]

@return [String] Gets the location of the primary data center for the storage account.

private_endpoint_connections[RW]

@return [Array<PrivateEndpointConnection>] List of private endpoint connection associated with the specified storage account

provisioning_state[RW]

@return [ProvisioningState] Gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded'

routing_preference[RW]

@return [RoutingPreference] Maintains information about the network routing choice opted by the user for data transfer

secondary_endpoints[RW]

@return [Endpoints] Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS.

secondary_location[RW]

@return [String] Gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS.

sku[RW]

@return [Sku] Gets the SKU.

status_of_primary[RW]

@return [AccountStatus] Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: 'available', 'unavailable'

status_of_secondary[RW]

@return [AccountStatus] Gets the status indicating whether the secondary 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'

Private Class Methods

mapper() click to toggle source

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

# File lib/2021-01-01/generated/azure_mgmt_storage/models/storage_account.rb, line 150
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'
          }
        },
        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'
                }
            }
          }
        },
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        sku: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'Sku'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        identity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'identity',
          type: {
            name: 'Composite',
            class_name: 'Identity'
          }
        },
        extended_location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'extendedLocation',
          type: {
            name: 'Composite',
            class_name: 'ExtendedLocation'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'Enum',
            module: 'ProvisioningState'
          }
        },
        primary_endpoints: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.primaryEndpoints',
          type: {
            name: 'Composite',
            class_name: 'Endpoints'
          }
        },
        primary_location: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.primaryLocation',
          type: {
            name: 'String'
          }
        },
        status_of_primary: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.statusOfPrimary',
          type: {
            name: 'Enum',
            module: 'AccountStatus'
          }
        },
        last_geo_failover_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.lastGeoFailoverTime',
          type: {
            name: 'DateTime'
          }
        },
        secondary_location: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.secondaryLocation',
          type: {
            name: 'String'
          }
        },
        status_of_secondary: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.statusOfSecondary',
          type: {
            name: 'Enum',
            module: 'AccountStatus'
          }
        },
        creation_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.creationTime',
          type: {
            name: 'DateTime'
          }
        },
        custom_domain: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.customDomain',
          type: {
            name: 'Composite',
            class_name: 'CustomDomain'
          }
        },
        secondary_endpoints: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.secondaryEndpoints',
          type: {
            name: 'Composite',
            class_name: 'Endpoints'
          }
        },
        encryption: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.encryption',
          type: {
            name: 'Composite',
            class_name: 'Encryption'
          }
        },
        access_tier: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.accessTier',
          type: {
            name: 'Enum',
            module: 'AccessTier'
          }
        },
        azure_files_identity_based_authentication: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.azureFilesIdentityBasedAuthentication',
          type: {
            name: 'Composite',
            class_name: 'AzureFilesIdentityBasedAuthentication'
          }
        },
        enable_https_traffic_only: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.supportsHttpsTrafficOnly',
          type: {
            name: 'Boolean'
          }
        },
        network_rule_set: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.networkAcls',
          type: {
            name: 'Composite',
            class_name: 'NetworkRuleSet'
          }
        },
        is_hns_enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.isHnsEnabled',
          type: {
            name: 'Boolean'
          }
        },
        geo_replication_stats: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.geoReplicationStats',
          type: {
            name: 'Composite',
            class_name: 'GeoReplicationStats'
          }
        },
        failover_in_progress: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.failoverInProgress',
          type: {
            name: 'Boolean'
          }
        },
        large_file_shares_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.largeFileSharesState',
          type: {
            name: 'String'
          }
        },
        private_endpoint_connections: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.privateEndpointConnections',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'PrivateEndpointConnectionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'PrivateEndpointConnection'
                }
            }
          }
        },
        routing_preference: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.routingPreference',
          type: {
            name: 'Composite',
            class_name: 'RoutingPreference'
          }
        },
        blob_restore_status: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.blobRestoreStatus',
          type: {
            name: 'Composite',
            class_name: 'BlobRestoreStatus'
          }
        },
        allow_blob_public_access: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.allowBlobPublicAccess',
          type: {
            name: 'Boolean'
          }
        },
        minimum_tls_version: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.minimumTlsVersion',
          type: {
            name: 'String'
          }
        },
        allow_shared_key_access: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.allowSharedKeyAccess',
          type: {
            name: 'Boolean'
          }
        },
        enable_nfs_v3: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.isNfsV3Enabled',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end