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
+5
View File
@@ -0,0 +1,5 @@
/// <reference lib="esnext.asynciterable" />
export * from "./models";
export { StorageManagementClient } from "./storageManagementClient";
export * from "./operationsInterfaces";
//# sourceMappingURL=index.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AASA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,cAAc,wBAAwB,CAAC"}
+12
View File
@@ -0,0 +1,12 @@
/*
* 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.
*/
/// <reference lib="esnext.asynciterable" />
export * from "./models";
export { StorageManagementClient } from "./storageManagementClient";
export * from "./operationsInterfaces";
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,cAAc,wBAAwB,CAAC"}
+16
View File
@@ -0,0 +1,16 @@
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
export declare class LroImpl<T> implements LongRunningOperation<T> {
private sendOperationFn;
private args;
private spec;
requestPath: string;
requestMethod: string;
constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
readonly requestBody?: unknown;
readonly path?: string;
readonly httpMethod: string;
} & Record<string, any>, requestPath?: string, requestMethod?: string);
sendInitialRequest(): Promise<LroResponse<T>>;
sendPollRequest(path: string): Promise<LroResponse<T>>;
}
//# sourceMappingURL=lroImpl.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,qBAAa,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAKL,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,MAAM;gBARpB,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAClE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChB,WAAW,GAAE,MAAmB,EAChC,aAAa,GAAE,MAAwB;IAEnC,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAG7C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAQpE"}
+29
View File
@@ -0,0 +1,29 @@
/*
* 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 { __awaiter, __rest } from "tslib";
export class LroImpl {
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
this.sendOperationFn = sendOperationFn;
this.args = args;
this.spec = spec;
this.requestPath = requestPath;
this.requestMethod = requestMethod;
}
sendInitialRequest() {
return __awaiter(this, void 0, void 0, function* () {
return this.sendOperationFn(this.args, this.spec);
});
}
sendPollRequest(path) {
return __awaiter(this, void 0, void 0, function* () {
const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
});
}
}
//# sourceMappingURL=lroImpl.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACS,kBAAkB;;YAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC;KAAA;IACY,eAAe,CAAC,IAAY;;YACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;YAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;QACL,CAAC;KAAA;CACF"}
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+377
View File
@@ -0,0 +1,377 @@
/*
* 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.
*/
/** Known values of {@link SkuName} that the service accepts. */
export var KnownSkuName;
(function (KnownSkuName) {
KnownSkuName["StandardLRS"] = "Standard_LRS";
KnownSkuName["StandardGRS"] = "Standard_GRS";
KnownSkuName["StandardRagrs"] = "Standard_RAGRS";
KnownSkuName["StandardZRS"] = "Standard_ZRS";
KnownSkuName["PremiumLRS"] = "Premium_LRS";
KnownSkuName["PremiumZRS"] = "Premium_ZRS";
KnownSkuName["StandardGzrs"] = "Standard_GZRS";
KnownSkuName["StandardRagzrs"] = "Standard_RAGZRS";
})(KnownSkuName || (KnownSkuName = {}));
/** Known values of {@link Kind} that the service accepts. */
export var KnownKind;
(function (KnownKind) {
KnownKind["Storage"] = "Storage";
KnownKind["StorageV2"] = "StorageV2";
KnownKind["BlobStorage"] = "BlobStorage";
KnownKind["FileStorage"] = "FileStorage";
KnownKind["BlockBlobStorage"] = "BlockBlobStorage";
})(KnownKind || (KnownKind = {}));
/** Known values of {@link ReasonCode} that the service accepts. */
export var KnownReasonCode;
(function (KnownReasonCode) {
KnownReasonCode["QuotaId"] = "QuotaId";
KnownReasonCode["NotAvailableForSubscription"] = "NotAvailableForSubscription";
})(KnownReasonCode || (KnownReasonCode = {}));
/** Known values of {@link ExtendedLocationTypes} that the service accepts. */
export var KnownExtendedLocationTypes;
(function (KnownExtendedLocationTypes) {
KnownExtendedLocationTypes["EdgeZone"] = "EdgeZone";
})(KnownExtendedLocationTypes || (KnownExtendedLocationTypes = {}));
/** Known values of {@link IdentityType} that the service accepts. */
export var KnownIdentityType;
(function (KnownIdentityType) {
KnownIdentityType["None"] = "None";
KnownIdentityType["SystemAssigned"] = "SystemAssigned";
KnownIdentityType["UserAssigned"] = "UserAssigned";
KnownIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
})(KnownIdentityType || (KnownIdentityType = {}));
/** Known values of {@link AllowedCopyScope} that the service accepts. */
export var KnownAllowedCopyScope;
(function (KnownAllowedCopyScope) {
KnownAllowedCopyScope["PrivateLink"] = "PrivateLink";
KnownAllowedCopyScope["AAD"] = "AAD";
})(KnownAllowedCopyScope || (KnownAllowedCopyScope = {}));
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
export var KnownPublicNetworkAccess;
(function (KnownPublicNetworkAccess) {
KnownPublicNetworkAccess["Enabled"] = "Enabled";
KnownPublicNetworkAccess["Disabled"] = "Disabled";
})(KnownPublicNetworkAccess || (KnownPublicNetworkAccess = {}));
/** Known values of {@link ExpirationAction} that the service accepts. */
export var KnownExpirationAction;
(function (KnownExpirationAction) {
KnownExpirationAction["Log"] = "Log";
})(KnownExpirationAction || (KnownExpirationAction = {}));
/** Known values of {@link KeyType} that the service accepts. */
export var KnownKeyType;
(function (KnownKeyType) {
KnownKeyType["Service"] = "Service";
KnownKeyType["Account"] = "Account";
})(KnownKeyType || (KnownKeyType = {}));
/** Known values of {@link KeySource} that the service accepts. */
export var KnownKeySource;
(function (KnownKeySource) {
KnownKeySource["MicrosoftStorage"] = "Microsoft.Storage";
KnownKeySource["MicrosoftKeyvault"] = "Microsoft.Keyvault";
})(KnownKeySource || (KnownKeySource = {}));
/** Known values of {@link Bypass} that the service accepts. */
export var KnownBypass;
(function (KnownBypass) {
KnownBypass["None"] = "None";
KnownBypass["Logging"] = "Logging";
KnownBypass["Metrics"] = "Metrics";
KnownBypass["AzureServices"] = "AzureServices";
})(KnownBypass || (KnownBypass = {}));
/** Known values of {@link State} that the service accepts. */
export var KnownState;
(function (KnownState) {
KnownState["Provisioning"] = "Provisioning";
KnownState["Deprovisioning"] = "Deprovisioning";
KnownState["Succeeded"] = "Succeeded";
KnownState["Failed"] = "Failed";
KnownState["NetworkSourceDeleted"] = "NetworkSourceDeleted";
})(KnownState || (KnownState = {}));
/** Known values of {@link DirectoryServiceOptions} that the service accepts. */
export var KnownDirectoryServiceOptions;
(function (KnownDirectoryServiceOptions) {
KnownDirectoryServiceOptions["None"] = "None";
KnownDirectoryServiceOptions["Aadds"] = "AADDS";
KnownDirectoryServiceOptions["AD"] = "AD";
})(KnownDirectoryServiceOptions || (KnownDirectoryServiceOptions = {}));
/** Known values of {@link ActiveDirectoryPropertiesAccountType} that the service accepts. */
export var KnownActiveDirectoryPropertiesAccountType;
(function (KnownActiveDirectoryPropertiesAccountType) {
KnownActiveDirectoryPropertiesAccountType["User"] = "User";
KnownActiveDirectoryPropertiesAccountType["Computer"] = "Computer";
})(KnownActiveDirectoryPropertiesAccountType || (KnownActiveDirectoryPropertiesAccountType = {}));
/** Known values of {@link DefaultSharePermission} that the service accepts. */
export var KnownDefaultSharePermission;
(function (KnownDefaultSharePermission) {
KnownDefaultSharePermission["None"] = "None";
KnownDefaultSharePermission["StorageFileDataSmbShareReader"] = "StorageFileDataSmbShareReader";
KnownDefaultSharePermission["StorageFileDataSmbShareContributor"] = "StorageFileDataSmbShareContributor";
KnownDefaultSharePermission["StorageFileDataSmbShareElevatedContributor"] = "StorageFileDataSmbShareElevatedContributor";
})(KnownDefaultSharePermission || (KnownDefaultSharePermission = {}));
/** Known values of {@link LargeFileSharesState} that the service accepts. */
export var KnownLargeFileSharesState;
(function (KnownLargeFileSharesState) {
KnownLargeFileSharesState["Disabled"] = "Disabled";
KnownLargeFileSharesState["Enabled"] = "Enabled";
})(KnownLargeFileSharesState || (KnownLargeFileSharesState = {}));
/** Known values of {@link RoutingChoice} that the service accepts. */
export var KnownRoutingChoice;
(function (KnownRoutingChoice) {
KnownRoutingChoice["MicrosoftRouting"] = "MicrosoftRouting";
KnownRoutingChoice["InternetRouting"] = "InternetRouting";
})(KnownRoutingChoice || (KnownRoutingChoice = {}));
/** Known values of {@link MinimumTlsVersion} that the service accepts. */
export var KnownMinimumTlsVersion;
(function (KnownMinimumTlsVersion) {
KnownMinimumTlsVersion["TLS10"] = "TLS1_0";
KnownMinimumTlsVersion["TLS11"] = "TLS1_1";
KnownMinimumTlsVersion["TLS12"] = "TLS1_2";
})(KnownMinimumTlsVersion || (KnownMinimumTlsVersion = {}));
/** Known values of {@link AccountImmutabilityPolicyState} that the service accepts. */
export var KnownAccountImmutabilityPolicyState;
(function (KnownAccountImmutabilityPolicyState) {
KnownAccountImmutabilityPolicyState["Unlocked"] = "Unlocked";
KnownAccountImmutabilityPolicyState["Locked"] = "Locked";
KnownAccountImmutabilityPolicyState["Disabled"] = "Disabled";
})(KnownAccountImmutabilityPolicyState || (KnownAccountImmutabilityPolicyState = {}));
/** Known values of {@link DnsEndpointType} that the service accepts. */
export var KnownDnsEndpointType;
(function (KnownDnsEndpointType) {
KnownDnsEndpointType["Standard"] = "Standard";
KnownDnsEndpointType["AzureDnsZone"] = "AzureDnsZone";
})(KnownDnsEndpointType || (KnownDnsEndpointType = {}));
/** Known values of {@link GeoReplicationStatus} that the service accepts. */
export var KnownGeoReplicationStatus;
(function (KnownGeoReplicationStatus) {
KnownGeoReplicationStatus["Live"] = "Live";
KnownGeoReplicationStatus["Bootstrap"] = "Bootstrap";
KnownGeoReplicationStatus["Unavailable"] = "Unavailable";
})(KnownGeoReplicationStatus || (KnownGeoReplicationStatus = {}));
/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
export var KnownPrivateEndpointServiceConnectionStatus;
(function (KnownPrivateEndpointServiceConnectionStatus) {
KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
})(KnownPrivateEndpointServiceConnectionStatus || (KnownPrivateEndpointServiceConnectionStatus = {}));
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
export var KnownPrivateEndpointConnectionProvisioningState;
(function (KnownPrivateEndpointConnectionProvisioningState) {
KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
})(KnownPrivateEndpointConnectionProvisioningState || (KnownPrivateEndpointConnectionProvisioningState = {}));
/** Known values of {@link BlobRestoreProgressStatus} that the service accepts. */
export var KnownBlobRestoreProgressStatus;
(function (KnownBlobRestoreProgressStatus) {
KnownBlobRestoreProgressStatus["InProgress"] = "InProgress";
KnownBlobRestoreProgressStatus["Complete"] = "Complete";
KnownBlobRestoreProgressStatus["Failed"] = "Failed";
})(KnownBlobRestoreProgressStatus || (KnownBlobRestoreProgressStatus = {}));
/** Known values of {@link SkuConversionStatus} that the service accepts. */
export var KnownSkuConversionStatus;
(function (KnownSkuConversionStatus) {
KnownSkuConversionStatus["InProgress"] = "InProgress";
KnownSkuConversionStatus["Succeeded"] = "Succeeded";
KnownSkuConversionStatus["Failed"] = "Failed";
})(KnownSkuConversionStatus || (KnownSkuConversionStatus = {}));
/** Known values of {@link Services} that the service accepts. */
export var KnownServices;
(function (KnownServices) {
KnownServices["B"] = "b";
KnownServices["Q"] = "q";
KnownServices["T"] = "t";
KnownServices["F"] = "f";
})(KnownServices || (KnownServices = {}));
/** Known values of {@link SignedResourceTypes} that the service accepts. */
export var KnownSignedResourceTypes;
(function (KnownSignedResourceTypes) {
KnownSignedResourceTypes["S"] = "s";
KnownSignedResourceTypes["C"] = "c";
KnownSignedResourceTypes["O"] = "o";
})(KnownSignedResourceTypes || (KnownSignedResourceTypes = {}));
/** Known values of {@link Permissions} that the service accepts. */
export var KnownPermissions;
(function (KnownPermissions) {
KnownPermissions["R"] = "r";
KnownPermissions["D"] = "d";
KnownPermissions["W"] = "w";
KnownPermissions["L"] = "l";
KnownPermissions["A"] = "a";
KnownPermissions["C"] = "c";
KnownPermissions["U"] = "u";
KnownPermissions["P"] = "p";
})(KnownPermissions || (KnownPermissions = {}));
/** Known values of {@link SignedResource} that the service accepts. */
export var KnownSignedResource;
(function (KnownSignedResource) {
KnownSignedResource["B"] = "b";
KnownSignedResource["C"] = "c";
KnownSignedResource["F"] = "f";
KnownSignedResource["S"] = "s";
})(KnownSignedResource || (KnownSignedResource = {}));
/** Known values of {@link ManagementPolicyName} that the service accepts. */
export var KnownManagementPolicyName;
(function (KnownManagementPolicyName) {
KnownManagementPolicyName["Default"] = "default";
})(KnownManagementPolicyName || (KnownManagementPolicyName = {}));
/** Known values of {@link RuleType} that the service accepts. */
export var KnownRuleType;
(function (KnownRuleType) {
KnownRuleType["Lifecycle"] = "Lifecycle";
})(KnownRuleType || (KnownRuleType = {}));
/** Known values of {@link BlobInventoryPolicyName} that the service accepts. */
export var KnownBlobInventoryPolicyName;
(function (KnownBlobInventoryPolicyName) {
KnownBlobInventoryPolicyName["Default"] = "default";
})(KnownBlobInventoryPolicyName || (KnownBlobInventoryPolicyName = {}));
/** Known values of {@link InventoryRuleType} that the service accepts. */
export var KnownInventoryRuleType;
(function (KnownInventoryRuleType) {
KnownInventoryRuleType["Inventory"] = "Inventory";
})(KnownInventoryRuleType || (KnownInventoryRuleType = {}));
/** Known values of {@link Format} that the service accepts. */
export var KnownFormat;
(function (KnownFormat) {
KnownFormat["Csv"] = "Csv";
KnownFormat["Parquet"] = "Parquet";
})(KnownFormat || (KnownFormat = {}));
/** Known values of {@link Schedule} that the service accepts. */
export var KnownSchedule;
(function (KnownSchedule) {
KnownSchedule["Daily"] = "Daily";
KnownSchedule["Weekly"] = "Weekly";
})(KnownSchedule || (KnownSchedule = {}));
/** Known values of {@link ObjectType} that the service accepts. */
export var KnownObjectType;
(function (KnownObjectType) {
KnownObjectType["Blob"] = "Blob";
KnownObjectType["Container"] = "Container";
})(KnownObjectType || (KnownObjectType = {}));
/** Known values of {@link CreatedByType} that the service accepts. */
export var KnownCreatedByType;
(function (KnownCreatedByType) {
KnownCreatedByType["User"] = "User";
KnownCreatedByType["Application"] = "Application";
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
KnownCreatedByType["Key"] = "Key";
})(KnownCreatedByType || (KnownCreatedByType = {}));
/** Known values of {@link EncryptionScopeSource} that the service accepts. */
export var KnownEncryptionScopeSource;
(function (KnownEncryptionScopeSource) {
KnownEncryptionScopeSource["MicrosoftStorage"] = "Microsoft.Storage";
KnownEncryptionScopeSource["MicrosoftKeyVault"] = "Microsoft.KeyVault";
})(KnownEncryptionScopeSource || (KnownEncryptionScopeSource = {}));
/** Known values of {@link EncryptionScopeState} that the service accepts. */
export var KnownEncryptionScopeState;
(function (KnownEncryptionScopeState) {
KnownEncryptionScopeState["Enabled"] = "Enabled";
KnownEncryptionScopeState["Disabled"] = "Disabled";
})(KnownEncryptionScopeState || (KnownEncryptionScopeState = {}));
/** Known values of {@link CorsRuleAllowedMethodsItem} that the service accepts. */
export var KnownCorsRuleAllowedMethodsItem;
(function (KnownCorsRuleAllowedMethodsItem) {
KnownCorsRuleAllowedMethodsItem["Delete"] = "DELETE";
KnownCorsRuleAllowedMethodsItem["GET"] = "GET";
KnownCorsRuleAllowedMethodsItem["Head"] = "HEAD";
KnownCorsRuleAllowedMethodsItem["Merge"] = "MERGE";
KnownCorsRuleAllowedMethodsItem["Post"] = "POST";
KnownCorsRuleAllowedMethodsItem["Options"] = "OPTIONS";
KnownCorsRuleAllowedMethodsItem["PUT"] = "PUT";
KnownCorsRuleAllowedMethodsItem["Patch"] = "PATCH";
})(KnownCorsRuleAllowedMethodsItem || (KnownCorsRuleAllowedMethodsItem = {}));
/** Known values of {@link Name} that the service accepts. */
export var KnownName;
(function (KnownName) {
KnownName["AccessTimeTracking"] = "AccessTimeTracking";
})(KnownName || (KnownName = {}));
/** Known values of {@link ListContainersInclude} that the service accepts. */
export var KnownListContainersInclude;
(function (KnownListContainersInclude) {
KnownListContainersInclude["Deleted"] = "deleted";
})(KnownListContainersInclude || (KnownListContainersInclude = {}));
/** Known values of {@link LeaseStatus} that the service accepts. */
export var KnownLeaseStatus;
(function (KnownLeaseStatus) {
KnownLeaseStatus["Locked"] = "Locked";
KnownLeaseStatus["Unlocked"] = "Unlocked";
})(KnownLeaseStatus || (KnownLeaseStatus = {}));
/** Known values of {@link LeaseState} that the service accepts. */
export var KnownLeaseState;
(function (KnownLeaseState) {
KnownLeaseState["Available"] = "Available";
KnownLeaseState["Leased"] = "Leased";
KnownLeaseState["Expired"] = "Expired";
KnownLeaseState["Breaking"] = "Breaking";
KnownLeaseState["Broken"] = "Broken";
})(KnownLeaseState || (KnownLeaseState = {}));
/** Known values of {@link LeaseDuration} that the service accepts. */
export var KnownLeaseDuration;
(function (KnownLeaseDuration) {
KnownLeaseDuration["Infinite"] = "Infinite";
KnownLeaseDuration["Fixed"] = "Fixed";
})(KnownLeaseDuration || (KnownLeaseDuration = {}));
/** Known values of {@link ImmutabilityPolicyState} that the service accepts. */
export var KnownImmutabilityPolicyState;
(function (KnownImmutabilityPolicyState) {
KnownImmutabilityPolicyState["Locked"] = "Locked";
KnownImmutabilityPolicyState["Unlocked"] = "Unlocked";
})(KnownImmutabilityPolicyState || (KnownImmutabilityPolicyState = {}));
/** Known values of {@link ImmutabilityPolicyUpdateType} that the service accepts. */
export var KnownImmutabilityPolicyUpdateType;
(function (KnownImmutabilityPolicyUpdateType) {
KnownImmutabilityPolicyUpdateType["Put"] = "put";
KnownImmutabilityPolicyUpdateType["Lock"] = "lock";
KnownImmutabilityPolicyUpdateType["Extend"] = "extend";
})(KnownImmutabilityPolicyUpdateType || (KnownImmutabilityPolicyUpdateType = {}));
/** Known values of {@link MigrationState} that the service accepts. */
export var KnownMigrationState;
(function (KnownMigrationState) {
KnownMigrationState["InProgress"] = "InProgress";
KnownMigrationState["Completed"] = "Completed";
})(KnownMigrationState || (KnownMigrationState = {}));
/** Known values of {@link LeaseContainerRequestAction} that the service accepts. */
export var KnownLeaseContainerRequestAction;
(function (KnownLeaseContainerRequestAction) {
KnownLeaseContainerRequestAction["Acquire"] = "Acquire";
KnownLeaseContainerRequestAction["Renew"] = "Renew";
KnownLeaseContainerRequestAction["Change"] = "Change";
KnownLeaseContainerRequestAction["Release"] = "Release";
KnownLeaseContainerRequestAction["Break"] = "Break";
})(KnownLeaseContainerRequestAction || (KnownLeaseContainerRequestAction = {}));
/** Known values of {@link EnabledProtocols} that the service accepts. */
export var KnownEnabledProtocols;
(function (KnownEnabledProtocols) {
KnownEnabledProtocols["SMB"] = "SMB";
KnownEnabledProtocols["NFS"] = "NFS";
})(KnownEnabledProtocols || (KnownEnabledProtocols = {}));
/** Known values of {@link RootSquashType} that the service accepts. */
export var KnownRootSquashType;
(function (KnownRootSquashType) {
KnownRootSquashType["NoRootSquash"] = "NoRootSquash";
KnownRootSquashType["RootSquash"] = "RootSquash";
KnownRootSquashType["AllSquash"] = "AllSquash";
})(KnownRootSquashType || (KnownRootSquashType = {}));
/** Known values of {@link ShareAccessTier} that the service accepts. */
export var KnownShareAccessTier;
(function (KnownShareAccessTier) {
KnownShareAccessTier["TransactionOptimized"] = "TransactionOptimized";
KnownShareAccessTier["Hot"] = "Hot";
KnownShareAccessTier["Cool"] = "Cool";
KnownShareAccessTier["Premium"] = "Premium";
})(KnownShareAccessTier || (KnownShareAccessTier = {}));
/** Known values of {@link LeaseShareAction} that the service accepts. */
export var KnownLeaseShareAction;
(function (KnownLeaseShareAction) {
KnownLeaseShareAction["Acquire"] = "Acquire";
KnownLeaseShareAction["Renew"] = "Renew";
KnownLeaseShareAction["Change"] = "Change";
KnownLeaseShareAction["Release"] = "Release";
KnownLeaseShareAction["Break"] = "Break";
})(KnownLeaseShareAction || (KnownLeaseShareAction = {}));
//# sourceMappingURL=index.js.map
File diff suppressed because one or more lines are too long
+157
View File
@@ -0,0 +1,157 @@
import * as coreClient from "@azure/core-client";
export declare const OperationListResult: coreClient.CompositeMapper;
export declare const Operation: coreClient.CompositeMapper;
export declare const OperationDisplay: coreClient.CompositeMapper;
export declare const ServiceSpecification: coreClient.CompositeMapper;
export declare const MetricSpecification: coreClient.CompositeMapper;
export declare const Dimension: coreClient.CompositeMapper;
export declare const StorageSkuListResult: coreClient.CompositeMapper;
export declare const SkuInformation: coreClient.CompositeMapper;
export declare const SKUCapability: coreClient.CompositeMapper;
export declare const Restriction: coreClient.CompositeMapper;
export declare const StorageAccountCheckNameAvailabilityParameters: coreClient.CompositeMapper;
export declare const CheckNameAvailabilityResult: coreClient.CompositeMapper;
export declare const StorageAccountCreateParameters: coreClient.CompositeMapper;
export declare const Sku: coreClient.CompositeMapper;
export declare const ExtendedLocation: coreClient.CompositeMapper;
export declare const Identity: coreClient.CompositeMapper;
export declare const UserAssignedIdentity: coreClient.CompositeMapper;
export declare const SasPolicy: coreClient.CompositeMapper;
export declare const KeyPolicy: coreClient.CompositeMapper;
export declare const CustomDomain: coreClient.CompositeMapper;
export declare const Encryption: coreClient.CompositeMapper;
export declare const EncryptionServices: coreClient.CompositeMapper;
export declare const EncryptionService: coreClient.CompositeMapper;
export declare const KeyVaultProperties: coreClient.CompositeMapper;
export declare const EncryptionIdentity: coreClient.CompositeMapper;
export declare const NetworkRuleSet: coreClient.CompositeMapper;
export declare const ResourceAccessRule: coreClient.CompositeMapper;
export declare const VirtualNetworkRule: coreClient.CompositeMapper;
export declare const IPRule: coreClient.CompositeMapper;
export declare const AzureFilesIdentityBasedAuthentication: coreClient.CompositeMapper;
export declare const ActiveDirectoryProperties: coreClient.CompositeMapper;
export declare const RoutingPreference: coreClient.CompositeMapper;
export declare const ImmutableStorageAccount: coreClient.CompositeMapper;
export declare const AccountImmutabilityPolicyProperties: coreClient.CompositeMapper;
export declare const Endpoints: coreClient.CompositeMapper;
export declare const StorageAccountMicrosoftEndpoints: coreClient.CompositeMapper;
export declare const StorageAccountInternetEndpoints: coreClient.CompositeMapper;
export declare const KeyCreationTime: coreClient.CompositeMapper;
export declare const GeoReplicationStats: coreClient.CompositeMapper;
export declare const PrivateEndpoint: coreClient.CompositeMapper;
export declare const PrivateLinkServiceConnectionState: coreClient.CompositeMapper;
export declare const Resource: coreClient.CompositeMapper;
export declare const BlobRestoreStatus: coreClient.CompositeMapper;
export declare const BlobRestoreParameters: coreClient.CompositeMapper;
export declare const BlobRestoreRange: coreClient.CompositeMapper;
export declare const StorageAccountSkuConversionStatus: coreClient.CompositeMapper;
export declare const StorageAccountUpdateParameters: coreClient.CompositeMapper;
export declare const DeletedAccountListResult: coreClient.CompositeMapper;
export declare const ErrorResponse: coreClient.CompositeMapper;
export declare const ErrorResponseBody: coreClient.CompositeMapper;
export declare const StorageAccountListResult: coreClient.CompositeMapper;
export declare const StorageAccountListKeysResult: coreClient.CompositeMapper;
export declare const StorageAccountKey: coreClient.CompositeMapper;
export declare const StorageAccountRegenerateKeyParameters: coreClient.CompositeMapper;
export declare const UsageListResult: coreClient.CompositeMapper;
export declare const Usage: coreClient.CompositeMapper;
export declare const UsageName: coreClient.CompositeMapper;
export declare const AccountSasParameters: coreClient.CompositeMapper;
export declare const ListAccountSasResponse: coreClient.CompositeMapper;
export declare const ServiceSasParameters: coreClient.CompositeMapper;
export declare const ListServiceSasResponse: coreClient.CompositeMapper;
export declare const ManagementPolicySchema: coreClient.CompositeMapper;
export declare const ManagementPolicyRule: coreClient.CompositeMapper;
export declare const ManagementPolicyDefinition: coreClient.CompositeMapper;
export declare const ManagementPolicyAction: coreClient.CompositeMapper;
export declare const ManagementPolicyBaseBlob: coreClient.CompositeMapper;
export declare const DateAfterModification: coreClient.CompositeMapper;
export declare const ManagementPolicySnapShot: coreClient.CompositeMapper;
export declare const DateAfterCreation: coreClient.CompositeMapper;
export declare const ManagementPolicyVersion: coreClient.CompositeMapper;
export declare const ManagementPolicyFilter: coreClient.CompositeMapper;
export declare const TagFilter: coreClient.CompositeMapper;
export declare const BlobInventoryPolicySchema: coreClient.CompositeMapper;
export declare const BlobInventoryPolicyRule: coreClient.CompositeMapper;
export declare const BlobInventoryPolicyDefinition: coreClient.CompositeMapper;
export declare const BlobInventoryPolicyFilter: coreClient.CompositeMapper;
export declare const SystemData: coreClient.CompositeMapper;
export declare const CloudError: coreClient.CompositeMapper;
export declare const CloudErrorBody: coreClient.CompositeMapper;
export declare const ListBlobInventoryPolicy: coreClient.CompositeMapper;
export declare const PrivateEndpointConnectionListResult: coreClient.CompositeMapper;
export declare const PrivateLinkResourceListResult: coreClient.CompositeMapper;
export declare const ObjectReplicationPolicies: coreClient.CompositeMapper;
export declare const ObjectReplicationPolicyRule: coreClient.CompositeMapper;
export declare const ObjectReplicationPolicyFilter: coreClient.CompositeMapper;
export declare const LocalUsers: coreClient.CompositeMapper;
export declare const PermissionScope: coreClient.CompositeMapper;
export declare const SshPublicKey: coreClient.CompositeMapper;
export declare const LocalUserKeys: coreClient.CompositeMapper;
export declare const LocalUserRegeneratePasswordResult: coreClient.CompositeMapper;
export declare const EncryptionScopeKeyVaultProperties: coreClient.CompositeMapper;
export declare const EncryptionScopeListResult: coreClient.CompositeMapper;
export declare const BlobServiceItems: coreClient.CompositeMapper;
export declare const CorsRules: coreClient.CompositeMapper;
export declare const CorsRule: coreClient.CompositeMapper;
export declare const DeleteRetentionPolicy: coreClient.CompositeMapper;
export declare const ChangeFeed: coreClient.CompositeMapper;
export declare const RestorePolicyProperties: coreClient.CompositeMapper;
export declare const LastAccessTimeTrackingPolicy: coreClient.CompositeMapper;
export declare const ListContainerItems: coreClient.CompositeMapper;
export declare const ImmutabilityPolicyProperties: coreClient.CompositeMapper;
export declare const UpdateHistoryProperty: coreClient.CompositeMapper;
export declare const LegalHoldProperties: coreClient.CompositeMapper;
export declare const TagProperty: coreClient.CompositeMapper;
export declare const ProtectedAppendWritesHistory: coreClient.CompositeMapper;
export declare const ImmutableStorageWithVersioning: coreClient.CompositeMapper;
export declare const LegalHold: coreClient.CompositeMapper;
export declare const LeaseContainerRequest: coreClient.CompositeMapper;
export declare const LeaseContainerResponse: coreClient.CompositeMapper;
export declare const FileServiceItems: coreClient.CompositeMapper;
export declare const ProtocolSettings: coreClient.CompositeMapper;
export declare const SmbSetting: coreClient.CompositeMapper;
export declare const Multichannel: coreClient.CompositeMapper;
export declare const FileShareItems: coreClient.CompositeMapper;
export declare const SignedIdentifier: coreClient.CompositeMapper;
export declare const AccessPolicy: coreClient.CompositeMapper;
export declare const DeletedShare: coreClient.CompositeMapper;
export declare const LeaseShareRequest: coreClient.CompositeMapper;
export declare const LeaseShareResponse: coreClient.CompositeMapper;
export declare const ListQueueServices: coreClient.CompositeMapper;
export declare const ListQueueResource: coreClient.CompositeMapper;
export declare const ListTableServices: coreClient.CompositeMapper;
export declare const TableSignedIdentifier: coreClient.CompositeMapper;
export declare const TableAccessPolicy: coreClient.CompositeMapper;
export declare const ListTableResource: coreClient.CompositeMapper;
export declare const PrivateEndpointConnection: coreClient.CompositeMapper;
export declare const TrackedResource: coreClient.CompositeMapper;
export declare const ProxyResource: coreClient.CompositeMapper;
export declare const ManagementPolicy: coreClient.CompositeMapper;
export declare const BlobInventoryPolicy: coreClient.CompositeMapper;
export declare const PrivateLinkResource: coreClient.CompositeMapper;
export declare const ObjectReplicationPolicy: coreClient.CompositeMapper;
export declare const LocalUser: coreClient.CompositeMapper;
export declare const EncryptionScope: coreClient.CompositeMapper;
export declare const BlobServiceProperties: coreClient.CompositeMapper;
export declare const AzureEntityResource: coreClient.CompositeMapper;
export declare const FileServiceProperties: coreClient.CompositeMapper;
export declare const QueueServiceProperties: coreClient.CompositeMapper;
export declare const StorageQueue: coreClient.CompositeMapper;
export declare const ListQueue: coreClient.CompositeMapper;
export declare const TableServiceProperties: coreClient.CompositeMapper;
export declare const Table: coreClient.CompositeMapper;
export declare const StorageAccount: coreClient.CompositeMapper;
export declare const DeletedAccount: coreClient.CompositeMapper;
export declare const ListContainerItem: coreClient.CompositeMapper;
export declare const BlobContainer: coreClient.CompositeMapper;
export declare const ImmutabilityPolicy: coreClient.CompositeMapper;
export declare const FileShareItem: coreClient.CompositeMapper;
export declare const FileShare: coreClient.CompositeMapper;
export declare const BlobContainersCreateOrUpdateImmutabilityPolicyHeaders: coreClient.CompositeMapper;
export declare const BlobContainersGetImmutabilityPolicyHeaders: coreClient.CompositeMapper;
export declare const BlobContainersDeleteImmutabilityPolicyHeaders: coreClient.CompositeMapper;
export declare const BlobContainersLockImmutabilityPolicyHeaders: coreClient.CompositeMapper;
export declare const BlobContainersExtendImmutabilityPolicyHeaders: coreClient.CompositeMapper;
export declare const FileSharesLeaseHeaders: coreClient.CompositeMapper;
//# sourceMappingURL=mappers.d.ts.map
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+64
View File
@@ -0,0 +1,64 @@
import { OperationParameter, OperationURLParameter, OperationQueryParameter } from "@azure/core-client";
export declare const accept: OperationParameter;
export declare const $host: OperationURLParameter;
export declare const apiVersion: OperationQueryParameter;
export declare const subscriptionId: OperationURLParameter;
export declare const contentType: OperationParameter;
export declare const accountName: OperationParameter;
export declare const parameters: OperationParameter;
export declare const resourceGroupName: OperationURLParameter;
export declare const accountName1: OperationURLParameter;
export declare const expand: OperationQueryParameter;
export declare const parameters1: OperationParameter;
export declare const expand1: OperationQueryParameter;
export declare const regenerateKey: OperationParameter;
export declare const parameters2: OperationParameter;
export declare const parameters3: OperationParameter;
export declare const requestType: OperationQueryParameter;
export declare const parameters4: OperationParameter;
export declare const nextLink: OperationURLParameter;
export declare const deletedAccountName: OperationURLParameter;
export declare const location: OperationURLParameter;
export declare const managementPolicyName: OperationURLParameter;
export declare const properties: OperationParameter;
export declare const blobInventoryPolicyName: OperationURLParameter;
export declare const properties1: OperationParameter;
export declare const privateEndpointConnectionName: OperationURLParameter;
export declare const properties2: OperationParameter;
export declare const objectReplicationPolicyId: OperationURLParameter;
export declare const properties3: OperationParameter;
export declare const username: OperationURLParameter;
export declare const properties4: OperationParameter;
export declare const encryptionScope: OperationParameter;
export declare const encryptionScopeName: OperationURLParameter;
export declare const parameters5: OperationParameter;
export declare const blobServicesName: OperationURLParameter;
export declare const maxpagesize: OperationQueryParameter;
export declare const filter: OperationQueryParameter;
export declare const include: OperationQueryParameter;
export declare const blobContainer: OperationParameter;
export declare const containerName: OperationURLParameter;
export declare const legalHold: OperationParameter;
export declare const parameters6: OperationParameter;
export declare const immutabilityPolicyName: OperationURLParameter;
export declare const ifMatch: OperationParameter;
export declare const ifMatch1: OperationParameter;
export declare const parameters7: OperationParameter;
export declare const parameters8: OperationParameter;
export declare const fileServicesName: OperationURLParameter;
export declare const expand2: OperationQueryParameter;
export declare const fileShare: OperationParameter;
export declare const shareName: OperationURLParameter;
export declare const xMsSnapshot: OperationParameter;
export declare const include1: OperationQueryParameter;
export declare const deletedShare: OperationParameter;
export declare const parameters9: OperationParameter;
export declare const parameters10: OperationParameter;
export declare const queueServiceName: OperationURLParameter;
export declare const queue: OperationParameter;
export declare const queueName: OperationURLParameter;
export declare const parameters11: OperationParameter;
export declare const tableServiceName: OperationURLParameter;
export declare const parameters12: OperationParameter;
export declare const tableName: OperationURLParameter;
//# sourceMappingURL=parameters.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AA8B5B,eAAO,MAAM,MAAM,EAAE,kBAUpB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,qBAUnB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBAUxB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,qBAY5B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAUzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,kBAGxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,qBAa/B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,qBAa1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,uBASpB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,uBAUrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AAEF,eAAO,MAAM,W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pC,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,kBAQrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,kBAStB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,qBAU9B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,uBAQrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,kBAGvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,qBAavB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAQzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,uBAQtB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,kBAG1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,kBAG1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,qBAU9B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,qBAcvB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,kBAG1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,qBAU9B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,kBAG1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,qBAcvB,CAAC"}
+521
View File
@@ -0,0 +1,521 @@
/*
* 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 { StorageAccountCheckNameAvailabilityParameters as StorageAccountCheckNameAvailabilityParametersMapper, StorageAccountCreateParameters as StorageAccountCreateParametersMapper, StorageAccountUpdateParameters as StorageAccountUpdateParametersMapper, StorageAccountRegenerateKeyParameters as StorageAccountRegenerateKeyParametersMapper, AccountSasParameters as AccountSasParametersMapper, ServiceSasParameters as ServiceSasParametersMapper, BlobRestoreParameters as BlobRestoreParametersMapper, ManagementPolicy as ManagementPolicyMapper, BlobInventoryPolicy as BlobInventoryPolicyMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, ObjectReplicationPolicy as ObjectReplicationPolicyMapper, LocalUser as LocalUserMapper, EncryptionScope as EncryptionScopeMapper, BlobServiceProperties as BlobServicePropertiesMapper, BlobContainer as BlobContainerMapper, LegalHold as LegalHoldMapper, ImmutabilityPolicy as ImmutabilityPolicyMapper, LeaseContainerRequest as LeaseContainerRequestMapper, FileServiceProperties as FileServicePropertiesMapper, FileShare as FileShareMapper, DeletedShare as DeletedShareMapper, LeaseShareRequest as LeaseShareRequestMapper, QueueServiceProperties as QueueServicePropertiesMapper, StorageQueue as StorageQueueMapper, TableServiceProperties as TableServicePropertiesMapper, Table as TableMapper } from "../models/mappers";
export const accept = {
parameterPath: "accept",
mapper: {
defaultValue: "application/json",
isConstant: true,
serializedName: "Accept",
type: {
name: "String"
}
}
};
export const $host = {
parameterPath: "$host",
mapper: {
serializedName: "$host",
required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
export const apiVersion = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2021-09-01",
isConstant: true,
serializedName: "api-version",
type: {
name: "String"
}
}
};
export const subscriptionId = {
parameterPath: "subscriptionId",
mapper: {
constraints: {
MinLength: 1
},
serializedName: "subscriptionId",
required: true,
type: {
name: "String"
}
}
};
export const contentType = {
parameterPath: ["options", "contentType"],
mapper: {
defaultValue: "application/json",
isConstant: true,
serializedName: "Content-Type",
type: {
name: "String"
}
}
};
export const accountName = {
parameterPath: "accountName",
mapper: StorageAccountCheckNameAvailabilityParametersMapper
};
export const parameters = {
parameterPath: "parameters",
mapper: StorageAccountCreateParametersMapper
};
export const resourceGroupName = {
parameterPath: "resourceGroupName",
mapper: {
constraints: {
MaxLength: 90,
MinLength: 1
},
serializedName: "resourceGroupName",
required: true,
type: {
name: "String"
}
}
};
export const accountName1 = {
parameterPath: "accountName",
mapper: {
constraints: {
MaxLength: 24,
MinLength: 3
},
serializedName: "accountName",
required: true,
type: {
name: "String"
}
}
};
export const expand = {
parameterPath: ["options", "expand"],
mapper: {
serializedName: "$expand",
type: {
name: "Enum",
allowedValues: ["geoReplicationStats", "blobRestoreStatus"]
}
}
};
export const parameters1 = {
parameterPath: "parameters",
mapper: StorageAccountUpdateParametersMapper
};
export const expand1 = {
parameterPath: ["options", "expand"],
mapper: {
defaultValue: "kerb",
isConstant: true,
serializedName: "$expand",
type: {
name: "String"
}
}
};
export const regenerateKey = {
parameterPath: "regenerateKey",
mapper: StorageAccountRegenerateKeyParametersMapper
};
export const parameters2 = {
parameterPath: "parameters",
mapper: AccountSasParametersMapper
};
export const parameters3 = {
parameterPath: "parameters",
mapper: ServiceSasParametersMapper
};
export const requestType = {
parameterPath: "requestType",
mapper: {
serializedName: "requestType",
required: true,
type: {
name: "String"
}
}
};
export const parameters4 = {
parameterPath: "parameters",
mapper: BlobRestoreParametersMapper
};
export const nextLink = {
parameterPath: "nextLink",
mapper: {
serializedName: "nextLink",
required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
export const deletedAccountName = {
parameterPath: "deletedAccountName",
mapper: {
constraints: {
MaxLength: 24,
MinLength: 3
},
serializedName: "deletedAccountName",
required: true,
type: {
name: "String"
}
}
};
export const location = {
parameterPath: "location",
mapper: {
serializedName: "location",
required: true,
type: {
name: "String"
}
}
};
export const managementPolicyName = {
parameterPath: "managementPolicyName",
mapper: {
serializedName: "managementPolicyName",
required: true,
type: {
name: "String"
}
}
};
export const properties = {
parameterPath: "properties",
mapper: ManagementPolicyMapper
};
export const blobInventoryPolicyName = {
parameterPath: "blobInventoryPolicyName",
mapper: {
serializedName: "blobInventoryPolicyName",
required: true,
type: {
name: "String"
}
}
};
export const properties1 = {
parameterPath: "properties",
mapper: BlobInventoryPolicyMapper
};
export const privateEndpointConnectionName = {
parameterPath: "privateEndpointConnectionName",
mapper: {
serializedName: "privateEndpointConnectionName",
required: true,
type: {
name: "String"
}
}
};
export const properties2 = {
parameterPath: "properties",
mapper: PrivateEndpointConnectionMapper
};
export const objectReplicationPolicyId = {
parameterPath: "objectReplicationPolicyId",
mapper: {
constraints: {
MinLength: 1
},
serializedName: "objectReplicationPolicyId",
required: true,
type: {
name: "String"
}
}
};
export const properties3 = {
parameterPath: "properties",
mapper: ObjectReplicationPolicyMapper
};
export const username = {
parameterPath: "username",
mapper: {
constraints: {
MaxLength: 64,
MinLength: 3
},
serializedName: "username",
required: true,
type: {
name: "String"
}
}
};
export const properties4 = {
parameterPath: "properties",
mapper: LocalUserMapper
};
export const encryptionScope = {
parameterPath: "encryptionScope",
mapper: EncryptionScopeMapper
};
export const encryptionScopeName = {
parameterPath: "encryptionScopeName",
mapper: {
constraints: {
MaxLength: 63,
MinLength: 3
},
serializedName: "encryptionScopeName",
required: true,
type: {
name: "String"
}
}
};
export const parameters5 = {
parameterPath: "parameters",
mapper: BlobServicePropertiesMapper
};
export const blobServicesName = {
parameterPath: "blobServicesName",
mapper: {
defaultValue: "default",
isConstant: true,
serializedName: "BlobServicesName",
type: {
name: "String"
}
}
};
export const maxpagesize = {
parameterPath: ["options", "maxpagesize"],
mapper: {
serializedName: "$maxpagesize",
type: {
name: "String"
}
}
};
export const filter = {
parameterPath: ["options", "filter"],
mapper: {
serializedName: "$filter",
type: {
name: "String"
}
}
};
export const include = {
parameterPath: ["options", "include"],
mapper: {
serializedName: "$include",
type: {
name: "String"
}
}
};
export const blobContainer = {
parameterPath: "blobContainer",
mapper: BlobContainerMapper
};
export const containerName = {
parameterPath: "containerName",
mapper: {
constraints: {
MaxLength: 63,
MinLength: 3
},
serializedName: "containerName",
required: true,
type: {
name: "String"
}
}
};
export const legalHold = {
parameterPath: "legalHold",
mapper: LegalHoldMapper
};
export const parameters6 = {
parameterPath: ["options", "parameters"],
mapper: ImmutabilityPolicyMapper
};
export const immutabilityPolicyName = {
parameterPath: "immutabilityPolicyName",
mapper: {
defaultValue: "default",
isConstant: true,
serializedName: "immutabilityPolicyName",
type: {
name: "String"
}
}
};
export const ifMatch = {
parameterPath: ["options", "ifMatch"],
mapper: {
serializedName: "If-Match",
type: {
name: "String"
}
}
};
export const ifMatch1 = {
parameterPath: "ifMatch",
mapper: {
serializedName: "If-Match",
required: true,
type: {
name: "String"
}
}
};
export const parameters7 = {
parameterPath: ["options", "parameters"],
mapper: LeaseContainerRequestMapper
};
export const parameters8 = {
parameterPath: "parameters",
mapper: FileServicePropertiesMapper
};
export const fileServicesName = {
parameterPath: "fileServicesName",
mapper: {
defaultValue: "default",
isConstant: true,
serializedName: "FileServicesName",
type: {
name: "String"
}
}
};
export const expand2 = {
parameterPath: ["options", "expand"],
mapper: {
serializedName: "$expand",
type: {
name: "String"
}
}
};
export const fileShare = {
parameterPath: "fileShare",
mapper: FileShareMapper
};
export const shareName = {
parameterPath: "shareName",
mapper: {
constraints: {
MaxLength: 63,
MinLength: 3
},
serializedName: "shareName",
required: true,
type: {
name: "String"
}
}
};
export const xMsSnapshot = {
parameterPath: ["options", "xMsSnapshot"],
mapper: {
serializedName: "x-ms-snapshot",
type: {
name: "String"
}
}
};
export const include1 = {
parameterPath: ["options", "include"],
mapper: {
serializedName: "$include",
type: {
name: "String"
}
}
};
export const deletedShare = {
parameterPath: "deletedShare",
mapper: DeletedShareMapper
};
export const parameters9 = {
parameterPath: ["options", "parameters"],
mapper: LeaseShareRequestMapper
};
export const parameters10 = {
parameterPath: "parameters",
mapper: QueueServicePropertiesMapper
};
export const queueServiceName = {
parameterPath: "queueServiceName",
mapper: {
defaultValue: "default",
isConstant: true,
serializedName: "queueServiceName",
type: {
name: "String"
}
}
};
export const queue = {
parameterPath: "queue",
mapper: StorageQueueMapper
};
export const queueName = {
parameterPath: "queueName",
mapper: {
constraints: {
Pattern: new RegExp("^[a-z0-9]([a-z0-9]|(-(?!-))){1,61}[a-z0-9]$"),
MaxLength: 63,
MinLength: 3
},
serializedName: "queueName",
required: true,
type: {
name: "String"
}
}
};
export const parameters11 = {
parameterPath: "parameters",
mapper: TableServicePropertiesMapper
};
export const tableServiceName = {
parameterPath: "tableServiceName",
mapper: {
defaultValue: "default",
isConstant: true,
serializedName: "tableServiceName",
type: {
name: "String"
}
}
};
export const parameters12 = {
parameterPath: ["options", "parameters"],
mapper: TableMapper
};
export const tableName = {
parameterPath: "tableName",
mapper: {
constraints: {
Pattern: new RegExp("^[A-Za-z][A-Za-z0-9]{2,62}$"),
MaxLength: 63,
MinLength: 3
},
serializedName: "tableName",
required: true,
type: {
name: "String"
}
}
};
//# sourceMappingURL=parameters.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,278 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { BlobContainers } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
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";
/** Class containing BlobContainers operations. */
export declare class BlobContainersImpl implements BlobContainers {
private readonly client;
/**
* Initialize a new instance of the class BlobContainers class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
private listPagingPage;
private listPagingAll;
/**
* 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.
*/
private _list;
/**
* 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>;
/**
* ListNext
* @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 nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
}
//# sourceMappingURL=blobContainers.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"blobContainers.d.ts","sourceRoot":"","sources":["../../../src/operations/blobContainers.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,iBAAiB,EAEjB,gCAAgC,EAEhC,aAAa,EACb,kCAAkC,EAClC,4BAA4B,EAC5B,kCAAkC,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;;;;;;;;OAgBG;IACH,sBAAsB,CACpB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,kDAAkD,GAC3D,OAAO,CAAC,4CAA4C,CAAC;IAOxD;;;;;;;;;;;;;;;;OAgBG;IACH,wBAAwB,CACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,oDAAoD,GAC7D,OAAO,CAAC,8CAA8C,CAAC;IAO1D;;;;;;;;;;;;;OAaG;IACH,KAAK,CACH,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;IAOvC;;;;;;;;;;;;;;;OAeG;IACG,oBAAoB,CACxB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAsDtD;;;;;;;;;;;;;;;OAeG;IACG,2BAA2B,CAC/B,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,IAAI,CAAC;IAUhB;;;;;;;;;OASG;IACH,OAAO,CAAC,SAAS;CAWlB"}
@@ -0,0 +1,723 @@
/*
* 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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { LroEngine } from "@azure/core-lro";
import { LroImpl } from "../lroImpl";
/// <reference lib="esnext.asynciterable" />
/** Class containing BlobContainers operations. */
export class BlobContainersImpl {
/**
* Initialize a new instance of the class BlobContainers class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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, accountName, options) {
const iter = this.listPagingAll(resourceGroupName, accountName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(resourceGroupName, accountName, options);
}
};
}
listPagingPage(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(resourceGroupName, accountName, options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listNext(resourceGroupName, accountName, continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listPagingAll(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
}
/**
* 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, accountName, containerName, blobContainer, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, blobContainer, options }, createOperationSpec);
}
/**
* 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, accountName, containerName, blobContainer, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, blobContainer, options }, updateOperationSpec);
}
/**
* 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, accountName, containerName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, options }, getOperationSpec);
}
/**
* 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, accountName, containerName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, options }, deleteOperationSpec);
}
/**
* 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, accountName, containerName, legalHold, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, legalHold, options }, setLegalHoldOperationSpec);
}
/**
* 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, accountName, containerName, legalHold, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, legalHold, options }, clearLegalHoldOperationSpec);
}
/**
* 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, accountName, containerName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, options }, createOrUpdateImmutabilityPolicyOperationSpec);
}
/**
* 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, accountName, containerName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, options }, getImmutabilityPolicyOperationSpec);
}
/**
* 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, accountName, containerName, ifMatch, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, ifMatch, options }, deleteImmutabilityPolicyOperationSpec);
}
/**
* 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, accountName, containerName, ifMatch, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, ifMatch, options }, lockImmutabilityPolicyOperationSpec);
}
/**
* 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, accountName, containerName, ifMatch, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, ifMatch, options }, extendImmutabilityPolicyOperationSpec);
}
/**
* 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, accountName, containerName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, containerName, options }, leaseOperationSpec);
}
/**
* 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, accountName, containerName, options) {
return __awaiter(this, void 0, void 0, function* () {
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
return this.client.sendOperationRequest(args, spec);
});
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
var _a;
let currentRawResponse = undefined;
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
const callback = (rawResponse, flatResponse) => {
currentRawResponse = rawResponse;
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
};
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
const flatResponse = yield directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse.status,
body: currentRawResponse.parsedBody,
headers: currentRawResponse.headers.toJSON()
}
};
});
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, containerName, options }, objectLevelWormOperationSpec);
const poller = new LroEngine(lro, {
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
lroResourceLocationConfig: "location"
});
yield poller.poll();
return poller;
});
}
/**
* 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, accountName, containerName, options) {
return __awaiter(this, void 0, void 0, function* () {
const poller = yield this.beginObjectLevelWorm(resourceGroupName, accountName, containerName, options);
return poller.pollUntilDone();
});
}
/**
* ListNext
* @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 nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(resourceGroupName, accountName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ListContainerItems
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.maxpagesize,
Parameters.filter,
Parameters.include
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const createOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.BlobContainer
},
201: {
bodyMapper: Mappers.BlobContainer
}
},
requestBody: Parameters.blobContainer,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.containerName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const updateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.BlobContainer
}
},
requestBody: Parameters.blobContainer,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.containerName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.BlobContainer
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.containerName
],
headerParameters: [Parameters.accept],
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}",
httpMethod: "DELETE",
responses: { 200: {}, 204: {} },
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.containerName
],
serializer
};
const setLegalHoldOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.LegalHold
}
},
requestBody: Parameters.legalHold,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.containerName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const clearLegalHoldOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.LegalHold
}
},
requestBody: Parameters.legalHold,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.containerName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const createOrUpdateImmutabilityPolicyOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.ImmutabilityPolicy,
headersMapper: Mappers.BlobContainersCreateOrUpdateImmutabilityPolicyHeaders
}
},
requestBody: Parameters.parameters6,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.containerName,
Parameters.immutabilityPolicyName
],
headerParameters: [
Parameters.accept,
Parameters.contentType,
Parameters.ifMatch
],
mediaType: "json",
serializer
};
const getImmutabilityPolicyOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ImmutabilityPolicy,
headersMapper: Mappers.BlobContainersGetImmutabilityPolicyHeaders
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.containerName,
Parameters.immutabilityPolicyName
],
headerParameters: [Parameters.accept, Parameters.ifMatch],
serializer
};
const deleteImmutabilityPolicyOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}",
httpMethod: "DELETE",
responses: {
200: {
bodyMapper: Mappers.ImmutabilityPolicy,
headersMapper: Mappers.BlobContainersDeleteImmutabilityPolicyHeaders
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.containerName,
Parameters.immutabilityPolicyName
],
headerParameters: [Parameters.accept, Parameters.ifMatch1],
serializer
};
const lockImmutabilityPolicyOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.ImmutabilityPolicy,
headersMapper: Mappers.BlobContainersLockImmutabilityPolicyHeaders
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.containerName
],
headerParameters: [Parameters.accept, Parameters.ifMatch1],
serializer
};
const extendImmutabilityPolicyOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.ImmutabilityPolicy,
headersMapper: Mappers.BlobContainersExtendImmutabilityPolicyHeaders
}
},
requestBody: Parameters.parameters6,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.containerName
],
headerParameters: [
Parameters.accept,
Parameters.contentType,
Parameters.ifMatch1
],
mediaType: "json",
serializer
};
const leaseOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.LeaseContainerResponse
}
},
requestBody: Parameters.parameters7,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.containerName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const objectLevelWormOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/migrate",
httpMethod: "POST",
responses: {
200: {},
201: {},
202: {},
204: {},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.containerName
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ListContainerItems
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.maxpagesize,
Parameters.filter,
Parameters.include
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=blobContainers.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,73 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { BlobInventoryPolicies } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { BlobInventoryPolicy, BlobInventoryPoliciesListOptionalParams, BlobInventoryPolicyName, BlobInventoryPoliciesGetOptionalParams, BlobInventoryPoliciesGetResponse, BlobInventoryPoliciesCreateOrUpdateOptionalParams, BlobInventoryPoliciesCreateOrUpdateResponse, BlobInventoryPoliciesDeleteOptionalParams } from "../models";
/** Class containing BlobInventoryPolicies operations. */
export declare class BlobInventoryPoliciesImpl implements BlobInventoryPolicies {
private readonly client;
/**
* Initialize a new instance of the class BlobInventoryPolicies class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
private listPagingPage;
private listPagingAll;
/**
* 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>;
/**
* 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.
*/
private _list;
}
//# sourceMappingURL=blobInventoryPolicies.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"blobInventoryPolicies.d.ts","sourceRoot":"","sources":["../../../src/operations/blobInventoryPolicies.ts"],"names":[],"mappings":"AAQA,OAAO,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-0,0 +1,221 @@
/*
* 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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing BlobInventoryPolicies operations. */
export class BlobInventoryPoliciesImpl {
/**
* Initialize a new instance of the class BlobInventoryPolicies class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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, accountName, options) {
const iter = this.listPagingAll(resourceGroupName, accountName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(resourceGroupName, accountName, options);
}
};
}
listPagingPage(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(resourceGroupName, accountName, options));
yield yield __await(result.value || []);
});
}
listPagingAll(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* 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, accountName, blobInventoryPolicyName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, blobInventoryPolicyName, options }, getOperationSpec);
}
/**
* 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, accountName, blobInventoryPolicyName, properties, options) {
return this.client.sendOperationRequest({
resourceGroupName,
accountName,
blobInventoryPolicyName,
properties,
options
}, createOrUpdateOperationSpec);
}
/**
* 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, accountName, blobInventoryPolicyName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, blobInventoryPolicyName, options }, deleteOperationSpec);
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.BlobInventoryPolicy
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.blobInventoryPolicyName
],
headerParameters: [Parameters.accept],
serializer
};
const createOrUpdateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.BlobInventoryPolicy
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.properties1,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.blobInventoryPolicyName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}",
httpMethod: "DELETE",
responses: {
200: {},
204: {},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.blobInventoryPolicyName
],
headerParameters: [Parameters.accept],
serializer
};
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ListBlobInventoryPolicy
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=blobInventoryPolicies.js.map
@@ -0,0 +1 @@
{"version":3,"file":"blobInventoryPolicies.js","sourceRoot":"","sources":["../../../src/operations/blobInventoryPolicies.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAcnD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAiD;QAEjD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;YACtE,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,WAAmB,EACnB,OAAiD;;YAEjD,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAA,CAAC;YACvE,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;QAC3B,CAAC;KAAA;IAEc,aAAa,CAC1B,iBAAyB,EACzB,WAAm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SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,gJAAgJ;IAClJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,60 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { BlobServices } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { BlobServiceProperties, BlobServicesListOptionalParams, BlobServicesSetServicePropertiesOptionalParams, BlobServicesSetServicePropertiesResponse, BlobServicesGetServicePropertiesOptionalParams, BlobServicesGetServicePropertiesResponse } from "../models";
/** Class containing BlobServices operations. */
export declare class BlobServicesImpl implements BlobServices {
private readonly client;
/**
* Initialize a new instance of the class BlobServices class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
private listPagingPage;
private listPagingAll;
/**
* 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.
*/
private _list;
/**
* 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>;
}
//# sourceMappingURL=blobServices.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"blobServices.d.ts","sourceRoot":"","sources":["../../../src/operations/blobServices.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,qBAAqB,EACrB,8BAA8B,EAE9B,8CAA8C,EAC9C,wCAAwC,EACxC,8CAA8C,EAC9C,wCAAwC,EACzC,MAAM,WAAW,CAAC;AAGnB,gDAAgD;AAChD,qBAAa,gBAAiB,YAAW,YAAY;IACnD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,8BAA8B,GACvC,0BAA0B,CAAC,qBAAqB,CAAC;YAerC,cAAc;YASd,aAAa;IAc5B;;;;;;;;OAQG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;;;;;;OAWG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,qBAAqB,EACjC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;IAOpD;;;;;;;;;OASG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;CAMrD"}
+170
View File
@@ -0,0 +1,170 @@
/*
* 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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing BlobServices operations. */
export class BlobServicesImpl {
/**
* Initialize a new instance of the class BlobServices class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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, accountName, options) {
const iter = this.listPagingAll(resourceGroupName, accountName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(resourceGroupName, accountName, options);
}
};
}
listPagingPage(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(resourceGroupName, accountName, options));
yield yield __await(result.value || []);
});
}
listPagingAll(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
}
/**
* 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, accountName, parameters, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, setServicePropertiesOperationSpec);
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getServicePropertiesOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.BlobServiceItems
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const setServicePropertiesOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.BlobServiceProperties
}
},
requestBody: Parameters.parameters5,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.blobServicesName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const getServicePropertiesOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/{BlobServicesName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.BlobServiceProperties
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.blobServicesName
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=blobServices.js.map
@@ -0,0 +1 @@
{"version":3,"file":"blobServices.js","sourceRoot":"","sources":["../../../src/operations/blobServices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAwC;QAExC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;YACtE,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,WAAmB,EACnB,OAAwC;;YAExC,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,WAAW,EAAE,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UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,39 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { DeletedAccounts } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { DeletedAccount, DeletedAccountsListOptionalParams, DeletedAccountsGetOptionalParams, DeletedAccountsGetResponse } from "../models";
/** Class containing DeletedAccounts operations. */
export declare class DeletedAccountsImpl implements DeletedAccounts {
private readonly client;
/**
* Initialize a new instance of the class DeletedAccounts class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* Lists deleted accounts under the subscription.
* @param options The options parameters.
*/
list(options?: DeletedAccountsListOptionalParams): PagedAsyncIterableIterator<DeletedAccount>;
private listPagingPage;
private listPagingAll;
/**
* Lists deleted accounts under the subscription.
* @param options The options parameters.
*/
private _list;
/**
* 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>;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
}
//# sourceMappingURL=deletedAccounts.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"deletedAccounts.d.ts","sourceRoot":"","sources":["../../../src/operations/deletedAccounts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,cAAc,EAEd,iCAAiC,EAEjC,gCAAgC,EAChC,0BAA0B,EAE3B,MAAM,WAAW,CAAC;AAGnB,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,cAAc,CAAC;YAe9B,cAAc;YAad,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;;OAKG;IACH,GAAG,CACD,kBAAkB,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAOtC;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,154 @@
/*
* 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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing DeletedAccounts operations. */
export class DeletedAccountsImpl {
/**
* Initialize a new instance of the class DeletedAccounts class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Lists deleted accounts under the subscription.
* @param options The options parameters.
*/
list(options) {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(options);
}
};
}
listPagingPage(options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listNext(continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listPagingAll(options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Lists deleted accounts under the subscription.
* @param options The options parameters.
*/
_list(options) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
/**
* 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, location, options) {
return this.client.sendOperationRequest({ deletedAccountName, location, options }, getOperationSpec);
}
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/deletedAccounts",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeletedAccountListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/deletedAccounts/{deletedAccountName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeletedAccount
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.deletedAccountName,
Parameters.location
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.DeletedAccountListResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=deletedAccounts.js.map
@@ -0,0 +1 @@
{"version":3,"file":"deletedAccounts.js","sourceRoot":"","sources":["../../../src/operations/deletedAccounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAA2C;;YAE3C,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;YACvC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACxC,OAAO,iBAAiB,EAAE;gBACxB,MAAM,GAAG,cAAM,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA,CAAC;gBAC1D,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;gBACpC,oBAAM,MAAM,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AAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,uHAAuH;IACzH,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,94 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { EncryptionScopes } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { EncryptionScope, EncryptionScopesListOptionalParams, EncryptionScopesPutOptionalParams, EncryptionScopesPutResponse, EncryptionScopesPatchOptionalParams, EncryptionScopesPatchResponse, EncryptionScopesGetOptionalParams, EncryptionScopesGetResponse } from "../models";
/** Class containing EncryptionScopes operations. */
export declare class EncryptionScopesImpl implements EncryptionScopes {
private readonly client;
/**
* Initialize a new instance of the class EncryptionScopes class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
private listPagingPage;
private listPagingAll;
/**
* 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>;
/**
* 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.
*/
private _list;
/**
* ListNext
* @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 nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
}
//# sourceMappingURL=encryptionScopes.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"encryptionScopes.d.ts","sourceRoot":"","sources":["../../../src/operations/encryptionScopes.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,eAAe,EAEf,kCAAkC,EAClC,iCAAiC,EACjC,2BAA2B,EAC3B,mCAAmC,EACnC,6BAA6B,EAC7B,iCAAiC,EACjC,2BAA2B,EAG5B,MAAM,WAAW,CAAC;AAGnB,oDAAoD;AACpD,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,0BAA0B,CAAC,eAAe,CAAC;YAe/B,cAAc;YAoBd,aAAa;IAc5B;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,mBAAmB,EAAE,MAAM,EAC3B,eAAe,EAAE,eAAe,EAChC,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;IAavC;;;;;;;;;;;;;;OAcG;IACH,KAAK,CACH,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,mBAAmB,EAAE,MAAM,EAC3B,eAAe,EAAE,eAAe,EAChC,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC;IAazC;;;;;;;;;;;;OAYG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;IAOvC;;;;;;;;OAQG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;;;;OASG;IACH,OAAO,CAAC,SAAS;CAWlB"}
@@ -0,0 +1,278 @@
/*
* 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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing EncryptionScopes operations. */
export class EncryptionScopesImpl {
/**
* Initialize a new instance of the class EncryptionScopes class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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, accountName, options) {
const iter = this.listPagingAll(resourceGroupName, accountName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(resourceGroupName, accountName, options);
}
};
}
listPagingPage(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(resourceGroupName, accountName, options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listNext(resourceGroupName, accountName, continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listPagingAll(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* 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, accountName, encryptionScopeName, encryptionScope, options) {
return this.client.sendOperationRequest({
resourceGroupName,
accountName,
encryptionScopeName,
encryptionScope,
options
}, putOperationSpec);
}
/**
* 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, accountName, encryptionScopeName, encryptionScope, options) {
return this.client.sendOperationRequest({
resourceGroupName,
accountName,
encryptionScopeName,
encryptionScope,
options
}, patchOperationSpec);
}
/**
* 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, accountName, encryptionScopeName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, encryptionScopeName, options }, getOperationSpec);
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
}
/**
* ListNext
* @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 nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(resourceGroupName, accountName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const putOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.EncryptionScope
},
201: {
bodyMapper: Mappers.EncryptionScope
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
requestBody: Parameters.encryptionScope,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.encryptionScopeName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const patchOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}",
httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.EncryptionScope
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
requestBody: Parameters.encryptionScope,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.encryptionScopeName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.EncryptionScope
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.encryptionScopeName
],
headerParameters: [Parameters.accept],
serializer
};
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.EncryptionScopeListResult
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.EncryptionScopeListResult
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=encryptionScopes.js.map
@@ -0,0 +1 @@
{"version":3,"file":"encryptionScopes.js","sourceRoot":"","sources":["../../../src/operations/encryptionScopes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAgBnD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,M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Aa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,47 @@
import { FileServices } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { FileServicesListOptionalParams, FileServicesListResponse, FileServiceProperties, FileServicesSetServicePropertiesOptionalParams, FileServicesSetServicePropertiesResponse, FileServicesGetServicePropertiesOptionalParams, FileServicesGetServicePropertiesResponse } from "../models";
/** Class containing FileServices operations. */
export declare class FileServicesImpl implements FileServices {
private readonly client;
/**
* Initialize a new instance of the class FileServices class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
}
//# sourceMappingURL=fileServices.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"fileServices.d.ts","sourceRoot":"","sources":["../../../src/operations/fileServices.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,qBAAqB,EACrB,8CAA8C,EAC9C,wCAAwC,EACxC,8CAA8C,EAC9C,wCAAwC,EACzC,MAAM,WAAW,CAAC;AAEnB,gDAAgD;AAChD,qBAAa,gBAAiB,YAAW,YAAY;IACnD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;;;;OAQG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC;IAOpC;;;;;;;;;;;OAWG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,qBAAqB,EACjC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;IAOpD;;;;;;;;;OASG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;CAMrD"}
+130
View File
@@ -0,0 +1,130 @@
/*
* 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 * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/** Class containing FileServices operations. */
export class FileServicesImpl {
/**
* Initialize a new instance of the class FileServices class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
}
/**
* 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, accountName, parameters, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, setServicePropertiesOperationSpec);
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getServicePropertiesOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.FileServiceItems
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const setServicePropertiesOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.FileServiceProperties
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.parameters8,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.fileServicesName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const getServicePropertiesOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.FileServiceProperties
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.fileServicesName
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=fileServices.js.map
@@ -0,0 +1 @@
{"version":3,"file":"fileServices.js","sourceRoot":"","sources":["../../../src/operations/fileServices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;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M,iCAAiC,GAA6B;IAClE,IAAI,EACF,8JAA8J;IAChK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EACF,8JAA8J;IAChK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
+132
View File
@@ -0,0 +1,132 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { FileShares } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { FileShareItem, FileSharesListOptionalParams, FileShare, FileSharesCreateOptionalParams, FileSharesCreateResponse, FileSharesUpdateOptionalParams, FileSharesUpdateResponse, FileSharesGetOptionalParams, FileSharesGetResponse, FileSharesDeleteOptionalParams, DeletedShare, FileSharesRestoreOptionalParams, FileSharesLeaseOptionalParams, FileSharesLeaseResponse } from "../models";
/** Class containing FileShares operations. */
export declare class FileSharesImpl implements FileShares {
private readonly client;
/**
* Initialize a new instance of the class FileShares class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
private listPagingPage;
private listPagingAll;
/**
* 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.
*/
private _list;
/**
* 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>;
/**
* ListNext
* @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 nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
}
//# sourceMappingURL=fileShares.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"fileShares.d.ts","sourceRoot":"","sources":["../../../src/operations/fileShares.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,aAAa,EAEb,4BAA4B,EAE5B,SAAS,EACT,8BAA8B,EAC9B,wBAAwB,EACxB,8BAA8B,EAC9B,wBAAwB,EACxB,2BAA2B,EAC3B,qBAAqB,EACrB,8BAA8B,EAC9B,YAAY,EACZ,+BAA+B,EAC/B,6BAA6B,EAC7B,uBAAuB,EAExB,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS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iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC;IAOnC;;;;;;;;;OASG;IACH,OAAO,CAAC,SAAS;CAWlB"}
+398
View File
@@ -0,0 +1,398 @@
/*
* 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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing FileShares operations. */
export class FileSharesImpl {
/**
* Initialize a new instance of the class FileShares class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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, accountName, options) {
const iter = this.listPagingAll(resourceGroupName, accountName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(resourceGroupName, accountName, options);
}
};
}
listPagingPage(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(resourceGroupName, accountName, options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listNext(resourceGroupName, accountName, continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listPagingAll(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
}
/**
* 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, accountName, shareName, fileShare, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, shareName, fileShare, options }, createOperationSpec);
}
/**
* 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, accountName, shareName, fileShare, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, shareName, fileShare, options }, updateOperationSpec);
}
/**
* 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, accountName, shareName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, shareName, options }, getOperationSpec);
}
/**
* 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, accountName, shareName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, shareName, options }, deleteOperationSpec);
}
/**
* 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, accountName, shareName, deletedShare, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, shareName, deletedShare, options }, restoreOperationSpec);
}
/**
* 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, accountName, shareName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, shareName, options }, leaseOperationSpec);
}
/**
* ListNext
* @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 nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(resourceGroupName, accountName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.FileShareItems
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.maxpagesize,
Parameters.filter,
Parameters.expand2
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const createOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.FileShare
},
201: {
bodyMapper: Mappers.FileShare
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.fileShare,
queryParameters: [Parameters.apiVersion, Parameters.expand2],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.shareName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const updateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.FileShare
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.fileShare,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.shareName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.FileShare
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.expand2],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.shareName
],
headerParameters: [Parameters.accept, Parameters.xMsSnapshot],
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}",
httpMethod: "DELETE",
responses: {
200: {},
204: {},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion, Parameters.include1],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.shareName
],
headerParameters: [Parameters.accept, Parameters.xMsSnapshot],
serializer
};
const restoreOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/restore",
httpMethod: "POST",
responses: {
200: {},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.deletedShare,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.shareName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const leaseOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/lease",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.LeaseShareResponse,
headersMapper: Mappers.FileSharesLeaseHeaders
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.parameters9,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.shareName
],
headerParameters: [
Parameters.accept,
Parameters.contentType,
Parameters.xMsSnapshot
],
mediaType: "json",
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.FileShareItems
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.maxpagesize,
Parameters.filter,
Parameters.expand2
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=fileShares.js.map
File diff suppressed because one or more lines are too long
+21
View File
@@ -0,0 +1,21 @@
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";
//# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
+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";
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,97 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { LocalUsersOperations } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { LocalUser, LocalUsersListOptionalParams, LocalUsersGetOptionalParams, LocalUsersGetResponse, LocalUsersCreateOrUpdateOptionalParams, LocalUsersCreateOrUpdateResponse, LocalUsersDeleteOptionalParams, LocalUsersListKeysOptionalParams, LocalUsersListKeysResponse, LocalUsersRegeneratePasswordOptionalParams, LocalUsersRegeneratePasswordResponse } from "../models";
/** Class containing LocalUsersOperations operations. */
export declare class LocalUsersOperationsImpl implements LocalUsersOperations {
private readonly client;
/**
* Initialize a new instance of the class LocalUsersOperations class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
private listPagingPage;
private listPagingAll;
/**
* 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.
*/
private _list;
/**
* 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>;
}
//# sourceMappingURL=localUsersOperations.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"localUsersOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/localUsersOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,SAAS,EACT,4BAA4B,EAE5B,2BAA2B,EAC3B,qBAAqB,EACrB,sCAAsC,EACtC,gCAAgC,EAChC,8BAA8B,EAC9B,gCAAgC,EAChC,0BAA0B,EAC1B,0CAA0C,EAC1C,oCAAoC,EACrC,MAAM,WAAW,CAAC;AAGnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YASd,aAAa;IAc5B;;;;;;;;OAQG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;;;;;OAUG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,qBAAqB,CAAC;IAOjC;;;;;;;;;;;OAWG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,SAAS,EACrB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;;;;;OAUG;IACH,QAAQ,CACN,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAOtC;;;;;;;;;;OAUG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,oCAAoC,CAAC;CAMjD"}
@@ -0,0 +1,287 @@
/*
* 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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing LocalUsersOperations operations. */
export class LocalUsersOperationsImpl {
/**
* Initialize a new instance of the class LocalUsersOperations class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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, accountName, options) {
const iter = this.listPagingAll(resourceGroupName, accountName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(resourceGroupName, accountName, options);
}
};
}
listPagingPage(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(resourceGroupName, accountName, options));
yield yield __await(result.value || []);
});
}
listPagingAll(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
}
/**
* 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, accountName, username, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, username, options }, getOperationSpec);
}
/**
* 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, accountName, username, properties, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, username, properties, options }, createOrUpdateOperationSpec);
}
/**
* 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, accountName, username, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, username, options }, deleteOperationSpec);
}
/**
* 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, accountName, username, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, username, options }, listKeysOperationSpec);
}
/**
* 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, accountName, username, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, username, options }, regeneratePasswordOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.LocalUsers
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.LocalUser
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.username
],
headerParameters: [Parameters.accept],
serializer
};
const createOrUpdateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.LocalUser
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
requestBody: Parameters.properties4,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.username
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}",
httpMethod: "DELETE",
responses: {
200: {},
204: {},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.username
],
headerParameters: [Parameters.accept],
serializer
};
const listKeysOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}/listKeys",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.LocalUserKeys
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.username
],
headerParameters: [Parameters.accept],
serializer
};
const regeneratePasswordOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/localUsers/{username}/regeneratePassword",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.LocalUserRegeneratePasswordResult
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.username
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=localUsersOperations.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,50 @@
import { ManagementPolicies } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { ManagementPolicyName, ManagementPoliciesGetOptionalParams, ManagementPoliciesGetResponse, ManagementPolicy, ManagementPoliciesCreateOrUpdateOptionalParams, ManagementPoliciesCreateOrUpdateResponse, ManagementPoliciesDeleteOptionalParams } from "../models";
/** Class containing ManagementPolicies operations. */
export declare class ManagementPoliciesImpl implements ManagementPolicies {
private readonly client;
/**
* Initialize a new instance of the class ManagementPolicies class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
}
//# sourceMappingURL=managementPolicies.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"managementPolicies.d.ts","sourceRoot":"","sources":["../../../src/operations/managementPolicies.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAI7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,oBAAoB,EACpB,mCAAmC,EACnC,6BAA6B,EAC7B,gBAAgB,EAChB,8CAA8C,EAC9C,wCAAwC,EACxC,sCAAsC,EACvC,MAAM,WAAW,CAAC;AAEnB,sDAAsD;AACtD,qBAAa,sBAAuB,YAAW,kBAAkB;IAC/D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;;;;;;OAUG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,oBAAoB,EAAE,oBAAoB,EAC1C,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC;IAOzC;;;;;;;;;;;OAWG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,oBAAoB,EAAE,oBAAoB,EAC1C,UAAU,EAAE,gBAAgB,EAC5B,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC;IAapD;;;;;;;;;;OAUG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,oBAAoB,EAAE,oBAAoB,EAC1C,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,IAAI,CAAC;CAMjB"}
@@ -0,0 +1,126 @@
/*
* 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 * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/** Class containing ManagementPolicies operations. */
export class ManagementPoliciesImpl {
/**
* Initialize a new instance of the class ManagementPolicies class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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, accountName, managementPolicyName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, managementPolicyName, options }, getOperationSpec);
}
/**
* 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, accountName, managementPolicyName, properties, options) {
return this.client.sendOperationRequest({
resourceGroupName,
accountName,
managementPolicyName,
properties,
options
}, createOrUpdateOperationSpec);
}
/**
* 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, accountName, managementPolicyName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, managementPolicyName, options }, deleteOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ManagementPolicy
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.managementPolicyName
],
headerParameters: [Parameters.accept],
serializer
};
const createOrUpdateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.ManagementPolicy
}
},
requestBody: Parameters.properties,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.managementPolicyName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}",
httpMethod: "DELETE",
responses: { 200: {}, 204: {} },
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.managementPolicyName
],
serializer
};
//# sourceMappingURL=managementPolicies.js.map
@@ -0,0 +1 @@
{"version":3,"file":"managementPolicies.js","sourceRoot":"","sources":["../../../src/operations/managementPolicies.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,sDAAsD;AACtD,MAAM,OAAO,sBAAsB;IAGjC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CACD,iBAAyB,EACzB,WAAmB,EACnB,oBAA0C,EAC1C,OAA6C;QAE7C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,oBAAoB,EAAE,OAAO,EAAE,EACjE,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,cAAc,CACZ,iBAAyB,EACzB,WAAmB,EACnB,oBAA0C,EAC1C,UAA4B,EA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;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,oBAAoB;KAChC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,wKAAwK;IAC1K,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IAC/B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,oBAAoB;KAChC;IACD,UAAU;CACX,CAAC"}
@@ -0,0 +1,80 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { ObjectReplicationPoliciesOperations } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { ObjectReplicationPolicy, ObjectReplicationPoliciesListOptionalParams, ObjectReplicationPoliciesGetOptionalParams, ObjectReplicationPoliciesGetResponse, ObjectReplicationPoliciesCreateOrUpdateOptionalParams, ObjectReplicationPoliciesCreateOrUpdateResponse, ObjectReplicationPoliciesDeleteOptionalParams } from "../models";
/** Class containing ObjectReplicationPoliciesOperations operations. */
export declare class ObjectReplicationPoliciesOperationsImpl implements ObjectReplicationPoliciesOperations {
private readonly client;
/**
* Initialize a new instance of the class ObjectReplicationPoliciesOperations class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
private listPagingPage;
private listPagingAll;
/**
* 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.
*/
private _list;
/**
* 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>;
}
//# sourceMappingURL=objectReplicationPoliciesOperations.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"objectReplicationPoliciesOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/objectReplicationPoliciesOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAI9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,uBAAuB,EACvB,2CAA2C,EAE3C,0CAA0C,EAC1C,oCAAoC,EACpC,qDAAqD,EACrD,+CAA+C,EAC/C,6CAA6C,EAC9C,MAAM,WAAW,CAAC;AAGnB,uEAAuE;AACvE,qBAAa,uCACX,YAAW,mCAAmC;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,2CAA2C,GACpD,0BAA0B,CAAC,uBAAuB,CAAC;YAevC,cAAc;YASd,aAAa;IAc5B;;;;;;;;OAQG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;;;;;;;OAYG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,oCAAoC,CAAC;IAOhD;;;;;;;;;;;;;;OAcG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,yBAAyB,EAAE,MAAM,EACjC,UAAU,EAAE,uBAAuB,EACnC,OAAO,CAAC,EAAE,qDAAqD,GAC9D,OAAO,CAAC,+CAA+C,CAAC;IAa3D;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,yBAAyB,EAAE,MAAM,EACjC,OAAO,CAAC,EAAE,6CAA6C,GACtD,OAAO,CAAC,IAAI,CAAC;CAMjB"}
@@ -0,0 +1,228 @@
/*
* 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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing ObjectReplicationPoliciesOperations operations. */
export class ObjectReplicationPoliciesOperationsImpl {
/**
* Initialize a new instance of the class ObjectReplicationPoliciesOperations class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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, accountName, options) {
const iter = this.listPagingAll(resourceGroupName, accountName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(resourceGroupName, accountName, options);
}
};
}
listPagingPage(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(resourceGroupName, accountName, options));
yield yield __await(result.value || []);
});
}
listPagingAll(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
}
/**
* 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, accountName, objectReplicationPolicyId, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, objectReplicationPolicyId, options }, getOperationSpec);
}
/**
* 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, accountName, objectReplicationPolicyId, properties, options) {
return this.client.sendOperationRequest({
resourceGroupName,
accountName,
objectReplicationPolicyId,
properties,
options
}, createOrUpdateOperationSpec);
}
/**
* 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, accountName, objectReplicationPolicyId, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, objectReplicationPolicyId, options }, deleteOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ObjectReplicationPolicies
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ObjectReplicationPolicy
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.objectReplicationPolicyId
],
headerParameters: [Parameters.accept],
serializer
};
const createOrUpdateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.ObjectReplicationPolicy
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
requestBody: Parameters.properties3,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.objectReplicationPolicyId
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
httpMethod: "DELETE",
responses: {
200: {},
204: {},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.objectReplicationPolicyId
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=objectReplicationPoliciesOperations.js.map
@@ -0,0 +1 @@
{"version":3,"file":"objectReplicationPoliciesOperations.js","sourceRoot":"","sources":["../../../src/operations/objectReplicationPoliciesOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAanD,4CAA4C;AAC5C,uEAAuE;AACvE,MAAM,OAAO,uCAAuC;IAIlD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACn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C,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,yBAAyB;KACrC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,26 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Operations } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { Operation, OperationsListOptionalParams } from "../models";
/** Class containing Operations operations. */
export declare class OperationsImpl implements Operations {
private readonly client;
/**
* Initialize a new instance of the class Operations class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* Lists all of the available Storage Rest API operations.
* @param options The options parameters.
*/
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
private listPagingPage;
private listPagingAll;
/**
* Lists all of the available Storage Rest API operations.
* @param options The options parameters.
*/
private _list;
}
//# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,SAAS,EACT,4BAA4B,EAE7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YAOd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAKd"}
+87
View File
@@ -0,0 +1,87 @@
/*
* 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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing Operations operations. */
export class OperationsImpl {
/**
* Initialize a new instance of the class Operations class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Lists all of the available Storage Rest API operations.
* @param options The options parameters.
*/
list(options) {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(options);
}
};
}
listPagingPage(options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(options));
yield yield __await(result.value || []);
});
}
listPagingAll(options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Lists all of the available Storage Rest API operations.
* @param options The options parameters.
*/
_list(options) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/providers/Microsoft.Storage/operations",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.OperationListResult
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAQnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC;;YAEtC,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;YACvC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;QAC3B,CAAC;KAAA;IAEc,aAAa,CAC1B,OAAsC;;;;gBAEtC,KAAyB,IAAA,KAAA,cAAA,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA,IAAA;oBAA1C,MAAM,IAAI,WAAA,CAAA;oBACnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;iBACb;;;;;;;;;QACH,CAAC;KAAA;IAED;;;OAGG;IACK,KAAK,CACX,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,yCAAyC;IAC/C,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,73 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { PrivateEndpointConnections } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { PrivateEndpointConnection, PrivateEndpointConnectionsListOptionalParams, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsPutOptionalParams, PrivateEndpointConnectionsPutResponse, PrivateEndpointConnectionsDeleteOptionalParams } from "../models";
/** Class containing PrivateEndpointConnections operations. */
export declare class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {
private readonly client;
/**
* Initialize a new instance of the class PrivateEndpointConnections class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
private listPagingPage;
private listPagingAll;
/**
* 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.
*/
private _list;
/**
* 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>;
}
//# sourceMappingURL=privateEndpointConnections.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"privateEndpointConnections.d.ts","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAIrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,yBAAyB,EACzB,4CAA4C,EAE5C,2CAA2C,EAC3C,qCAAqC,EACrC,2CAA2C,EAC3C,qCAAqC,EACrC,8CAA8C,EAC/C,MAAM,WAAW,CAAC;AAGnB,8DAA8D;AAC9D,qBAAa,8BACX,YAAW,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,4CAA4C,GACrD,0BAA0B,CAAC,yBAAyB,CAAC;YAezC,cAAc;YASd,aAAa;IAc5B;;;;;;;;OAQG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;;;;;OAUG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAYjD;;;;;;;;;;;OAWG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,6BAA6B,EAAE,MAAM,EACrC,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAajD;;;;;;;;;;OAUG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,IAAI,CAAC;CAWjB"}
@@ -0,0 +1,228 @@
/*
* 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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing PrivateEndpointConnections operations. */
export class PrivateEndpointConnectionsImpl {
/**
* Initialize a new instance of the class PrivateEndpointConnections class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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, accountName, options) {
const iter = this.listPagingAll(resourceGroupName, accountName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(resourceGroupName, accountName, options);
}
};
}
listPagingPage(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(resourceGroupName, accountName, options));
yield yield __await(result.value || []);
});
}
listPagingAll(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
}
/**
* 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, accountName, privateEndpointConnectionName, options) {
return this.client.sendOperationRequest({
resourceGroupName,
accountName,
privateEndpointConnectionName,
options
}, getOperationSpec);
}
/**
* 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, accountName, privateEndpointConnectionName, properties, options) {
return this.client.sendOperationRequest({
resourceGroupName,
accountName,
privateEndpointConnectionName,
properties,
options
}, putOperationSpec);
}
/**
* 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, accountName, privateEndpointConnectionName, options) {
return this.client.sendOperationRequest({
resourceGroupName,
accountName,
privateEndpointConnectionName,
options
}, deleteOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.PrivateEndpointConnectionListResult
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.PrivateEndpointConnection
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.privateEndpointConnectionName
],
headerParameters: [Parameters.accept],
serializer
};
const putOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.PrivateEndpointConnection
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
requestBody: Parameters.properties2,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.privateEndpointConnectionName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
httpMethod: "DELETE",
responses: {
200: {},
204: {},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.privateEndpointConnectionName
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=privateEndpointConnections.js.map
@@ -0,0 +1 @@
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAanD,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;YACtE,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,WAAmB,EACnB,OAAsD;;YAEtD,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAA,CAAC;YACvE,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;QAC3B,CAAC;KAAA;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EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,yLAAyL;IAC3L,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,23 @@
import { PrivateLinkResources } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { PrivateLinkResourcesListByStorageAccountOptionalParams, PrivateLinkResourcesListByStorageAccountResponse } from "../models";
/** Class containing PrivateLinkResources operations. */
export declare class PrivateLinkResourcesImpl implements PrivateLinkResources {
private readonly client;
/**
* Initialize a new instance of the class PrivateLinkResources class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
}
//# sourceMappingURL=privateLinkResources.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,sDAAsD,EACtD,gDAAgD,EACjD,MAAM,WAAW,CAAC;AAEnB,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;;;;OAQG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,sDAAsD,GAC/D,OAAO,CAAC,gDAAgD,CAAC;CAM7D"}
@@ -0,0 +1,53 @@
/*
* 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 * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/** Class containing PrivateLinkResources operations. */
export class PrivateLinkResourcesImpl {
/**
* Initialize a new instance of the class PrivateLinkResources class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listByStorageAccountOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listByStorageAccountOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateLinkResources",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.PrivateLinkResourceListResult
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=privateLinkResources.js.map
@@ -0,0 +1 @@
{"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAOnD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,oBAAoB,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAgE;QAEhE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC3C,iCAAiC,CAClC,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EACF,mJAAmJ;IACrJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
+101
View File
@@ -0,0 +1,101 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Queue } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { ListQueue, QueueListOptionalParams, StorageQueue, QueueCreateOptionalParams, QueueCreateResponse, QueueUpdateOptionalParams, QueueUpdateResponse, QueueGetOptionalParams, QueueGetResponse, QueueDeleteOptionalParams } from "../models";
/** Class containing Queue operations. */
export declare class QueueImpl implements Queue {
private readonly client;
/**
* Initialize a new instance of the class Queue class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
private listPagingPage;
private listPagingAll;
/**
* 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>;
/**
* 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.
*/
private _list;
/**
* ListNext
* @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 nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
}
//# sourceMappingURL=queue.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../src/operations/queue.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAIhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,SAAS,EAET,uBAAuB,EACvB,YAAY,EACZ,yBAAyB,EACzB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,yBAAyB,EAG1B,MAAM,WAAW,CAAC;AAGnB,yCAAyC;AACzC,qBAAa,SAAU,YAAW,KAAK;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,uBAAuB,GAChC,0BAA0B,CAAC,SAAS,CAAC;YAezB,cAAc;YAoBd,aAAa;IAc5B;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;IAO/B;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;IAO/B;;;;;;;;;;;OAWG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,gBAAgB,CAAC;IAO5B;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;;;OAQG;IACH,OAAO,CAAC,KAAK;IAWb;;;;;;;;;OASG;IACH,OAAO,CAAC,SAAS;CAWlB"}
+306
View File
@@ -0,0 +1,306 @@
/*
* 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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing Queue operations. */
export class QueueImpl {
/**
* Initialize a new instance of the class Queue class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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, accountName, options) {
const iter = this.listPagingAll(resourceGroupName, accountName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(resourceGroupName, accountName, options);
}
};
}
listPagingPage(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(resourceGroupName, accountName, options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listNext(resourceGroupName, accountName, continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listPagingAll(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* 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, accountName, queueName, queue, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, queueName, queue, options }, createOperationSpec);
}
/**
* 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, accountName, queueName, queue, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, queueName, queue, options }, updateOperationSpec);
}
/**
* 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, accountName, queueName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, queueName, options }, getOperationSpec);
}
/**
* 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, accountName, queueName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, queueName, options }, deleteOperationSpec);
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
}
/**
* ListNext
* @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 nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(resourceGroupName, accountName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const createOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.StorageQueue
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.queue,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.queueName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const updateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}",
httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.StorageQueue
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.queue,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.queueName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.StorageQueue
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.queueName
],
headerParameters: [Parameters.accept],
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}",
httpMethod: "DELETE",
responses: {
204: {},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.queueName
],
headerParameters: [Parameters.accept],
serializer
};
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ListQueueResource
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.maxpagesize,
Parameters.filter
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ListQueueResource
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.maxpagesize,
Parameters.filter
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=queue.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,47 @@
import { QueueServices } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { QueueServicesListOptionalParams, QueueServicesListResponse, QueueServiceProperties, QueueServicesSetServicePropertiesOptionalParams, QueueServicesSetServicePropertiesResponse, QueueServicesGetServicePropertiesOptionalParams, QueueServicesGetServicePropertiesResponse } from "../models";
/** Class containing QueueServices operations. */
export declare class QueueServicesImpl implements QueueServices {
private readonly client;
/**
* Initialize a new instance of the class QueueServices class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
}
//# sourceMappingURL=queueServices.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"queueServices.d.ts","sourceRoot":"","sources":["../../../src/operations/queueServices.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAIxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,EACzB,sBAAsB,EACtB,+CAA+C,EAC/C,yCAAyC,EACzC,+CAA+C,EAC/C,yCAAyC,EAC1C,MAAM,WAAW,CAAC;AAEnB,iDAAiD;AACjD,qBAAa,iBAAkB,YAAW,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;;;;OAQG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC;IAOrC;;;;;;;;;;;OAWG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,sBAAsB,EAClC,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC;IAOrD;;;;;;;;;OASG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC;CAMtD"}
@@ -0,0 +1,130 @@
/*
* 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 * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/** Class containing QueueServices operations. */
export class QueueServicesImpl {
/**
* Initialize a new instance of the class QueueServices class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
}
/**
* 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, accountName, parameters, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, setServicePropertiesOperationSpec);
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getServicePropertiesOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ListQueueServices
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const setServicePropertiesOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.QueueServiceProperties
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.parameters10,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.queueServiceName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const getServicePropertiesOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/{queueServiceName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.QueueServiceProperties
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.queueServiceName
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=queueServices.js.map
@@ -0,0 +1 @@
{"version":3,"file":"queueServices.js","sourceRoot":"","sources":["../../../src/operations/queueServices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,iBAAyB,EACzB,WAAmB,EACnB,OAAyC;QAEzC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC3C,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,oBAAoB,CAClB,iBAAyB,EACzB,WAAmB,EACnB,UAAkC,EAClC,OAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAA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AiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EACF,+JAA+J;IACjK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
+26
View File
@@ -0,0 +1,26 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Skus } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { SkuInformation, SkusListOptionalParams } from "../models";
/** Class containing Skus operations. */
export declare class SkusImpl implements Skus {
private readonly client;
/**
* Initialize a new instance of the class Skus class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* Lists the available SKUs supported by Microsoft.Storage for given subscription.
* @param options The options parameters.
*/
list(options?: SkusListOptionalParams): PagedAsyncIterableIterator<SkuInformation>;
private listPagingPage;
private listPagingAll;
/**
* Lists the available SKUs supported by Microsoft.Storage for given subscription.
* @param options The options parameters.
*/
private _list;
}
//# sourceMappingURL=skus.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"skus.d.ts","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAI/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,cAAc,EACd,sBAAsB,EAEvB,MAAM,WAAW,CAAC;AAGnB,wCAAwC;AACxC,qBAAa,QAAS,YAAW,IAAI;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,sBAAsB,GAC/B,0BAA0B,CAAC,cAAc,CAAC;YAe9B,cAAc;YAOd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAGd"}
+87
View File
@@ -0,0 +1,87 @@
/*
* 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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing Skus operations. */
export class SkusImpl {
/**
* Initialize a new instance of the class Skus class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Lists the available SKUs supported by Microsoft.Storage for given subscription.
* @param options The options parameters.
*/
list(options) {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(options);
}
};
}
listPagingPage(options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(options));
yield yield __await(result.value || []);
});
}
listPagingAll(options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* Lists the available SKUs supported by Microsoft.Storage for given subscription.
* @param options The options parameters.
*/
_list(options) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/skus",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.StorageSkuListResult
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=skus.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"skus.js","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAQnD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAgC;QAEhC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAgC;;YAEhC,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;YACvC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;QAC3B,CAAC;KAAA;IAEc,aAAa,CAC1B,OAAgC;;;;gBAEhC,KAAyB,IAAA,KAAA,cAAA,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA,IAAA;oBAA1C,MAAM,IAAI,WAAA,CAAA;oBACnB,cAAA,KAAK,CAAC,CAAC,iBAAA,cAAA,IAAI,CAAA,CAAA,CAAA,CAAC;iBACb;;;;;;;;;QACH,CAAC;KAAA;IAED;;;OAGG;IACK,KAAK,CAAC,OAAgC;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,kEAAkE;IACxE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,284 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { StorageAccounts } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
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";
/** Class containing StorageAccounts operations. */
export declare class StorageAccountsImpl implements StorageAccounts {
private readonly client;
/**
* Initialize a new instance of the class StorageAccounts class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
private listPagingPage;
private listPagingAll;
/**
* 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>;
private listByResourceGroupPagingPage;
private listByResourceGroupPagingAll;
/**
* 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 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.
*/
private _list;
/**
* 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.
*/
private _listByResourceGroup;
/**
* 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>;
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
/**
* ListByResourceGroupNext
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
private _listByResourceGroupNext;
}
//# sourceMappingURL=storageAccounts.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"storageAccounts.d.ts","sourceRoot":"","sources":["../../../src/operations/storageAccounts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,cAAc,EAEd,iCAAiC,EAEjC,gDAAgD,EAChD,6CAA6C,EAC7C,kDAAkD,EAClD,4CAA4C,EAC5C,8BAA8B,EAC9B,mCAAmC,EACnC,6BAA6B,EAC7B,mCAAmC,EACnC,0CAA0C,EAC1C,oCAAoC,EACpC,8BAA8B,EAC9B,mCAAmC,EACnC,6BAA6B,EAG7B,qCAAqC,EACrC,+BAA+B,EAC/B,qCAAqC,EACrC,0CAA0C,EAC1C,oCAAoC,EACpC,oBAAoB,EACpB,2CAA2C,EAC3C,qCAAqC,EACrC,oBAAoB,EACpB,2CAA2C,EAC3C,qCAAqC,EACrC,qCAAqC,EACrC,2DAA2D,EAC3D,gEAAgE,EAChE,qBAAqB,EACrB,8CAA8C,EAC9C,wCAAwC,EACxC,qDAAqD,EAGtD,MAAM,WAAW,CAAC;AAGnB,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,Q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,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,qDAAqD,GAC9D,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAUjB;;;;;;OAMG;IACH,OAAO,CAAC,wBAAwB;CAUjC"}
@@ -0,0 +1,930 @@
/*
* 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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { LroEngine } from "@azure/core-lro";
import { LroImpl } from "../lroImpl";
/// <reference lib="esnext.asynciterable" />
/** Class containing StorageAccounts operations. */
export class StorageAccountsImpl {
/**
* Initialize a new instance of the class StorageAccounts class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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) {
const iter = this.listPagingAll(options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(options);
}
};
}
listPagingPage(options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listNext(continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listPagingAll(options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* 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, options) {
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listByResourceGroupPagingPage(resourceGroupName, options);
}
};
}
listByResourceGroupPagingPage(resourceGroupName, options) {
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listByResourceGroupPagingAll(resourceGroupName, options) {
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
var e_2, _a;
try {
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_2) throw e_2.error; }
}
});
}
/**
* 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, options) {
return this.client.sendOperationRequest({ accountName, options }, checkNameAvailabilityOperationSpec);
}
/**
* 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, accountName, parameters, options) {
return __awaiter(this, void 0, void 0, function* () {
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
return this.client.sendOperationRequest(args, spec);
});
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
var _a;
let currentRawResponse = undefined;
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
const callback = (rawResponse, flatResponse) => {
currentRawResponse = rawResponse;
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
};
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
const flatResponse = yield directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse.status,
body: currentRawResponse.parsedBody,
headers: currentRawResponse.headers.toJSON()
}
};
});
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, parameters, options }, createOperationSpec);
const poller = new LroEngine(lro, {
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
});
yield poller.poll();
return poller;
});
}
/**
* 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, accountName, parameters, options) {
return __awaiter(this, void 0, void 0, function* () {
const poller = yield this.beginCreate(resourceGroupName, accountName, parameters, options);
return poller.pollUntilDone();
});
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, deleteOperationSpec);
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getPropertiesOperationSpec);
}
/**
* 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, accountName, parameters, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, updateOperationSpec);
}
/**
* 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) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
/**
* 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, options) {
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listKeysOperationSpec);
}
/**
* 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, accountName, regenerateKey, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, regenerateKey, options }, regenerateKeyOperationSpec);
}
/**
* 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, accountName, parameters, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, listAccountSASOperationSpec);
}
/**
* 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, accountName, parameters, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, listServiceSASOperationSpec);
}
/**
* 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, accountName, options) {
return __awaiter(this, void 0, void 0, function* () {
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
return this.client.sendOperationRequest(args, spec);
});
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
var _a;
let currentRawResponse = undefined;
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
const callback = (rawResponse, flatResponse) => {
currentRawResponse = rawResponse;
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
};
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
const flatResponse = yield directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse.status,
body: currentRawResponse.parsedBody,
headers: currentRawResponse.headers.toJSON()
}
};
});
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, options }, failoverOperationSpec);
const poller = new LroEngine(lro, {
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
lroResourceLocationConfig: "location"
});
yield poller.poll();
return poller;
});
}
/**
* 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, accountName, options) {
return __awaiter(this, void 0, void 0, function* () {
const poller = yield this.beginFailover(resourceGroupName, accountName, options);
return poller.pollUntilDone();
});
}
/**
* 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, accountName, requestType, options) {
return __awaiter(this, void 0, void 0, function* () {
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
return this.client.sendOperationRequest(args, spec);
});
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
var _a;
let currentRawResponse = undefined;
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
const callback = (rawResponse, flatResponse) => {
currentRawResponse = rawResponse;
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
};
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
const flatResponse = yield directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse.status,
body: currentRawResponse.parsedBody,
headers: currentRawResponse.headers.toJSON()
}
};
});
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, requestType, options }, hierarchicalNamespaceMigrationOperationSpec);
const poller = new LroEngine(lro, {
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
lroResourceLocationConfig: "location"
});
yield poller.poll();
return poller;
});
}
/**
* 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, accountName, requestType, options) {
return __awaiter(this, void 0, void 0, function* () {
const poller = yield this.beginHierarchicalNamespaceMigration(resourceGroupName, accountName, requestType, options);
return poller.pollUntilDone();
});
}
/**
* 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, accountName, options) {
return __awaiter(this, void 0, void 0, function* () {
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
return this.client.sendOperationRequest(args, spec);
});
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
var _a;
let currentRawResponse = undefined;
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
const callback = (rawResponse, flatResponse) => {
currentRawResponse = rawResponse;
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
};
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
const flatResponse = yield directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse.status,
body: currentRawResponse.parsedBody,
headers: currentRawResponse.headers.toJSON()
}
};
});
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, options }, abortHierarchicalNamespaceMigrationOperationSpec);
const poller = new LroEngine(lro, {
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
lroResourceLocationConfig: "location"
});
yield poller.poll();
return poller;
});
}
/**
* 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, accountName, options) {
return __awaiter(this, void 0, void 0, function* () {
const poller = yield this.beginAbortHierarchicalNamespaceMigration(resourceGroupName, accountName, options);
return poller.pollUntilDone();
});
}
/**
* 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, accountName, parameters, options) {
return __awaiter(this, void 0, void 0, function* () {
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
return this.client.sendOperationRequest(args, spec);
});
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
var _a;
let currentRawResponse = undefined;
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
const callback = (rawResponse, flatResponse) => {
currentRawResponse = rawResponse;
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
};
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
const flatResponse = yield directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse.status,
body: currentRawResponse.parsedBody,
headers: currentRawResponse.headers.toJSON()
}
};
});
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, parameters, options }, restoreBlobRangesOperationSpec);
const poller = new LroEngine(lro, {
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
lroResourceLocationConfig: "location"
});
yield poller.poll();
return poller;
});
}
/**
* 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, accountName, parameters, options) {
return __awaiter(this, void 0, void 0, function* () {
const poller = yield this.beginRestoreBlobRanges(resourceGroupName, accountName, parameters, options);
return poller.pollUntilDone();
});
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, revokeUserDelegationKeysOperationSpec);
}
/**
* ListNext
* @param nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(nextLink, options) {
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
}
/**
* ListByResourceGroupNext
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
* @param options The options parameters.
*/
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const checkNameAvailabilityOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.CheckNameAvailabilityResult
}
},
requestBody: Parameters.accountName,
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const createOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.StorageAccount
},
201: {
bodyMapper: Mappers.StorageAccount
},
202: {
bodyMapper: Mappers.StorageAccount
},
204: {
bodyMapper: Mappers.StorageAccount
}
},
requestBody: Parameters.parameters,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
httpMethod: "DELETE",
responses: { 200: {}, 204: {} },
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
serializer
};
const getPropertiesOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.StorageAccount
}
},
queryParameters: [Parameters.apiVersion, Parameters.expand],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const updateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.StorageAccount
}
},
requestBody: Parameters.parameters1,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.StorageAccountListResult
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [Parameters.$host, Parameters.subscriptionId],
headerParameters: [Parameters.accept],
serializer
};
const listByResourceGroupOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.StorageAccountListResult
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName
],
headerParameters: [Parameters.accept],
serializer
};
const listKeysOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.StorageAccountListKeysResult
}
},
queryParameters: [Parameters.apiVersion, Parameters.expand1],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const regenerateKeyOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.StorageAccountListKeysResult
}
},
requestBody: Parameters.regenerateKey,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const listAccountSASOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.ListAccountSasResponse
}
},
requestBody: Parameters.parameters2,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const listServiceSASOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.ListServiceSasResponse
}
},
requestBody: Parameters.parameters3,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const failoverOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover",
httpMethod: "POST",
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
serializer
};
const hierarchicalNamespaceMigrationOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration",
httpMethod: "POST",
responses: {
200: {},
201: {},
202: {},
204: {},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion, Parameters.requestType],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const abortHierarchicalNamespaceMigrationOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/aborthnsonmigration",
httpMethod: "POST",
responses: {
200: {},
201: {},
202: {},
204: {},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const restoreBlobRangesOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/restoreBlobRanges",
httpMethod: "POST",
responses: {
200: {
bodyMapper: Mappers.BlobRestoreStatus
},
201: {
bodyMapper: Mappers.BlobRestoreStatus
},
202: {
bodyMapper: Mappers.BlobRestoreStatus
},
204: {
bodyMapper: Mappers.BlobRestoreStatus
}
},
requestBody: Parameters.parameters4,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const revokeUserDelegationKeysOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/revokeUserDelegationKeys",
httpMethod: "POST",
responses: { 200: {} },
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.StorageAccountListResult
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
const listByResourceGroupNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.StorageAccountListResult
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=storageAccounts.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,99 @@
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { TableOperations } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { Table, TableListOptionalParams, TableCreateOptionalParams, TableCreateResponse, TableUpdateOptionalParams, TableUpdateResponse, TableGetOptionalParams, TableGetResponse, TableDeleteOptionalParams } from "../models";
/** Class containing TableOperations operations. */
export declare class TableOperationsImpl implements TableOperations {
private readonly client;
/**
* Initialize a new instance of the class TableOperations class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
private listPagingPage;
private listPagingAll;
/**
* 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>;
/**
* 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.
*/
private _list;
/**
* ListNext
* @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 nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
private _listNext;
}
//# sourceMappingURL=tableOperations.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"tableOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/tableOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAI1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,KAAK,EAEL,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,sB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code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/// <reference lib="esnext.asynciterable" />
/** Class containing TableOperations operations. */
export class TableOperationsImpl {
/**
* Initialize a new instance of the class TableOperations class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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, accountName, options) {
const iter = this.listPagingAll(resourceGroupName, accountName, options);
return {
next() {
return iter.next();
},
[Symbol.asyncIterator]() {
return this;
},
byPage: () => {
return this.listPagingPage(resourceGroupName, accountName, options);
}
};
}
listPagingPage(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
let result = yield __await(this._list(resourceGroupName, accountName, options));
yield yield __await(result.value || []);
let continuationToken = result.nextLink;
while (continuationToken) {
result = yield __await(this._listNext(resourceGroupName, accountName, continuationToken, options));
continuationToken = result.nextLink;
yield yield __await(result.value || []);
}
});
}
listPagingAll(resourceGroupName, accountName, options) {
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
var e_1, _a;
try {
for (var _b = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
const page = _c.value;
yield __await(yield* __asyncDelegator(__asyncValues(page)));
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
}
finally { if (e_1) throw e_1.error; }
}
});
}
/**
* 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, accountName, tableName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, tableName, options }, createOperationSpec);
}
/**
* 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, accountName, tableName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, tableName, options }, updateOperationSpec);
}
/**
* 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, accountName, tableName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, tableName, options }, getOperationSpec);
}
/**
* 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, accountName, tableName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, tableName, options }, deleteOperationSpec);
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
}
/**
* ListNext
* @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 nextLink The nextLink from the previous successful call to the List method.
* @param options The options parameters.
*/
_listNext(resourceGroupName, accountName, nextLink, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listNextOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const createOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.Table
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.parameters12,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.tableName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const updateOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.Table
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.parameters12,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.tableName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.Table
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.tableName
],
headerParameters: [Parameters.accept],
serializer
};
const deleteOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}",
httpMethod: "DELETE",
responses: {
204: {},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.tableName
],
headerParameters: [Parameters.accept],
serializer
};
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ListTableResource
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const listNextOperationSpec = {
path: "{nextLink}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ListTableResource
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.nextLink
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=tableOperations.js.map
File diff suppressed because one or more lines are too long
@@ -0,0 +1,47 @@
import { TableServices } from "../operationsInterfaces";
import { StorageManagementClient } from "../storageManagementClient";
import { TableServicesListOptionalParams, TableServicesListResponse, TableServiceProperties, TableServicesSetServicePropertiesOptionalParams, TableServicesSetServicePropertiesResponse, TableServicesGetServicePropertiesOptionalParams, TableServicesGetServicePropertiesResponse } from "../models";
/** Class containing TableServices operations. */
export declare class TableServicesImpl implements TableServices {
private readonly client;
/**
* Initialize a new instance of the class TableServices class.
* @param client Reference to the service client
*/
constructor(client: StorageManagementClient);
/**
* 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>;
}
//# sourceMappingURL=tableServices.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"tableServices.d.ts","sourceRoot":"","sources":["../../../src/operations/tableServices.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAIxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,EACzB,sBAAsB,EACtB,+CAA+C,EAC/C,yCAAyC,EACzC,+CAA+C,EAC/C,yCAAyC,EAC1C,MAAM,WAAW,CAAC;AAEnB,iDAAiD;AACjD,qBAAa,iBAAkB,YAAW,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IAEjD;;;OAGG;gBACS,MAAM,EAAE,uBAAuB;IAI3C;;;;;;;;OAQG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC;IAOrC;;;;;;;;;;;OAWG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,sBAAsB,EAClC,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC;IAOrD;;;;;;;;;OASG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,+CAA+C,GACxD,OAAO,CAAC,yCAAyC,CAAC;CAMtD"}
@@ -0,0 +1,130 @@
/*
* 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 * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/** Class containing TableServices operations. */
export class TableServicesImpl {
/**
* Initialize a new instance of the class TableServices class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listOperationSpec);
}
/**
* 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, accountName, parameters, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, setServicePropertiesOperationSpec);
}
/**
* 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, accountName, options) {
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getServicePropertiesOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const listOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.ListTableServices
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1
],
headerParameters: [Parameters.accept],
serializer
};
const setServicePropertiesOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.TableServiceProperties
},
default: {
bodyMapper: Mappers.CloudError
}
},
requestBody: Parameters.parameters11,
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.tableServiceName
],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const getServicePropertiesOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/{tableServiceName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.TableServiceProperties
},
default: {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName1,
Parameters.tableServiceName
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=tableServices.js.map
@@ -0,0 +1 @@
{"version":3,"file":"tableServices.js","sourceRoot":"","sources":["../../../src/operations/tableServices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,iDAAiD;AACjD,MAAM,OAAO,iBAAiB;IAG5B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,iBAAyB,EACzB,WAAmB,EACnB,OAAyC;QAEzC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EA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AAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EACF,+JAA+J;IACjK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}

Some files were not shown because too many files have changed in this diff Show More