AZSStorageUri Class Reference
Inherits from | NSObject |
---|---|
Declared in | AZSStorageUri.h AZSStorageUri.m |
Overview
AZSStorageUri is a wrapper around two NSURL objects used to connect to Storage.
An AZSStorageUri is designed to contain two URLs. The first is used to connect to the Primary endpoint of the Storage Service, used for all requests. The second, the Secondary URL, is used for read request against RA-GRS accounts if configured properly (functionality forthcoming).
Other Methods
+ appendToStorageUri:pathToAppend:
Appends a given path to a Storage URI
+ (AZSStorageUri *)appendToStorageUri:(AZSStorageUri *)storageUri pathToAppend:(NSString *)pathToAppend
Parameters
storageUri |
The AZSStorageUri to use as a base |
---|---|
pathToAppend |
The path to append to the URLs |
Return Value
A new StorageUri with the paths appended.
Discussion
Appends a given path to a Storage URI
This method creates a new AZSStorageUri with the given path appended to each URL. This is used, for example, to append a container and blob name to the root Storage Account URI. Both the primary and secondary URLs will be appended to.
Declared In
AZSStorageUri.h
– initWithPrimaryUri:
Initializes a fresh AZSStorageUri instance.
- (instancetype)initWithPrimaryUri:(NSURL *)primaryUri
Parameters
primaryUri |
The URL of the Primary endpoint for the target storage account. |
---|
Return Value
The freshly allocated instance.
Discussion
Initializes a fresh AZSStorageUri instance.
Declared In
AZSStorageUri.h
– initWithPrimaryUri:secondaryUri:
Initializes a fresh AZSStorageUri instance.
- (instancetype)initWithPrimaryUri:(NSURL *)primaryUri secondaryUri:(NSURL *)secondaryUri
Parameters
primaryUri |
The URL of the Primary endpoint for the target storage account. |
---|---|
secondaryUri |
The URL of the Secondary endpoint for the target storage account. |
Return Value
The freshly allocated instance.
Discussion
Initializes a fresh AZSStorageUri instance.
Declared In
AZSStorageUri.h
– urlWithLocation:
Returns the NSURL associated with the given location.
- (NSURL *)urlWithLocation:(AZSStorageLocation)storageLocation
Parameters
storageLocation |
The StorageLocation to return the URL from. |
---|
Return Value
The Primary URL or the Secondary URL, depending on the input.
Discussion
Returns the NSURL associated with the given location.
Declared In
AZSStorageUri.h
Other Methods
primaryUri
The primary URL of the Storage Service for this account.
@property (copy) NSURL *primaryUri
Discussion
The primary URL of the Storage Service for this account.
Declared In
AZSStorageUri.h
secondaryUri
The secondary URL of the Storage Service for this account.
@property (copy, AZSNullable) NSURL *secondaryUri
Discussion
The secondary URL of the Storage Service for this account.
Declared In
AZSStorageUri.h