Skip to content

Commit

Permalink
CodeGen from PR 31977 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 24a3f1683662944233c32bf1e3345b77fe7ea903 into 3890d974c2822a6f0f2d91e20cec7fa8b5fdda95
  • Loading branch information
SDKAuto committed Dec 30, 2024
1 parent 0fe407a commit 4eb57db
Show file tree
Hide file tree
Showing 284 changed files with 5,797 additions and 7,143 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.6 (Unreleased)
## 1.0.0-beta.1 (2024-12-30)

- 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-preview-2024-12-01-preview. 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-2024-04. 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-preview-2024-12-01-preview. 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.5</version>
<version>1.0.0-beta.6</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
423 changes: 303 additions & 120 deletions sdk/azurestackhci/azure-resourcemanager-azurestackhci/SAMPLE.md

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions sdk/azurestackhci/azure-resourcemanager-azurestackhci/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 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-2024-04.</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-preview-2024-12-01-preview.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down Expand Up @@ -46,13 +46,9 @@
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
<spotless.skip>false</spotless.skip>
</properties>
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-json</artifactId>
<version>1.3.0</version> <!-- {x-version-update;com.azure:azure-json;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core</artifactId>
Expand All @@ -63,6 +59,11 @@
<artifactId>azure-core-management</artifactId>
<version>1.15.6</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-json</artifactId>
<version>1.3.0</version> <!-- {x-version-update;com.azure:azure-json;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-test</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
Expand All @@ -28,6 +28,7 @@
import com.azure.resourcemanager.azurestackhci.implementation.AzureStackHciClientBuilder;
import com.azure.resourcemanager.azurestackhci.implementation.ClustersImpl;
import com.azure.resourcemanager.azurestackhci.implementation.DeploymentSettingsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.EdgeDeviceJobsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.EdgeDevicesImpl;
import com.azure.resourcemanager.azurestackhci.implementation.ExtensionsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.OffersImpl;
Expand All @@ -36,11 +37,12 @@
import com.azure.resourcemanager.azurestackhci.implementation.SecuritySettingsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.SkusImpl;
import com.azure.resourcemanager.azurestackhci.implementation.UpdateRunsImpl;
import com.azure.resourcemanager.azurestackhci.implementation.UpdatesImpl;
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.DeploymentSettings;
import com.azure.resourcemanager.azurestackhci.models.EdgeDeviceJobs;
import com.azure.resourcemanager.azurestackhci.models.EdgeDevices;
import com.azure.resourcemanager.azurestackhci.models.Extensions;
import com.azure.resourcemanager.azurestackhci.models.Offers;
Expand All @@ -49,8 +51,8 @@
import com.azure.resourcemanager.azurestackhci.models.SecuritySettings;
import com.azure.resourcemanager.azurestackhci.models.Skus;
import com.azure.resourcemanager.azurestackhci.models.UpdateRuns;
import com.azure.resourcemanager.azurestackhci.models.Updates;
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 @@ -69,6 +71,8 @@ public final class AzureStackHciManager {

private DeploymentSettings deploymentSettings;

private EdgeDeviceJobs edgeDeviceJobs;

private EdgeDevices edgeDevices;

private Extensions extensions;
Expand All @@ -85,10 +89,10 @@ public final class AzureStackHciManager {

private UpdateRuns updateRuns;

private UpdateSummariesOperations updateSummariesOperations;

private Updates updates;

private UpdateSummariesOperations updateSummariesOperations;

private final AzureStackHciClient clientObject;

private AzureStackHciManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -253,7 +257,7 @@ public AzureStackHciManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.azurestackhci")
.append("/")
.append("1.0.0-beta.5");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
Expand Down Expand Up @@ -286,7 +290,7 @@ public AzureStackHciManager authenticate(TokenCredential credential, AzureProfil
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
Expand Down Expand Up @@ -335,6 +339,18 @@ public DeploymentSettings deploymentSettings() {
return deploymentSettings;
}

/**
* Gets the resource collection API of EdgeDeviceJobs.
*
* @return Resource collection API of EdgeDeviceJobs.
*/
public EdgeDeviceJobs edgeDeviceJobs() {
if (this.edgeDeviceJobs == null) {
this.edgeDeviceJobs = new EdgeDeviceJobsImpl(clientObject.getEdgeDeviceJobs(), this);
}
return edgeDeviceJobs;
}

/**
* Gets the resource collection API of EdgeDevices.
*
Expand Down Expand Up @@ -431,6 +447,18 @@ public UpdateRuns updateRuns() {
return updateRuns;
}

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

/**
* Gets the resource collection API of UpdateSummariesOperations.
*
Expand All @@ -444,18 +472,6 @@ public UpdateSummariesOperations updateSummariesOperations() {
return updateSummariesOperations;
}

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

/**
* Gets 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 @@ -67,6 +67,13 @@ public interface AzureStackHciClient {
*/
DeploymentSettingsClient getDeploymentSettings();

/**
* Gets the EdgeDeviceJobsClient object to access its operations.
*
* @return the EdgeDeviceJobsClient object.
*/
EdgeDeviceJobsClient getEdgeDeviceJobs();

/**
* Gets the EdgeDevicesClient object to access its operations.
*
Expand Down Expand Up @@ -124,16 +131,16 @@ public interface AzureStackHciClient {
UpdateRunsClient getUpdateRuns();

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

/**
* Gets the UpdatesClient object to access its operations.
* Gets the UpdateSummariesOperationsClient object to access its operations.
*
* @return the UpdatesClient object.
* @return the UpdateSummariesOperationsClient object.
*/
UpdatesClient getUpdates();
UpdateSummariesOperationsClient getUpdateSummariesOperations();
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.azure.resourcemanager.azurestackhci.models.ClusterPatch;
import com.azure.resourcemanager.azurestackhci.models.LogCollectionRequest;
import com.azure.resourcemanager.azurestackhci.models.RemoteSupportRequest;
import com.azure.resourcemanager.azurestackhci.models.SecretsLocationsChangeRequest;
import com.azure.resourcemanager.azurestackhci.models.SoftwareAssuranceChangeRequest;
import com.azure.resourcemanager.azurestackhci.models.UploadCertificateRequest;

Expand Down Expand Up @@ -210,6 +211,68 @@ Response<ClusterInner> updateWithResponse(String resourceGroupName, String clust
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String clusterName, Context context);

/**
* Update cluster secrets locations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param body The content of the action request.
* @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> beginUpdateSecretsLocations(String resourceGroupName,
String clusterName, SecretsLocationsChangeRequest body);

/**
* Update cluster secrets locations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param body The content of the action request.
* @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> beginUpdateSecretsLocations(String resourceGroupName,
String clusterName, SecretsLocationsChangeRequest body, Context context);

/**
* Update cluster secrets locations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param body The content of the action request.
* @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 updateSecretsLocations(String resourceGroupName, String clusterName,
SecretsLocationsChangeRequest body);

/**
* Update cluster secrets locations.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the cluster.
* @param body The content of the action request.
* @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 updateSecretsLocations(String resourceGroupName, String clusterName,
SecretsLocationsChangeRequest body, Context context);

/**
* Upload certificate.
*
Expand Down
Loading

0 comments on commit 4eb57db

Please sign in to comment.