/
storageClient.ts
43 lines (40 loc) · 1.19 KB
/
storageClient.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* 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 {
Service,
Container,
Blob,
PageBlob,
AppendBlob,
BlockBlob
} from "./operations";
import { StorageClientContext } from "./storageClientContext";
import { StorageClientOptionalParams } from "./models";
export class StorageClient extends StorageClientContext {
/**
* Initializes a new instance of the StorageClient class.
* @param url The URL of the service account, container, or blob that is the target of the desired
* operation.
* @param options The parameter options
*/
constructor(url: string, options?: StorageClientOptionalParams) {
super(url, options);
this.service = new Service(this);
this.container = new Container(this);
this.blob = new Blob(this);
this.pageBlob = new PageBlob(this);
this.appendBlob = new AppendBlob(this);
this.blockBlob = new BlockBlob(this);
}
service: Service;
container: Container;
blob: Blob;
pageBlob: PageBlob;
appendBlob: AppendBlob;
blockBlob: BlockBlob;
}