Skip to content

[AutoPR azure-resourcemanager-azurestackhci] [Hub Generated] Review request for Microsoft.AzureStackHCI to add version stable/2022-09-01 #1627

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-09-02)

- 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-09. 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-09. 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
76 changes: 55 additions & 21 deletions sdk/azurestackhci/azure-resourcemanager-azurestackhci/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- [Create](#clusters_create)
- [CreateIdentity](#clusters_createidentity)
- [Delete](#clusters_delete)
- [ExtendSoftwareAssuranceBenefit](#clusters_extendsoftwareassurancebenefit)
- [GetByResourceGroup](#clusters_getbyresourcegroup)
- [List](#clusters_list)
- [ListByResourceGroup](#clusters_listbyresourcegroup)
Expand All @@ -39,7 +40,7 @@
/** Samples for ArcSettings Create. */
public final class ArcSettingsCreateSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PutArcSetting.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/PutArcSetting.json
*/
/**
* Sample code: Create ArcSetting.
Expand All @@ -60,7 +61,7 @@ import com.azure.core.util.Context;
/** Samples for ArcSettings CreateIdentity. */
public final class ArcSettingsCreateIdentitySamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/CreateArcIdentity.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/CreateArcIdentity.json
*/
/**
* Sample code: Create Arc Identity.
Expand All @@ -81,7 +82,7 @@ import com.azure.core.util.Context;
/** Samples for ArcSettings Delete. */
public final class ArcSettingsDeleteSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/DeleteArcSetting.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/DeleteArcSetting.json
*/
/**
* Sample code: Delete ArcSetting.
Expand All @@ -102,7 +103,7 @@ import com.azure.core.util.Context;
/** Samples for ArcSettings GeneratePassword. */
public final class ArcSettingsGeneratePasswordSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GeneratePassword.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/GeneratePassword.json
*/
/**
* Sample code: Generate Password.
Expand All @@ -123,7 +124,7 @@ import com.azure.core.util.Context;
/** Samples for ArcSettings Get. */
public final class ArcSettingsGetSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GetArcSetting.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/GetArcSetting.json
*/
/**
* Sample code: Get ArcSetting.
Expand All @@ -144,7 +145,7 @@ import com.azure.core.util.Context;
/** Samples for ArcSettings ListByCluster. */
public final class ArcSettingsListByClusterSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListArcSettingsByCluster.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ListArcSettingsByCluster.json
*/
/**
* Sample code: List ArcSetting resources by HCI Cluster.
Expand All @@ -170,7 +171,7 @@ import java.io.IOException;
/** Samples for ArcSettings Update. */
public final class ArcSettingsUpdateSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PatchArcSetting.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/PatchArcSetting.json
*/
/**
* Sample code: Patch ArcSetting.
Expand Down Expand Up @@ -198,7 +199,7 @@ public final class ArcSettingsUpdateSamples {
/** Samples for Clusters Create. */
public final class ClustersCreateSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/CreateCluster.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/CreateCluster.json
*/
/**
* Sample code: Create cluster.
Expand Down Expand Up @@ -227,7 +228,7 @@ import com.azure.core.util.Context;
/** Samples for Clusters CreateIdentity. */
public final class ClustersCreateIdentitySamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/CreateClusterIdentity.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/CreateClusterIdentity.json
*/
/**
* Sample code: Create cluster Identity.
Expand All @@ -248,7 +249,7 @@ import com.azure.core.util.Context;
/** Samples for Clusters Delete. */
public final class ClustersDeleteSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/DeleteCluster.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/DeleteCluster.json
*/
/**
* Sample code: Delete cluster.
Expand All @@ -261,6 +262,39 @@ public final class ClustersDeleteSamples {
}
```

### Clusters_ExtendSoftwareAssuranceBenefit

```java
import com.azure.core.util.Context;
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceChangeRequest;
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceChangeRequestProperties;
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceIntent;

/** Samples for Clusters ExtendSoftwareAssuranceBenefit. */
public final class ClustersExtendSoftwareAssuranceBenefitSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ExtendSoftwareAssuranceBenefit.json
*/
/**
* Sample code: Create cluster Identity.
*
* @param manager Entry point to AzureStackHciManager.
*/
public static void createClusterIdentity(com.azure.resourcemanager.azurestackhci.AzureStackHciManager manager) {
manager
.clusters()
.extendSoftwareAssuranceBenefit(
"test-rg",
"myCluster",
new SoftwareAssuranceChangeRequest()
.withProperties(
new SoftwareAssuranceChangeRequestProperties()
.withSoftwareAssuranceIntent(SoftwareAssuranceIntent.ENABLE)),
Context.NONE);
}
}
```

### Clusters_GetByResourceGroup

```java
Expand All @@ -269,7 +303,7 @@ import com.azure.core.util.Context;
/** Samples for Clusters GetByResourceGroup. */
public final class ClustersGetByResourceGroupSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GetCluster.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/GetCluster.json
*/
/**
* Sample code: Get cluster.
Expand All @@ -290,7 +324,7 @@ import com.azure.core.util.Context;
/** Samples for Clusters List. */
public final class ClustersListSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListClustersBySubscription.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ListClustersBySubscription.json
*/
/**
* Sample code: List clusters in a given subscription.
Expand All @@ -312,7 +346,7 @@ import com.azure.core.util.Context;
/** Samples for Clusters ListByResourceGroup. */
public final class ClustersListByResourceGroupSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListClustersByResourceGroup.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ListClustersByResourceGroup.json
*/
/**
* Sample code: List clusters in a given resource group.
Expand Down Expand Up @@ -340,7 +374,7 @@ import java.util.Map;
/** Samples for Clusters Update. */
public final class ClustersUpdateSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/UpdateCluster.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/UpdateCluster.json
*/
/**
* Sample code: Update cluster.
Expand Down Expand Up @@ -385,7 +419,7 @@ import java.util.Arrays;
/** Samples for Clusters UploadCertificate. */
public final class ClustersUploadCertificateSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/UploadCertificate.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/UploadCertificate.json
*/
/**
* Sample code: Upload certificate.
Expand Down Expand Up @@ -416,7 +450,7 @@ import java.io.IOException;
/** Samples for Extensions Create. */
public final class ExtensionsCreateSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PutExtension.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/PutExtension.json
*/
/**
* Sample code: Create Arc Extension.
Expand Down Expand Up @@ -453,7 +487,7 @@ import com.azure.core.util.Context;
/** Samples for Extensions Delete. */
public final class ExtensionsDeleteSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/DeleteExtension.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/DeleteExtension.json
*/
/**
* Sample code: Delete Arc Extension.
Expand All @@ -474,7 +508,7 @@ import com.azure.core.util.Context;
/** Samples for Extensions Get. */
public final class ExtensionsGetSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/GetExtension.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/GetExtension.json
*/
/**
* Sample code: Get ArcSettings Extension.
Expand All @@ -497,7 +531,7 @@ import com.azure.core.util.Context;
/** Samples for Extensions ListByArcSetting. */
public final class ExtensionsListByArcSettingSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListExtensionsByArcSetting.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ListExtensionsByArcSetting.json
*/
/**
* Sample code: List Extensions under ArcSetting resource.
Expand All @@ -523,7 +557,7 @@ import java.io.IOException;
/** Samples for Extensions Update. */
public final class ExtensionsUpdateSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/PatchExtension.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/PatchExtension.json
*/
/**
* Sample code: Update Arc Extension.
Expand Down Expand Up @@ -559,7 +593,7 @@ import com.azure.core.util.Context;
/** Samples for Operations List. */
public final class OperationsListSamples {
/*
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-05-01/examples/ListOperations.json
* x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-09-01/examples/ListOperations.json
*/
/**
* Sample code: Create cluster.
Expand Down
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-09.</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 @@ -215,7 +215,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
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.azure.resourcemanager.azurestackhci.fluent.models.ClusterIdentityResponseInner;
import com.azure.resourcemanager.azurestackhci.fluent.models.ClusterInner;
import com.azure.resourcemanager.azurestackhci.models.ClusterPatch;
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceChangeRequest;
import com.azure.resourcemanager.azurestackhci.models.UploadCertificateRequest;

/** An instance of this class provides access to all the operations defined in ClustersClient. */
Expand Down Expand Up @@ -326,4 +327,72 @@ SyncPoller<PollResult<ClusterIdentityResponseInner>, ClusterIdentityResponseInne
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterIdentityResponseInner createIdentity(String resourceGroupName, String clusterName, Context context);

/**
* Extends Software Assurance Benefit to a cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
* @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 cluster details.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ClusterInner>, ClusterInner> beginExtendSoftwareAssuranceBenefit(
String resourceGroupName, String clusterName, SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest);

/**
* Extends Software Assurance Benefit to a cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
* @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 cluster details.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<ClusterInner>, ClusterInner> beginExtendSoftwareAssuranceBenefit(
String resourceGroupName,
String clusterName,
SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest,
Context context);

/**
* Extends Software Assurance Benefit to a cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
* @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 cluster details.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterInner extendSoftwareAssuranceBenefit(
String resourceGroupName, String clusterName, SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest);

/**
* Extends Software Assurance Benefit to a cluster.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param softwareAssuranceChangeRequest Software Assurance Change Request Payload.
* @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 cluster details.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ClusterInner extendSoftwareAssuranceBenefit(
String resourceGroupName,
String clusterName,
SoftwareAssuranceChangeRequest softwareAssuranceChangeRequest,
Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ public final class ArcSettingProperties {
private ProvisioningState provisioningState;

/*
* The resource group that hosts the Arc agents, ie. Hybrid Compute Machine
* resources.
* The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources.
*/
@JsonProperty(value = "arcInstanceResourceGroup")
private String arcInstanceResourceGroup;
Expand Down
Loading