Skip to content

Commit 5edd213

Browse files
author
SDKAuto
committed
CodeGen from PR 33822 in Azure/azure-rest-api-specs
Merge 2d03c69f6bee8977ae7f3551e457867edca0afb4 into 148c3b0b44f7789ced94859992493fafd0072f83
1 parent 1d4a7b0 commit 5edd213

Some content is hidden

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

48 files changed

+7044
-840
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 11 additions & 196 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/desktopvirtualization/arm-desktopvirtualization/CHANGELOG.md

Lines changed: 190 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,198 @@
11
# Release History
2-
3-
## 1.2.1 (Unreleased)
4-
2+
3+
## 2.0.0-beta.1 (2025-04-10)
4+
Compared with version 1.2.0
5+
56
### Features Added
67

7-
### Breaking Changes
8+
- Added operation group ActiveSessionHostConfigurations
9+
- Added operation group ControlSessionHostProvisioning
10+
- Added operation group ControlSessionHostUpdate
11+
- Added operation group InitiateSessionHostUpdate
12+
- Added operation group SessionHostConfigurations
13+
- Added operation group SessionHostManagements
14+
- Added operation group SessionHostManagementsUpdateStatus
15+
- Added operation group SessionHostOperations
16+
- Added operation group SessionHostProvisioningStatuses
17+
- Added Interface ActiveDirectoryInfoPatchProperties
18+
- Added Interface ActiveDirectoryInfoProperties
19+
- Added Interface ActiveSessionHostConfiguration
20+
- Added Interface ActiveSessionHostConfigurationList
21+
- Added Interface ActiveSessionHostConfigurationsGetOptionalParams
22+
- Added Interface ActiveSessionHostConfigurationsListByHostPoolNextOptionalParams
23+
- Added Interface ActiveSessionHostConfigurationsListByHostPoolOptionalParams
24+
- Added Interface AzureActiveDirectoryInfoProperties
25+
- Added Interface BootDiagnosticsInfoPatchProperties
26+
- Added Interface BootDiagnosticsInfoProperties
27+
- Added Interface ControlSessionHostProvisioningPostHeaders
28+
- Added Interface ControlSessionHostProvisioningPostOptionalParams
29+
- Added Interface ControlSessionHostUpdatePostHeaders
30+
- Added Interface ControlSessionHostUpdatePostOptionalParams
31+
- Added Interface CreateDeleteProperties
32+
- Added Interface CustomInfoPatchProperties
33+
- Added Interface CustomInfoProperties
34+
- Added Interface DiffDiskProperties
35+
- Added Interface DiskInfoProperties
36+
- Added Interface DomainInfoPatchProperties
37+
- Added Interface DomainInfoProperties
38+
- Added Interface HostPoolProvisioningControlParameter
39+
- Added Interface HostPoolUpdateConfigurationPatchProperties
40+
- Added Interface HostPoolUpdateConfigurationProperties
41+
- Added Interface HostPoolUpdateControlParameter
42+
- Added Interface HostPoolUpdateFault
43+
- Added Interface ImageInfoPatchProperties
44+
- Added Interface ImageInfoProperties
45+
- Added Interface InitiateSessionHostUpdatePostOptionalParams
46+
- Added Interface KeyVaultCredentialsPatchProperties
47+
- Added Interface KeyVaultCredentialsProperties
48+
- Added Interface ManagedDiskProperties
49+
- Added Interface ManagedServiceIdentity
50+
- Added Interface MarketplaceInfoPatchProperties
51+
- Added Interface MarketplaceInfoProperties
52+
- Added Interface NetworkInfoPatchProperties
53+
- Added Interface NetworkInfoProperties
54+
- Added Interface SecurityInfoPatchProperties
55+
- Added Interface SecurityInfoProperties
56+
- Added Interface SessionHostConfiguration
57+
- Added Interface SessionHostConfigurationList
58+
- Added Interface SessionHostConfigurationPatch
59+
- Added Interface SessionHostConfigurationsCreateOrUpdateHeaders
60+
- Added Interface SessionHostConfigurationsCreateOrUpdateOptionalParams
61+
- Added Interface SessionHostConfigurationsGetOptionalParams
62+
- Added Interface SessionHostConfigurationsListByHostPoolNextOptionalParams
63+
- Added Interface SessionHostConfigurationsListByHostPoolOptionalParams
64+
- Added Interface SessionHostConfigurationsUpdateHeaders
65+
- Added Interface SessionHostConfigurationsUpdateOptionalParams
66+
- Added Interface SessionHostManagement
67+
- Added Interface SessionHostManagementList
68+
- Added Interface SessionHostManagementOperationProgress
69+
- Added Interface SessionHostManagementPatch
70+
- Added Interface SessionHostManagementProvisioningOperationProgress
71+
- Added Interface SessionHostManagementProvisioningStatus
72+
- Added Interface SessionHostManagementsCreateOrUpdateOptionalParams
73+
- Added Interface SessionHostManagementsGetOptionalParams
74+
- Added Interface SessionHostManagementsListByHostPoolNextOptionalParams
75+
- Added Interface SessionHostManagementsListByHostPoolOptionalParams
76+
- Added Interface SessionHostManagementsUpdateOptionalParams
77+
- Added Interface SessionHostManagementsUpdateStatusGetOptionalParams
78+
- Added Interface SessionHostManagementUpdateStatus
79+
- Added Interface SessionHostProvisioningConfigurationPatchProperties
80+
- Added Interface SessionHostProvisioningConfigurationProperties
81+
- Added Interface SessionHostProvisioningStatusesGetOptionalParams
82+
- Added Interface SessionHostRetryProvisioningOptionalParams
83+
- Added Interface UpdateSessionHostsRequestBody
84+
- Added Interface UserAssignedIdentity
85+
- Added Type Alias ActiveSessionHostConfigurationsGetResponse
86+
- Added Type Alias ActiveSessionHostConfigurationsListByHostPoolNextResponse
87+
- Added Type Alias ActiveSessionHostConfigurationsListByHostPoolResponse
88+
- Added Type Alias CanaryPolicy
89+
- Added Type Alias ControlSessionHostProvisioningPostResponse
90+
- Added Type Alias ControlSessionHostUpdatePostResponse
91+
- Added Type Alias DiffDiskOption
92+
- Added Type Alias DiffDiskPlacement
93+
- Added Type Alias DirectUDP
94+
- Added Type Alias DomainJoinType
95+
- Added Type Alias FailedSessionHostCleanupPolicySHC
96+
- Added Type Alias FaultType
97+
- Added Type Alias HostPoolProvisioningAction
98+
- Added Type Alias HostPoolUpdateAction
99+
- Added Type Alias ManagedPrivateUDP
100+
- Added Type Alias ManagedServiceIdentityType
101+
- Added Type Alias ManagementType
102+
- Added Type Alias OperationTypeSHM
103+
- Added Type Alias ProvisioningStateSHC
104+
- Added Type Alias PublicUDP
105+
- Added Type Alias RelayUDP
106+
- Added Type Alias ScalingMethod
107+
- Added Type Alias SessionHostConfigurationsCreateOrUpdateResponse
108+
- Added Type Alias SessionHostConfigurationsGetResponse
109+
- Added Type Alias SessionHostConfigurationsListByHostPoolNextResponse
110+
- Added Type Alias SessionHostConfigurationsListByHostPoolResponse
111+
- Added Type Alias SessionHostConfigurationsUpdateResponse
112+
- Added Type Alias SessionHostManagementsCreateOrUpdateResponse
113+
- Added Type Alias SessionHostManagementsGetResponse
114+
- Added Type Alias SessionHostManagementsListByHostPoolNextResponse
115+
- Added Type Alias SessionHostManagementsListByHostPoolResponse
116+
- Added Type Alias SessionHostManagementsUpdateResponse
117+
- Added Type Alias SessionHostManagementsUpdateStatusGetResponse
118+
- Added Type Alias SessionHostProvisioningStatusesGetResponse
119+
- Added Type Alias Type
120+
- Added Type Alias VirtualMachineDiskType
121+
- Added Type Alias VirtualMachineSecurityType
122+
- Interface AppAttachPackageDeleteOptionalParams has a new optional parameter force
123+
- Interface AppAttachPackagePatch has a new optional parameter tags
124+
- Interface AppAttachPackagePatchProperties has a new optional parameter customData
125+
- Interface AppAttachPackagePatchProperties has a new optional parameter packageLookbackUrl
126+
- Interface AppAttachPackageProperties has a new optional parameter customData
127+
- Interface AppAttachPackageProperties has a new optional parameter packageLookbackUrl
128+
- Interface AppAttachPackageProperties has a new optional parameter packageOwnerName
129+
- Interface HostPool has a new optional parameter directUDP
130+
- Interface HostPool has a new optional parameter managedPrivateUDP
131+
- Interface HostPool has a new optional parameter managementType
132+
- Interface HostPool has a new optional parameter publicUDP
133+
- Interface HostPool has a new optional parameter relayUDP
134+
- Interface HostPoolPatch has a new optional parameter directUDP
135+
- Interface HostPoolPatch has a new optional parameter managedPrivateUDP
136+
- Interface HostPoolPatch has a new optional parameter publicUDP
137+
- Interface HostPoolPatch has a new optional parameter relayUDP
138+
- Interface ScalingPlanPooledSchedule has a new optional parameter createDelete
139+
- Interface ScalingPlanPooledSchedule has a new optional parameter namePropertiesName
140+
- Interface ScalingPlanPooledSchedule has a new optional parameter scalingMethod
141+
- Interface ScalingPlanPooledSchedulePatch has a new optional parameter createDelete
142+
- Interface ScalingPlanPooledSchedulePatch has a new optional parameter namePropertiesName
143+
- Interface ScalingPlanPooledSchedulePatch has a new optional parameter scalingMethod
144+
- Interface ScalingSchedule has a new optional parameter createDelete
145+
- Interface ScalingSchedule has a new optional parameter scalingMethod
146+
- Interface SessionHost has a new optional parameter activeSessions
147+
- Interface SessionHost has a new optional parameter disconnectedSessions
148+
- Interface SessionHost has a new optional parameter lastSessionHostUpdateTime
149+
- Interface SessionHost has a new optional parameter pendingSessions
150+
- Interface SessionHost has a new optional parameter sessionHostConfiguration
151+
- Interface SessionHostsListOptionalParams has a new optional parameter vmPath
152+
- Added Enum KnownCanaryPolicy
153+
- Added Enum KnownDiffDiskOption
154+
- Added Enum KnownDiffDiskPlacement
155+
- Added Enum KnownDirectUDP
156+
- Added Enum KnownDomainJoinType
157+
- Added Enum KnownFailedSessionHostCleanupPolicySHC
158+
- Added Enum KnownFaultType
159+
- Added Enum KnownHostPoolProvisioningAction
160+
- Added Enum KnownHostPoolUpdateAction
161+
- Added Enum KnownManagedPrivateUDP
162+
- Added Enum KnownManagedServiceIdentityType
163+
- Added Enum KnownManagementType
164+
- Added Enum KnownOperationTypeSHM
165+
- Added Enum KnownProvisioningStateSHC
166+
- Added Enum KnownPublicUDP
167+
- Added Enum KnownRelayUDP
168+
- Added Enum KnownScalingMethod
169+
- Added Enum KnownType
170+
- Added Enum KnownVirtualMachineDiskType
171+
- Added Enum KnownVirtualMachineSecurityType
172+
- Enum KnownLoadBalancerType has a new value MultiplePersistent
173+
- Enum KnownScalingHostPoolType has a new value Personal
8174

9-
### Bugs Fixed
10-
11-
### Other Changes
175+
### Breaking Changes
12176

177+
- Parameter daysOfWeek of interface ScalingPlanPersonalSchedule is now required
178+
- Parameter offPeakStartTime of interface ScalingPlanPersonalSchedule is now required
179+
- Parameter peakStartTime of interface ScalingPlanPersonalSchedule is now required
180+
- Parameter rampDownStartTime of interface ScalingPlanPersonalSchedule is now required
181+
- Parameter rampUpStartTime of interface ScalingPlanPersonalSchedule is now required
182+
- Parameter daysOfWeek of interface ScalingPlanPooledSchedule is now required
183+
- Parameter offPeakStartTime of interface ScalingPlanPooledSchedule is now required
184+
- Parameter peakStartTime of interface ScalingPlanPooledSchedule is now required
185+
- Parameter rampDownCapacityThresholdPct of interface ScalingPlanPooledSchedule is now required
186+
- Parameter rampDownStartTime of interface ScalingPlanPooledSchedule is now required
187+
- Parameter rampUpCapacityThresholdPct of interface ScalingPlanPooledSchedule is now required
188+
- Parameter rampUpStartTime of interface ScalingPlanPooledSchedule is now required
189+
- Type of parameter identity of interface ResourceModelWithAllowedPropertySet is changed from ResourceModelWithAllowedPropertySetIdentity to ManagedServiceIdentity
190+
- Type of parameter plan of interface ResourceModelWithAllowedPropertySet is changed from ResourceModelWithAllowedPropertySetPlan to Plan
191+
- Type of parameter sku of interface ResourceModelWithAllowedPropertySet is changed from ResourceModelWithAllowedPropertySetSku to Sku
192+
- Type of parameter daysOfWeek of interface ScalingSchedule is changed from ScalingScheduleDaysOfWeekItem[] to DayOfWeek[]
193+
- Removed Enum KnownScalingScheduleDaysOfWeekItem
194+
195+
13196
## 1.2.0 (2024-09-11)
14197

15198
### Features Added

sdk/desktopvirtualization/arm-desktopvirtualization/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

sdk/desktopvirtualization/arm-desktopvirtualization/README.md

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

33
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Desktop Virtualization API client.
44

5+
6+
57
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/desktopvirtualization/arm-desktopvirtualization) |
68
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-desktopvirtualization) |
7-
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-desktopvirtualization) |
9+
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-desktopvirtualization?view=azure-node-preview) |
810
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
911

1012
## Getting started
@@ -42,7 +44,6 @@ npm install @azure/identity
4244
```
4345

4446
You will also need to **register a new AAD application and grant access to Azure Desktop Virtualization API** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
45-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
4647

4748
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
4849

@@ -62,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
6263
import { InteractiveBrowserCredential } from "@azure/identity";
6364
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
6465

65-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6666
const credential = new InteractiveBrowserCredential({
6767
tenantId: "<YOUR_TENANT_ID>",
68-
clientId: "<YOUR_CLIENT_ID>",
69-
});
68+
clientId: "<YOUR_CLIENT_ID>"
69+
});
7070
const client = new DesktopVirtualizationAPIClient(credential, subscriptionId);
7171
```
7272

7373
### JavaScript Bundle
74-
7574
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
7675

7776
## Key concepts
@@ -107,7 +106,6 @@ If you'd like to contribute to this library, please read the [contributing guide
107106
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
108107

109108

110-
111109
[azure_cli]: https://learn.microsoft.com/cli/azure
112110
[azure_sub]: https://azure.microsoft.com/free/
113111
[azure_sub]: https://azure.microsoft.com/free/
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "3519c80fe510a268f6e59a29ccac8a53fdec15b6",
2+
"commit": "78416237915a3f31c37c0dfd007b0733ce3a8f54",
33
"readme": "specification/desktopvirtualization/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\desktopvirtualization\\resource-manager\\readme.md --use=@autorest/[email protected].27 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/[email protected].13",
7-
"use": "@autorest/[email protected].27"
8-
}
6+
"release_tool": "@azure-tools/[email protected].23",
7+
"use": "@autorest/typescript@^6.0.12"
8+
}

sdk/desktopvirtualization/arm-desktopvirtualization/api-extractor.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3-
"mainEntryPointFilePath": "dist/esm/index.d.ts",
3+
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
44
"docModel": {
55
"enabled": true
66
},
@@ -11,7 +11,7 @@
1111
"dtsRollup": {
1212
"enabled": true,
1313
"untrimmedFilePath": "",
14-
"publicTrimmedFilePath": "dist/arm-desktopvirtualization.d.ts"
14+
"publicTrimmedFilePath": "./types/arm-desktopvirtualization.d.ts"
1515
},
1616
"messages": {
1717
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
2828
}
2929
}
3030
}
31-
}
31+
}

sdk/desktopvirtualization/arm-desktopvirtualization/package.json

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,49 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for DesktopVirtualizationAPIClient.",
6-
"version": "1.2.1",
6+
"version": "2.0.0-beta.1",
77
"engines": {
88
"node": ">=18.0.0"
99
},
1010
"dependencies": {
11+
"@azure/abort-controller": "^2.1.2",
1112
"@azure/core-auth": "^1.9.0",
12-
"@azure/core-client": "^1.9.2",
13+
"@azure/core-client": "^1.9.3",
14+
"@azure/core-lro": "^2.5.4",
1315
"@azure/core-paging": "^1.6.2",
14-
"@azure/core-rest-pipeline": "^1.18.2",
16+
"@azure/core-rest-pipeline": "^1.19.1",
1517
"tslib": "^2.8.1"
1618
},
1719
"keywords": [
1820
"node",
1921
"azure",
2022
"typescript",
2123
"browser",
22-
"isomorphic",
23-
"cloud"
24+
"isomorphic"
2425
],
2526
"license": "MIT",
2627
"main": "./dist/commonjs/index.js",
27-
"module": "./dist/esm/index.js",
28+
"module": "./dist-esm/src/index.js",
2829
"types": "./dist/commonjs/index.d.ts",
2930
"devDependencies": {
3031
"@azure-tools/test-credential": "^2.0.0",
3132
"@azure-tools/test-recorder": "^4.1.0",
3233
"@azure-tools/test-utils-vitest": "^1.0.0",
3334
"@azure/dev-tool": "^1.0.0",
34-
"@azure/identity": "^4.6.0",
35+
"@azure/identity": "^4.8.0",
3536
"@azure/logger": "^1.1.4",
3637
"@types/node": "^18.0.0",
3738
"@vitest/browser": "^3.0.9",
3839
"@vitest/coverage-istanbul": "^3.0.9",
3940
"dotenv": "^16.0.0",
40-
"playwright": "^1.50.0",
41+
"playwright": "^1.51.1",
4142
"typescript": "~5.8.2",
4243
"vitest": "^3.0.9"
4344
},
44-
"repository": "github:Azure/azure-sdk-for-js",
45+
"repository": {
46+
"type": "git",
47+
"url": "https://github.com/Azure/azure-sdk-for-js.git"
48+
},
4549
"bugs": {
4650
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
4751
},
@@ -89,14 +93,6 @@
8993
},
9094
"autoPublish": true,
9195
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/desktopvirtualization/arm-desktopvirtualization",
92-
"//sampleConfiguration": {
93-
"productName": "",
94-
"productSlugs": [
95-
"azure"
96-
],
97-
"disableDocsMs": true,
98-
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-desktopvirtualization?view=azure-node-preview"
99-
},
10096
"type": "module",
10197
"tshy": {
10298
"project": "./tsconfig.src.json",
@@ -137,4 +133,4 @@
137133
}
138134
}
139135
}
140-
}
136+
}

0 commit comments

Comments
 (0)