Skip to content

Commit 8e235f3

Browse files
author
SDKAuto
committed
CodeGen from PR 13351 in Azure/azure-rest-api-specs
Merge fa4ae414054b7c67d93cef0af31a115cc6b161b4 into 872b7da6fe27183d4e0150f5c07055a21a6e4f27
1 parent 94a3973 commit 8e235f3

19 files changed

+209
-187
lines changed

sdk/compute/arm-compute/src/computeManagementClientContext.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class ComputeManagementClientContext extends msRestAzure.AzureServiceClie
3636
if (!options) {
3737
options = {};
3838
}
39-
if (!options.userAgent) {
39+
if(!options.userAgent) {
4040
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4141
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
4242
}
@@ -50,10 +50,10 @@ export class ComputeManagementClientContext extends msRestAzure.AzureServiceClie
5050
this.credentials = credentials;
5151
this.subscriptionId = subscriptionId;
5252

53-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
53+
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
5454
this.acceptLanguage = options.acceptLanguage;
5555
}
56-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
56+
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
5757
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
5858
}
5959
}

sdk/compute/arm-compute/src/models/index.ts

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2723,6 +2723,32 @@ export interface VirtualMachineInstanceView {
27232723
patchStatus?: VirtualMachinePatchStatus;
27242724
}
27252725

2726+
/**
2727+
* An interface representing TerminateNotificationProfile.
2728+
*/
2729+
export interface TerminateNotificationProfile {
2730+
/**
2731+
* Configurable length of time a Virtual Machine being deleted will have to potentially approve
2732+
* the Terminate Scheduled Event before the event is auto approved (timed out). The configuration
2733+
* must be specified in ISO 8601 format, the default value is 5 minutes (PT5M)
2734+
*/
2735+
notBeforeTimeout?: string;
2736+
/**
2737+
* Specifies whether the Terminate Scheduled event is enabled or disabled.
2738+
*/
2739+
enable?: boolean;
2740+
}
2741+
2742+
/**
2743+
* An interface representing ScheduledEventsProfile.
2744+
*/
2745+
export interface ScheduledEventsProfile {
2746+
/**
2747+
* Specifies Terminate Scheduled Event related configurations.
2748+
*/
2749+
terminateNotificationProfile?: TerminateNotificationProfile;
2750+
}
2751+
27262752
/**
27272753
* Describes a Virtual Machine.
27282754
*/
@@ -2866,6 +2892,10 @@ export interface VirtualMachine extends Resource {
28662892
* the Virtual Machine Instance View.<br><br>Minimum api‐version: 2020‐12‐01
28672893
*/
28682894
platformFaultDomain?: number;
2895+
/**
2896+
* Specifies Scheduled Event related configurations.
2897+
*/
2898+
scheduledEventsProfile?: ScheduledEventsProfile;
28692899
/**
28702900
* The virtual machine child extension resources.
28712901
* **NOTE: This property will not be serialized. It can only be populated by the server.**
@@ -3028,6 +3058,10 @@ export interface VirtualMachineUpdate extends UpdateResource {
30283058
* the Virtual Machine Instance View.<br><br>Minimum api‐version: 2020‐12‐01
30293059
*/
30303060
platformFaultDomain?: number;
3061+
/**
3062+
* Specifies Scheduled Event related configurations.
3063+
*/
3064+
scheduledEventsProfile?: ScheduledEventsProfile;
30313065
/**
30323066
* The identity of the virtual machine, if configured.
30333067
*/
@@ -4073,32 +4107,6 @@ export interface VirtualMachineScaleSetExtensionProfile {
40734107
extensionsTimeBudget?: string;
40744108
}
40754109

4076-
/**
4077-
* An interface representing TerminateNotificationProfile.
4078-
*/
4079-
export interface TerminateNotificationProfile {
4080-
/**
4081-
* Configurable length of time a Virtual Machine being deleted will have to potentially approve
4082-
* the Terminate Scheduled Event before the event is auto approved (timed out). The configuration
4083-
* must be specified in ISO 8601 format, the default value is 5 minutes (PT5M)
4084-
*/
4085-
notBeforeTimeout?: string;
4086-
/**
4087-
* Specifies whether the Terminate Scheduled event is enabled or disabled.
4088-
*/
4089-
enable?: boolean;
4090-
}
4091-
4092-
/**
4093-
* An interface representing ScheduledEventsProfile.
4094-
*/
4095-
export interface ScheduledEventsProfile {
4096-
/**
4097-
* Specifies Terminate Scheduled Event related configurations.
4098-
*/
4099-
terminateNotificationProfile?: TerminateNotificationProfile;
4100-
}
4101-
41024110
/**
41034111
* Describes a virtual machine scale set virtual machine profile.
41044112
*/

sdk/compute/arm-compute/src/models/mappers.ts

Lines changed: 53 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4057,6 +4057,45 @@ export const VirtualMachineInstanceView: msRest.CompositeMapper = {
40574057
}
40584058
};
40594059

4060+
export const TerminateNotificationProfile: msRest.CompositeMapper = {
4061+
serializedName: "TerminateNotificationProfile",
4062+
type: {
4063+
name: "Composite",
4064+
className: "TerminateNotificationProfile",
4065+
modelProperties: {
4066+
notBeforeTimeout: {
4067+
serializedName: "notBeforeTimeout",
4068+
type: {
4069+
name: "String"
4070+
}
4071+
},
4072+
enable: {
4073+
serializedName: "enable",
4074+
type: {
4075+
name: "Boolean"
4076+
}
4077+
}
4078+
}
4079+
}
4080+
};
4081+
4082+
export const ScheduledEventsProfile: msRest.CompositeMapper = {
4083+
serializedName: "ScheduledEventsProfile",
4084+
type: {
4085+
name: "Composite",
4086+
className: "ScheduledEventsProfile",
4087+
modelProperties: {
4088+
terminateNotificationProfile: {
4089+
serializedName: "terminateNotificationProfile",
4090+
type: {
4091+
name: "Composite",
4092+
className: "TerminateNotificationProfile"
4093+
}
4094+
}
4095+
}
4096+
}
4097+
};
4098+
40604099
export const VirtualMachine: msRest.CompositeMapper = {
40614100
serializedName: "VirtualMachine",
40624101
type: {
@@ -4214,6 +4253,13 @@ export const VirtualMachine: msRest.CompositeMapper = {
42144253
name: "Number"
42154254
}
42164255
},
4256+
scheduledEventsProfile: {
4257+
serializedName: "properties.scheduledEventsProfile",
4258+
type: {
4259+
name: "Composite",
4260+
className: "ScheduledEventsProfile"
4261+
}
4262+
},
42174263
resources: {
42184264
readOnly: true,
42194265
serializedName: "resources",
@@ -4413,6 +4459,13 @@ export const VirtualMachineUpdate: msRest.CompositeMapper = {
44134459
name: "Number"
44144460
}
44154461
},
4462+
scheduledEventsProfile: {
4463+
serializedName: "properties.scheduledEventsProfile",
4464+
type: {
4465+
name: "Composite",
4466+
className: "ScheduledEventsProfile"
4467+
}
4468+
},
44164469
identity: {
44174470
serializedName: "identity",
44184471
type: {
@@ -6033,45 +6086,6 @@ export const VirtualMachineScaleSetExtensionProfile: msRest.CompositeMapper = {
60336086
}
60346087
};
60356088

6036-
export const TerminateNotificationProfile: msRest.CompositeMapper = {
6037-
serializedName: "TerminateNotificationProfile",
6038-
type: {
6039-
name: "Composite",
6040-
className: "TerminateNotificationProfile",
6041-
modelProperties: {
6042-
notBeforeTimeout: {
6043-
serializedName: "notBeforeTimeout",
6044-
type: {
6045-
name: "String"
6046-
}
6047-
},
6048-
enable: {
6049-
serializedName: "enable",
6050-
type: {
6051-
name: "Boolean"
6052-
}
6053-
}
6054-
}
6055-
}
6056-
};
6057-
6058-
export const ScheduledEventsProfile: msRest.CompositeMapper = {
6059-
serializedName: "ScheduledEventsProfile",
6060-
type: {
6061-
name: "Composite",
6062-
className: "ScheduledEventsProfile",
6063-
modelProperties: {
6064-
terminateNotificationProfile: {
6065-
serializedName: "terminateNotificationProfile",
6066-
type: {
6067-
name: "Composite",
6068-
className: "TerminateNotificationProfile"
6069-
}
6070-
}
6071-
}
6072-
}
6073-
};
6074-
60756089
export const VirtualMachineScaleSetVMProfile: msRest.CompositeMapper = {
60766090
serializedName: "VirtualMachineScaleSetVMProfile",
60776091
type: {

sdk/compute/arm-compute/src/models/parameters.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const apiVersion0: msRest.OperationQueryParameter = {
2525
required: true,
2626
isConstant: true,
2727
serializedName: "api-version",
28-
defaultValue: '2020-12-01',
28+
defaultValue: '2021-03-01',
2929
type: {
3030
name: "String"
3131
}
@@ -49,7 +49,7 @@ export const apiVersion2: msRest.OperationQueryParameter = {
4949
required: true,
5050
isConstant: true,
5151
serializedName: "api-version",
52-
defaultValue: '2019-12-01',
52+
defaultValue: '2020-12-01',
5353
type: {
5454
name: "String"
5555
}
@@ -61,7 +61,7 @@ export const apiVersion3: msRest.OperationQueryParameter = {
6161
required: true,
6262
isConstant: true,
6363
serializedName: "api-version",
64-
defaultValue: '2021-03-01',
64+
defaultValue: '2019-12-01',
6565
type: {
6666
name: "String"
6767
}

sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ const getOSVersionOperationSpec: msRest.OperationSpec = {
223223
Parameters.subscriptionId
224224
],
225225
queryParameters: [
226-
Parameters.apiVersion3
226+
Parameters.apiVersion0
227227
],
228228
headerParameters: [
229229
Parameters.acceptLanguage
@@ -247,7 +247,7 @@ const listOSVersionsOperationSpec: msRest.OperationSpec = {
247247
Parameters.subscriptionId
248248
],
249249
queryParameters: [
250-
Parameters.apiVersion3
250+
Parameters.apiVersion0
251251
],
252252
headerParameters: [
253253
Parameters.acceptLanguage
@@ -272,7 +272,7 @@ const getOSFamilyOperationSpec: msRest.OperationSpec = {
272272
Parameters.subscriptionId
273273
],
274274
queryParameters: [
275-
Parameters.apiVersion3
275+
Parameters.apiVersion0
276276
],
277277
headerParameters: [
278278
Parameters.acceptLanguage
@@ -296,7 +296,7 @@ const listOSFamiliesOperationSpec: msRest.OperationSpec = {
296296
Parameters.subscriptionId
297297
],
298298
queryParameters: [
299-
Parameters.apiVersion3
299+
Parameters.apiVersion0
300300
],
301301
headerParameters: [
302302
Parameters.acceptLanguage
@@ -320,7 +320,7 @@ const listOSVersionsNextOperationSpec: msRest.OperationSpec = {
320320
Parameters.nextPageLink
321321
],
322322
queryParameters: [
323-
Parameters.apiVersion3
323+
Parameters.apiVersion0
324324
],
325325
headerParameters: [
326326
Parameters.acceptLanguage
@@ -344,7 +344,7 @@ const listOSFamiliesNextOperationSpec: msRest.OperationSpec = {
344344
Parameters.nextPageLink
345345
],
346346
queryParameters: [
347-
Parameters.apiVersion3
347+
Parameters.apiVersion0
348348
],
349349
headerParameters: [
350350
Parameters.acceptLanguage

sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ const getOperationSpec: msRest.OperationSpec = {
351351
Parameters.subscriptionId
352352
],
353353
queryParameters: [
354-
Parameters.apiVersion3,
354+
Parameters.apiVersion0,
355355
Parameters.expand1
356356
],
357357
headerParameters: [
@@ -378,7 +378,7 @@ const getInstanceViewOperationSpec: msRest.OperationSpec = {
378378
Parameters.subscriptionId
379379
],
380380
queryParameters: [
381-
Parameters.apiVersion3
381+
Parameters.apiVersion0
382382
],
383383
headerParameters: [
384384
Parameters.acceptLanguage
@@ -403,7 +403,7 @@ const listOperationSpec: msRest.OperationSpec = {
403403
Parameters.subscriptionId
404404
],
405405
queryParameters: [
406-
Parameters.apiVersion3,
406+
Parameters.apiVersion0,
407407
Parameters.expand1
408408
],
409409
headerParameters: [
@@ -430,7 +430,7 @@ const getRemoteDesktopFileOperationSpec: msRest.OperationSpec = {
430430
Parameters.subscriptionId
431431
],
432432
queryParameters: [
433-
Parameters.apiVersion3
433+
Parameters.apiVersion0
434434
],
435435
headerParameters: [
436436
Parameters.acceptLanguage
@@ -461,7 +461,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
461461
Parameters.subscriptionId
462462
],
463463
queryParameters: [
464-
Parameters.apiVersion3
464+
Parameters.apiVersion0
465465
],
466466
headerParameters: [
467467
Parameters.acceptLanguage
@@ -487,7 +487,7 @@ const beginRestartOperationSpec: msRest.OperationSpec = {
487487
Parameters.subscriptionId
488488
],
489489
queryParameters: [
490-
Parameters.apiVersion3
490+
Parameters.apiVersion0
491491
],
492492
headerParameters: [
493493
Parameters.acceptLanguage
@@ -512,7 +512,7 @@ const beginReimageOperationSpec: msRest.OperationSpec = {
512512
Parameters.subscriptionId
513513
],
514514
queryParameters: [
515-
Parameters.apiVersion3
515+
Parameters.apiVersion0
516516
],
517517
headerParameters: [
518518
Parameters.acceptLanguage
@@ -537,7 +537,7 @@ const beginRebuildOperationSpec: msRest.OperationSpec = {
537537
Parameters.subscriptionId
538538
],
539539
queryParameters: [
540-
Parameters.apiVersion3
540+
Parameters.apiVersion0
541541
],
542542
headerParameters: [
543543
Parameters.acceptLanguage
@@ -560,7 +560,7 @@ const listNextOperationSpec: msRest.OperationSpec = {
560560
Parameters.nextPageLink
561561
],
562562
queryParameters: [
563-
Parameters.apiVersion3,
563+
Parameters.apiVersion0,
564564
Parameters.expand1
565565
],
566566
headerParameters: [

0 commit comments

Comments
 (0)