![JAR search and dependency download from the Maven repository](/logo.png)
com.azure.resourcemanager.netapp.implementation.NetAppManagementClientImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-netapp Show documentation
Show all versions of azure-resourcemanager-netapp Show documentation
This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-preview-2024-07-01-preview.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.netapp.implementation;
import com.azure.core.annotation.ServiceClient;
import com.azure.core.http.HttpHeaders;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpResponse;
import com.azure.core.http.rest.Response;
import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.exception.ManagementError;
import com.azure.core.management.exception.ManagementException;
import com.azure.core.management.polling.PollResult;
import com.azure.core.management.polling.PollerFactory;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.AsyncPollResponse;
import com.azure.core.util.polling.LongRunningOperationStatus;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
import com.azure.resourcemanager.netapp.fluent.AccountBackupsClient;
import com.azure.resourcemanager.netapp.fluent.AccountsClient;
import com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient;
import com.azure.resourcemanager.netapp.fluent.BackupsClient;
import com.azure.resourcemanager.netapp.fluent.NetAppManagementClient;
import com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient;
import com.azure.resourcemanager.netapp.fluent.OperationsClient;
import com.azure.resourcemanager.netapp.fluent.PoolsClient;
import com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient;
import com.azure.resourcemanager.netapp.fluent.SnapshotsClient;
import com.azure.resourcemanager.netapp.fluent.VaultsClient;
import com.azure.resourcemanager.netapp.fluent.VolumesClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
import java.util.Map;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/** Initializes a new instance of the NetAppManagementClientImpl type. */
@ServiceClient(builder = NetAppManagementClientBuilder.class)
public final class NetAppManagementClientImpl implements NetAppManagementClient {
private final ClientLogger logger = new ClientLogger(NetAppManagementClientImpl.class);
/**
* Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of
* the URI for every service call.
*/
private final String subscriptionId;
/**
* Gets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
* part of the URI for every service call.
*
* @return the subscriptionId value.
*/
public String getSubscriptionId() {
return this.subscriptionId;
}
/** server parameter. */
private final String endpoint;
/**
* Gets server parameter.
*
* @return the endpoint value.
*/
public String getEndpoint() {
return this.endpoint;
}
/** Api Version. */
private final String apiVersion;
/**
* Gets Api Version.
*
* @return the apiVersion value.
*/
public String getApiVersion() {
return this.apiVersion;
}
/** The HTTP pipeline to send requests through. */
private final HttpPipeline httpPipeline;
/**
* Gets The HTTP pipeline to send requests through.
*
* @return the httpPipeline value.
*/
public HttpPipeline getHttpPipeline() {
return this.httpPipeline;
}
/** The serializer to serialize an object into a string. */
private final SerializerAdapter serializerAdapter;
/**
* Gets The serializer to serialize an object into a string.
*
* @return the serializerAdapter value.
*/
SerializerAdapter getSerializerAdapter() {
return this.serializerAdapter;
}
/** The default poll interval for long-running operation. */
private final Duration defaultPollInterval;
/**
* Gets The default poll interval for long-running operation.
*
* @return the defaultPollInterval value.
*/
public Duration getDefaultPollInterval() {
return this.defaultPollInterval;
}
/** The OperationsClient object to access its operations. */
private final OperationsClient operations;
/**
* Gets the OperationsClient object to access its operations.
*
* @return the OperationsClient object.
*/
public OperationsClient getOperations() {
return this.operations;
}
/** The NetAppResourcesClient object to access its operations. */
private final NetAppResourcesClient netAppResources;
/**
* Gets the NetAppResourcesClient object to access its operations.
*
* @return the NetAppResourcesClient object.
*/
public NetAppResourcesClient getNetAppResources() {
return this.netAppResources;
}
/** The AccountsClient object to access its operations. */
private final AccountsClient accounts;
/**
* Gets the AccountsClient object to access its operations.
*
* @return the AccountsClient object.
*/
public AccountsClient getAccounts() {
return this.accounts;
}
/** The PoolsClient object to access its operations. */
private final PoolsClient pools;
/**
* Gets the PoolsClient object to access its operations.
*
* @return the PoolsClient object.
*/
public PoolsClient getPools() {
return this.pools;
}
/** The VolumesClient object to access its operations. */
private final VolumesClient volumes;
/**
* Gets the VolumesClient object to access its operations.
*
* @return the VolumesClient object.
*/
public VolumesClient getVolumes() {
return this.volumes;
}
/** The SnapshotsClient object to access its operations. */
private final SnapshotsClient snapshots;
/**
* Gets the SnapshotsClient object to access its operations.
*
* @return the SnapshotsClient object.
*/
public SnapshotsClient getSnapshots() {
return this.snapshots;
}
/** The SnapshotPoliciesClient object to access its operations. */
private final SnapshotPoliciesClient snapshotPolicies;
/**
* Gets the SnapshotPoliciesClient object to access its operations.
*
* @return the SnapshotPoliciesClient object.
*/
public SnapshotPoliciesClient getSnapshotPolicies() {
return this.snapshotPolicies;
}
/** The BackupsClient object to access its operations. */
private final BackupsClient backups;
/**
* Gets the BackupsClient object to access its operations.
*
* @return the BackupsClient object.
*/
public BackupsClient getBackups() {
return this.backups;
}
/** The AccountBackupsClient object to access its operations. */
private final AccountBackupsClient accountBackups;
/**
* Gets the AccountBackupsClient object to access its operations.
*
* @return the AccountBackupsClient object.
*/
public AccountBackupsClient getAccountBackups() {
return this.accountBackups;
}
/** The BackupPoliciesClient object to access its operations. */
private final BackupPoliciesClient backupPolicies;
/**
* Gets the BackupPoliciesClient object to access its operations.
*
* @return the BackupPoliciesClient object.
*/
public BackupPoliciesClient getBackupPolicies() {
return this.backupPolicies;
}
/** The VaultsClient object to access its operations. */
private final VaultsClient vaults;
/**
* Gets the VaultsClient object to access its operations.
*
* @return the VaultsClient object.
*/
public VaultsClient getVaults() {
return this.vaults;
}
/**
* Initializes an instance of NetAppManagementClient client.
*
* @param httpPipeline The HTTP pipeline to send requests through.
* @param serializerAdapter The serializer to serialize an object into a string.
* @param defaultPollInterval The default poll interval for long-running operation.
* @param environment The Azure environment.
* @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription. The
* subscription ID forms part of the URI for every service call.
* @param endpoint server parameter.
*/
NetAppManagementClientImpl(
HttpPipeline httpPipeline,
SerializerAdapter serializerAdapter,
Duration defaultPollInterval,
AzureEnvironment environment,
String subscriptionId,
String endpoint) {
this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.apiVersion = "2021-04-01";
this.operations = new OperationsClientImpl(this);
this.netAppResources = new NetAppResourcesClientImpl(this);
this.accounts = new AccountsClientImpl(this);
this.pools = new PoolsClientImpl(this);
this.volumes = new VolumesClientImpl(this);
this.snapshots = new SnapshotsClientImpl(this);
this.snapshotPolicies = new SnapshotPoliciesClientImpl(this);
this.backups = new BackupsClientImpl(this);
this.accountBackups = new AccountBackupsClientImpl(this);
this.backupPolicies = new BackupPoliciesClientImpl(this);
this.vaults = new VaultsClientImpl(this);
}
/**
* Gets default client context.
*
* @return the default client context.
*/
public Context getContext() {
return Context.NONE;
}
/**
* Merges default client context with provided context.
*
* @param context the context to be merged with default client context.
* @return the merged context.
*/
public Context mergeContext(Context context) {
for (Map.Entry
© 2015 - 2025 Weber Informatics LLC | Privacy Policy