Skip to content

Commit

Permalink
CodeGen from PR 17807 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Dev desktopvirtualization microsoft.desktop virtualization 2022 02 10 preview (Azure#17807)

* Adds base for updating Microsoft.DesktopVirtualization from version preview/2021-09-03-preview to version 2022-02-10-preview

* Updates readme

* Updates API version in new specs and examples

* add agent update properties

* change parameter length restrictions

* fix identifiers

* change mininum for scaling

* - added new enum values for hostpool
- added the read only collection array of private endpoint connections
   to hostpool & workspace

* friendly name

* remove length requiremetns

* split patch properties

Co-authored-by: Paul McDaniel <[email protected]>
  • Loading branch information
SDKAuto and walrusmcd committed Mar 1, 2022
1 parent 823e0ad commit ea877bd
Show file tree
Hide file tree
Showing 13 changed files with 1,330 additions and 941 deletions.
14 changes: 7 additions & 7 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 22 additions & 11 deletions sdk/desktopvirtualization/arm-desktopvirtualization/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
# Release History

## 1.0.0-beta.3 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes


## 1.0.0-beta.3 (2022-03-01)

**Features**

- Added Interface AgentUpdatePatchProperties
- Added Interface AgentUpdateProperties
- Added Interface MaintenanceWindowPatchProperties
- Added Interface MaintenanceWindowProperties
- Added Type Alias DayOfWeek
- Added Type Alias HostpoolPublicNetworkAccess
- Added Type Alias SessionHostComponentUpdateType
- Type Alias HostPool has a new parameter agentUpdate
- Type Alias HostPool has a new parameter privateEndpointConnections
- Type Alias HostPoolPatch has a new parameter agentUpdate
- Type Alias SessionHost has a new parameter friendlyName
- Type Alias SessionHostPatch has a new parameter friendlyName
- Type Alias Workspace has a new parameter privateEndpointConnections
- Added Enum KnownHostpoolPublicNetworkAccess
- Added Enum KnownSessionHostComponentUpdateType


## 1.0.0-beta.2 (2021-12-27)

The package of @azure/arm-desktopvirtualization is using our next generation design principles since version 1.0.0-beta.2, which contains breaking changes.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 Microsoft
Copyright (c) 2022 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "c77c6c634dc3644d65d3e35df5d73a9c34d3c956",
"commit": "d13884b6f5076e151278e9941dc6630ba86b350c",
"readme": "specification/desktopvirtualization/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md --use=@autorest/[email protected].20211217.1",
"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=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/desktopvirtualization/resource-manager/readme.md --use=@autorest/[email protected].20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected].20211217.1"
"use": "@autorest/[email protected].20220105.1"
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-desktopvirtualization.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for DesktopVirtualizationAPIClient.",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.1",
"engines": {
"node": ">=12.0.0"
},
Expand All @@ -27,12 +27,12 @@
"types": "./types/arm-desktopvirtualization.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"mkdirp": "^1.0.4",
"rollup": "^2.0.0",
"rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
Expand Down Expand Up @@ -97,4 +97,4 @@
},
"sideEffects": false,
"autoPublish": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@ import * as coreAuth from '@azure/core-auth';
import * as coreClient from '@azure/core-client';
import { PagedAsyncIterableIterator } from '@azure/core-paging';

// @public
export interface AgentUpdatePatchProperties {
maintenanceWindows?: MaintenanceWindowPatchProperties[];
maintenanceWindowTimeZone?: string;
type?: SessionHostComponentUpdateType;
useSessionHostLocalTime?: boolean;
}

// @public
export interface AgentUpdateProperties {
maintenanceWindows?: MaintenanceWindowProperties[];
maintenanceWindowTimeZone?: string;
type?: SessionHostComponentUpdateType;
useSessionHostLocalTime?: boolean;
}

// @public
export type Application = Resource & {
readonly systemData?: SystemData;
Expand Down Expand Up @@ -219,6 +235,9 @@ export type CommandLineSetting = string;
// @public
export type CreatedByType = string;

// @public
export type DayOfWeek = "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday";

// @public
export type Desktop = Resource & {
readonly systemData?: SystemData;
Expand Down Expand Up @@ -379,7 +398,9 @@ export type HostPool = ResourceModelWithAllowedPropertySet & {
startVMOnConnect?: boolean;
migrationRequest?: MigrationRequestProperties;
readonly cloudPcResource?: boolean;
publicNetworkAccess?: PublicNetworkAccess;
publicNetworkAccess?: HostpoolPublicNetworkAccess;
agentUpdate?: AgentUpdateProperties;
readonly privateEndpointConnections?: PrivateEndpointConnection[];
};

// @public
Expand Down Expand Up @@ -409,9 +430,13 @@ export type HostPoolPatch = Resource & {
ssoSecretType?: SSOSecretType;
preferredAppGroupType?: PreferredAppGroupType;
startVMOnConnect?: boolean;
publicNetworkAccess?: PublicNetworkAccess;
publicNetworkAccess?: HostpoolPublicNetworkAccess;
agentUpdate?: AgentUpdatePatchProperties;
};

// @public
export type HostpoolPublicNetworkAccess = string;

// @public
export interface HostPools {
createOrUpdate(resourceGroupName: string, hostPoolName: string, hostPool: HostPool, options?: HostPoolsCreateOrUpdateOptionalParams): Promise<HostPoolsCreateOrUpdateResponse>;
Expand Down Expand Up @@ -556,6 +581,18 @@ export enum KnownHealthCheckResult {
Unknown = "Unknown"
}

// @public
export enum KnownHostpoolPublicNetworkAccess {
// (undocumented)
Disabled = "Disabled",
// (undocumented)
Enabled = "Enabled",
// (undocumented)
EnabledForClientsOnly = "EnabledForClientsOnly",
// (undocumented)
EnabledForSessionHostsOnly = "EnabledForSessionHostsOnly"
}

// @public
export enum KnownHostPoolType {
BYODesktop = "BYODesktop",
Expand Down Expand Up @@ -671,6 +708,12 @@ export enum KnownScalingScheduleDaysOfWeekItem {
Wednesday = "Wednesday"
}

// @public
export enum KnownSessionHostComponentUpdateType {
Default = "Default",
Scheduled = "Scheduled"
}

// @public
export enum KnownSessionHostLoadBalancingAlgorithm {
// (undocumented)
Expand Down Expand Up @@ -755,6 +798,18 @@ export interface LogSpecification {
name?: string;
}

// @public
export interface MaintenanceWindowPatchProperties {
dayOfWeek?: DayOfWeek;
hour?: number;
}

// @public
export interface MaintenanceWindowProperties {
dayOfWeek?: DayOfWeek;
hour?: number;
}

// @public
export interface MigrationRequestProperties {
migrationPath?: string;
Expand Down Expand Up @@ -1329,6 +1384,7 @@ export type SessionHost = Resource & {
readonly virtualMachineId?: string;
readonly resourceId?: string;
assignedUser?: string;
friendlyName?: string;
status?: Status;
readonly statusTimestamp?: Date;
osVersion?: string;
Expand All @@ -1339,6 +1395,9 @@ export type SessionHost = Resource & {
readonly sessionHostHealthCheckResults?: SessionHostHealthCheckReport[];
};

// @public
export type SessionHostComponentUpdateType = string;

// @public
export interface SessionHostHealthCheckFailureDetails {
readonly errorCode?: number;
Expand Down Expand Up @@ -1366,6 +1425,7 @@ export type SessionHostLoadBalancingAlgorithm = string;
export type SessionHostPatch = Resource & {
allowNewSession?: boolean;
assignedUser?: string;
friendlyName?: string;
};

// @public
Expand Down Expand Up @@ -1575,6 +1635,7 @@ export type Workspace = ResourceModelWithAllowedPropertySet & {
applicationGroupReferences?: string[];
readonly cloudPcResource?: boolean;
publicNetworkAccess?: PublicNetworkAccess;
readonly privateEndpointConnections?: PrivateEndpointConnection[];
};

// @public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class DesktopVirtualizationAPIClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-desktopvirtualization/1.0.0-beta.2`;
const packageDetails = `azsdk-js-arm-desktopvirtualization/1.0.0-beta.3`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand All @@ -97,7 +97,7 @@ export class DesktopVirtualizationAPIClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2021-09-03-preview";
this.apiVersion = options.apiVersion || "2022-02-10-preview";
this.operations = new OperationsImpl(this);
this.workspaces = new WorkspacesImpl(this);
this.scalingPlans = new ScalingPlansImpl(this);
Expand Down
Loading

0 comments on commit ea877bd

Please sign in to comment.