Skip to content

Commit ffe3c40

Browse files
author
SDKAuto
committed
CodeGen from PR 32148 in Azure/azure-rest-api-specs
Merge 23ef7e5717850c52957a6ba4ed1ca52c921dfc84 into a7d34b7b9e094a981523f18d899f779edf2a88eb
1 parent 62df182 commit ffe3c40

File tree

491 files changed

+30550
-21581
lines changed

Some content is hidden

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

491 files changed

+30550
-21581
lines changed

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

Lines changed: 919 additions & 4 deletions
Large diffs are not rendered by default.

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

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

33
Azure Resource Manager DesktopVirtualization client library for Java.
44

5-
This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. 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).
5+
This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. This Typespec represents the Desktop Virtualization API interfaces. Package tag package-preview-2024-08. 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

@@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
5252
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
5353

5454
```java
55-
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
55+
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
5656
TokenCredential credential = new DefaultAzureCredentialBuilder()
5757
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
5858
.build();
5959
DesktopVirtualizationManager manager = DesktopVirtualizationManager
6060
.authenticate(credential, profile);
6161
```
6262

63-
The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
63+
The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
6464

6565
See [Authentication][authenticate] for more options.
6666

@@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
100100
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
101101
[coc]: https://opensource.microsoft.com/codeofconduct/
102102
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
103-
104-

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

Lines changed: 1023 additions & 346 deletions
Large diffs are not rendered by default.

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for DesktopVirtualization Management</name>
21-
<description>This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2024-04.</description>
21+
<description>This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. This Typespec represents the Desktop Virtualization API interfaces. Package tag package-preview-2024-08.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -45,13 +45,10 @@
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
48+
<revapi.skip>true</revapi.skip>
49+
<spotless.skip>false</spotless.skip>
4850
</properties>
4951
<dependencies>
50-
<dependency>
51-
<groupId>com.azure</groupId>
52-
<artifactId>azure-json</artifactId>
53-
<version>1.4.0</version> <!-- {x-version-update;com.azure:azure-json;dependency} -->
54-
</dependency>
5552
<dependency>
5653
<groupId>com.azure</groupId>
5754
<artifactId>azure-core</artifactId>
@@ -62,6 +59,11 @@
6259
<artifactId>azure-core-management</artifactId>
6360
<version>1.16.2</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
6461
</dependency>
62+
<dependency>
63+
<groupId>com.azure</groupId>
64+
<artifactId>azure-json</artifactId>
65+
<version>1.4.0</version> <!-- {x-version-update;com.azure:azure-json;dependency} -->
66+
</dependency>
6567
<dependency>
6668
<groupId>com.azure</groupId>
6769
<artifactId>azure-core-test</artifactId>

sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/DesktopVirtualizationManager.java

Lines changed: 224 additions & 114 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
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.desktopvirtualization.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.PagedFlux;
10+
import com.azure.core.http.rest.PagedIterable;
11+
import com.azure.core.http.rest.Response;
12+
import com.azure.core.util.Context;
13+
import com.azure.resourcemanager.desktopvirtualization.fluent.models.ActiveSessionHostConfigurationInner;
14+
import reactor.core.publisher.Mono;
15+
16+
/**
17+
* An instance of this class provides access to all the operations defined in ActiveSessionHostConfigurationsClient.
18+
*/
19+
public interface ActiveSessionHostConfigurationsClient {
20+
/**
21+
* Operation to list the ActiveSessionHostConfigurations associated with the HostPool.
22+
*
23+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
24+
* @param hostPoolName The name of the host pool within the specified resource group.
25+
* @throws IllegalArgumentException thrown if parameters fail the validation.
26+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
27+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
28+
* @return list of ActiveSessionHostConfiguration definitions as paginated response with {@link PagedFlux}.
29+
*/
30+
@ServiceMethod(returns = ReturnType.COLLECTION)
31+
PagedFlux<ActiveSessionHostConfigurationInner> listByHostPoolAsync(String resourceGroupName, String hostPoolName);
32+
33+
/**
34+
* Operation to list the ActiveSessionHostConfigurations associated with the HostPool.
35+
*
36+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
37+
* @param hostPoolName The name of the host pool within the specified resource group.
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 list of ActiveSessionHostConfiguration definitions as paginated response with {@link PagedIterable}.
42+
*/
43+
@ServiceMethod(returns = ReturnType.COLLECTION)
44+
PagedIterable<ActiveSessionHostConfigurationInner> listByHostPool(String resourceGroupName, String hostPoolName);
45+
46+
/**
47+
* Operation to list the ActiveSessionHostConfigurations associated with the HostPool.
48+
*
49+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
50+
* @param hostPoolName The name of the host pool within the specified resource group.
51+
* @param context The context to associate with this operation.
52+
* @throws IllegalArgumentException thrown if parameters fail the validation.
53+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
54+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
55+
* @return list of ActiveSessionHostConfiguration definitions as paginated response with {@link PagedIterable}.
56+
*/
57+
@ServiceMethod(returns = ReturnType.COLLECTION)
58+
PagedIterable<ActiveSessionHostConfigurationInner> listByHostPool(String resourceGroupName, String hostPoolName,
59+
Context context);
60+
61+
/**
62+
* Get a ActiveSessionHostConfiguration.
63+
*
64+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
65+
* @param hostPoolName The name of the host pool within the specified resource group.
66+
* @throws IllegalArgumentException thrown if parameters fail the validation.
67+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
68+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
69+
* @return a ActiveSessionHostConfiguration along with {@link Response} on successful completion of {@link Mono}.
70+
*/
71+
@ServiceMethod(returns = ReturnType.SINGLE)
72+
Mono<Response<ActiveSessionHostConfigurationInner>> getWithResponseAsync(String resourceGroupName,
73+
String hostPoolName);
74+
75+
/**
76+
* Get a ActiveSessionHostConfiguration.
77+
*
78+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
79+
* @param hostPoolName The name of the host pool within the specified resource group.
80+
* @throws IllegalArgumentException thrown if parameters fail the validation.
81+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
82+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
83+
* @return a ActiveSessionHostConfiguration on successful completion of {@link Mono}.
84+
*/
85+
@ServiceMethod(returns = ReturnType.SINGLE)
86+
Mono<ActiveSessionHostConfigurationInner> getAsync(String resourceGroupName, String hostPoolName);
87+
88+
/**
89+
* Get a ActiveSessionHostConfiguration.
90+
*
91+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
92+
* @param hostPoolName The name of the host pool within the specified resource group.
93+
* @param context The context to associate with this operation.
94+
* @throws IllegalArgumentException thrown if parameters fail the validation.
95+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
96+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
97+
* @return a ActiveSessionHostConfiguration along with {@link Response}.
98+
*/
99+
@ServiceMethod(returns = ReturnType.SINGLE)
100+
Response<ActiveSessionHostConfigurationInner> getWithResponse(String resourceGroupName, String hostPoolName,
101+
Context context);
102+
103+
/**
104+
* Get a ActiveSessionHostConfiguration.
105+
*
106+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
107+
* @param hostPoolName The name of the host pool within the specified resource group.
108+
* @throws IllegalArgumentException thrown if parameters fail the validation.
109+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
110+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
111+
* @return a ActiveSessionHostConfiguration.
112+
*/
113+
@ServiceMethod(returns = ReturnType.SINGLE)
114+
ActiveSessionHostConfigurationInner get(String resourceGroupName, String hostPoolName);
115+
}

sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/fluent/AppAttachPackageInfoesClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public interface AppAttachPackageInfoesClient {
2121
*
2222
* @param resourceGroupName The name of the resource group. The name is case insensitive.
2323
* @param hostPoolName The name of the host pool within the specified resource group.
24-
* @param importPackageInfoRequest Object containing URI to package image and other optional properties.
24+
* @param importPackageInfoRequest The importPackageInfoRequest parameter.
2525
* @throws IllegalArgumentException thrown if parameters fail the validation.
2626
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2727
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -36,7 +36,7 @@ PagedFlux<AppAttachPackageInner> importMethodAsync(String resourceGroupName, Str
3636
*
3737
* @param resourceGroupName The name of the resource group. The name is case insensitive.
3838
* @param hostPoolName The name of the host pool within the specified resource group.
39-
* @param importPackageInfoRequest Object containing URI to package image and other optional properties.
39+
* @param importPackageInfoRequest The importPackageInfoRequest parameter.
4040
* @throws IllegalArgumentException thrown if parameters fail the validation.
4141
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
4242
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -52,7 +52,7 @@ PagedIterable<AppAttachPackageInner> importMethod(String resourceGroupName, Stri
5252
*
5353
* @param resourceGroupName The name of the resource group. The name is case insensitive.
5454
* @param hostPoolName The name of the host pool within the specified resource group.
55-
* @param importPackageInfoRequest Object containing URI to package image and other optional properties.
55+
* @param importPackageInfoRequest The importPackageInfoRequest parameter.
5656
* @param context The context to associate with this operation.
5757
* @throws IllegalArgumentException thrown if parameters fail the validation.
5858
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.

0 commit comments

Comments
 (0)