ServiceClient class

생성자

ServiceClient(ServiceClientCredentials | TokenCredential, ServiceClientOptions)

ServiceClient 생성자

메서드

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

제공된 OperationSpec을 사용하여 채워진 HTTP 요청을 보냅니다.

sendRequest(RequestPrepareOptions | WebResourceLike)

제공된 httpRequest를 보냅니다.

생성자 세부 정보

ServiceClient(ServiceClientCredentials | TokenCredential, ServiceClientOptions)

ServiceClient 생성자

new ServiceClient(credentials?: ServiceClientCredentials | TokenCredential, options?: ServiceClientOptions)

매개 변수

credentials

ServiceClientCredentials | TokenCredential

인증에 사용되는 자격 증명 개체입니다.

options
ServiceClientOptions

클라이언트의 동작을 제어하는 서비스 클라이언트 옵션입니다.

메서드 세부 정보

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

제공된 OperationSpec을 사용하여 채워진 HTTP 요청을 보냅니다.

function sendOperationRequest(operationArguments: OperationArguments, operationSpec: OperationSpec, callback?: ServiceCallback<any>): Promise<RestResponse>

매개 변수

operationArguments
OperationArguments

HTTP 요청의 템플릿 값이 채워지는 인수입니다.

operationSpec
OperationSpec

httpRequest를 채우는 데 사용할 OperationSpec입니다.

callback

ServiceCallback<any>

응답을 받을 때 호출할 콜백입니다.

반환

Promise<RestResponse>

sendRequest(RequestPrepareOptions | WebResourceLike)

제공된 httpRequest를 보냅니다.

function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>

매개 변수

반환