From eb2f30d47b08e9029009e09860f6b37b6f5c6a6b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 9 Nov 2021 09:17:38 +0000 Subject: [PATCH] CodeGen from PR 16659 in Azure/azure-rest-api-specs Merge cc77a06a1ee520a79841620ed2a671dfb9df04f5 into dc33f3f6452de718c91fdd4f1572fdd95dea4a43 --- sdk/storage/arm-storage/README.md | 9 +- sdk/storage/arm-storage/package.json | 2 +- .../src/models/blobContainersMappers.ts | 6 + .../models/blobInventoryPoliciesMappers.ts | 6 + .../src/models/blobServicesMappers.ts | 6 + .../src/models/deletedAccountsMappers.ts | 6 + .../src/models/encryptionScopesMappers.ts | 6 + .../src/models/fileServicesMappers.ts | 6 + .../src/models/fileSharesMappers.ts | 9 + sdk/storage/arm-storage/src/models/index.ts | 2340 ++++++++++------- .../src/models/managementPoliciesMappers.ts | 6 + sdk/storage/arm-storage/src/models/mappers.ts | 613 ++++- ...ectReplicationPoliciesOperationsMappers.ts | 6 + .../arm-storage/src/models/parameters.ts | 85 +- .../privateEndpointConnectionsMappers.ts | 6 + .../src/models/privateLinkResourcesMappers.ts | 6 + .../arm-storage/src/models/queueMappers.ts | 6 + .../src/models/queueServicesMappers.ts | 6 + .../src/models/storageAccountsMappers.ts | 8 + .../src/models/tableOperationsMappers.ts | 6 + .../src/models/tableServicesMappers.ts | 6 + .../src/operations/blobContainers.ts | 129 +- .../arm-storage/src/operations/fileShares.ts | 404 ++- .../objectReplicationPoliciesOperations.ts | 54 +- .../src/operations/storageAccounts.ts | 130 + .../src/storageManagementClientContext.ts | 21 +- 26 files changed, 2597 insertions(+), 1291 deletions(-) diff --git a/sdk/storage/arm-storage/README.md b/sdk/storage/arm-storage/README.md index 71fc9ecbee4a..d165374aa6e5 100644 --- a/sdk/storage/arm-storage/README.md +++ b/sdk/storage/arm-storage/README.md @@ -1,11 +1,11 @@ ## Azure StorageManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for StorageManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for StorageManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash 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. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ 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 @@ -51,7 +49,6 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // 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); @@ -86,7 +83,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmStorage.StorageManagementClient(creds, subscriptionId); client.operations.list().then((result) => { diff --git a/sdk/storage/arm-storage/package.json b/sdk/storage/arm-storage/package.json index 2d9dce35ed43..2d88b2439edf 100644 --- a/sdk/storage/arm-storage/package.json +++ b/sdk/storage/arm-storage/package.json @@ -27,7 +27,7 @@ "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..a02fdbaafdf9 100644 --- a/sdk/storage/arm-storage/src/models/blobContainersMappers.ts +++ b/sdk/storage/arm-storage/src/models/blobContainersMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -50,6 +52,8 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -80,6 +84,7 @@ export { PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -88,6 +93,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..d8d5468eb4a3 100644 --- a/sdk/storage/arm-storage/src/models/blobInventoryPoliciesMappers.ts +++ b/sdk/storage/arm-storage/src/models/blobInventoryPoliciesMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -46,6 +48,8 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -73,6 +77,7 @@ export { PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -81,6 +86,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..7bf277be04a1 100644 --- a/sdk/storage/arm-storage/src/models/blobServicesMappers.ts +++ b/sdk/storage/arm-storage/src/models/blobServicesMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -46,6 +48,8 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -72,6 +76,7 @@ export { PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -80,6 +85,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..ba054e361661 100644 --- a/sdk/storage/arm-storage/src/models/deletedAccountsMappers.ts +++ b/sdk/storage/arm-storage/src/models/deletedAccountsMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -47,6 +49,8 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -73,6 +77,7 @@ export { PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -81,6 +86,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..22a4c709f8e6 100644 --- a/sdk/storage/arm-storage/src/models/encryptionScopesMappers.ts +++ b/sdk/storage/arm-storage/src/models/encryptionScopesMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -48,6 +50,8 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -74,6 +78,7 @@ export { PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -82,6 +87,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..31eeb2354ed2 100644 --- a/sdk/storage/arm-storage/src/models/fileServicesMappers.ts +++ b/sdk/storage/arm-storage/src/models/fileServicesMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -46,6 +48,8 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -72,6 +76,7 @@ export { PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -80,6 +85,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..e9b4c5f0861e 100644 --- a/sdk/storage/arm-storage/src/models/fileSharesMappers.ts +++ b/sdk/storage/arm-storage/src/models/fileSharesMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -43,15 +45,20 @@ export { FileShare, FileShareItem, FileShareItems, + FileSharesLeaseHeaders, GeoReplicationStats, Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, KeyVaultProperties, LastAccessTimeTrackingPolicy, + LeaseShareRequest, + LeaseShareResponse, LegalHoldProperties, ListContainerItem, ListQueue, @@ -73,6 +80,7 @@ export { PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -81,6 +89,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..05c724ab2f7a 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,12 @@ 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' + */ + defaultSharePermission?: DefaultSharePermission; } /** @@ -554,6 +560,52 @@ export interface RoutingPreference { publishInternetEndpoints?: boolean; } +/** + * This defines account-level immutability policy properties. + */ +export interface AccountImmutabilityPolicyProperties { + /** + * The immutability period for the blobs in the container since the policy creation, in days. + */ + immutabilityPeriodSinceCreationInDays?: number; + /** + * The ImmutabilityPolicy state defines the mode of the policy. Disabled state disables the + * policy, Unlocked state allows increase and decrease of immutability retention time and also + * allows toggling allowProtectedAppendWrites property, Locked state only allows the increase of + * the immutability retention time. A policy can only be created in a Disabled or Unlocked state + * and can be toggled between the two states. Only a policy in an Unlocked state can transition + * to a Locked state which cannot be reverted. Possible values include: 'Unlocked', 'Locked', + * 'Disabled' + */ + state?: AccountImmutabilityPolicyState; + /** + * This property can only be changed for disabled and unlocked time-based retention policies. + * When enabled, new blocks can be written to an append blob while maintaining immutability + * protection and compliance. Only new blocks can be added and any existing blocks cannot be + * modified or deleted. + */ + allowProtectedAppendWrites?: boolean; +} + +/** + * This property enables and defines account-level immutability. Enabling the feature auto-enables + * Blob Versioning. + */ +export interface ImmutableStorageAccount { + /** + * A boolean flag which enables account-level immutability. All the containers under such an + * account have object-level immutability enabled by default. + */ + enabled?: boolean; + /** + * Specifies the default account-level immutability policy which is inherited and applied to + * objects that do not possess an explicit immutability policy at the object level. The + * object-level immutability policy has higher precedence than the container-level immutability + * policy, which has a higher precedence than the account-level immutability policy. + */ + immutabilityPolicy?: AccountImmutabilityPolicyProperties; +} + /** * Identity for the resource. */ @@ -646,6 +698,11 @@ export interface StorageAccountCreateParameters { * The identity of the resource. */ identity?: Identity; + /** + * Allow or disallow public network access to Storage Account. Value is optional but if passed + * in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccess; /** * SasPolicy assigned to the storage account. */ @@ -717,6 +774,22 @@ 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; + /** + * A boolean flag which indicates whether the default authentication is OAuth or not. The default + * interpretation is false for this property. + */ + defaultToOAuthAuthentication?: boolean; + /** + * The property is immutable and can only be set to true at the account creation time. When set + * to true, it enables object level immutability for all the new containers in the account by + * default. + */ + immutableStorageWithVersioning?: ImmutableStorageAccount; } /** @@ -993,7 +1066,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 +1292,27 @@ 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; + /** + * A boolean flag which indicates whether the default authentication is OAuth or not. The default + * interpretation is false for this property. + */ + defaultToOAuthAuthentication?: boolean; + /** + * Allow or disallow public network access to Storage Account. Value is optional but if passed + * in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * The property is immutable and can only be set to true at the account creation time. When set + * to true, it enables object level immutability for all the containers in the account by + * default. + */ + immutableStorageWithVersioning?: ImmutableStorageAccount; } /** @@ -1350,6 +1445,27 @@ 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; + /** + * A boolean flag which indicates whether the default authentication is OAuth or not. The default + * interpretation is false for this property. + */ + defaultToOAuthAuthentication?: boolean; + /** + * Allow or disallow public network access to Storage Account. Value is optional but if passed + * in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * The property is immutable and can only be set to true at the account creation time. When set + * to true, it enables object level immutability for all the containers in the account by + * default. + */ + immutableStorageWithVersioning?: ImmutableStorageAccount; /** * Optional. Indicates the type of storage account. Currently only StorageV2 value supported by * server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', @@ -1875,11 +1991,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 +2007,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 +2019,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, + * AccessTierInferred, Tags, 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.'Tags' field is only valid for non Hns accounts + */ + schemaFields: string[]; } /** @@ -1934,6 +2088,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 +2106,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. */ @@ -2108,6 +2262,22 @@ export interface UpdateHistoryProperty { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly upn?: string; + /** + * This property can only be changed for unlocked time-based retention policies. When enabled, + * new blocks can be written to an append blob while maintaining immutability protection and + * compliance. Only new blocks can be added and any existing blocks cannot be modified or + * deleted. This property cannot be changed with ExtendImmutabilityPolicy API. + */ + allowProtectedAppendWrites?: boolean; + /** + * This property can only be changed for unlocked time-based retention policies. When enabled, + * new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability + * protection and compliance. Only new blocks can be added and any existing blocks cannot be + * modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The + * 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually + * exclusive. + */ + allowProtectedAppendWritesAll?: boolean; } /** @@ -2128,9 +2298,18 @@ export interface ImmutabilityPolicyProperties { * This property can only be changed for unlocked time-based retention policies. When enabled, * new blocks can be written to an append blob while maintaining immutability protection and * compliance. Only new blocks can be added and any existing blocks cannot be modified or - * deleted. This property cannot be changed with ExtendImmutabilityPolicy API + * deleted. This property cannot be changed with ExtendImmutabilityPolicy API. */ allowProtectedAppendWrites?: boolean; + /** + * This property can only be changed for unlocked time-based retention policies. When enabled, + * new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability + * protection and compliance. Only new blocks can be added and any existing blocks cannot be + * modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The + * 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually + * exclusive. + */ + allowProtectedAppendWritesAll?: boolean; /** * ImmutabilityPolicy Etag. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -2174,6 +2353,23 @@ export interface TagProperty { readonly upn?: string; } +/** + * Protected append writes history setting for the blob container with Legal holds. + */ +export interface ProtectedAppendWritesHistory { + /** + * When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining + * legal hold protection and compliance. Only new blocks can be added and any existing blocks + * cannot be modified or deleted. + */ + allowProtectedAppendWritesAll?: boolean; + /** + * Returns the date and time the tag was added. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly timestamp?: Date; +} + /** * The LegalHold property of a blob container. */ @@ -2190,6 +2386,32 @@ export interface LegalHoldProperties { * The list of LegalHold tags of a blob container. */ tags?: TagProperty[]; + /** + * Protected append blob writes history. + */ + protectedAppendWritesHistory?: ProtectedAppendWritesHistory; +} + +/** + * 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; } /** @@ -2280,6 +2502,20 @@ 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; + /** + * Enable NFSv3 root squash on blob container. + */ + enableNfsV3RootSquash?: boolean; + /** + * Enable NFSv3 all squash on blob container. + */ + enableNfsV3AllSquash?: boolean; } /** @@ -2301,9 +2537,18 @@ export interface ImmutabilityPolicy extends AzureEntityResource { * This property can only be changed for unlocked time-based retention policies. When enabled, * new blocks can be written to an append blob while maintaining immutability protection and * compliance. Only new blocks can be added and any existing blocks cannot be modified or - * deleted. This property cannot be changed with ExtendImmutabilityPolicy API + * deleted. This property cannot be changed with ExtendImmutabilityPolicy API. */ allowProtectedAppendWrites?: boolean; + /** + * This property can only be changed for unlocked time-based retention policies. When enabled, + * new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability + * protection and compliance. Only new blocks can be added and any existing blocks cannot be + * modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The + * 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually + * exclusive. + */ + allowProtectedAppendWritesAll?: boolean; } /** @@ -2322,6 +2567,12 @@ export interface LegalHold { * Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP. */ tags: string[]; + /** + * When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining + * legal hold protection and compliance. Only new blocks can be added and any existing blocks + * cannot be modified or deleted. + */ + allowProtectedAppendWritesAll?: boolean; } /** @@ -2412,6 +2663,20 @@ 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; + /** + * Enable NFSv3 root squash on blob container. + */ + enableNfsV3RootSquash?: boolean; + /** + * Enable NFSv3 all squash on blob container. + */ + enableNfsV3AllSquash?: boolean; } /** @@ -2716,6 +2981,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 +3083,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 +3196,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 +3225,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 +3378,7 @@ export interface StorageAccountsListKeysOptionalParams extends msRest.RequestOpt /** * Optional Parameters. */ -export interface BlobInventoryPoliciesCreateOrUpdateOptionalParams - extends msRest.RequestOptionsBase { +export interface BlobInventoryPoliciesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { systemData?: SystemData; } @@ -3022,32 +3404,35 @@ export interface BlobContainersListOptionalParams extends msRest.RequestOptionsB /** * Optional Parameters. */ -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 - * operation will always be applied. - */ - ifMatch?: string; +export interface BlobContainersSetLegalHoldOptionalParams extends msRest.RequestOptionsBase { /** - * The immutability period for the blobs in the container since the policy creation, in days. + * When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining + * legal hold protection and compliance. Only new blocks can be added and any existing blocks + * cannot be modified or deleted. */ - immutabilityPeriodSinceCreationInDays?: number; + allowProtectedAppendWritesAll?: boolean; +} + +/** + * Optional Parameters. + */ +export interface BlobContainersClearLegalHoldOptionalParams extends msRest.RequestOptionsBase { /** - * This property can only be changed for unlocked time-based retention policies. When enabled, - * new blocks can be written to an append blob while maintaining immutability protection and - * compliance. Only new blocks can be added and any existing blocks cannot be modified or - * deleted. This property cannot be changed with ExtendImmutabilityPolicy API + * When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining + * legal hold protection and compliance. Only new blocks can be added and any existing blocks + * cannot be modified or deleted. */ - allowProtectedAppendWrites?: boolean; + allowProtectedAppendWritesAll?: boolean; } /** * Optional Parameters. */ -export interface BlobContainersGetImmutabilityPolicyOptionalParams - extends msRest.RequestOptionsBase { +export interface BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams extends msRest.RequestOptionsBase { + /** + * The ImmutabilityPolicy Properties that will be created or updated to a blob container. + */ + parameters?: ImmutabilityPolicy; /** * 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,19 +3444,23 @@ export interface BlobContainersGetImmutabilityPolicyOptionalParams /** * Optional Parameters. */ -export interface BlobContainersExtendImmutabilityPolicyOptionalParams - extends msRest.RequestOptionsBase { +export interface BlobContainersGetImmutabilityPolicyOptionalParams extends msRest.RequestOptionsBase { /** - * The immutability period for the blobs in the container since the policy creation, in days. + * 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 + * operation will always be applied. */ - immutabilityPeriodSinceCreationInDays?: number; + ifMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface BlobContainersExtendImmutabilityPolicyOptionalParams extends msRest.RequestOptionsBase { /** - * This property can only be changed for unlocked time-based retention policies. When enabled, - * new blocks can be written to an append blob while maintaining immutability protection and - * compliance. Only new blocks can be added and any existing blocks cannot be modified or - * deleted. This property cannot be changed with ExtendImmutabilityPolicy API + * The ImmutabilityPolicy Properties that will be extended for a blob container. */ - allowProtectedAppendWrites?: boolean; + parameters?: ImmutabilityPolicy; } /** @@ -3116,10 +3505,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 +3516,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 +3527,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 +3545,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 +3583,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; } /** @@ -3318,19 +3731,33 @@ export interface BlobContainersExtendImmutabilityPolicyHeaders { } /** - * @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. + * 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 +3792,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 +3839,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 +3904,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 +3913,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 +3921,7 @@ export type SkuName = * @readonly * @enum {string} */ -export type SkuTier = "Standard" | "Premium"; +export type SkuTier = 'Standard' | 'Premium'; /** * Defines values for Kind. @@ -3506,7 +3930,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 +3938,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 +3946,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 +3954,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 +3962,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 +3979,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 +3987,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 +3995,24 @@ 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' + * @readonly + * @enum {string} + */ +export type DefaultSharePermission = 'None' | 'StorageFileDataSmbShareReader' | 'StorageFileDataSmbShareContributor' | 'StorageFileDataSmbShareElevatedContributor'; + +/** + * Defines values for PublicNetworkAccess. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type PublicNetworkAccess = 'Enabled' | 'Disabled'; /** * Defines values for AccessTier. @@ -3584,7 +4020,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 +4028,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 +4036,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 +4044,15 @@ 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 AccountImmutabilityPolicyState. + * Possible values include: 'Unlocked', 'Locked', 'Disabled' + * @readonly + * @enum {string} + */ +export type AccountImmutabilityPolicyState = 'Unlocked' | 'Locked' | 'Disabled'; /** * Defines values for IdentityType. @@ -3616,11 +4060,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 +4068,7 @@ export type IdentityType = * @readonly * @enum {string} */ -export type ExtendedLocationTypes = "EdgeZone"; +export type ExtendedLocationTypes = 'EdgeZone'; /** * Defines values for GeoReplicationStatus. @@ -3636,7 +4076,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 +4084,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 +4092,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 +4100,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 +4108,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 +4116,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 +4124,7 @@ export type PrivateEndpointConnectionProvisioningState = * @readonly * @enum {string} */ -export type KeyPermission = "Read" | "Full"; +export type KeyPermission = 'Read' | 'Full'; /** * Defines values for UsageUnit. @@ -3697,13 +4133,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 +4141,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 +4149,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 +4157,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 +4165,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 +4173,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 +4181,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 +4189,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 +4221,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 +4229,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 +4237,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 +4245,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 +4253,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 +4261,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 +4269,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 +4285,7 @@ export type ImmutabilityPolicyUpdateType = "put" | "lock" | "extend"; * @readonly * @enum {string} */ -export type Name = "AccessTimeTracking"; +export type Name = 'AccessTimeTracking'; /** * Defines values for EnabledProtocols. @@ -3831,7 +4293,7 @@ export type Name = "AccessTimeTracking"; * @readonly * @enum {string} */ -export type EnabledProtocols = "SMB" | "NFS"; +export type EnabledProtocols = 'SMB' | 'NFS'; /** * Defines values for RootSquashType. @@ -3839,7 +4301,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 +4309,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 +4325,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 +4333,7 @@ export type StorageAccountExpand = "geoReplicationStats" | "blobRestoreStatus"; * @readonly * @enum {string} */ -export type ListKeyExpand = "kerb"; +export type ListKeyExpand = 'kerb'; /** * Defines values for ListContainersInclude. @@ -3871,31 +4341,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 +4349,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 +4359,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 +4379,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 +4399,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 +4419,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 +4439,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,16 +4459,16 @@ 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; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: StorageAccount; + }; }; /** @@ -4033,16 +4479,16 @@ 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 +4499,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 +4519,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 +4539,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 +4559,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 +4579,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 +4599,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 +4619,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 +4639,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 +4659,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 +4679,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 +4699,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 +4719,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,36 +4739,36 @@ 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; -/** - * Contains response data for the listByLocation operation. - */ + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeletedAccountListResult; + }; +}; + +/** + * Contains response data for the listByLocation operation. + */ 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 +4779,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 +4799,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 +4819,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 +4839,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 +4859,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 +4879,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 +4899,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 +4919,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 +4939,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 +4959,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 +4979,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 +4999,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,16 +5019,16 @@ 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; + }; }; /** @@ -4593,16 +5039,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 +5059,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 +5079,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 +5099,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 +5119,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 +5139,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 +5159,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 +5179,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 +5199,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 +5219,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 +5239,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 +5259,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 +5279,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 +5314,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 +5339,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 +5364,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 +5389,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 +5414,7 @@ export type BlobContainersExtendImmutabilityPolicyResponse = ImmutabilityPolicy */ parsedBody: ImmutabilityPolicy; }; - }; +}; /** * Contains response data for the lease operation. @@ -4983,16 +5424,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 +5444,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 +5464,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 +5484,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 +5504,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 +5524,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 +5544,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 +5564,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 +5584,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 +5629,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 +5649,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 +5669,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 +5689,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 +5709,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 +5729,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 +5749,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 +5769,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 +5789,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 +5809,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 +5829,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 +5849,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 +5869,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 +5889,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 +5909,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 +5929,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 +5949,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..5ec01313be17 100644 --- a/sdk/storage/arm-storage/src/models/managementPoliciesMappers.ts +++ b/sdk/storage/arm-storage/src/models/managementPoliciesMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -45,6 +47,8 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -71,6 +75,7 @@ export { PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -79,6 +84,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..26abda598eab 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" + } } } } @@ -914,6 +933,61 @@ export const RoutingPreference: msRest.CompositeMapper = { } }; +export const AccountImmutabilityPolicyProperties: msRest.CompositeMapper = { + serializedName: "AccountImmutabilityPolicyProperties", + type: { + name: "Composite", + className: "AccountImmutabilityPolicyProperties", + modelProperties: { + immutabilityPeriodSinceCreationInDays: { + serializedName: "immutabilityPeriodSinceCreationInDays", + constraints: { + InclusiveMaximum: 146000, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + state: { + serializedName: "state", + type: { + name: "String" + } + }, + allowProtectedAppendWrites: { + serializedName: "allowProtectedAppendWrites", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ImmutableStorageAccount: msRest.CompositeMapper = { + serializedName: "ImmutableStorageAccount", + type: { + name: "Composite", + className: "ImmutableStorageAccount", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + immutabilityPolicy: { + serializedName: "immutabilityPolicy", + type: { + name: "Composite", + className: "AccountImmutabilityPolicyProperties" + } + } + } + } +}; + export const Identity: msRest.CompositeMapper = { serializedName: "Identity", type: { @@ -996,7 +1070,10 @@ export const Sku: msRest.CompositeMapper = { serializedName: "tier", type: { name: "Enum", - allowedValues: ["Standard", "Premium"] + allowedValues: [ + "Standard", + "Premium" + ] } } } @@ -1056,6 +1133,12 @@ export const StorageAccountCreateParameters: msRest.CompositeMapper = { className: "Identity" } }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, sasPolicy: { serializedName: "properties.sasPolicy", type: { @@ -1095,7 +1178,10 @@ export const StorageAccountCreateParameters: msRest.CompositeMapper = { serializedName: "properties.accessTier", type: { name: "Enum", - allowedValues: ["Hot", "Cool"] + allowedValues: [ + "Hot", + "Cool" + ] } }, azureFilesIdentityBasedAuthentication: { @@ -1153,6 +1239,25 @@ export const StorageAccountCreateParameters: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + allowCrossTenantReplication: { + serializedName: "properties.allowCrossTenantReplication", + type: { + name: "Boolean" + } + }, + defaultToOAuthAuthentication: { + serializedName: "properties.defaultToOAuthAuthentication", + type: { + name: "Boolean" + } + }, + immutableStorageWithVersioning: { + serializedName: "properties.immutableStorageWithVersioning", + type: { + name: "Composite", + className: "ImmutableStorageAccount" + } } } } @@ -1673,7 +1778,11 @@ export const StorageAccount: msRest.CompositeMapper = { serializedName: "properties.provisioningState", type: { name: "Enum", - allowedValues: ["Creating", "ResolvingDNS", "Succeeded"] + allowedValues: [ + "Creating", + "ResolvingDNS", + "Succeeded" + ] } }, primaryEndpoints: { @@ -1696,7 +1805,10 @@ export const StorageAccount: msRest.CompositeMapper = { serializedName: "properties.statusOfPrimary", type: { name: "Enum", - allowedValues: ["available", "unavailable"] + allowedValues: [ + "available", + "unavailable" + ] } }, lastGeoFailoverTime: { @@ -1718,7 +1830,10 @@ export const StorageAccount: msRest.CompositeMapper = { serializedName: "properties.statusOfSecondary", type: { name: "Enum", - allowedValues: ["available", "unavailable"] + allowedValues: [ + "available", + "unavailable" + ] } }, creationTime: { @@ -1781,7 +1896,10 @@ export const StorageAccount: msRest.CompositeMapper = { serializedName: "properties.accessTier", type: { name: "Enum", - allowedValues: ["Hot", "Cool"] + allowedValues: [ + "Hot", + "Cool" + ] } }, azureFilesIdentityBasedAuthentication: { @@ -1883,6 +2001,31 @@ export const StorageAccount: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + allowCrossTenantReplication: { + serializedName: "properties.allowCrossTenantReplication", + type: { + name: "Boolean" + } + }, + defaultToOAuthAuthentication: { + serializedName: "properties.defaultToOAuthAuthentication", + type: { + name: "Boolean" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + immutableStorageWithVersioning: { + serializedName: "properties.immutableStorageWithVersioning", + type: { + name: "Composite", + className: "ImmutableStorageAccount" + } } } } @@ -1913,7 +2056,10 @@ export const StorageAccountKey: msRest.CompositeMapper = { serializedName: "permissions", type: { name: "Enum", - allowedValues: ["Read", "Full"] + allowedValues: [ + "Read", + "Full" + ] } }, creationTime: { @@ -2030,7 +2176,10 @@ export const StorageAccountUpdateParameters: msRest.CompositeMapper = { serializedName: "properties.accessTier", type: { name: "Enum", - allowedValues: ["Hot", "Cool"] + allowedValues: [ + "Hot", + "Cool" + ] } }, azureFilesIdentityBasedAuthentication: { @@ -2084,6 +2233,31 @@ export const StorageAccountUpdateParameters: msRest.CompositeMapper = { name: "Boolean" } }, + allowCrossTenantReplication: { + serializedName: "properties.allowCrossTenantReplication", + type: { + name: "Boolean" + } + }, + defaultToOAuthAuthentication: { + serializedName: "properties.defaultToOAuthAuthentication", + type: { + name: "Boolean" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + immutableStorageWithVersioning: { + serializedName: "properties.immutableStorageWithVersioning", + type: { + name: "Composite", + className: "ImmutableStorageAccount" + } + }, kind: { serializedName: "kind", type: { @@ -2202,7 +2376,10 @@ export const AccountSasParameters: msRest.CompositeMapper = { serializedName: "signedProtocol", type: { name: "Enum", - allowedValues: ["https,http", "https"] + allowedValues: [ + "https,http", + "https" + ] } }, sharedAccessStartTime: { @@ -2280,7 +2457,10 @@ export const ServiceSasParameters: msRest.CompositeMapper = { serializedName: "signedProtocol", type: { name: "Enum", - allowedValues: ["https,http", "https"] + allowedValues: [ + "https,http", + "https" + ] } }, sharedAccessStartTime: { @@ -2698,7 +2878,7 @@ export const ManagementPolicyRule: msRest.CompositeMapper = { required: true, isConstant: true, serializedName: "type", - defaultValue: "Lifecycle", + defaultValue: 'Lifecycle', type: { name: "String" } @@ -2977,7 +3157,6 @@ export const BlobInventoryPolicyFilter: msRest.CompositeMapper = { } }, blobTypes: { - required: true, serializedName: "blobTypes", type: { name: "Sequence", @@ -3011,12 +3190,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 +3253,13 @@ export const BlobInventoryPolicyRule: msRest.CompositeMapper = { name: "String" } }, + destination: { + required: true, + serializedName: "destination", + type: { + name: "String" + } + }, definition: { required: true, serializedName: "definition", @@ -3067,18 +3285,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" } @@ -3347,6 +3558,18 @@ export const UpdateHistoryProperty: msRest.CompositeMapper = { type: { name: "String" } + }, + allowProtectedAppendWrites: { + serializedName: "allowProtectedAppendWrites", + type: { + name: "Boolean" + } + }, + allowProtectedAppendWritesAll: { + serializedName: "allowProtectedAppendWritesAll", + type: { + name: "Boolean" + } } } } @@ -3377,6 +3600,12 @@ export const ImmutabilityPolicyProperties: msRest.CompositeMapper = { name: "Boolean" } }, + allowProtectedAppendWritesAll: { + serializedName: "properties.allowProtectedAppendWritesAll", + type: { + name: "Boolean" + } + }, etag: { readOnly: true, serializedName: "etag", @@ -3446,6 +3675,29 @@ export const TagProperty: msRest.CompositeMapper = { } }; +export const ProtectedAppendWritesHistory: msRest.CompositeMapper = { + serializedName: "ProtectedAppendWritesHistory", + type: { + name: "Composite", + className: "ProtectedAppendWritesHistory", + modelProperties: { + allowProtectedAppendWritesAll: { + serializedName: "allowProtectedAppendWritesAll", + type: { + name: "Boolean" + } + }, + timestamp: { + readOnly: true, + serializedName: "timestamp", + type: { + name: "DateTime" + } + } + } + } +}; + export const LegalHoldProperties: msRest.CompositeMapper = { serializedName: "LegalHoldProperties", type: { @@ -3470,6 +3722,43 @@ export const LegalHoldProperties: msRest.CompositeMapper = { } } } + }, + protectedAppendWritesHistory: { + serializedName: "protectedAppendWritesHistory", + type: { + name: "Composite", + className: "ProtectedAppendWritesHistory" + } + } + } + } +}; + +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" + } } } } @@ -3526,7 +3815,11 @@ export const BlobContainer: msRest.CompositeMapper = { serializedName: "properties.publicAccess", type: { name: "Enum", - allowedValues: ["Container", "Blob", "None"] + allowedValues: [ + "Container", + "Blob", + "None" + ] } }, lastModifiedTime: { @@ -3597,6 +3890,25 @@ export const BlobContainer: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + immutableStorageWithVersioning: { + serializedName: "properties.immutableStorageWithVersioning", + type: { + name: "Composite", + className: "ImmutableStorageWithVersioning" + } + }, + enableNfsV3RootSquash: { + serializedName: "properties.enableNfsV3RootSquash", + type: { + name: "Boolean" + } + }, + enableNfsV3AllSquash: { + serializedName: "properties.enableNfsV3AllSquash", + type: { + name: "Boolean" + } } } } @@ -3627,6 +3939,12 @@ export const ImmutabilityPolicy: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + allowProtectedAppendWritesAll: { + serializedName: "properties.allowProtectedAppendWritesAll", + type: { + name: "Boolean" + } } } } @@ -3656,6 +3974,12 @@ export const LegalHold: msRest.CompositeMapper = { } } } + }, + allowProtectedAppendWritesAll: { + serializedName: "allowProtectedAppendWritesAll", + type: { + name: "Boolean" + } } } } @@ -3712,7 +4036,11 @@ export const ListContainerItem: msRest.CompositeMapper = { serializedName: "properties.publicAccess", type: { name: "Enum", - allowedValues: ["Container", "Blob", "None"] + allowedValues: [ + "Container", + "Blob", + "None" + ] } }, lastModifiedTime: { @@ -3783,6 +4111,25 @@ export const ListContainerItem: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + immutableStorageWithVersioning: { + serializedName: "properties.immutableStorageWithVersioning", + type: { + name: "Composite", + className: "ImmutableStorageWithVersioning" + } + }, + enableNfsV3RootSquash: { + serializedName: "properties.enableNfsV3RootSquash", + type: { + name: "Boolean" + } + }, + enableNfsV3AllSquash: { + serializedName: "properties.enableNfsV3AllSquash", + type: { + name: "Boolean" + } } } } @@ -4287,6 +4634,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 +4787,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 +4957,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 +5001,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 +5295,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..c8c8066ad6a9 100644 --- a/sdk/storage/arm-storage/src/models/objectReplicationPoliciesOperationsMappers.ts +++ b/sdk/storage/arm-storage/src/models/objectReplicationPoliciesOperationsMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -46,6 +48,8 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -73,6 +77,7 @@ export { PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -81,6 +86,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..947ea369d92e 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,17 @@ export const queueServiceName: msRest.OperationURLParameter = { required: true, isConstant: true, serializedName: "queueServiceName", - defaultValue: "default", + defaultValue: 'default', + type: { + name: "String" + } + } +}; +export const requestType: msRest.OperationQueryParameter = { + parameterPath: "requestType", + mapper: { + required: true, + serializedName: "requestType", type: { name: "String" } @@ -367,14 +393,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..3444c78dd1cc 100644 --- a/sdk/storage/arm-storage/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/storage/arm-storage/src/models/privateEndpointConnectionsMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -47,6 +49,8 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -74,6 +78,7 @@ export { PrivateEndpointConnectionListResult, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -82,6 +87,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..5be7adf9e6a6 100644 --- a/sdk/storage/arm-storage/src/models/privateLinkResourcesMappers.ts +++ b/sdk/storage/arm-storage/src/models/privateLinkResourcesMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -45,6 +47,8 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -72,6 +76,7 @@ export { PrivateLinkResource, PrivateLinkResourceListResult, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -80,6 +85,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..ac76a59e1faa 100644 --- a/sdk/storage/arm-storage/src/models/queueMappers.ts +++ b/sdk/storage/arm-storage/src/models/queueMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -45,6 +47,8 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -72,6 +76,7 @@ export { PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -80,6 +85,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..c74657263ef1 100644 --- a/sdk/storage/arm-storage/src/models/queueServicesMappers.ts +++ b/sdk/storage/arm-storage/src/models/queueServicesMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -45,6 +47,8 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -72,6 +76,7 @@ export { PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -80,6 +85,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..42e3b8855365 100644 --- a/sdk/storage/arm-storage/src/models/storageAccountsMappers.ts +++ b/sdk/storage/arm-storage/src/models/storageAccountsMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, AccountSasParameters, ActiveDirectoryProperties, AzureEntityResource, @@ -39,6 +41,8 @@ export { EncryptionService, EncryptionServices, Endpoints, + ErrorResponse, + ErrorResponseBody, ExtendedLocation, FileServiceProperties, FileShare, @@ -47,6 +51,8 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -75,6 +81,7 @@ export { PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -84,6 +91,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..ccd72a0ecb03 100644 --- a/sdk/storage/arm-storage/src/models/tableOperationsMappers.ts +++ b/sdk/storage/arm-storage/src/models/tableOperationsMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -45,6 +47,8 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -72,6 +76,7 @@ export { PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -80,6 +85,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..b0f133de57ee 100644 --- a/sdk/storage/arm-storage/src/models/tableServicesMappers.ts +++ b/sdk/storage/arm-storage/src/models/tableServicesMappers.ts @@ -7,6 +7,8 @@ */ export { + AccessPolicy, + AccountImmutabilityPolicyProperties, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -45,6 +47,8 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageAccount, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -72,6 +76,7 @@ export { PrivateEndpointConnection, PrivateLinkResource, PrivateLinkServiceConnectionState, + ProtectedAppendWritesHistory, ProtocolSettings, ProxyResource, QueueServiceProperties, @@ -80,6 +85,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..705be345be44 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"; @@ -312,7 +313,7 @@ export class BlobContainers { * @param [options] The optional parameters * @returns Promise */ - setLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options?: msRest.RequestOptionsBase): Promise; + setLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options?: Models.BlobContainersSetLegalHoldOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. @@ -343,8 +344,8 @@ export class BlobContainers { * @param options The optional parameters * @param callback The callback */ - setLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - setLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + setLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options: Models.BlobContainersSetLegalHoldOptionalParams, callback: msRest.ServiceCallback): void; + setLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options?: Models.BlobContainersSetLegalHoldOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -374,7 +375,7 @@ export class BlobContainers { * @param [options] The optional parameters * @returns Promise */ - clearLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options?: msRest.RequestOptionsBase): Promise; + clearLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options?: Models.BlobContainersClearLegalHoldOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. @@ -405,8 +406,8 @@ export class BlobContainers { * @param options The optional parameters * @param callback The callback */ - clearLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - clearLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + clearLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options: Models.BlobContainersClearLegalHoldOptionalParams, callback: msRest.ServiceCallback): void; + clearLegalHold(resourceGroupName: string, accountName: string, containerName: string, tags: string[], options?: Models.BlobContainersClearLegalHoldOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -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. @@ -979,7 +1031,11 @@ const setLegalHoldOperationSpec: msRest.OperationSpec = { ], requestBody: { parameterPath: { - tags: "tags" + tags: "tags", + allowProtectedAppendWritesAll: [ + "options", + "allowProtectedAppendWritesAll" + ] }, mapper: { ...Mappers.LegalHold, @@ -1014,7 +1070,11 @@ const clearLegalHoldOperationSpec: msRest.OperationSpec = { ], requestBody: { parameterPath: { - tags: "tags" + tags: "tags", + allowProtectedAppendWritesAll: [ + "options", + "allowProtectedAppendWritesAll" + ] }, mapper: { ...Mappers.LegalHold, @@ -1050,16 +1110,10 @@ const createOrUpdateImmutabilityPolicyOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: { - immutabilityPeriodSinceCreationInDays: [ - "options", - "immutabilityPeriodSinceCreationInDays" - ], - allowProtectedAppendWrites: [ - "options", - "allowProtectedAppendWrites" - ] - }, + parameterPath: [ + "options", + "parameters" + ], mapper: Mappers.ImmutabilityPolicy }, responses: { @@ -1181,16 +1235,10 @@ const extendImmutabilityPolicyOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: { - immutabilityPeriodSinceCreationInDays: [ - "options", - "immutabilityPeriodSinceCreationInDays" - ], - allowProtectedAppendWrites: [ - "options", - "allowProtectedAppendWrites" - ] - }, + parameterPath: [ + "options", + "parameters" + ], mapper: Mappers.ImmutabilityPolicy }, responses: { @@ -1239,6 +1287,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/operations/storageAccounts.ts b/sdk/storage/arm-storage/src/operations/storageAccounts.ts index 9a30517e64dd..eb5e348f7c51 100644 --- a/sdk/storage/arm-storage/src/operations/storageAccounts.ts +++ b/sdk/storage/arm-storage/src/operations/storageAccounts.ts @@ -463,6 +463,40 @@ export class StorageAccounts { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Live Migration of storage account to enable Hns + * @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 requestType Required. Hierarchical namespace migration type can either be a hierarchical + * namespace validation request 'HnsOnValidationRequest' or a hydration request + * 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the + * hydration request will migrate the account. + * @param [options] The optional parameters + * @returns Promise + */ + hierarchicalNamespaceMigration(resourceGroupName: string, accountName: string, requestType: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginHierarchicalNamespaceMigration(resourceGroupName,accountName,requestType,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Abort live Migration of storage account to enable Hns + * @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 [options] The optional parameters + * @returns Promise + */ + abortHierarchicalNamespaceMigration(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginAbortHierarchicalNamespaceMigration(resourceGroupName,accountName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** * Restore blobs in the specified blob ranges * @param resourceGroupName The name of the resource group within the user's subscription. The name @@ -570,6 +604,53 @@ export class StorageAccounts { options); } + /** + * Live Migration of storage account to enable Hns + * @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 requestType Required. Hierarchical namespace migration type can either be a hierarchical + * namespace validation request 'HnsOnValidationRequest' or a hydration request + * 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the + * hydration request will migrate the account. + * @param [options] The optional parameters + * @returns Promise + */ + beginHierarchicalNamespaceMigration(resourceGroupName: string, accountName: string, requestType: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + requestType, + options + }, + beginHierarchicalNamespaceMigrationOperationSpec, + options); + } + + /** + * Abort live Migration of storage account to enable Hns + * @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 [options] The optional parameters + * @returns Promise + */ + beginAbortHierarchicalNamespaceMigration(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + options + }, + beginAbortHierarchicalNamespaceMigrationOperationSpec, + options); + } + /** * Restore blobs in the specified blob ranges * @param resourceGroupName The name of the resource group within the user's subscription. The name @@ -1021,6 +1102,55 @@ const beginFailoverOperationSpec: msRest.OperationSpec = { serializer }; +const beginHierarchicalNamespaceMigrationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.requestType + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginAbortHierarchicalNamespaceMigrationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const beginRestoreBlobRangesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges", diff --git a/sdk/storage/arm-storage/src/storageManagementClientContext.ts b/sdk/storage/arm-storage/src/storageManagementClientContext.ts index 1930df6d1f10..8b1ee24b5556 100644 --- a/sdk/storage/arm-storage/src/storageManagementClientContext.ts +++ b/sdk/storage/arm-storage/src/storageManagementClientContext.ts @@ -9,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-storage"; const packageVersion = "16.1.2"; @@ -31,16 +31,12 @@ export class StorageManagementClientContext extends msRestAzure.AzureServiceClie * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - 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) { @@ -53,8 +49,8 @@ export class StorageManagementClientContext extends msRestAzure.AzureServiceClie super(credentials, options); - this.apiVersion = "2021-02-01"; - this.acceptLanguage = "en-US"; + this.apiVersion = '2021-06-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"; @@ -64,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; } }