Skip to content

Commit 701e28b

Browse files
author
SDKAuto
committed
CodeGen from PR 26142 in Azure/azure-rest-api-specs
Merge 358648e5eda7182d06a7a794717bfa03eb1a4af9 into b36917f41f60c046b9dfd65b7fd73c608494cd75
1 parent 9011ace commit 701e28b

File tree

239 files changed

+6042
-8594
lines changed

Some content is hidden

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

239 files changed

+6042
-8594
lines changed

sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/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.2.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2023-10-31)
4+
5+
- Azure Resource Manager DesktopVirtualization client library for Java. This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. Package tag package-preview-2023-10. 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/desktopvirtualization/azure-resourcemanager-desktopvirtualization/README.md

Lines changed: 4 additions & 4 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-2023-09. 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. Package tag package-preview-2023-10. 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-desktopvirtualization</artifactId>
35-
<version>1.1.0</version>
35+
<version>1.2.0-beta.1</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -45,7 +45,7 @@ Azure Management Libraries require a `TokenCredential` implementation for authen
4545

4646
### Authentication
4747

48-
By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
48+
By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.
4949

5050
- `AZURE_CLIENT_ID` for Azure client ID.
5151
- `AZURE_TENANT_ID` for Azure tenant ID.
@@ -94,7 +94,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
9494
<!-- LINKS -->
9595
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
9696
[docs]: https://azure.github.io/azure-sdk-for-java/
97-
[jdk]: https://docs.microsoft.com/java/azure/jdk/
97+
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
9898
[azure_subscription]: https://azure.microsoft.com/free/
9999
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
100100
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty

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

Lines changed: 301 additions & 72 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 1 deletion
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-2023-09.</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. Package tag package-preview-2023-10.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -45,6 +45,7 @@
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>
4849
</properties>
4950
<dependencies>
5051
<dependency>

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

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
import com.azure.core.util.Configuration;
2525
import com.azure.core.util.logging.ClientLogger;
2626
import com.azure.resourcemanager.desktopvirtualization.fluent.DesktopVirtualizationApiClient;
27+
import com.azure.resourcemanager.desktopvirtualization.implementation.AppAttachPackageInfoesImpl;
28+
import com.azure.resourcemanager.desktopvirtualization.implementation.AppAttachPackagesImpl;
2729
import com.azure.resourcemanager.desktopvirtualization.implementation.ApplicationGroupsImpl;
2830
import com.azure.resourcemanager.desktopvirtualization.implementation.ApplicationsImpl;
2931
import com.azure.resourcemanager.desktopvirtualization.implementation.DesktopVirtualizationApiClientBuilder;
@@ -41,6 +43,8 @@
4143
import com.azure.resourcemanager.desktopvirtualization.implementation.StartMenuItemsImpl;
4244
import com.azure.resourcemanager.desktopvirtualization.implementation.UserSessionsImpl;
4345
import com.azure.resourcemanager.desktopvirtualization.implementation.WorkspacesImpl;
46+
import com.azure.resourcemanager.desktopvirtualization.models.AppAttachPackageInfoes;
47+
import com.azure.resourcemanager.desktopvirtualization.models.AppAttachPackages;
4448
import com.azure.resourcemanager.desktopvirtualization.models.ApplicationGroups;
4549
import com.azure.resourcemanager.desktopvirtualization.models.Applications;
4650
import com.azure.resourcemanager.desktopvirtualization.models.Desktops;
@@ -96,8 +100,12 @@ public final class DesktopVirtualizationManager {
96100

97101
private MsixPackages msixPackages;
98102

103+
private AppAttachPackageInfoes appAttachPackageInfoes;
104+
99105
private MsixImages msixImages;
100106

107+
private AppAttachPackages appAttachPackages;
108+
101109
private final DesktopVirtualizationApiClient clientObject;
102110

103111
private DesktopVirtualizationManager(
@@ -264,7 +272,7 @@ public DesktopVirtualizationManager authenticate(TokenCredential credential, Azu
264272
.append("-")
265273
.append("com.azure.resourcemanager.desktopvirtualization")
266274
.append("/")
267-
.append("1.1.0");
275+
.append("1.0.0-beta.1");
268276
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
269277
userAgentBuilder
270278
.append(" (")
@@ -504,6 +512,19 @@ public MsixPackages msixPackages() {
504512
return msixPackages;
505513
}
506514

515+
/**
516+
* Gets the resource collection API of AppAttachPackageInfoes.
517+
*
518+
* @return Resource collection API of AppAttachPackageInfoes.
519+
*/
520+
public AppAttachPackageInfoes appAttachPackageInfoes() {
521+
if (this.appAttachPackageInfoes == null) {
522+
this.appAttachPackageInfoes =
523+
new AppAttachPackageInfoesImpl(clientObject.getAppAttachPackageInfoes(), this);
524+
}
525+
return appAttachPackageInfoes;
526+
}
527+
507528
/**
508529
* Gets the resource collection API of MsixImages.
509530
*
@@ -516,6 +537,18 @@ public MsixImages msixImages() {
516537
return msixImages;
517538
}
518539

540+
/**
541+
* Gets the resource collection API of AppAttachPackages. It manages AppAttachPackage.
542+
*
543+
* @return Resource collection API of AppAttachPackages.
544+
*/
545+
public AppAttachPackages appAttachPackages() {
546+
if (this.appAttachPackages == null) {
547+
this.appAttachPackages = new AppAttachPackagesImpl(clientObject.getAppAttachPackages(), this);
548+
}
549+
return appAttachPackages;
550+
}
551+
519552
/**
520553
* Gets wrapped service client DesktopVirtualizationApiClient providing direct access to the underlying
521554
* auto-generated API implementation, based on Azure REST API.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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.util.Context;
12+
import com.azure.resourcemanager.desktopvirtualization.fluent.models.AppAttachPackageInner;
13+
import com.azure.resourcemanager.desktopvirtualization.models.ImportPackageInfoRequest;
14+
15+
/** An instance of this class provides access to all the operations defined in AppAttachPackageInfoesClient. */
16+
public interface AppAttachPackageInfoesClient {
17+
/**
18+
* Gets information from a package given the path to the package.
19+
*
20+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
21+
* @param hostPoolName The name of the host pool within the specified resource group.
22+
* @param importPackageInfoRequest Object containing URI to package image and other optional properties.
23+
* @throws IllegalArgumentException thrown if parameters fail the validation.
24+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
25+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
26+
* @return information from a package given the path to the package as paginated response with {@link PagedFlux}.
27+
*/
28+
@ServiceMethod(returns = ReturnType.COLLECTION)
29+
PagedFlux<AppAttachPackageInner> importMethodAsync(
30+
String resourceGroupName, String hostPoolName, ImportPackageInfoRequest importPackageInfoRequest);
31+
32+
/**
33+
* Gets information from a package given the path to the package.
34+
*
35+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
36+
* @param hostPoolName The name of the host pool within the specified resource group.
37+
* @param importPackageInfoRequest Object containing URI to package image and other optional properties.
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 information from a package given the path to the package as paginated response with {@link
42+
* PagedIterable}.
43+
*/
44+
@ServiceMethod(returns = ReturnType.COLLECTION)
45+
PagedIterable<AppAttachPackageInner> importMethod(
46+
String resourceGroupName, String hostPoolName, ImportPackageInfoRequest importPackageInfoRequest);
47+
48+
/**
49+
* Gets information from a package given the path to the package.
50+
*
51+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
52+
* @param hostPoolName The name of the host pool within the specified resource group.
53+
* @param importPackageInfoRequest Object containing URI to package image and other optional properties.
54+
* @param context The context to associate with this operation.
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 information from a package given the path to the package as paginated response with {@link
59+
* PagedIterable}.
60+
*/
61+
@ServiceMethod(returns = ReturnType.COLLECTION)
62+
PagedIterable<AppAttachPackageInner> importMethod(
63+
String resourceGroupName,
64+
String hostPoolName,
65+
ImportPackageInfoRequest importPackageInfoRequest,
66+
Context context);
67+
}

0 commit comments

Comments
 (0)