Skip to content

Commit 0965bc4

Browse files
authored
Merge pull request #146 from Azure/update-subscriptions-client
Add new version of Subscriptions client to ARM common code
2 parents edd2e56 + 47ff915 commit 0965bc4

21 files changed

+3342
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Internal.Subscriptions.Version2018_06_01
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Threading;
19+
using System.Threading.Tasks;
20+
21+
/// <summary>
22+
/// Operations operations.
23+
/// </summary>
24+
public partial interface IOperations
25+
{
26+
/// <summary>
27+
/// Lists all of the available Microsoft.Resources REST API operations.
28+
/// </summary>
29+
/// <param name='customHeaders'>
30+
/// The headers that will be added to request.
31+
/// </param>
32+
/// <param name='cancellationToken'>
33+
/// The cancellation token.
34+
/// </param>
35+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
36+
/// Thrown when the operation returned an invalid status code
37+
/// </exception>
38+
/// <exception cref="Microsoft.Rest.SerializationException">
39+
/// Thrown when unable to deserialize the response
40+
/// </exception>
41+
/// <exception cref="Microsoft.Rest.ValidationException">
42+
/// Thrown when a required parameter is null
43+
/// </exception>
44+
Task<AzureOperationResponse<IPage<Operation>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
45+
/// <summary>
46+
/// Lists all of the available Microsoft.Resources REST API operations.
47+
/// </summary>
48+
/// <param name='nextPageLink'>
49+
/// The NextLink from the previous successful call to List operation.
50+
/// </param>
51+
/// <param name='customHeaders'>
52+
/// The headers that will be added to request.
53+
/// </param>
54+
/// <param name='cancellationToken'>
55+
/// The cancellation token.
56+
/// </param>
57+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
58+
/// Thrown when the operation returned an invalid status code
59+
/// </exception>
60+
/// <exception cref="Microsoft.Rest.SerializationException">
61+
/// Thrown when unable to deserialize the response
62+
/// </exception>
63+
/// <exception cref="Microsoft.Rest.ValidationException">
64+
/// Thrown when a required parameter is null
65+
/// </exception>
66+
Task<AzureOperationResponse<IPage<Operation>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
67+
}
68+
}
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Internal.Subscriptions.Version2018_06_01
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using Newtonsoft.Json;
17+
18+
/// <summary>
19+
/// All resource groups and resources exist within subscriptions. These
20+
/// operation enable you get information about your subscriptions and
21+
/// tenants. A tenant is a dedicated instance of Azure Active Directory
22+
/// (Azure AD) for your organization.
23+
/// </summary>
24+
public partial interface ISubscriptionClient : System.IDisposable
25+
{
26+
/// <summary>
27+
/// The base URI of the service.
28+
/// </summary>
29+
System.Uri BaseUri { get; set; }
30+
31+
/// <summary>
32+
/// Gets or sets json serialization settings.
33+
/// </summary>
34+
JsonSerializerSettings SerializationSettings { get; }
35+
36+
/// <summary>
37+
/// Gets or sets json deserialization settings.
38+
/// </summary>
39+
JsonSerializerSettings DeserializationSettings { get; }
40+
41+
/// <summary>
42+
/// Credentials needed for the client to connect to Azure.
43+
/// </summary>
44+
ServiceClientCredentials Credentials { get; }
45+
46+
/// <summary>
47+
/// The API version to use for the operation.
48+
/// </summary>
49+
string ApiVersion { get; }
50+
51+
/// <summary>
52+
/// The preferred language for the response.
53+
/// </summary>
54+
string AcceptLanguage { get; set; }
55+
56+
/// <summary>
57+
/// The retry timeout in seconds for Long Running Operations. Default
58+
/// value is 30.
59+
/// </summary>
60+
int? LongRunningOperationRetryTimeout { get; set; }
61+
62+
/// <summary>
63+
/// Whether a unique x-ms-client-request-id should be generated. When
64+
/// set to true a unique x-ms-client-request-id value is generated and
65+
/// included in each request. Default is true.
66+
/// </summary>
67+
bool? GenerateClientRequestId { get; set; }
68+
69+
70+
/// <summary>
71+
/// Gets the IOperations.
72+
/// </summary>
73+
IOperations Operations { get; }
74+
75+
/// <summary>
76+
/// Gets the ISubscriptionsOperations.
77+
/// </summary>
78+
ISubscriptionsOperations Subscriptions { get; }
79+
80+
/// <summary>
81+
/// Gets the ITenantsOperations.
82+
/// </summary>
83+
ITenantsOperations Tenants { get; }
84+
85+
}
86+
}
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Internal.Subscriptions.Version2018_06_01
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Threading;
19+
using System.Threading.Tasks;
20+
21+
/// <summary>
22+
/// SubscriptionsOperations operations.
23+
/// </summary>
24+
public partial interface ISubscriptionsOperations
25+
{
26+
/// <summary>
27+
/// Gets all available geo-locations.
28+
/// </summary>
29+
/// <remarks>
30+
/// This operation provides all the locations that are available for
31+
/// resource providers; however, each resource provider may support a
32+
/// subset of this list.
33+
/// </remarks>
34+
/// <param name='subscriptionId'>
35+
/// The ID of the target subscription.
36+
/// </param>
37+
/// <param name='customHeaders'>
38+
/// The headers that will be added to request.
39+
/// </param>
40+
/// <param name='cancellationToken'>
41+
/// The cancellation token.
42+
/// </param>
43+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
44+
/// Thrown when the operation returned an invalid status code
45+
/// </exception>
46+
/// <exception cref="Microsoft.Rest.SerializationException">
47+
/// Thrown when unable to deserialize the response
48+
/// </exception>
49+
/// <exception cref="Microsoft.Rest.ValidationException">
50+
/// Thrown when a required parameter is null
51+
/// </exception>
52+
Task<AzureOperationResponse<IEnumerable<Location>>> ListLocationsWithHttpMessagesAsync(string subscriptionId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
53+
/// <summary>
54+
/// Gets details about a specified subscription.
55+
/// </summary>
56+
/// <param name='subscriptionId'>
57+
/// The ID of the target subscription.
58+
/// </param>
59+
/// <param name='customHeaders'>
60+
/// The headers that will be added to request.
61+
/// </param>
62+
/// <param name='cancellationToken'>
63+
/// The cancellation token.
64+
/// </param>
65+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
66+
/// Thrown when the operation returned an invalid status code
67+
/// </exception>
68+
/// <exception cref="Microsoft.Rest.SerializationException">
69+
/// Thrown when unable to deserialize the response
70+
/// </exception>
71+
/// <exception cref="Microsoft.Rest.ValidationException">
72+
/// Thrown when a required parameter is null
73+
/// </exception>
74+
Task<AzureOperationResponse<Subscription>> GetWithHttpMessagesAsync(string subscriptionId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
75+
/// <summary>
76+
/// Gets all subscriptions for a tenant.
77+
/// </summary>
78+
/// <param name='customHeaders'>
79+
/// The headers that will be added to request.
80+
/// </param>
81+
/// <param name='cancellationToken'>
82+
/// The cancellation token.
83+
/// </param>
84+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
85+
/// Thrown when the operation returned an invalid status code
86+
/// </exception>
87+
/// <exception cref="Microsoft.Rest.SerializationException">
88+
/// Thrown when unable to deserialize the response
89+
/// </exception>
90+
/// <exception cref="Microsoft.Rest.ValidationException">
91+
/// Thrown when a required parameter is null
92+
/// </exception>
93+
Task<AzureOperationResponse<IPage<Subscription>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
94+
/// <summary>
95+
/// Gets all subscriptions for a tenant.
96+
/// </summary>
97+
/// <param name='nextPageLink'>
98+
/// The NextLink from the previous successful call to List operation.
99+
/// </param>
100+
/// <param name='customHeaders'>
101+
/// The headers that will be added to request.
102+
/// </param>
103+
/// <param name='cancellationToken'>
104+
/// The cancellation token.
105+
/// </param>
106+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
107+
/// Thrown when the operation returned an invalid status code
108+
/// </exception>
109+
/// <exception cref="Microsoft.Rest.SerializationException">
110+
/// Thrown when unable to deserialize the response
111+
/// </exception>
112+
/// <exception cref="Microsoft.Rest.ValidationException">
113+
/// Thrown when a required parameter is null
114+
/// </exception>
115+
Task<AzureOperationResponse<IPage<Subscription>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
116+
}
117+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.Internal.Subscriptions.Version2018_06_01
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Threading;
19+
using System.Threading.Tasks;
20+
21+
/// <summary>
22+
/// TenantsOperations operations.
23+
/// </summary>
24+
public partial interface ITenantsOperations
25+
{
26+
/// <summary>
27+
/// Gets the tenants for your account.
28+
/// </summary>
29+
/// <param name='customHeaders'>
30+
/// The headers that will be added to request.
31+
/// </param>
32+
/// <param name='cancellationToken'>
33+
/// The cancellation token.
34+
/// </param>
35+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
36+
/// Thrown when the operation returned an invalid status code
37+
/// </exception>
38+
/// <exception cref="Microsoft.Rest.SerializationException">
39+
/// Thrown when unable to deserialize the response
40+
/// </exception>
41+
/// <exception cref="Microsoft.Rest.ValidationException">
42+
/// Thrown when a required parameter is null
43+
/// </exception>
44+
Task<AzureOperationResponse<IPage<TenantIdDescription>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
45+
/// <summary>
46+
/// Gets the tenants for your account.
47+
/// </summary>
48+
/// <param name='nextPageLink'>
49+
/// The NextLink from the previous successful call to List operation.
50+
/// </param>
51+
/// <param name='customHeaders'>
52+
/// The headers that will be added to request.
53+
/// </param>
54+
/// <param name='cancellationToken'>
55+
/// The cancellation token.
56+
/// </param>
57+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
58+
/// Thrown when the operation returned an invalid status code
59+
/// </exception>
60+
/// <exception cref="Microsoft.Rest.SerializationException">
61+
/// Thrown when unable to deserialize the response
62+
/// </exception>
63+
/// <exception cref="Microsoft.Rest.ValidationException">
64+
/// Thrown when a required parameter is null
65+
/// </exception>
66+
Task<AzureOperationResponse<IPage<TenantIdDescription>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
67+
}
68+
}

0 commit comments

Comments
 (0)