UNPKG

node-nlp

Version:

Library for NLU (Natural Language Understanding) done in Node.js

77 lines 2.13 kB
"use strict"; /* * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ Object.defineProperty(exports, "__esModule", { value: true }); const msRest = require("ms-rest-js"); const Mappers = require("../models/attachmentsMappers"); const Parameters = require("../models/parameters"); /** Class representing a Attachments. */ class Attachments { /** * Create a Attachments. * @param {ConnectorClientContext} client Reference to the service client. */ constructor(client) { this.client = client; } getAttachmentInfo(attachmentId, options, callback) { return this.client.sendOperationRequest({ attachmentId, options }, getAttachmentInfoOperationSpec, callback); } getAttachment(attachmentId, viewId, options, callback) { return this.client.sendOperationRequest({ attachmentId, viewId, options }, getAttachmentOperationSpec, callback); } } exports.Attachments = Attachments; // Operation Specifications const serializer = new msRest.Serializer(Mappers); const getAttachmentInfoOperationSpec = { httpMethod: "GET", path: "v3/attachments/{attachmentId}", urlParameters: [ Parameters.attachmentId ], responses: { 200: { bodyMapper: Mappers.AttachmentInfo }, default: { bodyMapper: Mappers.ErrorResponse } }, serializer }; const getAttachmentOperationSpec = { httpMethod: "GET", path: "v3/attachments/{attachmentId}/views/{viewId}", urlParameters: [ Parameters.attachmentId, Parameters.viewId ], responses: { 200: { bodyMapper: { serializedName: "parsedResponse", type: { name: "Stream" } } }, 301: {}, 302: {}, default: { bodyMapper: Mappers.ErrorResponse } }, serializer }; //# sourceMappingURL=attachments.js.map