Skip to content

Commit 03eb8af

Browse files
author
SDKAuto
committed
CodeGen from PR 18905 in Azure/azure-rest-api-specs
Merge 793c4ad8dc4190f92f17abe14b569d854ff0c71d into 50ed15bd61ac79f2368d769df0c207a00b9e099f
1 parent 045859c commit 03eb8af

File tree

12 files changed

+1385
-1012
lines changed

12 files changed

+1385
-1012
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 16 additions & 17 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: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
# Release History
2-
3-
## 1.0.0-beta.4 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
2+
3+
## 1.0.0-beta.4 (2022-05-04)
4+
5+
**Features**
6+
7+
- Added Interface AgentUpdatePatchProperties
8+
- Added Interface AgentUpdateProperties
9+
- Added Interface MaintenanceWindowPatchProperties
10+
- Added Interface MaintenanceWindowProperties
11+
- Added Type Alias DayOfWeek
12+
- Added Type Alias HostpoolPublicNetworkAccess
13+
- Added Type Alias SessionHostComponentUpdateType
14+
- Type Alias HostPool has a new parameter agentUpdate
15+
- Type Alias HostPool has a new parameter privateEndpointConnections
16+
- Type Alias HostPoolPatch has a new parameter agentUpdate
17+
- Type Alias SessionHost has a new parameter friendlyName
18+
- Type Alias SessionHostPatch has a new parameter friendlyName
19+
- Type Alias Workspace has a new parameter privateEndpointConnections
20+
- Added Enum KnownHostpoolPublicNetworkAccess
21+
- Added Enum KnownSessionHostComponentUpdateType
22+
1323
## 1.0.0-beta.3 (2022-04-18)
1424

1525
**features**

sdk/desktopvirtualization/arm-desktopvirtualization/README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
1616
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
1717
- Latest versions of Safari, Chrome, Edge and Firefox.
1818

19-
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
20-
2119
### Prerequisites
2220

2321
- An [Azure subscription][azure_sub].
@@ -51,17 +49,8 @@ For more information about how to create an Azure AD Application check out [this
5149
```javascript
5250
const { DesktopVirtualizationAPIClient } = require("@azure/arm-desktopvirtualization");
5351
const { DefaultAzureCredential } = require("@azure/identity");
54-
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
55-
5652
const subscriptionId = "00000000-0000-0000-0000-000000000000";
5753
const client = new DesktopVirtualizationAPIClient(new DefaultAzureCredential(), subscriptionId);
58-
59-
// For client-side applications running in the browser, use this code instead:
60-
// const credential = new InteractiveBrowserCredential({
61-
// tenantId: "<YOUR_TENANT_ID>",
62-
// clientId: "<YOUR_CLIENT_ID>"
63-
// });
64-
// const client = new DesktopVirtualizationAPIClient(credential, subscriptionId);
6554
```
6655

6756

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "c77c6c634dc3644d65d3e35df5d73a9c34d3c956",
3-
"readme": "specification\\desktopvirtualization\\resource-manager\\readme.md",
4-
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\desktopvirtualization\\resource-manager\\readme.md --use=@autorest/[email protected].19.20220408.1 --generate-sample=true",
2+
"commit": "598c3b565cecdeaba9f7499407a0b64c143f2fd5",
3+
"readme": "specification/desktopvirtualization/resource-manager/readme.md",
4+
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --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/[email protected].16.20220105.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.6",
7-
"use": "@autorest/[email protected].19.20220408.1"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.0",
7+
"use": "@autorest/[email protected].16.20220105.1"
88
}

sdk/desktopvirtualization/arm-desktopvirtualization/package.json

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
},
1010
"dependencies": {
1111
"@azure/core-paging": "^1.2.0",
12-
"@azure/core-client": "^1.5.0",
12+
"@azure/core-client": "^1.0.0",
1313
"@azure/core-auth": "^1.3.0",
14-
"@azure/core-rest-pipeline": "^1.8.0",
14+
"@azure/core-rest-pipeline": "^1.1.0",
1515
"tslib": "^2.2.0"
1616
},
1717
"keywords": [
@@ -26,14 +26,14 @@
2626
"module": "./dist-esm/src/index.js",
2727
"types": "./types/arm-desktopvirtualization.d.ts",
2828
"devDependencies": {
29-
"@microsoft/api-extractor": "7.18.11",
30-
"@rollup/plugin-commonjs": "^21.0.1",
31-
"@rollup/plugin-json": "^4.1.0",
32-
"@rollup/plugin-multi-entry": "^4.1.0",
33-
"@rollup/plugin-node-resolve": "^13.1.3",
29+
"@microsoft/api-extractor": "^7.18.11",
30+
"@rollup/plugin-commonjs": "11.0.2",
31+
"@rollup/plugin-json": "^4.0.0",
32+
"@rollup/plugin-multi-entry": "^3.0.0",
33+
"@rollup/plugin-node-resolve": "^8.0.0",
3434
"mkdirp": "^1.0.4",
35-
"rollup": "^2.66.1",
36-
"rollup-plugin-sourcemaps": "^0.6.3",
35+
"rollup": "^1.16.3",
36+
"rollup-plugin-sourcemaps": "^0.4.2",
3737
"typescript": "~4.2.0",
3838
"uglify-js": "^3.4.9",
3939
"rimraf": "^3.0.0",
@@ -96,21 +96,5 @@
9696
"docs": "echo skipped"
9797
},
9898
"sideEffects": false,
99-
"//metadata": {
100-
"constantPaths": [
101-
{
102-
"path": "src/desktopVirtualizationAPIClient.ts",
103-
"prefix": "packageDetails"
104-
}
105-
]
106-
},
107-
"autoPublish": true,
108-
"//sampleConfiguration": {
109-
"productName": "",
110-
"productSlugs": [
111-
"azure"
112-
],
113-
"disableDocsMs": true,
114-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-desktopvirtualization?view=azure-node-preview"
115-
}
116-
}
99+
"autoPublish": true
100+
}

sdk/desktopvirtualization/arm-desktopvirtualization/review/arm-desktopvirtualization.api.md

Lines changed: 63 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@ import * as coreAuth from '@azure/core-auth';
88
import * as coreClient from '@azure/core-client';
99
import { PagedAsyncIterableIterator } from '@azure/core-paging';
1010

11+
// @public
12+
export interface AgentUpdatePatchProperties {
13+
maintenanceWindows?: MaintenanceWindowPatchProperties[];
14+
maintenanceWindowTimeZone?: string;
15+
type?: SessionHostComponentUpdateType;
16+
useSessionHostLocalTime?: boolean;
17+
}
18+
19+
// @public
20+
export interface AgentUpdateProperties {
21+
maintenanceWindows?: MaintenanceWindowProperties[];
22+
maintenanceWindowTimeZone?: string;
23+
type?: SessionHostComponentUpdateType;
24+
useSessionHostLocalTime?: boolean;
25+
}
26+
1127
// @public
1228
export type Application = Resource & {
1329
readonly systemData?: SystemData;
@@ -219,6 +235,9 @@ export type CommandLineSetting = string;
219235
// @public
220236
export type CreatedByType = string;
221237

238+
// @public
239+
export type DayOfWeek = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";
240+
222241
// @public
223242
export type Desktop = Resource & {
224243
readonly systemData?: SystemData;
@@ -379,7 +398,9 @@ export type HostPool = ResourceModelWithAllowedPropertySet & {
379398
startVMOnConnect?: boolean;
380399
migrationRequest?: MigrationRequestProperties;
381400
readonly cloudPcResource?: boolean;
382-
publicNetworkAccess?: PublicNetworkAccess;
401+
publicNetworkAccess?: HostpoolPublicNetworkAccess;
402+
agentUpdate?: AgentUpdateProperties;
403+
readonly privateEndpointConnections?: PrivateEndpointConnection[];
383404
};
384405

385406
// @public
@@ -409,9 +430,13 @@ export type HostPoolPatch = Resource & {
409430
ssoSecretType?: SSOSecretType;
410431
preferredAppGroupType?: PreferredAppGroupType;
411432
startVMOnConnect?: boolean;
412-
publicNetworkAccess?: PublicNetworkAccess;
433+
publicNetworkAccess?: HostpoolPublicNetworkAccess;
434+
agentUpdate?: AgentUpdatePatchProperties;
413435
};
414436

437+
// @public
438+
export type HostpoolPublicNetworkAccess = string;
439+
415440
// @public
416441
export interface HostPools {
417442
createOrUpdate(resourceGroupName: string, hostPoolName: string, hostPool: HostPool, options?: HostPoolsCreateOrUpdateOptionalParams): Promise<HostPoolsCreateOrUpdateResponse>;
@@ -556,6 +581,18 @@ export enum KnownHealthCheckResult {
556581
Unknown = "Unknown"
557582
}
558583

584+
// @public
585+
export enum KnownHostpoolPublicNetworkAccess {
586+
// (undocumented)
587+
Disabled = "Disabled",
588+
// (undocumented)
589+
Enabled = "Enabled",
590+
// (undocumented)
591+
EnabledForClientsOnly = "EnabledForClientsOnly",
592+
// (undocumented)
593+
EnabledForSessionHostsOnly = "EnabledForSessionHostsOnly"
594+
}
595+
559596
// @public
560597
export enum KnownHostPoolType {
561598
BYODesktop = "BYODesktop",
@@ -671,6 +708,12 @@ export enum KnownScalingScheduleDaysOfWeekItem {
671708
Wednesday = "Wednesday"
672709
}
673710

711+
// @public
712+
export enum KnownSessionHostComponentUpdateType {
713+
Default = "Default",
714+
Scheduled = "Scheduled"
715+
}
716+
674717
// @public
675718
export enum KnownSessionHostLoadBalancingAlgorithm {
676719
// (undocumented)
@@ -755,6 +798,18 @@ export interface LogSpecification {
755798
name?: string;
756799
}
757800

801+
// @public
802+
export interface MaintenanceWindowPatchProperties {
803+
dayOfWeek?: DayOfWeek;
804+
hour?: number;
805+
}
806+
807+
// @public
808+
export interface MaintenanceWindowProperties {
809+
dayOfWeek?: DayOfWeek;
810+
hour?: number;
811+
}
812+
758813
// @public
759814
export interface MigrationRequestProperties {
760815
migrationPath?: string;
@@ -1329,6 +1384,7 @@ export type SessionHost = Resource & {
13291384
readonly virtualMachineId?: string;
13301385
readonly resourceId?: string;
13311386
assignedUser?: string;
1387+
friendlyName?: string;
13321388
status?: Status;
13331389
readonly statusTimestamp?: Date;
13341390
osVersion?: string;
@@ -1339,6 +1395,9 @@ export type SessionHost = Resource & {
13391395
readonly sessionHostHealthCheckResults?: SessionHostHealthCheckReport[];
13401396
};
13411397

1398+
// @public
1399+
export type SessionHostComponentUpdateType = string;
1400+
13421401
// @public
13431402
export interface SessionHostHealthCheckFailureDetails {
13441403
readonly errorCode?: number;
@@ -1366,6 +1425,7 @@ export type SessionHostLoadBalancingAlgorithm = string;
13661425
export type SessionHostPatch = Resource & {
13671426
allowNewSession?: boolean;
13681427
assignedUser?: string;
1428+
friendlyName?: string;
13691429
};
13701430

13711431
// @public
@@ -1575,6 +1635,7 @@ export type Workspace = ResourceModelWithAllowedPropertySet & {
15751635
applicationGroupReferences?: string[];
15761636
readonly cloudPcResource?: boolean;
15771637
publicNetworkAccess?: PublicNetworkAccess;
1638+
readonly privateEndpointConnections?: PrivateEndpointConnection[];
15781639
};
15791640

15801641
// @public

0 commit comments

Comments
 (0)