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 Microsoft.Azure.Management.Subscription] Removing Incorrect parameters #391

Closed
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 @@ -24,12 +24,16 @@ namespace Microsoft.Azure.Management.Subscription
public partial interface ISubscriptionFactoryOperations
{
/// <summary>
/// The operation to create a new Azure subscription
/// The operation to create a new WebDirect or EA Azure subscription.
/// </summary>
/// <param name='billingAccountName'>
/// The name of the Microsoft Customer Agreement billing account for
/// which you want to create the subscription.
/// </param>
/// <param name='billingProfileName'>
/// The name of the billing profile in the billing account for which
/// you want to create the subscription.
/// </param>
/// <param name='invoiceSectionName'>
/// The name of the invoice section in the billing account for which
/// you want to create the subscription.
Expand All @@ -52,7 +56,36 @@ public partial interface ISubscriptionFactoryOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<SubscriptionCreationResult,SubscriptionFactoryCreateSubscriptionHeaders>> CreateSubscriptionWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, ModernSubscriptionCreationParameters body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<SubscriptionCreationResult,SubscriptionFactoryCreateSubscriptionHeaders>> CreateSubscriptionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, ModernSubscriptionCreationParameters body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// The operation to create a new CSP subscription.
/// </summary>
/// <param name='billingAccountName'>
/// The name of the Microsoft Customer Agreement billing account for
/// which you want to create the subscription.
/// </param>
/// <param name='customerName'>
/// The name of the customer.
/// </param>
/// <param name='body'>
/// The subscription creation parameters.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<SubscriptionCreationResult,SubscriptionFactoryCreateCspSubscriptionHeaders>> CreateCspSubscriptionWithHttpMessagesAsync(string billingAccountName, string customerName, ModernCspSubscriptionCreationParameters body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates an Azure subscription
/// </summary>
Expand Down Expand Up @@ -80,12 +113,16 @@ public partial interface ISubscriptionFactoryOperations
/// </exception>
Task<AzureOperationResponse<SubscriptionCreationResult,SubscriptionFactoryCreateSubscriptionInEnrollmentAccountHeaders>> CreateSubscriptionInEnrollmentAccountWithHttpMessagesAsync(string enrollmentAccountName, SubscriptionCreationParameters body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// The operation to create a new Azure subscription
/// The operation to create a new WebDirect or EA Azure subscription.
/// </summary>
/// <param name='billingAccountName'>
/// The name of the Microsoft Customer Agreement billing account for
/// which you want to create the subscription.
/// </param>
/// <param name='billingProfileName'>
/// The name of the billing profile in the billing account for which
/// you want to create the subscription.
/// </param>
/// <param name='invoiceSectionName'>
/// The name of the invoice section in the billing account for which
/// you want to create the subscription.
Expand All @@ -108,7 +145,36 @@ public partial interface ISubscriptionFactoryOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<SubscriptionCreationResult,SubscriptionFactoryCreateSubscriptionHeaders>> BeginCreateSubscriptionWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, ModernSubscriptionCreationParameters body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<SubscriptionCreationResult,SubscriptionFactoryCreateSubscriptionHeaders>> BeginCreateSubscriptionWithHttpMessagesAsync(string billingAccountName, string billingProfileName, string invoiceSectionName, ModernSubscriptionCreationParameters body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// The operation to create a new CSP subscription.
/// </summary>
/// <param name='billingAccountName'>
/// The name of the Microsoft Customer Agreement billing account for
/// which you want to create the subscription.
/// </param>
/// <param name='customerName'>
/// The name of the customer.
/// </param>
/// <param name='body'>
/// The subscription creation parameters.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<SubscriptionCreationResult,SubscriptionFactoryCreateCspSubscriptionHeaders>> BeginCreateCspSubscriptionWithHttpMessagesAsync(string billingAccountName, string customerName, ModernCspSubscriptionCreationParameters body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates an Azure subscription
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
// <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.Subscription.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// The parameters required to create a new CSP subscription.
/// </summary>
public partial class ModernCspSubscriptionCreationParameters
{
/// <summary>
/// Initializes a new instance of the
/// ModernCspSubscriptionCreationParameters class.
/// </summary>
public ModernCspSubscriptionCreationParameters()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the
/// ModernCspSubscriptionCreationParameters class.
/// </summary>
/// <param name="displayName">The friendly name of the
/// subscription.</param>
/// <param name="skuId">The SKU ID of the Azure plan. Azure plan
/// determines the pricing and service-level agreement of the
/// subscription. Use 001 for Microsoft Azure Plan and 002 for
/// Microsoft Azure Plan for DevTest.</param>
/// <param name="resellerId">Reseller ID, basically MPN Id.</param>
/// <param name="serviceProviderId">Service provider ID, basically MPN
/// Id.</param>
public ModernCspSubscriptionCreationParameters(string displayName, string skuId, string resellerId = default(string), string serviceProviderId = default(string))
{
DisplayName = displayName;
SkuId = skuId;
ResellerId = resellerId;
ServiceProviderId = serviceProviderId;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets the friendly name of the subscription.
/// </summary>
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }

/// <summary>
/// Gets or sets the SKU ID of the Azure plan. Azure plan determines
/// the pricing and service-level agreement of the subscription. Use
/// 001 for Microsoft Azure Plan and 002 for Microsoft Azure Plan for
/// DevTest.
/// </summary>
[JsonProperty(PropertyName = "skuId")]
public string SkuId { get; set; }

/// <summary>
/// Gets or sets reseller ID, basically MPN Id.
/// </summary>
[JsonProperty(PropertyName = "resellerId")]
public string ResellerId { get; set; }

/// <summary>
/// Gets or sets service provider ID, basically MPN Id.
/// </summary>
[JsonProperty(PropertyName = "serviceProviderId")]
public string ServiceProviderId { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (DisplayName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "DisplayName");
}
if (SkuId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "SkuId");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// <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.Subscription.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Defines headers for CreateCspSubscription operation.
/// </summary>
public partial class SubscriptionFactoryCreateCspSubscriptionHeaders
{
/// <summary>
/// Initializes a new instance of the
/// SubscriptionFactoryCreateCspSubscriptionHeaders class.
/// </summary>
public SubscriptionFactoryCreateCspSubscriptionHeaders()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the
/// SubscriptionFactoryCreateCspSubscriptionHeaders class.
/// </summary>
/// <param name="location">GET this URL to retrieve the status of the
/// asynchronous operation.</param>
/// <param name="retryAfter">The amount of delay to use while the
/// status of the operation is checked. The value is expressed in
/// seconds.</param>
public SubscriptionFactoryCreateCspSubscriptionHeaders(string location = default(string), int? retryAfter = default(int?))
{
Location = location;
RetryAfter = retryAfter;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets GET this URL to retrieve the status of the
/// asynchronous operation.
/// </summary>
[JsonProperty(PropertyName = "Location")]
public string Location { get; set; }

/// <summary>
/// Gets or sets the amount of delay to use while the status of the
/// operation is checked. The value is expressed in seconds.
/// </summary>
[JsonProperty(PropertyName = "Retry-After")]
public int? RetryAfter { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,5 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_SubscriptionCli
}.AsEnumerable();
}
}
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "latest";
public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/subscription/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\github2\\sdk";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "ae48ce6edc05501e9b78d93d6e36862599cdedb5";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
}
}

Loading