UNPKG

appcenter-cli

Version:

Command line tool for Visual Studio App Center

81 lines (80 loc) 3.04 kB
"use strict"; /* * 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.BugTrackerImpl = void 0; const coreClient = require("@azure/core-client"); const Mappers = require("../models/mappers"); const Parameters = require("../models/parameters"); /** Class containing BugTracker operations. */ class BugTrackerImpl { /** * Initialize a new instance of the class BugTracker class. * @param client Reference to the service client */ constructor(client) { this.client = client; } /** * Get project issue related to a crash group * @param crashGroupId CrashGroup Id * @param ownerName The name of the owner * @param appName The name of the application * @param options The options parameters. */ getRepoIssueFromCrash(crashGroupId, ownerName, appName, options) { return this.client.sendOperationRequest({ crashGroupId, ownerName, appName, options }, getRepoIssueFromCrashOperationSpec); } /** * Get bug tracker settings for a particular app * @param ownerName The name of the owner * @param appName The name of the application * @param options The options parameters. */ getSettings(ownerName, appName, options) { return this.client.sendOperationRequest({ ownerName, appName, options }, getSettingsOperationSpec); } } exports.BugTrackerImpl = BugTrackerImpl; // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getRepoIssueFromCrashOperationSpec = { path: "/v0.1/apps/{owner_name}/{app_name}/bugtracker/crashGroup/{crash_group_id}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.Paths1G7Ul4DV01AppsOwnerNameAppNameBugtrackerCrashgroupCrashGroupIdGetResponses200ContentApplicationJsonSchema }, default: { bodyMapper: Mappers.Paths1F8VktkV01AppsOwnerNameAppNameBugtrackerCrashgroupCrashGroupIdGetResponsesDefaultContentApplicationJsonSchema } }, urlParameters: [ Parameters.$host, Parameters.ownerName, Parameters.appName, Parameters.crashGroupId ], headerParameters: [Parameters.accept], serializer }; const getSettingsOperationSpec = { path: "/v0.1/apps/{owner_name}/{app_name}/bugtracker", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.Paths7O6EcbV01AppsOwnerNameAppNameBugtrackerGetResponses200ContentApplicationJsonSchema }, default: { bodyMapper: Mappers.Paths3CngdnV01AppsOwnerNameAppNameBugtrackerGetResponsesDefaultContentApplicationJsonSchema } }, urlParameters: [Parameters.$host, Parameters.ownerName, Parameters.appName], headerParameters: [Parameters.accept], serializer };