-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate new SDK for ManagedServiceIdentity with new swagger api version #5165
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file--> | ||
<PropertyGroup> | ||
<AzureApiTag /> | ||
<AzureApiTag>ManagedIdentity_2018-11-30;</AzureApiTag> | ||
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags> | ||
</PropertyGroup> | ||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,19 +57,20 @@ public partial class ManagedServiceIdentityClient : ServiceClient<ManagedService | |
public string ApiVersion { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the preferred language for the response. | ||
/// The preferred language for the response. | ||
/// </summary> | ||
public string AcceptLanguage { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the retry timeout in seconds for Long Running Operations. | ||
/// Default value is 30. | ||
/// The retry timeout in seconds for Long Running Operations. Default value is | ||
/// 30. | ||
/// </summary> | ||
public int? LongRunningOperationRetryTimeout { get; set; } | ||
|
||
/// <summary> | ||
/// When set to true a unique x-ms-client-request-id value is generated and | ||
/// included in each request. Default is true. | ||
/// Whether a unique x-ms-client-request-id should be generated. When set to | ||
/// true a unique x-ms-client-request-id value is generated and included in | ||
/// each request. Default is true. | ||
/// </summary> | ||
public bool? GenerateClientRequestId { get; set; } | ||
|
||
|
@@ -83,6 +84,19 @@ public partial class ManagedServiceIdentityClient : ServiceClient<ManagedService | |
/// </summary> | ||
public virtual IUserAssignedIdentitiesOperations UserAssignedIdentities { get; private set; } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the ManagedServiceIdentityClient class. | ||
/// </summary> | ||
/// <param name='httpClient'> | ||
/// HttpClient to be used | ||
/// </param> | ||
/// <param name='disposeHttpClient'> | ||
/// True: will dispose the provided httpClient on calling ManagedServiceIdentityClient.Dispose(). False: will not dispose provided httpClient</param> | ||
protected ManagedServiceIdentityClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) | ||
{ | ||
Initialize(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the ManagedServiceIdentityClient class. | ||
/// </summary> | ||
|
@@ -178,6 +192,33 @@ public ManagedServiceIdentityClient(ServiceClientCredentials credentials, params | |
} | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the ManagedServiceIdentityClient class. | ||
/// </summary> | ||
/// <param name='credentials'> | ||
/// Required. Credentials needed for the client to connect to Azure. | ||
/// </param> | ||
/// <param name='httpClient'> | ||
/// HttpClient to be used | ||
/// </param> | ||
/// <param name='disposeHttpClient'> | ||
/// True: will dispose the provided httpClient on calling ManagedServiceIdentityClient.Dispose(). False: will not dispose provided httpClient</param> | ||
/// <exception cref="System.ArgumentNullException"> | ||
/// Thrown when a required parameter is null | ||
/// </exception> | ||
public ManagedServiceIdentityClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) | ||
{ | ||
if (credentials == null) | ||
{ | ||
throw new System.ArgumentNullException("credentials"); | ||
} | ||
Credentials = credentials; | ||
if (Credentials != null) | ||
{ | ||
Credentials.InitializeServiceClient(this); | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the ManagedServiceIdentityClient class. | ||
/// </summary> | ||
|
@@ -287,7 +328,7 @@ private void Initialize() | |
Operations = new Operations(this); | ||
UserAssignedIdentities = new UserAssignedIdentitiesOperations(this); | ||
BaseUri = new System.Uri("https://management.azure.com"); | ||
ApiVersion = "2015-08-31-preview"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @wendyNEU are you planning to release a stable version for your api version There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I plan to release a stable version for api version 2018-11-30 |
||
ApiVersion = "2018-11-30"; | ||
AcceptLanguage = "en-US"; | ||
LongRunningOperationRetryTimeout = 30; | ||
GenerateClientRequestId = true; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
// <auto-generated> | ||
// 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.ManagedServiceIdentity | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
internal static partial class SdkInfo | ||
{ | ||
public static IEnumerable<Tuple<string, string, string>> ApiInfo_ManagedServiceIdentityClient | ||
{ | ||
get | ||
{ | ||
return new Tuple<string, string, string>[] | ||
{ | ||
new Tuple<string, string, string>("ManagedIdentity", "Operations", "2018-11-30"), | ||
new Tuple<string, string, string>("ManagedIdentity", "UserAssignedIdentities", "2018-11-30"), | ||
}.AsEnumerable(); | ||
} | ||
} | ||
// BEGIN: Code Generation Metadata Section | ||
public static readonly String AutoRestVersion = "latest"; | ||
public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; | ||
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/msi/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\azure-sdk-for-net\\src\\SDKs"; | ||
public static readonly String GithubForkName = "Azure"; | ||
public static readonly String GithubBranchName = "master"; | ||
public static readonly String GithubCommidId = "14f4c33c0a6cc17d0b3577fbddfaacd38a235b57"; | ||
public static readonly String CodeGenerationErrors = ""; | ||
public static readonly String GithubRepoName = "azure-rest-api-specs"; | ||
// END: Code Generation Metadata Section | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ | |
|
||
<PropertyGroup> | ||
<PackageId>Microsoft.Azure.Management.ManagedServiceIdentity</PackageId> | ||
<Description>Provides developers with libraries for ManagedSericeIdentity under Azure Resource manager to perform CRUD operations on identities.</Description> | ||
<Version>0.10.0-preview</Version> | ||
<Description>Provides developers with libraries for ManagedServiceIdentity under Azure Resource manager to perform CRUD operations on identities.</Description> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove description, use |
||
<Version>0.11.0</Version> | ||
<AssemblyName>Microsoft.Azure.Management.ManagedServiceIdentity</AssemblyName> | ||
<PackageTags>Microsoft Azure resource management;msi;managedserviceidentity;</PackageTags> | ||
<PackageReleaseNotes>Taking dependency on 10.0.3 version of Newtonsoft nuget package.</PackageReleaseNotes> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please update the |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Start-AutoRestCodeGeneration -ResourceProvider "msi/resource-manager" -AutoRestVersion "latest" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
2017-12-15 22:38:47 UTC | ||
|
||
1) azure-rest-api-specs repository information | ||
GitHub user: Azure | ||
Branch: current | ||
Commit: ca7dadf950700baa6a9fde9e78bd80d4498213f4 | ||
|
||
2) AutoRest information | ||
Installing AutoRest version: latest | ||
AutoRest installed successfully. | ||
Commencing code generation | ||
Generating CSharp code | ||
Executing AutoRest command | ||
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/managedserviceidentity/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\azure-sdk-for-net\src\SDKs | ||
2019-01-23 21:27:23 UTC | ||
Azure-rest-api-specs repository information | ||
GitHub fork: Azure | ||
Branch: master | ||
Commit: 14f4c33c0a6cc17d0b3577fbddfaacd38a235b57 | ||
AutoRest information | ||
Requested version: latest | ||
Bootstrapper version: C:\Users\vakuma\AppData\Roaming\npm `-- autorest@2.0.4215 | ||
Latest installed version: | ||
Bootstrapper version: autorest@2.0.4283 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Installing AutoRest version: latest | ||
AutoRest installed successfully. | ||
Commencing code generation | ||
Generating CSharp code | ||
Executing AutoRest command | ||
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/msi/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\azure-sdk-for-net\src\SDKs | ||
2019-01-23 22:21:24 UTC | ||
Azure-rest-api-specs repository information | ||
GitHub fork: Azure | ||
Branch: master | ||
Commit: 14f4c33c0a6cc17d0b3577fbddfaacd38a235b57 | ||
AutoRest information | ||
Requested version: latest | ||
Bootstrapper version: autorest@2.0.4283 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have already defaulted our repo to
master
branch, don't think we need this change. Appreciate the help