Skip to content

Commit

Permalink
CodeGen from PR 22034 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge bbc20c3fef3a651e79927cc0111ecb7040741aa8 into 9f424ed293693f224970fbc8633fdc20eaf09f28
  • Loading branch information
SDKAuto committed Jan 31, 2023
1 parent 789b4f6 commit 59711f7
Show file tree
Hide file tree
Showing 145 changed files with 6,240 additions and 2,809 deletions.
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-01-31)

- Azure Resource Manager HybridCompute client library for Java. This package contains Microsoft Azure SDK for HybridCompute Management SDK. The Hybrid Compute Management Client. 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).

### Features Added

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

Azure Resource Manager HybridCompute client library for Java.

This package contains Microsoft Azure SDK for HybridCompute Management SDK. The Hybrid Compute Management Client. Package tag package-preview-2021-03. 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 HybridCompute Management SDK. The Hybrid Compute Management Client. 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).

## 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-hybridcompute</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
273 changes: 213 additions & 60 deletions sdk/hybridcompute/azure-resourcemanager-hybridcompute/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 HybridCompute Management</name>
<description>This package contains Microsoft Azure SDK for HybridCompute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Hybrid Compute Management Client. Package tag package-preview-2021-03.</description>
<description>This package contains Microsoft Azure SDK for HybridCompute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Hybrid Compute Management Client. Package tag package-preview-2022-12.</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 @@ -24,19 +24,25 @@
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridcompute.fluent.HybridComputeManagementClient;
import com.azure.resourcemanager.hybridcompute.implementation.ExtensionMetadatasImpl;
import com.azure.resourcemanager.hybridcompute.implementation.HybridComputeManagementClientBuilder;
import com.azure.resourcemanager.hybridcompute.implementation.MachineExtensionsImpl;
import com.azure.resourcemanager.hybridcompute.implementation.MachinesImpl;
import com.azure.resourcemanager.hybridcompute.implementation.NetworkProfilesImpl;
import com.azure.resourcemanager.hybridcompute.implementation.OperationsImpl;
import com.azure.resourcemanager.hybridcompute.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.hybridcompute.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.hybridcompute.implementation.PrivateLinkScopesImpl;
import com.azure.resourcemanager.hybridcompute.implementation.ResourceProvidersImpl;
import com.azure.resourcemanager.hybridcompute.models.ExtensionMetadatas;
import com.azure.resourcemanager.hybridcompute.models.MachineExtensions;
import com.azure.resourcemanager.hybridcompute.models.Machines;
import com.azure.resourcemanager.hybridcompute.models.NetworkProfiles;
import com.azure.resourcemanager.hybridcompute.models.Operations;
import com.azure.resourcemanager.hybridcompute.models.PrivateEndpointConnections;
import com.azure.resourcemanager.hybridcompute.models.PrivateLinkResources;
import com.azure.resourcemanager.hybridcompute.models.PrivateLinkScopes;
import com.azure.resourcemanager.hybridcompute.models.ResourceProviders;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
Expand All @@ -50,8 +56,14 @@ public final class HybridComputeManager {

private MachineExtensions machineExtensions;

private ResourceProviders resourceProviders;

private ExtensionMetadatas extensionMetadatas;

private Operations operations;

private NetworkProfiles networkProfiles;

private PrivateLinkScopes privateLinkScopes;

private PrivateLinkResources privateLinkResources;
Expand Down Expand Up @@ -223,7 +235,7 @@ public HybridComputeManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.hybridcompute")
.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 @@ -304,6 +316,30 @@ public MachineExtensions machineExtensions() {
return machineExtensions;
}

/**
* Gets the resource collection API of ResourceProviders.
*
* @return Resource collection API of ResourceProviders.
*/
public ResourceProviders resourceProviders() {
if (this.resourceProviders == null) {
this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
}
return resourceProviders;
}

/**
* Gets the resource collection API of ExtensionMetadatas.
*
* @return Resource collection API of ExtensionMetadatas.
*/
public ExtensionMetadatas extensionMetadatas() {
if (this.extensionMetadatas == null) {
this.extensionMetadatas = new ExtensionMetadatasImpl(clientObject.getExtensionMetadatas(), this);
}
return extensionMetadatas;
}

/**
* Gets the resource collection API of Operations.
*
Expand All @@ -316,6 +352,18 @@ public Operations operations() {
return operations;
}

/**
* Gets the resource collection API of NetworkProfiles.
*
* @return Resource collection API of NetworkProfiles.
*/
public NetworkProfiles networkProfiles() {
if (this.networkProfiles == null) {
this.networkProfiles = new NetworkProfilesImpl(clientObject.getNetworkProfiles(), this);
}
return networkProfiles;
}

/**
* Gets the resource collection API of PrivateLinkScopes. It manages HybridComputePrivateLinkScope.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.hybridcompute.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.util.Context;
import com.azure.resourcemanager.hybridcompute.fluent.models.ExtensionValueInner;

/** An instance of this class provides access to all the operations defined in ExtensionMetadatasClient. */
public interface ExtensionMetadatasClient {
/**
* Gets an Extension Metadata based on location, publisher, extensionType and version.
*
* @param location The location of the Extension being received.
* @param publisher The publisher of the Extension being received.
* @param extensionType The extensionType of the Extension being received.
* @param version The version of the Extension being received.
* @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 an Extension Metadata based on location, publisher, extensionType and version along with {@link
* Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ExtensionValueInner> getWithResponse(
String location, String publisher, String extensionType, String version, Context context);

/**
* Gets an Extension Metadata based on location, publisher, extensionType and version.
*
* @param location The location of the Extension being received.
* @param publisher The publisher of the Extension being received.
* @param extensionType The extensionType of the Extension being received.
* @param version The version of the Extension being received.
* @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 an Extension Metadata based on location, publisher, extensionType and version.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ExtensionValueInner get(String location, String publisher, String extensionType, String version);

/**
* Gets all Extension versions based on location, publisher, extensionType.
*
* @param location The location of the Extension being received.
* @param publisher The publisher of the Extension being received.
* @param extensionType The extensionType of the Extension being received.
* @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 all Extension versions based on location, publisher, extensionType as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ExtensionValueInner> list(String location, String publisher, String extensionType);

/**
* Gets all Extension versions based on location, publisher, extensionType.
*
* @param location The location of the Extension being received.
* @param publisher The publisher of the Extension being received.
* @param extensionType The extensionType of the Extension being received.
* @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 all Extension versions based on location, publisher, extensionType as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ExtensionValueInner> list(String location, String publisher, String extensionType, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,34 @@ public interface HybridComputeManagementClient {
*/
MachineExtensionsClient getMachineExtensions();

/**
* Gets the ResourceProvidersClient object to access its operations.
*
* @return the ResourceProvidersClient object.
*/
ResourceProvidersClient getResourceProviders();

/**
* Gets the ExtensionMetadatasClient object to access its operations.
*
* @return the ExtensionMetadatasClient object.
*/
ExtensionMetadatasClient getExtensionMetadatas();

/**
* Gets the OperationsClient object to access its operations.
*
* @return the OperationsClient object.
*/
OperationsClient getOperations();

/**
* Gets the NetworkProfilesClient object to access its operations.
*
* @return the NetworkProfilesClient object.
*/
NetworkProfilesClient getNetworkProfiles();

/**
* Gets the PrivateLinkScopesClient object to access its operations.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/** An instance of this class provides access to all the operations defined in MachinesClient. */
public interface MachinesClient {
/**
* The operation to remove a hybrid machine identity in Azure.
* The operation to delete a hybrid machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
Expand All @@ -29,7 +29,7 @@ public interface MachinesClient {
Response<Void> deleteWithResponse(String resourceGroupName, String machineName, Context context);

/**
* The operation to remove a hybrid machine identity in Azure.
* The operation to delete a hybrid machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.hybridcompute.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.hybridcompute.fluent.models.NetworkProfileInner;

/** An instance of this class provides access to all the operations defined in NetworkProfilesClient. */
public interface NetworkProfilesClient {
/**
* The operation to get network information of hybrid machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
* @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 describes the network information on this machine along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<NetworkProfileInner> getWithResponse(String resourceGroupName, String machineName, Context context);

/**
* The operation to get network information of hybrid machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
* @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 describes the network information on this machine.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NetworkProfileInner get(String resourceGroupName, String machineName);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.hybridcompute.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.hybridcompute.models.MachineExtensionUpgrade;

/** An instance of this class provides access to all the operations defined in ResourceProvidersClient. */
public interface ResourceProvidersClient {
/**
* The operation to Upgrade Machine Extensions.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
* @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions 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> beginUpgradeExtensions(
String resourceGroupName, String machineName, MachineExtensionUpgrade extensionUpgradeParameters);

/**
* The operation to Upgrade Machine Extensions.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
* @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation.
* @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> beginUpgradeExtensions(
String resourceGroupName,
String machineName,
MachineExtensionUpgrade extensionUpgradeParameters,
Context context);

/**
* The operation to Upgrade Machine Extensions.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
* @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions 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 upgradeExtensions(
String resourceGroupName, String machineName, MachineExtensionUpgrade extensionUpgradeParameters);

/**
* The operation to Upgrade Machine Extensions.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
* @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation.
* @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 upgradeExtensions(
String resourceGroupName,
String machineName,
MachineExtensionUpgrade extensionUpgradeParameters,
Context context);
}
Loading

0 comments on commit 59711f7

Please sign in to comment.