Skip to content

Commit

Permalink
Fix disk swagger (Azure#3440)
Browse files Browse the repository at this point in the history
* update snapshot and compute version

* update snapshot and compute version
  • Loading branch information
DeepakRajendranMsft authored and shahabhijeet committed Jul 3, 2017
1 parent b87576b commit a69a0ee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion src/SDKs/Compute/Management.Compute/Generated/Models/Snapshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public Snapshot() { }
/// <param name="name">Resource name</param>
/// <param name="type">Resource type</param>
/// <param name="tags">Resource tags</param>
/// <param name="managedBy">A relative URI containing the ID of the VM
/// that has the disk attached.</param>
/// <param name="timeCreated">The time when the disk was
/// created.</param>
/// <param name="osType">The Operating System type. Possible values
Expand All @@ -54,9 +56,10 @@ public Snapshot() { }
/// snapshot</param>
/// <param name="provisioningState">The disk provisioning
/// state.</param>
public Snapshot(string location, CreationData creationData, string id = default(string), string name = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), DiskSku sku = default(DiskSku), System.DateTime? timeCreated = default(System.DateTime?), OperatingSystemTypes? osType = default(OperatingSystemTypes?), int? diskSizeGB = default(int?), EncryptionSettings encryptionSettings = default(EncryptionSettings), string provisioningState = default(string))
public Snapshot(string location, CreationData creationData, string id = default(string), string name = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), string managedBy = default(string), DiskSku sku = default(DiskSku), System.DateTime? timeCreated = default(System.DateTime?), OperatingSystemTypes? osType = default(OperatingSystemTypes?), int? diskSizeGB = default(int?), EncryptionSettings encryptionSettings = default(EncryptionSettings), string provisioningState = default(string))
: base(location, id, name, type, tags)
{
ManagedBy = managedBy;
Sku = sku;
TimeCreated = timeCreated;
OsType = osType;
Expand All @@ -66,6 +69,13 @@ public Snapshot() { }
ProvisioningState = provisioningState;
}

/// <summary>
/// Gets a relative URI containing the ID of the VM that has the disk
/// attached.
/// </summary>
[JsonProperty(PropertyName = "managedBy")]
public string ManagedBy { get; protected set; }

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "sku")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<PackageId>Microsoft.Azure.Management.Compute</PackageId>
<Description>Provides developers with libraries for the updated compute platform under Azure Resource manager to deploy virtual machine, virtual machine extensions and availability set management capabilities. Launch, restart, scale, capture and manage VMs, VM Extensions and more. Note: This client library is for Virtual Machines under Azure Resource Manager.</Description>
<VersionPrefix>15.0.0</VersionPrefix>
<VersionPrefix>16.0.0</VersionPrefix>
<AssemblyName>Microsoft.Azure.Management.Compute</AssemblyName>
<PackageTags>Microsoft Azure resource management;virtual machine;compute;REST HTTP client;azureofficial;windowsazureofficial;netcore451511</PackageTags>
</PropertyGroup>
Expand Down

0 comments on commit a69a0ee

Please sign in to comment.