import { CommunityGalleryImageVersions } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { ComputeManagementClient } from "../computeManagementClient" ; import { CommunityGalleryImageVersionsGetOptionalParams , CommunityGalleryImageVersionsGetResponse } from "../models" ; /** Class containing CommunityGalleryImageVersions operations. */ export class CommunityGalleryImageVersionsImpl implements CommunityGalleryImageVersions { private readonly client : ComputeManagementClient ; param client constructor ( client ) { this . client = client ; } param location param publicGalleryName param galleryImageName param galleryImageVersionName param options get ( location , publicGalleryName , galleryImageName , galleryImageVersionName , options ? ) { return this . client . sendOperationRequest ( { location , publicGalleryName , galleryImageName , galleryImageVersionName , options } , getOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const getOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . CommunityGalleryImageVersion } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . location , Parameters . galleryImageName , Parameters . galleryImageVersionName , Parameters . publicGalleryName ] , headerParameters : [ Parameters . accept ] , serializer } ;