diff --git a/sdk/storage/arm-storage/README.md b/sdk/storage/arm-storage/README.md
index d95b62a15586..d165374aa6e5 100644
--- a/sdk/storage/arm-storage/README.md
+++ b/sdk/storage/arm-storage/README.md
@@ -1,89 +1,97 @@
## Azure StorageManagementClient SDK for JavaScript
-This package contains an isomorphic SDK for StorageManagementClient.
+This package contains an isomorphic SDK (runs both in node.js and in browsers) for StorageManagementClient.
### Currently supported environments
-- Node.js version 6.x.x or higher
-- Browser JavaScript
+- [LTS versions of Node.js](https://nodejs.org/about/releases/)
+- Latest versions of Safari, Chrome, Edge and Firefox.
-### How to Install
+### Prerequisites
+You must have an [Azure subscription](https://azure.microsoft.com/free/).
+
+### How to install
+
+To use this SDK in your project, you will need to install two packages.
+- `@azure/arm-storage` that contains the client.
+- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory.
+
+Install both packages using the below command:
```bash
-npm install @azure/arm-storage
+npm install --save @azure/arm-storage @azure/identity
```
+> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
+If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
### How to use
-#### nodejs - client creation and list operations as an example written in TypeScript.
+- If you are writing a client side browser application,
+ - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions.
+ - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below.
+- If you are writing a server side application,
+ - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples)
+ - Complete the set up steps required by the credential if any.
+ - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below.
-##### Install @azure/ms-rest-nodeauth
-
-- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
-```bash
-npm install @azure/ms-rest-nodeauth@"^3.0.0"
-```
+In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
+Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
+#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript.
##### Sample code
-While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
-```typescript
-const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
+```javascript
+const { DefaultAzureCredential } = require("@azure/identity");
const { StorageManagementClient } = require("@azure/arm-storage");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-msRestNodeAuth.interactiveLogin().then((creds) => {
- const client = new StorageManagementClient(creds, subscriptionId);
- client.operations.list().then((result) => {
- console.log("The result is:");
- console.log(result);
- });
+// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples
+// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
+const creds = new DefaultAzureCredential();
+const client = new StorageManagementClient(creds, subscriptionId);
+client.operations.list().then((result) => {
+ console.log("The result is:");
+ console.log(result);
}).catch((err) => {
+ console.log("An error occurred:");
console.error(err);
});
```
-#### browser - Authentication, client creation and list operations as an example written in JavaScript.
+#### browser - Authentication, client creation, and list operations as an example written in JavaScript.
-##### Install @azure/ms-rest-browserauth
-
-```bash
-npm install @azure/ms-rest-browserauth
-```
+In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
+ - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
+ - Note down the client Id from the previous step and use it in the browser sample below.
##### Sample code
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
-
- index.html
+
```html
@azure/arm-storage sample
-
-
+
diff --git a/sdk/storage/arm-storage/package.json b/sdk/storage/arm-storage/package.json
index f1ec9c4fe09c..34a7fb18a3d4 100644
--- a/sdk/storage/arm-storage/package.json
+++ b/sdk/storage/arm-storage/package.json
@@ -4,8 +4,9 @@
"description": "StorageManagementClient Library with typescript type definitions for node.js and browser.",
"version": "16.0.0",
"dependencies": {
- "@azure/ms-rest-azure-js": "^2.0.1",
- "@azure/ms-rest-js": "^2.0.4",
+ "@azure/ms-rest-azure-js": "^2.1.0",
+ "@azure/ms-rest-js": "^2.2.0",
+ "@azure/core-auth": "^1.1.4",
"tslib": "^1.10.0"
},
"keywords": [
@@ -20,13 +21,13 @@
"module": "./esm/storageManagementClient.js",
"types": "./esm/storageManagementClient.d.ts",
"devDependencies": {
- "typescript": "^3.5.3",
+ "typescript": "^3.6.0",
"rollup": "^1.18.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
- "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/arm-storage",
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/arm-storage",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
diff --git a/sdk/storage/arm-storage/src/models/blobContainersMappers.ts b/sdk/storage/arm-storage/src/models/blobContainersMappers.ts
index 43270cd72b97..d60a4536e816 100644
--- a/sdk/storage/arm-storage/src/models/blobContainersMappers.ts
+++ b/sdk/storage/arm-storage/src/models/blobContainersMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
ActiveDirectoryProperties,
AzureEntityResource,
AzureFilesIdentityBasedAuthentication,
@@ -50,6 +51,7 @@ export {
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
@@ -88,6 +90,7 @@ export {
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/models/blobInventoryPoliciesMappers.ts b/sdk/storage/arm-storage/src/models/blobInventoryPoliciesMappers.ts
index 4a4d91547568..451ad7eb3e80 100644
--- a/sdk/storage/arm-storage/src/models/blobInventoryPoliciesMappers.ts
+++ b/sdk/storage/arm-storage/src/models/blobInventoryPoliciesMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
ActiveDirectoryProperties,
AzureEntityResource,
AzureFilesIdentityBasedAuthentication,
@@ -46,6 +47,7 @@ export {
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
@@ -81,6 +83,7 @@ export {
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/models/blobServicesMappers.ts b/sdk/storage/arm-storage/src/models/blobServicesMappers.ts
index 23e455587a22..fb01c907a21f 100644
--- a/sdk/storage/arm-storage/src/models/blobServicesMappers.ts
+++ b/sdk/storage/arm-storage/src/models/blobServicesMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
ActiveDirectoryProperties,
AzureEntityResource,
AzureFilesIdentityBasedAuthentication,
@@ -46,6 +47,7 @@ export {
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
@@ -80,6 +82,7 @@ export {
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/models/deletedAccountsMappers.ts b/sdk/storage/arm-storage/src/models/deletedAccountsMappers.ts
index 3a2cc414902c..38748274aa96 100644
--- a/sdk/storage/arm-storage/src/models/deletedAccountsMappers.ts
+++ b/sdk/storage/arm-storage/src/models/deletedAccountsMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
ActiveDirectoryProperties,
AzureEntityResource,
AzureFilesIdentityBasedAuthentication,
@@ -47,6 +48,7 @@ export {
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
@@ -81,6 +83,7 @@ export {
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/models/encryptionScopesMappers.ts b/sdk/storage/arm-storage/src/models/encryptionScopesMappers.ts
index e34906e449a6..7f42826a7b71 100644
--- a/sdk/storage/arm-storage/src/models/encryptionScopesMappers.ts
+++ b/sdk/storage/arm-storage/src/models/encryptionScopesMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
ActiveDirectoryProperties,
AzureEntityResource,
AzureFilesIdentityBasedAuthentication,
@@ -48,6 +49,7 @@ export {
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
@@ -82,6 +84,7 @@ export {
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/models/fileServicesMappers.ts b/sdk/storage/arm-storage/src/models/fileServicesMappers.ts
index 5460b2163742..9e5e18fd606a 100644
--- a/sdk/storage/arm-storage/src/models/fileServicesMappers.ts
+++ b/sdk/storage/arm-storage/src/models/fileServicesMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
ActiveDirectoryProperties,
AzureEntityResource,
AzureFilesIdentityBasedAuthentication,
@@ -46,6 +47,7 @@ export {
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
@@ -80,6 +82,7 @@ export {
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/models/fileSharesMappers.ts b/sdk/storage/arm-storage/src/models/fileSharesMappers.ts
index 7c5c3bd5d89f..4ba10044d548 100644
--- a/sdk/storage/arm-storage/src/models/fileSharesMappers.ts
+++ b/sdk/storage/arm-storage/src/models/fileSharesMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
ActiveDirectoryProperties,
AzureEntityResource,
AzureFilesIdentityBasedAuthentication,
@@ -43,15 +44,19 @@ export {
FileShare,
FileShareItem,
FileShareItems,
+ FileSharesLeaseHeaders,
GeoReplicationStats,
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
KeyVaultProperties,
LastAccessTimeTrackingPolicy,
+ LeaseShareRequest,
+ LeaseShareResponse,
LegalHoldProperties,
ListContainerItem,
ListQueue,
@@ -81,6 +86,7 @@ export {
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/models/index.ts b/sdk/storage/arm-storage/src/models/index.ts
index c2d615086431..6f474cd534df 100644
--- a/sdk/storage/arm-storage/src/models/index.ts
+++ b/sdk/storage/arm-storage/src/models/index.ts
@@ -440,8 +440,8 @@ export interface VirtualNetworkRule {
*/
action?: Action;
/**
- * Gets the state of virtual network rule. Possible values include: 'provisioning',
- * 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted'
+ * Gets the state of virtual network rule. Possible values include: 'Provisioning',
+ * 'Deprovisioning', 'Succeeded', 'Failed', 'NetworkSourceDeleted'
*/
state?: State;
}
@@ -532,6 +532,13 @@ export interface AzureFilesIdentityBasedAuthentication {
* Required if choose AD.
*/
activeDirectoryProperties?: ActiveDirectoryProperties;
+ /**
+ * Default share permission for users using Kerberos authentication if RBAC role is not assigned.
+ * Possible values include: 'None', 'StorageFileDataSmbShareReader',
+ * 'StorageFileDataSmbShareContributor', 'StorageFileDataSmbShareElevatedContributor',
+ * 'StorageFileDataSmbShareOwner'
+ */
+ defaultSharePermission?: DefaultSharePermission;
}
/**
@@ -717,6 +724,11 @@ export interface StorageAccountCreateParameters {
* NFS 3.0 protocol support enabled if set to true.
*/
enableNfsV3?: boolean;
+ /**
+ * Allow or disallow cross AAD tenant object replication. The default interpretation is true for
+ * this property.
+ */
+ allowCrossTenantReplication?: boolean;
}
/**
@@ -993,7 +1005,8 @@ export interface PrivateEndpointConnection extends Resource {
* and a location
* @summary Proxy Resource
*/
-export interface ProxyResource extends Resource {}
+export interface ProxyResource extends Resource {
+}
/**
* Deleted storage account
@@ -1218,6 +1231,11 @@ export interface StorageAccount extends TrackedResource {
* NFS 3.0 protocol support enabled if set to true.
*/
enableNfsV3?: boolean;
+ /**
+ * Allow or disallow cross AAD tenant object replication. The default interpretation is true for
+ * this property.
+ */
+ allowCrossTenantReplication?: boolean;
}
/**
@@ -1350,6 +1368,11 @@ export interface StorageAccountUpdateParameters {
* equivalent to true.
*/
allowSharedKeyAccess?: boolean;
+ /**
+ * Allow or disallow cross AAD tenant object replication. The default interpretation is true for
+ * this property.
+ */
+ allowCrossTenantReplication?: boolean;
/**
* Optional. Indicates the type of storage account. Currently only StorageV2 value supported by
* server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage',
@@ -1875,11 +1898,13 @@ export interface ObjectReplicationPolicy extends Resource {
*/
readonly enabledTime?: Date;
/**
- * Required. Source account name.
+ * Required. Source account name. It should be full resource id if allowCrossTenantReplication
+ * set to false.
*/
sourceAccount: string;
/**
- * Required. Destination account name.
+ * Required. Destination account name. It should be full resource id if
+ * allowCrossTenantReplication set to false.
*/
destinationAccount: string;
/**
@@ -1889,7 +1914,10 @@ export interface ObjectReplicationPolicy extends Resource {
}
/**
- * An object that defines the blob inventory rule filter conditions.
+ * An object that defines the blob inventory rule filter conditions. For 'Blob'
+ * definition.objectType all filter properties are applicable, 'blobTypes' is required and others
+ * are optional. For 'Container' definition.objectType only prefixMatch is applicable and is
+ * optional.
*/
export interface BlobInventoryPolicyFilter {
/**
@@ -1898,27 +1926,60 @@ export interface BlobInventoryPolicyFilter {
prefixMatch?: string[];
/**
* An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns
- * accounts does not support pageBlobs.
+ * accounts does not support pageBlobs. This field is required when definition.objectType
+ * property is set to 'Blob'.
*/
- blobTypes: string[];
+ blobTypes?: string[];
/**
- * Includes blob versions in blob inventory when value set to true.
+ * Includes blob versions in blob inventory when value is set to true. The
+ * definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property
+ * is set to true, else they must be excluded.
*/
includeBlobVersions?: boolean;
/**
- * Includes blob snapshots in blob inventory when value set to true.
+ * Includes blob snapshots in blob inventory when value is set to true. The
+ * definition.schemaFields value 'Snapshot' is required if this property is set to true, else it
+ * must be excluded.
*/
includeSnapshots?: boolean;
}
/**
- * An object that defines the blob inventory rule. Each definition consists of a set of filters.
+ * An object that defines the blob inventory rule.
*/
export interface BlobInventoryPolicyDefinition {
/**
* An object that defines the filter set.
*/
- filters: BlobInventoryPolicyFilter;
+ filters?: BlobInventoryPolicyFilter;
+ /**
+ * This is a required field, it specifies the format for the inventory files. Possible values
+ * include: 'Csv', 'Parquet'
+ */
+ format: Format;
+ /**
+ * This is a required field. This field is used to schedule an inventory formation. Possible
+ * values include: 'Daily', 'Weekly'
+ */
+ schedule: Schedule;
+ /**
+ * This is a required field. This field specifies the scope of the inventory created either at
+ * the blob or container level. Possible values include: 'Blob', 'Container'
+ */
+ objectType: ObjectType;
+ /**
+ * This is a required field. This field specifies the fields and properties of the object to be
+ * included in the inventory. The Schema field value 'Name' is always required. The valid values
+ * for this field for the 'Blob' definition.objectType include 'Name, Creation-Time,
+ * Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime,
+ * Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId,
+ * IsCurrentVersion, Metadata, LastAccessTime'. The valid values for 'Container'
+ * definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState,
+ * LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold'. Schema field values
+ * 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl' are valid only for Hns enabled
+ * accounts.
+ */
+ schemaFields: string[];
}
/**
@@ -1934,6 +1995,10 @@ export interface BlobInventoryPolicyRule {
* case-sensitive. It must be unique within a policy.
*/
name: string;
+ /**
+ * Container name where blob inventory files are stored. Must be pre-created.
+ */
+ destination: string;
/**
* An object that defines the blob inventory policy rule.
*/
@@ -1948,10 +2013,6 @@ export interface BlobInventoryPolicySchema {
* Policy is enabled if set to true.
*/
enabled: boolean;
- /**
- * Container name where blob inventory files are stored. Must be pre-created.
- */
- destination: string;
/**
* The storage account blob inventory policy rules. The rule is applied when it is enabled.
*/
@@ -2192,6 +2253,28 @@ export interface LegalHoldProperties {
tags?: TagProperty[];
}
+/**
+ * Object level immutability properties of the container.
+ */
+export interface ImmutableStorageWithVersioning {
+ /**
+ * This is an immutable property, when set to true it enables object level immutability at the
+ * container level.
+ */
+ enabled?: boolean;
+ /**
+ * Returns the date and time the object level immutability was enabled.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly timeStamp?: Date;
+ /**
+ * This property denotes the container level immutability to object level immutability migration
+ * state. Possible values include: 'InProgress', 'Completed'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly migrationState?: MigrationState;
+}
+
/**
* Properties of the blob container, including Id, resource name, resource type, Etag.
*/
@@ -2280,6 +2363,12 @@ export interface BlobContainer extends AzureEntityResource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly hasImmutabilityPolicy?: boolean;
+ /**
+ * The object level immutability property of the container. The property is immutable and can
+ * only be set to true at the container creation time. Existing containers must undergo a
+ * migration process.
+ */
+ immutableStorageWithVersioning?: ImmutableStorageWithVersioning;
}
/**
@@ -2412,6 +2501,12 @@ export interface ListContainerItem extends AzureEntityResource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly hasImmutabilityPolicy?: boolean;
+ /**
+ * The object level immutability property of the container. The property is immutable and can
+ * only be set to true at the container creation time. Existing containers must undergo a
+ * migration process.
+ */
+ immutableStorageWithVersioning?: ImmutableStorageWithVersioning;
}
/**
@@ -2716,6 +2811,38 @@ export interface FileServiceItems {
readonly value?: FileServiceProperties[];
}
+/**
+ * An interface representing AccessPolicy.
+ */
+export interface AccessPolicy {
+ /**
+ * Start time of the access policy
+ */
+ startTime?: Date;
+ /**
+ * Expiry time of the access policy
+ */
+ expiryTime?: Date;
+ /**
+ * List of abbreviated permissions.
+ */
+ permission?: string;
+}
+
+/**
+ * An interface representing SignedIdentifier.
+ */
+export interface SignedIdentifier {
+ /**
+ * An unique identifier of the stored access policy.
+ */
+ id?: string;
+ /**
+ * Access policy
+ */
+ accessPolicy?: AccessPolicy;
+}
+
/**
* Properties of the file share, including Id, resource name, resource type, Etag.
*/
@@ -2786,6 +2913,27 @@ export interface FileShare extends AzureEntityResource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly shareUsageBytes?: number;
+ /**
+ * The lease status of the share. Possible values include: 'Locked', 'Unlocked'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly leaseStatus?: LeaseStatus;
+ /**
+ * Lease state of the share. Possible values include: 'Available', 'Leased', 'Expired',
+ * 'Breaking', 'Broken'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly leaseState?: LeaseState;
+ /**
+ * Specifies whether the lease on a share is of infinite or fixed duration, only when the share
+ * is leased. Possible values include: 'Infinite', 'Fixed'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly leaseDuration?: LeaseDuration;
+ /**
+ * List of stored access policies specified on the share.
+ */
+ signedIdentifiers?: SignedIdentifier[];
/**
* Creation time of share snapshot returned in the response of list shares with expand param
* "snapshots".
@@ -2878,6 +3026,27 @@ export interface FileShareItem extends AzureEntityResource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly shareUsageBytes?: number;
+ /**
+ * The lease status of the share. Possible values include: 'Locked', 'Unlocked'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly leaseStatus?: LeaseStatus;
+ /**
+ * Lease state of the share. Possible values include: 'Available', 'Leased', 'Expired',
+ * 'Breaking', 'Broken'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly leaseState?: LeaseState;
+ /**
+ * Specifies whether the lease on a share is of infinite or fixed duration, only when the share
+ * is leased. Possible values include: 'Infinite', 'Fixed'
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly leaseDuration?: LeaseDuration;
+ /**
+ * List of stored access policies specified on the share.
+ */
+ signedIdentifiers?: SignedIdentifier[];
/**
* Creation time of share snapshot returned in the response of list shares with expand param
* "snapshots".
@@ -2886,6 +3055,50 @@ export interface FileShareItem extends AzureEntityResource {
readonly snapshotTime?: Date;
}
+/**
+ * Lease Share request schema.
+ */
+export interface LeaseShareRequest {
+ /**
+ * Specifies the lease action. Can be one of the available actions. Possible values include:
+ * 'Acquire', 'Renew', 'Change', 'Release', 'Break'
+ */
+ action: LeaseShareAction;
+ /**
+ * Identifies the lease. Can be specified in any valid GUID string format.
+ */
+ leaseId?: string;
+ /**
+ * Optional. For a break action, proposed duration the lease should continue before it is broken,
+ * in seconds, between 0 and 60.
+ */
+ breakPeriod?: number;
+ /**
+ * Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1)
+ * for a lease that never expires.
+ */
+ leaseDuration?: number;
+ /**
+ * Optional for acquire, required for change. Proposed lease ID, in a GUID string format.
+ */
+ proposedLeaseId?: string;
+}
+
+/**
+ * Lease Share response schema.
+ */
+export interface LeaseShareResponse {
+ /**
+ * Returned unique lease ID that must be included with any request to delete the share, or to
+ * renew, change, or release the lease.
+ */
+ leaseId?: string;
+ /**
+ * Approximate time remaining in the lease period, in seconds.
+ */
+ leaseTimeSeconds?: string;
+}
+
/**
* The properties of a storage account’s Queue service.
*/
@@ -2995,8 +3208,7 @@ export interface StorageAccountsListKeysOptionalParams extends msRest.RequestOpt
/**
* Optional Parameters.
*/
-export interface BlobInventoryPoliciesCreateOrUpdateOptionalParams
- extends msRest.RequestOptionsBase {
+export interface BlobInventoryPoliciesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase {
systemData?: SystemData;
}
@@ -3022,8 +3234,7 @@ export interface BlobContainersListOptionalParams extends msRest.RequestOptionsB
/**
* Optional Parameters.
*/
-export interface BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams
- extends msRest.RequestOptionsBase {
+export interface BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams extends msRest.RequestOptionsBase {
/**
* The entity state (ETag) version of the immutability policy to update. A value of "*" can be
* used to apply the operation only if the immutability policy already exists. If omitted, this
@@ -3046,8 +3257,7 @@ export interface BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams
/**
* Optional Parameters.
*/
-export interface BlobContainersGetImmutabilityPolicyOptionalParams
- extends msRest.RequestOptionsBase {
+export interface BlobContainersGetImmutabilityPolicyOptionalParams extends msRest.RequestOptionsBase {
/**
* The entity state (ETag) version of the immutability policy to update. A value of "*" can be
* used to apply the operation only if the immutability policy already exists. If omitted, this
@@ -3059,8 +3269,7 @@ export interface BlobContainersGetImmutabilityPolicyOptionalParams
/**
* Optional Parameters.
*/
-export interface BlobContainersExtendImmutabilityPolicyOptionalParams
- extends msRest.RequestOptionsBase {
+export interface BlobContainersExtendImmutabilityPolicyOptionalParams extends msRest.RequestOptionsBase {
/**
* The immutability period for the blobs in the container since the policy creation, in days.
*/
@@ -3116,10 +3325,10 @@ export interface FileSharesListOptionalParams extends msRest.RequestOptionsBase
*/
filter?: string;
/**
- * Optional, used to expand the properties within share's properties. Possible values include:
- * 'deleted', 'snapshots'
+ * Optional, used to expand the properties within share's properties. Valid values are: deleted,
+ * snapshots. Should be passed as a string with delimiter ','
*/
- expand?: ListSharesExpand;
+ expand?: string;
}
/**
@@ -3127,9 +3336,10 @@ export interface FileSharesListOptionalParams extends msRest.RequestOptionsBase
*/
export interface FileSharesCreateOptionalParams extends msRest.RequestOptionsBase {
/**
- * Optional, used to create a snapshot. Possible values include: 'snapshots'
+ * Optional, used to expand the properties within share's properties. Valid values are:
+ * snapshots. Should be passed as a string with delimiter ','
*/
- expand?: PutSharesExpand;
+ expand?: string;
}
/**
@@ -3137,10 +3347,10 @@ export interface FileSharesCreateOptionalParams extends msRest.RequestOptionsBas
*/
export interface FileSharesGetOptionalParams extends msRest.RequestOptionsBase {
/**
- * Optional, used to expand the properties within share's properties. Possible values include:
- * 'stats'
+ * Optional, used to expand the properties within share's properties. Valid values are: stats.
+ * Should be passed as a string with delimiter ','.
*/
- expand?: GetShareExpand;
+ expand?: string;
/**
* Optional, used to retrieve properties of a snapshot.
*/
@@ -3155,6 +3365,29 @@ export interface FileSharesDeleteMethodOptionalParams extends msRest.RequestOpti
* Optional, used to delete a snapshot.
*/
xMsSnapshot?: string;
+ /**
+ * Optional. Valid values are: snapshots, leased-snapshots, none. The default value is snapshots.
+ * For 'snapshots', the file share is deleted including all of its file share snapshots. If the
+ * file share contains leased-snapshots, the deletion fails. For 'leased-snapshots', the file
+ * share is deleted included all of its file share snapshots (leased/unleased). For 'none', the
+ * file share is deleted if it has no share snapshots. If the file share contains any snapshots
+ * (leased or unleased), the deletion fails.
+ */
+ include?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface FileSharesLeaseOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * Lease Share request body.
+ */
+ parameters?: LeaseShareRequest;
+ /**
+ * Optional. Specify the snapshot time to lease a snapshot.
+ */
+ xMsSnapshot?: string;
}
/**
@@ -3170,10 +3403,10 @@ export interface FileSharesListNextOptionalParams extends msRest.RequestOptionsB
*/
filter?: string;
/**
- * Optional, used to expand the properties within share's properties. Possible values include:
- * 'deleted', 'snapshots'
+ * Optional, used to expand the properties within share's properties. Valid values are: deleted,
+ * snapshots. Should be passed as a string with delimiter ','
*/
- expand?: ListSharesExpand;
+ expand?: string;
}
/**
@@ -3317,20 +3550,34 @@ export interface BlobContainersExtendImmutabilityPolicyHeaders {
eTag: string;
}
+/**
+ * Defines headers for Lease operation.
+ */
+export interface FileSharesLeaseHeaders {
+ /**
+ * The ETag HTTP response header. This is an opaque string. You can use it to detect whether the
+ * resource has changed between requests. In particular, you can pass the ETag to one of the
+ * If-Match or If-None-Match headers.
+ */
+ eTag: string;
+}
+
/**
* @interface
* Result of the request to list Storage operations. It contains a list of operations and a URL
* link to get the next set of results.
* @extends Array
*/
-export interface OperationListResult extends Array {}
+export interface OperationListResult extends Array {
+}
/**
* @interface
* The response from the List Storage SKUs operation.
* @extends Array
*/
-export interface StorageSkuListResult extends Array {}
+export interface StorageSkuListResult extends Array {
+}
/**
* @interface
@@ -3365,28 +3612,32 @@ export interface DeletedAccountListResult extends Array {
* The response from the List Usages operation.
* @extends Array
*/
-export interface UsageListResult extends Array {}
+export interface UsageListResult extends Array {
+}
/**
* @interface
* List of blob inventory policies returned.
* @extends Array
*/
-export interface ListBlobInventoryPolicy extends Array {}
+export interface ListBlobInventoryPolicy extends Array {
+}
/**
* @interface
* List of private endpoint connection associated with the specified storage account
* @extends Array
*/
-export interface PrivateEndpointConnectionListResult extends Array {}
+export interface PrivateEndpointConnectionListResult extends Array {
+}
/**
* @interface
* List storage account object replication policies.
* @extends Array
*/
-export interface ObjectReplicationPolicies extends Array {}
+export interface ObjectReplicationPolicies extends Array {
+}
/**
* @interface
@@ -3408,7 +3659,8 @@ export interface EncryptionScopeListResult extends Array {
* An interface representing the BlobServiceItems.
* @extends Array
*/
-export interface BlobServiceItems extends Array {}
+export interface BlobServiceItems extends Array {
+}
/**
* @interface
@@ -3472,7 +3724,7 @@ export interface ListTableResource extends Array {
* @readonly
* @enum {string}
*/
-export type ReasonCode = "QuotaId" | "NotAvailableForSubscription";
+export type ReasonCode = 'QuotaId' | 'NotAvailableForSubscription';
/**
* Defines values for SkuName.
@@ -3481,15 +3733,7 @@ export type ReasonCode = "QuotaId" | "NotAvailableForSubscription";
* @readonly
* @enum {string}
*/
-export type SkuName =
- | "Standard_LRS"
- | "Standard_GRS"
- | "Standard_RAGRS"
- | "Standard_ZRS"
- | "Premium_LRS"
- | "Premium_ZRS"
- | "Standard_GZRS"
- | "Standard_RAGZRS";
+export type SkuName = 'Standard_LRS' | 'Standard_GRS' | 'Standard_RAGRS' | 'Standard_ZRS' | 'Premium_LRS' | 'Premium_ZRS' | 'Standard_GZRS' | 'Standard_RAGZRS';
/**
* Defines values for SkuTier.
@@ -3497,7 +3741,7 @@ export type SkuName =
* @readonly
* @enum {string}
*/
-export type SkuTier = "Standard" | "Premium";
+export type SkuTier = 'Standard' | 'Premium';
/**
* Defines values for Kind.
@@ -3506,7 +3750,7 @@ export type SkuTier = "Standard" | "Premium";
* @readonly
* @enum {string}
*/
-export type Kind = "Storage" | "StorageV2" | "BlobStorage" | "FileStorage" | "BlockBlobStorage";
+export type Kind = 'Storage' | 'StorageV2' | 'BlobStorage' | 'FileStorage' | 'BlockBlobStorage';
/**
* Defines values for Reason.
@@ -3514,7 +3758,7 @@ export type Kind = "Storage" | "StorageV2" | "BlobStorage" | "FileStorage" | "Bl
* @readonly
* @enum {string}
*/
-export type Reason = "AccountNameInvalid" | "AlreadyExists";
+export type Reason = 'AccountNameInvalid' | 'AlreadyExists';
/**
* Defines values for KeyType.
@@ -3522,7 +3766,7 @@ export type Reason = "AccountNameInvalid" | "AlreadyExists";
* @readonly
* @enum {string}
*/
-export type KeyType = "Service" | "Account";
+export type KeyType = 'Service' | 'Account';
/**
* Defines values for KeySource.
@@ -3530,7 +3774,7 @@ export type KeyType = "Service" | "Account";
* @readonly
* @enum {string}
*/
-export type KeySource = "Microsoft.Storage" | "Microsoft.Keyvault";
+export type KeySource = 'Microsoft.Storage' | 'Microsoft.Keyvault';
/**
* Defines values for Action.
@@ -3538,21 +3782,16 @@ export type KeySource = "Microsoft.Storage" | "Microsoft.Keyvault";
* @readonly
* @enum {string}
*/
-export type Action = "Allow";
+export type Action = 'Allow';
/**
* Defines values for State.
- * Possible values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed',
- * 'networkSourceDeleted'
+ * Possible values include: 'Provisioning', 'Deprovisioning', 'Succeeded', 'Failed',
+ * 'NetworkSourceDeleted'
* @readonly
* @enum {string}
*/
-export type State =
- | "provisioning"
- | "deprovisioning"
- | "succeeded"
- | "failed"
- | "networkSourceDeleted";
+export type State = 'Provisioning' | 'Deprovisioning' | 'Succeeded' | 'Failed' | 'NetworkSourceDeleted';
/**
* Defines values for Bypass.
@@ -3560,7 +3799,7 @@ export type State =
* @readonly
* @enum {string}
*/
-export type Bypass = "None" | "Logging" | "Metrics" | "AzureServices";
+export type Bypass = 'None' | 'Logging' | 'Metrics' | 'AzureServices';
/**
* Defines values for DefaultAction.
@@ -3568,7 +3807,7 @@ export type Bypass = "None" | "Logging" | "Metrics" | "AzureServices";
* @readonly
* @enum {string}
*/
-export type DefaultAction = "Allow" | "Deny";
+export type DefaultAction = 'Allow' | 'Deny';
/**
* Defines values for DirectoryServiceOptions.
@@ -3576,7 +3815,17 @@ export type DefaultAction = "Allow" | "Deny";
* @readonly
* @enum {string}
*/
-export type DirectoryServiceOptions = "None" | "AADDS" | "AD";
+export type DirectoryServiceOptions = 'None' | 'AADDS' | 'AD';
+
+/**
+ * Defines values for DefaultSharePermission.
+ * Possible values include: 'None', 'StorageFileDataSmbShareReader',
+ * 'StorageFileDataSmbShareContributor', 'StorageFileDataSmbShareElevatedContributor',
+ * 'StorageFileDataSmbShareOwner'
+ * @readonly
+ * @enum {string}
+ */
+export type DefaultSharePermission = 'None' | 'StorageFileDataSmbShareReader' | 'StorageFileDataSmbShareContributor' | 'StorageFileDataSmbShareElevatedContributor' | 'StorageFileDataSmbShareOwner';
/**
* Defines values for AccessTier.
@@ -3584,7 +3833,7 @@ export type DirectoryServiceOptions = "None" | "AADDS" | "AD";
* @readonly
* @enum {string}
*/
-export type AccessTier = "Hot" | "Cool";
+export type AccessTier = 'Hot' | 'Cool';
/**
* Defines values for LargeFileSharesState.
@@ -3592,7 +3841,7 @@ export type AccessTier = "Hot" | "Cool";
* @readonly
* @enum {string}
*/
-export type LargeFileSharesState = "Disabled" | "Enabled";
+export type LargeFileSharesState = 'Disabled' | 'Enabled';
/**
* Defines values for RoutingChoice.
@@ -3600,7 +3849,7 @@ export type LargeFileSharesState = "Disabled" | "Enabled";
* @readonly
* @enum {string}
*/
-export type RoutingChoice = "MicrosoftRouting" | "InternetRouting";
+export type RoutingChoice = 'MicrosoftRouting' | 'InternetRouting';
/**
* Defines values for MinimumTlsVersion.
@@ -3608,7 +3857,7 @@ export type RoutingChoice = "MicrosoftRouting" | "InternetRouting";
* @readonly
* @enum {string}
*/
-export type MinimumTlsVersion = "TLS1_0" | "TLS1_1" | "TLS1_2";
+export type MinimumTlsVersion = 'TLS1_0' | 'TLS1_1' | 'TLS1_2';
/**
* Defines values for IdentityType.
@@ -3616,11 +3865,7 @@ export type MinimumTlsVersion = "TLS1_0" | "TLS1_1" | "TLS1_2";
* @readonly
* @enum {string}
*/
-export type IdentityType =
- | "None"
- | "SystemAssigned"
- | "UserAssigned"
- | "SystemAssigned,UserAssigned";
+export type IdentityType = 'None' | 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned';
/**
* Defines values for ExtendedLocationTypes.
@@ -3628,7 +3873,7 @@ export type IdentityType =
* @readonly
* @enum {string}
*/
-export type ExtendedLocationTypes = "EdgeZone";
+export type ExtendedLocationTypes = 'EdgeZone';
/**
* Defines values for GeoReplicationStatus.
@@ -3636,7 +3881,7 @@ export type ExtendedLocationTypes = "EdgeZone";
* @readonly
* @enum {string}
*/
-export type GeoReplicationStatus = "Live" | "Bootstrap" | "Unavailable";
+export type GeoReplicationStatus = 'Live' | 'Bootstrap' | 'Unavailable';
/**
* Defines values for BlobRestoreProgressStatus.
@@ -3644,7 +3889,7 @@ export type GeoReplicationStatus = "Live" | "Bootstrap" | "Unavailable";
* @readonly
* @enum {string}
*/
-export type BlobRestoreProgressStatus = "InProgress" | "Complete" | "Failed";
+export type BlobRestoreProgressStatus = 'InProgress' | 'Complete' | 'Failed';
/**
* Defines values for ProvisioningState.
@@ -3652,7 +3897,7 @@ export type BlobRestoreProgressStatus = "InProgress" | "Complete" | "Failed";
* @readonly
* @enum {string}
*/
-export type ProvisioningState = "Creating" | "ResolvingDNS" | "Succeeded";
+export type ProvisioningState = 'Creating' | 'ResolvingDNS' | 'Succeeded';
/**
* Defines values for AccountStatus.
@@ -3660,7 +3905,7 @@ export type ProvisioningState = "Creating" | "ResolvingDNS" | "Succeeded";
* @readonly
* @enum {string}
*/
-export type AccountStatus = "available" | "unavailable";
+export type AccountStatus = 'available' | 'unavailable';
/**
* Defines values for PrivateEndpointServiceConnectionStatus.
@@ -3668,7 +3913,7 @@ export type AccountStatus = "available" | "unavailable";
* @readonly
* @enum {string}
*/
-export type PrivateEndpointServiceConnectionStatus = "Pending" | "Approved" | "Rejected";
+export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected';
/**
* Defines values for PrivateEndpointConnectionProvisioningState.
@@ -3676,11 +3921,7 @@ export type PrivateEndpointServiceConnectionStatus = "Pending" | "Approved" | "R
* @readonly
* @enum {string}
*/
-export type PrivateEndpointConnectionProvisioningState =
- | "Succeeded"
- | "Creating"
- | "Deleting"
- | "Failed";
+export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed';
/**
* Defines values for KeyPermission.
@@ -3688,7 +3929,7 @@ export type PrivateEndpointConnectionProvisioningState =
* @readonly
* @enum {string}
*/
-export type KeyPermission = "Read" | "Full";
+export type KeyPermission = 'Read' | 'Full';
/**
* Defines values for UsageUnit.
@@ -3697,13 +3938,7 @@ export type KeyPermission = "Read" | "Full";
* @readonly
* @enum {string}
*/
-export type UsageUnit =
- | "Count"
- | "Bytes"
- | "Seconds"
- | "Percent"
- | "CountsPerSecond"
- | "BytesPerSecond";
+export type UsageUnit = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountsPerSecond' | 'BytesPerSecond';
/**
* Defines values for Services.
@@ -3711,7 +3946,7 @@ export type UsageUnit =
* @readonly
* @enum {string}
*/
-export type Services = "b" | "q" | "t" | "f";
+export type Services = 'b' | 'q' | 't' | 'f';
/**
* Defines values for SignedResourceTypes.
@@ -3719,7 +3954,7 @@ export type Services = "b" | "q" | "t" | "f";
* @readonly
* @enum {string}
*/
-export type SignedResourceTypes = "s" | "c" | "o";
+export type SignedResourceTypes = 's' | 'c' | 'o';
/**
* Defines values for Permissions.
@@ -3727,7 +3962,7 @@ export type SignedResourceTypes = "s" | "c" | "o";
* @readonly
* @enum {string}
*/
-export type Permissions = "r" | "d" | "w" | "l" | "a" | "c" | "u" | "p";
+export type Permissions = 'r' | 'd' | 'w' | 'l' | 'a' | 'c' | 'u' | 'p';
/**
* Defines values for HttpProtocol.
@@ -3735,7 +3970,7 @@ export type Permissions = "r" | "d" | "w" | "l" | "a" | "c" | "u" | "p";
* @readonly
* @enum {string}
*/
-export type HttpProtocol = "https,http" | "https";
+export type HttpProtocol = 'https,http' | 'https';
/**
* Defines values for SignedResource.
@@ -3743,7 +3978,7 @@ export type HttpProtocol = "https,http" | "https";
* @readonly
* @enum {string}
*/
-export type SignedResource = "b" | "c" | "f" | "s";
+export type SignedResource = 'b' | 'c' | 'f' | 's';
/**
* Defines values for EncryptionScopeSource.
@@ -3751,7 +3986,7 @@ export type SignedResource = "b" | "c" | "f" | "s";
* @readonly
* @enum {string}
*/
-export type EncryptionScopeSource = "Microsoft.Storage" | "Microsoft.KeyVault";
+export type EncryptionScopeSource = 'Microsoft.Storage' | 'Microsoft.KeyVault';
/**
* Defines values for EncryptionScopeState.
@@ -3759,7 +3994,31 @@ export type EncryptionScopeSource = "Microsoft.Storage" | "Microsoft.KeyVault";
* @readonly
* @enum {string}
*/
-export type EncryptionScopeState = "Enabled" | "Disabled";
+export type EncryptionScopeState = 'Enabled' | 'Disabled';
+
+/**
+ * Defines values for Format.
+ * Possible values include: 'Csv', 'Parquet'
+ * @readonly
+ * @enum {string}
+ */
+export type Format = 'Csv' | 'Parquet';
+
+/**
+ * Defines values for Schedule.
+ * Possible values include: 'Daily', 'Weekly'
+ * @readonly
+ * @enum {string}
+ */
+export type Schedule = 'Daily' | 'Weekly';
+
+/**
+ * Defines values for ObjectType.
+ * Possible values include: 'Blob', 'Container'
+ * @readonly
+ * @enum {string}
+ */
+export type ObjectType = 'Blob' | 'Container';
/**
* Defines values for CreatedByType.
@@ -3767,7 +4026,7 @@ export type EncryptionScopeState = "Enabled" | "Disabled";
* @readonly
* @enum {string}
*/
-export type CreatedByType = "User" | "Application" | "ManagedIdentity" | "Key";
+export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key';
/**
* Defines values for PublicAccess.
@@ -3775,7 +4034,7 @@ export type CreatedByType = "User" | "Application" | "ManagedIdentity" | "Key";
* @readonly
* @enum {string}
*/
-export type PublicAccess = "Container" | "Blob" | "None";
+export type PublicAccess = 'Container' | 'Blob' | 'None';
/**
* Defines values for LeaseStatus.
@@ -3783,7 +4042,7 @@ export type PublicAccess = "Container" | "Blob" | "None";
* @readonly
* @enum {string}
*/
-export type LeaseStatus = "Locked" | "Unlocked";
+export type LeaseStatus = 'Locked' | 'Unlocked';
/**
* Defines values for LeaseState.
@@ -3791,7 +4050,7 @@ export type LeaseStatus = "Locked" | "Unlocked";
* @readonly
* @enum {string}
*/
-export type LeaseState = "Available" | "Leased" | "Expired" | "Breaking" | "Broken";
+export type LeaseState = 'Available' | 'Leased' | 'Expired' | 'Breaking' | 'Broken';
/**
* Defines values for LeaseDuration.
@@ -3799,7 +4058,7 @@ export type LeaseState = "Available" | "Leased" | "Expired" | "Breaking" | "Brok
* @readonly
* @enum {string}
*/
-export type LeaseDuration = "Infinite" | "Fixed";
+export type LeaseDuration = 'Infinite' | 'Fixed';
/**
* Defines values for ImmutabilityPolicyState.
@@ -3807,7 +4066,7 @@ export type LeaseDuration = "Infinite" | "Fixed";
* @readonly
* @enum {string}
*/
-export type ImmutabilityPolicyState = "Locked" | "Unlocked";
+export type ImmutabilityPolicyState = 'Locked' | 'Unlocked';
/**
* Defines values for ImmutabilityPolicyUpdateType.
@@ -3815,7 +4074,15 @@ export type ImmutabilityPolicyState = "Locked" | "Unlocked";
* @readonly
* @enum {string}
*/
-export type ImmutabilityPolicyUpdateType = "put" | "lock" | "extend";
+export type ImmutabilityPolicyUpdateType = 'put' | 'lock' | 'extend';
+
+/**
+ * Defines values for MigrationState.
+ * Possible values include: 'InProgress', 'Completed'
+ * @readonly
+ * @enum {string}
+ */
+export type MigrationState = 'InProgress' | 'Completed';
/**
* Defines values for Name.
@@ -3823,7 +4090,7 @@ export type ImmutabilityPolicyUpdateType = "put" | "lock" | "extend";
* @readonly
* @enum {string}
*/
-export type Name = "AccessTimeTracking";
+export type Name = 'AccessTimeTracking';
/**
* Defines values for EnabledProtocols.
@@ -3831,7 +4098,7 @@ export type Name = "AccessTimeTracking";
* @readonly
* @enum {string}
*/
-export type EnabledProtocols = "SMB" | "NFS";
+export type EnabledProtocols = 'SMB' | 'NFS';
/**
* Defines values for RootSquashType.
@@ -3839,7 +4106,7 @@ export type EnabledProtocols = "SMB" | "NFS";
* @readonly
* @enum {string}
*/
-export type RootSquashType = "NoRootSquash" | "RootSquash" | "AllSquash";
+export type RootSquashType = 'NoRootSquash' | 'RootSquash' | 'AllSquash';
/**
* Defines values for ShareAccessTier.
@@ -3847,7 +4114,15 @@ export type RootSquashType = "NoRootSquash" | "RootSquash" | "AllSquash";
* @readonly
* @enum {string}
*/
-export type ShareAccessTier = "TransactionOptimized" | "Hot" | "Cool" | "Premium";
+export type ShareAccessTier = 'TransactionOptimized' | 'Hot' | 'Cool' | 'Premium';
+
+/**
+ * Defines values for LeaseShareAction.
+ * Possible values include: 'Acquire', 'Renew', 'Change', 'Release', 'Break'
+ * @readonly
+ * @enum {string}
+ */
+export type LeaseShareAction = 'Acquire' | 'Renew' | 'Change' | 'Release' | 'Break';
/**
* Defines values for StorageAccountExpand.
@@ -3855,7 +4130,7 @@ export type ShareAccessTier = "TransactionOptimized" | "Hot" | "Cool" | "Premium
* @readonly
* @enum {string}
*/
-export type StorageAccountExpand = "geoReplicationStats" | "blobRestoreStatus";
+export type StorageAccountExpand = 'geoReplicationStats' | 'blobRestoreStatus';
/**
* Defines values for ListKeyExpand.
@@ -3863,7 +4138,7 @@ export type StorageAccountExpand = "geoReplicationStats" | "blobRestoreStatus";
* @readonly
* @enum {string}
*/
-export type ListKeyExpand = "kerb";
+export type ListKeyExpand = 'kerb';
/**
* Defines values for ListContainersInclude.
@@ -3871,31 +4146,7 @@ export type ListKeyExpand = "kerb";
* @readonly
* @enum {string}
*/
-export type ListContainersInclude = "deleted";
-
-/**
- * Defines values for ListSharesExpand.
- * Possible values include: 'deleted', 'snapshots'
- * @readonly
- * @enum {string}
- */
-export type ListSharesExpand = "deleted" | "snapshots";
-
-/**
- * Defines values for PutSharesExpand.
- * Possible values include: 'snapshots'
- * @readonly
- * @enum {string}
- */
-export type PutSharesExpand = "snapshots";
-
-/**
- * Defines values for GetShareExpand.
- * Possible values include: 'stats'
- * @readonly
- * @enum {string}
- */
-export type GetShareExpand = "stats";
+export type ListContainersInclude = 'deleted';
/**
* Defines values for Action1.
@@ -3903,7 +4154,7 @@ export type GetShareExpand = "stats";
* @readonly
* @enum {string}
*/
-export type Action1 = "Acquire" | "Renew" | "Change" | "Release" | "Break";
+export type Action1 = 'Acquire' | 'Renew' | 'Change' | 'Release' | 'Break';
/**
* Contains response data for the list operation.
@@ -3913,16 +4164,16 @@ export type OperationsListResponse = OperationListResult & {
* 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: OperationListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: OperationListResult;
+ };
};
/**
@@ -3933,16 +4184,16 @@ export type SkusListResponse = StorageSkuListResult & {
* 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: StorageSkuListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: StorageSkuListResult;
+ };
};
/**
@@ -3953,16 +4204,16 @@ export type StorageAccountsCheckNameAvailabilityResponse = CheckNameAvailability
* 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: CheckNameAvailabilityResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: CheckNameAvailabilityResult;
+ };
};
/**
@@ -3973,16 +4224,16 @@ export type StorageAccountsCreateResponse = StorageAccount & {
* 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: StorageAccount;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: StorageAccount;
+ };
};
/**
@@ -3993,16 +4244,16 @@ export type StorageAccountsGetPropertiesResponse = StorageAccount & {
* 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: StorageAccount;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: StorageAccount;
+ };
};
/**
@@ -4013,36 +4264,36 @@ export type StorageAccountsUpdateResponse = StorageAccount & {
* 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: StorageAccount;
- };
-};
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
-/**
- * Contains response data for the list operation.
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: StorageAccount;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
*/
export type StorageAccountsListResponse = StorageAccountListResult & {
/**
* 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: StorageAccountListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: StorageAccountListResult;
+ };
};
/**
@@ -4053,16 +4304,16 @@ export type StorageAccountsListByResourceGroupResponse = StorageAccountListResul
* 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: StorageAccountListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: StorageAccountListResult;
+ };
};
/**
@@ -4073,16 +4324,16 @@ export type StorageAccountsListKeysResponse = StorageAccountListKeysResult & {
* 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: StorageAccountListKeysResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: StorageAccountListKeysResult;
+ };
};
/**
@@ -4093,16 +4344,16 @@ export type StorageAccountsRegenerateKeyResponse = StorageAccountListKeysResult
* 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: StorageAccountListKeysResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: StorageAccountListKeysResult;
+ };
};
/**
@@ -4113,16 +4364,16 @@ export type StorageAccountsListAccountSASResponse = ListAccountSasResponse & {
* 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: ListAccountSasResponse;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ListAccountSasResponse;
+ };
};
/**
@@ -4133,16 +4384,16 @@ export type StorageAccountsListServiceSASResponse = ListServiceSasResponse & {
* 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: ListServiceSasResponse;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ListServiceSasResponse;
+ };
};
/**
@@ -4153,16 +4404,16 @@ 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;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: BlobRestoreStatus;
+ };
};
/**
@@ -4173,16 +4424,16 @@ export type StorageAccountsBeginCreateResponse = StorageAccount & {
* 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: StorageAccount;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: StorageAccount;
+ };
};
/**
@@ -4193,16 +4444,16 @@ 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;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: BlobRestoreStatus;
+ };
};
/**
@@ -4213,16 +4464,16 @@ export type StorageAccountsListNextResponse = StorageAccountListResult & {
* 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: StorageAccountListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: StorageAccountListResult;
+ };
};
/**
@@ -4233,16 +4484,16 @@ export type StorageAccountsListByResourceGroupNextResponse = StorageAccountListR
* 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: StorageAccountListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: StorageAccountListResult;
+ };
};
/**
@@ -4253,16 +4504,16 @@ export type DeletedAccountsListResponse = DeletedAccountListResult & {
* 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: DeletedAccountListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DeletedAccountListResult;
+ };
};
/**
@@ -4273,16 +4524,16 @@ export type DeletedAccountsGetResponse = DeletedAccount & {
* 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: DeletedAccount;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DeletedAccount;
+ };
};
/**
@@ -4293,16 +4544,16 @@ export type DeletedAccountsListNextResponse = DeletedAccountListResult & {
* 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: DeletedAccountListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: DeletedAccountListResult;
+ };
};
/**
@@ -4313,16 +4564,16 @@ export type UsagesListByLocationResponse = UsageListResult & {
* 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: UsageListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: UsageListResult;
+ };
};
/**
@@ -4333,16 +4584,16 @@ export type ManagementPoliciesGetResponse = ManagementPolicy & {
* 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: ManagementPolicy;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ManagementPolicy;
+ };
};
/**
@@ -4353,16 +4604,16 @@ export type ManagementPoliciesCreateOrUpdateResponse = ManagementPolicy & {
* 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: ManagementPolicy;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ManagementPolicy;
+ };
};
/**
@@ -4373,16 +4624,16 @@ export type BlobInventoryPoliciesGetResponse = BlobInventoryPolicy & {
* 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: BlobInventoryPolicy;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: BlobInventoryPolicy;
+ };
};
/**
@@ -4393,16 +4644,16 @@ export type BlobInventoryPoliciesCreateOrUpdateResponse = BlobInventoryPolicy &
* 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: BlobInventoryPolicy;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: BlobInventoryPolicy;
+ };
};
/**
@@ -4413,16 +4664,16 @@ export type BlobInventoryPoliciesListResponse = ListBlobInventoryPolicy & {
* 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: ListBlobInventoryPolicy;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ListBlobInventoryPolicy;
+ };
};
/**
@@ -4433,16 +4684,16 @@ export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionLi
* 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: PrivateEndpointConnectionListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PrivateEndpointConnectionListResult;
+ };
};
/**
@@ -4453,16 +4704,16 @@ export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection &
* 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: PrivateEndpointConnection;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PrivateEndpointConnection;
+ };
};
/**
@@ -4473,16 +4724,16 @@ export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection &
* 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: PrivateEndpointConnection;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PrivateEndpointConnection;
+ };
};
/**
@@ -4493,16 +4744,16 @@ export type PrivateLinkResourcesListByStorageAccountResponse = PrivateLinkResour
* 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: PrivateLinkResourceListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PrivateLinkResourceListResult;
+ };
};
/**
@@ -4513,16 +4764,16 @@ export type ObjectReplicationPoliciesListResponse = ObjectReplicationPolicies &
* 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: ObjectReplicationPolicies;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ObjectReplicationPolicies;
+ };
};
/**
@@ -4533,16 +4784,16 @@ export type ObjectReplicationPoliciesGetResponse = ObjectReplicationPolicy & {
* 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: ObjectReplicationPolicy;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ObjectReplicationPolicy;
+ };
};
/**
@@ -4553,16 +4804,16 @@ export type ObjectReplicationPoliciesCreateOrUpdateResponse = ObjectReplicationP
* 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: ObjectReplicationPolicy;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ObjectReplicationPolicy;
+ };
};
/**
@@ -4573,17 +4824,17 @@ export type EncryptionScopesPutResponse = EncryptionScope & {
* 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: EncryptionScope;
- };
-};
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: EncryptionScope;
+ };
+};
/**
* Contains response data for the patch operation.
@@ -4593,16 +4844,16 @@ export type EncryptionScopesPatchResponse = EncryptionScope & {
* 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: EncryptionScope;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: EncryptionScope;
+ };
};
/**
@@ -4613,16 +4864,16 @@ export type EncryptionScopesGetResponse = EncryptionScope & {
* 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: EncryptionScope;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: EncryptionScope;
+ };
};
/**
@@ -4633,16 +4884,16 @@ export type EncryptionScopesListResponse = EncryptionScopeListResult & {
* 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: EncryptionScopeListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: EncryptionScopeListResult;
+ };
};
/**
@@ -4653,16 +4904,16 @@ export type EncryptionScopesListNextResponse = EncryptionScopeListResult & {
* 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: EncryptionScopeListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: EncryptionScopeListResult;
+ };
};
/**
@@ -4673,16 +4924,16 @@ export type BlobServicesListResponse = BlobServiceItems & {
* 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: BlobServiceItems;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: BlobServiceItems;
+ };
};
/**
@@ -4693,16 +4944,16 @@ export type BlobServicesSetServicePropertiesResponse = BlobServiceProperties & {
* 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: BlobServiceProperties;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: BlobServiceProperties;
+ };
};
/**
@@ -4713,16 +4964,16 @@ export type BlobServicesGetServicePropertiesResponse = BlobServiceProperties & {
* 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: BlobServiceProperties;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: BlobServiceProperties;
+ };
};
/**
@@ -4733,16 +4984,16 @@ export type BlobContainersListResponse = ListContainerItems & {
* 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: ListContainerItems;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ListContainerItems;
+ };
};
/**
@@ -4753,16 +5004,16 @@ export type BlobContainersCreateResponse = BlobContainer & {
* 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: BlobContainer;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: BlobContainer;
+ };
};
/**
@@ -4773,16 +5024,16 @@ export type BlobContainersUpdateResponse = BlobContainer & {
* 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: BlobContainer;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: BlobContainer;
+ };
};
/**
@@ -4793,16 +5044,16 @@ export type BlobContainersGetResponse = BlobContainer & {
* 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: BlobContainer;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: BlobContainer;
+ };
};
/**
@@ -4813,16 +5064,16 @@ export type BlobContainersSetLegalHoldResponse = LegalHold & {
* 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: LegalHold;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: LegalHold;
+ };
};
/**
@@ -4833,27 +5084,26 @@ export type BlobContainersClearLegalHoldResponse = LegalHold & {
* 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: LegalHold;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: LegalHold;
+ };
};
/**
* Contains response data for the createOrUpdateImmutabilityPolicy operation.
*/
-export type BlobContainersCreateOrUpdateImmutabilityPolicyResponse = ImmutabilityPolicy &
- BlobContainersCreateOrUpdateImmutabilityPolicyHeaders & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
+export type BlobContainersCreateOrUpdateImmutabilityPolicyResponse = ImmutabilityPolicy & BlobContainersCreateOrUpdateImmutabilityPolicyHeaders & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
@@ -4869,17 +5119,16 @@ export type BlobContainersCreateOrUpdateImmutabilityPolicyResponse = Immutabilit
*/
parsedBody: ImmutabilityPolicy;
};
- };
+};
/**
* Contains response data for the getImmutabilityPolicy operation.
*/
-export type BlobContainersGetImmutabilityPolicyResponse = ImmutabilityPolicy &
- BlobContainersGetImmutabilityPolicyHeaders & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
+export type BlobContainersGetImmutabilityPolicyResponse = ImmutabilityPolicy & BlobContainersGetImmutabilityPolicyHeaders & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
@@ -4895,17 +5144,16 @@ export type BlobContainersGetImmutabilityPolicyResponse = ImmutabilityPolicy &
*/
parsedBody: ImmutabilityPolicy;
};
- };
+};
/**
* Contains response data for the deleteImmutabilityPolicy operation.
*/
-export type BlobContainersDeleteImmutabilityPolicyResponse = ImmutabilityPolicy &
- BlobContainersDeleteImmutabilityPolicyHeaders & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
+export type BlobContainersDeleteImmutabilityPolicyResponse = ImmutabilityPolicy & BlobContainersDeleteImmutabilityPolicyHeaders & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
@@ -4921,17 +5169,16 @@ export type BlobContainersDeleteImmutabilityPolicyResponse = ImmutabilityPolicy
*/
parsedBody: ImmutabilityPolicy;
};
- };
+};
/**
* Contains response data for the lockImmutabilityPolicy operation.
*/
-export type BlobContainersLockImmutabilityPolicyResponse = ImmutabilityPolicy &
- BlobContainersLockImmutabilityPolicyHeaders & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
+export type BlobContainersLockImmutabilityPolicyResponse = ImmutabilityPolicy & BlobContainersLockImmutabilityPolicyHeaders & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
@@ -4947,17 +5194,16 @@ export type BlobContainersLockImmutabilityPolicyResponse = ImmutabilityPolicy &
*/
parsedBody: ImmutabilityPolicy;
};
- };
+};
/**
* Contains response data for the extendImmutabilityPolicy operation.
*/
-export type BlobContainersExtendImmutabilityPolicyResponse = ImmutabilityPolicy &
- BlobContainersExtendImmutabilityPolicyHeaders & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
+export type BlobContainersExtendImmutabilityPolicyResponse = ImmutabilityPolicy & BlobContainersExtendImmutabilityPolicyHeaders & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
@@ -4973,7 +5219,7 @@ export type BlobContainersExtendImmutabilityPolicyResponse = ImmutabilityPolicy
*/
parsedBody: ImmutabilityPolicy;
};
- };
+};
/**
* Contains response data for the lease operation.
@@ -4983,16 +5229,16 @@ export type BlobContainersLeaseResponse = LeaseContainerResponse & {
* 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: LeaseContainerResponse;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: LeaseContainerResponse;
+ };
};
/**
@@ -5003,16 +5249,16 @@ export type BlobContainersListNextResponse = ListContainerItems & {
* 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: ListContainerItems;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ListContainerItems;
+ };
};
/**
@@ -5023,16 +5269,16 @@ export type FileServicesListResponse = FileServiceItems & {
* 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: FileServiceItems;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: FileServiceItems;
+ };
};
/**
@@ -5043,16 +5289,16 @@ export type FileServicesSetServicePropertiesResponse = FileServiceProperties & {
* 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: FileServiceProperties;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: FileServiceProperties;
+ };
};
/**
@@ -5063,16 +5309,16 @@ export type FileServicesGetServicePropertiesResponse = FileServiceProperties & {
* 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: FileServiceProperties;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: FileServiceProperties;
+ };
};
/**
@@ -5083,16 +5329,16 @@ export type FileSharesListResponse = FileShareItems & {
* 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: FileShareItems;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: FileShareItems;
+ };
};
/**
@@ -5103,16 +5349,16 @@ export type FileSharesCreateResponse = FileShare & {
* 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: FileShare;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: FileShare;
+ };
};
/**
@@ -5123,16 +5369,16 @@ export type FileSharesUpdateResponse = FileShare & {
* 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: FileShare;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: FileShare;
+ };
};
/**
@@ -5143,16 +5389,41 @@ export type FileSharesGetResponse = FileShare & {
* 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: FileShare;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: FileShare;
+ };
+};
+
+/**
+ * Contains response data for the lease operation.
+ */
+export type FileSharesLeaseResponse = LeaseShareResponse & FileSharesLeaseHeaders & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The parsed HTTP response headers.
+ */
+ parsedHeaders: FileSharesLeaseHeaders;
+
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: LeaseShareResponse;
+ };
};
/**
@@ -5163,16 +5434,16 @@ export type FileSharesListNextResponse = FileShareItems & {
* 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: FileShareItems;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: FileShareItems;
+ };
};
/**
@@ -5183,16 +5454,16 @@ export type QueueServicesListResponse = ListQueueServices & {
* 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: ListQueueServices;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ListQueueServices;
+ };
};
/**
@@ -5203,16 +5474,16 @@ export type QueueServicesSetServicePropertiesResponse = QueueServiceProperties &
* 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: QueueServiceProperties;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: QueueServiceProperties;
+ };
};
/**
@@ -5223,16 +5494,16 @@ export type QueueServicesGetServicePropertiesResponse = QueueServiceProperties &
* 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: QueueServiceProperties;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: QueueServiceProperties;
+ };
};
/**
@@ -5243,16 +5514,16 @@ export type QueueCreateResponse = StorageQueue & {
* 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: StorageQueue;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: StorageQueue;
+ };
};
/**
@@ -5263,16 +5534,16 @@ export type QueueUpdateResponse = StorageQueue & {
* 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: StorageQueue;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: StorageQueue;
+ };
};
/**
@@ -5283,16 +5554,16 @@ export type QueueGetResponse = StorageQueue & {
* 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: StorageQueue;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: StorageQueue;
+ };
};
/**
@@ -5303,16 +5574,16 @@ export type QueueListResponse = ListQueueResource & {
* 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: ListQueueResource;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ListQueueResource;
+ };
};
/**
@@ -5323,16 +5594,16 @@ export type QueueListNextResponse = ListQueueResource & {
* 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: ListQueueResource;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ListQueueResource;
+ };
};
/**
@@ -5343,16 +5614,16 @@ export type TableServicesListResponse = ListTableServices & {
* 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: ListTableServices;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ListTableServices;
+ };
};
/**
@@ -5363,16 +5634,16 @@ export type TableServicesSetServicePropertiesResponse = TableServiceProperties &
* 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: TableServiceProperties;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: TableServiceProperties;
+ };
};
/**
@@ -5383,16 +5654,16 @@ export type TableServicesGetServicePropertiesResponse = TableServiceProperties &
* 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: TableServiceProperties;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: TableServiceProperties;
+ };
};
/**
@@ -5403,16 +5674,16 @@ export type TableCreateResponse = Table & {
* 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: Table;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Table;
+ };
};
/**
@@ -5423,16 +5694,16 @@ export type TableUpdateResponse = Table & {
* 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: Table;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Table;
+ };
};
/**
@@ -5443,16 +5714,16 @@ export type TableGetResponse = Table & {
* 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: Table;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Table;
+ };
};
/**
@@ -5463,16 +5734,16 @@ export type TableListResponse = ListTableResource & {
* 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: ListTableResource;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ListTableResource;
+ };
};
/**
@@ -5483,14 +5754,14 @@ export type TableListNextResponse = ListTableResource & {
* 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: ListTableResource;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ListTableResource;
+ };
};
diff --git a/sdk/storage/arm-storage/src/models/managementPoliciesMappers.ts b/sdk/storage/arm-storage/src/models/managementPoliciesMappers.ts
index f64277bbd11b..00869e72d30d 100644
--- a/sdk/storage/arm-storage/src/models/managementPoliciesMappers.ts
+++ b/sdk/storage/arm-storage/src/models/managementPoliciesMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
ActiveDirectoryProperties,
AzureEntityResource,
AzureFilesIdentityBasedAuthentication,
@@ -45,6 +46,7 @@ export {
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
@@ -79,6 +81,7 @@ export {
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/models/mappers.ts b/sdk/storage/arm-storage/src/models/mappers.ts
index 9069e05f2bde..c91091bf1c7c 100644
--- a/sdk/storage/arm-storage/src/models/mappers.ts
+++ b/sdk/storage/arm-storage/src/models/mappers.ts
@@ -213,7 +213,7 @@ export const StorageAccountCheckNameAvailabilityParameters: msRest.CompositeMapp
required: true,
isConstant: true,
serializedName: "type",
- defaultValue: "Microsoft.Storage/storageAccounts",
+ defaultValue: 'Microsoft.Storage/storageAccounts',
type: {
name: "String"
}
@@ -298,7 +298,10 @@ export const SkuInformation: msRest.CompositeMapper = {
serializedName: "tier",
type: {
name: "Enum",
- allowedValues: ["Standard", "Premium"]
+ allowedValues: [
+ "Standard",
+ "Premium"
+ ]
}
},
resourceType: {
@@ -374,7 +377,10 @@ export const CheckNameAvailabilityResult: msRest.CompositeMapper = {
serializedName: "reason",
type: {
name: "Enum",
- allowedValues: ["AccountNameInvalid", "AlreadyExists"]
+ allowedValues: [
+ "AccountNameInvalid",
+ "AlreadyExists"
+ ]
}
},
message: {
@@ -428,7 +434,7 @@ export const SasPolicy: msRest.CompositeMapper = {
required: true,
isConstant: true,
serializedName: "expirationAction",
- defaultValue: "Log",
+ defaultValue: 'Log',
type: {
name: "String"
}
@@ -617,7 +623,7 @@ export const Encryption: msRest.CompositeMapper = {
keySource: {
required: true,
serializedName: "keySource",
- defaultValue: "Microsoft.Storage",
+ defaultValue: 'Microsoft.Storage',
type: {
name: "String"
}
@@ -707,10 +713,12 @@ export const VirtualNetworkRule: msRest.CompositeMapper = {
},
action: {
serializedName: "action",
- defaultValue: "Allow",
+ defaultValue: 'Allow',
type: {
name: "Enum",
- allowedValues: ["Allow"]
+ allowedValues: [
+ "Allow"
+ ]
}
},
state: {
@@ -738,10 +746,12 @@ export const IPRule: msRest.CompositeMapper = {
},
action: {
serializedName: "action",
- defaultValue: "Allow",
+ defaultValue: 'Allow',
type: {
name: "Enum",
- allowedValues: ["Allow"]
+ allowedValues: [
+ "Allow"
+ ]
}
}
}
@@ -756,7 +766,7 @@ export const NetworkRuleSet: msRest.CompositeMapper = {
modelProperties: {
bypass: {
serializedName: "bypass",
- defaultValue: "AzureServices",
+ defaultValue: 'AzureServices',
type: {
name: "String"
}
@@ -800,10 +810,13 @@ export const NetworkRuleSet: msRest.CompositeMapper = {
defaultAction: {
required: true,
serializedName: "defaultAction",
- defaultValue: "Allow",
+ defaultValue: 'Allow',
type: {
name: "Enum",
- allowedValues: ["Allow", "Deny"]
+ allowedValues: [
+ "Allow",
+ "Deny"
+ ]
}
}
}
@@ -881,6 +894,12 @@ export const AzureFilesIdentityBasedAuthentication: msRest.CompositeMapper = {
name: "Composite",
className: "ActiveDirectoryProperties"
}
+ },
+ defaultSharePermission: {
+ serializedName: "defaultSharePermission",
+ type: {
+ name: "String"
+ }
}
}
}
@@ -996,7 +1015,10 @@ export const Sku: msRest.CompositeMapper = {
serializedName: "tier",
type: {
name: "Enum",
- allowedValues: ["Standard", "Premium"]
+ allowedValues: [
+ "Standard",
+ "Premium"
+ ]
}
}
}
@@ -1095,7 +1117,10 @@ export const StorageAccountCreateParameters: msRest.CompositeMapper = {
serializedName: "properties.accessTier",
type: {
name: "Enum",
- allowedValues: ["Hot", "Cool"]
+ allowedValues: [
+ "Hot",
+ "Cool"
+ ]
}
},
azureFilesIdentityBasedAuthentication: {
@@ -1153,6 +1178,12 @@ export const StorageAccountCreateParameters: msRest.CompositeMapper = {
type: {
name: "Boolean"
}
+ },
+ allowCrossTenantReplication: {
+ serializedName: "properties.allowCrossTenantReplication",
+ type: {
+ name: "Boolean"
+ }
}
}
}
@@ -1673,7 +1704,11 @@ export const StorageAccount: msRest.CompositeMapper = {
serializedName: "properties.provisioningState",
type: {
name: "Enum",
- allowedValues: ["Creating", "ResolvingDNS", "Succeeded"]
+ allowedValues: [
+ "Creating",
+ "ResolvingDNS",
+ "Succeeded"
+ ]
}
},
primaryEndpoints: {
@@ -1696,7 +1731,10 @@ export const StorageAccount: msRest.CompositeMapper = {
serializedName: "properties.statusOfPrimary",
type: {
name: "Enum",
- allowedValues: ["available", "unavailable"]
+ allowedValues: [
+ "available",
+ "unavailable"
+ ]
}
},
lastGeoFailoverTime: {
@@ -1718,7 +1756,10 @@ export const StorageAccount: msRest.CompositeMapper = {
serializedName: "properties.statusOfSecondary",
type: {
name: "Enum",
- allowedValues: ["available", "unavailable"]
+ allowedValues: [
+ "available",
+ "unavailable"
+ ]
}
},
creationTime: {
@@ -1781,7 +1822,10 @@ export const StorageAccount: msRest.CompositeMapper = {
serializedName: "properties.accessTier",
type: {
name: "Enum",
- allowedValues: ["Hot", "Cool"]
+ allowedValues: [
+ "Hot",
+ "Cool"
+ ]
}
},
azureFilesIdentityBasedAuthentication: {
@@ -1883,6 +1927,12 @@ export const StorageAccount: msRest.CompositeMapper = {
type: {
name: "Boolean"
}
+ },
+ allowCrossTenantReplication: {
+ serializedName: "properties.allowCrossTenantReplication",
+ type: {
+ name: "Boolean"
+ }
}
}
}
@@ -1913,7 +1963,10 @@ export const StorageAccountKey: msRest.CompositeMapper = {
serializedName: "permissions",
type: {
name: "Enum",
- allowedValues: ["Read", "Full"]
+ allowedValues: [
+ "Read",
+ "Full"
+ ]
}
},
creationTime: {
@@ -2030,7 +2083,10 @@ export const StorageAccountUpdateParameters: msRest.CompositeMapper = {
serializedName: "properties.accessTier",
type: {
name: "Enum",
- allowedValues: ["Hot", "Cool"]
+ allowedValues: [
+ "Hot",
+ "Cool"
+ ]
}
},
azureFilesIdentityBasedAuthentication: {
@@ -2084,6 +2140,12 @@ export const StorageAccountUpdateParameters: msRest.CompositeMapper = {
name: "Boolean"
}
},
+ allowCrossTenantReplication: {
+ serializedName: "properties.allowCrossTenantReplication",
+ type: {
+ name: "Boolean"
+ }
+ },
kind: {
serializedName: "kind",
type: {
@@ -2202,7 +2264,10 @@ export const AccountSasParameters: msRest.CompositeMapper = {
serializedName: "signedProtocol",
type: {
name: "Enum",
- allowedValues: ["https,http", "https"]
+ allowedValues: [
+ "https,http",
+ "https"
+ ]
}
},
sharedAccessStartTime: {
@@ -2280,7 +2345,10 @@ export const ServiceSasParameters: msRest.CompositeMapper = {
serializedName: "signedProtocol",
type: {
name: "Enum",
- allowedValues: ["https,http", "https"]
+ allowedValues: [
+ "https,http",
+ "https"
+ ]
}
},
sharedAccessStartTime: {
@@ -2698,7 +2766,7 @@ export const ManagementPolicyRule: msRest.CompositeMapper = {
required: true,
isConstant: true,
serializedName: "type",
- defaultValue: "Lifecycle",
+ defaultValue: 'Lifecycle',
type: {
name: "String"
}
@@ -2977,7 +3045,6 @@ export const BlobInventoryPolicyFilter: msRest.CompositeMapper = {
}
},
blobTypes: {
- required: true,
serializedName: "blobTypes",
type: {
name: "Sequence",
@@ -3011,12 +3078,44 @@ export const BlobInventoryPolicyDefinition: msRest.CompositeMapper = {
className: "BlobInventoryPolicyDefinition",
modelProperties: {
filters: {
- required: true,
serializedName: "filters",
type: {
name: "Composite",
className: "BlobInventoryPolicyFilter"
}
+ },
+ format: {
+ required: true,
+ serializedName: "format",
+ type: {
+ name: "String"
+ }
+ },
+ schedule: {
+ required: true,
+ serializedName: "schedule",
+ type: {
+ name: "String"
+ }
+ },
+ objectType: {
+ required: true,
+ serializedName: "objectType",
+ type: {
+ name: "String"
+ }
+ },
+ schemaFields: {
+ required: true,
+ serializedName: "schemaFields",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
}
}
}
@@ -3042,6 +3141,13 @@ export const BlobInventoryPolicyRule: msRest.CompositeMapper = {
name: "String"
}
},
+ destination: {
+ required: true,
+ serializedName: "destination",
+ type: {
+ name: "String"
+ }
+ },
definition: {
required: true,
serializedName: "definition",
@@ -3067,18 +3173,11 @@ export const BlobInventoryPolicySchema: msRest.CompositeMapper = {
name: "Boolean"
}
},
- destination: {
- required: true,
- serializedName: "destination",
- type: {
- name: "String"
- }
- },
type: {
required: true,
isConstant: true,
serializedName: "type",
- defaultValue: "Inventory",
+ defaultValue: 'Inventory',
type: {
name: "String"
}
@@ -3475,6 +3574,36 @@ export const LegalHoldProperties: msRest.CompositeMapper = {
}
};
+export const ImmutableStorageWithVersioning: msRest.CompositeMapper = {
+ serializedName: "ImmutableStorageWithVersioning",
+ type: {
+ name: "Composite",
+ className: "ImmutableStorageWithVersioning",
+ modelProperties: {
+ enabled: {
+ serializedName: "enabled",
+ type: {
+ name: "Boolean"
+ }
+ },
+ timeStamp: {
+ readOnly: true,
+ serializedName: "timeStamp",
+ type: {
+ name: "DateTime"
+ }
+ },
+ migrationState: {
+ readOnly: true,
+ serializedName: "migrationState",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const BlobContainer: msRest.CompositeMapper = {
serializedName: "BlobContainer",
type: {
@@ -3526,7 +3655,11 @@ export const BlobContainer: msRest.CompositeMapper = {
serializedName: "properties.publicAccess",
type: {
name: "Enum",
- allowedValues: ["Container", "Blob", "None"]
+ allowedValues: [
+ "Container",
+ "Blob",
+ "None"
+ ]
}
},
lastModifiedTime: {
@@ -3597,6 +3730,13 @@ export const BlobContainer: msRest.CompositeMapper = {
type: {
name: "Boolean"
}
+ },
+ immutableStorageWithVersioning: {
+ serializedName: "properties.immutableStorageWithVersioning",
+ type: {
+ name: "Composite",
+ className: "ImmutableStorageWithVersioning"
+ }
}
}
}
@@ -3712,7 +3852,11 @@ export const ListContainerItem: msRest.CompositeMapper = {
serializedName: "properties.publicAccess",
type: {
name: "Enum",
- allowedValues: ["Container", "Blob", "None"]
+ allowedValues: [
+ "Container",
+ "Blob",
+ "None"
+ ]
}
},
lastModifiedTime: {
@@ -3783,6 +3927,13 @@ export const ListContainerItem: msRest.CompositeMapper = {
type: {
name: "Boolean"
}
+ },
+ immutableStorageWithVersioning: {
+ serializedName: "properties.immutableStorageWithVersioning",
+ type: {
+ name: "Composite",
+ className: "ImmutableStorageWithVersioning"
+ }
}
}
}
@@ -4287,6 +4438,57 @@ export const FileServiceItems: msRest.CompositeMapper = {
}
};
+export const AccessPolicy: msRest.CompositeMapper = {
+ serializedName: "AccessPolicy",
+ type: {
+ name: "Composite",
+ className: "AccessPolicy",
+ modelProperties: {
+ startTime: {
+ serializedName: "startTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ expiryTime: {
+ serializedName: "expiryTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ permission: {
+ serializedName: "permission",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const SignedIdentifier: msRest.CompositeMapper = {
+ serializedName: "SignedIdentifier",
+ type: {
+ name: "Composite",
+ className: "SignedIdentifier",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ accessPolicy: {
+ serializedName: "accessPolicy",
+ type: {
+ name: "Composite",
+ className: "AccessPolicy"
+ }
+ }
+ }
+ }
+};
+
export const FileShare: msRest.CompositeMapper = {
serializedName: "FileShare",
type: {
@@ -4389,6 +4591,39 @@ export const FileShare: msRest.CompositeMapper = {
name: "Number"
}
},
+ leaseStatus: {
+ readOnly: true,
+ serializedName: "properties.leaseStatus",
+ type: {
+ name: "String"
+ }
+ },
+ leaseState: {
+ readOnly: true,
+ serializedName: "properties.leaseState",
+ type: {
+ name: "String"
+ }
+ },
+ leaseDuration: {
+ readOnly: true,
+ serializedName: "properties.leaseDuration",
+ type: {
+ name: "String"
+ }
+ },
+ signedIdentifiers: {
+ serializedName: "properties.signedIdentifiers",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SignedIdentifier"
+ }
+ }
+ }
+ },
snapshotTime: {
readOnly: true,
serializedName: "properties.snapshotTime",
@@ -4526,6 +4761,39 @@ export const FileShareItem: msRest.CompositeMapper = {
name: "Number"
}
},
+ leaseStatus: {
+ readOnly: true,
+ serializedName: "properties.leaseStatus",
+ type: {
+ name: "String"
+ }
+ },
+ leaseState: {
+ readOnly: true,
+ serializedName: "properties.leaseState",
+ type: {
+ name: "String"
+ }
+ },
+ leaseDuration: {
+ readOnly: true,
+ serializedName: "properties.leaseDuration",
+ type: {
+ name: "String"
+ }
+ },
+ signedIdentifiers: {
+ serializedName: "properties.signedIdentifiers",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SignedIdentifier"
+ }
+ }
+ }
+ },
snapshotTime: {
readOnly: true,
serializedName: "properties.snapshotTime",
@@ -4537,6 +4805,69 @@ export const FileShareItem: msRest.CompositeMapper = {
}
};
+export const LeaseShareRequest: msRest.CompositeMapper = {
+ serializedName: "LeaseShareRequest",
+ type: {
+ name: "Composite",
+ className: "LeaseShareRequest",
+ modelProperties: {
+ action: {
+ required: true,
+ serializedName: "action",
+ type: {
+ name: "String"
+ }
+ },
+ leaseId: {
+ serializedName: "leaseId",
+ type: {
+ name: "String"
+ }
+ },
+ breakPeriod: {
+ serializedName: "breakPeriod",
+ type: {
+ name: "Number"
+ }
+ },
+ leaseDuration: {
+ serializedName: "leaseDuration",
+ type: {
+ name: "Number"
+ }
+ },
+ proposedLeaseId: {
+ serializedName: "proposedLeaseId",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const LeaseShareResponse: msRest.CompositeMapper = {
+ serializedName: "LeaseShareResponse",
+ type: {
+ name: "Composite",
+ className: "LeaseShareResponse",
+ modelProperties: {
+ leaseId: {
+ serializedName: "leaseId",
+ type: {
+ name: "String"
+ }
+ },
+ leaseTimeSeconds: {
+ serializedName: "leaseTimeSeconds",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const QueueServiceProperties: msRest.CompositeMapper = {
serializedName: "QueueServiceProperties",
type: {
@@ -4768,6 +5099,22 @@ export const BlobContainersExtendImmutabilityPolicyHeaders: msRest.CompositeMapp
}
};
+export const FileSharesLeaseHeaders: msRest.CompositeMapper = {
+ serializedName: "fileshares-lease-headers",
+ type: {
+ name: "Composite",
+ className: "FileSharesLeaseHeaders",
+ modelProperties: {
+ eTag: {
+ serializedName: "etag",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
export const OperationListResult: msRest.CompositeMapper = {
serializedName: "OperationListResult",
type: {
diff --git a/sdk/storage/arm-storage/src/models/objectReplicationPoliciesOperationsMappers.ts b/sdk/storage/arm-storage/src/models/objectReplicationPoliciesOperationsMappers.ts
index 00f02d37c096..282a196542f5 100644
--- a/sdk/storage/arm-storage/src/models/objectReplicationPoliciesOperationsMappers.ts
+++ b/sdk/storage/arm-storage/src/models/objectReplicationPoliciesOperationsMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
ActiveDirectoryProperties,
AzureEntityResource,
AzureFilesIdentityBasedAuthentication,
@@ -46,6 +47,7 @@ export {
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
@@ -81,6 +83,7 @@ export {
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/models/parameters.ts b/sdk/storage/arm-storage/src/models/parameters.ts
index eb6cd7e26552..109ffecb6d94 100644
--- a/sdk/storage/arm-storage/src/models/parameters.ts
+++ b/sdk/storage/arm-storage/src/models/parameters.ts
@@ -13,7 +13,7 @@ export const acceptLanguage: msRest.OperationParameter = {
parameterPath: "acceptLanguage",
mapper: {
serializedName: "accept-language",
- defaultValue: "en-US",
+ defaultValue: 'en-US',
type: {
name: "String"
}
@@ -52,7 +52,7 @@ export const blobInventoryPolicyName: msRest.OperationURLParameter = {
required: true,
isConstant: true,
serializedName: "blobInventoryPolicyName",
- defaultValue: "default",
+ defaultValue: 'default',
type: {
name: "String"
}
@@ -64,7 +64,7 @@ export const blobServicesName: msRest.OperationURLParameter = {
required: true,
isConstant: true,
serializedName: "BlobServicesName",
- defaultValue: "default",
+ defaultValue: 'default',
type: {
name: "String"
}
@@ -113,27 +113,41 @@ export const encryptionScopeName: msRest.OperationURLParameter = {
}
};
export const expand0: msRest.OperationQueryParameter = {
- parameterPath: ["options", "expand"],
+ parameterPath: [
+ "options",
+ "expand"
+ ],
mapper: {
serializedName: "$expand",
type: {
name: "Enum",
- allowedValues: ["geoReplicationStats", "blobRestoreStatus"]
+ allowedValues: [
+ "geoReplicationStats",
+ "blobRestoreStatus"
+ ]
}
}
};
export const expand1: msRest.OperationQueryParameter = {
- parameterPath: ["options", "expand"],
+ parameterPath: [
+ "options",
+ "expand"
+ ],
mapper: {
serializedName: "$expand",
type: {
name: "Enum",
- allowedValues: ["kerb"]
+ allowedValues: [
+ "kerb"
+ ]
}
}
};
export const expand2: msRest.OperationQueryParameter = {
- parameterPath: ["options", "expand"],
+ parameterPath: [
+ "options",
+ "expand"
+ ],
mapper: {
serializedName: "$expand",
type: {
@@ -141,30 +155,23 @@ export const expand2: msRest.OperationQueryParameter = {
}
}
};
-export const expand3: msRest.OperationQueryParameter = {
- parameterPath: ["options", "expand"],
- mapper: {
- serializedName: "$expand",
- type: {
- name: "Enum",
- allowedValues: ["stats"]
- }
- }
-};
export const fileServicesName: msRest.OperationURLParameter = {
parameterPath: "fileServicesName",
mapper: {
required: true,
isConstant: true,
serializedName: "FileServicesName",
- defaultValue: "default",
+ defaultValue: 'default',
type: {
name: "String"
}
}
};
export const filter: msRest.OperationQueryParameter = {
- parameterPath: ["options", "filter"],
+ parameterPath: [
+ "options",
+ "filter"
+ ],
mapper: {
serializedName: "$filter",
type: {
@@ -173,7 +180,10 @@ export const filter: msRest.OperationQueryParameter = {
}
};
export const ifMatch0: msRest.OperationParameter = {
- parameterPath: ["options", "ifMatch"],
+ parameterPath: [
+ "options",
+ "ifMatch"
+ ],
mapper: {
serializedName: "If-Match",
type: {
@@ -197,14 +207,17 @@ export const immutabilityPolicyName: msRest.OperationURLParameter = {
required: true,
isConstant: true,
serializedName: "immutabilityPolicyName",
- defaultValue: "default",
+ defaultValue: 'default',
type: {
name: "String"
}
}
};
export const include: msRest.OperationQueryParameter = {
- parameterPath: ["options", "include"],
+ parameterPath: [
+ "options",
+ "include"
+ ],
mapper: {
serializedName: "$include",
type: {
@@ -228,14 +241,17 @@ export const managementPolicyName: msRest.OperationURLParameter = {
required: true,
isConstant: true,
serializedName: "managementPolicyName",
- defaultValue: "default",
+ defaultValue: 'default',
type: {
name: "String"
}
}
};
export const maxpagesize: msRest.OperationQueryParameter = {
- parameterPath: ["options", "maxpagesize"],
+ parameterPath: [
+ "options",
+ "maxpagesize"
+ ],
mapper: {
serializedName: "$maxpagesize",
type: {
@@ -298,7 +314,7 @@ export const queueServiceName: msRest.OperationURLParameter = {
required: true,
isConstant: true,
serializedName: "queueServiceName",
- defaultValue: "default",
+ defaultValue: 'default',
type: {
name: "String"
}
@@ -367,14 +383,17 @@ export const tableServiceName: msRest.OperationURLParameter = {
required: true,
isConstant: true,
serializedName: "tableServiceName",
- defaultValue: "default",
+ defaultValue: 'default',
type: {
name: "String"
}
}
};
export const xMsSnapshot: msRest.OperationParameter = {
- parameterPath: ["options", "xMsSnapshot"],
+ parameterPath: [
+ "options",
+ "xMsSnapshot"
+ ],
mapper: {
serializedName: "x-ms-snapshot",
type: {
diff --git a/sdk/storage/arm-storage/src/models/privateEndpointConnectionsMappers.ts b/sdk/storage/arm-storage/src/models/privateEndpointConnectionsMappers.ts
index 76a28e6b0aa6..70f271e5cf38 100644
--- a/sdk/storage/arm-storage/src/models/privateEndpointConnectionsMappers.ts
+++ b/sdk/storage/arm-storage/src/models/privateEndpointConnectionsMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
ActiveDirectoryProperties,
AzureEntityResource,
AzureFilesIdentityBasedAuthentication,
@@ -47,6 +48,7 @@ export {
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
@@ -82,6 +84,7 @@ export {
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/models/privateLinkResourcesMappers.ts b/sdk/storage/arm-storage/src/models/privateLinkResourcesMappers.ts
index 6951570563ce..a83fe6e3bd0e 100644
--- a/sdk/storage/arm-storage/src/models/privateLinkResourcesMappers.ts
+++ b/sdk/storage/arm-storage/src/models/privateLinkResourcesMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
ActiveDirectoryProperties,
AzureEntityResource,
AzureFilesIdentityBasedAuthentication,
@@ -45,6 +46,7 @@ export {
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
@@ -80,6 +82,7 @@ export {
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/models/queueMappers.ts b/sdk/storage/arm-storage/src/models/queueMappers.ts
index 845af371933f..938c63dad3b6 100644
--- a/sdk/storage/arm-storage/src/models/queueMappers.ts
+++ b/sdk/storage/arm-storage/src/models/queueMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
ActiveDirectoryProperties,
AzureEntityResource,
AzureFilesIdentityBasedAuthentication,
@@ -45,6 +46,7 @@ export {
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
@@ -80,6 +82,7 @@ export {
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/models/queueServicesMappers.ts b/sdk/storage/arm-storage/src/models/queueServicesMappers.ts
index a3242b99bdd8..6f25a81bcb89 100644
--- a/sdk/storage/arm-storage/src/models/queueServicesMappers.ts
+++ b/sdk/storage/arm-storage/src/models/queueServicesMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
ActiveDirectoryProperties,
AzureEntityResource,
AzureFilesIdentityBasedAuthentication,
@@ -45,6 +46,7 @@ export {
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
@@ -80,6 +82,7 @@ export {
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/models/storageAccountsMappers.ts b/sdk/storage/arm-storage/src/models/storageAccountsMappers.ts
index 7378120d89f8..553110269ced 100644
--- a/sdk/storage/arm-storage/src/models/storageAccountsMappers.ts
+++ b/sdk/storage/arm-storage/src/models/storageAccountsMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
AccountSasParameters,
ActiveDirectoryProperties,
AzureEntityResource,
@@ -47,6 +48,7 @@ export {
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
@@ -84,6 +86,7 @@ export {
RoutingPreference,
SasPolicy,
ServiceSasParameters,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/models/tableOperationsMappers.ts b/sdk/storage/arm-storage/src/models/tableOperationsMappers.ts
index d94926222b85..faa06b45ceab 100644
--- a/sdk/storage/arm-storage/src/models/tableOperationsMappers.ts
+++ b/sdk/storage/arm-storage/src/models/tableOperationsMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
ActiveDirectoryProperties,
AzureEntityResource,
AzureFilesIdentityBasedAuthentication,
@@ -45,6 +46,7 @@ export {
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
@@ -80,6 +82,7 @@ export {
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/models/tableServicesMappers.ts b/sdk/storage/arm-storage/src/models/tableServicesMappers.ts
index bb91f9d4340d..e099f6c7f6c3 100644
--- a/sdk/storage/arm-storage/src/models/tableServicesMappers.ts
+++ b/sdk/storage/arm-storage/src/models/tableServicesMappers.ts
@@ -7,6 +7,7 @@
*/
export {
+ AccessPolicy,
ActiveDirectoryProperties,
AzureEntityResource,
AzureFilesIdentityBasedAuthentication,
@@ -45,6 +46,7 @@ export {
Identity,
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
+ ImmutableStorageWithVersioning,
IPRule,
KeyCreationTime,
KeyPolicy,
@@ -80,6 +82,7 @@ export {
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
+ SignedIdentifier,
Sku,
SmbSetting,
StorageAccount,
diff --git a/sdk/storage/arm-storage/src/operations/blobContainers.ts b/sdk/storage/arm-storage/src/operations/blobContainers.ts
index 5994c224089b..51122292f166 100644
--- a/sdk/storage/arm-storage/src/operations/blobContainers.ts
+++ b/sdk/storage/arm-storage/src/operations/blobContainers.ts
@@ -8,6 +8,7 @@
*/
import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as Models from "../models";
import * as Mappers from "../models/blobContainersMappers";
import * as Parameters from "../models/parameters";
@@ -782,6 +783,57 @@ export class BlobContainers {
callback) as Promise;
}
+ /**
+ * This operation migrates a blob container from container level WORM to object level immutability
+ * enabled container. Prerequisites require a container level immutability policy either in locked
+ * or unlocked state, Account level versioning must be enabled and there should be no Legal hold on
+ * the container.
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name
+ * is case insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case
+ * letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case
+ * letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
+ * a letter or number.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ objectLevelWorm(resourceGroupName: string, accountName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginObjectLevelWorm(resourceGroupName,accountName,containerName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * This operation migrates a blob container from container level WORM to object level immutability
+ * enabled container. Prerequisites require a container level immutability policy either in locked
+ * or unlocked state, Account level versioning must be enabled and there should be no Legal hold on
+ * the container.
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name
+ * is case insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case
+ * letters only.
+ * @param containerName The name of the blob container within the specified storage account. Blob
+ * container names must be between 3 and 63 characters in length and use numbers, lower-case
+ * letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by
+ * a letter or number.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginObjectLevelWorm(resourceGroupName: string, accountName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ accountName,
+ containerName,
+ options
+ },
+ beginObjectLevelWormOperationSpec,
+ options);
+ }
+
/**
* Lists all containers and does not support a prefix like data plane. Also SRP today does not
* return continuation token.
@@ -1239,6 +1291,31 @@ const leaseOperationSpec: msRest.OperationSpec = {
serializer
};
+const beginObjectLevelWormOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/migrate",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.accountName,
+ Parameters.containerName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {},
+ 202: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
const listNextOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
baseUrl: "https://management.azure.com",
diff --git a/sdk/storage/arm-storage/src/operations/fileShares.ts b/sdk/storage/arm-storage/src/operations/fileShares.ts
index 13840faac6c2..be05a7aecb35 100644
--- a/sdk/storage/arm-storage/src/operations/fileShares.ts
+++ b/sdk/storage/arm-storage/src/operations/fileShares.ts
@@ -35,11 +35,7 @@ export class FileShares {
* @param [options] The optional parameters
* @returns Promise
*/
- list(
- resourceGroupName: string,
- accountName: string,
- options?: Models.FileSharesListOptionalParams
- ): Promise;
+ list(resourceGroupName: string, accountName: string, options?: Models.FileSharesListOptionalParams): Promise;
/**
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
@@ -48,11 +44,7 @@ export class FileShares {
* letters only.
* @param callback The callback
*/
- list(
- resourceGroupName: string,
- accountName: string,
- callback: msRest.ServiceCallback
- ): void;
+ list(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
@@ -62,18 +54,8 @@ export class FileShares {
* @param options The optional parameters
* @param callback The callback
*/
- list(
- resourceGroupName: string,
- accountName: string,
- options: Models.FileSharesListOptionalParams,
- callback: msRest.ServiceCallback
- ): void;
- list(
- resourceGroupName: string,
- accountName: string,
- options?: Models.FileSharesListOptionalParams | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ list(resourceGroupName: string, accountName: string, options: Models.FileSharesListOptionalParams, callback: msRest.ServiceCallback): void;
+ list(resourceGroupName: string, accountName: string, options?: Models.FileSharesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -81,8 +63,7 @@ export class FileShares {
options
},
listOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -102,13 +83,7 @@ export class FileShares {
* @param [options] The optional parameters
* @returns Promise
*/
- create(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- fileShare: Models.FileShare,
- options?: Models.FileSharesCreateOptionalParams
- ): Promise;
+ create(resourceGroupName: string, accountName: string, shareName: string, fileShare: Models.FileShare, options?: Models.FileSharesCreateOptionalParams): Promise;
/**
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
@@ -122,13 +97,7 @@ export class FileShares {
* @param fileShare Properties of the file share to create.
* @param callback The callback
*/
- create(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- fileShare: Models.FileShare,
- callback: msRest.ServiceCallback
- ): void;
+ create(resourceGroupName: string, accountName: string, shareName: string, fileShare: Models.FileShare, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
@@ -143,22 +112,8 @@ export class FileShares {
* @param options The optional parameters
* @param callback The callback
*/
- create(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- fileShare: Models.FileShare,
- options: Models.FileSharesCreateOptionalParams,
- callback: msRest.ServiceCallback
- ): void;
- create(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- fileShare: Models.FileShare,
- options?: Models.FileSharesCreateOptionalParams | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ create(resourceGroupName: string, accountName: string, shareName: string, fileShare: Models.FileShare, options: Models.FileSharesCreateOptionalParams, callback: msRest.ServiceCallback): void;
+ create(resourceGroupName: string, accountName: string, shareName: string, fileShare: Models.FileShare, options?: Models.FileSharesCreateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -168,8 +123,7 @@ export class FileShares {
options
},
createOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -188,13 +142,7 @@ export class FileShares {
* @param [options] The optional parameters
* @returns Promise
*/
- update(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- fileShare: Models.FileShare,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ update(resourceGroupName: string, accountName: string, shareName: string, fileShare: Models.FileShare, options?: msRest.RequestOptionsBase): Promise;
/**
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
@@ -208,13 +156,7 @@ export class FileShares {
* @param fileShare Properties to update for the file share.
* @param callback The callback
*/
- update(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- fileShare: Models.FileShare,
- callback: msRest.ServiceCallback
- ): void;
+ update(resourceGroupName: string, accountName: string, shareName: string, fileShare: Models.FileShare, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
@@ -229,22 +171,8 @@ export class FileShares {
* @param options The optional parameters
* @param callback The callback
*/
- update(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- fileShare: Models.FileShare,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- update(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- fileShare: Models.FileShare,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ update(resourceGroupName: string, accountName: string, shareName: string, fileShare: Models.FileShare, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ update(resourceGroupName: string, accountName: string, shareName: string, fileShare: Models.FileShare, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -254,8 +182,7 @@ export class FileShares {
options
},
updateOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -272,12 +199,7 @@ export class FileShares {
* @param [options] The optional parameters
* @returns Promise
*/
- get(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- options?: Models.FileSharesGetOptionalParams
- ): Promise;
+ get(resourceGroupName: string, accountName: string, shareName: string, options?: Models.FileSharesGetOptionalParams): Promise;
/**
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
@@ -290,12 +212,7 @@ export class FileShares {
* number.
* @param callback The callback
*/
- get(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- callback: msRest.ServiceCallback
- ): void;
+ get(resourceGroupName: string, accountName: string, shareName: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
@@ -309,20 +226,8 @@ export class FileShares {
* @param options The optional parameters
* @param callback The callback
*/
- get(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- options: Models.FileSharesGetOptionalParams,
- callback: msRest.ServiceCallback
- ): void;
- get(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- options?: Models.FileSharesGetOptionalParams | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ get(resourceGroupName: string, accountName: string, shareName: string, options: Models.FileSharesGetOptionalParams, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, accountName: string, shareName: string, options?: Models.FileSharesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -331,8 +236,7 @@ export class FileShares {
options
},
getOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -349,12 +253,7 @@ export class FileShares {
* @param [options] The optional parameters
* @returns Promise
*/
- deleteMethod(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- options?: Models.FileSharesDeleteMethodOptionalParams
- ): Promise;
+ deleteMethod(resourceGroupName: string, accountName: string, shareName: string, options?: Models.FileSharesDeleteMethodOptionalParams): Promise;
/**
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
@@ -367,12 +266,7 @@ export class FileShares {
* number.
* @param callback The callback
*/
- deleteMethod(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- callback: msRest.ServiceCallback
- ): void;
+ deleteMethod(resourceGroupName: string, accountName: string, shareName: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
@@ -386,20 +280,8 @@ export class FileShares {
* @param options The optional parameters
* @param callback The callback
*/
- deleteMethod(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- options: Models.FileSharesDeleteMethodOptionalParams,
- callback: msRest.ServiceCallback
- ): void;
- deleteMethod(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- options?: Models.FileSharesDeleteMethodOptionalParams | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ deleteMethod(resourceGroupName: string, accountName: string, shareName: string, options: Models.FileSharesDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void;
+ deleteMethod(resourceGroupName: string, accountName: string, shareName: string, options?: Models.FileSharesDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -408,8 +290,7 @@ export class FileShares {
options
},
deleteMethodOperationSpec,
- callback
- );
+ callback);
}
/**
@@ -429,14 +310,7 @@ export class FileShares {
* @param [options] The optional parameters
* @returns Promise
*/
- restore(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- deletedShareName: string,
- deletedShareVersion: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ restore(resourceGroupName: string, accountName: string, shareName: string, deletedShareName: string, deletedShareVersion: string, options?: msRest.RequestOptionsBase): Promise;
/**
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
@@ -452,14 +326,7 @@ export class FileShares {
* restored.
* @param callback The callback
*/
- restore(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- deletedShareName: string,
- deletedShareVersion: string,
- callback: msRest.ServiceCallback
- ): void;
+ restore(resourceGroupName: string, accountName: string, shareName: string, deletedShareName: string, deletedShareVersion: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
@@ -476,24 +343,8 @@ export class FileShares {
* @param options The optional parameters
* @param callback The callback
*/
- restore(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- deletedShareName: string,
- deletedShareVersion: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- restore(
- resourceGroupName: string,
- accountName: string,
- shareName: string,
- deletedShareName: string,
- deletedShareVersion: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ restore(resourceGroupName: string, accountName: string, shareName: string, deletedShareName: string, deletedShareVersion: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ restore(resourceGroupName: string, accountName: string, shareName: string, deletedShareName: string, deletedShareVersion: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -504,8 +355,62 @@ export class FileShares {
options
},
restoreOperationSpec,
- callback
- );
+ callback);
+ }
+
+ /**
+ * The Lease Share operation establishes and manages a lock on a share for delete operations. The
+ * lock duration can be 15 to 60 seconds, or can be infinite.
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name
+ * is case insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case
+ * letters only.
+ * @param shareName The name of the file share within the specified storage account. File share
+ * names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash
+ * (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
+ * number.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ lease(resourceGroupName: string, accountName: string, shareName: string, options?: Models.FileSharesLeaseOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name
+ * is case insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case
+ * letters only.
+ * @param shareName The name of the file share within the specified storage account. File share
+ * names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash
+ * (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
+ * number.
+ * @param callback The callback
+ */
+ lease(resourceGroupName: string, accountName: string, shareName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name
+ * is case insensitive.
+ * @param accountName The name of the storage account within the specified resource group. Storage
+ * account names must be between 3 and 24 characters in length and use numbers and lower-case
+ * letters only.
+ * @param shareName The name of the file share within the specified storage account. File share
+ * names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash
+ * (-) only. Every dash (-) character must be immediately preceded and followed by a letter or
+ * number.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ lease(resourceGroupName: string, accountName: string, shareName: string, options: Models.FileSharesLeaseOptionalParams, callback: msRest.ServiceCallback): void;
+ lease(resourceGroupName: string, accountName: string, shareName: string, options?: Models.FileSharesLeaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ accountName,
+ shareName,
+ options
+ },
+ leaseOperationSpec,
+ callback) as Promise;
}
/**
@@ -514,10 +419,7 @@ export class FileShares {
* @param [options] The optional parameters
* @returns Promise
*/
- listNext(
- nextPageLink: string,
- options?: Models.FileSharesListNextOptionalParams
- ): Promise;
+ listNext(nextPageLink: string, options?: Models.FileSharesListNextOptionalParams): Promise;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
@@ -528,26 +430,15 @@ export class FileShares {
* @param options The optional parameters
* @param callback The callback
*/
- listNext(
- nextPageLink: string,
- options: Models.FileSharesListNextOptionalParams,
- callback: msRest.ServiceCallback
- ): void;
- listNext(
- nextPageLink: string,
- options?:
- | Models.FileSharesListNextOptionalParams
- | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ listNext(nextPageLink: string, options: Models.FileSharesListNextOptionalParams, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, options?: Models.FileSharesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
nextPageLink,
options
},
listNextOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
}
@@ -555,16 +446,21 @@ export class FileShares {
const serializer = new msRest.Serializer(Mappers);
const listOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares",
- urlParameters: [Parameters.resourceGroupName, Parameters.accountName, Parameters.subscriptionId],
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.accountName,
+ Parameters.subscriptionId
+ ],
queryParameters: [
Parameters.apiVersion,
Parameters.maxpagesize,
Parameters.filter,
Parameters.expand2
],
- headerParameters: [Parameters.acceptLanguage],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
responses: {
200: {
bodyMapper: Mappers.FileShareItems
@@ -578,16 +474,20 @@ const listOperationSpec: msRest.OperationSpec = {
const createOperationSpec: msRest.OperationSpec = {
httpMethod: "PUT",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
urlParameters: [
Parameters.resourceGroupName,
Parameters.accountName,
Parameters.shareName,
Parameters.subscriptionId
],
- queryParameters: [Parameters.expand2, Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ queryParameters: [
+ Parameters.expand2,
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
requestBody: {
parameterPath: "fileShare",
mapper: {
@@ -611,16 +511,19 @@ const createOperationSpec: msRest.OperationSpec = {
const updateOperationSpec: msRest.OperationSpec = {
httpMethod: "PATCH",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
urlParameters: [
Parameters.resourceGroupName,
Parameters.accountName,
Parameters.shareName,
Parameters.subscriptionId
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
requestBody: {
parameterPath: "fileShare",
mapper: {
@@ -641,16 +544,21 @@ const updateOperationSpec: msRest.OperationSpec = {
const getOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
urlParameters: [
Parameters.resourceGroupName,
Parameters.accountName,
Parameters.shareName,
Parameters.subscriptionId
],
- queryParameters: [Parameters.apiVersion, Parameters.expand3],
- headerParameters: [Parameters.xMsSnapshot, Parameters.acceptLanguage],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.expand2
+ ],
+ headerParameters: [
+ Parameters.xMsSnapshot,
+ Parameters.acceptLanguage
+ ],
responses: {
200: {
bodyMapper: Mappers.FileShare
@@ -664,16 +572,21 @@ const getOperationSpec: msRest.OperationSpec = {
const deleteMethodOperationSpec: msRest.OperationSpec = {
httpMethod: "DELETE",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
urlParameters: [
Parameters.resourceGroupName,
Parameters.accountName,
Parameters.shareName,
Parameters.subscriptionId
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.xMsSnapshot, Parameters.acceptLanguage],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.include
+ ],
+ headerParameters: [
+ Parameters.xMsSnapshot,
+ Parameters.acceptLanguage
+ ],
responses: {
200: {},
204: {},
@@ -686,16 +599,19 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
const restoreOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/restore",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/restore",
urlParameters: [
Parameters.resourceGroupName,
Parameters.accountName,
Parameters.shareName,
Parameters.subscriptionId
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
requestBody: {
parameterPath: {
deletedShareName: "deletedShareName",
@@ -715,18 +631,58 @@ const restoreOperationSpec: msRest.OperationSpec = {
serializer
};
+const leaseOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/lease",
+ urlParameters: [
+ Parameters.resourceGroupName,
+ Parameters.accountName,
+ Parameters.shareName,
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.xMsSnapshot,
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: [
+ "options",
+ "parameters"
+ ],
+ mapper: Mappers.LeaseShareRequest
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.LeaseShareResponse,
+ headersMapper: Mappers.FileSharesLeaseHeaders
+ },
+ default: {
+ bodyMapper: Mappers.CloudError,
+ headersMapper: Mappers.FileSharesLeaseHeaders
+ }
+ },
+ serializer
+};
+
const listNextOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
baseUrl: "https://management.azure.com",
path: "{nextLink}",
- urlParameters: [Parameters.nextPageLink],
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
queryParameters: [
Parameters.apiVersion,
Parameters.maxpagesize,
Parameters.filter,
Parameters.expand2
],
- headerParameters: [Parameters.acceptLanguage],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
responses: {
200: {
bodyMapper: Mappers.FileShareItems
diff --git a/sdk/storage/arm-storage/src/operations/objectReplicationPoliciesOperations.ts b/sdk/storage/arm-storage/src/operations/objectReplicationPoliciesOperations.ts
index f87a25430633..e3a34181e7c0 100644
--- a/sdk/storage/arm-storage/src/operations/objectReplicationPoliciesOperations.ts
+++ b/sdk/storage/arm-storage/src/operations/objectReplicationPoliciesOperations.ts
@@ -73,8 +73,10 @@ export class ObjectReplicationPoliciesOperations {
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case
* letters only.
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
- * ID is unknown.
+ * @param objectReplicationPolicyId For the destination account, provide the value 'default'.
+ * Configure the policy on the destination account first. For the source account, provide the value
+ * of the policy ID that is returned when you download the policy that was defined on the
+ * destination account. The policy is downloaded as a JSON file.
* @param [options] The optional parameters
* @returns Promise
*/
@@ -85,8 +87,10 @@ export class ObjectReplicationPoliciesOperations {
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case
* letters only.
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
- * ID is unknown.
+ * @param objectReplicationPolicyId For the destination account, provide the value 'default'.
+ * Configure the policy on the destination account first. For the source account, provide the value
+ * of the policy ID that is returned when you download the policy that was defined on the
+ * destination account. The policy is downloaded as a JSON file.
* @param callback The callback
*/
get(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, callback: msRest.ServiceCallback): void;
@@ -96,8 +100,10 @@ export class ObjectReplicationPoliciesOperations {
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case
* letters only.
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
- * ID is unknown.
+ * @param objectReplicationPolicyId For the destination account, provide the value 'default'.
+ * Configure the policy on the destination account first. For the source account, provide the value
+ * of the policy ID that is returned when you download the policy that was defined on the
+ * destination account. The policy is downloaded as a JSON file.
* @param options The optional parameters
* @param callback The callback
*/
@@ -121,8 +127,10 @@ export class ObjectReplicationPoliciesOperations {
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case
* letters only.
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
- * ID is unknown.
+ * @param objectReplicationPolicyId For the destination account, provide the value 'default'.
+ * Configure the policy on the destination account first. For the source account, provide the value
+ * of the policy ID that is returned when you download the policy that was defined on the
+ * destination account. The policy is downloaded as a JSON file.
* @param properties The object replication policy set to a storage account. A unique policy ID
* will be created if absent.
* @param [options] The optional parameters
@@ -135,8 +143,10 @@ export class ObjectReplicationPoliciesOperations {
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case
* letters only.
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
- * ID is unknown.
+ * @param objectReplicationPolicyId For the destination account, provide the value 'default'.
+ * Configure the policy on the destination account first. For the source account, provide the value
+ * of the policy ID that is returned when you download the policy that was defined on the
+ * destination account. The policy is downloaded as a JSON file.
* @param properties The object replication policy set to a storage account. A unique policy ID
* will be created if absent.
* @param callback The callback
@@ -148,8 +158,10 @@ export class ObjectReplicationPoliciesOperations {
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case
* letters only.
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
- * ID is unknown.
+ * @param objectReplicationPolicyId For the destination account, provide the value 'default'.
+ * Configure the policy on the destination account first. For the source account, provide the value
+ * of the policy ID that is returned when you download the policy that was defined on the
+ * destination account. The policy is downloaded as a JSON file.
* @param properties The object replication policy set to a storage account. A unique policy ID
* will be created if absent.
* @param options The optional parameters
@@ -176,8 +188,10 @@ export class ObjectReplicationPoliciesOperations {
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case
* letters only.
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
- * ID is unknown.
+ * @param objectReplicationPolicyId For the destination account, provide the value 'default'.
+ * Configure the policy on the destination account first. For the source account, provide the value
+ * of the policy ID that is returned when you download the policy that was defined on the
+ * destination account. The policy is downloaded as a JSON file.
* @param [options] The optional parameters
* @returns Promise
*/
@@ -188,8 +202,10 @@ export class ObjectReplicationPoliciesOperations {
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case
* letters only.
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
- * ID is unknown.
+ * @param objectReplicationPolicyId For the destination account, provide the value 'default'.
+ * Configure the policy on the destination account first. For the source account, provide the value
+ * of the policy ID that is returned when you download the policy that was defined on the
+ * destination account. The policy is downloaded as a JSON file.
* @param callback The callback
*/
deleteMethod(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, callback: msRest.ServiceCallback): void;
@@ -199,8 +215,10 @@ export class ObjectReplicationPoliciesOperations {
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case
* letters only.
- * @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
- * ID is unknown.
+ * @param objectReplicationPolicyId For the destination account, provide the value 'default'.
+ * Configure the policy on the destination account first. For the source account, provide the value
+ * of the policy ID that is returned when you download the policy that was defined on the
+ * destination account. The policy is downloaded as a JSON file.
* @param options The optional parameters
* @param callback The callback
*/
diff --git a/sdk/storage/arm-storage/src/storageManagementClient.ts b/sdk/storage/arm-storage/src/storageManagementClient.ts
index 243688c40ba2..49219deb5668 100644
--- a/sdk/storage/arm-storage/src/storageManagementClient.ts
+++ b/sdk/storage/arm-storage/src/storageManagementClient.ts
@@ -8,6 +8,7 @@
*/
import * as msRest from "@azure/ms-rest-js";
+import { TokenCredential } from "@azure/core-auth";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
@@ -38,11 +39,16 @@ class StorageManagementClient extends StorageManagementClientContext {
/**
* Initializes a new instance of the StorageManagementClient class.
- * @param credentials Credentials needed for the client to connect to Azure.
+ * @param credentials Credentials needed for the client to connect to Azure. Credentials
+ * implementing the TokenCredential interface from the @azure/identity package are recommended. For
+ * more information about these credentials, see
+ * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
+ * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
+ * @azure/ms-rest-browserauth are also supported.
* @param subscriptionId The ID of the target subscription.
* @param [options] The parameter options
*/
- constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.StorageManagementClientOptions) {
+ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageManagementClientOptions) {
super(credentials, subscriptionId, options);
this.operations = new operations.Operations(this);
this.skus = new operations.Skus(this);
diff --git a/sdk/storage/arm-storage/src/storageManagementClientContext.ts b/sdk/storage/arm-storage/src/storageManagementClientContext.ts
index 6e9d9eefca84..e81ed83f04c6 100644
--- a/sdk/storage/arm-storage/src/storageManagementClientContext.ts
+++ b/sdk/storage/arm-storage/src/storageManagementClientContext.ts
@@ -10,31 +10,33 @@
import * as Models from "./models";
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
+import { TokenCredential } from "@azure/core-auth";
const packageName = "@azure/arm-storage";
const packageVersion = "16.0.0";
export class StorageManagementClientContext extends msRestAzure.AzureServiceClient {
- credentials: msRest.ServiceClientCredentials;
+ credentials: msRest.ServiceClientCredentials | TokenCredential;
subscriptionId: string;
apiVersion?: string;
/**
* Initializes a new instance of the StorageManagementClient class.
- * @param credentials Credentials needed for the client to connect to Azure.
+ * @param credentials Credentials needed for the client to connect to Azure. Credentials
+ * implementing the TokenCredential interface from the @azure/identity package are recommended. For
+ * more information about these credentials, see
+ * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
+ * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
+ * @azure/ms-rest-browserauth are also supported.
* @param subscriptionId The ID of the target subscription.
* @param [options] The parameter options
*/
- constructor(
- credentials: msRest.ServiceClientCredentials,
- subscriptionId: string,
- options?: Models.StorageManagementClientOptions
- ) {
+ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StorageManagementClientOptions) {
if (credentials == undefined) {
- throw new Error("'credentials' cannot be null.");
+ throw new Error('\'credentials\' cannot be null.');
}
if (subscriptionId == undefined) {
- throw new Error("'subscriptionId' cannot be null.");
+ throw new Error('\'subscriptionId\' cannot be null.');
}
if (!options) {
@@ -47,8 +49,8 @@ export class StorageManagementClientContext extends msRestAzure.AzureServiceClie
super(credentials, options);
- this.apiVersion = "2021-02-01";
- this.acceptLanguage = "en-US";
+ this.apiVersion = '2021-04-01';
+ this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
this.requestContentType = "application/json; charset=utf-8";
@@ -58,10 +60,7 @@ export class StorageManagementClientContext extends msRestAzure.AzureServiceClie
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
- if (
- options.longRunningOperationRetryTimeout !== null &&
- options.longRunningOperationRetryTimeout !== undefined
- ) {
+ if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}