import * as msRest from "@azure/ms-rest-js" ; import * as Models from "../models" ; import * as Mappers from "../models/sSHKeyMappers" ; import * as Parameters from "../models/parameters" ; import { KuduClientContext } from "../kuduClientContext" ; /** Class representing a SSHKey. */ export class SSHKey { private readonly client : KuduClientContext ; param { KuduClientContext } client constructor ( client ) { this . client = client ; } param options returns getPublicKey ( options ? ) ; param callback getPublicKey ( callback ) ; param options param callback getPublicKey ( options , callback ) ; getPublicKey ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getPublicKeyOperationSpec , callback ) as Promise < Models . SSHKeyGetPublicKeyResponse > ; } param options returns setPrivateKey ( options ? ) ; param callback setPrivateKey ( callback ) ; param options param callback setPrivateKey ( options , callback ) ; setPrivateKey ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , setPrivateKeyOperationSpec , callback ) ; } param options returns deleteKeyPair ( options ? ) ; param callback deleteKeyPair ( callback ) ; param options param callback deleteKeyPair ( options , callback ) ; deleteKeyPair ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , deleteKeyPairOperationSpec , callback ) ; } param options returns getPublicKey1 ( options ? ) ; param callback getPublicKey1 ( callback ) ; param options param callback getPublicKey1 ( options , callback ) ; getPublicKey1 ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , getPublicKey1OperationSpec , callback ) as Promise < Models . SSHKeyGetPublicKey1Response > ; } param options returns setPrivateKey1 ( options ? ) ; param callback setPrivateKey1 ( callback ) ; param options param callback setPrivateKey1 ( options , callback ) ; setPrivateKey1 ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , setPrivateKey1OperationSpec , callback ) ; } param options returns deleteKeyPair1 ( options ? ) ; param callback deleteKeyPair1 ( callback ) ; param options param callback deleteKeyPair1 ( options , callback ) ; deleteKeyPair1 ( options ? , callback ? ) { return this . client . sendOperationRequest ( { options } , deleteKeyPair1OperationSpec , callback ) ; } } const serializer = new msRest . Serializer ( Mappers ) ; const getPublicKeyOperationSpec = { httpMethod : "GET" , path : "sshkey" , queryParameters : [ Parameters . ensurePublicKey ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "String" } } } , default : { } } , serializer } ; const setPrivateKeyOperationSpec = { httpMethod : "PUT" , path : "sshkey" , responses : { 204 : { } , default : { } } , serializer } ; const deleteKeyPairOperationSpec = { httpMethod : "DELETE" , path : "sshkey" , responses : { 204 : { } , default : { } } , serializer } ; const getPublicKey1OperationSpec = { httpMethod : "GET" , path : "api/sshkey" , queryParameters : [ Parameters . ensurePublicKey ] , responses : { 200 : { bodyMapper : { serializedName : "parsedResponse" , type : { name : "String" } } } , default : { } } , serializer } ; const setPrivateKey1OperationSpec = { httpMethod : "PUT" , path : "api/sshkey" , responses : { 204 : { } , default : { } } , serializer } ; const deleteKeyPair1OperationSpec = { httpMethod : "DELETE" , path : "api/sshkey" , responses : { 204 : { } , default : { } } , serializer } ;