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-elasticsan] Release elasticsan microsoft.elastic san 2023 01 01 ga #6863

Closed
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
4 changes: 3 additions & 1 deletion sdk/elasticsan/azure-resourcemanager-elasticsan/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0-beta.1 (2023-09-21)

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

### Features Added

Expand Down
4 changes: 2 additions & 2 deletions sdk/elasticsan/azure-resourcemanager-elasticsan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager ElasticSan client library for Java.

This package contains Microsoft Azure SDK for ElasticSan Management SDK. Package tag package-preview-2022-12. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for ElasticSan Management SDK. Package tag package-2023-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-elasticsan</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
414 changes: 350 additions & 64 deletions sdk/elasticsan/azure-resourcemanager-elasticsan/SAMPLE.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion sdk/elasticsan/azure-resourcemanager-elasticsan/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for ElasticSan Management</name>
<description>This package contains Microsoft Azure SDK for ElasticSan Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-preview-2022-12.</description>
<description>This package contains Microsoft Azure SDK for ElasticSan Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-01.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,6 +45,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@
import com.azure.resourcemanager.elasticsan.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.elasticsan.implementation.SkusImpl;
import com.azure.resourcemanager.elasticsan.implementation.VolumeGroupsImpl;
import com.azure.resourcemanager.elasticsan.implementation.VolumeSnapshotsImpl;
import com.azure.resourcemanager.elasticsan.implementation.VolumesImpl;
import com.azure.resourcemanager.elasticsan.models.ElasticSans;
import com.azure.resourcemanager.elasticsan.models.Operations;
import com.azure.resourcemanager.elasticsan.models.PrivateEndpointConnections;
import com.azure.resourcemanager.elasticsan.models.PrivateLinkResources;
import com.azure.resourcemanager.elasticsan.models.Skus;
import com.azure.resourcemanager.elasticsan.models.VolumeGroups;
import com.azure.resourcemanager.elasticsan.models.VolumeSnapshots;
import com.azure.resourcemanager.elasticsan.models.Volumes;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
Expand All @@ -62,6 +64,8 @@ public final class ElasticSanManager {

private PrivateLinkResources privateLinkResources;

private VolumeSnapshots volumeSnapshots;

private final ElasticSanManagement clientObject;

private ElasticSanManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -227,7 +231,7 @@ public ElasticSanManager authenticate(TokenCredential credential, AzureProfile p
.append("-")
.append("com.azure.resourcemanager.elasticsan")
.append("/")
.append("1.0.0-beta.2");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -370,8 +374,22 @@ public PrivateLinkResources privateLinkResources() {
}

/**
* @return Wrapped service client ElasticSanManagement providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
* Gets the resource collection API of VolumeSnapshots. It manages Snapshot.
*
* @return Resource collection API of VolumeSnapshots.
*/
public VolumeSnapshots volumeSnapshots() {
if (this.volumeSnapshots == null) {
this.volumeSnapshots = new VolumeSnapshotsImpl(clientObject.getVolumeSnapshots(), this);
}
return volumeSnapshots;
}

/**
* Gets wrapped service client ElasticSanManagement providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
*
* @return Wrapped service client ElasticSanManagement.
*/
public ElasticSanManagement serviceClient() {
return this.clientObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,11 @@ public interface ElasticSanManagement {
* @return the PrivateLinkResourcesClient object.
*/
PrivateLinkResourcesClient getPrivateLinkResources();

/**
* Gets the VolumeSnapshotsClient object to access its operations.
*
* @return the VolumeSnapshotsClient object.
*/
VolumeSnapshotsClient getVolumeSnapshots();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.elasticsan.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.elasticsan.fluent.models.SnapshotInner;

/** An instance of this class provides access to all the operations defined in VolumeSnapshotsClient. */
public interface VolumeSnapshotsClient {
/**
* List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param volumeGroupName The name of the VolumeGroup.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of Snapshots as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SnapshotInner> listByVolumeGroup(
String resourceGroupName, String elasticSanName, String volumeGroupName);

/**
* List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param volumeGroupName The name of the VolumeGroup.
* @param filter Specify $filter='volumeName eq &lt;volume name&gt;' to filter on volume.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of Snapshots as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SnapshotInner> listByVolumeGroup(
String resourceGroupName, String elasticSanName, String volumeGroupName, String filter, Context context);

/**
* Create a Volume Snapshot.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param volumeGroupName The name of the VolumeGroup.
* @param snapshotName The name of the volume snapshot within the given volume group.
* @param parameters Snapshot object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of response for Volume Snapshot request.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<SnapshotInner>, SnapshotInner> beginCreate(
String resourceGroupName,
String elasticSanName,
String volumeGroupName,
String snapshotName,
SnapshotInner parameters);

/**
* Create a Volume Snapshot.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param volumeGroupName The name of the VolumeGroup.
* @param snapshotName The name of the volume snapshot within the given volume group.
* @param parameters Snapshot object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of response for Volume Snapshot request.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<SnapshotInner>, SnapshotInner> beginCreate(
String resourceGroupName,
String elasticSanName,
String volumeGroupName,
String snapshotName,
SnapshotInner parameters,
Context context);

/**
* Create a Volume Snapshot.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param volumeGroupName The name of the VolumeGroup.
* @param snapshotName The name of the volume snapshot within the given volume group.
* @param parameters Snapshot object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for Volume Snapshot request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SnapshotInner create(
String resourceGroupName,
String elasticSanName,
String volumeGroupName,
String snapshotName,
SnapshotInner parameters);

/**
* Create a Volume Snapshot.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param volumeGroupName The name of the VolumeGroup.
* @param snapshotName The name of the volume snapshot within the given volume group.
* @param parameters Snapshot object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return response for Volume Snapshot request.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SnapshotInner create(
String resourceGroupName,
String elasticSanName,
String volumeGroupName,
String snapshotName,
SnapshotInner parameters,
Context context);

/**
* Delete a Volume Snapshot.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param volumeGroupName The name of the VolumeGroup.
* @param snapshotName The name of the volume snapshot within the given volume group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String elasticSanName, String volumeGroupName, String snapshotName);

/**
* Delete a Volume Snapshot.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param volumeGroupName The name of the VolumeGroup.
* @param snapshotName The name of the volume snapshot within the given volume group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String resourceGroupName, String elasticSanName, String volumeGroupName, String snapshotName, Context context);

/**
* Delete a Volume Snapshot.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param volumeGroupName The name of the VolumeGroup.
* @param snapshotName The name of the volume snapshot within the given volume group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String elasticSanName, String volumeGroupName, String snapshotName);

/**
* Delete a Volume Snapshot.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param volumeGroupName The name of the VolumeGroup.
* @param snapshotName The name of the volume snapshot within the given volume group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(
String resourceGroupName, String elasticSanName, String volumeGroupName, String snapshotName, Context context);

/**
* Get a Volume Snapshot.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param volumeGroupName The name of the VolumeGroup.
* @param snapshotName The name of the volume snapshot within the given volume group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a Volume Snapshot along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<SnapshotInner> getWithResponse(
String resourceGroupName, String elasticSanName, String volumeGroupName, String snapshotName, Context context);

/**
* Get a Volume Snapshot.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param elasticSanName The name of the ElasticSan.
* @param volumeGroupName The name of the VolumeGroup.
* @param snapshotName The name of the volume snapshot within the given volume group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a Volume Snapshot.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SnapshotInner get(String resourceGroupName, String elasticSanName, String volumeGroupName, String snapshotName);
}
Loading