![JAR search and dependency download from the Maven repository](/logo.png)
com.azure.resourcemanager.desktopvirtualization.implementation.PrivateEndpointConnectionsImpl 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.http.rest.Response;
import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.desktopvirtualization.fluent.PrivateEndpointConnectionsClient;
import com.azure.resourcemanager.desktopvirtualization.fluent.models.PrivateEndpointConnectionWithSystemDataInner;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnection;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnections;
import com.azure.resourcemanager.desktopvirtualization.models.PrivateEndpointConnectionWithSystemData;
public final class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {
private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionsImpl.class);
private final PrivateEndpointConnectionsClient innerClient;
private final com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager serviceManager;
public PrivateEndpointConnectionsImpl(PrivateEndpointConnectionsClient 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 PrivateEndpointConnectionWithSystemDataImpl(inner1, this.manager()));
}
public PagedIterable listByWorkspace(String resourceGroupName,
String workspaceName, Context context) {
PagedIterable inner
= this.serviceClient().listByWorkspace(resourceGroupName, workspaceName, context);
return ResourceManagerUtils.mapPage(inner,
inner1 -> new PrivateEndpointConnectionWithSystemDataImpl(inner1, this.manager()));
}
public Response getByWorkspaceWithResponse(String resourceGroupName,
String workspaceName, String privateEndpointConnectionName, Context context) {
Response inner = this.serviceClient()
.getByWorkspaceWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, context);
if (inner != null) {
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
new PrivateEndpointConnectionWithSystemDataImpl(inner.getValue(), this.manager()));
} else {
return null;
}
}
public PrivateEndpointConnectionWithSystemData getByWorkspace(String resourceGroupName, String workspaceName,
String privateEndpointConnectionName) {
PrivateEndpointConnectionWithSystemDataInner inner
= this.serviceClient().getByWorkspace(resourceGroupName, workspaceName, privateEndpointConnectionName);
if (inner != null) {
return new PrivateEndpointConnectionWithSystemDataImpl(inner, this.manager());
} else {
return null;
}
}
public Response deleteByWorkspaceWithResponse(String resourceGroupName, String workspaceName,
String privateEndpointConnectionName, Context context) {
return this.serviceClient()
.deleteByWorkspaceWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, context);
}
public void deleteByWorkspace(String resourceGroupName, String workspaceName,
String privateEndpointConnectionName) {
this.serviceClient().deleteByWorkspace(resourceGroupName, workspaceName, privateEndpointConnectionName);
}
public Response updateByWorkspaceWithResponse(String resourceGroupName,
String workspaceName, String privateEndpointConnectionName, PrivateEndpointConnection connection,
Context context) {
Response inner = this.serviceClient()
.updateByWorkspaceWithResponse(resourceGroupName, workspaceName, privateEndpointConnectionName, connection,
context);
if (inner != null) {
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
new PrivateEndpointConnectionWithSystemDataImpl(inner.getValue(), this.manager()));
} else {
return null;
}
}
public PrivateEndpointConnectionWithSystemData updateByWorkspace(String resourceGroupName, String workspaceName,
String privateEndpointConnectionName, PrivateEndpointConnection connection) {
PrivateEndpointConnectionWithSystemDataInner inner = this.serviceClient()
.updateByWorkspace(resourceGroupName, workspaceName, privateEndpointConnectionName, connection);
if (inner != null) {
return new PrivateEndpointConnectionWithSystemDataImpl(inner, this.manager());
} else {
return null;
}
}
public PagedIterable listByHostPool(String resourceGroupName,
String hostPoolName) {
PagedIterable inner
= this.serviceClient().listByHostPool(resourceGroupName, hostPoolName);
return ResourceManagerUtils.mapPage(inner,
inner1 -> new PrivateEndpointConnectionWithSystemDataImpl(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 PrivateEndpointConnectionWithSystemDataImpl(inner1, this.manager()));
}
public Response getByHostPoolWithResponse(String resourceGroupName,
String hostPoolName, String privateEndpointConnectionName, Context context) {
Response inner = this.serviceClient()
.getByHostPoolWithResponse(resourceGroupName, hostPoolName, privateEndpointConnectionName, context);
if (inner != null) {
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
new PrivateEndpointConnectionWithSystemDataImpl(inner.getValue(), this.manager()));
} else {
return null;
}
}
public PrivateEndpointConnectionWithSystemData getByHostPool(String resourceGroupName, String hostPoolName,
String privateEndpointConnectionName) {
PrivateEndpointConnectionWithSystemDataInner inner
= this.serviceClient().getByHostPool(resourceGroupName, hostPoolName, privateEndpointConnectionName);
if (inner != null) {
return new PrivateEndpointConnectionWithSystemDataImpl(inner, this.manager());
} else {
return null;
}
}
public Response deleteByHostPoolWithResponse(String resourceGroupName, String hostPoolName,
String privateEndpointConnectionName, Context context) {
return this.serviceClient()
.deleteByHostPoolWithResponse(resourceGroupName, hostPoolName, privateEndpointConnectionName, context);
}
public void deleteByHostPool(String resourceGroupName, String hostPoolName, String privateEndpointConnectionName) {
this.serviceClient().deleteByHostPool(resourceGroupName, hostPoolName, privateEndpointConnectionName);
}
public Response updateByHostPoolWithResponse(String resourceGroupName,
String hostPoolName, String privateEndpointConnectionName, PrivateEndpointConnection connection,
Context context) {
Response inner = this.serviceClient()
.updateByHostPoolWithResponse(resourceGroupName, hostPoolName, privateEndpointConnectionName, connection,
context);
if (inner != null) {
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
new PrivateEndpointConnectionWithSystemDataImpl(inner.getValue(), this.manager()));
} else {
return null;
}
}
public PrivateEndpointConnectionWithSystemData updateByHostPool(String resourceGroupName, String hostPoolName,
String privateEndpointConnectionName, PrivateEndpointConnection connection) {
PrivateEndpointConnectionWithSystemDataInner inner = this.serviceClient()
.updateByHostPool(resourceGroupName, hostPoolName, privateEndpointConnectionName, connection);
if (inner != null) {
return new PrivateEndpointConnectionWithSystemDataImpl(inner, this.manager());
} else {
return null;
}
}
private PrivateEndpointConnectionsClient serviceClient() {
return this.innerClient;
}
private com.azure.resourcemanager.desktopvirtualization.DesktopVirtualizationManager manager() {
return this.serviceManager;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy