Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sort-imports] update storage-blob with respect to sort-imports rule #18953

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/storage/storage-blob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "12.9.0-beta.2",
"description": "Microsoft Azure Storage SDK for JavaScript - Blob",
"main": "./dist/index.js",
"module": "./dist-esm/storage-blob/src/index.js",
"module": "dist-esm/src/index.js",
"browser": {
"./dist-esm/storage-blob/src/index.js": "./dist-esm/storage-blob/src/index.browser.js",
"./dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js": "./dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.browser.js",
Expand Down
15 changes: 7 additions & 8 deletions sdk/storage/storage-blob/src/BatchResponseParser.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { HttpHeaders } from "@azure/core-http";

import { ServiceSubmitBatchResponseModel } from "./generatedModels";
import { BatchSubResponse, ParsedBatchResponse } from "./BatchResponse";
import {
HTTP_VERSION_1_1,
HTTPURLConnection,
HTTP_LINE_ENDING,
HeaderConstants,
HTTPURLConnection
HTTP_VERSION_1_1,
HeaderConstants
} from "./utils/constants";
import { getBodyAsText } from "./BatchUtils";
import { BatchSubRequest } from "./BlobBatch";
import { BatchSubResponse, ParsedBatchResponse } from "./BatchResponse";
import { HttpHeaders } from "@azure/core-http";
import { ServiceSubmitBatchResponseModel } from "./generatedModels";
import { getBodyAsText } from "./BatchUtils";
import { logger } from "./log";

const HTTP_HEADER_DELIMITER = ": ";
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/storage-blob/src/BatchUtils.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { BATCH_MAX_PAYLOAD_IN_BYTES } from "./utils/constants";
import { ServiceSubmitBatchResponseModel } from "./generatedModels";
import { streamToBuffer2 } from "./utils/utils.node";
import { BATCH_MAX_PAYLOAD_IN_BYTES } from "./utils/constants";

export async function getBodyAsText(
batchResponse: ServiceSubmitBatchResponseModel
Expand Down
35 changes: 20 additions & 15 deletions sdk/storage/storage-blob/src/BlobBatch.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,40 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import {
BATCH_MAX_REQUEST,
HTTP_LINE_ENDING,
HTTP_VERSION_1_1,
HeaderConstants,
StorageOAuthScopes
} from "./utils/constants";
import {
BaseRequestPolicy,
deserializationPolicy,
generateUuid,
HttpHeaders,
HttpOperationResponse,
RequestPolicy,
RequestPolicyFactory,
RequestPolicyOptions,
WebResource,
TokenCredential,
isTokenCredential,
WebResource,
bearerTokenAuthenticationPolicy,
isNode
deserializationPolicy,
generateUuid,
isNode,
isTokenCredential
} from "@azure/core-http";
import { SpanStatusCode } from "@azure/core-tracing";
import { AnonymousCredential } from "./credentials/AnonymousCredential";
import { BlobClient, BlobDeleteOptions, BlobSetTierOptions } from "./Clients";
import {
attachCredential,
getURLPath,
getURLPathAndQuery,
iEqual
} from "./utils/utils.common";
import { AccessTier } from "./generatedModels";
import { AnonymousCredential } from "./credentials/AnonymousCredential";
import { Mutex } from "./utils/Mutex";
import { Pipeline } from "./Pipeline";
import { attachCredential, getURLPath, getURLPathAndQuery, iEqual } from "./utils/utils.common";
import {
HeaderConstants,
BATCH_MAX_REQUEST,
HTTP_VERSION_1_1,
HTTP_LINE_ENDING,
StorageOAuthScopes
} from "./utils/constants";
import { SpanStatusCode } from "@azure/core-tracing";
import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential";
import { createSpan } from "./utils/tracing";

Expand Down
23 changes: 14 additions & 9 deletions sdk/storage/storage-blob/src/BlobBatchClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,25 @@ import {
ServiceSubmitBatchOptionalParamsModel,
ServiceSubmitBatchResponseModel
} from "./generatedModels";
import { ParsedBatchResponse } from "./BatchResponse";
import { BlobClient, BlobDeleteOptions, BlobSetTierOptions } from "./Clients";
import { Container, Service } from "./generated/src/operations";
import { HttpResponse, TokenCredential } from "@azure/core-http";
import {
PipelineLike,
StoragePipelineOptions,
isPipelineLike,
newPipeline
} from "./Pipeline";
import { convertTracingToRequestOptionsBase, createSpan } from "./utils/tracing";
import { AnonymousCredential } from "./credentials/AnonymousCredential";
import { BatchResponseParser } from "./BatchResponseParser";
import { utf8ByteLength } from "./BatchUtils";
import { BlobBatch } from "./BlobBatch";
import { ParsedBatchResponse } from "./BatchResponse";
import { SpanStatusCode } from "@azure/core-tracing";
import { convertTracingToRequestOptionsBase, createSpan } from "./utils/tracing";
import { HttpResponse, TokenCredential } from "@azure/core-http";
import { Service, Container } from "./generated/src/operations";
import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential";
import { AnonymousCredential } from "./credentials/AnonymousCredential";
import { BlobDeleteOptions, BlobClient, BlobSetTierOptions } from "./Clients";
import { StorageClientContext } from "./generated/src/storageClientContext";
import { PipelineLike, StoragePipelineOptions, newPipeline, isPipelineLike } from "./Pipeline";
import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential";
import { getURLPath } from "./utils/utils.common";
import { utf8ByteLength } from "./BatchUtils";

/**
* Options to configure the Service - Submit Batch Optional Params.
Expand Down
10 changes: 3 additions & 7 deletions sdk/storage/storage-blob/src/BlobDownloadResponse.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { HttpResponse, isNode } from "@azure/core-http";
import { BlobImmutabilityPolicyMode } from "./generatedModels";

import {
BlobDownloadHeaders,
Expand All @@ -12,11 +10,9 @@ import {
LeaseStatusType
} from "./generatedModels";
import { BlobDownloadResponseParsed, Metadata, ObjectReplicationPolicy } from "./models";
import {
ReadableStreamGetter,
RetriableReadableStream,
RetriableReadableStreamOptions
} from "./utils/RetriableReadableStream";
import { HttpResponse, isNode } from "@azure/core-http";
import { ReadableStreamGetter, RetriableReadableStream, RetriableReadableStreamOptions } from "./utils/RetriableReadableStream";
import { BlobImmutabilityPolicyMode } from "./generatedModels";

/**
* ONLY AVAILABLE IN NODE.JS RUNTIME.
Expand Down
19 changes: 10 additions & 9 deletions sdk/storage/storage-blob/src/BlobLeaseClient.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { generateUuid, HttpResponse } from "@azure/core-http";
import { StorageClientContext } from "./generated/src/index";
import { ContainerBreakLeaseOptionalParams } from "./generatedModels";
import { AbortSignalLike } from "@azure/abort-controller";
import { SpanStatusCode } from "@azure/core-tracing";
import { Blob as StorageBlob, Container } from "./generated/src/operations";
import { ModifiedAccessConditions } from "./models";
import { CommonOptions } from "./StorageClient";
import { ETagNone } from "./utils/constants";

import { Container, Blob as StorageBlob } from "./generated/src/operations";
import { HttpResponse, generateUuid } from "@azure/core-http";
import { convertTracingToRequestOptionsBase, createSpan } from "./utils/tracing";
import { AbortSignalLike } from "@azure/abort-controller";
import { BlobClient } from "./Clients";
import { CommonOptions } from "./StorageClient";
import { ContainerBreakLeaseOptionalParams } from "./generatedModels";
import { ContainerClient } from "./ContainerClient";
import { ETagNone } from "./utils/constants";
import { ModifiedAccessConditions } from "./models";
import { SpanStatusCode } from "@azure/core-tracing";
import { StorageClientContext } from "./generated/src/index";

/**
* The details for a specific lease.
Expand Down
11 changes: 5 additions & 6 deletions sdk/storage/storage-blob/src/BlobQueryResponse.browser.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { HttpResponse } from "@azure/core-http";

import {
BlobDownloadHeaders,
BlobDownloadResponseModel,
BlobQueryResponseModel,
BlobType,
CopyStatusType,
LeaseDurationType,
LeaseStateType,
LeaseStatusType,
BlobDownloadHeaders,
BlobQueryResponseModel
LeaseStatusType
} from "./generatedModels";
import { Metadata } from "./models";
import { BlobQuickQueryStreamOptions } from "./utils/BlobQuickQueryStream";
import { HttpResponse } from "@azure/core-http";
import { Metadata } from "./models";

/**
* ONLY AVAILABLE IN BROWSER RUNTIME.
Expand Down
11 changes: 5 additions & 6 deletions sdk/storage/storage-blob/src/BlobQueryResponse.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { HttpResponse, isNode } from "@azure/core-http";

import {
BlobDownloadHeaders,
BlobDownloadResponseModel,
BlobQueryResponseModel,
BlobType,
CopyStatusType,
LeaseDurationType,
LeaseStateType,
LeaseStatusType,
BlobDownloadHeaders,
BlobQueryResponseModel
LeaseStatusType
} from "./generatedModels";
import { Metadata } from "./models";
import { BlobQuickQueryStream, BlobQuickQueryStreamOptions } from "./utils/BlobQuickQueryStream";
import { HttpResponse, isNode } from "@azure/core-http";
import { Metadata } from "./models";

/**
* ONLY AVAILABLE IN NODE.JS RUNTIME.
Expand Down
70 changes: 36 additions & 34 deletions sdk/storage/storage-blob/src/BlobServiceClient.ts
Original file line number Diff line number Diff line change
@@ -1,60 +1,62 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import "@azure/core-paging";
import {
TokenCredential,
isTokenCredential,
isNode,
HttpResponse,
getDefaultProxySettings
} from "@azure/core-http";
import { SpanStatusCode } from "@azure/core-tracing";
import { AbortSignalLike } from "@azure/abort-controller";
import {
ServiceGetUserDelegationKeyHeaders,
BlobServiceProperties,
ContainerCreateResponse,
ContainerDeleteResponse,
ServiceGetPropertiesResponse,
BlobServiceProperties,
ServiceSetPropertiesResponse,
ServiceGetStatisticsResponse,
ServiceGetAccountInfoResponse,
ServiceListContainersSegmentResponse,
ContainerItem,
UserDelegationKeyModel,
ContainerRenameResponse,
ContainerUndeleteResponse,
FilterBlobSegmentModel,
LeaseAccessConditions,
ServiceFilterBlobsHeaders,
ContainerRenameResponse,
LeaseAccessConditions
ServiceGetAccountInfoResponse,
ServiceGetPropertiesResponse,
ServiceGetStatisticsResponse,
ServiceGetUserDelegationKeyHeaders,
ServiceListContainersSegmentResponse,
ServiceSetPropertiesResponse,
UserDelegationKeyModel
} from "./generatedModels";
import { CommonOptions, StorageClient } from "./StorageClient";
import { Container, Service } from "./generated/src/operations";
import { newPipeline, StoragePipelineOptions, PipelineLike, isPipelineLike } from "./Pipeline";
import { ContainerClient, ContainerCreateOptions, ContainerDeleteMethodOptions } from "./ContainerClient";
import {
ContainerClient,
ContainerCreateOptions,
ContainerDeleteMethodOptions
} from "./ContainerClient";
HttpResponse,
TokenCredential,
getDefaultProxySettings,
isNode,
isTokenCredential
} from "@azure/core-http";
import { PageSettings, PagedAsyncIterableIterator } from "@azure/core-paging";
import {
PipelineLike,
StoragePipelineOptions,
isPipelineLike,
newPipeline
} from "./Pipeline";
import {
appendToURLPath,
appendToURLQuery,
extractConnectionStringParts,
toTags
} from "./utils/utils.common";
import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential";
import { AnonymousCredential } from "./credentials/AnonymousCredential";
import "@azure/core-paging";
import { PageSettings, PagedAsyncIterableIterator } from "@azure/core-paging";
import { truncatedISO8061Date } from "./utils/utils.common";
import { convertTracingToRequestOptionsBase, createSpan } from "./utils/tracing";
import { BlobBatchClient } from "./BlobBatchClient";
import { CommonOptions, StorageClient } from "./StorageClient";
import { Tags } from "./models";
import { AbortSignalLike } from "@azure/abort-controller";
import { AccountSASPermissions } from "./sas/AccountSASPermissions";
import { AccountSASServices } from "./sas/AccountSASServices";
import { AnonymousCredential } from "./credentials/AnonymousCredential";
import { BlobBatchClient } from "./BlobBatchClient";
import { ListContainersIncludeType } from "./generated/src";
import { SASProtocol } from "./sas/SASQueryParameters";
import { SasIPRange } from "./sas/SasIPRange";
import { SpanStatusCode } from "@azure/core-tracing";
import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential";
import { Tags } from "./models";
import { generateAccountSASQueryParameters } from "./sas/AccountSASSignatureValues";
import { AccountSASServices } from "./sas/AccountSASServices";
import { ListContainersIncludeType } from "./generated/src";
import { truncatedISO8061Date } from "./utils/utils.common";

/**
* Options to configure the {@link BlobServiceClient.getProperties} operation.
Expand Down
Loading