Skip to content

Commit 00e9354

Browse files
author
REDMOND\v-ajnava
committed
Merge branch 'preview' of https://github.com/Azure/azure-powershell into Relaypwr2017
# Conflicts: # src/ResourceManager/Relay/Commands.Relay/Commands.Relay.csproj # src/ResourceManager/Relay/Commands.Relay/packages.config
2 parents c8d053c + 9ee1941 commit 00e9354

File tree

652 files changed

+49908
-13521
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

652 files changed

+49908
-13521
lines changed

AzurePowershell.Test.targets

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@
8484
<XUnitTests Include=".\src\ResourceManager\DataLakeStore\Commands.DataLakeStore.Test\bin\Debug\Microsoft.Azure.Commands.DataLake.Test.dll"/>
8585
<!-- <XUnitTests Include=".\src\ResourceManager\DevTestLabs\Commands.DevTestLabs.Test\bin\Debug\Microsoft.Azure.Commands.DevTestLabs.Test.dll"/> -->
8686
<XUnitTests Include=".\src\ResourceManager\Dns\Commands.Dns.Test\bin\Debug\Microsoft.Azure.Commands.Dns.Test.dll"/>
87+
<XUnitTests Include=".\src\ResourceManager\EventHub\Commands.EventHub.Test\bin\Debug\Microsoft.Azure.Commands.EventHubs.Test.dll"/>
8788
<XUnitTests Include=".\src\ResourceManager\HDInsight\Commands.HDInsight.Test\bin\Debug\Commands.HDInsight.Test.dll"/>
8889
<XUnitTests Include=".\src\ResourceManager\Insights\Commands.Insights.Test\bin\Debug\Microsoft.Azure.Commands.Insights.Test.dll"/>
8990
<XUnitTests Include=".\src\ResourceManager\IotHub\Commands.IotHub.Test\bin\Debug\Microsoft.Azure.Commands.IotHub.Test.dll"/>
9091
<XUnitTests Include=".\src\ResourceManager\KeyVault\Commands.KeyVault.Test\bin\Debug\Microsoft.Azure.Commands.KeyVault.Test.dll"/>
91-
<XUnitTests Include=".\src\ResourceManager\ServiceFabric\Commands.ServiceFabric.Test\bin\Debug\Microsoft.Azure.Commands.ServiceFabric.Test.dll"/>
9292
<XUnitTests Include=".\src\ResourceManager\LogicApp\Commands.LogicApp.Test\bin\Debug\Microsoft.Azure.Commands.LogicApp.Test.dll"/>
9393
<!-- <XUnitTests Include=".\src\ResourceManager\MachineLearning\Commands.MachineLearning.Test\bin\Debug\Microsoft.Azure.Commands.MachineLearning.Test.dll"/> -->
9494
<!-- <XUnitTests Include=".\src\ResourceManager\Media\Commands.Media.Test\bin\Debug\Microsoft.Azure.Commands.Media.Test.dll"/> -->
@@ -103,7 +103,8 @@
103103
<XUnitTests Include=".\src\ResourceManager\Resources\Commands.Resources.Test\bin\Debug\Microsoft.Azure.Commands.Resources.Test.dll"/>
104104
<XUnitTests Include=".\src\ResourceManager\Scheduler\Commands.Scheduler.Test\bin\Debug\Microsoft.Azure.Commands.Scheduler.Test.dll"/>
105105
<!-- <XUnitTests Include=".\src\ResourceManager\ServerManagement\Commands.ServerManagement.Test\bin\Debug\Microsoft.Azure.Commands.ServerManagement.Test.dll"/> -->
106-
<!-- <XUnitTests Include=".\src\ResourceManager\ServiceFabric\Commands.ServiceFabric.Test\bin\Debug\Microsoft.Azure.Commands.ServiceFabric.Test.dll"/> -->
106+
<XUnitTests Include=".\src\ResourceManager\ServiceBus\Commands.ServiceBus.Test\bin\Debug\Microsoft.Azure.Commands.ServiceBus.Test.dll"/>
107+
<XUnitTests Include=".\src\ResourceManager\ServiceFabric\Commands.ServiceFabric.Test\bin\Debug\Microsoft.Azure.Commands.ServiceFabric.Test.dll"/>
107108
<XUnitTests Include=".\src\ResourceManager\SiteRecovery\Commands.SiteRecovery.Test\bin\Debug\Microsoft.Azure.Commands.SiteRecovery.Test.dll"/>
108109
<XUnitTests Include=".\src\ResourceManager\Sql\Commands.Sql.Test\bin\Debug\Microsoft.Azure.Commands.Sql.Test.dll"/>
109110
<XUnitTests Include=".\src\ResourceManager\Storage\Commands.Management.Storage.Test\bin\Debug\Microsoft.Azure.Commands.Management.Storage.Test.dll"/>
@@ -112,8 +113,6 @@
112113
<XUnitTests Include=".\src\ResourceManager\UsageAggregates\Commands.UsageAggregates.Test\bin\Debug\Microsoft.Azure.Commands.UsageAggregates.Test.dll"/>
113114
<XUnitTests Include=".\src\ResourceManager\Websites\Commands.Websites.Test\bin\Debug\Microsoft.Azure.Commands.Websites.Test.dll"/>
114115
<XUnitTests Include=".\src\Common\Commands.Common.Authentication.Test\bin\Debug\Microsoft.Azure.Commands.Common.Authentication.Test.dll"/>
115-
<XUnitTests Include=".\src\ResourceManager\ServiceBus\Commands.ServiceBus.Test\bin\Debug\Microsoft.Azure.Commands.ServiceBus.Test.dll"/>
116-
<XUnitTests Include=".\src\ResourceManager\EventHub\Commands.EventHub.Test\bin\Debug\Microsoft.Azure.Commands.EventHubs.Test.dll"/>
117116
<XUnitTests Include=".\src\ResourceManager\Relay\Commands.Relay.Test\bin\Debug\Microsoft.Azure.Commands.Relay.Test.dll"/>
118117
<XUnitTests Include="@(AsmXUnitTests)"/>
119118
</ItemGroup>

setup/azurecmdfiles.wxi

Lines changed: 485 additions & 865 deletions
Large diffs are not rendered by default.
Lines changed: 347 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,347 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for
3+
// license information.
4+
//
5+
// Code generated by Microsoft (R) AutoRest Code Generator 1.2.1.0
6+
// Changes may cause incorrect behavior and will be lost if the code is
7+
// regenerated.
8+
9+
namespace Microsoft.Azure.Management.Authorization.Version2015_07_01
10+
{
11+
using Microsoft.Azure;
12+
using Microsoft.Azure.Management;
13+
using Microsoft.Azure.Management.Authorization;
14+
using Microsoft.Rest;
15+
using Microsoft.Rest.Azure;
16+
using Microsoft.Rest.Serialization;
17+
using Models;
18+
using Newtonsoft.Json;
19+
using System.Collections;
20+
using System.Collections.Generic;
21+
using System.Linq;
22+
using System.Net;
23+
using System.Net.Http;
24+
25+
/// <summary>
26+
/// Role based access control provides you a way to apply granular level
27+
/// policy administration down to individual resources or resource groups.
28+
/// These operations enable you to manage role definitions and role
29+
/// assignments. A role definition describes the set of actions that can be
30+
/// performed on resources. A role assignment grants access to Azure Active
31+
/// Directory users.
32+
/// </summary>
33+
public partial class AuthorizationManagementClient : ServiceClient<AuthorizationManagementClient>, IAuthorizationManagementClient, IAzureClient
34+
{
35+
/// <summary>
36+
/// The base URI of the service.
37+
/// </summary>
38+
public System.Uri BaseUri { get; set; }
39+
40+
/// <summary>
41+
/// Gets or sets json serialization settings.
42+
/// </summary>
43+
public JsonSerializerSettings SerializationSettings { get; private set; }
44+
45+
/// <summary>
46+
/// Gets or sets json deserialization settings.
47+
/// </summary>
48+
public JsonSerializerSettings DeserializationSettings { get; private set; }
49+
50+
/// <summary>
51+
/// Credentials needed for the client to connect to Azure.
52+
/// </summary>
53+
public ServiceClientCredentials Credentials { get; private set; }
54+
55+
/// <summary>
56+
/// The ID of the target subscription.
57+
/// </summary>
58+
public string SubscriptionId { get; set; }
59+
60+
/// <summary>
61+
/// The API version to use for this operation.
62+
/// </summary>
63+
public string ApiVersion { get; private set; }
64+
65+
/// <summary>
66+
/// Gets or sets the preferred language for the response.
67+
/// </summary>
68+
public string AcceptLanguage { get; set; }
69+
70+
/// <summary>
71+
/// Gets or sets the retry timeout in seconds for Long Running Operations.
72+
/// Default value is 30.
73+
/// </summary>
74+
public int? LongRunningOperationRetryTimeout { get; set; }
75+
76+
/// <summary>
77+
/// When set to true a unique x-ms-client-request-id value is generated and
78+
/// included in each request. Default is true.
79+
/// </summary>
80+
public bool? GenerateClientRequestId { get; set; }
81+
82+
/// <summary>
83+
/// Gets the IClassicAdministratorsOperations.
84+
/// </summary>
85+
public virtual IClassicAdministratorsOperations ClassicAdministrators { get; private set; }
86+
87+
/// <summary>
88+
/// Gets the IPermissionsOperations.
89+
/// </summary>
90+
public virtual IPermissionsOperations Permissions { get; private set; }
91+
92+
/// <summary>
93+
/// Gets the IProviderOperationsMetadataOperations.
94+
/// </summary>
95+
public virtual IProviderOperationsMetadataOperations ProviderOperationsMetadata { get; private set; }
96+
97+
/// <summary>
98+
/// Gets the IRoleAssignmentsOperations.
99+
/// </summary>
100+
public virtual IRoleAssignmentsOperations RoleAssignments { get; private set; }
101+
102+
/// <summary>
103+
/// Gets the IRoleDefinitionsOperations.
104+
/// </summary>
105+
public virtual IRoleDefinitionsOperations RoleDefinitions { get; private set; }
106+
107+
/// <summary>
108+
/// Initializes a new instance of the AuthorizationManagementClient class.
109+
/// </summary>
110+
/// <param name='handlers'>
111+
/// Optional. The delegating handlers to add to the http client pipeline.
112+
/// </param>
113+
protected AuthorizationManagementClient(params DelegatingHandler[] handlers) : base(handlers)
114+
{
115+
Initialize();
116+
}
117+
118+
/// <summary>
119+
/// Initializes a new instance of the AuthorizationManagementClient class.
120+
/// </summary>
121+
/// <param name='rootHandler'>
122+
/// Optional. The http client handler used to handle http transport.
123+
/// </param>
124+
/// <param name='handlers'>
125+
/// Optional. The delegating handlers to add to the http client pipeline.
126+
/// </param>
127+
protected AuthorizationManagementClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers)
128+
{
129+
Initialize();
130+
}
131+
132+
/// <summary>
133+
/// Initializes a new instance of the AuthorizationManagementClient class.
134+
/// </summary>
135+
/// <param name='baseUri'>
136+
/// Optional. The base URI of the service.
137+
/// </param>
138+
/// <param name='handlers'>
139+
/// Optional. The delegating handlers to add to the http client pipeline.
140+
/// </param>
141+
/// <exception cref="System.ArgumentNullException">
142+
/// Thrown when a required parameter is null
143+
/// </exception>
144+
protected AuthorizationManagementClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers)
145+
{
146+
if (baseUri == null)
147+
{
148+
throw new System.ArgumentNullException("baseUri");
149+
}
150+
BaseUri = baseUri;
151+
}
152+
153+
/// <summary>
154+
/// Initializes a new instance of the AuthorizationManagementClient class.
155+
/// </summary>
156+
/// <param name='baseUri'>
157+
/// Optional. The base URI of the service.
158+
/// </param>
159+
/// <param name='rootHandler'>
160+
/// Optional. The http client handler used to handle http transport.
161+
/// </param>
162+
/// <param name='handlers'>
163+
/// Optional. The delegating handlers to add to the http client pipeline.
164+
/// </param>
165+
/// <exception cref="System.ArgumentNullException">
166+
/// Thrown when a required parameter is null
167+
/// </exception>
168+
protected AuthorizationManagementClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers)
169+
{
170+
if (baseUri == null)
171+
{
172+
throw new System.ArgumentNullException("baseUri");
173+
}
174+
BaseUri = baseUri;
175+
}
176+
177+
/// <summary>
178+
/// Initializes a new instance of the AuthorizationManagementClient class.
179+
/// </summary>
180+
/// <param name='credentials'>
181+
/// Required. Credentials needed for the client to connect to Azure.
182+
/// </param>
183+
/// <param name='handlers'>
184+
/// Optional. The delegating handlers to add to the http client pipeline.
185+
/// </param>
186+
/// <exception cref="System.ArgumentNullException">
187+
/// Thrown when a required parameter is null
188+
/// </exception>
189+
public AuthorizationManagementClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers)
190+
{
191+
if (credentials == null)
192+
{
193+
throw new System.ArgumentNullException("credentials");
194+
}
195+
Credentials = credentials;
196+
if (Credentials != null)
197+
{
198+
Credentials.InitializeServiceClient(this);
199+
}
200+
}
201+
202+
/// <summary>
203+
/// Initializes a new instance of the AuthorizationManagementClient class.
204+
/// </summary>
205+
/// <param name='credentials'>
206+
/// Required. Credentials needed for the client to connect to Azure.
207+
/// </param>
208+
/// <param name='rootHandler'>
209+
/// Optional. The http client handler used to handle http transport.
210+
/// </param>
211+
/// <param name='handlers'>
212+
/// Optional. The delegating handlers to add to the http client pipeline.
213+
/// </param>
214+
/// <exception cref="System.ArgumentNullException">
215+
/// Thrown when a required parameter is null
216+
/// </exception>
217+
public AuthorizationManagementClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers)
218+
{
219+
if (credentials == null)
220+
{
221+
throw new System.ArgumentNullException("credentials");
222+
}
223+
Credentials = credentials;
224+
if (Credentials != null)
225+
{
226+
Credentials.InitializeServiceClient(this);
227+
}
228+
}
229+
230+
/// <summary>
231+
/// Initializes a new instance of the AuthorizationManagementClient class.
232+
/// </summary>
233+
/// <param name='baseUri'>
234+
/// Optional. The base URI of the service.
235+
/// </param>
236+
/// <param name='credentials'>
237+
/// Required. Credentials needed for the client to connect to Azure.
238+
/// </param>
239+
/// <param name='handlers'>
240+
/// Optional. The delegating handlers to add to the http client pipeline.
241+
/// </param>
242+
/// <exception cref="System.ArgumentNullException">
243+
/// Thrown when a required parameter is null
244+
/// </exception>
245+
public AuthorizationManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers)
246+
{
247+
if (baseUri == null)
248+
{
249+
throw new System.ArgumentNullException("baseUri");
250+
}
251+
if (credentials == null)
252+
{
253+
throw new System.ArgumentNullException("credentials");
254+
}
255+
BaseUri = baseUri;
256+
Credentials = credentials;
257+
if (Credentials != null)
258+
{
259+
Credentials.InitializeServiceClient(this);
260+
}
261+
}
262+
263+
/// <summary>
264+
/// Initializes a new instance of the AuthorizationManagementClient class.
265+
/// </summary>
266+
/// <param name='baseUri'>
267+
/// Optional. The base URI of the service.
268+
/// </param>
269+
/// <param name='credentials'>
270+
/// Required. Credentials needed for the client to connect to Azure.
271+
/// </param>
272+
/// <param name='rootHandler'>
273+
/// Optional. The http client handler used to handle http transport.
274+
/// </param>
275+
/// <param name='handlers'>
276+
/// Optional. The delegating handlers to add to the http client pipeline.
277+
/// </param>
278+
/// <exception cref="System.ArgumentNullException">
279+
/// Thrown when a required parameter is null
280+
/// </exception>
281+
public AuthorizationManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers)
282+
{
283+
if (baseUri == null)
284+
{
285+
throw new System.ArgumentNullException("baseUri");
286+
}
287+
if (credentials == null)
288+
{
289+
throw new System.ArgumentNullException("credentials");
290+
}
291+
BaseUri = baseUri;
292+
Credentials = credentials;
293+
if (Credentials != null)
294+
{
295+
Credentials.InitializeServiceClient(this);
296+
}
297+
}
298+
299+
/// <summary>
300+
/// An optional partial-method to perform custom initialization.
301+
/// </summary>
302+
partial void CustomInitialize();
303+
/// <summary>
304+
/// Initializes client properties.
305+
/// </summary>
306+
private void Initialize()
307+
{
308+
ClassicAdministrators = new ClassicAdministratorsOperations(this);
309+
Permissions = new PermissionsOperations(this);
310+
ProviderOperationsMetadata = new ProviderOperationsMetadataOperations(this);
311+
RoleAssignments = new RoleAssignmentsOperations(this);
312+
RoleDefinitions = new RoleDefinitionsOperations(this);
313+
BaseUri = new System.Uri("https://management.azure.com");
314+
ApiVersion = "2015-07-01";
315+
AcceptLanguage = "en-US";
316+
LongRunningOperationRetryTimeout = 30;
317+
GenerateClientRequestId = true;
318+
SerializationSettings = new JsonSerializerSettings
319+
{
320+
Formatting = Newtonsoft.Json.Formatting.Indented,
321+
DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
322+
DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc,
323+
NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
324+
ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
325+
ContractResolver = new ReadOnlyJsonContractResolver(),
326+
Converters = new List<JsonConverter>
327+
{
328+
new Iso8601TimeSpanConverter()
329+
}
330+
};
331+
DeserializationSettings = new JsonSerializerSettings
332+
{
333+
DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
334+
DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc,
335+
NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
336+
ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
337+
ContractResolver = new ReadOnlyJsonContractResolver(),
338+
Converters = new List<JsonConverter>
339+
{
340+
new Iso8601TimeSpanConverter()
341+
}
342+
};
343+
CustomInitialize();
344+
DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
345+
}
346+
}
347+
}

0 commit comments

Comments
 (0)