Skip to content

Commit

Permalink
CodeGen from PR 31270 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 68f50d0af3f4db8b500b23fd6cc2ff9723fc1f77 into ecf1283ebb48d885af6b09f467416f9d502ba77d
  • Loading branch information
SDKAuto committed Oct 28, 2024
1 parent e9f1ef0 commit 8bd94bb
Show file tree
Hide file tree
Showing 709 changed files with 38,951 additions and 25,608 deletions.
833 changes: 829 additions & 4 deletions sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md

Large diffs are not rendered by default.

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

Azure Resource Manager NetworkCloud client library for Java.

This package contains Microsoft Azure SDK for NetworkCloud Management SDK. The Network Cloud APIs provide management of the on-premises clusters and their resources, such as, racks, bare metal hosts, virtual machines, workload networks and more. Package tag package-2023-07-01. 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 NetworkCloud Management SDK. The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. Package tag package-2024-10-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-networkcloud</artifactId>
<version>1.0.0</version>
<version>1.1.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand All @@ -45,15 +45,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen

### Authentication

By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.

In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.

With above configuration, `azure` client can be authenticated using the following code:
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:

```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
Expand Down Expand Up @@ -94,9 +90,10 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
<!-- LINKS -->
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
[docs]: https://azure.github.io/azure-sdk-for-java/
[jdk]: https://docs.microsoft.com/java/azure/jdk/
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#credentials
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
Expand Down
3,277 changes: 2,016 additions & 1,261 deletions sdk/networkcloud/azure-resourcemanager-networkcloud/SAMPLE.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sdk/networkcloud/azure-resourcemanager-networkcloud/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 NetworkCloud Management</name>
<description>This package contains Microsoft Azure SDK for NetworkCloud Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Network Cloud APIs provide management of the on-premises clusters and their resources, such as, racks, bare metal hosts, virtual machines, workload networks and more. Package tag package-2023-07-01.</description>
<description>This package contains Microsoft Azure SDK for NetworkCloud Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. Package tag package-2024-10-01-preview.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,6 +45,8 @@
<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>
<spotless.skip>false</spotless.skip>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -75,8 +77,6 @@
<version>4.11.0</version> <!-- {x-version-update;org.mockito:mockito-core;external_dependency} -->
<scope>test</scope>
</dependency>
<!-- bytebuddy dependencies are required for mockito 4.11.0 to work with Java 21. Mockito 4.11.0 is the last release -->
<!-- of Mockito supporting Java 8 as a baseline. -->
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import com.azure.resourcemanager.networkcloud.implementation.ClusterManagersImpl;
import com.azure.resourcemanager.networkcloud.implementation.ClustersImpl;
import com.azure.resourcemanager.networkcloud.implementation.ConsolesImpl;
import com.azure.resourcemanager.networkcloud.implementation.KubernetesClusterFeaturesImpl;
import com.azure.resourcemanager.networkcloud.implementation.KubernetesClustersImpl;
import com.azure.resourcemanager.networkcloud.implementation.L2NetworksImpl;
import com.azure.resourcemanager.networkcloud.implementation.L3NetworksImpl;
Expand All @@ -52,6 +53,7 @@
import com.azure.resourcemanager.networkcloud.models.ClusterManagers;
import com.azure.resourcemanager.networkcloud.models.Clusters;
import com.azure.resourcemanager.networkcloud.models.Consoles;
import com.azure.resourcemanager.networkcloud.models.KubernetesClusterFeatures;
import com.azure.resourcemanager.networkcloud.models.KubernetesClusters;
import com.azure.resourcemanager.networkcloud.models.L2Networks;
import com.azure.resourcemanager.networkcloud.models.L3Networks;
Expand All @@ -71,8 +73,9 @@
import java.util.stream.Collectors;

/**
* Entry point to NetworkCloudManager. The Network Cloud APIs provide management of the on-premises clusters and their
* resources, such as, racks, bare metal hosts, virtual machines, workload networks and more.
* Entry point to NetworkCloudManager.
* The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters,
* hardware resources, and workload infrastructure resources.
*/
public final class NetworkCloudManager {
private Operations operations;
Expand Down Expand Up @@ -111,6 +114,8 @@ public final class NetworkCloudManager {

private AgentPools agentPools;

private KubernetesClusterFeatures kubernetesClusterFeatures;

private Consoles consoles;

private final NetworkCloud clientObject;
Expand All @@ -127,7 +132,7 @@ private NetworkCloudManager(HttpPipeline httpPipeline, AzureProfile profile, Dur

/**
* Creates an instance of NetworkCloud service API entry point.
*
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the NetworkCloud service API instance.
Expand All @@ -140,7 +145,7 @@ public static NetworkCloudManager authenticate(TokenCredential credential, Azure

/**
* Creates an instance of NetworkCloud service API entry point.
*
*
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the NetworkCloud service API instance.
Expand All @@ -153,14 +158,16 @@ public static NetworkCloudManager authenticate(HttpPipeline httpPipeline, AzureP

/**
* Gets a Configurable instance that can be used to create NetworkCloudManager with optional configuration.
*
*
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new NetworkCloudManager.Configurable();
}

/** The Configurable allowing configurations to be set. */
/**
* The Configurable allowing configurations to be set.
*/
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);

Expand Down Expand Up @@ -232,8 +239,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {

/**
* Sets the retry options for the HTTP pipeline retry policy.
*
* <p>This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
* <p>
* This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
*
* @param retryOptions the retry options for the HTTP pipeline retry policy.
* @return the configurable object itself.
Expand Down Expand Up @@ -275,7 +282,7 @@ public NetworkCloudManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.networkcloud")
.append("/")
.append("1.0.0");
.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 @@ -323,7 +330,7 @@ public NetworkCloudManager authenticate(TokenCredential credential, AzureProfile

/**
* Gets the resource collection API of Operations.
*
*
* @return Resource collection API of Operations.
*/
public Operations operations() {
Expand All @@ -335,7 +342,7 @@ public Operations operations() {

/**
* Gets the resource collection API of BareMetalMachines. It manages BareMetalMachine.
*
*
* @return Resource collection API of BareMetalMachines.
*/
public BareMetalMachines bareMetalMachines() {
Expand All @@ -347,7 +354,7 @@ public BareMetalMachines bareMetalMachines() {

/**
* Gets the resource collection API of CloudServicesNetworks. It manages CloudServicesNetwork.
*
*
* @return Resource collection API of CloudServicesNetworks.
*/
public CloudServicesNetworks cloudServicesNetworks() {
Expand All @@ -359,7 +366,7 @@ public CloudServicesNetworks cloudServicesNetworks() {

/**
* Gets the resource collection API of ClusterManagers. It manages ClusterManager.
*
*
* @return Resource collection API of ClusterManagers.
*/
public ClusterManagers clusterManagers() {
Expand All @@ -371,7 +378,7 @@ public ClusterManagers clusterManagers() {

/**
* Gets the resource collection API of Clusters. It manages Cluster.
*
*
* @return Resource collection API of Clusters.
*/
public Clusters clusters() {
Expand All @@ -383,7 +390,7 @@ public Clusters clusters() {

/**
* Gets the resource collection API of KubernetesClusters. It manages KubernetesCluster.
*
*
* @return Resource collection API of KubernetesClusters.
*/
public KubernetesClusters kubernetesClusters() {
Expand All @@ -395,7 +402,7 @@ public KubernetesClusters kubernetesClusters() {

/**
* Gets the resource collection API of L2Networks. It manages L2Network.
*
*
* @return Resource collection API of L2Networks.
*/
public L2Networks l2Networks() {
Expand All @@ -407,7 +414,7 @@ public L2Networks l2Networks() {

/**
* Gets the resource collection API of L3Networks. It manages L3Network.
*
*
* @return Resource collection API of L3Networks.
*/
public L3Networks l3Networks() {
Expand All @@ -419,7 +426,7 @@ public L3Networks l3Networks() {

/**
* Gets the resource collection API of RackSkus.
*
*
* @return Resource collection API of RackSkus.
*/
public RackSkus rackSkus() {
Expand All @@ -431,7 +438,7 @@ public RackSkus rackSkus() {

/**
* Gets the resource collection API of Racks. It manages Rack.
*
*
* @return Resource collection API of Racks.
*/
public Racks racks() {
Expand All @@ -443,7 +450,7 @@ public Racks racks() {

/**
* Gets the resource collection API of StorageAppliances. It manages StorageAppliance.
*
*
* @return Resource collection API of StorageAppliances.
*/
public StorageAppliances storageAppliances() {
Expand All @@ -455,7 +462,7 @@ public StorageAppliances storageAppliances() {

/**
* Gets the resource collection API of TrunkedNetworks. It manages TrunkedNetwork.
*
*
* @return Resource collection API of TrunkedNetworks.
*/
public TrunkedNetworks trunkedNetworks() {
Expand All @@ -467,7 +474,7 @@ public TrunkedNetworks trunkedNetworks() {

/**
* Gets the resource collection API of VirtualMachines. It manages VirtualMachine.
*
*
* @return Resource collection API of VirtualMachines.
*/
public VirtualMachines virtualMachines() {
Expand All @@ -479,7 +486,7 @@ public VirtualMachines virtualMachines() {

/**
* Gets the resource collection API of Volumes. It manages Volume.
*
*
* @return Resource collection API of Volumes.
*/
public Volumes volumes() {
Expand All @@ -491,7 +498,7 @@ public Volumes volumes() {

/**
* Gets the resource collection API of BareMetalMachineKeySets. It manages BareMetalMachineKeySet.
*
*
* @return Resource collection API of BareMetalMachineKeySets.
*/
public BareMetalMachineKeySets bareMetalMachineKeySets() {
Expand All @@ -504,7 +511,7 @@ public BareMetalMachineKeySets bareMetalMachineKeySets() {

/**
* Gets the resource collection API of BmcKeySets. It manages BmcKeySet.
*
*
* @return Resource collection API of BmcKeySets.
*/
public BmcKeySets bmcKeySets() {
Expand All @@ -516,7 +523,7 @@ public BmcKeySets bmcKeySets() {

/**
* Gets the resource collection API of MetricsConfigurations. It manages ClusterMetricsConfiguration.
*
*
* @return Resource collection API of MetricsConfigurations.
*/
public MetricsConfigurations metricsConfigurations() {
Expand All @@ -528,7 +535,7 @@ public MetricsConfigurations metricsConfigurations() {

/**
* Gets the resource collection API of AgentPools. It manages AgentPool.
*
*
* @return Resource collection API of AgentPools.
*/
public AgentPools agentPools() {
Expand All @@ -538,9 +545,22 @@ public AgentPools agentPools() {
return agentPools;
}

/**
* Gets the resource collection API of KubernetesClusterFeatures. It manages KubernetesClusterFeature.
*
* @return Resource collection API of KubernetesClusterFeatures.
*/
public KubernetesClusterFeatures kubernetesClusterFeatures() {
if (this.kubernetesClusterFeatures == null) {
this.kubernetesClusterFeatures
= new KubernetesClusterFeaturesImpl(clientObject.getKubernetesClusterFeatures(), this);
}
return kubernetesClusterFeatures;
}

/**
* Gets the resource collection API of Consoles. It manages Console.
*
*
* @return Resource collection API of Consoles.
*/
public Consoles consoles() {
Expand All @@ -553,7 +573,7 @@ public Consoles consoles() {
/**
* Gets wrapped service client NetworkCloud providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
*
*
* @return Wrapped service client NetworkCloud.
*/
public NetworkCloud serviceClient() {
Expand Down
Loading

0 comments on commit 8bd94bb

Please sign in to comment.