import * as msRest from "@azure/ms-rest-js" ; import * as Models from "../models" ; import * as Mappers from "../models/zipMappers" ; import * as Parameters from "../models/parameters" ; import { KuduClientContext } from "../kuduClientContext" ; /** Class representing a Zip. */ export class Zip { private readonly client : KuduClientContext ; param { KuduClientContext } client constructor ( client ) { this . client = client ; } param path param options returns getItem ( path , options ? ) ; param path param callback getItem ( path , callback ) ; param path param options param callback getItem ( path , options , callback ) ; getItem ( path , options ? , callback ? ) { return this . client . sendOperationRequest ( { path , options } , getItemOperationSpec , callback ) ; } param file param path param options returns putItem ( file , path , options ? ) ; param file param path param callback putItem ( file , path , callback ) ; param file param path param options param callback putItem ( file , path , options , callback ) ; putItem ( file , path , options ? , callback ? ) { return this . client . sendOperationRequest ( { file , path , options } , putItemOperationSpec , callback ) as Promise < Models . ZipPutItemResponse > ; } param path param options returns getItem1 ( path , options ? ) ; param path param callback getItem1 ( path , callback ) ; param path param options param callback getItem1 ( path , options , callback ) ; getItem1 ( path , options ? , callback ? ) { return this . client . sendOperationRequest ( { path , options } , getItem1OperationSpec , callback ) ; } param path param options returns getItem2 ( path , options ? ) ; param path param callback getItem2 ( path , callback ) ; param path param options param callback getItem2 ( path , options , callback ) ; getItem2 ( path , options ? , callback ? ) { return this . client . sendOperationRequest ( { path , options } , getItem2OperationSpec , callback ) ; } param file param path param options returns putItem1 ( file , path , options ? ) ; param file param path param callback putItem1 ( file , path , callback ) ; param file param path param options param callback putItem1 ( file , path , options , callback ) ; putItem1 ( file , path , options ? , callback ? ) { return this . client . sendOperationRequest ( { file , path , options } , putItem1OperationSpec , callback ) as Promise < Models . ZipPutItem1Response > ; } param path param options returns getItem3 ( path , options ? ) ; param path param callback getItem3 ( path , callback ) ; param path param options param callback getItem3 ( path , options , callback ) ; getItem3 ( path , options ? , callback ? ) { return this . client . sendOperationRequest ( { path , options } , getItem3OperationSpec , callback ) ; } } const serializer = new msRest . Serializer ( Mappers ) ; const getItemOperationSpec = { httpMethod : "GET" , path : "zip/{path}" , urlParameters : [ Parameters . path ] , responses : { 200 : { } , default : { } } , serializer } ; const putItemOperationSpec = { httpMethod : "PUT" , path : "zip/{path}" , urlParameters : [ Parameters . path ] , requestBody : { parameterPath : "file" , mapper : { required : true , serializedName : "file" , type : { name : "Stream" } } } , contentType : "application/octet-stream" , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , 201 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , 204 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getItem1OperationSpec = { httpMethod : "HEAD" , path : "zip/{path}" , urlParameters : [ Parameters . path ] , responses : { 200 : { } , default : { } } , serializer } ; const getItem2OperationSpec = { httpMethod : "GET" , path : "api/zip/{path}" , urlParameters : [ Parameters . path ] , responses : { 200 : { } , default : { } } , serializer } ; const putItem1OperationSpec = { httpMethod : "PUT" , path : "api/zip/{path}" , urlParameters : [ Parameters . path ] , requestBody : { parameterPath : "file" , mapper : { required : true , serializedName : "file" , type : { name : "Stream" } } } , contentType : "application/octet-stream" , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , 201 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , 204 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "Object" } } } , default : { } } , serializer } ; const getItem3OperationSpec = { httpMethod : "HEAD" , path : "api/zip/{path}" , urlParameters : [ Parameters . path ] , responses : { 200 : { } , default : { } } , serializer } ;