Skip to content

Commit 59711f7

Browse files
author
SDKAuto
committed
CodeGen from PR 22034 in Azure/azure-rest-api-specs
Merge bbc20c3fef3a651e79927cc0111ecb7040741aa8 into 9f424ed293693f224970fbc8633fdc20eaf09f28
1 parent 789b4f6 commit 59711f7

File tree

145 files changed

+6240
-2809
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+6240
-2809
lines changed

sdk/hybridcompute/azure-resourcemanager-hybridcompute/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.3 (Unreleased)
3+
## 1.0.0-beta.1 (2023-01-31)
4+
5+
- 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).
46

57
### Features Added
68

sdk/hybridcompute/azure-resourcemanager-hybridcompute/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager HybridCompute client library for Java.
44

5-
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).
5+
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).
66

77
## We'd love to hear your feedback
88

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-hybridcompute</artifactId>
35-
<version>1.0.0-beta.2</version>
35+
<version>1.0.0-beta.3</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/hybridcompute/azure-resourcemanager-hybridcompute/SAMPLE.md

Lines changed: 213 additions & 60 deletions
Large diffs are not rendered by default.

sdk/hybridcompute/azure-resourcemanager-hybridcompute/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

1515
<name>Microsoft Azure SDK for HybridCompute Management</name>
16-
<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>
16+
<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>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/HybridComputeManager.java

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,25 @@
2424
import com.azure.core.util.Configuration;
2525
import com.azure.core.util.logging.ClientLogger;
2626
import com.azure.resourcemanager.hybridcompute.fluent.HybridComputeManagementClient;
27+
import com.azure.resourcemanager.hybridcompute.implementation.ExtensionMetadatasImpl;
2728
import com.azure.resourcemanager.hybridcompute.implementation.HybridComputeManagementClientBuilder;
2829
import com.azure.resourcemanager.hybridcompute.implementation.MachineExtensionsImpl;
2930
import com.azure.resourcemanager.hybridcompute.implementation.MachinesImpl;
31+
import com.azure.resourcemanager.hybridcompute.implementation.NetworkProfilesImpl;
3032
import com.azure.resourcemanager.hybridcompute.implementation.OperationsImpl;
3133
import com.azure.resourcemanager.hybridcompute.implementation.PrivateEndpointConnectionsImpl;
3234
import com.azure.resourcemanager.hybridcompute.implementation.PrivateLinkResourcesImpl;
3335
import com.azure.resourcemanager.hybridcompute.implementation.PrivateLinkScopesImpl;
36+
import com.azure.resourcemanager.hybridcompute.implementation.ResourceProvidersImpl;
37+
import com.azure.resourcemanager.hybridcompute.models.ExtensionMetadatas;
3438
import com.azure.resourcemanager.hybridcompute.models.MachineExtensions;
3539
import com.azure.resourcemanager.hybridcompute.models.Machines;
40+
import com.azure.resourcemanager.hybridcompute.models.NetworkProfiles;
3641
import com.azure.resourcemanager.hybridcompute.models.Operations;
3742
import com.azure.resourcemanager.hybridcompute.models.PrivateEndpointConnections;
3843
import com.azure.resourcemanager.hybridcompute.models.PrivateLinkResources;
3944
import com.azure.resourcemanager.hybridcompute.models.PrivateLinkScopes;
45+
import com.azure.resourcemanager.hybridcompute.models.ResourceProviders;
4046
import java.time.Duration;
4147
import java.time.temporal.ChronoUnit;
4248
import java.util.ArrayList;
@@ -50,8 +56,14 @@ public final class HybridComputeManager {
5056

5157
private MachineExtensions machineExtensions;
5258

59+
private ResourceProviders resourceProviders;
60+
61+
private ExtensionMetadatas extensionMetadatas;
62+
5363
private Operations operations;
5464

65+
private NetworkProfiles networkProfiles;
66+
5567
private PrivateLinkScopes privateLinkScopes;
5668

5769
private PrivateLinkResources privateLinkResources;
@@ -223,7 +235,7 @@ public HybridComputeManager authenticate(TokenCredential credential, AzureProfil
223235
.append("-")
224236
.append("com.azure.resourcemanager.hybridcompute")
225237
.append("/")
226-
.append("1.0.0-beta.2");
238+
.append("1.0.0-beta.1");
227239
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
228240
userAgentBuilder
229241
.append(" (")
@@ -304,6 +316,30 @@ public MachineExtensions machineExtensions() {
304316
return machineExtensions;
305317
}
306318

319+
/**
320+
* Gets the resource collection API of ResourceProviders.
321+
*
322+
* @return Resource collection API of ResourceProviders.
323+
*/
324+
public ResourceProviders resourceProviders() {
325+
if (this.resourceProviders == null) {
326+
this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
327+
}
328+
return resourceProviders;
329+
}
330+
331+
/**
332+
* Gets the resource collection API of ExtensionMetadatas.
333+
*
334+
* @return Resource collection API of ExtensionMetadatas.
335+
*/
336+
public ExtensionMetadatas extensionMetadatas() {
337+
if (this.extensionMetadatas == null) {
338+
this.extensionMetadatas = new ExtensionMetadatasImpl(clientObject.getExtensionMetadatas(), this);
339+
}
340+
return extensionMetadatas;
341+
}
342+
307343
/**
308344
* Gets the resource collection API of Operations.
309345
*
@@ -316,6 +352,18 @@ public Operations operations() {
316352
return operations;
317353
}
318354

355+
/**
356+
* Gets the resource collection API of NetworkProfiles.
357+
*
358+
* @return Resource collection API of NetworkProfiles.
359+
*/
360+
public NetworkProfiles networkProfiles() {
361+
if (this.networkProfiles == null) {
362+
this.networkProfiles = new NetworkProfilesImpl(clientObject.getNetworkProfiles(), this);
363+
}
364+
return networkProfiles;
365+
}
366+
319367
/**
320368
* Gets the resource collection API of PrivateLinkScopes. It manages HybridComputePrivateLinkScope.
321369
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.hybridcompute.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.PagedIterable;
10+
import com.azure.core.http.rest.Response;
11+
import com.azure.core.util.Context;
12+
import com.azure.resourcemanager.hybridcompute.fluent.models.ExtensionValueInner;
13+
14+
/** An instance of this class provides access to all the operations defined in ExtensionMetadatasClient. */
15+
public interface ExtensionMetadatasClient {
16+
/**
17+
* Gets an Extension Metadata based on location, publisher, extensionType and version.
18+
*
19+
* @param location The location of the Extension being received.
20+
* @param publisher The publisher of the Extension being received.
21+
* @param extensionType The extensionType of the Extension being received.
22+
* @param version The version of the Extension being received.
23+
* @param context The context to associate with this operation.
24+
* @throws IllegalArgumentException thrown if parameters fail the validation.
25+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
26+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
27+
* @return an Extension Metadata based on location, publisher, extensionType and version along with {@link
28+
* Response}.
29+
*/
30+
@ServiceMethod(returns = ReturnType.SINGLE)
31+
Response<ExtensionValueInner> getWithResponse(
32+
String location, String publisher, String extensionType, String version, Context context);
33+
34+
/**
35+
* Gets an Extension Metadata based on location, publisher, extensionType and version.
36+
*
37+
* @param location The location of the Extension being received.
38+
* @param publisher The publisher of the Extension being received.
39+
* @param extensionType The extensionType of the Extension being received.
40+
* @param version The version of the Extension being received.
41+
* @throws IllegalArgumentException thrown if parameters fail the validation.
42+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
43+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
44+
* @return an Extension Metadata based on location, publisher, extensionType and version.
45+
*/
46+
@ServiceMethod(returns = ReturnType.SINGLE)
47+
ExtensionValueInner get(String location, String publisher, String extensionType, String version);
48+
49+
/**
50+
* Gets all Extension versions based on location, publisher, extensionType.
51+
*
52+
* @param location The location of the Extension being received.
53+
* @param publisher The publisher of the Extension being received.
54+
* @param extensionType The extensionType of the Extension being received.
55+
* @throws IllegalArgumentException thrown if parameters fail the validation.
56+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
57+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
58+
* @return all Extension versions based on location, publisher, extensionType as paginated response with {@link
59+
* PagedIterable}.
60+
*/
61+
@ServiceMethod(returns = ReturnType.COLLECTION)
62+
PagedIterable<ExtensionValueInner> list(String location, String publisher, String extensionType);
63+
64+
/**
65+
* Gets all Extension versions based on location, publisher, extensionType.
66+
*
67+
* @param location The location of the Extension being received.
68+
* @param publisher The publisher of the Extension being received.
69+
* @param extensionType The extensionType of the Extension being received.
70+
* @param context The context to associate with this operation.
71+
* @throws IllegalArgumentException thrown if parameters fail the validation.
72+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
73+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
74+
* @return all Extension versions based on location, publisher, extensionType as paginated response with {@link
75+
* PagedIterable}.
76+
*/
77+
@ServiceMethod(returns = ReturnType.COLLECTION)
78+
PagedIterable<ExtensionValueInner> list(String location, String publisher, String extensionType, Context context);
79+
}

sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/HybridComputeManagementClient.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,34 @@ public interface HybridComputeManagementClient {
5858
*/
5959
MachineExtensionsClient getMachineExtensions();
6060

61+
/**
62+
* Gets the ResourceProvidersClient object to access its operations.
63+
*
64+
* @return the ResourceProvidersClient object.
65+
*/
66+
ResourceProvidersClient getResourceProviders();
67+
68+
/**
69+
* Gets the ExtensionMetadatasClient object to access its operations.
70+
*
71+
* @return the ExtensionMetadatasClient object.
72+
*/
73+
ExtensionMetadatasClient getExtensionMetadatas();
74+
6175
/**
6276
* Gets the OperationsClient object to access its operations.
6377
*
6478
* @return the OperationsClient object.
6579
*/
6680
OperationsClient getOperations();
6781

82+
/**
83+
* Gets the NetworkProfilesClient object to access its operations.
84+
*
85+
* @return the NetworkProfilesClient object.
86+
*/
87+
NetworkProfilesClient getNetworkProfiles();
88+
6889
/**
6990
* Gets the PrivateLinkScopesClient object to access its operations.
7091
*

sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachinesClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/** An instance of this class provides access to all the operations defined in MachinesClient. */
1616
public interface MachinesClient {
1717
/**
18-
* The operation to remove a hybrid machine identity in Azure.
18+
* The operation to delete a hybrid machine.
1919
*
2020
* @param resourceGroupName The name of the resource group. The name is case insensitive.
2121
* @param machineName The name of the hybrid machine.
@@ -29,7 +29,7 @@ public interface MachinesClient {
2929
Response<Void> deleteWithResponse(String resourceGroupName, String machineName, Context context);
3030

3131
/**
32-
* The operation to remove a hybrid machine identity in Azure.
32+
* The operation to delete a hybrid machine.
3333
*
3434
* @param resourceGroupName The name of the resource group. The name is case insensitive.
3535
* @param machineName The name of the hybrid machine.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.hybridcompute.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.Response;
10+
import com.azure.core.util.Context;
11+
import com.azure.resourcemanager.hybridcompute.fluent.models.NetworkProfileInner;
12+
13+
/** An instance of this class provides access to all the operations defined in NetworkProfilesClient. */
14+
public interface NetworkProfilesClient {
15+
/**
16+
* The operation to get network information of hybrid machine.
17+
*
18+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
19+
* @param machineName The name of the hybrid machine.
20+
* @param context The context to associate with this operation.
21+
* @throws IllegalArgumentException thrown if parameters fail the validation.
22+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
23+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
24+
* @return describes the network information on this machine along with {@link Response}.
25+
*/
26+
@ServiceMethod(returns = ReturnType.SINGLE)
27+
Response<NetworkProfileInner> getWithResponse(String resourceGroupName, String machineName, Context context);
28+
29+
/**
30+
* The operation to get network information of hybrid machine.
31+
*
32+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
33+
* @param machineName The name of the hybrid machine.
34+
* @throws IllegalArgumentException thrown if parameters fail the validation.
35+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
36+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
37+
* @return describes the network information on this machine.
38+
*/
39+
@ServiceMethod(returns = ReturnType.SINGLE)
40+
NetworkProfileInner get(String resourceGroupName, String machineName);
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.hybridcompute.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.management.polling.PollResult;
10+
import com.azure.core.util.Context;
11+
import com.azure.core.util.polling.SyncPoller;
12+
import com.azure.resourcemanager.hybridcompute.models.MachineExtensionUpgrade;
13+
14+
/** An instance of this class provides access to all the operations defined in ResourceProvidersClient. */
15+
public interface ResourceProvidersClient {
16+
/**
17+
* The operation to Upgrade Machine Extensions.
18+
*
19+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
20+
* @param machineName The name of the hybrid machine.
21+
* @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation.
22+
* @throws IllegalArgumentException thrown if parameters fail the validation.
23+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
24+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
25+
* @return the {@link SyncPoller} for polling of long-running operation.
26+
*/
27+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
28+
SyncPoller<PollResult<Void>, Void> beginUpgradeExtensions(
29+
String resourceGroupName, String machineName, MachineExtensionUpgrade extensionUpgradeParameters);
30+
31+
/**
32+
* The operation to Upgrade Machine Extensions.
33+
*
34+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
35+
* @param machineName The name of the hybrid machine.
36+
* @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation.
37+
* @param context The context to associate with this operation.
38+
* @throws IllegalArgumentException thrown if parameters fail the validation.
39+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
40+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
41+
* @return the {@link SyncPoller} for polling of long-running operation.
42+
*/
43+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
44+
SyncPoller<PollResult<Void>, Void> beginUpgradeExtensions(
45+
String resourceGroupName,
46+
String machineName,
47+
MachineExtensionUpgrade extensionUpgradeParameters,
48+
Context context);
49+
50+
/**
51+
* The operation to Upgrade Machine Extensions.
52+
*
53+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
54+
* @param machineName The name of the hybrid machine.
55+
* @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation.
56+
* @throws IllegalArgumentException thrown if parameters fail the validation.
57+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
58+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
59+
*/
60+
@ServiceMethod(returns = ReturnType.SINGLE)
61+
void upgradeExtensions(
62+
String resourceGroupName, String machineName, MachineExtensionUpgrade extensionUpgradeParameters);
63+
64+
/**
65+
* The operation to Upgrade Machine Extensions.
66+
*
67+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
68+
* @param machineName The name of the hybrid machine.
69+
* @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation.
70+
* @param context The context to associate with this operation.
71+
* @throws IllegalArgumentException thrown if parameters fail the validation.
72+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
73+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
74+
*/
75+
@ServiceMethod(returns = ReturnType.SINGLE)
76+
void upgradeExtensions(
77+
String resourceGroupName,
78+
String machineName,
79+
MachineExtensionUpgrade extensionUpgradeParameters,
80+
Context context);
81+
}

0 commit comments

Comments
 (0)