Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sdk/storage/arm-storage/src/models/blobContainersMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export {
BlobContainersExtendImmutabilityPolicyHeaders,
BlobContainersGetImmutabilityPolicyHeaders,
BlobContainersLockImmutabilityPolicyHeaders,
BlobRestoreParameters,
BlobRestoreRange,
BlobRestoreStatus,
BlobServiceProperties,
ChangeFeed,
CloudError,
Expand Down Expand Up @@ -60,6 +63,7 @@ export {
PrivateLinkServiceConnectionState,
ProxyResource,
Resource,
RestorePolicyProperties,
RoutingPreference,
Sku,
StorageAccount,
Expand Down
4 changes: 4 additions & 0 deletions sdk/storage/arm-storage/src/models/blobServicesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export {
AzureFilesIdentityBasedAuthentication,
BaseResource,
BlobContainer,
BlobRestoreParameters,
BlobRestoreRange,
BlobRestoreStatus,
BlobServiceItems,
BlobServiceProperties,
ChangeFeed,
Expand Down Expand Up @@ -52,6 +55,7 @@ export {
PrivateLinkServiceConnectionState,
ProxyResource,
Resource,
RestorePolicyProperties,
RoutingPreference,
Sku,
StorageAccount,
Expand Down
4 changes: 4 additions & 0 deletions sdk/storage/arm-storage/src/models/fileServicesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export {
AzureFilesIdentityBasedAuthentication,
BaseResource,
BlobContainer,
BlobRestoreParameters,
BlobRestoreRange,
BlobRestoreStatus,
BlobServiceProperties,
ChangeFeed,
CloudError,
Expand Down Expand Up @@ -52,6 +55,7 @@ export {
PrivateLinkServiceConnectionState,
ProxyResource,
Resource,
RestorePolicyProperties,
RoutingPreference,
Sku,
StorageAccount,
Expand Down
4 changes: 4 additions & 0 deletions sdk/storage/arm-storage/src/models/fileSharesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export {
AzureFilesIdentityBasedAuthentication,
BaseResource,
BlobContainer,
BlobRestoreParameters,
BlobRestoreRange,
BlobRestoreStatus,
BlobServiceProperties,
ChangeFeed,
CloudError,
Expand Down Expand Up @@ -52,6 +55,7 @@ export {
PrivateLinkServiceConnectionState,
ProxyResource,
Resource,
RestorePolicyProperties,
RoutingPreference,
Sku,
StorageAccount,
Expand Down
201 changes: 167 additions & 34 deletions sdk/storage/arm-storage/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,63 @@ export interface GeoReplicationStats {
readonly canFailover?: boolean;
}

/**
* Blob range
*/
export interface BlobRestoreRange {
/**
* Blob start range. Empty means account start.
*/
startRange: string;
/**
* Blob end range. Empty means account end.
*/
endRange: string;
}

/**
* Blob restore parameters
*/
export interface BlobRestoreParameters {
/**
* Restore blob to the specified time.
*/
timeToRestore: Date;
/**
* Blob ranges to restore.
*/
blobRanges: BlobRestoreRange[];
}

/**
* Blob restore status.
*/
export interface BlobRestoreStatus {
/**
* The status of blob restore progress. Possible values are: - InProgress: Indicates that blob
* restore is ongoing. - Complete: Indicates that blob restore has been completed successfully. -
* Failed: Indicates that blob restore is failed. Possible values include: 'InProgress',
* 'Complete', 'Failed'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly status?: BlobRestoreProgressStatus;
/**
* Failure reason when blob restore is failed.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly failureReason?: string;
/**
* Id for tracking blob restore request.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly restoreId?: string;
/**
* Blob restore request parameters.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly parameters?: BlobRestoreParameters;
}

/**
* The Private Endpoint resource.
*/
Expand Down Expand Up @@ -924,6 +981,11 @@ export interface StorageAccount extends TrackedResource {
* Maintains information about the network routing choice opted by the user for data transfer
*/
routingPreference?: RoutingPreference;
/**
* Blob restore status
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly blobRestoreStatus?: BlobRestoreStatus;
}

/**
Expand Down Expand Up @@ -1765,6 +1827,21 @@ export interface ChangeFeed {
enabled?: boolean;
}

/**
* The blob service properties for blob restore policy
*/
export interface RestorePolicyProperties {
/**
* Blob restore is enabled if set to true.
*/
enabled: boolean;
/**
* how long this blob can be restored. It should be great than zero and less than
* DeleteRetentionPolicy.days.
*/
days?: number;
}

/**
* The properties of a storage account’s Blob service.
*/
Expand Down Expand Up @@ -1793,6 +1870,10 @@ export interface BlobServiceProperties extends Resource {
* The blob service properties for change feed events.
*/
changeFeed?: ChangeFeed;
/**
* The blob service properties for blob restore policy.
*/
restorePolicy?: RestorePolicyProperties;
/**
* Sku name and tier.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
Expand Down Expand Up @@ -1894,6 +1975,15 @@ export interface FileShare extends AzureEntityResource {
* 5TB (5120). For Large File Shares, the maximum size is 102400.
*/
shareQuota?: number;
/**
* Immutable property for file shares protocol. Possible values include: 'SMB', 'NFS'
*/
enabledProtocols?: EnabledProtocols;
/**
* Reduction of the access rights for the remote superuser. Possible values include:
* 'NoRootSquash', 'RootSquash', 'AllSquash'
*/
rootSquash?: RootSquashType;
}

/**
Expand All @@ -1914,6 +2004,15 @@ export interface FileShareItem extends AzureEntityResource {
* 5TB (5120). For Large File Shares, the maximum size is 102400.
*/
shareQuota?: number;
/**
* Immutable property for file shares protocol. Possible values include: 'SMB', 'NFS'
*/
enabledProtocols?: EnabledProtocols;
/**
* Reduction of the access rights for the remote superuser. Possible values include:
* 'NoRootSquash', 'RootSquash', 'AllSquash'
*/
rootSquash?: RootSquashType;
}

/**
Expand All @@ -1922,8 +2021,8 @@ export interface FileShareItem extends AzureEntityResource {
export interface StorageAccountsGetPropertiesOptionalParams extends msRest.RequestOptionsBase {
/**
* May be used to expand the properties within account's properties. By default, data is not
* included when fetching properties. Currently we only support geoReplicationStats. Possible
* values include: 'geoReplicationStats'
* included when fetching properties. Currently we only support geoReplicationStats and
* blobRestoreStatus. Possible values include: 'geoReplicationStats', 'blobRestoreStatus'
*/
expand?: StorageAccountExpand;
}
Expand Down Expand Up @@ -2047,36 +2146,6 @@ export interface FileSharesListOptionalParams extends msRest.RequestOptionsBase
filter?: string;
}

/**
* Optional Parameters.
*/
export interface FileSharesCreateOptionalParams extends msRest.RequestOptionsBase {
/**
* A name-value pair to associate with the share as metadata.
*/
metadata?: { [propertyName: string]: string };
/**
* The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to
* 5TB (5120). For Large File Shares, the maximum size is 102400.
*/
shareQuota?: number;
}

/**
* Optional Parameters.
*/
export interface FileSharesUpdateOptionalParams extends msRest.RequestOptionsBase {
/**
* A name-value pair to associate with the share as metadata.
*/
metadata?: { [propertyName: string]: string };
/**
* The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to
* 5TB (5120). For Large File Shares, the maximum size is 102400.
*/
shareQuota?: number;
}

/**
* An interface representing StorageManagementClientOptions.
*/
Expand Down Expand Up @@ -2352,6 +2421,14 @@ export type RoutingChoice = 'MicrosoftRouting' | 'InternetRouting';
*/
export type GeoReplicationStatus = 'Live' | 'Bootstrap' | 'Unavailable';

/**
* Defines values for BlobRestoreProgressStatus.
* Possible values include: 'InProgress', 'Complete', 'Failed'
* @readonly
* @enum {string}
*/
export type BlobRestoreProgressStatus = 'InProgress' | 'Complete' | 'Failed';

/**
* Defines values for ProvisioningState.
* Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded'
Expand Down Expand Up @@ -2489,13 +2566,29 @@ export type ImmutabilityPolicyState = 'Locked' | 'Unlocked';
*/
export type ImmutabilityPolicyUpdateType = 'put' | 'lock' | 'extend';

/**
* Defines values for EnabledProtocols.
* Possible values include: 'SMB', 'NFS'
* @readonly
* @enum {string}
*/
export type EnabledProtocols = 'SMB' | 'NFS';

/**
* Defines values for RootSquashType.
* Possible values include: 'NoRootSquash', 'RootSquash', 'AllSquash'
* @readonly
* @enum {string}
*/
export type RootSquashType = 'NoRootSquash' | 'RootSquash' | 'AllSquash';

/**
* Defines values for StorageAccountExpand.
* Possible values include: 'geoReplicationStats'
* Possible values include: 'geoReplicationStats', 'blobRestoreStatus'
* @readonly
* @enum {string}
*/
export type StorageAccountExpand = 'geoReplicationStats';
export type StorageAccountExpand = 'geoReplicationStats' | 'blobRestoreStatus';

/**
* Defines values for ListKeyExpand.
Expand Down Expand Up @@ -2753,6 +2846,26 @@ export type StorageAccountsListServiceSASResponse = ListServiceSasResponse & {
};
};

/**
* Contains response data for the restoreBlobRanges operation.
*/
export type StorageAccountsRestoreBlobRangesResponse = BlobRestoreStatus & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: BlobRestoreStatus;
};
};

/**
* Contains response data for the beginCreate operation.
*/
Expand All @@ -2773,6 +2886,26 @@ export type StorageAccountsBeginCreateResponse = StorageAccount & {
};
};

/**
* Contains response data for the beginRestoreBlobRanges operation.
*/
export type StorageAccountsBeginRestoreBlobRangesResponse = BlobRestoreStatus & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: BlobRestoreStatus;
};
};

/**
* Contains response data for the listNext operation.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export {
AzureFilesIdentityBasedAuthentication,
BaseResource,
BlobContainer,
BlobRestoreParameters,
BlobRestoreRange,
BlobRestoreStatus,
BlobServiceProperties,
ChangeFeed,
CloudError,
Expand Down Expand Up @@ -51,6 +54,7 @@ export {
PrivateLinkServiceConnectionState,
ProxyResource,
Resource,
RestorePolicyProperties,
RoutingPreference,
Sku,
StorageAccount,
Expand Down
Loading