Skip to content

Commit

Permalink
[Compute] DiskRP API 2022-03-02 Release (Azure#28464)
Browse files Browse the repository at this point in the history
* set up feature branch

* generated with new changes

* set up feature branch

* new recordings

* Gallery 01 03 SDK (Azure#27466)

* save

* save

* update

* update

* save

* save

* sanitization

* add eula/privacy statement to gallery SDK release (Azure#28238)

* save

* update

* update

* update test

* generated with new changes

* SDK generation

* Updated SDK

* SDK changes for new properties "settings" and "advancedSettings" to gallery application version (Azure#28250)

* Generated SDK using 0c46c6ca375c5b61de701f790db5673d76ceb8b6

* Updated test and recording

* removed SAS tokens from recorded test

* generated SDK with updated comments from API PR

* removed "sig=" tokens from recorded test

* added customization and sanitized keys in recorded tests

* Restored older customization

* fixed customization

* Made enableHealthCheck optional parameter because it appears after settings and advancedSettings, as the WIKI states.

* federatedclientid change

* adding tests for restore point with securityprofile (Azure#28949)

* Update AssemblyInfo.cs

.Net version update

* Update Microsoft.Azure.Management.Compute.csproj

* save (Azure#29131)

test rerecord that was needed

* Test recordings

* Adding Customizations

* adding test recordings

* update azsdk.rp.props and compute_resource-manager.txt

* credscan

Co-authored-by: Theodore Chang <thchan@microsoft.com>
Co-authored-by: Adam Sandor <adsandor@microsoft.com>
Co-authored-by: kangsun-ctrl <69279251+kangsun-ctrl@users.noreply.github.com>
Co-authored-by: Bhaskar Brahma <bhbrahma@microsoft.com>
Co-authored-by: anshulsolanki21 <73930854+anshulsolanki21@users.noreply.github.com>
  • Loading branch information
6 people authored and sofiar-msft committed Dec 7, 2022
1 parent 0b7cca9 commit 39d89f3
Show file tree
Hide file tree
Showing 82 changed files with 20,191 additions and 16,509 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>Compute_2022-03-01;Compute_2021-11-01;Compute_2021-03-01;Compute_2021-07-01;Compute_2021-12-01;Compute_2022-01-03;Compute_2021-06-01-preview</AzureApiTag>
<AzureApiTag>Compute_2022-03-02;Compute_2022-03-01;Compute_2021-11-01;Compute_2021-03-01;Compute_2021-07-01;Compute_2021-12-01;Compute_2022-01-03;Compute_2021-06-01-preview</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,16 @@ public DiskEncryptionSetUpdate(string encryptionType, KeyForDiskEncryptionSet ac
Tags = tags;
CustomInit();
}

public DiskEncryptionSetUpdate(string encryptionType = default(string), KeyForDiskEncryptionSet activeKey = default(KeyForDiskEncryptionSet), bool? rotationToLatestKeyVersionEnabled = default(bool?), IDictionary<string, string> tags = default(IDictionary<string, string>), EncryptionSetIdentity identity = default(EncryptionSetIdentity))
{
EncryptionType = encryptionType;
ActiveKey = activeKey;
RotationToLatestKeyVersionEnabled = rotationToLatestKeyVersionEnabled;
Tags = tags;
Identity = identity;
CustomInit();
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.Compute.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// The source image used for creating the disk.
/// </summary>
public partial class ImageDiskReference
{

/// <summary>
/// Initializes a new instance of the ImageDiskReference class.
/// </summary>
/// <param name="id">A relative uri containing either a Platform Image
/// Repository, user image, or Azure Compute Gallery image
/// reference.</param>
/// <param name="sharedGalleryImageId">A relative uri containing a
/// direct shared Azure Compute Gallery image reference.</param>
/// <param name="communityGalleryImageId">A relative uri containing a
/// community Azure Compute Gallery image reference.</param>
/// <param name="lun">If the disk is created from an image's data disk,
/// this is an index that indicates which of the data disks in the
/// image to use. For OS disks, this field is null.</param>
public ImageDiskReference(string id = default(string), int? lun = default(int?))
{
Id = id;
Lun = lun;
CustomInit();
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,35 @@ public partial class Snapshot : Resource
SupportsHibernation = supportsHibernation;
CustomInit();
}

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), SnapshotSku sku = default(SnapshotSku), ExtendedLocation extendedLocation = default(ExtendedLocation), System.DateTime? timeCreated = default(System.DateTime?), OperatingSystemTypes? osType = default(OperatingSystemTypes?), string hyperVGeneration = default(string), PurchasePlan purchasePlan = default(PurchasePlan), SupportedCapabilities supportedCapabilities = default(SupportedCapabilities), int? diskSizeGB = default(int?), long? diskSizeBytes = default(long?), string diskState = default(string), string uniqueId = default(string), EncryptionSettingsCollection encryptionSettingsCollection = default(EncryptionSettingsCollection), string provisioningState = default(string), bool? incremental = default(bool?), Encryption encryption = default(Encryption), string networkAccessPolicy = default(string), string diskAccessId = default(string), DiskSecurityProfile securityProfile = default(DiskSecurityProfile), bool? supportsHibernation = default(bool?), string publicNetworkAccess = default(string), double? completionPercent = default(double?), string dataAccessAuthMode = default(string))
: base(location, id, name, type, tags)
{
ManagedBy = managedBy;
Sku = sku;
ExtendedLocation = extendedLocation;
TimeCreated = timeCreated;
OsType = osType;
HyperVGeneration = hyperVGeneration;
PurchasePlan = purchasePlan;
SupportedCapabilities = supportedCapabilities;
CreationData = creationData;
DiskSizeGB = diskSizeGB;
DiskSizeBytes = diskSizeBytes;
DiskState = diskState;
UniqueId = uniqueId;
EncryptionSettingsCollection = encryptionSettingsCollection;
ProvisioningState = provisioningState;
Incremental = incremental;
Encryption = encryption;
NetworkAccessPolicy = networkAccessPolicy;
DiskAccessId = diskAccessId;
SecurityProfile = securityProfile;
SupportsHibernation = supportsHibernation;
PublicNetworkAccess = publicNetworkAccess;
CompletionPercent = completionPercent;
DataAccessAuthMode = dataAccessAuthMode;
CustomInit();
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 39d89f3

Please sign in to comment.