@azure/arm-desktopvirtualization 1.0.0-beta.3 → 1.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +1 -1
  3. package/dist/index.js +537 -173
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/msixPackagesCreateOrUpdateSample.js +2 -2
  8. package/dist-esm/samples-dev/msixPackagesCreateOrUpdateSample.js.map +1 -1
  9. package/dist-esm/src/desktopVirtualizationAPIClient.d.ts +2 -0
  10. package/dist-esm/src/desktopVirtualizationAPIClient.d.ts.map +1 -1
  11. package/dist-esm/src/desktopVirtualizationAPIClient.js +49 -18
  12. package/dist-esm/src/desktopVirtualizationAPIClient.js.map +1 -1
  13. package/dist-esm/src/index.d.ts +1 -0
  14. package/dist-esm/src/index.d.ts.map +1 -1
  15. package/dist-esm/src/index.js +1 -0
  16. package/dist-esm/src/index.js.map +1 -1
  17. package/dist-esm/src/models/index.d.ts +101 -39
  18. package/dist-esm/src/models/index.d.ts.map +1 -1
  19. package/dist-esm/src/models/index.js +59 -0
  20. package/dist-esm/src/models/index.js.map +1 -1
  21. package/dist-esm/src/operations/applicationGroups.d.ts.map +1 -1
  22. package/dist-esm/src/operations/applicationGroups.js +37 -14
  23. package/dist-esm/src/operations/applicationGroups.js.map +1 -1
  24. package/dist-esm/src/operations/applications.d.ts.map +1 -1
  25. package/dist-esm/src/operations/applications.js +19 -7
  26. package/dist-esm/src/operations/applications.js.map +1 -1
  27. package/dist-esm/src/operations/desktops.d.ts.map +1 -1
  28. package/dist-esm/src/operations/desktops.js +19 -7
  29. package/dist-esm/src/operations/desktops.js.map +1 -1
  30. package/dist-esm/src/operations/hostPools.d.ts.map +1 -1
  31. package/dist-esm/src/operations/hostPools.js +37 -14
  32. package/dist-esm/src/operations/hostPools.js.map +1 -1
  33. package/dist-esm/src/operations/msixImages.d.ts.map +1 -1
  34. package/dist-esm/src/operations/msixImages.js +19 -7
  35. package/dist-esm/src/operations/msixImages.js.map +1 -1
  36. package/dist-esm/src/operations/msixPackages.d.ts.map +1 -1
  37. package/dist-esm/src/operations/msixPackages.js +19 -7
  38. package/dist-esm/src/operations/msixPackages.js.map +1 -1
  39. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  40. package/dist-esm/src/operations/operations.js +19 -7
  41. package/dist-esm/src/operations/operations.js.map +1 -1
  42. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  43. package/dist-esm/src/operations/privateEndpointConnections.js +37 -14
  44. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  45. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
  46. package/dist-esm/src/operations/privateLinkResources.js +37 -14
  47. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  48. package/dist-esm/src/operations/scalingPlans.d.ts.map +1 -1
  49. package/dist-esm/src/operations/scalingPlans.js +55 -21
  50. package/dist-esm/src/operations/scalingPlans.js.map +1 -1
  51. package/dist-esm/src/operations/sessionHosts.d.ts.map +1 -1
  52. package/dist-esm/src/operations/sessionHosts.js +19 -7
  53. package/dist-esm/src/operations/sessionHosts.js.map +1 -1
  54. package/dist-esm/src/operations/startMenuItems.d.ts.map +1 -1
  55. package/dist-esm/src/operations/startMenuItems.js +19 -7
  56. package/dist-esm/src/operations/startMenuItems.js.map +1 -1
  57. package/dist-esm/src/operations/userSessions.d.ts.map +1 -1
  58. package/dist-esm/src/operations/userSessions.js +37 -14
  59. package/dist-esm/src/operations/userSessions.js.map +1 -1
  60. package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
  61. package/dist-esm/src/operations/workspaces.js +37 -14
  62. package/dist-esm/src/operations/workspaces.js.map +1 -1
  63. package/dist-esm/src/pagingHelper.d.ts +13 -0
  64. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  65. package/dist-esm/src/pagingHelper.js +32 -0
  66. package/dist-esm/src/pagingHelper.js.map +1 -0
  67. package/dist-esm/test/sampleTest.js +11 -13
  68. package/dist-esm/test/sampleTest.js.map +1 -1
  69. package/package.json +15 -11
  70. package/review/arm-desktopvirtualization.api.md +134 -187
  71. package/src/desktopVirtualizationAPIClient.ts +60 -20
  72. package/src/index.ts +1 -0
  73. package/src/models/index.ts +99 -39
  74. package/src/operations/applicationGroups.ts +46 -17
  75. package/src/operations/applications.ts +27 -13
  76. package/src/operations/desktops.ts +27 -13
  77. package/src/operations/hostPools.ts +46 -17
  78. package/src/operations/msixImages.ts +27 -13
  79. package/src/operations/msixPackages.ts +27 -9
  80. package/src/operations/operations.ts +21 -8
  81. package/src/operations/privateEndpointConnections.ts +52 -25
  82. package/src/operations/privateLinkResources.ts +51 -24
  83. package/src/operations/scalingPlans.ts +71 -29
  84. package/src/operations/sessionHosts.ts +27 -9
  85. package/src/operations/startMenuItems.ts +26 -12
  86. package/src/operations/userSessions.ts +53 -26
  87. package/src/operations/workspaces.ts +46 -17
  88. package/src/pagingHelper.ts +39 -0
  89. package/types/arm-desktopvirtualization.d.ts +112 -39
  90. package/types/tsdoc-metadata.json +1 -1
@@ -8,6 +8,11 @@
8
8
 
9
9
  import * as coreClient from "@azure/core-client";
10
10
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
+ import {
12
+ PipelineRequest,
13
+ PipelineResponse,
14
+ SendRequest
15
+ } from "@azure/core-rest-pipeline";
11
16
  import * as coreAuth from "@azure/core-auth";
12
17
  import {
13
18
  OperationsImpl,
@@ -75,47 +80,53 @@ export class DesktopVirtualizationAPIClient extends coreClient.ServiceClient {
75
80
  credential: credentials
76
81
  };
77
82
 
78
- const packageDetails = `azsdk-js-arm-desktopvirtualization/1.0.0-beta.3`;
83
+ const packageDetails = `azsdk-js-arm-desktopvirtualization/1.0.0-beta.4`;
79
84
  const userAgentPrefix =
80
85
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
81
86
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
82
87
  : `${packageDetails}`;
83
88
 
84
- if (!options.credentialScopes) {
85
- options.credentialScopes = ["https://management.azure.com/.default"];
86
- }
87
89
  const optionsWithDefaults = {
88
90
  ...defaults,
89
91
  ...options,
90
92
  userAgentOptions: {
91
93
  userAgentPrefix
92
94
  },
93
- baseUri:
95
+ endpoint:
94
96
  options.endpoint ?? options.baseUri ?? "https://management.azure.com"
95
97
  };
96
98
  super(optionsWithDefaults);
97
99
 
100
+ let bearerTokenAuthenticationPolicyFound: boolean = false;
98
101
  if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
99
102
  const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
100
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
103
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
101
104
  (pipelinePolicy) =>
102
105
  pipelinePolicy.name ===
103
106
  coreRestPipeline.bearerTokenAuthenticationPolicyName
104
107
  );
105
- if (!bearerTokenAuthenticationPolicyFound) {
106
- this.pipeline.removePolicy({
107
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
108
- });
109
- this.pipeline.addPolicy(
110
- coreRestPipeline.bearerTokenAuthenticationPolicy({
111
- scopes: `${optionsWithDefaults.baseUri}/.default`,
112
- challengeCallbacks: {
113
- authorizeRequestOnChallenge:
114
- coreClient.authorizeRequestOnClaimChallenge
115
- }
116
- })
117
- );
118
- }
108
+ }
109
+ if (
110
+ !options ||
111
+ !options.pipeline ||
112
+ options.pipeline.getOrderedPolicies().length == 0 ||
113
+ !bearerTokenAuthenticationPolicyFound
114
+ ) {
115
+ this.pipeline.removePolicy({
116
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
117
+ });
118
+ this.pipeline.addPolicy(
119
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
120
+ credential: credentials,
121
+ scopes:
122
+ optionsWithDefaults.credentialScopes ??
123
+ `${optionsWithDefaults.endpoint}/.default`,
124
+ challengeCallbacks: {
125
+ authorizeRequestOnChallenge:
126
+ coreClient.authorizeRequestOnClaimChallenge
127
+ }
128
+ })
129
+ );
119
130
  }
120
131
  // Parameter assignments
121
132
  this.subscriptionId = subscriptionId;
@@ -137,6 +148,35 @@ export class DesktopVirtualizationAPIClient extends coreClient.ServiceClient {
137
148
  this.msixImages = new MsixImagesImpl(this);
138
149
  this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
139
150
  this.privateLinkResources = new PrivateLinkResourcesImpl(this);
151
+ this.addCustomApiVersionPolicy(options.apiVersion);
152
+ }
153
+
154
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
155
+ private addCustomApiVersionPolicy(apiVersion?: string) {
156
+ if (!apiVersion) {
157
+ return;
158
+ }
159
+ const apiVersionPolicy = {
160
+ name: "CustomApiVersionPolicy",
161
+ async sendRequest(
162
+ request: PipelineRequest,
163
+ next: SendRequest
164
+ ): Promise<PipelineResponse> {
165
+ const param = request.url.split("?");
166
+ if (param.length > 1) {
167
+ const newParams = param[1].split("&").map((item) => {
168
+ if (item.indexOf("api-version") > -1) {
169
+ return "api-version=" + apiVersion;
170
+ } else {
171
+ return item;
172
+ }
173
+ });
174
+ request.url = param[0] + "?" + newParams.join("&");
175
+ }
176
+ return next(request);
177
+ }
178
+ };
179
+ this.pipeline.addPolicy(apiVersionPolicy);
140
180
  }
141
181
 
142
182
  operations: Operations;
package/src/index.ts CHANGED
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  /// <reference lib="esnext.asynciterable" />
10
+ export { getContinuationToken } from "./pagingHelper";
10
11
  export * from "./models";
11
12
  export { DesktopVirtualizationAPIClient } from "./desktopVirtualizationAPIClient";
12
13
  export * from "./operationsInterfaces";
@@ -588,7 +588,7 @@ export interface PrivateLinkResourceListResult {
588
588
  }
589
589
 
590
590
  /** Represents a Workspace definition. */
591
- export type Workspace = ResourceModelWithAllowedPropertySet & {
591
+ export interface Workspace extends ResourceModelWithAllowedPropertySet {
592
592
  /**
593
593
  * Metadata pertaining to creation and last modification of the resource.
594
594
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -612,10 +612,10 @@ export type Workspace = ResourceModelWithAllowedPropertySet & {
612
612
  readonly cloudPcResource?: boolean;
613
613
  /** Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints */
614
614
  publicNetworkAccess?: PublicNetworkAccess;
615
- };
615
+ }
616
616
 
617
617
  /** Represents a scaling plan definition. */
618
- export type ScalingPlan = ResourceModelWithAllowedPropertySet & {
618
+ export interface ScalingPlan extends ResourceModelWithAllowedPropertySet {
619
619
  /**
620
620
  * Metadata pertaining to creation and last modification of the resource.
621
621
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -640,10 +640,10 @@ export type ScalingPlan = ResourceModelWithAllowedPropertySet & {
640
640
  schedules?: ScalingSchedule[];
641
641
  /** List of ScalingHostPoolReference definitions. */
642
642
  hostPoolReferences?: ScalingHostPoolReference[];
643
- };
643
+ }
644
644
 
645
645
  /** Represents a ApplicationGroup definition. */
646
- export type ApplicationGroup = ResourceModelWithAllowedPropertySet & {
646
+ export interface ApplicationGroup extends ResourceModelWithAllowedPropertySet {
647
647
  /**
648
648
  * Metadata pertaining to creation and last modification of the resource.
649
649
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -674,10 +674,10 @@ export type ApplicationGroup = ResourceModelWithAllowedPropertySet & {
674
674
  * NOTE: This property will not be serialized. It can only be populated by the server.
675
675
  */
676
676
  readonly cloudPcResource?: boolean;
677
- };
677
+ }
678
678
 
679
679
  /** Represents a HostPool definition. */
680
- export type HostPool = ResourceModelWithAllowedPropertySet & {
680
+ export interface HostPool extends ResourceModelWithAllowedPropertySet {
681
681
  /**
682
682
  * Metadata pertaining to creation and last modification of the resource.
683
683
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -736,26 +736,26 @@ export type HostPool = ResourceModelWithAllowedPropertySet & {
736
736
  readonly cloudPcResource?: boolean;
737
737
  /** Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints */
738
738
  publicNetworkAccess?: PublicNetworkAccess;
739
- };
739
+ }
740
740
 
741
- export type ResourceModelWithAllowedPropertySetIdentity = Identity & {};
741
+ export interface ResourceModelWithAllowedPropertySetIdentity extends Identity {}
742
742
 
743
- export type ResourceModelWithAllowedPropertySetSku = Sku & {};
743
+ export interface ResourceModelWithAllowedPropertySetSku extends Sku {}
744
744
 
745
- export type ResourceModelWithAllowedPropertySetPlan = Plan & {};
745
+ export interface ResourceModelWithAllowedPropertySetPlan extends Plan {}
746
746
 
747
747
  /** ApplicationGroup properties that can be patched. */
748
- export type ApplicationGroupPatch = Resource & {
748
+ export interface ApplicationGroupPatch extends Resource {
749
749
  /** tags to be updated */
750
750
  tags?: { [propertyName: string]: string };
751
751
  /** Description of ApplicationGroup. */
752
752
  description?: string;
753
753
  /** Friendly name of ApplicationGroup. */
754
754
  friendlyName?: string;
755
- };
755
+ }
756
756
 
757
757
  /** Represents a StartMenuItem definition. */
758
- export type StartMenuItem = Resource & {
758
+ export interface StartMenuItem extends Resource {
759
759
  /** Alias of StartMenuItem. */
760
760
  appAlias?: string;
761
761
  /** Path to the file of StartMenuItem. */
@@ -766,10 +766,10 @@ export type StartMenuItem = Resource & {
766
766
  iconPath?: string;
767
767
  /** Index of the icon. */
768
768
  iconIndex?: number;
769
- };
769
+ }
770
770
 
771
771
  /** Schema for Application properties. */
772
- export type Application = Resource & {
772
+ export interface Application extends Resource {
773
773
  /**
774
774
  * Metadata pertaining to creation and last modification of the resource.
775
775
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -812,10 +812,10 @@ export type Application = Resource & {
812
812
  * NOTE: This property will not be serialized. It can only be populated by the server.
813
813
  */
814
814
  readonly iconContent?: Uint8Array;
815
- };
815
+ }
816
816
 
817
817
  /** Schema for Desktop properties. */
818
- export type Desktop = Resource & {
818
+ export interface Desktop extends Resource {
819
819
  /**
820
820
  * Metadata pertaining to creation and last modification of the resource.
821
821
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -840,10 +840,10 @@ export type Desktop = Resource & {
840
840
  * NOTE: This property will not be serialized. It can only be populated by the server.
841
841
  */
842
842
  readonly iconContent?: Uint8Array;
843
- };
843
+ }
844
844
 
845
845
  /** HostPool properties that can be patched. */
846
- export type HostPoolPatch = Resource & {
846
+ export interface HostPoolPatch extends Resource {
847
847
  /** tags to be updated */
848
848
  tags?: { [propertyName: string]: string };
849
849
  /** Friendly name of HostPool. */
@@ -880,10 +880,10 @@ export type HostPoolPatch = Resource & {
880
880
  startVMOnConnect?: boolean;
881
881
  /** Enabled to allow this resource to be access from the public network */
882
882
  publicNetworkAccess?: PublicNetworkAccess;
883
- };
883
+ }
884
884
 
885
885
  /** Represents a UserSession definition. */
886
- export type UserSession = Resource & {
886
+ export interface UserSession extends Resource {
887
887
  /**
888
888
  * Metadata pertaining to creation and last modification of the resource.
889
889
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -904,10 +904,10 @@ export type UserSession = Resource & {
904
904
  activeDirectoryUserName?: string;
905
905
  /** The timestamp of the user session create. */
906
906
  createTime?: Date;
907
- };
907
+ }
908
908
 
909
909
  /** Represents a SessionHost definition. */
910
- export type SessionHost = Resource & {
910
+ export interface SessionHost extends Resource {
911
911
  /**
912
912
  * Metadata pertaining to creation and last modification of the resource.
913
913
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -963,18 +963,18 @@ export type SessionHost = Resource & {
963
963
  * NOTE: This property will not be serialized. It can only be populated by the server.
964
964
  */
965
965
  readonly sessionHostHealthCheckResults?: SessionHostHealthCheckReport[];
966
- };
966
+ }
967
967
 
968
968
  /** SessionHost properties that can be patched. */
969
- export type SessionHostPatch = Resource & {
969
+ export interface SessionHostPatch extends Resource {
970
970
  /** Allow a new session. */
971
971
  allowNewSession?: boolean;
972
972
  /** User assigned to SessionHost. */
973
973
  assignedUser?: string;
974
- };
974
+ }
975
975
 
976
976
  /** Schema for MSIX Package properties. */
977
- export type MsixPackage = Resource & {
977
+ export interface MsixPackage extends Resource {
978
978
  /**
979
979
  * Metadata pertaining to creation and last modification of the resource.
980
980
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1002,20 +1002,20 @@ export type MsixPackage = Resource & {
1002
1002
  lastUpdated?: Date;
1003
1003
  /** List of package applications. */
1004
1004
  packageApplications?: MsixPackageApplications[];
1005
- };
1005
+ }
1006
1006
 
1007
1007
  /** MSIX Package properties that can be patched. */
1008
- export type MsixPackagePatch = Resource & {
1008
+ export interface MsixPackagePatch extends Resource {
1009
1009
  /** Set a version of the package to be active across hostpool. */
1010
1010
  isActive?: boolean;
1011
1011
  /** Set Registration mode. Regular or Delayed. */
1012
1012
  isRegularRegistration?: boolean;
1013
1013
  /** Display name for MSIX Package. */
1014
1014
  displayName?: string;
1015
- };
1015
+ }
1016
1016
 
1017
1017
  /** Represents the definition of contents retrieved after expanding the MSIX Image. */
1018
- export type ExpandMsixImage = Resource & {
1018
+ export interface ExpandMsixImage extends Resource {
1019
1019
  /** Alias of MSIX Package. */
1020
1020
  packageAlias?: string;
1021
1021
  /** VHD/CIM image path on Network Share. */
@@ -1042,20 +1042,20 @@ export type ExpandMsixImage = Resource & {
1042
1042
  lastUpdated?: Date;
1043
1043
  /** List of package applications. */
1044
1044
  packageApplications?: MsixPackageApplications[];
1045
- };
1045
+ }
1046
1046
 
1047
1047
  /** The Private Endpoint Connection resource. */
1048
- export type PrivateEndpointConnection = Resource & {
1048
+ export interface PrivateEndpointConnection extends Resource {
1049
1049
  /** The resource of private end point. */
1050
1050
  privateEndpoint?: PrivateEndpoint;
1051
1051
  /** A collection of information about the state of the connection between service consumer and provider. */
1052
1052
  privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
1053
1053
  /** The provisioning state of the private endpoint connection resource. */
1054
1054
  provisioningState?: PrivateEndpointConnectionProvisioningState;
1055
- };
1055
+ }
1056
1056
 
1057
1057
  /** A private link resource */
1058
- export type PrivateLinkResource = Resource & {
1058
+ export interface PrivateLinkResource extends Resource {
1059
1059
  /**
1060
1060
  * The private link resource group id.
1061
1061
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1068,22 +1068,27 @@ export type PrivateLinkResource = Resource & {
1068
1068
  readonly requiredMembers?: string[];
1069
1069
  /** The private link resource Private link DNS zone name. */
1070
1070
  requiredZoneNames?: string[];
1071
- };
1071
+ }
1072
1072
 
1073
1073
  /** The Private Endpoint Connection resource. */
1074
- export type PrivateEndpointConnectionWithSystemData = PrivateEndpointConnection & {
1074
+ export interface PrivateEndpointConnectionWithSystemData
1075
+ extends PrivateEndpointConnection {
1075
1076
  /**
1076
1077
  * Metadata pertaining to creation and last modification of the resource.
1077
1078
  * NOTE: This property will not be serialized. It can only be populated by the server.
1078
1079
  */
1079
1080
  readonly systemData?: SystemData;
1080
- };
1081
+ }
1081
1082
 
1082
1083
  /** Known values of {@link CreatedByType} that the service accepts. */
1083
1084
  export enum KnownCreatedByType {
1085
+ /** User */
1084
1086
  User = "User",
1087
+ /** Application */
1085
1088
  Application = "Application",
1089
+ /** ManagedIdentity */
1086
1090
  ManagedIdentity = "ManagedIdentity",
1091
+ /** Key */
1087
1092
  Key = "Key"
1088
1093
  }
1089
1094
 
@@ -1101,7 +1106,9 @@ export type CreatedByType = string;
1101
1106
 
1102
1107
  /** Known values of {@link PublicNetworkAccess} that the service accepts. */
1103
1108
  export enum KnownPublicNetworkAccess {
1109
+ /** Enabled */
1104
1110
  Enabled = "Enabled",
1111
+ /** Disabled */
1105
1112
  Disabled = "Disabled"
1106
1113
  }
1107
1114
 
@@ -1132,12 +1139,19 @@ export type ScalingHostPoolType = string;
1132
1139
 
1133
1140
  /** Known values of {@link ScalingScheduleDaysOfWeekItem} that the service accepts. */
1134
1141
  export enum KnownScalingScheduleDaysOfWeekItem {
1142
+ /** Sunday */
1135
1143
  Sunday = "Sunday",
1144
+ /** Monday */
1136
1145
  Monday = "Monday",
1146
+ /** Tuesday */
1137
1147
  Tuesday = "Tuesday",
1148
+ /** Wednesday */
1138
1149
  Wednesday = "Wednesday",
1150
+ /** Thursday */
1139
1151
  Thursday = "Thursday",
1152
+ /** Friday */
1140
1153
  Friday = "Friday",
1154
+ /** Saturday */
1141
1155
  Saturday = "Saturday"
1142
1156
  }
1143
1157
 
@@ -1158,7 +1172,9 @@ export type ScalingScheduleDaysOfWeekItem = string;
1158
1172
 
1159
1173
  /** Known values of {@link SessionHostLoadBalancingAlgorithm} that the service accepts. */
1160
1174
  export enum KnownSessionHostLoadBalancingAlgorithm {
1175
+ /** BreadthFirst */
1161
1176
  BreadthFirst = "BreadthFirst",
1177
+ /** DepthFirst */
1162
1178
  DepthFirst = "DepthFirst"
1163
1179
  }
1164
1180
 
@@ -1174,7 +1190,9 @@ export type SessionHostLoadBalancingAlgorithm = string;
1174
1190
 
1175
1191
  /** Known values of {@link StopHostsWhen} that the service accepts. */
1176
1192
  export enum KnownStopHostsWhen {
1193
+ /** ZeroSessions */
1177
1194
  ZeroSessions = "ZeroSessions",
1195
+ /** ZeroActiveSessions */
1178
1196
  ZeroActiveSessions = "ZeroActiveSessions"
1179
1197
  }
1180
1198
 
@@ -1190,7 +1208,9 @@ export type StopHostsWhen = string;
1190
1208
 
1191
1209
  /** Known values of {@link ApplicationGroupType} that the service accepts. */
1192
1210
  export enum KnownApplicationGroupType {
1211
+ /** RemoteApp */
1193
1212
  RemoteApp = "RemoteApp",
1213
+ /** Desktop */
1194
1214
  Desktop = "Desktop"
1195
1215
  }
1196
1216
 
@@ -1233,7 +1253,9 @@ export type Operation = string;
1233
1253
 
1234
1254
  /** Known values of {@link RemoteApplicationType} that the service accepts. */
1235
1255
  export enum KnownRemoteApplicationType {
1256
+ /** InBuilt */
1236
1257
  InBuilt = "InBuilt",
1258
+ /** MsixApplication */
1237
1259
  MsixApplication = "MsixApplication"
1238
1260
  }
1239
1261
 
@@ -1249,8 +1271,11 @@ export type RemoteApplicationType = string;
1249
1271
 
1250
1272
  /** Known values of {@link CommandLineSetting} that the service accepts. */
1251
1273
  export enum KnownCommandLineSetting {
1274
+ /** DoNotAllow */
1252
1275
  DoNotAllow = "DoNotAllow",
1276
+ /** Allow */
1253
1277
  Allow = "Allow",
1278
+ /** Require */
1254
1279
  Require = "Require"
1255
1280
  }
1256
1281
 
@@ -1288,7 +1313,9 @@ export type HostPoolType = string;
1288
1313
 
1289
1314
  /** Known values of {@link PersonalDesktopAssignmentType} that the service accepts. */
1290
1315
  export enum KnownPersonalDesktopAssignmentType {
1316
+ /** Automatic */
1291
1317
  Automatic = "Automatic",
1318
+ /** Direct */
1292
1319
  Direct = "Direct"
1293
1320
  }
1294
1321
 
@@ -1304,8 +1331,11 @@ export type PersonalDesktopAssignmentType = string;
1304
1331
 
1305
1332
  /** Known values of {@link LoadBalancerType} that the service accepts. */
1306
1333
  export enum KnownLoadBalancerType {
1334
+ /** BreadthFirst */
1307
1335
  BreadthFirst = "BreadthFirst",
1336
+ /** DepthFirst */
1308
1337
  DepthFirst = "DepthFirst",
1338
+ /** Persistent */
1309
1339
  Persistent = "Persistent"
1310
1340
  }
1311
1341
 
@@ -1322,8 +1352,11 @@ export type LoadBalancerType = string;
1322
1352
 
1323
1353
  /** Known values of {@link RegistrationTokenOperation} that the service accepts. */
1324
1354
  export enum KnownRegistrationTokenOperation {
1355
+ /** Delete */
1325
1356
  Delete = "Delete",
1357
+ /** None */
1326
1358
  None = "None",
1359
+ /** Update */
1327
1360
  Update = "Update"
1328
1361
  }
1329
1362
 
@@ -1340,9 +1373,13 @@ export type RegistrationTokenOperation = string;
1340
1373
 
1341
1374
  /** Known values of {@link SSOSecretType} that the service accepts. */
1342
1375
  export enum KnownSSOSecretType {
1376
+ /** SharedKey */
1343
1377
  SharedKey = "SharedKey",
1378
+ /** Certificate */
1344
1379
  Certificate = "Certificate",
1380
+ /** SharedKeyInKeyVault */
1345
1381
  SharedKeyInKeyVault = "SharedKeyInKeyVault",
1382
+ /** CertificateInKeyVault */
1346
1383
  CertificateInKeyVault = "CertificateInKeyVault"
1347
1384
  }
1348
1385
 
@@ -1360,8 +1397,11 @@ export type SSOSecretType = string;
1360
1397
 
1361
1398
  /** Known values of {@link PreferredAppGroupType} that the service accepts. */
1362
1399
  export enum KnownPreferredAppGroupType {
1400
+ /** None */
1363
1401
  None = "None",
1402
+ /** Desktop */
1364
1403
  Desktop = "Desktop",
1404
+ /** RailApplications */
1365
1405
  RailApplications = "RailApplications"
1366
1406
  }
1367
1407
 
@@ -1378,7 +1418,9 @@ export type PreferredAppGroupType = string;
1378
1418
 
1379
1419
  /** Known values of {@link ApplicationType} that the service accepts. */
1380
1420
  export enum KnownApplicationType {
1421
+ /** RemoteApp */
1381
1422
  RemoteApp = "RemoteApp",
1423
+ /** Desktop */
1382
1424
  Desktop = "Desktop"
1383
1425
  }
1384
1426
 
@@ -1394,11 +1436,17 @@ export type ApplicationType = string;
1394
1436
 
1395
1437
  /** Known values of {@link SessionState} that the service accepts. */
1396
1438
  export enum KnownSessionState {
1439
+ /** Unknown */
1397
1440
  Unknown = "Unknown",
1441
+ /** Active */
1398
1442
  Active = "Active",
1443
+ /** Disconnected */
1399
1444
  Disconnected = "Disconnected",
1445
+ /** Pending */
1400
1446
  Pending = "Pending",
1447
+ /** LogOff */
1401
1448
  LogOff = "LogOff",
1449
+ /** UserProfileDiskMounted */
1402
1450
  UserProfileDiskMounted = "UserProfileDiskMounted"
1403
1451
  }
1404
1452
 
@@ -1466,10 +1514,15 @@ export type Status = string;
1466
1514
 
1467
1515
  /** Known values of {@link UpdateState} that the service accepts. */
1468
1516
  export enum KnownUpdateState {
1517
+ /** Initial */
1469
1518
  Initial = "Initial",
1519
+ /** Pending */
1470
1520
  Pending = "Pending",
1521
+ /** Started */
1471
1522
  Started = "Started",
1523
+ /** Succeeded */
1472
1524
  Succeeded = "Succeeded",
1525
+ /** Failed */
1473
1526
  Failed = "Failed"
1474
1527
  }
1475
1528
 
@@ -1557,8 +1610,11 @@ export type HealthCheckResult = string;
1557
1610
 
1558
1611
  /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
1559
1612
  export enum KnownPrivateEndpointServiceConnectionStatus {
1613
+ /** Pending */
1560
1614
  Pending = "Pending",
1615
+ /** Approved */
1561
1616
  Approved = "Approved",
1617
+ /** Rejected */
1562
1618
  Rejected = "Rejected"
1563
1619
  }
1564
1620
 
@@ -1575,9 +1631,13 @@ export type PrivateEndpointServiceConnectionStatus = string;
1575
1631
 
1576
1632
  /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
1577
1633
  export enum KnownPrivateEndpointConnectionProvisioningState {
1634
+ /** Succeeded */
1578
1635
  Succeeded = "Succeeded",
1636
+ /** Creating */
1579
1637
  Creating = "Creating",
1638
+ /** Deleting */
1580
1639
  Deleting = "Deleting",
1640
+ /** Failed */
1581
1641
  Failed = "Failed"
1582
1642
  }
1583
1643