import * as coreClient from "@azure/core-client" ; import * as coreAuth from "@azure/core-auth" ; import { SignedInUserImpl , ApplicationsImpl , DeletedApplicationsImpl , GroupsImpl , ServicePrincipalsImpl , UsersImpl , ObjectsImpl , DomainsImpl , OAuth2PermissionGrantOperationsImpl } from "./operations" ; import { SignedInUser , Applications , DeletedApplications , Groups , ServicePrincipals , Users , Objects , Domains , OAuth2PermissionGrantOperations } from "./operationsInterfaces" ; import { GraphRbacManagementClientOptionalParams } from "./models" ; export class GraphRbacManagementClient extends coreClient . ServiceClient { $host : string ; apiVersion : string ; tenantID : string ; param credentials param tenantID param options constructor ( credentials , tenantID , options ? ) { if ( credentials === undefined ) { throw new Error ( "'credentials' cannot be null" ) ; } if ( tenantID === undefined ) { throw new Error ( "'tenantID' cannot be null" ) ; } if ( ! options ) { options = { } ; } const defaults = { requestContentType : "application/json; charset=utf-8" , credential : credentials } ; const packageDetails = `azsdk-js-graphrbac-data-plane/1.0.0-beta.1` ; const userAgentPrefix = options . userAgentOptions && options . userAgentOptions . userAgentPrefix ? `${ options . userAgentOptions . userAgentPrefix } ${ packageDetails }` : `${ packageDetails }` ; const optionsWithDefaults = { ... defaults , ... options , userAgentOptions : { userAgentPrefix } , baseUri : options . endpoint || "https://graph.windows.net" } ; super ( optionsWithDefaults ) ; this . tenantID = tenantID ; this . $host = options . $host || "https://graph.windows.net" ; this . apiVersion = options . apiVersion || "1.6" ; this . signedInUser = new SignedInUserImpl ( this ) ; this . applications = new ApplicationsImpl ( this ) ; this . deletedApplications = new DeletedApplicationsImpl ( this ) ; this . groups = new GroupsImpl ( this ) ; this . servicePrincipals = new ServicePrincipalsImpl ( this ) ; this . users = new UsersImpl ( this ) ; this . objects = new ObjectsImpl ( this ) ; this . domains = new DomainsImpl ( this ) ; this . oAuth2PermissionGrantOperations = new OAuth2PermissionGrantOperationsImpl ( this ) ; } signedInUser : SignedInUser ; applications : Applications ; deletedApplications : DeletedApplications ; groups : Groups ; servicePrincipals : ServicePrincipals ; users : Users ; objects : Objects ; domains : Domains ; oAuth2PermissionGrantOperations : OAuth2PermissionGrantOperations ; }