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

organize classes - move custom code outside of generated folder - remove duplicate identity #22626

Merged
merged 3 commits into from
Jul 13, 2021
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
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,6 @@ public ArmClientOptions(Location defaultLocation)
/// </summary>
public Location DefaultLocation { get; }

/// <summary>
/// Converts client options.
/// </summary>
/// <typeparam name="T"> The type of the underlying model this class wraps. </typeparam>
/// <returns> The converted client options. </returns>
public T Convert<T>()
where T : ClientOptions, new()
{
var newOptions = new T();
newOptions.Transport = Transport;

return newOptions;
}

/// <summary>
/// Gets override object.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,53 +12,6 @@ namespace Azure.ResourceManager.Core
/// </summary>
public sealed partial class Plan : IEquatable<Plan>, IComparable<Plan>
{
/// <summary> Initializes a new instance of Plan. </summary>
public Plan()
{
}

/// <summary>
/// Initializes a new instance of the <see cref="Plan"/> class.
/// </summary>
/// <param name="name"> Plan's Name. </param>
/// <param name="publisher"> Plan's Publisher.</param>
/// <param name="product"> Plan's Product. </param>
/// <param name="promotionCode"> Plan's Promotion Code. </param>
/// <param name="version"> Plan's Version. </param>
internal Plan(string name, string publisher, string product, string promotionCode, string version)
{
Name = name;
Publisher = publisher;
Product = product;
PromotionCode = promotionCode;
Version = version;
}

/// <summary>
/// Gets or sets the plan's Name.
/// </summary>
public string Name { get; set; }

/// <summary>
/// Gets or sets the plan's Publisher.
/// </summary>
public string Publisher { get; set; }

/// <summary>
/// Gets or sets the plan's product.
/// </summary>
public string Product { get; set; }

/// <summary>
/// Gets or sets the plan's Promotion Code.
/// </summary>
public string PromotionCode { get; set; }

/// <summary>
/// Gets or sets the plan's version.
/// </summary>
public string Version { get; set; }

/// <summary>
/// Compares this <see cref="Plan"/> with another instance.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,62 +12,6 @@ namespace Azure.ResourceManager.Core
/// </summary>
public sealed partial class Sku : IEquatable<Sku>, IComparable<Sku>
{
/// <summary>
/// Initializes a new instance of the <see cref="Sku"/> class.
/// </summary>
public Sku()
{
}

/// <summary>
/// Initializes a new instance of the <see cref="Sku"/> class.
/// </summary>
/// <param name="name"> The SKU name. </param>
/// <param name="tier"> The SKU tier. </param>
/// <param name="family"> The SKU family. </param>
/// <param name="model"> The SKU faimily. </param>
/// <param name="size"> The SKU size. </param>
/// <param name="capacity"> The SKU capacity. </param>
internal Sku(string name, string tier, string size, string family, string model, long? capacity = null)
{
Name = name;
Tier = tier;
Family = family;
Size = size;
Capacity = capacity;
Model = model;
}

/// <summary>
/// Gets or sets the Name.
/// </summary>
public string Name { get; set; }

/// <summary>
/// Gets or sets the model.
/// </summary>
public string Model { get; set; }

/// <summary>
/// Gets or sets the Tier.
/// </summary>
public string Tier { get; set; }

/// <summary>
/// Gets or sets the Family.
/// </summary>
public string Family { get; set; }

/// <summary>
/// Gets or sets the Size.
/// </summary>
public string Size { get; set; }

/// <summary>
/// Gets or sets the Capacity.
/// </summary>
public long? Capacity { get; set; }

/// <summary>
/// Compares this <see cref="Sku"/> with another instance.
/// </summary>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading