[Storage] Rename storage-file to storage-file-share (#5734)

This commit is contained in:
Ramya Rao 2019-10-24 13:46:37 -07:00 коммит произвёл GitHub
Родитель d01f4c26bd
Коммит 9c84d46fbe
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
392 изменённых файлов: 603 добавлений и 130 удалений

Просмотреть файл

@ -100,10 +100,10 @@ known_content_issues:
- ["sdk/storage/storage-blob/swagger/README.md", "#1583"]
- ["sdk/storage/storage-blob/samples/README.md", "#1583"]
- ["sdk/storage/storage-blob/test/README.md", "#1583"]
- ["sdk/storage/storage-file/README.md", "#1583"]
- ["sdk/storage/storage-file/swagger/README.md", "#1583"]
- ["sdk/storage/storage-file/samples/README.md", "#1583"]
- ["sdk/storage/storage-file/test/README.md", "#1583"]
- ["sdk/storage/storage-file-share/README.md", "#1583"]
- ["sdk/storage/storage-file-share/swagger/README.md", "#1583"]
- ["sdk/storage/storage-file-share/samples/README.md", "#1583"]
- ["sdk/storage/storage-file-share/test/README.md", "#1583"]
- ["sdk/storage/storage-queue/README.md", "#1583"]
- ["sdk/storage/storage-queue/swagger/README.md", "#1583"]
- ["sdk/storage/storage-queue/samples/README.md", "#1583"]

Просмотреть файл

@ -114,7 +114,7 @@ function isPackageFolderPath(folderPath: string, packagesToIgnore: string[]): bo
export const packagesToIgnore: string[] = [
"@azure/cosmos",
"@azure/storage-blob",
"@azure/storage-file",
"@azure/storage-file-share",
"@azure/storage-queue",
"@azure/event-hubs",
"@azure/event-processor-host",

Просмотреть файл

@ -22,7 +22,7 @@ The libraries released in July preview:
- [@azure/storage-blob@next](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-blob)
- [@azure/storage-queue@next](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-queue)
- [@azure/storage-file@next](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file)
- [@azure/storage-file-share@next](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file-share)
- [@azure/keyvault-keys@next](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/keyvault/keyvault-keys)
- [@azure/keyvault-secrets@next](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/keyvault/keyvault-secrets)
- [@azure/event-hubs@next](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/eventhub/event-hubs)

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -15,7 +15,7 @@ trigger:
- sdk/servicebus/service-bus/
- sdk/storage/storage-blob/
- sdk/storage/storage-datalake/
- sdk/storage/storage-file/
- sdk/storage/storage-file-share/
- sdk/storage/storage-queue/
- sdk/template/template/

Просмотреть файл

@ -15,7 +15,7 @@ pr:
- sdk/servicebus/service-bus/
- sdk/storage/storage-blob/
- sdk/storage/storage-datalake/
- sdk/storage/storage-file/
- sdk/storage/storage-file-share/
- sdk/storage/storage-queue/
- sdk/template/template/

Просмотреть файл

@ -170,7 +170,7 @@
| [`@azure/servicefabric`]( sdk/servicefabric/servicefabric/package.json )| [Readme](sdk/servicefabric/servicefabric/README.md) | N/A | N/A |
| [`@azure/storage-blob`]( sdk/storage/storage-blob/package.json )| [Readme](sdk/storage/storage-blob/README.md) | [Changelog](sdk/storage/storage-blob/ChangeLog.md) | N/A |
| [`@azure/storage-datalake`]( sdk/storage/storage-datalake/package.json )| [Readme](sdk/storage/storage-datalake/README.md) | N/A | N/A |
| [`@azure/storage-file`]( sdk/storage/storage-file/package.json )| [Readme](sdk/storage/storage-file/README.md) | [Changelog](sdk/storage/storage-file/ChangeLog.md) | N/A |
| [`@azure/storage-file-share`]( sdk/storage/storage-file-share/package.json )| [Readme](sdk/storage/storage-file-share/README.md) | [Changelog](sdk/storage/storage-file-share/ChangeLog.md) | N/A |
| [`@azure/storage-queue`]( sdk/storage/storage-queue/package.json )| [Readme](sdk/storage/storage-queue/README.md) | [Changelog](sdk/storage/storage-queue/ChangeLog.md) | N/A |
| [`cosmos-change-feed`]( sdk/cosmosdb/cosmos/samples/ChangeFeed/package.json )| [Readme](sdk/cosmosdb/cosmos/samples/ChangeFeed/README.md) | N/A | N/A |
| [`cosmos-container-management`]( sdk/cosmosdb/cosmos/samples/ContainerManagement/package.json )| [Readme](sdk/cosmosdb/cosmos/samples/ContainerManagement/README.md) | N/A | N/A |

Просмотреть файл

@ -432,8 +432,8 @@
"versionPolicyName": "client"
},
{
"packageName": "@azure/storage-file",
"projectFolder": "sdk/storage/storage-file",
"packageName": "@azure/storage-file-share",
"projectFolder": "sdk/storage/storage-file-share",
"versionPolicyName": "client"
},
{

Просмотреть файл

@ -5,11 +5,11 @@ Azure Storage is a Microsoft-managed service providing cloud storage that is hig
This project provides client libraries in JavaScript that makes it easy to consume Microsoft Azure Storage service.
- [Source Code - Blob](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-blob)
- [Source Code - File](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file)
- [Source Code - File](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file-share)
- [Source Code - Queue](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-queue)
- [Product documentation](https://docs.microsoft.com/en-us/azure/storage)
- @azure/storage-blob [Package (npm)](https://www.npmjs.com/package/@azure/storage-blob/v/12.0.0-preview.5)
- @azure/storage-file [Package (npm)](https://www.npmjs.com/package/@azure/storage-file/v/12.0.0-preview.5)
- @azure/storage-file-share [Package (npm)](https://www.npmjs.com/package/@azure/storage-file-share/v/12.0.0-preview.5)
- @azure/storage-queue [Package (npm)](https://www.npmjs.com/package/@azure/storage-queue/v/12.0.0-preview.5)
- [API Reference documentation](https://azure.github.io/azure-sdk-for-js)
- [Azure Storage REST APIs](https://docs.microsoft.com/en-us/rest/api/storageservices/)
@ -118,7 +118,7 @@ To use the client libraries with JS bundle in the browsers, simply add a script
```html
<script src="https://mydomain/azure-storage-blob.min.js"></script>
<script src="https://mydomain/azure-storage-file.min.js"></script>
<script src="https://mydomain/azure-storage-file-share.min.js"></script>
<script src="https://mydomain/azure-storage-queue.min.js"></script>
```
@ -323,8 +323,8 @@ More samples
- [Blob Storage Examples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-blob/samples)
- [Blob Storage Examples - Test Cases](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-blob/test/)
- [File Storage Examples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file/samples)
- [File Storage Examples - Test Cases](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file/test)
- [File Storage Examples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file-share/samples)
- [File Storage Examples - Test Cases](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file-share/test)
- [Queue Storage Examples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-queue/samples)
- [Queue Storage Examples - Test Cases](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-queue/test)

Просмотреть файл

@ -40,7 +40,7 @@ stages:
Artifacts:
- name: azure-storage-blob
safeName: azurestorageblob
- name: azure-storage-file
safeName: azurestoragefile
- name: azure-storage-file-share
safeName: azurestoragefileshare
- name: azure-storage-queue
safeName: azurestoragequeue

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

Просмотреть файл

@ -73,7 +73,7 @@
- Added `DirectoryClient.listHandlesSegment()` and `FileClient.listHandlesSegment()` to returns a list of open handles on a directory or a file.
- Added `DirectoryClient.forceCloseHandlesSegment()`, `FileClient.forceCloseHandlesSegment()`, `DirectoryClient.forceCloseHandle()` and `FileClient.forceCloseHandle()` to close handles.
- Pass through `options.abortSignal` to the optional `abortSignal` attribute in option bags instead of using `AbortSignal.none` as the default value when `options.abortSignal` is not specified.
- Basic HTTP proxy authentication support is added. Proxy settings can be passed in the options while creating a new client. Example - [typescript/proxyAuth.ts](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/storage/storage-file/samples/typescript/proxyAuth.ts)
- Basic HTTP proxy authentication support is added. Proxy settings can be passed in the options while creating a new client. Example - [typescript/proxyAuth.ts](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/storage/storage-file-share/samples/typescript/proxyAuth.ts)
- Connection strings for explicit storage endpoints are supported. - [Configure Azure Storage connection strings](https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string#create-a-connection-string-for-an-explicit-storage-endpoint)
## 2019.08 12.0.0-preview.2

Просмотреть файл

@ -6,11 +6,11 @@ This project provides a client library in JavaScript that makes it easy to consu
Version: 12.0.0-preview.5
- [Package (npm)](https://www.npmjs.com/package/@azure/storage-blob/v/12.0.0-preview.5)
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file/samples)
- [API Reference Documentation](https://azure.github.io/azure-sdk-for-js/storage-file/index.html)
- [Package (npm)](https://www.npmjs.com/package/@azure/storage-file-share/v/12.0.0-preview.5)
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file-share/samples)
- [API Reference Documentation](https://azure.github.io/azure-sdk-for-js/storage-file-share/index.html)
- [Product documentation](https://docs.microsoft.com/en-us/azure/storage/files/storage-files-introduction)
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file)
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file-share)
- [Azure Storage File REST APIs](https://docs.microsoft.com/en-us/rest/api/storageservices/file-service-rest-api)
## Key concepts
@ -77,19 +77,19 @@ There are differences between Node.js and browsers runtime. When getting started
The preferred way to install the Azure File Storage client library for JavaScript is to use the npm package manager. Simply type the following into a terminal window:
```bash
npm install @azure/storage-file@12.0.0-preview.5
npm install @azure/storage-file-share@12.0.0-preview.5
```
In your TypeScript or JavaScript file, import via following:
```javascript
import * as Azure from "@azure/storage-file";
import * as Azure from "@azure/storage-file-share";
```
Or
```javascript
const Azure = require("@azure/storage-file");
const Azure = require("@azure/storage-file-share");
```
### JavaScript bundle
@ -97,7 +97,7 @@ const Azure = require("@azure/storage-file");
To use the library with JS bundle in the browsers, simply add a script tag to your HTML pages pointing to the downloaded JS bundle file(s):
```html
<script src="https://mydomain/azure-storage-file.min.js"></script>
<script src="https://mydomain/azure-storage-file-share.min.js"></script>
```
The JS bundled file is compatible with [UMD](https://github.com/umdjs/umd) standard, if no module system found, following global variable(s) will be exported:
@ -124,11 +124,11 @@ For example, you can create following CORS settings for debugging. But please cu
### Import types
You can use the `const Azure = require("@azure/storage-file");` shown above then use types and functions from `Azure`.
You can use the `const Azure = require("@azure/storage-file-share");` shown above then use types and functions from `Azure`.
Or you can selectively import certain types,
```javascript
const { FileServiceClient, SharedKeyCredential } = require("@azure/storage-file");
const { FileServiceClient, SharedKeyCredential } = require("@azure/storage-file-share");
);
```
@ -240,7 +240,7 @@ while (!item.done) {
}
```
For a complete sample on iterating please see [samples/iterators-files-and-directories.ts](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/storage/storage-file/samples/typescript/iterators-files-and-directories.ts).
For a complete sample on iterating please see [samples/iterators-files-and-directories.ts](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/storage/storage-file-share/samples/typescript/iterators-files-and-directories.ts).
### Download a file and convert it to a string (Node.js)
@ -292,7 +292,7 @@ export async function blobToString(blob: Blob): Promise<string> {
}
```
A complete example of basic scenarios is at [samples/basic.ts](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/storage/storage-file/samples/typescript/basic.ts).
A complete example of basic scenarios is at [samples/basic.ts](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/storage/storage-file-share/samples/typescript/basic.ts).
## Troubleshooting
@ -336,8 +336,8 @@ const fileServiceClient = new FileServiceClient(
More code samples
- [File Storage Examples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file/samples)
- [File Storage Examples - Test Cases](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file/test)
- [File Storage Examples](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file-share/samples)
- [File Storage Examples - Test Cases](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-file-share/test)
## Contributing

Просмотреть файл

@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./typings/storage-file.d.ts"
"publicTrimmedFilePath": "./typings/storage-file-share.d.ts"
},
"messages": {
"tsdocMessageReporting": {

Просмотреть файл

@ -7,8 +7,8 @@ const zipFileName = `azurestoragejs.file-${version}.zip`;
gulp.task("zip", function (callback) {
gulp
.src([
"browser/azure-storage-file.js",
"browser/azure-storage-file.min.js",
"browser/azure-storage-file-share.js",
"browser/azure-storage-file-share.min.js",
"browser/*.txt"
])
.pipe(zip(zipFileName))

Просмотреть файл

@ -1,12 +1,12 @@
{
"name": "@azure/storage-file",
"name": "@azure/storage-file-share",
"sdk-type": "client",
"version": "12.0.0-preview.5",
"description": "Microsoft Azure Storage SDK for JavaScript - File",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
"browser": {
"./dist/index.js": "./browser/azure-storage-file.min.js",
"./dist/index.js": "./browser/azure-storage-file-share.min.js",
"./dist-esm/src/index.js": "./dist-esm/src/index.browser.js",
"./dist-esm/src/credentials/SharedKeyCredential.js": "./dist-esm/src/credentials/SharedKeyCredential.browser.js",
"./dist-esm/test/utils/index.js": "./dist-esm/test/utils/index.browser.js",
@ -37,7 +37,7 @@
"integration-test:node": "nyc mocha --require source-map-support/register --reporter mocha-multi --reporter-options spec=-,mocha-junit-reporter=- --full-trace -t 120000 --retries 2 dist-test/index.node.js",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"lint:fix": "eslint -c ../../.eslintrc.json src test samples --ext .ts --fix",
"lint": "eslint -c ../../.eslintrc.json src test samples --ext .ts -f html -o storage-file-lintReport.html || exit 0",
"lint": "eslint -c ../../.eslintrc.json src test samples --ext .ts -f html -o storage-file-share-lintReport.html || exit 0",
"pack": "npm pack 2>&1",
"prebuild": "npm run clean",
"test:browser": "npm run clean && npm run build:test && npm run integration-test:browser",

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше