diff --git a/sdk/storage/arm-storage/src/models/blobContainersMappers.ts b/sdk/storage/arm-storage/src/models/blobContainersMappers.ts index 43270cd72b97..d60a4536e816 100644 --- a/sdk/storage/arm-storage/src/models/blobContainersMappers.ts +++ b/sdk/storage/arm-storage/src/models/blobContainersMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -50,6 +51,7 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -88,6 +90,7 @@ export { RestorePolicyProperties, RoutingPreference, SasPolicy, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/models/blobInventoryPoliciesMappers.ts b/sdk/storage/arm-storage/src/models/blobInventoryPoliciesMappers.ts index 4a4d91547568..451ad7eb3e80 100644 --- a/sdk/storage/arm-storage/src/models/blobInventoryPoliciesMappers.ts +++ b/sdk/storage/arm-storage/src/models/blobInventoryPoliciesMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -46,6 +47,7 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -81,6 +83,7 @@ export { RestorePolicyProperties, RoutingPreference, SasPolicy, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/models/blobServicesMappers.ts b/sdk/storage/arm-storage/src/models/blobServicesMappers.ts index 23e455587a22..fb01c907a21f 100644 --- a/sdk/storage/arm-storage/src/models/blobServicesMappers.ts +++ b/sdk/storage/arm-storage/src/models/blobServicesMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -46,6 +47,7 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -80,6 +82,7 @@ export { RestorePolicyProperties, RoutingPreference, SasPolicy, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/models/deletedAccountsMappers.ts b/sdk/storage/arm-storage/src/models/deletedAccountsMappers.ts index 3a2cc414902c..38748274aa96 100644 --- a/sdk/storage/arm-storage/src/models/deletedAccountsMappers.ts +++ b/sdk/storage/arm-storage/src/models/deletedAccountsMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -47,6 +48,7 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -81,6 +83,7 @@ export { RestorePolicyProperties, RoutingPreference, SasPolicy, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/models/encryptionScopesMappers.ts b/sdk/storage/arm-storage/src/models/encryptionScopesMappers.ts index e34906e449a6..7f42826a7b71 100644 --- a/sdk/storage/arm-storage/src/models/encryptionScopesMappers.ts +++ b/sdk/storage/arm-storage/src/models/encryptionScopesMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -48,6 +49,7 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -82,6 +84,7 @@ export { RestorePolicyProperties, RoutingPreference, SasPolicy, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/models/fileServicesMappers.ts b/sdk/storage/arm-storage/src/models/fileServicesMappers.ts index 5460b2163742..9e5e18fd606a 100644 --- a/sdk/storage/arm-storage/src/models/fileServicesMappers.ts +++ b/sdk/storage/arm-storage/src/models/fileServicesMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -46,6 +47,7 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -80,6 +82,7 @@ export { RestorePolicyProperties, RoutingPreference, SasPolicy, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/models/fileSharesMappers.ts b/sdk/storage/arm-storage/src/models/fileSharesMappers.ts index 7c5c3bd5d89f..4ba10044d548 100644 --- a/sdk/storage/arm-storage/src/models/fileSharesMappers.ts +++ b/sdk/storage/arm-storage/src/models/fileSharesMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -43,15 +44,19 @@ export { FileShare, FileShareItem, FileShareItems, + FileSharesLeaseHeaders, GeoReplicationStats, Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, KeyVaultProperties, LastAccessTimeTrackingPolicy, + LeaseShareRequest, + LeaseShareResponse, LegalHoldProperties, ListContainerItem, ListQueue, @@ -81,6 +86,7 @@ export { RestorePolicyProperties, RoutingPreference, SasPolicy, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/models/index.ts b/sdk/storage/arm-storage/src/models/index.ts index c2d615086431..c6db06aa5811 100644 --- a/sdk/storage/arm-storage/src/models/index.ts +++ b/sdk/storage/arm-storage/src/models/index.ts @@ -440,8 +440,8 @@ export interface VirtualNetworkRule { */ action?: Action; /** - * Gets the state of virtual network rule. Possible values include: 'provisioning', - * 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted' + * Gets the state of virtual network rule. Possible values include: 'Provisioning', + * 'Deprovisioning', 'Succeeded', 'Failed', 'NetworkSourceDeleted' */ state?: State; } @@ -532,6 +532,13 @@ export interface AzureFilesIdentityBasedAuthentication { * Required if choose AD. */ activeDirectoryProperties?: ActiveDirectoryProperties; + /** + * Default share permission for users using Kerberos authentication if RBAC role is not assigned. + * Possible values include: 'None', 'StorageFileDataSmbShareReader', + * 'StorageFileDataSmbShareContributor', 'StorageFileDataSmbShareElevatedContributor', + * 'StorageFileDataSmbShareOwner' + */ + defaultSharePermission?: DefaultSharePermission; } /** @@ -717,6 +724,11 @@ export interface StorageAccountCreateParameters { * NFS 3.0 protocol support enabled if set to true. */ enableNfsV3?: boolean; + /** + * Allow or disallow cross AAD tenant object replication. The default interpretation is true for + * this property. + */ + allowCrossTenantReplication?: boolean; } /** @@ -993,7 +1005,8 @@ export interface PrivateEndpointConnection extends Resource { * and a location * @summary Proxy Resource */ -export interface ProxyResource extends Resource {} +export interface ProxyResource extends Resource { +} /** * Deleted storage account @@ -1218,6 +1231,11 @@ export interface StorageAccount extends TrackedResource { * NFS 3.0 protocol support enabled if set to true. */ enableNfsV3?: boolean; + /** + * Allow or disallow cross AAD tenant object replication. The default interpretation is true for + * this property. + */ + allowCrossTenantReplication?: boolean; } /** @@ -1350,6 +1368,11 @@ export interface StorageAccountUpdateParameters { * equivalent to true. */ allowSharedKeyAccess?: boolean; + /** + * Allow or disallow cross AAD tenant object replication. The default interpretation is true for + * this property. + */ + allowCrossTenantReplication?: boolean; /** * Optional. Indicates the type of storage account. Currently only StorageV2 value supported by * server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', @@ -1875,11 +1898,13 @@ export interface ObjectReplicationPolicy extends Resource { */ readonly enabledTime?: Date; /** - * Required. Source account name. + * Required. Source account name. It should be full resource id if allowCrossTenantReplication + * set to false. */ sourceAccount: string; /** - * Required. Destination account name. + * Required. Destination account name. It should be full resource id if + * allowCrossTenantReplication set to false. */ destinationAccount: string; /** @@ -1889,7 +1914,8 @@ 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. Filter option cannot be used + * when definition.objectType property is set to 'Container'. */ export interface BlobInventoryPolicyFilter { /** @@ -1898,27 +1924,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[]; /** - * Includes blob versions in blob inventory when value set to true. + * Includes blob versions in blob inventory when value is set to true. The + * definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property + * is set to true, else they must be excluded. */ includeBlobVersions?: boolean; /** - * Includes blob snapshots in blob inventory when value set to true. + * Includes blob snapshots in blob inventory when value is set to true. The + * definition.schemaFields value 'Snapshot' is required if this property is set to true, else it + * must be excluded. */ includeSnapshots?: boolean; } /** - * An object that defines the blob inventory rule. Each definition consists of a set of filters. + * An object that defines the blob inventory rule. */ export interface BlobInventoryPolicyDefinition { /** * An object that defines the filter set. */ - filters: BlobInventoryPolicyFilter; + filters?: BlobInventoryPolicyFilter; + /** + * This is a required field, it specifies the format for the inventory files. Possible values + * include: 'Csv', 'Parquet' + */ + format: Format; + /** + * This is a required field. This field is used to schedule an inventory formation. Possible + * values include: 'Daily', 'Weekly' + */ + schedule: Schedule; + /** + * This is a required field. This field specifies the scope of the inventory created either at + * the blob or container level. Possible values include: 'Blob', 'Container' + */ + objectType: ObjectType; + /** + * This is a required field. This field specifies the fields and properties of the object to be + * included in the inventory. The Schema field value 'Name' is always required. The valid values + * for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, + * Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, + * Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, + * IsCurrentVersion, Metadata, LastAccessedTime'. The valid values for 'Container' + * definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, + * LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold'. Schema field values + * 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl' are valid only for Hns enabled + * accounts. + */ + schemaFields: string[]; } /** @@ -1934,6 +1993,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 +2011,6 @@ export interface BlobInventoryPolicySchema { * Policy is enabled if set to true. */ enabled: boolean; - /** - * Container name where blob inventory files are stored. Must be pre-created. - */ - destination: string; /** * The storage account blob inventory policy rules. The rule is applied when it is enabled. */ @@ -2192,6 +2251,28 @@ export interface LegalHoldProperties { tags?: TagProperty[]; } +/** + * Object level immutability properties of the container. + */ +export interface ImmutableStorageWithVersioning { + /** + * This is an immutable property, when set to true it enables object level immutability at the + * container level. + */ + enabled?: boolean; + /** + * Returns the date and time the object level immutability was enabled. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly timeStamp?: Date; + /** + * This property denotes the container level immutability to object level immutability migration + * state. Possible values include: 'InProgress', 'Completed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly migrationState?: MigrationState; +} + /** * Properties of the blob container, including Id, resource name, resource type, Etag. */ @@ -2280,6 +2361,12 @@ export interface BlobContainer extends AzureEntityResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly hasImmutabilityPolicy?: boolean; + /** + * The object level immutability property of the container. The property is immutable and can + * only be set to true at the container creation time. Existing containers must undergo a + * migration process. + */ + immutableStorageWithVersioning?: ImmutableStorageWithVersioning; } /** @@ -2412,6 +2499,12 @@ export interface ListContainerItem extends AzureEntityResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly hasImmutabilityPolicy?: boolean; + /** + * The object level immutability property of the container. The property is immutable and can + * only be set to true at the container creation time. Existing containers must undergo a + * migration process. + */ + immutableStorageWithVersioning?: ImmutableStorageWithVersioning; } /** @@ -2716,6 +2809,38 @@ export interface FileServiceItems { readonly value?: FileServiceProperties[]; } +/** + * An interface representing AccessPolicy. + */ +export interface AccessPolicy { + /** + * Start time of the access policy + */ + start?: string; + /** + * Expiry time of the access policy + */ + expiry?: string; + /** + * 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 +2911,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 +3024,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 +3053,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: Action2; + /** + * 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 +3206,7 @@ export interface StorageAccountsListKeysOptionalParams extends msRest.RequestOpt /** * Optional Parameters. */ -export interface BlobInventoryPoliciesCreateOrUpdateOptionalParams - extends msRest.RequestOptionsBase { +export interface BlobInventoryPoliciesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { systemData?: SystemData; } @@ -3022,8 +3232,7 @@ export interface BlobContainersListOptionalParams extends msRest.RequestOptionsB /** * Optional Parameters. */ -export interface BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams - extends msRest.RequestOptionsBase { +export interface BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams extends msRest.RequestOptionsBase { /** * The entity state (ETag) version of the immutability policy to update. A value of "*" can be * used to apply the operation only if the immutability policy already exists. If omitted, this @@ -3046,8 +3255,7 @@ export interface BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams /** * Optional Parameters. */ -export interface BlobContainersGetImmutabilityPolicyOptionalParams - extends msRest.RequestOptionsBase { +export interface BlobContainersGetImmutabilityPolicyOptionalParams extends msRest.RequestOptionsBase { /** * The entity state (ETag) version of the immutability policy to update. A value of "*" can be * used to apply the operation only if the immutability policy already exists. If omitted, this @@ -3059,8 +3267,7 @@ export interface BlobContainersGetImmutabilityPolicyOptionalParams /** * Optional Parameters. */ -export interface BlobContainersExtendImmutabilityPolicyOptionalParams - extends msRest.RequestOptionsBase { +export interface BlobContainersExtendImmutabilityPolicyOptionalParams extends msRest.RequestOptionsBase { /** * The immutability period for the blobs in the container since the policy creation, in days. */ @@ -3116,10 +3323,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 +3334,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 +3345,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 +3363,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 +3401,10 @@ export interface FileSharesListNextOptionalParams extends msRest.RequestOptionsB */ filter?: string; /** - * Optional, used to expand the properties within share's properties. Possible values include: - * 'deleted', 'snapshots' + * Optional, used to expand the properties within share's properties. Valid values are: deleted, + * snapshots. Should be passed as a string with delimiter ',' */ - expand?: ListSharesExpand; + expand?: string; } /** @@ -3317,20 +3548,34 @@ export interface BlobContainersExtendImmutabilityPolicyHeaders { eTag: string; } +/** + * Defines headers for Lease operation. + */ +export interface FileSharesLeaseHeaders { + /** + * The ETag HTTP response header. This is an opaque string. You can use it to detect whether the + * resource has changed between requests. In particular, you can pass the ETag to one of the + * If-Match or If-None-Match headers. + */ + eTag: string; +} + /** * @interface * Result of the request to list Storage operations. It contains a list of operations and a URL * link to get the next set of results. * @extends Array */ -export interface OperationListResult extends Array {} +export interface OperationListResult extends Array { +} /** * @interface * The response from the List Storage SKUs operation. * @extends Array */ -export interface StorageSkuListResult extends Array {} +export interface StorageSkuListResult extends Array { +} /** * @interface @@ -3365,28 +3610,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 +3657,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 +3722,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 +3731,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 +3739,7 @@ export type SkuName = * @readonly * @enum {string} */ -export type SkuTier = "Standard" | "Premium"; +export type SkuTier = 'Standard' | 'Premium'; /** * Defines values for Kind. @@ -3506,7 +3748,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 +3756,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 +3764,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 +3772,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 +3780,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 +3797,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 +3805,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 +3813,17 @@ export type DefaultAction = "Allow" | "Deny"; * @readonly * @enum {string} */ -export type DirectoryServiceOptions = "None" | "AADDS" | "AD"; +export type DirectoryServiceOptions = 'None' | 'AADDS' | 'AD'; + +/** + * Defines values for DefaultSharePermission. + * Possible values include: 'None', 'StorageFileDataSmbShareReader', + * 'StorageFileDataSmbShareContributor', 'StorageFileDataSmbShareElevatedContributor', + * 'StorageFileDataSmbShareOwner' + * @readonly + * @enum {string} + */ +export type DefaultSharePermission = 'None' | 'StorageFileDataSmbShareReader' | 'StorageFileDataSmbShareContributor' | 'StorageFileDataSmbShareElevatedContributor' | 'StorageFileDataSmbShareOwner'; /** * Defines values for AccessTier. @@ -3584,7 +3831,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 +3839,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 +3847,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 +3855,7 @@ export type RoutingChoice = "MicrosoftRouting" | "InternetRouting"; * @readonly * @enum {string} */ -export type MinimumTlsVersion = "TLS1_0" | "TLS1_1" | "TLS1_2"; +export type MinimumTlsVersion = 'TLS1_0' | 'TLS1_1' | 'TLS1_2'; /** * Defines values for IdentityType. @@ -3616,11 +3863,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 +3871,7 @@ export type IdentityType = * @readonly * @enum {string} */ -export type ExtendedLocationTypes = "EdgeZone"; +export type ExtendedLocationTypes = 'EdgeZone'; /** * Defines values for GeoReplicationStatus. @@ -3636,7 +3879,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 +3887,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 +3895,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 +3903,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 +3911,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 +3919,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 +3927,7 @@ export type PrivateEndpointConnectionProvisioningState = * @readonly * @enum {string} */ -export type KeyPermission = "Read" | "Full"; +export type KeyPermission = 'Read' | 'Full'; /** * Defines values for UsageUnit. @@ -3697,13 +3936,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 +3944,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 +3952,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 +3960,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 +3968,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 +3976,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 +3984,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 +3992,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 +4024,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 +4032,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 +4040,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 +4048,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 +4056,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 +4064,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 +4072,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 +4088,7 @@ export type ImmutabilityPolicyUpdateType = "put" | "lock" | "extend"; * @readonly * @enum {string} */ -export type Name = "AccessTimeTracking"; +export type Name = 'AccessTimeTracking'; /** * Defines values for EnabledProtocols. @@ -3831,7 +4096,7 @@ export type Name = "AccessTimeTracking"; * @readonly * @enum {string} */ -export type EnabledProtocols = "SMB" | "NFS"; +export type EnabledProtocols = 'SMB' | 'NFS'; /** * Defines values for RootSquashType. @@ -3839,7 +4104,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 +4112,7 @@ 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 StorageAccountExpand. @@ -3855,7 +4120,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 +4128,7 @@ export type StorageAccountExpand = "geoReplicationStats" | "blobRestoreStatus"; * @readonly * @enum {string} */ -export type ListKeyExpand = "kerb"; +export type ListKeyExpand = 'kerb'; /** * Defines values for ListContainersInclude. @@ -3871,39 +4136,23 @@ 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"; +export type ListContainersInclude = 'deleted'; /** - * Defines values for GetShareExpand. - * Possible values include: 'stats' + * Defines values for Action1. + * Possible values include: 'Acquire', 'Renew', 'Change', 'Release', 'Break' * @readonly * @enum {string} */ -export type GetShareExpand = "stats"; +export type Action1 = 'Acquire' | 'Renew' | 'Change' | 'Release' | 'Break'; /** - * Defines values for Action1. + * Defines values for Action2. * Possible values include: 'Acquire', 'Renew', 'Change', 'Release', 'Break' * @readonly * @enum {string} */ -export type Action1 = "Acquire" | "Renew" | "Change" | "Release" | "Break"; +export type Action2 = 'Acquire' | 'Renew' | 'Change' | 'Release' | 'Break'; /** * Contains response data for the list operation. @@ -3913,16 +4162,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 +4182,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 +4202,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 +4222,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 +4242,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 +4262,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,36 +4282,36 @@ 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; -/** - * Contains response data for the listByResourceGroup operation. + /** + * The response body as parsed JSON or XML + */ + parsedBody: StorageAccountListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. */ export type StorageAccountsListByResourceGroupResponse = 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; + }; }; /** @@ -4073,16 +4322,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 +4342,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 +4362,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 +4382,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 +4402,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 +4422,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 +4442,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 +4462,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 +4482,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 +4502,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 +4522,16 @@ export type DeletedAccountsGetResponse = DeletedAccount & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DeletedAccount; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeletedAccount; + }; }; /** @@ -4293,16 +4542,16 @@ export type DeletedAccountsListNextResponse = DeletedAccountListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: DeletedAccountListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeletedAccountListResult; + }; }; /** @@ -4313,16 +4562,16 @@ export type UsagesListByLocationResponse = UsageListResult & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: UsageListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsageListResult; + }; }; /** @@ -4333,16 +4582,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 +4602,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 +4622,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 +4642,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 +4662,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 +4682,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 +4702,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 +4722,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 +4742,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 +4762,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 +4782,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 +4802,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 +4822,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,17 +4842,17 @@ 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; + }; +}; /** * Contains response data for the get operation. @@ -4613,16 +4862,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 +4882,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 +4902,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 +4922,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 +4942,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 +4962,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 +4982,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 +5002,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 +5022,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 +5042,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 +5062,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 +5082,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 +5117,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 +5142,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 +5167,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 +5192,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 +5217,7 @@ export type BlobContainersExtendImmutabilityPolicyResponse = ImmutabilityPolicy */ parsedBody: ImmutabilityPolicy; }; - }; +}; /** * Contains response data for the lease operation. @@ -4983,16 +5227,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 +5247,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 +5267,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 +5287,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 +5307,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 +5327,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 +5347,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 +5367,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 +5387,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 +5432,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 +5452,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 +5472,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 +5492,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 +5512,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 +5532,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 +5552,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 +5572,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 +5592,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 +5612,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 +5632,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 +5652,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 +5672,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 +5692,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 +5712,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 +5732,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 +5752,14 @@ export type TableListNextResponse = ListTableResource & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListTableResource; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ListTableResource; + }; }; diff --git a/sdk/storage/arm-storage/src/models/managementPoliciesMappers.ts b/sdk/storage/arm-storage/src/models/managementPoliciesMappers.ts index f64277bbd11b..00869e72d30d 100644 --- a/sdk/storage/arm-storage/src/models/managementPoliciesMappers.ts +++ b/sdk/storage/arm-storage/src/models/managementPoliciesMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -45,6 +46,7 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -79,6 +81,7 @@ export { RestorePolicyProperties, RoutingPreference, SasPolicy, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/models/mappers.ts b/sdk/storage/arm-storage/src/models/mappers.ts index 9069e05f2bde..ccc01e141de3 100644 --- a/sdk/storage/arm-storage/src/models/mappers.ts +++ b/sdk/storage/arm-storage/src/models/mappers.ts @@ -213,7 +213,7 @@ export const StorageAccountCheckNameAvailabilityParameters: msRest.CompositeMapp required: true, isConstant: true, serializedName: "type", - defaultValue: "Microsoft.Storage/storageAccounts", + defaultValue: 'Microsoft.Storage/storageAccounts', type: { name: "String" } @@ -298,7 +298,10 @@ export const SkuInformation: msRest.CompositeMapper = { serializedName: "tier", type: { name: "Enum", - allowedValues: ["Standard", "Premium"] + allowedValues: [ + "Standard", + "Premium" + ] } }, resourceType: { @@ -374,7 +377,10 @@ export const CheckNameAvailabilityResult: msRest.CompositeMapper = { serializedName: "reason", type: { name: "Enum", - allowedValues: ["AccountNameInvalid", "AlreadyExists"] + allowedValues: [ + "AccountNameInvalid", + "AlreadyExists" + ] } }, message: { @@ -428,7 +434,7 @@ export const SasPolicy: msRest.CompositeMapper = { required: true, isConstant: true, serializedName: "expirationAction", - defaultValue: "Log", + defaultValue: 'Log', type: { name: "String" } @@ -617,7 +623,7 @@ export const Encryption: msRest.CompositeMapper = { keySource: { required: true, serializedName: "keySource", - defaultValue: "Microsoft.Storage", + defaultValue: 'Microsoft.Storage', type: { name: "String" } @@ -707,10 +713,12 @@ export const VirtualNetworkRule: msRest.CompositeMapper = { }, action: { serializedName: "action", - defaultValue: "Allow", + defaultValue: 'Allow', type: { name: "Enum", - allowedValues: ["Allow"] + allowedValues: [ + "Allow" + ] } }, state: { @@ -738,10 +746,12 @@ export const IPRule: msRest.CompositeMapper = { }, action: { serializedName: "action", - defaultValue: "Allow", + defaultValue: 'Allow', type: { name: "Enum", - allowedValues: ["Allow"] + allowedValues: [ + "Allow" + ] } } } @@ -756,7 +766,7 @@ export const NetworkRuleSet: msRest.CompositeMapper = { modelProperties: { bypass: { serializedName: "bypass", - defaultValue: "AzureServices", + defaultValue: 'AzureServices', type: { name: "String" } @@ -800,10 +810,13 @@ export const NetworkRuleSet: msRest.CompositeMapper = { defaultAction: { required: true, serializedName: "defaultAction", - defaultValue: "Allow", + defaultValue: 'Allow', type: { name: "Enum", - allowedValues: ["Allow", "Deny"] + allowedValues: [ + "Allow", + "Deny" + ] } } } @@ -881,6 +894,12 @@ export const AzureFilesIdentityBasedAuthentication: msRest.CompositeMapper = { name: "Composite", className: "ActiveDirectoryProperties" } + }, + defaultSharePermission: { + serializedName: "defaultSharePermission", + type: { + name: "String" + } } } } @@ -996,7 +1015,10 @@ export const Sku: msRest.CompositeMapper = { serializedName: "tier", type: { name: "Enum", - allowedValues: ["Standard", "Premium"] + allowedValues: [ + "Standard", + "Premium" + ] } } } @@ -1095,7 +1117,10 @@ export const StorageAccountCreateParameters: msRest.CompositeMapper = { serializedName: "properties.accessTier", type: { name: "Enum", - allowedValues: ["Hot", "Cool"] + allowedValues: [ + "Hot", + "Cool" + ] } }, azureFilesIdentityBasedAuthentication: { @@ -1153,6 +1178,12 @@ export const StorageAccountCreateParameters: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + allowCrossTenantReplication: { + serializedName: "properties.allowCrossTenantReplication", + type: { + name: "Boolean" + } } } } @@ -1673,7 +1704,11 @@ export const StorageAccount: msRest.CompositeMapper = { serializedName: "properties.provisioningState", type: { name: "Enum", - allowedValues: ["Creating", "ResolvingDNS", "Succeeded"] + allowedValues: [ + "Creating", + "ResolvingDNS", + "Succeeded" + ] } }, primaryEndpoints: { @@ -1696,7 +1731,10 @@ export const StorageAccount: msRest.CompositeMapper = { serializedName: "properties.statusOfPrimary", type: { name: "Enum", - allowedValues: ["available", "unavailable"] + allowedValues: [ + "available", + "unavailable" + ] } }, lastGeoFailoverTime: { @@ -1718,7 +1756,10 @@ export const StorageAccount: msRest.CompositeMapper = { serializedName: "properties.statusOfSecondary", type: { name: "Enum", - allowedValues: ["available", "unavailable"] + allowedValues: [ + "available", + "unavailable" + ] } }, creationTime: { @@ -1781,7 +1822,10 @@ export const StorageAccount: msRest.CompositeMapper = { serializedName: "properties.accessTier", type: { name: "Enum", - allowedValues: ["Hot", "Cool"] + allowedValues: [ + "Hot", + "Cool" + ] } }, azureFilesIdentityBasedAuthentication: { @@ -1883,6 +1927,12 @@ export const StorageAccount: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + allowCrossTenantReplication: { + serializedName: "properties.allowCrossTenantReplication", + type: { + name: "Boolean" + } } } } @@ -1913,7 +1963,10 @@ export const StorageAccountKey: msRest.CompositeMapper = { serializedName: "permissions", type: { name: "Enum", - allowedValues: ["Read", "Full"] + allowedValues: [ + "Read", + "Full" + ] } }, creationTime: { @@ -2030,7 +2083,10 @@ export const StorageAccountUpdateParameters: msRest.CompositeMapper = { serializedName: "properties.accessTier", type: { name: "Enum", - allowedValues: ["Hot", "Cool"] + allowedValues: [ + "Hot", + "Cool" + ] } }, azureFilesIdentityBasedAuthentication: { @@ -2084,6 +2140,12 @@ export const StorageAccountUpdateParameters: msRest.CompositeMapper = { name: "Boolean" } }, + allowCrossTenantReplication: { + serializedName: "properties.allowCrossTenantReplication", + type: { + name: "Boolean" + } + }, kind: { serializedName: "kind", type: { @@ -2202,7 +2264,10 @@ export const AccountSasParameters: msRest.CompositeMapper = { serializedName: "signedProtocol", type: { name: "Enum", - allowedValues: ["https,http", "https"] + allowedValues: [ + "https,http", + "https" + ] } }, sharedAccessStartTime: { @@ -2280,7 +2345,10 @@ export const ServiceSasParameters: msRest.CompositeMapper = { serializedName: "signedProtocol", type: { name: "Enum", - allowedValues: ["https,http", "https"] + allowedValues: [ + "https,http", + "https" + ] } }, sharedAccessStartTime: { @@ -2698,7 +2766,7 @@ export const ManagementPolicyRule: msRest.CompositeMapper = { required: true, isConstant: true, serializedName: "type", - defaultValue: "Lifecycle", + defaultValue: 'Lifecycle', type: { name: "String" } @@ -3011,12 +3079,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 +3142,13 @@ export const BlobInventoryPolicyRule: msRest.CompositeMapper = { name: "String" } }, + destination: { + required: true, + serializedName: "destination", + type: { + name: "String" + } + }, definition: { required: true, serializedName: "definition", @@ -3067,18 +3174,11 @@ export const BlobInventoryPolicySchema: msRest.CompositeMapper = { name: "Boolean" } }, - destination: { - required: true, - serializedName: "destination", - type: { - name: "String" - } - }, type: { required: true, isConstant: true, serializedName: "type", - defaultValue: "Inventory", + defaultValue: 'Inventory', type: { name: "String" } @@ -3475,6 +3575,36 @@ export const LegalHoldProperties: msRest.CompositeMapper = { } }; +export const ImmutableStorageWithVersioning: msRest.CompositeMapper = { + serializedName: "ImmutableStorageWithVersioning", + type: { + name: "Composite", + className: "ImmutableStorageWithVersioning", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + timeStamp: { + readOnly: true, + serializedName: "timeStamp", + type: { + name: "DateTime" + } + }, + migrationState: { + readOnly: true, + serializedName: "migrationState", + type: { + name: "String" + } + } + } + } +}; + export const BlobContainer: msRest.CompositeMapper = { serializedName: "BlobContainer", type: { @@ -3526,7 +3656,11 @@ export const BlobContainer: msRest.CompositeMapper = { serializedName: "properties.publicAccess", type: { name: "Enum", - allowedValues: ["Container", "Blob", "None"] + allowedValues: [ + "Container", + "Blob", + "None" + ] } }, lastModifiedTime: { @@ -3597,6 +3731,13 @@ export const BlobContainer: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + immutableStorageWithVersioning: { + serializedName: "properties.immutableStorageWithVersioning", + type: { + name: "Composite", + className: "ImmutableStorageWithVersioning" + } } } } @@ -3712,7 +3853,11 @@ export const ListContainerItem: msRest.CompositeMapper = { serializedName: "properties.publicAccess", type: { name: "Enum", - allowedValues: ["Container", "Blob", "None"] + allowedValues: [ + "Container", + "Blob", + "None" + ] } }, lastModifiedTime: { @@ -3783,6 +3928,13 @@ export const ListContainerItem: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + immutableStorageWithVersioning: { + serializedName: "properties.immutableStorageWithVersioning", + type: { + name: "Composite", + className: "ImmutableStorageWithVersioning" + } } } } @@ -4287,6 +4439,57 @@ export const FileServiceItems: msRest.CompositeMapper = { } }; +export const AccessPolicy: msRest.CompositeMapper = { + serializedName: "AccessPolicy", + type: { + name: "Composite", + className: "AccessPolicy", + modelProperties: { + start: { + serializedName: "start", + type: { + name: "String" + } + }, + expiry: { + serializedName: "expiry", + type: { + name: "String" + } + }, + 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 +4592,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 +4762,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 +4806,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 +5100,22 @@ export const BlobContainersExtendImmutabilityPolicyHeaders: msRest.CompositeMapp } }; +export const FileSharesLeaseHeaders: msRest.CompositeMapper = { + serializedName: "fileshares-lease-headers", + type: { + name: "Composite", + className: "FileSharesLeaseHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const OperationListResult: msRest.CompositeMapper = { serializedName: "OperationListResult", type: { diff --git a/sdk/storage/arm-storage/src/models/objectReplicationPoliciesOperationsMappers.ts b/sdk/storage/arm-storage/src/models/objectReplicationPoliciesOperationsMappers.ts index 00f02d37c096..282a196542f5 100644 --- a/sdk/storage/arm-storage/src/models/objectReplicationPoliciesOperationsMappers.ts +++ b/sdk/storage/arm-storage/src/models/objectReplicationPoliciesOperationsMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -46,6 +47,7 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -81,6 +83,7 @@ export { RestorePolicyProperties, RoutingPreference, SasPolicy, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/models/parameters.ts b/sdk/storage/arm-storage/src/models/parameters.ts index eb6cd7e26552..109ffecb6d94 100644 --- a/sdk/storage/arm-storage/src/models/parameters.ts +++ b/sdk/storage/arm-storage/src/models/parameters.ts @@ -13,7 +13,7 @@ export const acceptLanguage: msRest.OperationParameter = { parameterPath: "acceptLanguage", mapper: { serializedName: "accept-language", - defaultValue: "en-US", + defaultValue: 'en-US', type: { name: "String" } @@ -52,7 +52,7 @@ export const blobInventoryPolicyName: msRest.OperationURLParameter = { required: true, isConstant: true, serializedName: "blobInventoryPolicyName", - defaultValue: "default", + defaultValue: 'default', type: { name: "String" } @@ -64,7 +64,7 @@ export const blobServicesName: msRest.OperationURLParameter = { required: true, isConstant: true, serializedName: "BlobServicesName", - defaultValue: "default", + defaultValue: 'default', type: { name: "String" } @@ -113,27 +113,41 @@ export const encryptionScopeName: msRest.OperationURLParameter = { } }; export const expand0: msRest.OperationQueryParameter = { - parameterPath: ["options", "expand"], + parameterPath: [ + "options", + "expand" + ], mapper: { serializedName: "$expand", type: { name: "Enum", - allowedValues: ["geoReplicationStats", "blobRestoreStatus"] + allowedValues: [ + "geoReplicationStats", + "blobRestoreStatus" + ] } } }; export const expand1: msRest.OperationQueryParameter = { - parameterPath: ["options", "expand"], + parameterPath: [ + "options", + "expand" + ], mapper: { serializedName: "$expand", type: { name: "Enum", - allowedValues: ["kerb"] + allowedValues: [ + "kerb" + ] } } }; export const expand2: msRest.OperationQueryParameter = { - parameterPath: ["options", "expand"], + parameterPath: [ + "options", + "expand" + ], mapper: { serializedName: "$expand", type: { @@ -141,30 +155,23 @@ export const expand2: msRest.OperationQueryParameter = { } } }; -export const expand3: msRest.OperationQueryParameter = { - parameterPath: ["options", "expand"], - mapper: { - serializedName: "$expand", - type: { - name: "Enum", - allowedValues: ["stats"] - } - } -}; export const fileServicesName: msRest.OperationURLParameter = { parameterPath: "fileServicesName", mapper: { required: true, isConstant: true, serializedName: "FileServicesName", - defaultValue: "default", + defaultValue: 'default', type: { name: "String" } } }; export const filter: msRest.OperationQueryParameter = { - parameterPath: ["options", "filter"], + parameterPath: [ + "options", + "filter" + ], mapper: { serializedName: "$filter", type: { @@ -173,7 +180,10 @@ export const filter: msRest.OperationQueryParameter = { } }; export const ifMatch0: msRest.OperationParameter = { - parameterPath: ["options", "ifMatch"], + parameterPath: [ + "options", + "ifMatch" + ], mapper: { serializedName: "If-Match", type: { @@ -197,14 +207,17 @@ export const immutabilityPolicyName: msRest.OperationURLParameter = { required: true, isConstant: true, serializedName: "immutabilityPolicyName", - defaultValue: "default", + defaultValue: 'default', type: { name: "String" } } }; export const include: msRest.OperationQueryParameter = { - parameterPath: ["options", "include"], + parameterPath: [ + "options", + "include" + ], mapper: { serializedName: "$include", type: { @@ -228,14 +241,17 @@ export const managementPolicyName: msRest.OperationURLParameter = { required: true, isConstant: true, serializedName: "managementPolicyName", - defaultValue: "default", + defaultValue: 'default', type: { name: "String" } } }; export const maxpagesize: msRest.OperationQueryParameter = { - parameterPath: ["options", "maxpagesize"], + parameterPath: [ + "options", + "maxpagesize" + ], mapper: { serializedName: "$maxpagesize", type: { @@ -298,7 +314,7 @@ export const queueServiceName: msRest.OperationURLParameter = { required: true, isConstant: true, serializedName: "queueServiceName", - defaultValue: "default", + defaultValue: 'default', type: { name: "String" } @@ -367,14 +383,17 @@ export const tableServiceName: msRest.OperationURLParameter = { required: true, isConstant: true, serializedName: "tableServiceName", - defaultValue: "default", + defaultValue: 'default', type: { name: "String" } } }; export const xMsSnapshot: msRest.OperationParameter = { - parameterPath: ["options", "xMsSnapshot"], + parameterPath: [ + "options", + "xMsSnapshot" + ], mapper: { serializedName: "x-ms-snapshot", type: { diff --git a/sdk/storage/arm-storage/src/models/privateEndpointConnectionsMappers.ts b/sdk/storage/arm-storage/src/models/privateEndpointConnectionsMappers.ts index 76a28e6b0aa6..70f271e5cf38 100644 --- a/sdk/storage/arm-storage/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/storage/arm-storage/src/models/privateEndpointConnectionsMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -47,6 +48,7 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -82,6 +84,7 @@ export { RestorePolicyProperties, RoutingPreference, SasPolicy, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/models/privateLinkResourcesMappers.ts b/sdk/storage/arm-storage/src/models/privateLinkResourcesMappers.ts index 6951570563ce..a83fe6e3bd0e 100644 --- a/sdk/storage/arm-storage/src/models/privateLinkResourcesMappers.ts +++ b/sdk/storage/arm-storage/src/models/privateLinkResourcesMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -45,6 +46,7 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -80,6 +82,7 @@ export { RestorePolicyProperties, RoutingPreference, SasPolicy, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/models/queueMappers.ts b/sdk/storage/arm-storage/src/models/queueMappers.ts index 845af371933f..938c63dad3b6 100644 --- a/sdk/storage/arm-storage/src/models/queueMappers.ts +++ b/sdk/storage/arm-storage/src/models/queueMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -45,6 +46,7 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -80,6 +82,7 @@ export { RestorePolicyProperties, RoutingPreference, SasPolicy, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/models/queueServicesMappers.ts b/sdk/storage/arm-storage/src/models/queueServicesMappers.ts index a3242b99bdd8..6f25a81bcb89 100644 --- a/sdk/storage/arm-storage/src/models/queueServicesMappers.ts +++ b/sdk/storage/arm-storage/src/models/queueServicesMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -45,6 +46,7 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -80,6 +82,7 @@ export { RestorePolicyProperties, RoutingPreference, SasPolicy, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/models/storageAccountsMappers.ts b/sdk/storage/arm-storage/src/models/storageAccountsMappers.ts index 7378120d89f8..553110269ced 100644 --- a/sdk/storage/arm-storage/src/models/storageAccountsMappers.ts +++ b/sdk/storage/arm-storage/src/models/storageAccountsMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, AccountSasParameters, ActiveDirectoryProperties, AzureEntityResource, @@ -47,6 +48,7 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -84,6 +86,7 @@ export { RoutingPreference, SasPolicy, ServiceSasParameters, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/models/tableOperationsMappers.ts b/sdk/storage/arm-storage/src/models/tableOperationsMappers.ts index d94926222b85..faa06b45ceab 100644 --- a/sdk/storage/arm-storage/src/models/tableOperationsMappers.ts +++ b/sdk/storage/arm-storage/src/models/tableOperationsMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -45,6 +46,7 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -80,6 +82,7 @@ export { RestorePolicyProperties, RoutingPreference, SasPolicy, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/models/tableServicesMappers.ts b/sdk/storage/arm-storage/src/models/tableServicesMappers.ts index bb91f9d4340d..e099f6c7f6c3 100644 --- a/sdk/storage/arm-storage/src/models/tableServicesMappers.ts +++ b/sdk/storage/arm-storage/src/models/tableServicesMappers.ts @@ -7,6 +7,7 @@ */ export { + AccessPolicy, ActiveDirectoryProperties, AzureEntityResource, AzureFilesIdentityBasedAuthentication, @@ -45,6 +46,7 @@ export { Identity, ImmutabilityPolicy, ImmutabilityPolicyProperties, + ImmutableStorageWithVersioning, IPRule, KeyCreationTime, KeyPolicy, @@ -80,6 +82,7 @@ export { RestorePolicyProperties, RoutingPreference, SasPolicy, + SignedIdentifier, Sku, SmbSetting, StorageAccount, diff --git a/sdk/storage/arm-storage/src/operations/blobContainers.ts b/sdk/storage/arm-storage/src/operations/blobContainers.ts index 5994c224089b..2eab9b1bcb21 100644 --- a/sdk/storage/arm-storage/src/operations/blobContainers.ts +++ b/sdk/storage/arm-storage/src/operations/blobContainers.ts @@ -782,6 +782,63 @@ 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; + /** + * @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 callback The callback + */ + objectLevelWorm(resourceGroupName: string, accountName: string, containerName: 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 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 + * @param callback The callback + */ + objectLevelWorm(resourceGroupName: string, accountName: string, containerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + objectLevelWorm(resourceGroupName: string, accountName: string, containerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + containerName, + options + }, + objectLevelWormOperationSpec, + callback); + } + /** * Lists all containers and does not support a prefix like data plane. Also SRP today does not * return continuation token. @@ -1239,6 +1296,31 @@ const leaseOperationSpec: msRest.OperationSpec = { serializer }; +const objectLevelWormOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + 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..96023290a907 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,66 @@ 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 + }, + 201: { + bodyMapper: Mappers.LeaseShareResponse, + headersMapper: Mappers.FileSharesLeaseHeaders + }, + 202: { + 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/storageManagementClientContext.ts b/sdk/storage/arm-storage/src/storageManagementClientContext.ts index 6e9d9eefca84..0b36a80a34bd 100644 --- a/sdk/storage/arm-storage/src/storageManagementClientContext.ts +++ b/sdk/storage/arm-storage/src/storageManagementClientContext.ts @@ -25,43 +25,36 @@ export class StorageManagementClientContext extends msRestAzure.AzureServiceClie * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials, - subscriptionId: string, - options?: Models.StorageManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials, 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) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = "2021-02-01"; - this.acceptLanguage = "en-US"; + this.apiVersion = '2021-04-01'; + this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; this.requestContentType = "application/json; charset=utf-8"; this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + 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; } }