import { StringOperations } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { BodyStringClient } from "../bodyStringClient" ; import { StringGetNullOptionalParams , StringGetNullResponse , StringPutNullOptionalParams , StringGetEmptyOptionalParams , StringGetEmptyResponse , StringPutEmptyOptionalParams , StringGetMbcsOptionalParams , StringGetMbcsResponse , StringPutMbcsOptionalParams , StringGetWhitespaceOptionalParams , StringGetWhitespaceResponse , StringPutWhitespaceOptionalParams , StringGetNotProvidedOptionalParams , StringGetNotProvidedResponse , StringGetBase64EncodedOptionalParams , StringGetBase64EncodedResponse , StringGetBase64UrlEncodedOptionalParams , StringGetBase64UrlEncodedResponse , StringPutBase64UrlEncodedOptionalParams , StringGetNullBase64UrlEncodedOptionalParams , StringGetNullBase64UrlEncodedResponse } from "../models" ; /** Class containing StringOperations operations. */ export class StringOperationsImpl implements StringOperations { private readonly client : BodyStringClient ; param client constructor ( client ) { this . client = client ; } param options getNull ( options ? ) { return this . client . sendOperationRequest ( { options } , getNullOperationSpec ) ; } param options putNull ( options ? ) { return this . client . sendOperationRequest ( { options } , putNullOperationSpec ) ; } param options getEmpty ( options ? ) { return this . client . sendOperationRequest ( { options } , getEmptyOperationSpec ) ; } param options putEmpty ( options ? ) { return this . client . sendOperationRequest ( { options } , putEmptyOperationSpec ) ; } param options getMbcs ( options ? ) { return this . client . sendOperationRequest ( { options } , getMbcsOperationSpec ) ; } param options putMbcs ( options ? ) { return this . client . sendOperationRequest ( { options } , putMbcsOperationSpec ) ; } param options getWhitespace ( options ? ) { return this . client . sendOperationRequest ( { options } , getWhitespaceOperationSpec ) ; } param options putWhitespace ( options ? ) { return this . client . sendOperationRequest ( { options } , putWhitespaceOperationSpec ) ; } param options getNotProvided ( options ? ) { return this . client . sendOperationRequest ( { options } , getNotProvidedOperationSpec ) ; } param options getBase64Encoded ( options ? ) { return this . client . sendOperationRequest ( { options } , getBase64EncodedOperationSpec ) ; } param options getBase64UrlEncoded ( options ? ) { return this . client . sendOperationRequest ( { options } , getBase64UrlEncodedOperationSpec ) ; } param stringBody param options putBase64UrlEncoded ( stringBody , options ? ) { return this . client . sendOperationRequest ( { stringBody , options } , putBase64UrlEncodedOperationSpec ) ; } param options getNullBase64UrlEncoded ( options ? ) { return this . client . sendOperationRequest ( { options } , getNullBase64UrlEncodedOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const getNullOperationSpec = { path : "/string/null" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "String" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const putNullOperationSpec = { path : "/string/null" , httpMethod : "PUT" , responses : { 200 : { } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . stringBody , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getEmptyOperationSpec = { path : "/string/empty" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "String" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const putEmptyOperationSpec = { path : "/string/empty" , httpMethod : "PUT" , responses : { 200 : { } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . stringBody1 , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getMbcsOperationSpec = { path : "/string/mbcs" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "String" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const putMbcsOperationSpec = { path : "/string/mbcs" , httpMethod : "PUT" , responses : { 200 : { } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . stringBody2 , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getWhitespaceOperationSpec = { path : "/string/whitespace" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "String" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const putWhitespaceOperationSpec = { path : "/string/whitespace" , httpMethod : "PUT" , responses : { 200 : { } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . stringBody3 , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getNotProvidedOperationSpec = { path : "/string/notProvided" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "String" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const getBase64EncodedOperationSpec = { path : "/string/base64Encoding" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "ByteArray" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const getBase64UrlEncodedOperationSpec = { path : "/string/base64UrlEncoding" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Base64Url" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ; const putBase64UrlEncodedOperationSpec = { path : "/string/base64UrlEncoding" , httpMethod : "PUT" , responses : { 200 : { } , default : { bodyMapper : Mappers . ErrorModel } } , requestBody : Parameters . stringBody4 , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept , Parameters . contentType ] , mediaType : "json" , serializer } ; const getNullBase64UrlEncodedOperationSpec = { path : "/string/nullBase64UrlEncoding" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Base64Url" } } } , default : { bodyMapper : Mappers . ErrorModel } } , urlParameters : [ Parameters . $host ] , headerParameters : [ Parameters . accept ] , serializer } ;