UNPKG

@azure/arm-compute

Version:
49 lines 1.71 kB
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; /** Class containing CommunityGalleries operations. */ export class CommunityGalleriesImpl { client; /** * Initialize a new instance of the class CommunityGalleries class. * @param client Reference to the service client */ constructor(client) { this.client = client; } /** * Get a community gallery by gallery public name. * @param location The name of Azure region. * @param publicGalleryName The public name of the community gallery. * @param options The options parameters. */ get(location, publicGalleryName, options) { return this.client.sendOperationRequest({ location, publicGalleryName, options }, getOperationSpec); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.CommunityGallery, }, default: { bodyMapper: Mappers.CloudError, }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location, Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], serializer, }; //# sourceMappingURL=communityGalleries.js.map