Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
3f95833
Init tsp for Microsoft.ScVmm
tadelesh Nov 9, 2023
0d83710
Some changes towards passing tsv
willmtemple Dec 18, 2023
6d30927
Updates to fix lint errors, remove unused types, regenerate examples,…
willmtemple Jan 23, 2024
1d23e28
Created shareable 'force' param
willmtemple Jan 23, 2024
3252368
Figured out the incantation to rename a file case-sensitively
willmtemple Jan 23, 2024
ec595db
Restored string bool enums.
willmtemple Jan 29, 2024
5e441c1
Removed all examples
willmtemple Jan 29, 2024
e1740a2
Merge remote-tracking branch 'origin/main' into scvmm-tsp
willmtemple Jan 29, 2024
c4e56fb
Regenerate examples
willmtemple Feb 1, 2024
9f8f0a6
Updated ARM ID properties. Added script to sort output to compare wit…
allenjzhang Feb 12, 2024
5413e58
Merge remote-tracking branch 'upstream/main' into scvmm-tsp
allenjzhang Feb 12, 2024
ac68942
Additional changes.
allenjzhang Feb 13, 2024
2f9d6ff
Removed unused XXUpdate models, Added @secret for password,
allenjzhang Feb 13, 2024
c200239
Fixed #8, #6, #5
allenjzhang Feb 23, 2024
559f137
Fixed #2
allenjzhang Feb 23, 2024
1c63e96
Update swagger to be in sync with previous fixes.
allenjzhang Feb 23, 2024
19f3bb5
Workaround for CloudCapacity readonly
allenjzhang Feb 23, 2024
6d68f09
Additional fixes.
allenjzhang Feb 23, 2024
3fd4133
fix ModelValidation
Alancere Mar 7, 2024
ba36b0f
update void
Alancere Mar 12, 2024
aac6ba9
VM Instance Update Properties changes
hsurana06 Mar 19, 2024
0fda88b
spell check and prettier validation fix
hsurana06 Mar 19, 2024
eb39c38
fix for identifier bug
tadelesh Mar 20, 2024
ad87a6b
workaround for https://github.com/Azure/typespec-azure/issues/449
tadelesh Mar 20, 2024
a2a42df
Merge branch 'main' into scvmm-tsp
tadelesh Mar 20, 2024
ab0206f
Merge branch 'scvmm-tsp' of github.com:Azure/azure-rest-api-specs int…
tadelesh Mar 20, 2024
1d3fe0a
format
tadelesh Mar 20, 2024
5bab817
spell and prettier check improvements
hsurana06 Mar 20, 2024
66490ee
use encodedName replace projectdName
Alancere Mar 20, 2024
ebac611
Add summary annotations
Alancere Mar 20, 2024
6d41439
summary
Alancere Mar 20, 2024
aae7306
update kind and void
Alancere Mar 20, 2024
73179d5
lro azure-async-operation
Alancere Mar 20, 2024
eefb269
fix
Alancere Mar 20, 2024
f5b1824
tsp compilation warning
hsurana06 Mar 21, 2024
a8b6c8a
TypeSpec Validation fix
hsurana06 Mar 22, 2024
71ee459
Update tspconfig.yaml
tadelesh Mar 25, 2024
591625b
config change
tadelesh Mar 25, 2024
4f365c6
Removed Read Only Property from Examples to fix Swagger ModelValidation
hsurana06 Mar 26, 2024
06dc1db
Revert Boolean to Enum with type Union in TypeSpec
hsurana06 Mar 27, 2024
e2d084b
Merge branch 'main' into scvmm-tsp
hsurana06 May 9, 2024
97cf6ca
specs-pr repo PR review changes to specs repo
hsurana06 May 13, 2024
0ea2304
Merge branch 'main' into scvmm-tsp
hsurana06 May 13, 2024
88e38b2
Remove sorted json file used for comparison
hsurana06 May 13, 2024
7ddf63f
Fix TypeSpec PR pipeline failure
hsurana06 May 14, 2024
823a897
make extendedLocation for VM Instance read and create
hsurana06 May 30, 2024
b8594ef
Merge branch 'main' into scvmm-tsp
hsurana06 May 30, 2024
5bf267a
typespec validation fix
hsurana06 May 30, 2024
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
Prev Previous commit
Next Next commit
Restored string bool enums.
  • Loading branch information
willmtemple committed Jan 29, 2024
commit ec595dbd3a1704c555f1c0ff13697656f15beabd
76 changes: 60 additions & 16 deletions specification/scvmm/ScVmm.Management/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,57 @@ enum IdentityType {
SystemAssigned,
}

// TODO, needed?
/** A string representation of a boolean */
enum StringBoolean {
/** "true" */
/** Limit CPU for migration. */
enum LimitCpuForMigration {
/** Enable limit CPU for migration. */
`true`,

/** "false" */
/** Disable limit CPU for migration. */
`false`,
}

/** Dynamic memory enabled. */
enum DynamicMemoryEnabled {
/** Enable dynamic memory. */
`true`,

/** Disable dynamic memory. */
`false`,
}

/** Highly available. */
enum IsHighlyAvailable {
/** Enable highly available. */
`true`,

/** Disable highly available. */
`false`,
}

/** Create diff disk. */
enum CreateDiffDisk {
/** Enable create diff disk. */
`true`,

/** Disable create diff disk. */
`false`,
}

/** Customizable. */
enum IsCustomizable {
/** Enable customizable. */
`true`,

/** Disable customizable. */
`false`,
}

/** Skip shutdown. */
enum SkipShutdown {
/** Enable skip shutdown. */
`true`,

/** Disable skip shutdown. */
`false`,
}

Expand Down Expand Up @@ -261,15 +305,15 @@ model VirtualMachineTemplateProperties {

/** Gets a value indicating whether to enable processor compatibility mode for live migration of VMs. */
@visibility("read")
limitCpuForMigration?: StringBoolean;
limitCpuForMigration?: LimitCpuForMigration;

/** Gets a value indicating whether to enable dynamic memory or not. */
@visibility("read")
dynamicMemoryEnabled?: StringBoolean;
dynamicMemoryEnabled?: DynamicMemoryEnabled;

/** Gets a value indicating whether the vm template is customizable or not. */
@visibility("read")
isCustomizable?: StringBoolean;
isCustomizable?: IsCustomizable;

/** Gets the max dynamic memory for the vm. */
#suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb"
Expand All @@ -283,7 +327,7 @@ model VirtualMachineTemplateProperties {

/** Gets highly available property. */
@visibility("read")
isHighlyAvailable?: StringBoolean;
isHighlyAvailable?: IsHighlyAvailable;

/** Gets the generation for the vm. */
@visibility("read")
Expand Down Expand Up @@ -391,7 +435,7 @@ model VirtualDisk {
storageQosPolicy?: StorageQosPolicyDetails;

/** Gets or sets a value indicating diff disk. */
createDiffDisk?: StringBoolean;
createDiffDisk?: CreateDiffDisk;
}

/** The StorageQoSPolicyDetails definition. */
Expand Down Expand Up @@ -507,10 +551,10 @@ model HardwareProfile {
cpuCount?: int32;

/** Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs. */
limitCpuForMigration?: StringBoolean;
limitCpuForMigration?: LimitCpuForMigration;

/** Gets or sets a value indicating whether to enable dynamic memory or not. */
dynamicMemoryEnabled?: StringBoolean;
dynamicMemoryEnabled?: DynamicMemoryEnabled;

/** Gets or sets the max dynamic memory for the vm. */
#suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb"
Expand All @@ -522,7 +566,7 @@ model HardwareProfile {

/** Gets highly available property. */
@visibility("read")
isHighlyAvailable?: StringBoolean;
isHighlyAvailable?: IsHighlyAvailable;
}

/** Defines the resource properties. */
Expand Down Expand Up @@ -603,10 +647,10 @@ model HardwareProfileUpdate {
cpuCount?: int32;

/** Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs. */
limitCpuForMigration?: StringBoolean;
limitCpuForMigration?: LimitCpuForMigration;

/** Gets or sets a value indicating whether to enable dynamic memory or not. */
dynamicMemoryEnabled?: StringBoolean;
dynamicMemoryEnabled?: DynamicMemoryEnabled;

/** Gets or sets the max dynamic memory for the vm. */
#suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb"
Expand Down Expand Up @@ -691,7 +735,7 @@ model InfrastructureProfileUpdate {
/** Defines the stop action properties. */
model StopVirtualMachineOptions {
/** Gets or sets a value indicating whether to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Defaults to false. */
skipShutdown?: StringBoolean;
skipShutdown?: SkipShutdown;
}

/** Describes the properties of Hybrid Identity Metadata for a Virtual Machine. */
Expand Down
Loading