appcenter-cli
Version:
Command line tool for Visual Studio App Center
59 lines (58 loc) • 1.9 kB
JavaScript
;
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* 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 });
exports.InvitationsImpl = void 0;
const coreClient = require("@azure/core-client");
const Mappers = require("../models/mappers");
const Parameters = require("../models/parameters");
/** Class containing Invitations operations. */
class InvitationsImpl {
/**
* Initialize a new instance of the class Invitations class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Returns all invitations sent by the caller
* @param options The options parameters.
*/
sent(options) {
return this.client.sendOperationRequest({ options }, sentOperationSpec);
}
}
exports.InvitationsImpl = InvitationsImpl;
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const sentOperationSpec = {
path: "/v0.1/invitations/sent",
httpMethod: "GET",
responses: {
200: {
bodyMapper: {
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "Paths1O7H121V01InvitationsSentGetResponses200ContentApplicationJsonSchemaItems"
}
}
}
}
},
default: {
bodyMapper: Mappers.Paths1CtdoowV01InvitationsSentGetResponsesDefaultContentApplicationJsonSchema
}
},
urlParameters: [Parameters.$host],
headerParameters: [Parameters.accept],
serializer
};