![JAR search and dependency download from the Maven repository](/logo.png)
com.azure.resourcemanager.desktopvirtualization.implementation.PrivateLinkResourcesImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-desktopvirtualization Show documentation
Show all versions of azure-resourcemanager-desktopvirtualization Show documentation
This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2024-04.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.desktopvirtualization.implementation;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.fluent.PrivateLinkResourcesClient;
import com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateLinkResourceInner;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkResource;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateLinkResources;
public final class PrivateLinkResourcesImpl implements PrivateLinkResources {
private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkResourcesImpl.class);
private final PrivateLinkResourcesClient innerClient;
private final com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager serviceManager;
public PrivateLinkResourcesImpl(PrivateLinkResourcesClient innerClient,
com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
}
public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName) {
PagedIterable inner
= this.serviceClient().listByWorkspace(resourceGroupName, workspaceName);
return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager()));
}
public PagedIterable listByWorkspace(String resourceGroupName, String workspaceName,
Integer pageSize, Boolean isDescending, Integer initialSkip, Context context) {
PagedIterable inner = this.serviceClient()
.listByWorkspace(resourceGroupName, workspaceName, pageSize, isDescending, initialSkip, context);
return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager()));
}
public PagedIterable listByHostPool(String resourceGroupName, String hostPoolName) {
PagedIterable inner
= this.serviceClient().listByHostPool(resourceGroupName, hostPoolName);
return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager()));
}
public PagedIterable listByHostPool(String resourceGroupName, String hostPoolName,
Integer pageSize, Boolean isDescending, Integer initialSkip, Context context) {
PagedIterable inner = this.serviceClient()
.listByHostPool(resourceGroupName, hostPoolName, pageSize, isDescending, initialSkip, context);
return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager()));
}
private PrivateLinkResourcesClient serviceClient() {
return this.innerClient;
}
private com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager() {
return this.serviceManager;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy