import { FileServices } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { StorageManagementClient } from "../storageManagementClient" ; import { FileServicesListOptionalParams , FileServicesListResponse , FileServiceProperties , FileServicesSetServicePropertiesOptionalParams , FileServicesSetServicePropertiesResponse , FileServicesGetServicePropertiesOptionalParams , FileServicesGetServicePropertiesResponse } from "../models" ; /** Class containing FileServices operations. */ export class FileServicesImpl implements FileServices { private readonly client : StorageManagementClient ; param client constructor ( client ) { this . client = client ; } param resourceGroupName param accountName param options list ( resourceGroupName , accountName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , accountName , options } , listOperationSpec ) ; } param resourceGroupName param accountName param parameters param options setServiceProperties ( resourceGroupName , accountName , parameters , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , accountName , parameters , options } , setServicePropertiesOperationSpec ) ; } param resourceGroupName param accountName param options getServiceProperties ( resourceGroupName , accountName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , accountName , options } , getServicePropertiesOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const listOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . FileServiceItems } , default : { bodyMapper : Mappers . CloudErrorAutoGenerated } } , 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 . CloudErrorAutoGenerated } } , 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 . CloudErrorAutoGenerated } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . accountName1 , Parameters . fileServicesName ] , headerParameters : [ Parameters . accept ] , serializer } ;