import { VirtualMachineExtensionImages } 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 { VirtualMachineExtensionImagesGetOptionalParams , VirtualMachineExtensionImagesGetResponse , VirtualMachineExtensionImagesListTypesOptionalParams , VirtualMachineExtensionImagesListTypesResponse , VirtualMachineExtensionImagesListVersionsOptionalParams , VirtualMachineExtensionImagesListVersionsResponse } from "../models" ; /** Class containing VirtualMachineExtensionImages operations. */ export class VirtualMachineExtensionImagesImpl implements VirtualMachineExtensionImages { private readonly client : ComputeManagementClient ; param client constructor ( client ) { this . client = client ; } param location param publisherName param version param typeParam param options get ( location , publisherName , version , typeParam , options ? ) { return this . client . sendOperationRequest ( { location , publisherName , version , typeParam , options } , getOperationSpec ) ; } param location param publisherName param options listTypes ( location , publisherName , options ? ) { return this . client . sendOperationRequest ( { location , publisherName , options } , listTypesOperationSpec ) ; } param location param publisherName param typeParam param options listVersions ( location , publisherName , typeParam , options ? ) { return this . client . sendOperationRequest ( { location , publisherName , typeParam , options } , listVersionsOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const getOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . VirtualMachineExtensionImage } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . location , Parameters . publisherName , Parameters . typeParam , Parameters . version ] , headerParameters : [ Parameters . accept ] , serializer } ; const listTypesOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Sequence" , element : { type : { name : "Composite" , className : "VirtualMachineExtensionImage" } } } } } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . location , Parameters . publisherName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listVersionsOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions" , httpMethod : "GET" , responses : { 200 : { bodyMapper : { type : { name : "Sequence" , element : { type : { name : "Composite" , className : "VirtualMachineExtensionImage" } } } } } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . top , Parameters . orderby ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . location , Parameters . publisherName , Parameters . typeParam ] , headerParameters : [ Parameters . accept ] , serializer } ;