Skip to content

[AutoPR azure-resourcemanager-azurestackhci] Dev azurestackhci microsoft.azure stack hci 2022 10 01 #2154

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

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
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.4 (Unreleased)
## 1.0.0-beta.1 (2022-10-01)

- Azure Resource Manager AzureStackHci client library for Java. This package contains Microsoft Azure SDK for AzureStackHci Management SDK. Azure Stack HCI management service. 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).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager AzureStackHci client library for Java.

This package contains Microsoft Azure SDK for AzureStackHci Management SDK. Azure Stack HCI management service. Package tag package-2022-05. 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 AzureStackHci Management SDK. Azure Stack HCI management service. 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).

## 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-azurestackhci</artifactId>
<version>1.0.0-beta.3</version>
<version>1.0.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
418 changes: 397 additions & 21 deletions sdk/azurestackhci/azure-resourcemanager-azurestackhci/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for AzureStackHci Management</name>
<description>This package contains Microsoft Azure SDK for AzureStackHci Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Stack HCI management service. Package tag package-2022-05.</description>
<description>This package contains Microsoft Azure SDK for AzureStackHci Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Stack HCI management service. Package tag package-2022-10.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,23 @@
import com.azure.resourcemanager.azurestackhci.implementation.AzureStackHciClientBuilder;
import com.azure.resourcemanager.azurestackhci.implementation.ClustersImpl;
import com.azure.resourcemanager.azurestackhci.implementation.ExtensionsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.OffersImpl;
import com.azure.resourcemanager.azurestackhci.implementation.OperationsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.PublishersImpl;
import com.azure.resourcemanager.azurestackhci.implementation.SkusImpl;
import com.azure.resourcemanager.azurestackhci.implementation.UpdateRunsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.UpdateSummariesOperationsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.UpdatesImpl;
import com.azure.resourcemanager.azurestackhci.models.ArcSettings;
import com.azure.resourcemanager.azurestackhci.models.Clusters;
import com.azure.resourcemanager.azurestackhci.models.Extensions;
import com.azure.resourcemanager.azurestackhci.models.Offers;
import com.azure.resourcemanager.azurestackhci.models.Operations;
import com.azure.resourcemanager.azurestackhci.models.Publishers;
import com.azure.resourcemanager.azurestackhci.models.Skus;
import com.azure.resourcemanager.azurestackhci.models.UpdateRuns;
import com.azure.resourcemanager.azurestackhci.models.UpdateSummariesOperations;
import com.azure.resourcemanager.azurestackhci.models.Updates;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
Expand All @@ -50,6 +62,18 @@ public final class AzureStackHciManager {

private Operations operations;

private Offers offers;

private Publishers publishers;

private Skus skus;

private UpdateRuns updateRuns;

private UpdateSummariesOperations updateSummariesOperations;

private Updates updates;

private final AzureStackHciClient clientObject;

private AzureStackHciManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -215,7 +239,7 @@ public AzureStackHciManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.azurestackhci")
.append("/")
.append("1.0.0-beta.3");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -320,6 +344,79 @@ public Operations operations() {
return operations;
}

/**
* Gets the resource collection API of Offers.
*
* @return Resource collection API of Offers.
*/
public Offers offers() {
if (this.offers == null) {
this.offers = new OffersImpl(clientObject.getOffers(), this);
}
return offers;
}

/**
* Gets the resource collection API of Publishers.
*
* @return Resource collection API of Publishers.
*/
public Publishers publishers() {
if (this.publishers == null) {
this.publishers = new PublishersImpl(clientObject.getPublishers(), this);
}
return publishers;
}

/**
* Gets the resource collection API of Skus.
*
* @return Resource collection API of Skus.
*/
public Skus skus() {
if (this.skus == null) {
this.skus = new SkusImpl(clientObject.getSkus(), this);
}
return skus;
}

/**
* Gets the resource collection API of UpdateRuns.
*
* @return Resource collection API of UpdateRuns.
*/
public UpdateRuns updateRuns() {
if (this.updateRuns == null) {
this.updateRuns = new UpdateRunsImpl(clientObject.getUpdateRuns(), this);
}
return updateRuns;
}

/**
* Gets the resource collection API of UpdateSummariesOperations.
*
* @return Resource collection API of UpdateSummariesOperations.
*/
public UpdateSummariesOperations updateSummariesOperations() {
if (this.updateSummariesOperations == null) {
this.updateSummariesOperations =
new UpdateSummariesOperationsImpl(clientObject.getUpdateSummariesOperations(), this);
}
return updateSummariesOperations;
}

/**
* Gets the resource collection API of Updates.
*
* @return Resource collection API of Updates.
*/
public Updates updates() {
if (this.updates == null) {
this.updates = new UpdatesImpl(clientObject.getUpdates(), this);
}
return updates;
}

/**
* @return Wrapped service client AzureStackHciClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,6 @@ public interface ArcSettingsClient {
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ArcSettingInner> listByCluster(String resourceGroupName, String clusterName, Context context);

/**
* Get ArcSetting resource details of HCI Cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
* @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 arcSetting resource details of HCI Cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ArcSettingInner get(String resourceGroupName, String clusterName, String arcSettingName);

/**
* Get ArcSetting resource details of HCI Cluster.
*
Expand All @@ -76,20 +62,18 @@ Response<ArcSettingInner> getWithResponse(
String resourceGroupName, String clusterName, String arcSettingName, Context context);

/**
* Create ArcSetting for HCI cluster.
* Get ArcSetting resource details of HCI Cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
* @param arcSetting Parameters supplied to the Create ArcSetting resource for this HCI cluster.
* @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 arcSetting details.
* @return arcSetting resource details of HCI Cluster.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ArcSettingInner create(
String resourceGroupName, String clusterName, String arcSettingName, ArcSettingInner arcSetting);
ArcSettingInner get(String resourceGroupName, String clusterName, String arcSettingName);

/**
* Create ArcSetting for HCI cluster.
Expand All @@ -113,20 +97,20 @@ Response<ArcSettingInner> createWithResponse(
Context context);

/**
* Update ArcSettings for HCI cluster.
* Create ArcSetting for HCI cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
* @param arcSetting ArcSettings parameters that needs to be updated.
* @param arcSetting Parameters supplied to the Create ArcSetting resource for this HCI cluster.
* @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 arcSetting details.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ArcSettingInner update(
String resourceGroupName, String clusterName, String arcSettingName, ArcSettingsPatch arcSetting);
ArcSettingInner create(
String resourceGroupName, String clusterName, String arcSettingName, ArcSettingInner arcSetting);

/**
* Update ArcSettings for HCI cluster.
Expand All @@ -149,6 +133,22 @@ Response<ArcSettingInner> updateWithResponse(
ArcSettingsPatch arcSetting,
Context context);

/**
* Update ArcSettings for HCI cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
* @param arcSetting ArcSettings parameters that needs to be updated.
* @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 arcSetting details.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ArcSettingInner update(
String resourceGroupName, String clusterName, String arcSettingName, ArcSettingsPatch arcSetting);

/**
* Delete ArcSetting resource details of HCI Cluster.
*
Expand Down Expand Up @@ -212,29 +212,29 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
* @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 response.
* @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PasswordCredentialInner generatePassword(String resourceGroupName, String clusterName, String arcSettingName);
Response<PasswordCredentialInner> generatePasswordWithResponse(
String resourceGroupName, String clusterName, String arcSettingName, Context context);

/**
* Generate password for arc settings.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
* @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 response body along with {@link Response}.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<PasswordCredentialInner> generatePasswordWithResponse(
String resourceGroupName, String clusterName, String arcSettingName, Context context);
PasswordCredentialInner generatePassword(String resourceGroupName, String clusterName, String arcSettingName);

/**
* Create Aad identity for arc settings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,46 @@ public interface AzureStackHciClient {
* @return the OperationsClient object.
*/
OperationsClient getOperations();

/**
* Gets the OffersClient object to access its operations.
*
* @return the OffersClient object.
*/
OffersClient getOffers();

/**
* Gets the PublishersClient object to access its operations.
*
* @return the PublishersClient object.
*/
PublishersClient getPublishers();

/**
* Gets the SkusClient object to access its operations.
*
* @return the SkusClient object.
*/
SkusClient getSkus();

/**
* Gets the UpdateRunsClient object to access its operations.
*
* @return the UpdateRunsClient object.
*/
UpdateRunsClient getUpdateRuns();

/**
* Gets the UpdateSummariesOperationsClient object to access its operations.
*
* @return the UpdateSummariesOperationsClient object.
*/
UpdateSummariesOperationsClient getUpdateSummariesOperations();

/**
* Gets the UpdatesClient object to access its operations.
*
* @return the UpdatesClient object.
*/
UpdatesClient getUpdates();
}
Loading