Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR compute/resource-manager] Update compute.json to add ProtectFromScaleIn property to VMScaleSetVM properties #806

Merged
merged 2 commits into from
Feb 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/@azure/arm-compute/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 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
21 changes: 16 additions & 5 deletions packages/@azure/arm-compute/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1396,9 +1396,10 @@ export interface VaultSecretGroup {
export interface OSProfile {
/**
* @member {string} [computerName] Specifies the host OS name of the virtual
* machine. <br><br> **Max-length (Windows):** 15 characters <br><br>
* **Max-length (Linux):** 64 characters. <br><br> For naming conventions and
* restrictions see [Azure infrastructure services implementation
* machine. <br><br> This name cannot be updated after the VM is created.
* <br><br> **Max-length (Windows):** 15 characters <br><br> **Max-length
* (Linux):** 64 characters. <br><br> For naming conventions and restrictions
* see [Azure infrastructure services implementation
* guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions).
*/
computerName?: string;
Expand Down Expand Up @@ -3957,6 +3958,12 @@ export interface VirtualMachineScaleSetVM extends Resource {
* the server.**
*/
readonly latestModelApplied?: boolean;
/**
* @member {boolean} [protectFromScaleIn] Specifies whether the virtual
* machine instance shouldn't be considered for deletion during a scale-in
* operation
*/
protectFromScaleIn?: boolean;
/**
* @member {string} [vmId] Azure VM unique ID.
* **NOTE: This property will not be serialized. It can only be populated by
Expand Down Expand Up @@ -4853,13 +4860,17 @@ export interface Disk extends Resource {
/**
* @member {number} [diskIOPSReadWrite] The number of IOPS allowed for this
* disk; only settable for UltraSSD disks. One operation can transfer between
* 4k and 256k bytes.
* 4k and 256k bytes. For a description of the range of values you can set,
* see [Ultra SSD Managed Disk
* Offerings](https://docs.microsoft.com/azure/virtual-machines/windows/disks-ultra-ssd#ultra-ssd-managed-disk-offerings).
*/
diskIOPSReadWrite?: number;
/**
* @member {number} [diskMBpsReadWrite] The bandwidth allowed for this disk;
* only settable for UltraSSD disks. MBps means millions of bytes per second
* - MB here uses the ISO notation, of powers of 10.
* - MB here uses the ISO notation, of powers of 10. For a description of the
* range of values you can set, see [Ultra SSD Managed Disk
* Offerings](https://docs.microsoft.com/azure/virtual-machines/windows/disks-ultra-ssd#ultra-ssd-managed-disk-offerings).
*/
diskMBpsReadWrite?: number;
}
Expand Down
6 changes: 6 additions & 0 deletions packages/@azure/arm-compute/lib/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4812,6 +4812,12 @@ export const VirtualMachineScaleSetVM: msRest.CompositeMapper = {
name: "Boolean"
}
},
protectFromScaleIn: {
serializedName: "properties.protectFromScaleIn",
type: {
name: "Boolean"
}
},
vmId: {
readOnly: true,
serializedName: "properties.vmId",
Expand Down