Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.containerservice.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; import com.microsoft.azure.CloudException; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.Validator; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.Header; import retrofit2.http.Headers; import retrofit2.http.HTTP; import retrofit2.http.Path; import retrofit2.http.PUT; import retrofit2.http.Query; import retrofit2.Response; import rx.functions.Func1; import rx.Observable;
An instance of this class provides access to all the operations defined in PrivateEndpointConnections.
/** * An instance of this class provides access to all the operations defined * in PrivateEndpointConnections. */
public class PrivateEndpointConnectionsInner {
The Retrofit service to perform REST calls.
/** The Retrofit service to perform REST calls. */
private PrivateEndpointConnectionsService service;
The service client containing this operation class.
/** The service client containing this operation class. */
private ContainerServiceManagementClientImpl client;
Initializes an instance of PrivateEndpointConnectionsInner.
Params:
  • retrofit – the Retrofit instance built from a Retrofit Builder.
  • client – the instance of the service client containing this operation class.
/** * Initializes an instance of PrivateEndpointConnectionsInner. * * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */
public PrivateEndpointConnectionsInner(Retrofit retrofit, ContainerServiceManagementClientImpl client) { this.service = retrofit.create(PrivateEndpointConnectionsService.class); this.client = client; }
The interface defining all the services for PrivateEndpointConnections to be used by Retrofit to perform actually REST calls.
/** * The interface defining all the services for PrivateEndpointConnections to be * used by Retrofit to perform actually REST calls. */
interface PrivateEndpointConnectionsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerservice.PrivateEndpointConnections list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections") Observable<Response<ResponseBody>> list(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerservice.PrivateEndpointConnections get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}") Observable<Response<ResponseBody>> get(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Path("privateEndpointConnectionName") String privateEndpointConnectionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerservice.PrivateEndpointConnections update" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}") Observable<Response<ResponseBody>> update(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Path("privateEndpointConnectionName") String privateEndpointConnectionName, @Query("api-version") String apiVersion, @Body PrivateEndpointConnectionInner parameters, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerservice.PrivateEndpointConnections delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", method = "DELETE", hasBody = true) Observable<Response<ResponseBody>> delete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Path("privateEndpointConnectionName") String privateEndpointConnectionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.containerservice.PrivateEndpointConnections beginDelete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", method = "DELETE", hasBody = true) Observable<Response<ResponseBody>> beginDelete(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("resourceName") String resourceName, @Path("privateEndpointConnectionName") String privateEndpointConnectionName, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); }
Gets a list of private endpoint connections in the specified managed cluster. Gets a list of private endpoint connections in the specified managed cluster. The operation returns properties of each private endpoint connection.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
Throws:
Returns:the PrivateEndpointConnectionListResultInner object if successful.
/** * Gets a list of private endpoint connections in the specified managed cluster. * Gets a list of private endpoint connections in the specified managed cluster. The operation returns properties of each private endpoint connection. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PrivateEndpointConnectionListResultInner object if successful. */
public PrivateEndpointConnectionListResultInner list(String resourceGroupName, String resourceName) { return listWithServiceResponseAsync(resourceGroupName, resourceName).toBlocking().single().body(); }
Gets a list of private endpoint connections in the specified managed cluster. Gets a list of private endpoint connections in the specified managed cluster. The operation returns properties of each private endpoint connection.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets a list of private endpoint connections in the specified managed cluster. * Gets a list of private endpoint connections in the specified managed cluster. The operation returns properties of each private endpoint connection. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<PrivateEndpointConnectionListResultInner> listAsync(String resourceGroupName, String resourceName, final ServiceCallback<PrivateEndpointConnectionListResultInner> serviceCallback) { return ServiceFuture.fromResponse(listWithServiceResponseAsync(resourceGroupName, resourceName), serviceCallback); }
Gets a list of private endpoint connections in the specified managed cluster. Gets a list of private endpoint connections in the specified managed cluster. The operation returns properties of each private endpoint connection.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
Throws:
Returns:the observable to the PrivateEndpointConnectionListResultInner object
/** * Gets a list of private endpoint connections in the specified managed cluster. * Gets a list of private endpoint connections in the specified managed cluster. The operation returns properties of each private endpoint connection. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PrivateEndpointConnectionListResultInner object */
public Observable<PrivateEndpointConnectionListResultInner> listAsync(String resourceGroupName, String resourceName) { return listWithServiceResponseAsync(resourceGroupName, resourceName).map(new Func1<ServiceResponse<PrivateEndpointConnectionListResultInner>, PrivateEndpointConnectionListResultInner>() { @Override public PrivateEndpointConnectionListResultInner call(ServiceResponse<PrivateEndpointConnectionListResultInner> response) { return response.body(); } }); }
Gets a list of private endpoint connections in the specified managed cluster. Gets a list of private endpoint connections in the specified managed cluster. The operation returns properties of each private endpoint connection.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
Throws:
Returns:the observable to the PrivateEndpointConnectionListResultInner object
/** * Gets a list of private endpoint connections in the specified managed cluster. * Gets a list of private endpoint connections in the specified managed cluster. The operation returns properties of each private endpoint connection. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PrivateEndpointConnectionListResultInner object */
public Observable<ServiceResponse<PrivateEndpointConnectionListResultInner>> listWithServiceResponseAsync(String resourceGroupName, String resourceName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (resourceName == null) { throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); } final String apiVersion = "2020-09-01"; return service.list(this.client.subscriptionId(), resourceGroupName, resourceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<PrivateEndpointConnectionListResultInner>>>() { @Override public Observable<ServiceResponse<PrivateEndpointConnectionListResultInner>> call(Response<ResponseBody> response) { try { ServiceResponse<PrivateEndpointConnectionListResultInner> clientResponse = listDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PrivateEndpointConnectionListResultInner> listDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PrivateEndpointConnectionListResultInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PrivateEndpointConnectionListResultInner>() { }.getType()) .registerError(CloudException.class) .build(response); }
Gets the private endpoint connection. Gets the details of the private endpoint connection by managed cluster and resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
Throws:
Returns:the PrivateEndpointConnectionInner object if successful.
/** * Gets the private endpoint connection. * Gets the details of the private endpoint connection by managed cluster and resource group. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PrivateEndpointConnectionInner object if successful. */
public PrivateEndpointConnectionInner get(String resourceGroupName, String resourceName, String privateEndpointConnectionName) { return getWithServiceResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName).toBlocking().single().body(); }
Gets the private endpoint connection. Gets the details of the private endpoint connection by managed cluster and resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Gets the private endpoint connection. * Gets the details of the private endpoint connection by managed cluster and resource group. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<PrivateEndpointConnectionInner> getAsync(String resourceGroupName, String resourceName, String privateEndpointConnectionName, final ServiceCallback<PrivateEndpointConnectionInner> serviceCallback) { return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName), serviceCallback); }
Gets the private endpoint connection. Gets the details of the private endpoint connection by managed cluster and resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
Throws:
Returns:the observable to the PrivateEndpointConnectionInner object
/** * Gets the private endpoint connection. * Gets the details of the private endpoint connection by managed cluster and resource group. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PrivateEndpointConnectionInner object */
public Observable<PrivateEndpointConnectionInner> getAsync(String resourceGroupName, String resourceName, String privateEndpointConnectionName) { return getWithServiceResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName).map(new Func1<ServiceResponse<PrivateEndpointConnectionInner>, PrivateEndpointConnectionInner>() { @Override public PrivateEndpointConnectionInner call(ServiceResponse<PrivateEndpointConnectionInner> response) { return response.body(); } }); }
Gets the private endpoint connection. Gets the details of the private endpoint connection by managed cluster and resource group.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
Throws:
Returns:the observable to the PrivateEndpointConnectionInner object
/** * Gets the private endpoint connection. * Gets the details of the private endpoint connection by managed cluster and resource group. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PrivateEndpointConnectionInner object */
public Observable<ServiceResponse<PrivateEndpointConnectionInner>> getWithServiceResponseAsync(String resourceGroupName, String resourceName, String privateEndpointConnectionName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (resourceName == null) { throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); } if (privateEndpointConnectionName == null) { throw new IllegalArgumentException("Parameter privateEndpointConnectionName is required and cannot be null."); } final String apiVersion = "2020-09-01"; return service.get(this.client.subscriptionId(), resourceGroupName, resourceName, privateEndpointConnectionName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<PrivateEndpointConnectionInner>>>() { @Override public Observable<ServiceResponse<PrivateEndpointConnectionInner>> call(Response<ResponseBody> response) { try { ServiceResponse<PrivateEndpointConnectionInner> clientResponse = getDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PrivateEndpointConnectionInner> getDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PrivateEndpointConnectionInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PrivateEndpointConnectionInner>() { }.getType()) .registerError(CloudException.class) .build(response); }
Updates a private endpoint connection. Updates a private endpoint connection in the specified managed cluster.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
  • parameters – Parameters supplied to the Update a private endpoint connection operation.
Throws:
Returns:the PrivateEndpointConnectionInner object if successful.
/** * Updates a private endpoint connection. * Updates a private endpoint connection in the specified managed cluster. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters Parameters supplied to the Update a private endpoint connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PrivateEndpointConnectionInner object if successful. */
public PrivateEndpointConnectionInner update(String resourceGroupName, String resourceName, String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters) { return updateWithServiceResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName, parameters).toBlocking().single().body(); }
Updates a private endpoint connection. Updates a private endpoint connection in the specified managed cluster.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
  • parameters – Parameters supplied to the Update a private endpoint connection operation.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Updates a private endpoint connection. * Updates a private endpoint connection in the specified managed cluster. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters Parameters supplied to the Update a private endpoint connection operation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<PrivateEndpointConnectionInner> updateAsync(String resourceGroupName, String resourceName, String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters, final ServiceCallback<PrivateEndpointConnectionInner> serviceCallback) { return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName, parameters), serviceCallback); }
Updates a private endpoint connection. Updates a private endpoint connection in the specified managed cluster.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
  • parameters – Parameters supplied to the Update a private endpoint connection operation.
Throws:
Returns:the observable to the PrivateEndpointConnectionInner object
/** * Updates a private endpoint connection. * Updates a private endpoint connection in the specified managed cluster. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters Parameters supplied to the Update a private endpoint connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PrivateEndpointConnectionInner object */
public Observable<PrivateEndpointConnectionInner> updateAsync(String resourceGroupName, String resourceName, String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters) { return updateWithServiceResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName, parameters).map(new Func1<ServiceResponse<PrivateEndpointConnectionInner>, PrivateEndpointConnectionInner>() { @Override public PrivateEndpointConnectionInner call(ServiceResponse<PrivateEndpointConnectionInner> response) { return response.body(); } }); }
Updates a private endpoint connection. Updates a private endpoint connection in the specified managed cluster.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
  • parameters – Parameters supplied to the Update a private endpoint connection operation.
Throws:
Returns:the observable to the PrivateEndpointConnectionInner object
/** * Updates a private endpoint connection. * Updates a private endpoint connection in the specified managed cluster. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param parameters Parameters supplied to the Update a private endpoint connection operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PrivateEndpointConnectionInner object */
public Observable<ServiceResponse<PrivateEndpointConnectionInner>> updateWithServiceResponseAsync(String resourceGroupName, String resourceName, String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (resourceName == null) { throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); } if (privateEndpointConnectionName == null) { throw new IllegalArgumentException("Parameter privateEndpointConnectionName is required and cannot be null."); } if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); final String apiVersion = "2020-09-01"; return service.update(this.client.subscriptionId(), resourceGroupName, resourceName, privateEndpointConnectionName, apiVersion, parameters, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<PrivateEndpointConnectionInner>>>() { @Override public Observable<ServiceResponse<PrivateEndpointConnectionInner>> call(Response<ResponseBody> response) { try { ServiceResponse<PrivateEndpointConnectionInner> clientResponse = updateDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PrivateEndpointConnectionInner> updateDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PrivateEndpointConnectionInner, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PrivateEndpointConnectionInner>() { }.getType()) .registerError(CloudException.class) .build(response); }
Deletes a private endpoint connection. Deletes the private endpoint connection in the specified managed cluster.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
Throws:
/** * Deletes a private endpoint connection. * Deletes the private endpoint connection in the specified managed cluster. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */
public void delete(String resourceGroupName, String resourceName, String privateEndpointConnectionName) { deleteWithServiceResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName).toBlocking().last().body(); }
Deletes a private endpoint connection. Deletes the private endpoint connection in the specified managed cluster.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Deletes a private endpoint connection. * Deletes the private endpoint connection in the specified managed cluster. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<Void> deleteAsync(String resourceGroupName, String resourceName, String privateEndpointConnectionName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName), serviceCallback); }
Deletes a private endpoint connection. Deletes the private endpoint connection in the specified managed cluster.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
Throws:
Returns:the observable for the request
/** * Deletes a private endpoint connection. * Deletes the private endpoint connection in the specified managed cluster. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<Void> deleteAsync(String resourceGroupName, String resourceName, String privateEndpointConnectionName) { return deleteWithServiceResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
Deletes a private endpoint connection. Deletes the private endpoint connection in the specified managed cluster.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
Throws:
Returns:the observable for the request
/** * Deletes a private endpoint connection. * Deletes the private endpoint connection in the specified managed cluster. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */
public Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String resourceGroupName, String resourceName, String privateEndpointConnectionName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (resourceName == null) { throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); } if (privateEndpointConnectionName == null) { throw new IllegalArgumentException("Parameter privateEndpointConnectionName is required and cannot be null."); } final String apiVersion = "2020-09-01"; Observable<Response<ResponseBody>> observable = service.delete(this.client.subscriptionId(), resourceGroupName, resourceName, privateEndpointConnectionName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken<Void>() { }.getType()); }
Deletes a private endpoint connection. Deletes the private endpoint connection in the specified managed cluster.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
Throws:
/** * Deletes a private endpoint connection. * Deletes the private endpoint connection in the specified managed cluster. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent */
public void beginDelete(String resourceGroupName, String resourceName, String privateEndpointConnectionName) { beginDeleteWithServiceResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName).toBlocking().single().body(); }
Deletes a private endpoint connection. Deletes the private endpoint connection in the specified managed cluster.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
  • serviceCallback – the async ServiceCallback to handle successful and failed responses.
Throws:
Returns:the ServiceFuture object
/** * Deletes a private endpoint connection. * Deletes the private endpoint connection in the specified managed cluster. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
public ServiceFuture<Void> beginDeleteAsync(String resourceGroupName, String resourceName, String privateEndpointConnectionName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName), serviceCallback); }
Deletes a private endpoint connection. Deletes the private endpoint connection in the specified managed cluster.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
Throws:
Returns:the ServiceResponse object if successful.
/** * Deletes a private endpoint connection. * Deletes the private endpoint connection in the specified managed cluster. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<Void> beginDeleteAsync(String resourceGroupName, String resourceName, String privateEndpointConnectionName) { return beginDeleteWithServiceResponseAsync(resourceGroupName, resourceName, privateEndpointConnectionName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { return response.body(); } }); }
Deletes a private endpoint connection. Deletes the private endpoint connection in the specified managed cluster.
Params:
  • resourceGroupName – The name of the resource group.
  • resourceName – The name of the managed cluster resource.
  • privateEndpointConnectionName – The name of the private endpoint connection.
Throws:
Returns:the ServiceResponse object if successful.
/** * Deletes a private endpoint connection. * Deletes the private endpoint connection in the specified managed cluster. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if successful. */
public Observable<ServiceResponse<Void>> beginDeleteWithServiceResponseAsync(String resourceGroupName, String resourceName, String privateEndpointConnectionName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (resourceName == null) { throw new IllegalArgumentException("Parameter resourceName is required and cannot be null."); } if (privateEndpointConnectionName == null) { throw new IllegalArgumentException("Parameter privateEndpointConnectionName is required and cannot be null."); } final String apiVersion = "2020-09-01"; return service.beginDelete(this.client.subscriptionId(), resourceGroupName, resourceName, privateEndpointConnectionName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Void>>>() { @Override public Observable<ServiceResponse<Void>> call(Response<ResponseBody> response) { try { ServiceResponse<Void> clientResponse = beginDeleteDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<Void> beginDeleteDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<Void, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<Void>() { }.getType()) .register(204, new TypeToken<Void>() { }.getType()) .registerError(CloudException.class) .build(response); } }