UNPKG

@azure/storage-file-datalake

Version:
64 lines 2.02 kB
"use strict"; /* * 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ServiceImpl = void 0; const tslib_1 = require("tslib"); const coreClient = tslib_1.__importStar(require("@azure/core-client")); const Mappers = tslib_1.__importStar(require("../models/mappers.js")); const Parameters = tslib_1.__importStar(require("../models/parameters.js")); /** Class containing Service operations. */ class ServiceImpl { client; /** * Initialize a new instance of the class Service class. * @param client Reference to the service client */ constructor(client) { this.client = client; } /** * List filesystems and their properties in given account. * @param options The options parameters. */ listFileSystems(options) { return this.client.sendOperationRequest({ options }, listFileSystemsOperationSpec); } } exports.ServiceImpl = ServiceImpl; // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listFileSystemsOperationSpec = { path: "/", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.FileSystemList, headersMapper: Mappers.ServiceListFileSystemsHeaders }, default: { bodyMapper: Mappers.StorageError, headersMapper: Mappers.ServiceListFileSystemsExceptionHeaders } }, queryParameters: [ Parameters.resource, Parameters.prefix, Parameters.continuation, Parameters.maxResults, Parameters.timeout ], urlParameters: [Parameters.url], headerParameters: [ Parameters.accept, Parameters.requestId, Parameters.version ], serializer }; //# sourceMappingURL=service.js.map