Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-recoveryservicessiterecovery] mgmt, add options for recoveryservicessiterecovery in readme.java.md #3447

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Release History

## 1.0.0-beta.1 (2023-01-03)
## 1.0.0-beta.1 (2023-01-04)

- Azure Resource Manager SiteRecovery client library for Java. This package contains Microsoft Azure SDK for SiteRecovery Management SDK. Package tag package-2022-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationProtectionIntentsImpl;
import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationRecoveryPlansImpl;
import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationRecoveryServicesProvidersImpl;
import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationStorageClassificationMappingsImpl;
import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationStorageClassificationsImpl;
import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationVaultHealthsImpl;
import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationVaultSettingsImpl;
import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.ReplicationvCentersImpl;
import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.SiteRecoveryManagementClientBuilder;
import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.StorageClassificationMappingsImpl;
import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.StorageClassificationsImpl;
import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.SupportedOperatingSystemsOperationsImpl;
import com.azure.resourcemanager.recoveryservicessiterecovery.implementation.TargetComputeSizesImpl;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.MigrationRecoveryPoints;
Expand All @@ -74,11 +74,11 @@
import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationProtectionIntents;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationRecoveryPlans;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationRecoveryServicesProviders;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationStorageClassificationMappings;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationStorageClassifications;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationVaultHealths;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationVaultSettings;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationvCenters;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMappings;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassifications;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.SupportedOperatingSystemsOperations;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.TargetComputeSizes;
import java.time.Duration;
Expand Down Expand Up @@ -126,9 +126,9 @@ public final class SiteRecoveryManager {

private ReplicationRecoveryServicesProviders replicationRecoveryServicesProviders;

private StorageClassifications storageClassifications;
private ReplicationStorageClassifications replicationStorageClassifications;

private StorageClassificationMappings storageClassificationMappings;
private ReplicationStorageClassificationMappings replicationStorageClassificationMappings;

private ReplicationvCenters replicationvCenters;

Expand Down Expand Up @@ -600,29 +600,31 @@ public ReplicationRecoveryServicesProviders replicationRecoveryServicesProviders
}

/**
* Gets the resource collection API of StorageClassifications.
* Gets the resource collection API of ReplicationStorageClassifications.
*
* @return Resource collection API of StorageClassifications.
* @return Resource collection API of ReplicationStorageClassifications.
*/
public StorageClassifications storageClassifications() {
if (this.storageClassifications == null) {
this.storageClassifications =
new StorageClassificationsImpl(clientObject.getStorageClassifications(), this);
public ReplicationStorageClassifications replicationStorageClassifications() {
if (this.replicationStorageClassifications == null) {
this.replicationStorageClassifications =
new ReplicationStorageClassificationsImpl(clientObject.getReplicationStorageClassifications(), this);
}
return storageClassifications;
return replicationStorageClassifications;
}

/**
* Gets the resource collection API of StorageClassificationMappings. It manages StorageClassificationMapping.
* Gets the resource collection API of ReplicationStorageClassificationMappings. It manages
* StorageClassificationMapping.
*
* @return Resource collection API of StorageClassificationMappings.
* @return Resource collection API of ReplicationStorageClassificationMappings.
*/
public StorageClassificationMappings storageClassificationMappings() {
if (this.storageClassificationMappings == null) {
this.storageClassificationMappings =
new StorageClassificationMappingsImpl(clientObject.getStorageClassificationMappings(), this);
public ReplicationStorageClassificationMappings replicationStorageClassificationMappings() {
if (this.replicationStorageClassificationMappings == null) {
this.replicationStorageClassificationMappings =
new ReplicationStorageClassificationMappingsImpl(
clientObject.getReplicationStorageClassificationMappings(), this);
}
return storageClassificationMappings;
return replicationStorageClassificationMappings;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationMappingInner;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMappingInput;

/** An instance of this class provides access to all the operations defined in StorageClassificationMappingsClient. */
public interface StorageClassificationMappingsClient {
/**
* An instance of this class provides access to all the operations defined in
* ReplicationStorageClassificationMappingsClient.
*/
public interface ReplicationStorageClassificationMappingsClient {
/**
* Gets the list of storage classification mappings objects under a storage.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationInner;

/** An instance of this class provides access to all the operations defined in StorageClassificationsClient. */
public interface StorageClassificationsClient {
/**
* An instance of this class provides access to all the operations defined in ReplicationStorageClassificationsClient.
*/
public interface ReplicationStorageClassificationsClient {
/**
* Gets the list of storage classification objects under a fabric.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,18 @@ public interface SiteRecoveryManagementClient {
ReplicationRecoveryServicesProvidersClient getReplicationRecoveryServicesProviders();

/**
* Gets the StorageClassificationsClient object to access its operations.
* Gets the ReplicationStorageClassificationsClient object to access its operations.
*
* @return the StorageClassificationsClient object.
* @return the ReplicationStorageClassificationsClient object.
*/
StorageClassificationsClient getStorageClassifications();
ReplicationStorageClassificationsClient getReplicationStorageClassifications();

/**
* Gets the StorageClassificationMappingsClient object to access its operations.
* Gets the ReplicationStorageClassificationMappingsClient object to access its operations.
*
* @return the StorageClassificationMappingsClient object.
* @return the ReplicationStorageClassificationMappingsClient object.
*/
StorageClassificationMappingsClient getStorageClassificationMappings();
ReplicationStorageClassificationMappingsClient getReplicationStorageClassificationMappings();

/**
* Gets the ReplicationvCentersClient object to access its operations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,44 +31,48 @@
import com.azure.core.util.FluxUtil;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.StorageClassificationMappingsClient;
import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationStorageClassificationMappingsClient;
import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationMappingInner;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMappingCollection;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMappingInput;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/** An instance of this class provides access to all the operations defined in StorageClassificationMappingsClient. */
public final class StorageClassificationMappingsClientImpl implements StorageClassificationMappingsClient {
/**
* An instance of this class provides access to all the operations defined in
* ReplicationStorageClassificationMappingsClient.
*/
public final class ReplicationStorageClassificationMappingsClientImpl
implements ReplicationStorageClassificationMappingsClient {
/** The proxy service used to perform REST calls. */
private final StorageClassificationMappingsService service;
private final ReplicationStorageClassificationMappingsService service;

/** The service client containing this operation class. */
private final SiteRecoveryManagementClientImpl client;

/**
* Initializes an instance of StorageClassificationMappingsClientImpl.
* Initializes an instance of ReplicationStorageClassificationMappingsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
StorageClassificationMappingsClientImpl(SiteRecoveryManagementClientImpl client) {
ReplicationStorageClassificationMappingsClientImpl(SiteRecoveryManagementClientImpl client) {
this.service =
RestProxy
.create(
StorageClassificationMappingsService.class,
ReplicationStorageClassificationMappingsService.class,
client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}

/**
* The interface defining all the services for SiteRecoveryManagementClientStorageClassificationMappings to be used
* by the proxy service to perform REST calls.
* The interface defining all the services for SiteRecoveryManagementClientReplicationStorageClassificationMappings
* to be used by the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "SiteRecoveryManageme")
public interface StorageClassificationMappingsService {
public interface ReplicationStorageClassificationMappingsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.StorageClassificationMappingsClient;
import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationStorageClassificationMappingsClient;
import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationMappingInner;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationStorageClassificationMappings;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMapping;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationMappings;

public final class StorageClassificationMappingsImpl implements StorageClassificationMappings {
private static final ClientLogger LOGGER = new ClientLogger(StorageClassificationMappingsImpl.class);
public final class ReplicationStorageClassificationMappingsImpl implements ReplicationStorageClassificationMappings {
private static final ClientLogger LOGGER = new ClientLogger(ReplicationStorageClassificationMappingsImpl.class);

private final StorageClassificationMappingsClient innerClient;
private final ReplicationStorageClassificationMappingsClient innerClient;

private final com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager;

public StorageClassificationMappingsImpl(
StorageClassificationMappingsClient innerClient,
public ReplicationStorageClassificationMappingsImpl(
ReplicationStorageClassificationMappingsClient innerClient,
com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
Expand Down Expand Up @@ -382,7 +382,7 @@ public void deleteByIdWithResponse(String id, Context context) {
context);
}

private StorageClassificationMappingsClient serviceClient() {
private ReplicationStorageClassificationMappingsClient serviceClient() {
return this.innerClient;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,38 +25,43 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.StorageClassificationsClient;
import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationStorageClassificationsClient;
import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationInner;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassificationCollection;
import reactor.core.publisher.Mono;

/** An instance of this class provides access to all the operations defined in StorageClassificationsClient. */
public final class StorageClassificationsClientImpl implements StorageClassificationsClient {
/**
* An instance of this class provides access to all the operations defined in ReplicationStorageClassificationsClient.
*/
public final class ReplicationStorageClassificationsClientImpl implements ReplicationStorageClassificationsClient {
/** The proxy service used to perform REST calls. */
private final StorageClassificationsService service;
private final ReplicationStorageClassificationsService service;

/** The service client containing this operation class. */
private final SiteRecoveryManagementClientImpl client;

/**
* Initializes an instance of StorageClassificationsClientImpl.
* Initializes an instance of ReplicationStorageClassificationsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
StorageClassificationsClientImpl(SiteRecoveryManagementClientImpl client) {
ReplicationStorageClassificationsClientImpl(SiteRecoveryManagementClientImpl client) {
this.service =
RestProxy
.create(StorageClassificationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
.create(
ReplicationStorageClassificationsService.class,
client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}

/**
* The interface defining all the services for SiteRecoveryManagementClientStorageClassifications to be used by the
* proxy service to perform REST calls.
* The interface defining all the services for SiteRecoveryManagementClientReplicationStorageClassifications to be
* used by the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "SiteRecoveryManageme")
public interface StorageClassificationsService {
public interface ReplicationStorageClassificationsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.util.Context;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.StorageClassificationsClient;
import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.ReplicationStorageClassificationsClient;
import com.azure.resourcemanager.recoveryservicessiterecovery.fluent.models.StorageClassificationInner;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.ReplicationStorageClassifications;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassification;
import com.azure.resourcemanager.recoveryservicessiterecovery.models.StorageClassifications;

public final class StorageClassificationsImpl implements StorageClassifications {
private static final ClientLogger LOGGER = new ClientLogger(StorageClassificationsImpl.class);
public final class ReplicationStorageClassificationsImpl implements ReplicationStorageClassifications {
private static final ClientLogger LOGGER = new ClientLogger(ReplicationStorageClassificationsImpl.class);

private final StorageClassificationsClient innerClient;
private final ReplicationStorageClassificationsClient innerClient;

private final com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager;

public StorageClassificationsImpl(
StorageClassificationsClient innerClient,
public ReplicationStorageClassificationsImpl(
ReplicationStorageClassificationsClient innerClient,
com.azure.resourcemanager.recoveryservicessiterecovery.SiteRecoveryManager serviceManager) {
this.innerClient = innerClient;
this.serviceManager = serviceManager;
Expand Down Expand Up @@ -85,7 +85,7 @@ public PagedIterable<StorageClassification> list(String resourceName, String res
return Utils.mapPage(inner, inner1 -> new StorageClassificationImpl(inner1, this.manager()));
}

private StorageClassificationsClient serviceClient() {
private ReplicationStorageClassificationsClient serviceClient() {
return this.innerClient;
}

Expand Down
Loading