Skip to content

Commit 0b89984

Browse files
authored
[AnalysisService] Remove Microsoft.Azure.Management.Analysis and add AnalysisService.Management.Sdk (#26193)
* AnalysisService generated by autores powershell * change log and psd1 * recording json and change admin account * Update ChangeLog.md
1 parent 9df67d9 commit 0b89984

File tree

53 files changed

+16446
-4637
lines changed

Some content is hidden

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

53 files changed

+16446
-4637
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<PsModuleName>AnalysisService</PsModuleName>
4+
</PropertyGroup>
5+
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.props" />
6+
<PropertyGroup>
7+
<TargetFramework>netstandard2.0</TargetFramework>
8+
<AssemblyName>Microsoft.Azure.PowerShell.AnalysisService.Management.Sdk</AssemblyName>
9+
<RootNamespace>Microsoft.Azure.Management.AnalysisService</RootNamespace>
10+
<NoWarn>$(NoWarn);CS0108;CS1573</NoWarn>
11+
</PropertyGroup>
12+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />
13+
</Project>
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 license information.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
5+
6+
namespace Microsoft.Azure.Management.Analysis
7+
{
8+
using System.Linq;
9+
using Microsoft.Rest;
10+
using Microsoft.Rest.Azure;
11+
using Models;
12+
13+
/// <summary>
14+
/// The Azure Analysis Services Web API provides a RESTful set of web services
15+
/// that enables users to create, retrieve, update, and delete Analysis
16+
/// Services servers
17+
/// </summary>
18+
public partial class AnalysisServicesManagementClient : Microsoft.Rest.ServiceClient<AnalysisServicesManagementClient>, IAnalysisServicesManagementClient, IAzureClient
19+
{
20+
/// <summary>
21+
/// The base URI of the service.
22+
/// </summary>
23+
public System.Uri BaseUri { get; set; }
24+
/// <summary>
25+
/// Gets or sets json serialization settings.
26+
/// </summary>
27+
public Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; private set; }
28+
/// <summary>
29+
/// Gets or sets json deserialization settings.
30+
/// </summary>
31+
public Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; private set; }
32+
/// <summary>
33+
/// Credentials needed for the client to connect to Azure.
34+
/// </summary>
35+
public Microsoft.Rest.ServiceClientCredentials Credentials { get; private set; }
36+
37+
/// <summary>
38+
/// The API version to use for this operation.
39+
/// </summary>
40+
public string ApiVersion { get; private set; }
41+
42+
/// <summary>
43+
/// A unique identifier for a Microsoft Azure subscription. The subscription ID
44+
/// forms part of the URI for every service call.
45+
/// </summary>
46+
public string SubscriptionId { get; set;}
47+
48+
/// <summary>
49+
/// The preferred language for the response.
50+
/// </summary>
51+
public string AcceptLanguage { get; set;}
52+
53+
/// <summary>
54+
/// The retry timeout in seconds for Long Running Operations. Default
55+
/// /// value is 30.
56+
/// </summary>
57+
public int? LongRunningOperationRetryTimeout { get; set;}
58+
59+
/// <summary>
60+
/// Whether a unique x-ms-client-request-id should be generated. When
61+
/// /// set to true a unique x-ms-client-request-id value is generated and
62+
/// /// included in each request. Default is true.
63+
/// </summary>
64+
public bool? GenerateClientRequestId { get; set;}
65+
66+
/// <summary>
67+
/// Gets the IServersOperations
68+
/// </summary>
69+
public virtual IServersOperations Servers { get; private set; }
70+
/// <summary>
71+
/// Gets the IOperations
72+
/// </summary>
73+
public virtual IOperations Operations { get; private set; }
74+
/// <summary>
75+
/// Initializes a new instance of the AnalysisServicesManagementClient class.
76+
/// </summary>
77+
/// <param name='httpClient'>
78+
/// HttpClient to be used
79+
/// </param>
80+
/// <param name='disposeHttpClient'>
81+
/// True: will dispose the provided httpClient on calling AnalysisServicesManagementClient.Dispose(). False: will not dispose provided httpClient</param>
82+
protected AnalysisServicesManagementClient(System.Net.Http.HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient)
83+
{
84+
this.Initialize();
85+
}
86+
/// <summary>
87+
/// Initializes a new instance of the AnalysisServicesManagementClient class.
88+
/// </summary>
89+
/// <param name='handlers'>
90+
/// Optional. The delegating handlers to add to the http client pipeline.
91+
/// </param>
92+
protected AnalysisServicesManagementClient(params System.Net.Http.DelegatingHandler[] handlers) : base(handlers)
93+
{
94+
this.Initialize();
95+
}
96+
/// <summary>
97+
/// Initializes a new instance of the AnalysisServicesManagementClient class.
98+
/// </summary>
99+
/// <param name='rootHandler'>
100+
/// Optional. The http client handler used to handle http transport.
101+
/// </param>
102+
/// <param name='handlers'>
103+
/// Optional. The delegating handlers to add to the http client pipeline.
104+
/// </param>
105+
protected AnalysisServicesManagementClient(System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : base(rootHandler, handlers)
106+
{
107+
this.Initialize();
108+
}
109+
/// <summary>
110+
/// Initializes a new instance of the AnalysisServicesManagementClient class.
111+
/// </summary>
112+
/// <param name='baseUri'>
113+
/// Optional. The base URI of the service.
114+
/// </param>
115+
/// <param name='handlers'>
116+
/// Optional. The delegating handlers to add to the http client pipeline.
117+
/// </param>
118+
/// <exception cref="System.ArgumentNullException">
119+
/// Thrown when a required parameter is null
120+
/// </exception>
121+
protected AnalysisServicesManagementClient(System.Uri baseUri, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers)
122+
{
123+
if (baseUri == null)
124+
{
125+
throw new System.ArgumentNullException("baseUri");
126+
}
127+
this.BaseUri = baseUri;
128+
}
129+
/// <summary>
130+
/// Initializes a new instance of the AnalysisServicesManagementClient class.
131+
/// </summary>
132+
/// <param name='baseUri'>
133+
/// Optional. The base URI of the service.
134+
/// </param>
135+
/// <param name='rootHandler'>
136+
/// Optional. The http client handler used to handle http transport.
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 AnalysisServicesManagementClient(System.Uri baseUri, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers)
145+
{
146+
if (baseUri == null)
147+
{
148+
throw new System.ArgumentNullException("baseUri");
149+
}
150+
151+
this.BaseUri = baseUri;
152+
}
153+
/// <summary>
154+
/// Initializes a new instance of the AnalysisServicesManagementClient class.
155+
/// </summary>
156+
/// <param name='credentials'>
157+
/// Required. Credentials needed for the client to connect to Azure.
158+
/// </param>
159+
/// <param name='handlers'>
160+
/// Optional. The delegating handlers to add to the http client pipeline.
161+
/// </param>
162+
/// <exception cref="System.ArgumentNullException">
163+
/// Thrown when a required parameter is null
164+
/// </exception>
165+
public AnalysisServicesManagementClient(Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers)
166+
{
167+
if (credentials == null)
168+
{
169+
throw new System.ArgumentNullException("credentials");
170+
}
171+
this.Credentials = credentials;
172+
if (this.Credentials != null)
173+
{
174+
this.Credentials.InitializeServiceClient(this);
175+
}
176+
177+
}
178+
/// <summary>
179+
/// Initializes a new instance of the AnalysisServicesManagementClient class.
180+
/// </summary>
181+
/// <param name="credentials">
182+
/// Required. Credentials needed for the client to connect to Azure.
183+
/// </param>
184+
/// <param name='httpClient'>
185+
/// HttpClient to be used
186+
/// </param>
187+
/// <param name='disposeHttpClient'>
188+
/// True: will dispose the provided httpClient on calling AnalysisServicesManagementClient.Dispose(). False: will not dispose provided httpClient</param>
189+
/// <exception cref="System.ArgumentNullException">
190+
/// Thrown when a required parameter is null
191+
/// </exception>
192+
public AnalysisServicesManagementClient(Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient)
193+
{
194+
if (credentials == null)
195+
{
196+
throw new System.ArgumentNullException("credentials");
197+
}
198+
this.Credentials = credentials;
199+
if (this.Credentials != null)
200+
{
201+
this.Credentials.InitializeServiceClient(this);
202+
}
203+
204+
}
205+
/// <summary>
206+
/// Initializes a new instance of the AnalysisServicesManagementClient class.
207+
/// </summary>
208+
/// <param name="credentials">
209+
/// Required. Credentials needed for the client to connect to Azure.
210+
/// </param>
211+
/// <param name='rootHandler'>
212+
/// Optional. The http client handler used to handle http transport.
213+
/// </param>
214+
/// <param name='handlers'>
215+
/// Optional. The delegating handlers to add to the http client pipeline.
216+
/// </param>
217+
/// <exception cref="System.ArgumentNullException">
218+
/// Thrown when a required parameter is null
219+
/// </exception>
220+
public AnalysisServicesManagementClient(Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers)
221+
{
222+
if (credentials == null)
223+
{
224+
throw new System.ArgumentNullException("credentials");
225+
}
226+
this.Credentials = credentials;
227+
if (this.Credentials != null)
228+
{
229+
this.Credentials.InitializeServiceClient(this);
230+
}
231+
232+
}
233+
/// <summary>
234+
/// Initializes a new instance of the AnalysisServicesManagementClient class.
235+
/// </summary>
236+
/// <param name='baseUri'>
237+
/// Optional. The base URI of the service.
238+
/// </param>
239+
/// <param name="credentials">
240+
/// Required. Credentials needed for the client to connect to Azure.
241+
/// </param>
242+
/// <param name='handlers'>
243+
/// Optional. The delegating handlers to add to the http client pipeline.
244+
/// </param>
245+
/// <exception cref="System.ArgumentNullException">
246+
/// Thrown when a required parameter is null
247+
/// </exception>
248+
public AnalysisServicesManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers)
249+
{
250+
if (baseUri == null)
251+
{
252+
throw new System.ArgumentNullException("baseUri");
253+
}
254+
if (credentials == null)
255+
{
256+
throw new System.ArgumentNullException("credentials");
257+
}
258+
this.BaseUri = baseUri;
259+
this.Credentials = credentials;
260+
if (this.Credentials != null)
261+
{
262+
this.Credentials.InitializeServiceClient(this);
263+
}
264+
265+
}
266+
/// <summary>
267+
/// Initializes a new instance of the AnalysisServicesManagementClient class.
268+
/// </summary>
269+
/// <param name='baseUri'>
270+
/// Optional. The base URI of the service.
271+
/// </param>
272+
/// <param name="credentials">
273+
/// Required. Credentials needed for the client to connect to Azure.
274+
/// </param>
275+
/// <param name='rootHandler'>
276+
/// Optional. The http client handler used to handle http transport.
277+
/// </param>
278+
/// <exception cref="System.ArgumentNullException">
279+
/// Thrown when a required parameter is null
280+
/// </exception>
281+
public AnalysisServicesManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.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+
this.BaseUri = baseUri;
292+
this.Credentials = credentials;
293+
if (this.Credentials != null)
294+
{
295+
this.Credentials.InitializeServiceClient(this);
296+
}
297+
298+
}
299+
/// <summary>
300+
/// An optional partial-method to perform custom initialization.
301+
/// </summary>
302+
partial void CustomInitialize();
303+
304+
/// <summary>
305+
/// Initializes client properties.
306+
/// </summary>
307+
private void Initialize()
308+
{
309+
this.Servers = new ServersOperations(this);
310+
this.Operations = new Operations(this);
311+
this.BaseUri = new System.Uri("https://management.azure.com");
312+
this.ApiVersion = "2017-08-01";
313+
this.AcceptLanguage = "en-US";
314+
this.LongRunningOperationRetryTimeout = 30;
315+
this.GenerateClientRequestId = true;
316+
SerializationSettings = new Newtonsoft.Json.JsonSerializerSettings
317+
{
318+
Formatting = Newtonsoft.Json.Formatting.Indented,
319+
DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
320+
DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc,
321+
NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
322+
ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
323+
ContractResolver = new Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(),
324+
Converters = new System.Collections.Generic.List<Newtonsoft.Json.JsonConverter>
325+
{
326+
new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter()
327+
}
328+
};
329+
SerializationSettings.Converters.Add(new Microsoft.Rest.Serialization.TransformationJsonConverter());
330+
DeserializationSettings = new Newtonsoft.Json.JsonSerializerSettings
331+
{
332+
DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
333+
DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc,
334+
NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore,
335+
ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
336+
ContractResolver = new Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(),
337+
Converters = new System.Collections.Generic.List<Newtonsoft.Json.JsonConverter>
338+
{
339+
new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter()
340+
}
341+
};
342+
CustomInitialize();
343+
DeserializationSettings.Converters.Add(new Microsoft.Rest.Serialization.TransformationJsonConverter());
344+
DeserializationSettings.Converters.Add(new Microsoft.Rest.Azure.CloudErrorJsonConverter());
345+
}
346+
}
347+
}

0 commit comments

Comments
 (0)