Skip to content
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
@@ -0,0 +1,46 @@
// <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>
/// Operations operations.
/// </summary>
public partial interface IOperations
{
/// <summary>
/// Lists all of the available 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<OperationListResult>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ public partial interface ISubscriptionClient : System.IDisposable
bool? GenerateClientRequestId { get; set; }


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

/// <summary>
/// Gets the ISubscriptionsOperations.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// <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>
/// REST API operation
/// </summary>
public partial class Operation
{
/// <summary>
/// Initializes a new instance of the Operation class.
/// </summary>
public Operation()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the Operation class.
/// </summary>
/// <param name="name">Operation name:
/// {provider}/{resource}/{operation}</param>
/// <param name="display">The object that represents the
/// operation.</param>
public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay))
{
Name = name;
Display = display;
CustomInit();
}

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

/// <summary>
/// Gets or sets operation name: {provider}/{resource}/{operation}
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }

/// <summary>
/// Gets or sets the object that represents the operation.
/// </summary>
[JsonProperty(PropertyName = "display")]
public OperationDisplay Display { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
// <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>
/// The object that represents the operation.
/// </summary>
public partial class OperationDisplay
{
/// <summary>
/// Initializes a new instance of the OperationDisplay class.
/// </summary>
public OperationDisplay()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the OperationDisplay class.
/// </summary>
/// <param name="provider">Service provider:
/// Microsoft.Subscription</param>
/// <param name="resource">Resource on which the operation is
/// performed: Profile, endpoint, etc.</param>
/// <param name="operation">Operation type: Read, write, delete,
/// etc.</param>
public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string))
{
Provider = provider;
Resource = resource;
Operation = operation;
CustomInit();
}

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

/// <summary>
/// Gets or sets service provider: Microsoft.Subscription
/// </summary>
[JsonProperty(PropertyName = "provider")]
public string Provider { get; set; }

/// <summary>
/// Gets or sets resource on which the operation is performed: Profile,
/// endpoint, etc.
/// </summary>
[JsonProperty(PropertyName = "resource")]
public string Resource { get; set; }

/// <summary>
/// Gets or sets operation type: Read, write, delete, etc.
/// </summary>
[JsonProperty(PropertyName = "operation")]
public string Operation { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
// <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.Collections;
using System.Collections.Generic;
using System.Linq;

/// <summary>
/// Result of the request to list operations. It contains a list of
/// operations and a URL link to get the next set of results.
/// </summary>
public partial class OperationListResult
{
/// <summary>
/// Initializes a new instance of the OperationListResult class.
/// </summary>
public OperationListResult()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the OperationListResult class.
/// </summary>
/// <param name="value">List of operations.</param>
/// <param name="nextLink">URL to get the next set of operation list
/// results if there are any.</param>
public OperationListResult(IList<Operation> value = default(IList<Operation>), string nextLink = default(string))
{
Value = value;
NextLink = nextLink;
CustomInit();
}

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

/// <summary>
/// Gets or sets list of operations.
/// </summary>
[JsonProperty(PropertyName = "value")]
public IList<Operation> Value { get; set; }

/// <summary>
/// Gets or sets URL to get the next set of operation list results if
/// there are any.
/// </summary>
[JsonProperty(PropertyName = "nextLink")]
public string NextLink { get; set; }

}
}
Loading