Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
@@ -0,0 +1,365 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import {
ListContainerItem,
BlobContainersListOptionalParams,
BlobContainer,
BlobContainersCreateOptionalParams,
BlobContainersCreateResponse,
BlobContainersUpdateOptionalParams,
BlobContainersUpdateResponse,
BlobContainersGetOptionalParams,
BlobContainersGetResponse,
BlobContainersDeleteOptionalParams,
LegalHold,
BlobContainersSetLegalHoldOptionalParams,
BlobContainersSetLegalHoldResponse,
BlobContainersClearLegalHoldOptionalParams,
BlobContainersClearLegalHoldResponse,
BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams,
BlobContainersCreateOrUpdateImmutabilityPolicyResponse,
BlobContainersGetImmutabilityPolicyOptionalParams,
BlobContainersGetImmutabilityPolicyResponse,
BlobContainersDeleteImmutabilityPolicyOptionalParams,
BlobContainersDeleteImmutabilityPolicyResponse,
BlobContainersLockImmutabilityPolicyOptionalParams,
BlobContainersLockImmutabilityPolicyResponse,
BlobContainersExtendImmutabilityPolicyOptionalParams,
BlobContainersExtendImmutabilityPolicyResponse,
BlobContainersLeaseOptionalParams,
BlobContainersLeaseResponse,
BlobContainersObjectLevelWormOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a BlobContainers. */
export interface BlobContainers {
/**
* Lists all containers and does not support a prefix like data plane. Also SRP today does not return
* continuation token.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
accountName: string,
options?: BlobContainersListOptionalParams
): PagedAsyncIterableIterator<ListContainerItem>;
/**
* Creates a new container under the specified account as described by request body. The container
* resource includes metadata and properties for that container. It does not include a list of the
* blobs contained by 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 blobContainer Properties of the blob container to create.
* @param options The options parameters.
*/
create(
resourceGroupName: string,
accountName: string,
containerName: string,
blobContainer: BlobContainer,
options?: BlobContainersCreateOptionalParams
): Promise<BlobContainersCreateResponse>;
/**
* Updates container properties as specified in request body. Properties not mentioned in the request
* will be unchanged. Update fails if the specified container doesn't already exist.
* @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 blobContainer Properties to update for the blob container.
* @param options The options parameters.
*/
update(
resourceGroupName: string,
accountName: string,
containerName: string,
blobContainer: BlobContainer,
options?: BlobContainersUpdateOptionalParams
): Promise<BlobContainersUpdateResponse>;
/**
* Gets properties of a specified 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 options parameters.
*/
get(
resourceGroupName: string,
accountName: string,
containerName: string,
options?: BlobContainersGetOptionalParams
): Promise<BlobContainersGetResponse>;
/**
* Deletes specified container under its account.
* @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 options parameters.
*/
delete(
resourceGroupName: string,
accountName: string,
containerName: string,
options?: BlobContainersDeleteOptionalParams
): Promise<void>;
/**
* Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows
* an append pattern and does not clear out the existing tags that are not specified in the request.
* @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 legalHold The LegalHold property that will be set to a blob container.
* @param options The options parameters.
*/
setLegalHold(
resourceGroupName: string,
accountName: string,
containerName: string,
legalHold: LegalHold,
options?: BlobContainersSetLegalHoldOptionalParams
): Promise<BlobContainersSetLegalHoldResponse>;
/**
* Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation.
* ClearLegalHold clears out only the specified tags in the request.
* @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 legalHold The LegalHold property that will be clear from a blob container.
* @param options The options parameters.
*/
clearLegalHold(
resourceGroupName: string,
accountName: string,
containerName: string,
legalHold: LegalHold,
options?: BlobContainersClearLegalHoldOptionalParams
): Promise<BlobContainersClearLegalHoldResponse>;
/**
* Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not
* required for this operation.
* @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 options parameters.
*/
createOrUpdateImmutabilityPolicy(
resourceGroupName: string,
accountName: string,
containerName: string,
options?: BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams
): Promise<BlobContainersCreateOrUpdateImmutabilityPolicyResponse>;
/**
* Gets the existing immutability policy along with the corresponding ETag in response headers and
* body.
* @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 options parameters.
*/
getImmutabilityPolicy(
resourceGroupName: string,
accountName: string,
containerName: string,
options?: BlobContainersGetImmutabilityPolicyOptionalParams
): Promise<BlobContainersGetImmutabilityPolicyResponse>;
/**
* Aborts an unlocked immutability policy. The response of delete has
* immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation.
* Deleting a locked immutability policy is not allowed, the only way is to delete the container after
* deleting all expired blobs inside the policy locked 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 ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*"
* can be used to apply the operation only if the immutability policy already exists. If omitted, this
* operation will always be applied.
* @param options The options parameters.
*/
deleteImmutabilityPolicy(
resourceGroupName: string,
accountName: string,
containerName: string,
ifMatch: string,
options?: BlobContainersDeleteImmutabilityPolicyOptionalParams
): Promise<BlobContainersDeleteImmutabilityPolicyResponse>;
/**
* Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is
* ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.
* @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 ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*"
* can be used to apply the operation only if the immutability policy already exists. If omitted, this
* operation will always be applied.
* @param options The options parameters.
*/
lockImmutabilityPolicy(
resourceGroupName: string,
accountName: string,
containerName: string,
ifMatch: string,
options?: BlobContainersLockImmutabilityPolicyOptionalParams
): Promise<BlobContainersLockImmutabilityPolicyResponse>;
/**
* Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action
* allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.
* @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 ifMatch The entity state (ETag) version of the immutability policy to update. A value of "*"
* can be used to apply the operation only if the immutability policy already exists. If omitted, this
* operation will always be applied.
* @param options The options parameters.
*/
extendImmutabilityPolicy(
resourceGroupName: string,
accountName: string,
containerName: string,
ifMatch: string,
options?: BlobContainersExtendImmutabilityPolicyOptionalParams
): Promise<BlobContainersExtendImmutabilityPolicyResponse>;
/**
* The Lease Container operation establishes and manages a lock on a container 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 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 options parameters.
*/
lease(
resourceGroupName: string,
accountName: string,
containerName: string,
options?: BlobContainersLeaseOptionalParams
): Promise<BlobContainersLeaseResponse>;
/**
* 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 options parameters.
*/
beginObjectLevelWorm(
resourceGroupName: string,
accountName: string,
containerName: string,
options?: BlobContainersObjectLevelWormOptionalParams
): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* 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 options parameters.
*/
beginObjectLevelWormAndWait(
resourceGroupName: string,
accountName: string,
containerName: string,
options?: BlobContainersObjectLevelWormOptionalParams
): Promise<void>;
}
@@ -0,0 +1,91 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
BlobInventoryPolicy,
BlobInventoryPoliciesListOptionalParams,
BlobInventoryPolicyName,
BlobInventoryPoliciesGetOptionalParams,
BlobInventoryPoliciesGetResponse,
BlobInventoryPoliciesCreateOrUpdateOptionalParams,
BlobInventoryPoliciesCreateOrUpdateResponse,
BlobInventoryPoliciesDeleteOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a BlobInventoryPolicies. */
export interface BlobInventoryPolicies {
/**
* Gets the blob inventory policy associated with the specified storage account.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
accountName: string,
options?: BlobInventoryPoliciesListOptionalParams
): PagedAsyncIterableIterator<BlobInventoryPolicy>;
/**
* Gets the blob inventory policy associated with the specified storage account.
* @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 blobInventoryPolicyName The name of the storage account blob inventory policy. It should
* always be 'default'
* @param options The options parameters.
*/
get(
resourceGroupName: string,
accountName: string,
blobInventoryPolicyName: BlobInventoryPolicyName,
options?: BlobInventoryPoliciesGetOptionalParams
): Promise<BlobInventoryPoliciesGetResponse>;
/**
* Sets the blob inventory policy to the specified storage account.
* @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 blobInventoryPolicyName The name of the storage account blob inventory policy. It should
* always be 'default'
* @param properties The blob inventory policy set to a storage account.
* @param options The options parameters.
*/
createOrUpdate(
resourceGroupName: string,
accountName: string,
blobInventoryPolicyName: BlobInventoryPolicyName,
properties: BlobInventoryPolicy,
options?: BlobInventoryPoliciesCreateOrUpdateOptionalParams
): Promise<BlobInventoryPoliciesCreateOrUpdateResponse>;
/**
* Deletes the blob inventory policy associated with the specified storage account.
* @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 blobInventoryPolicyName The name of the storage account blob inventory policy. It should
* always be 'default'
* @param options The options parameters.
*/
delete(
resourceGroupName: string,
accountName: string,
blobInventoryPolicyName: BlobInventoryPolicyName,
options?: BlobInventoryPoliciesDeleteOptionalParams
): Promise<void>;
}
@@ -0,0 +1,69 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
BlobServiceProperties,
BlobServicesListOptionalParams,
BlobServicesSetServicePropertiesOptionalParams,
BlobServicesSetServicePropertiesResponse,
BlobServicesGetServicePropertiesOptionalParams,
BlobServicesGetServicePropertiesResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a BlobServices. */
export interface BlobServices {
/**
* List blob services of storage account. It returns a collection of one object named default.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
accountName: string,
options?: BlobServicesListOptionalParams
): PagedAsyncIterableIterator<BlobServiceProperties>;
/**
* Sets the properties of a storage accounts Blob service, including properties for Storage Analytics
* and CORS (Cross-Origin Resource Sharing) rules.
* @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 parameters The properties of a storage accounts Blob service, including properties for
* Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.
* @param options The options parameters.
*/
setServiceProperties(
resourceGroupName: string,
accountName: string,
parameters: BlobServiceProperties,
options?: BlobServicesSetServicePropertiesOptionalParams
): Promise<BlobServicesSetServicePropertiesResponse>;
/**
* Gets the properties of a storage accounts Blob service, including properties for Storage Analytics
* and CORS (Cross-Origin Resource Sharing) rules.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
getServiceProperties(
resourceGroupName: string,
accountName: string,
options?: BlobServicesGetServicePropertiesOptionalParams
): Promise<BlobServicesGetServicePropertiesResponse>;
}
@@ -0,0 +1,38 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
DeletedAccount,
DeletedAccountsListOptionalParams,
DeletedAccountsGetOptionalParams,
DeletedAccountsGetResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a DeletedAccounts. */
export interface DeletedAccounts {
/**
* Lists deleted accounts under the subscription.
* @param options The options parameters.
*/
list(
options?: DeletedAccountsListOptionalParams
): PagedAsyncIterableIterator<DeletedAccount>;
/**
* Get properties of specified deleted account resource.
* @param deletedAccountName Name of the deleted storage account.
* @param location The location of the deleted storage account.
* @param options The options parameters.
*/
get(
deletedAccountName: string,
location: string,
options?: DeletedAccountsGetOptionalParams
): Promise<DeletedAccountsGetResponse>;
}
@@ -0,0 +1,102 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
EncryptionScope,
EncryptionScopesListOptionalParams,
EncryptionScopesPutOptionalParams,
EncryptionScopesPutResponse,
EncryptionScopesPatchOptionalParams,
EncryptionScopesPatchResponse,
EncryptionScopesGetOptionalParams,
EncryptionScopesGetResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a EncryptionScopes. */
export interface EncryptionScopes {
/**
* Lists all the encryption scopes available under the specified storage account.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
accountName: string,
options?: EncryptionScopesListOptionalParams
): PagedAsyncIterableIterator<EncryptionScope>;
/**
* Synchronously creates or updates an encryption scope under the specified storage account. If an
* encryption scope is already created and a subsequent request is issued with different properties,
* the encryption scope properties will be updated per the specified request.
* @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 encryptionScopeName The name of the encryption scope within the specified storage account.
* Encryption scope 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 encryptionScope Encryption scope properties to be used for the create or update.
* @param options The options parameters.
*/
put(
resourceGroupName: string,
accountName: string,
encryptionScopeName: string,
encryptionScope: EncryptionScope,
options?: EncryptionScopesPutOptionalParams
): Promise<EncryptionScopesPutResponse>;
/**
* Update encryption scope properties as specified in the request body. Update fails if the specified
* encryption scope does not already exist.
* @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 encryptionScopeName The name of the encryption scope within the specified storage account.
* Encryption scope 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 encryptionScope Encryption scope properties to be used for the update.
* @param options The options parameters.
*/
patch(
resourceGroupName: string,
accountName: string,
encryptionScopeName: string,
encryptionScope: EncryptionScope,
options?: EncryptionScopesPatchOptionalParams
): Promise<EncryptionScopesPatchResponse>;
/**
* Returns the properties for the specified encryption scope.
* @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 encryptionScopeName The name of the encryption scope within the specified storage account.
* Encryption scope 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 options parameters.
*/
get(
resourceGroupName: string,
accountName: string,
encryptionScopeName: string,
options?: EncryptionScopesGetOptionalParams
): Promise<EncryptionScopesGetResponse>;
}
@@ -0,0 +1,68 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import {
FileServicesListOptionalParams,
FileServicesListResponse,
FileServiceProperties,
FileServicesSetServicePropertiesOptionalParams,
FileServicesSetServicePropertiesResponse,
FileServicesGetServicePropertiesOptionalParams,
FileServicesGetServicePropertiesResponse
} from "../models";
/** Interface representing a FileServices. */
export interface FileServices {
/**
* List all file services in storage accounts
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
accountName: string,
options?: FileServicesListOptionalParams
): Promise<FileServicesListResponse>;
/**
* Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource
* Sharing) rules.
* @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 parameters The properties of file services in storage accounts, including CORS (Cross-Origin
* Resource Sharing) rules.
* @param options The options parameters.
*/
setServiceProperties(
resourceGroupName: string,
accountName: string,
parameters: FileServiceProperties,
options?: FileServicesSetServicePropertiesOptionalParams
): Promise<FileServicesSetServicePropertiesResponse>;
/**
* Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource
* Sharing) rules.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
getServiceProperties(
resourceGroupName: string,
accountName: string,
options?: FileServicesGetServicePropertiesOptionalParams
): Promise<FileServicesGetServicePropertiesResponse>;
}
+162
View File
@@ -0,0 +1,162 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
FileShareItem,
FileSharesListOptionalParams,
FileShare,
FileSharesCreateOptionalParams,
FileSharesCreateResponse,
FileSharesUpdateOptionalParams,
FileSharesUpdateResponse,
FileSharesGetOptionalParams,
FileSharesGetResponse,
FileSharesDeleteOptionalParams,
DeletedShare,
FileSharesRestoreOptionalParams,
FileSharesLeaseOptionalParams,
FileSharesLeaseResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a FileShares. */
export interface FileShares {
/**
* Lists all shares.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
accountName: string,
options?: FileSharesListOptionalParams
): PagedAsyncIterableIterator<FileShareItem>;
/**
* Creates a new share under the specified account as described by request body. The share resource
* includes metadata and properties for that share. It does not include a list of the files contained
* by the share.
* @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 fileShare Properties of the file share to create.
* @param options The options parameters.
*/
create(
resourceGroupName: string,
accountName: string,
shareName: string,
fileShare: FileShare,
options?: FileSharesCreateOptionalParams
): Promise<FileSharesCreateResponse>;
/**
* Updates share properties as specified in request body. Properties not mentioned in the request will
* not be changed. Update fails if the specified share does not already exist.
* @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 fileShare Properties to update for the file share.
* @param options The options parameters.
*/
update(
resourceGroupName: string,
accountName: string,
shareName: string,
fileShare: FileShare,
options?: FileSharesUpdateOptionalParams
): Promise<FileSharesUpdateResponse>;
/**
* Gets properties of a specified share.
* @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 options parameters.
*/
get(
resourceGroupName: string,
accountName: string,
shareName: string,
options?: FileSharesGetOptionalParams
): Promise<FileSharesGetResponse>;
/**
* Deletes specified share under its account.
* @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 options parameters.
*/
delete(
resourceGroupName: string,
accountName: string,
shareName: string,
options?: FileSharesDeleteOptionalParams
): Promise<void>;
/**
* Restore a file share within a valid retention days if share soft delete is enabled
* @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 deletedShare The deleted share to be restored.
* @param options The options parameters.
*/
restore(
resourceGroupName: string,
accountName: string,
shareName: string,
deletedShare: DeletedShare,
options?: FileSharesRestoreOptionalParams
): Promise<void>;
/**
* 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 options parameters.
*/
lease(
resourceGroupName: string,
accountName: string,
shareName: string,
options?: FileSharesLeaseOptionalParams
): Promise<FileSharesLeaseResponse>;
}
+28
View File
@@ -0,0 +1,28 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export * from "./operations";
export * from "./skus";
export * from "./storageAccounts";
export * from "./deletedAccounts";
export * from "./usages";
export * from "./managementPolicies";
export * from "./blobInventoryPolicies";
export * from "./privateEndpointConnections";
export * from "./privateLinkResources";
export * from "./objectReplicationPoliciesOperations";
export * from "./localUsersOperations";
export * from "./encryptionScopes";
export * from "./blobServices";
export * from "./blobContainers";
export * from "./fileServices";
export * from "./fileShares";
export * from "./queueServices";
export * from "./queue";
export * from "./tableServices";
export * from "./tableOperations";
@@ -0,0 +1,128 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
LocalUser,
LocalUsersListOptionalParams,
LocalUsersGetOptionalParams,
LocalUsersGetResponse,
LocalUsersCreateOrUpdateOptionalParams,
LocalUsersCreateOrUpdateResponse,
LocalUsersDeleteOptionalParams,
LocalUsersListKeysOptionalParams,
LocalUsersListKeysResponse,
LocalUsersRegeneratePasswordOptionalParams,
LocalUsersRegeneratePasswordResponse
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a LocalUsersOperations. */
export interface LocalUsersOperations {
/**
* List the local users associated with the storage account.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
accountName: string,
options?: LocalUsersListOptionalParams
): PagedAsyncIterableIterator<LocalUser>;
/**
* Get the local user of the storage account by username.
* @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 username The name of local user. The username must contain lowercase letters and numbers
* only. It must be unique only within the storage account.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
accountName: string,
username: string,
options?: LocalUsersGetOptionalParams
): Promise<LocalUsersGetResponse>;
/**
* Create or update the properties of a local user associated with the storage account
* @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 username The name of local user. The username must contain lowercase letters and numbers
* only. It must be unique only within the storage account.
* @param properties The local user associated with a storage account.
* @param options The options parameters.
*/
createOrUpdate(
resourceGroupName: string,
accountName: string,
username: string,
properties: LocalUser,
options?: LocalUsersCreateOrUpdateOptionalParams
): Promise<LocalUsersCreateOrUpdateResponse>;
/**
* Deletes the local user associated with the specified storage account.
* @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 username The name of local user. The username must contain lowercase letters and numbers
* only. It must be unique only within the storage account.
* @param options The options parameters.
*/
delete(
resourceGroupName: string,
accountName: string,
username: string,
options?: LocalUsersDeleteOptionalParams
): Promise<void>;
/**
* List SSH authorized keys and shared key of the local user.
* @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 username The name of local user. The username must contain lowercase letters and numbers
* only. It must be unique only within the storage account.
* @param options The options parameters.
*/
listKeys(
resourceGroupName: string,
accountName: string,
username: string,
options?: LocalUsersListKeysOptionalParams
): Promise<LocalUsersListKeysResponse>;
/**
* Regenerate the local user SSH password.
* @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 username The name of local user. The username must contain lowercase letters and numbers
* only. It must be unique only within the storage account.
* @param options The options parameters.
*/
regeneratePassword(
resourceGroupName: string,
accountName: string,
username: string,
options?: LocalUsersRegeneratePasswordOptionalParams
): Promise<LocalUsersRegeneratePasswordResponse>;
}
@@ -0,0 +1,74 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import {
ManagementPolicyName,
ManagementPoliciesGetOptionalParams,
ManagementPoliciesGetResponse,
ManagementPolicy,
ManagementPoliciesCreateOrUpdateOptionalParams,
ManagementPoliciesCreateOrUpdateResponse,
ManagementPoliciesDeleteOptionalParams
} from "../models";
/** Interface representing a ManagementPolicies. */
export interface ManagementPolicies {
/**
* Gets the managementpolicy associated with the specified storage account.
* @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 managementPolicyName The name of the Storage Account Management Policy. It should always be
* 'default'
* @param options The options parameters.
*/
get(
resourceGroupName: string,
accountName: string,
managementPolicyName: ManagementPolicyName,
options?: ManagementPoliciesGetOptionalParams
): Promise<ManagementPoliciesGetResponse>;
/**
* Sets the managementpolicy to the specified storage account.
* @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 managementPolicyName The name of the Storage Account Management Policy. It should always be
* 'default'
* @param properties The ManagementPolicy set to a storage account.
* @param options The options parameters.
*/
createOrUpdate(
resourceGroupName: string,
accountName: string,
managementPolicyName: ManagementPolicyName,
properties: ManagementPolicy,
options?: ManagementPoliciesCreateOrUpdateOptionalParams
): Promise<ManagementPoliciesCreateOrUpdateResponse>;
/**
* Deletes the managementpolicy associated with the specified storage account.
* @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 managementPolicyName The name of the Storage Account Management Policy. It should always be
* 'default'
* @param options The options parameters.
*/
delete(
resourceGroupName: string,
accountName: string,
managementPolicyName: ManagementPolicyName,
options?: ManagementPoliciesDeleteOptionalParams
): Promise<void>;
}
@@ -0,0 +1,97 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
ObjectReplicationPolicy,
ObjectReplicationPoliciesListOptionalParams,
ObjectReplicationPoliciesGetOptionalParams,
ObjectReplicationPoliciesGetResponse,
ObjectReplicationPoliciesCreateOrUpdateOptionalParams,
ObjectReplicationPoliciesCreateOrUpdateResponse,
ObjectReplicationPoliciesDeleteOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a ObjectReplicationPoliciesOperations. */
export interface ObjectReplicationPoliciesOperations {
/**
* List the object replication policies associated with the storage account.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
accountName: string,
options?: ObjectReplicationPoliciesListOptionalParams
): PagedAsyncIterableIterator<ObjectReplicationPolicy>;
/**
* Get the object replication policy of the storage account by policy ID.
* @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 objectReplicationPolicyId For the destination account, provide the value 'default'. Configure
* the policy on the destination account first. For the source account, provide the value of the policy
* ID that is returned when you download the policy that was defined on the destination account. The
* policy is downloaded as a JSON file.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
accountName: string,
objectReplicationPolicyId: string,
options?: ObjectReplicationPoliciesGetOptionalParams
): Promise<ObjectReplicationPoliciesGetResponse>;
/**
* Create or update the object replication policy of the storage account.
* @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 objectReplicationPolicyId For the destination account, provide the value 'default'. Configure
* the policy on the destination account first. For the source account, provide the value of the policy
* ID that is returned when you download the policy that was defined on the destination account. The
* policy is downloaded as a JSON file.
* @param properties The object replication policy set to a storage account. A unique policy ID will be
* created if absent.
* @param options The options parameters.
*/
createOrUpdate(
resourceGroupName: string,
accountName: string,
objectReplicationPolicyId: string,
properties: ObjectReplicationPolicy,
options?: ObjectReplicationPoliciesCreateOrUpdateOptionalParams
): Promise<ObjectReplicationPoliciesCreateOrUpdateResponse>;
/**
* Deletes the object replication policy associated with the specified storage account.
* @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 objectReplicationPolicyId For the destination account, provide the value 'default'. Configure
* the policy on the destination account first. For the source account, provide the value of the policy
* ID that is returned when you download the policy that was defined on the destination account. The
* policy is downloaded as a JSON file.
* @param options The options parameters.
*/
delete(
resourceGroupName: string,
accountName: string,
objectReplicationPolicyId: string,
options?: ObjectReplicationPoliciesDeleteOptionalParams
): Promise<void>;
}
+22
View File
@@ -0,0 +1,22 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Operation, OperationsListOptionalParams } from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a Operations. */
export interface Operations {
/**
* Lists all of the available Storage Rest API operations.
* @param options The options parameters.
*/
list(
options?: OperationsListOptionalParams
): PagedAsyncIterableIterator<Operation>;
}
@@ -0,0 +1,90 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
PrivateEndpointConnection,
PrivateEndpointConnectionsListOptionalParams,
PrivateEndpointConnectionsGetOptionalParams,
PrivateEndpointConnectionsGetResponse,
PrivateEndpointConnectionsPutOptionalParams,
PrivateEndpointConnectionsPutResponse,
PrivateEndpointConnectionsDeleteOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a PrivateEndpointConnections. */
export interface PrivateEndpointConnections {
/**
* List all the private endpoint connections associated with the storage account.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
accountName: string,
options?: PrivateEndpointConnectionsListOptionalParams
): PagedAsyncIterableIterator<PrivateEndpointConnection>;
/**
* Gets the specified private endpoint connection associated with the storage account.
* @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 privateEndpointConnectionName The name of the private endpoint connection associated with the
* Azure resource
* @param options The options parameters.
*/
get(
resourceGroupName: string,
accountName: string,
privateEndpointConnectionName: string,
options?: PrivateEndpointConnectionsGetOptionalParams
): Promise<PrivateEndpointConnectionsGetResponse>;
/**
* Update the state of specified private endpoint connection associated with the storage account.
* @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 privateEndpointConnectionName The name of the private endpoint connection associated with the
* Azure resource
* @param properties The private endpoint connection properties.
* @param options The options parameters.
*/
put(
resourceGroupName: string,
accountName: string,
privateEndpointConnectionName: string,
properties: PrivateEndpointConnection,
options?: PrivateEndpointConnectionsPutOptionalParams
): Promise<PrivateEndpointConnectionsPutResponse>;
/**
* Deletes the specified private endpoint connection associated with the storage account.
* @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 privateEndpointConnectionName The name of the private endpoint connection associated with the
* Azure resource
* @param options The options parameters.
*/
delete(
resourceGroupName: string,
accountName: string,
privateEndpointConnectionName: string,
options?: PrivateEndpointConnectionsDeleteOptionalParams
): Promise<void>;
}
@@ -0,0 +1,30 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import {
PrivateLinkResourcesListByStorageAccountOptionalParams,
PrivateLinkResourcesListByStorageAccountResponse
} from "../models";
/** Interface representing a PrivateLinkResources. */
export interface PrivateLinkResources {
/**
* Gets the private link resources that need to be created for a storage account.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
listByStorageAccount(
resourceGroupName: string,
accountName: string,
options?: PrivateLinkResourcesListByStorageAccountOptionalParams
): Promise<PrivateLinkResourcesListByStorageAccountResponse>;
}
+116
View File
@@ -0,0 +1,116 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
ListQueue,
QueueListOptionalParams,
StorageQueue,
QueueCreateOptionalParams,
QueueCreateResponse,
QueueUpdateOptionalParams,
QueueUpdateResponse,
QueueGetOptionalParams,
QueueGetResponse,
QueueDeleteOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a Queue. */
export interface Queue {
/**
* Gets a list of all the queues under the specified storage account
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
accountName: string,
options?: QueueListOptionalParams
): PagedAsyncIterableIterator<ListQueue>;
/**
* Creates a new queue with the specified queue name, under the specified account.
* @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 queueName A queue name must be unique within a storage account and must be between 3 and 63
* characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should
* begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.
* @param queue Queue properties and metadata to be created with
* @param options The options parameters.
*/
create(
resourceGroupName: string,
accountName: string,
queueName: string,
queue: StorageQueue,
options?: QueueCreateOptionalParams
): Promise<QueueCreateResponse>;
/**
* Creates a new queue with the specified queue name, under the specified account.
* @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 queueName A queue name must be unique within a storage account and must be between 3 and 63
* characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should
* begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.
* @param queue Queue properties and metadata to be created with
* @param options The options parameters.
*/
update(
resourceGroupName: string,
accountName: string,
queueName: string,
queue: StorageQueue,
options?: QueueUpdateOptionalParams
): Promise<QueueUpdateResponse>;
/**
* Gets the queue with the specified queue name, under the specified account if it exists.
* @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 queueName A queue name must be unique within a storage account and must be between 3 and 63
* characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should
* begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
accountName: string,
queueName: string,
options?: QueueGetOptionalParams
): Promise<QueueGetResponse>;
/**
* Deletes the queue with the specified queue name, under the specified account if it exists.
* @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 queueName A queue name must be unique within a storage account and must be between 3 and 63
* characters.The name must comprise of lowercase alphanumeric and dash(-) characters only, it should
* begin and end with an alphanumeric character and it cannot have two consecutive dash(-) characters.
* @param options The options parameters.
*/
delete(
resourceGroupName: string,
accountName: string,
queueName: string,
options?: QueueDeleteOptionalParams
): Promise<void>;
}
@@ -0,0 +1,68 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import {
QueueServicesListOptionalParams,
QueueServicesListResponse,
QueueServiceProperties,
QueueServicesSetServicePropertiesOptionalParams,
QueueServicesSetServicePropertiesResponse,
QueueServicesGetServicePropertiesOptionalParams,
QueueServicesGetServicePropertiesResponse
} from "../models";
/** Interface representing a QueueServices. */
export interface QueueServices {
/**
* List all queue services for the storage account
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
accountName: string,
options?: QueueServicesListOptionalParams
): Promise<QueueServicesListResponse>;
/**
* Sets the properties of a storage accounts Queue service, including properties for Storage Analytics
* and CORS (Cross-Origin Resource Sharing) rules.
* @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 parameters The properties of a storage accounts Queue service, only properties for Storage
* Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified.
* @param options The options parameters.
*/
setServiceProperties(
resourceGroupName: string,
accountName: string,
parameters: QueueServiceProperties,
options?: QueueServicesSetServicePropertiesOptionalParams
): Promise<QueueServicesSetServicePropertiesResponse>;
/**
* Gets the properties of a storage accounts Queue service, including properties for Storage Analytics
* and CORS (Cross-Origin Resource Sharing) rules.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
getServiceProperties(
resourceGroupName: string,
accountName: string,
options?: QueueServicesGetServicePropertiesOptionalParams
): Promise<QueueServicesGetServicePropertiesResponse>;
}
+22
View File
@@ -0,0 +1,22 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { SkuInformation, SkusListOptionalParams } from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a Skus. */
export interface Skus {
/**
* Lists the available SKUs supported by Microsoft.Storage for given subscription.
* @param options The options parameters.
*/
list(
options?: SkusListOptionalParams
): PagedAsyncIterableIterator<SkuInformation>;
}
@@ -0,0 +1,387 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import {
StorageAccount,
StorageAccountsListOptionalParams,
StorageAccountsListByResourceGroupOptionalParams,
StorageAccountCheckNameAvailabilityParameters,
StorageAccountsCheckNameAvailabilityOptionalParams,
StorageAccountsCheckNameAvailabilityResponse,
StorageAccountCreateParameters,
StorageAccountsCreateOptionalParams,
StorageAccountsCreateResponse,
StorageAccountsDeleteOptionalParams,
StorageAccountsGetPropertiesOptionalParams,
StorageAccountsGetPropertiesResponse,
StorageAccountUpdateParameters,
StorageAccountsUpdateOptionalParams,
StorageAccountsUpdateResponse,
StorageAccountsListKeysOptionalParams,
StorageAccountsListKeysResponse,
StorageAccountRegenerateKeyParameters,
StorageAccountsRegenerateKeyOptionalParams,
StorageAccountsRegenerateKeyResponse,
AccountSasParameters,
StorageAccountsListAccountSASOptionalParams,
StorageAccountsListAccountSASResponse,
ServiceSasParameters,
StorageAccountsListServiceSASOptionalParams,
StorageAccountsListServiceSASResponse,
StorageAccountsFailoverOptionalParams,
StorageAccountsHierarchicalNamespaceMigrationOptionalParams,
StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams,
BlobRestoreParameters,
StorageAccountsRestoreBlobRangesOptionalParams,
StorageAccountsRestoreBlobRangesResponse,
StorageAccountsRevokeUserDelegationKeysOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a StorageAccounts. */
export interface StorageAccounts {
/**
* Lists all the storage accounts available under the subscription. Note that storage keys are not
* returned; use the ListKeys operation for this.
* @param options The options parameters.
*/
list(
options?: StorageAccountsListOptionalParams
): PagedAsyncIterableIterator<StorageAccount>;
/**
* Lists all the storage accounts available under the given resource group. Note that storage keys are
* not returned; use the ListKeys operation for this.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param options The options parameters.
*/
listByResourceGroup(
resourceGroupName: string,
options?: StorageAccountsListByResourceGroupOptionalParams
): PagedAsyncIterableIterator<StorageAccount>;
/**
* Checks that the storage account name is valid and is not already in use.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
checkNameAvailability(
accountName: StorageAccountCheckNameAvailabilityParameters,
options?: StorageAccountsCheckNameAvailabilityOptionalParams
): Promise<StorageAccountsCheckNameAvailabilityResponse>;
/**
* Asynchronously creates a new storage account with the specified parameters. If an account is already
* created and a subsequent create request is issued with different properties, the account properties
* will be updated. If an account is already created and a subsequent create or update request is
* issued with the exact same set of properties, the request will succeed.
* @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 parameters The parameters to provide for the created account.
* @param options The options parameters.
*/
beginCreate(
resourceGroupName: string,
accountName: string,
parameters: StorageAccountCreateParameters,
options?: StorageAccountsCreateOptionalParams
): Promise<
PollerLike<
PollOperationState<StorageAccountsCreateResponse>,
StorageAccountsCreateResponse
>
>;
/**
* Asynchronously creates a new storage account with the specified parameters. If an account is already
* created and a subsequent create request is issued with different properties, the account properties
* will be updated. If an account is already created and a subsequent create or update request is
* issued with the exact same set of properties, the request will succeed.
* @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 parameters The parameters to provide for the created account.
* @param options The options parameters.
*/
beginCreateAndWait(
resourceGroupName: string,
accountName: string,
parameters: StorageAccountCreateParameters,
options?: StorageAccountsCreateOptionalParams
): Promise<StorageAccountsCreateResponse>;
/**
* Deletes a storage account in Microsoft Azure.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
delete(
resourceGroupName: string,
accountName: string,
options?: StorageAccountsDeleteOptionalParams
): Promise<void>;
/**
* Returns the properties for the specified storage account including but not limited to name, SKU
* name, location, and account status. The ListKeys operation should be used to retrieve storage keys.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
getProperties(
resourceGroupName: string,
accountName: string,
options?: StorageAccountsGetPropertiesOptionalParams
): Promise<StorageAccountsGetPropertiesResponse>;
/**
* The update operation can be used to update the SKU, encryption, access tier, or tags for a storage
* account. It can also be used to map the account to a custom domain. Only one custom domain is
* supported per storage account; the replacement/change of custom domain is not supported. In order to
* replace an old custom domain, the old value must be cleared/unregistered before a new value can be
* set. The update of multiple properties is supported. This call does not change the storage keys for
* the account. If you want to change the storage account keys, use the regenerate keys operation. The
* location and name of the storage account cannot be changed after creation.
* @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 parameters The parameters to provide for the updated account.
* @param options The options parameters.
*/
update(
resourceGroupName: string,
accountName: string,
parameters: StorageAccountUpdateParameters,
options?: StorageAccountsUpdateOptionalParams
): Promise<StorageAccountsUpdateResponse>;
/**
* Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage
* account.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
listKeys(
resourceGroupName: string,
accountName: string,
options?: StorageAccountsListKeysOptionalParams
): Promise<StorageAccountsListKeysResponse>;
/**
* Regenerates one of the access keys or Kerberos keys for the specified storage account.
* @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 regenerateKey Specifies name of the key which should be regenerated -- key1, key2, kerb1,
* kerb2.
* @param options The options parameters.
*/
regenerateKey(
resourceGroupName: string,
accountName: string,
regenerateKey: StorageAccountRegenerateKeyParameters,
options?: StorageAccountsRegenerateKeyOptionalParams
): Promise<StorageAccountsRegenerateKeyResponse>;
/**
* List SAS credentials of a storage account.
* @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 parameters The parameters to provide to list SAS credentials for the storage account.
* @param options The options parameters.
*/
listAccountSAS(
resourceGroupName: string,
accountName: string,
parameters: AccountSasParameters,
options?: StorageAccountsListAccountSASOptionalParams
): Promise<StorageAccountsListAccountSASResponse>;
/**
* List service SAS credentials of a specific resource.
* @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 parameters The parameters to provide to list service SAS credentials.
* @param options The options parameters.
*/
listServiceSAS(
resourceGroupName: string,
accountName: string,
parameters: ServiceSasParameters,
options?: StorageAccountsListServiceSASOptionalParams
): Promise<StorageAccountsListServiceSASResponse>;
/**
* Failover request can be triggered for a storage account in case of availability issues. The failover
* occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The
* secondary cluster will become primary after failover.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
beginFailover(
resourceGroupName: string,
accountName: string,
options?: StorageAccountsFailoverOptionalParams
): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* Failover request can be triggered for a storage account in case of availability issues. The failover
* occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The
* secondary cluster will become primary after failover.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
beginFailoverAndWait(
resourceGroupName: string,
accountName: string,
options?: StorageAccountsFailoverOptionalParams
): Promise<void>;
/**
* Live Migration of storage account to enable Hns
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param requestType Required. Hierarchical namespace migration type can either be a hierarchical
* namespace validation request 'HnsOnValidationRequest' or a hydration request
* 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration
* request will migrate the account.
* @param options The options parameters.
*/
beginHierarchicalNamespaceMigration(
resourceGroupName: string,
accountName: string,
requestType: string,
options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams
): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* Live Migration of storage account to enable Hns
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param requestType Required. Hierarchical namespace migration type can either be a hierarchical
* namespace validation request 'HnsOnValidationRequest' or a hydration request
* 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration
* request will migrate the account.
* @param options The options parameters.
*/
beginHierarchicalNamespaceMigrationAndWait(
resourceGroupName: string,
accountName: string,
requestType: string,
options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams
): Promise<void>;
/**
* Abort live Migration of storage account to enable Hns
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
beginAbortHierarchicalNamespaceMigration(
resourceGroupName: string,
accountName: string,
options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams
): Promise<PollerLike<PollOperationState<void>, void>>;
/**
* Abort live Migration of storage account to enable Hns
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
beginAbortHierarchicalNamespaceMigrationAndWait(
resourceGroupName: string,
accountName: string,
options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams
): Promise<void>;
/**
* Restore blobs in the specified blob ranges
* @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 parameters The parameters to provide for restore blob ranges.
* @param options The options parameters.
*/
beginRestoreBlobRanges(
resourceGroupName: string,
accountName: string,
parameters: BlobRestoreParameters,
options?: StorageAccountsRestoreBlobRangesOptionalParams
): Promise<
PollerLike<
PollOperationState<StorageAccountsRestoreBlobRangesResponse>,
StorageAccountsRestoreBlobRangesResponse
>
>;
/**
* Restore blobs in the specified blob ranges
* @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 parameters The parameters to provide for restore blob ranges.
* @param options The options parameters.
*/
beginRestoreBlobRangesAndWait(
resourceGroupName: string,
accountName: string,
parameters: BlobRestoreParameters,
options?: StorageAccountsRestoreBlobRangesOptionalParams
): Promise<StorageAccountsRestoreBlobRangesResponse>;
/**
* Revoke user delegation keys.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
revokeUserDelegationKeys(
resourceGroupName: string,
accountName: string,
options?: StorageAccountsRevokeUserDelegationKeysOptionalParams
): Promise<void>;
}
@@ -0,0 +1,111 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
Table,
TableListOptionalParams,
TableCreateOptionalParams,
TableCreateResponse,
TableUpdateOptionalParams,
TableUpdateResponse,
TableGetOptionalParams,
TableGetResponse,
TableDeleteOptionalParams
} from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a TableOperations. */
export interface TableOperations {
/**
* Gets a list of all the tables under the specified storage account
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
accountName: string,
options?: TableListOptionalParams
): PagedAsyncIterableIterator<Table>;
/**
* Creates a new table with the specified table name, under the specified account.
* @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 tableName A table name must be unique within a storage account and must be between 3 and 63
* characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric
* character.
* @param options The options parameters.
*/
create(
resourceGroupName: string,
accountName: string,
tableName: string,
options?: TableCreateOptionalParams
): Promise<TableCreateResponse>;
/**
* Creates a new table with the specified table name, under the specified account.
* @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 tableName A table name must be unique within a storage account and must be between 3 and 63
* characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric
* character.
* @param options The options parameters.
*/
update(
resourceGroupName: string,
accountName: string,
tableName: string,
options?: TableUpdateOptionalParams
): Promise<TableUpdateResponse>;
/**
* Gets the table with the specified table name, under the specified account if it exists.
* @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 tableName A table name must be unique within a storage account and must be between 3 and 63
* characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric
* character.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
accountName: string,
tableName: string,
options?: TableGetOptionalParams
): Promise<TableGetResponse>;
/**
* Deletes the table with the specified table name, under the specified account if it exists.
* @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 tableName A table name must be unique within a storage account and must be between 3 and 63
* characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric
* character.
* @param options The options parameters.
*/
delete(
resourceGroupName: string,
accountName: string,
tableName: string,
options?: TableDeleteOptionalParams
): Promise<void>;
}
@@ -0,0 +1,68 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import {
TableServicesListOptionalParams,
TableServicesListResponse,
TableServiceProperties,
TableServicesSetServicePropertiesOptionalParams,
TableServicesSetServicePropertiesResponse,
TableServicesGetServicePropertiesOptionalParams,
TableServicesGetServicePropertiesResponse
} from "../models";
/** Interface representing a TableServices. */
export interface TableServices {
/**
* List all table services for the storage account.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
list(
resourceGroupName: string,
accountName: string,
options?: TableServicesListOptionalParams
): Promise<TableServicesListResponse>;
/**
* Sets the properties of a storage accounts Table service, including properties for Storage Analytics
* and CORS (Cross-Origin Resource Sharing) rules.
* @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 parameters The properties of a storage accounts Table service, only properties for Storage
* Analytics and CORS (Cross-Origin Resource Sharing) rules can be specified.
* @param options The options parameters.
*/
setServiceProperties(
resourceGroupName: string,
accountName: string,
parameters: TableServiceProperties,
options?: TableServicesSetServicePropertiesOptionalParams
): Promise<TableServicesSetServicePropertiesResponse>;
/**
* Gets the properties of a storage accounts Table service, including properties for Storage Analytics
* and CORS (Cross-Origin Resource Sharing) rules.
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
* only.
* @param options The options parameters.
*/
getServiceProperties(
resourceGroupName: string,
accountName: string,
options?: TableServicesGetServicePropertiesOptionalParams
): Promise<TableServicesGetServicePropertiesResponse>;
}
+24
View File
@@ -0,0 +1,24 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Usage, UsagesListByLocationOptionalParams } from "../models";
/// <reference lib="esnext.asynciterable" />
/** Interface representing a Usages. */
export interface Usages {
/**
* Gets the current usage count and the limit for the resources of the location under the subscription.
* @param location The location of the Azure Storage resource.
* @param options The options parameters.
*/
listByLocation(
location: string,
options?: UsagesListByLocationOptionalParams
): PagedAsyncIterableIterator<Usage>;
}