UNPKG

appcenter-cli

Version:

Command line tool for Visual Studio App Center

73 lines (67 loc) 2.33 kB
/* * 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. */ import { StoreReleasePublishLogs } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AppCenterClient } from "../appCenterClient"; import { StoreReleasePublishLogsGetOptionalParams } from "../models"; /** Class containing StoreReleasePublishLogs operations. */ export class StoreReleasePublishLogsImpl implements StoreReleasePublishLogs { private readonly client: AppCenterClient; /** * Initialize a new instance of the class StoreReleasePublishLogs class. * @param client Reference to the service client */ constructor(client: AppCenterClient) { this.client = client; } /** * Returns publish logs for a particular release published to a particular store * @param storeName The name of the store * @param releaseId The ID of the realease * @param ownerName The name of the owner * @param appName The name of the application * @param options The options parameters. */ get( storeName: string, releaseId: string, ownerName: string, appName: string, options?: StoreReleasePublishLogsGetOptionalParams ): Promise<void> { return this.client.sendOperationRequest( { storeName, releaseId, ownerName, appName, options }, getOperationSpec ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { path: "/v0.1/apps/{owner_name}/{app_name}/distribution_stores/{store_name}/releases/{release_id}/publish_logs", httpMethod: "GET", responses: { 200: {}, default: { bodyMapper: Mappers.PathsEm3U11V01AppsOwnerNameAppNameDistributionStoresStoreNameReleasesReleaseIdPublishLogsGetResponsesDefaultContentApplicationJsonSchema } }, urlParameters: [ Parameters.$host, Parameters.releaseId, Parameters.ownerName, Parameters.appName, Parameters.storeName ], headerParameters: [Parameters.accept], serializer };