import { SystemAssignedIdentities } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { ManagedServiceIdentityClient } from "../managedServiceIdentityClient" ; import { SystemAssignedIdentitiesGetByScopeOptionalParams , SystemAssignedIdentitiesGetByScopeResponse } from "../models" ; /** Class containing SystemAssignedIdentities operations. */ export class SystemAssignedIdentitiesImpl implements SystemAssignedIdentities { private readonly client : ManagedServiceIdentityClient ; param client constructor ( client ) { this . client = client ; } param scope param options getByScope ( scope , options ? ) { return this . client . sendOperationRequest ( { scope , options } , getByScopeOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const getByScopeOperationSpec = { path : "/{scope}/providers/Microsoft.ManagedIdentity/identities/default" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . SystemAssignedIdentity } , default : { bodyMapper : Mappers . CloudError } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . scope ] , headerParameters : [ Parameters . accept ] , serializer } ;