Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
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 @@ -40,11 +40,6 @@ public partial interface ISubscriptionClient : System.IDisposable
/// </summary>
ServiceClientCredentials Credentials { get; }

/// <summary>
/// Subscription Id.
/// </summary>
string SubscriptionId { get; set; }

/// <summary>
/// The preferred language for the response.
/// </summary>
Expand All @@ -65,14 +60,29 @@ public partial interface ISubscriptionClient : System.IDisposable


/// <summary>
/// Gets the IOperations.
/// Gets the ISubscriptionsOperations.
/// </summary>
IOperations Operations { get; }
ISubscriptionsOperations Subscriptions { get; }

/// <summary>
/// Gets the ISubscriptionsOperations.
/// Gets the ISubscriptionOperationOperations.
/// </summary>
ISubscriptionsOperations Subscriptions { get; }
ISubscriptionOperationOperations SubscriptionOperation { get; }

/// <summary>
/// Gets the ISubscriptionFactoryOperations.
/// </summary>
ISubscriptionFactoryOperations SubscriptionFactory { get; }

/// <summary>
/// Gets the ISubscriptionOperations.
/// </summary>
ISubscriptionOperations SubscriptionOperations { get; }

/// <summary>
/// Gets the IOperations.
/// </summary>
IOperations Operations { get; }

/// <summary>
/// Gets the ITenantsOperations.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
// <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
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// SubscriptionFactoryOperations operations.
/// </summary>
public partial interface ISubscriptionFactoryOperations
{
/// <summary>
/// The operation to create a new 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='invoiceSectionName'>
/// The name of the invoice section in the billing account for which
/// you want to create the subscription.
/// </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,SubscriptionFactoryCreateSubscriptionHeaders>> CreateSubscriptionWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, ModernSubscriptionCreationParameters body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates an Azure subscription
/// </summary>
/// <param name='enrollmentAccountName'>
/// The name of the enrollment account to which the subscription will
/// be billed.
/// </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,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
/// </summary>
/// <param name='billingAccountName'>
/// The name of the Microsoft Customer Agreement 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.
/// </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,SubscriptionFactoryCreateSubscriptionHeaders>> BeginCreateSubscriptionWithHttpMessagesAsync(string billingAccountName, string invoiceSectionName, ModernSubscriptionCreationParameters body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates an Azure subscription
/// </summary>
/// <param name='enrollmentAccountName'>
/// The name of the enrollment account to which the subscription will
/// be billed.
/// </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,SubscriptionFactoryCreateSubscriptionInEnrollmentAccountHeaders>> BeginCreateSubscriptionInEnrollmentAccountWithHttpMessagesAsync(string enrollmentAccountName, SubscriptionCreationParameters body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// <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
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// SubscriptionOperationOperations operations.
/// </summary>
public partial interface ISubscriptionOperationOperations
{
/// <summary>
/// Get the status of the pending Microsoft.Subscription API
/// operations.
/// </summary>
/// <param name='operationId'>
/// The operation ID, which can be found from the Location field in the
/// generate recommendation response header.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// 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,SubscriptionOperationGetHeaders>> GetWithHttpMessagesAsync(string operationId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// <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
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// SubscriptionOperations operations.
/// </summary>
public partial interface ISubscriptionOperations
{
/// <summary>
/// Lists all of the available pending Microsoft.Subscription API
/// operations.
/// </summary>
/// <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<SubscriptionOperationListResult>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ namespace Microsoft.Azure.Management.Subscription
public partial interface ISubscriptionsOperations
{
/// <summary>
/// Cancels the subscription
/// The operation to cancel a subscription
/// </summary>
/// <param name='subscriptionId'>
/// Subscription Id.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
Expand All @@ -41,10 +44,13 @@ public partial interface ISubscriptionsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<CanceledSubscriptionId>> CancelWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<CanceledSubscriptionId>> CancelWithHttpMessagesAsync(string subscriptionId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Renames the subscription
/// The operation to rename a subscription
/// </summary>
/// <param name='subscriptionId'>
/// Subscription Id.
/// </param>
/// <param name='body'>
/// Subscription Name
/// </param>
Expand All @@ -63,7 +69,29 @@ public partial interface ISubscriptionsOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<RenamedSubscriptionId>> RenameWithHttpMessagesAsync(SubscriptionName body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<RenamedSubscriptionId>> RenameWithHttpMessagesAsync(string subscriptionId, SubscriptionName body, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// The operation to enable a subscription
/// </summary>
/// <param name='subscriptionId'>
/// Subscription Id.
/// </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<EnabledSubscriptionId>> EnableWithHttpMessagesAsync(string subscriptionId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets all available geo-locations.
/// </summary>
Expand Down
Loading