internal HostPoolCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { _hostPoolClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", HostPoolResource.ResourceType.Namespace, Diagnostics); TryGetApiVersion(HostPoolResource.ResourceType, out string hostPoolApiVersion); _hostPoolRestClient = new HostPoolsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, hostPoolApiVersion); #if DEBUG ValidateResourceId(Id); #endif }
internal HostPool(ArmClient client, ResourceIdentifier id) : base(client, id) { _hostPoolClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", ResourceType.Namespace, DiagnosticOptions); TryGetApiVersion(ResourceType, out string hostPoolApiVersion); _hostPoolRestClient = new HostPoolsRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri, hostPoolApiVersion); _scalingPlanClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", ScalingPlan.ResourceType.Namespace, DiagnosticOptions); TryGetApiVersion(ScalingPlan.ResourceType, out string scalingPlanApiVersion); _scalingPlanRestClient = new ScalingPlansRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri, scalingPlanApiVersion); _userSessionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", UserSession.ResourceType.Namespace, DiagnosticOptions); TryGetApiVersion(UserSession.ResourceType, out string userSessionApiVersion); _userSessionRestClient = new UserSessionsRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri, userSessionApiVersion); _msixImagesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", ProviderConstants.DefaultProviderNamespace, DiagnosticOptions); _msixImagesRestClient = new MsixImagesRestOperations(Pipeline, DiagnosticOptions.ApplicationId, BaseUri); #if DEBUG ValidateResourceId(Id); #endif }