-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Update Microsoft.Authorization api version for Get-RoleDefinition 2 #23263
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
Merged
VeryEarly
merged 2 commits into
Azure:main
from
mumoryan:update-authorization-api-version2
Nov 7, 2023
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/Resources/Authorization.Management.Sdk/Authorization.Management.Sdk.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <PsModuleName>Authorization</PsModuleName> | ||
| </PropertyGroup> | ||
| <Import Project="$(MSBuildThisFileDirectory)..\..\Az.props" /> | ||
| <PropertyGroup> | ||
| <TargetFramework>netstandard2.0</TargetFramework> | ||
| <AssemblyName>Microsoft.Azure.PowerShell.Authorization.Management.Sdk</AssemblyName> | ||
| <RootNamespace>Microsoft.Azure.Management.Authorization</RootNamespace> | ||
| <NoWarn>$(NoWarn);CS0108;CS1573</NoWarn> | ||
| </PropertyGroup> | ||
| <Import | ||
| Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" /> | ||
| </Project> | ||
372 changes: 372 additions & 0 deletions
372
src/Resources/Authorization.Management.Sdk/Generated/AuthorizationManagementClient.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,372 @@ | ||
| // <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.Authorization | ||
| { | ||
| using Microsoft.Rest; | ||
| using Microsoft.Rest.Azure; | ||
| using Microsoft.Rest.Serialization; | ||
| using Models; | ||
| using Newtonsoft.Json; | ||
| using System.Collections; | ||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
| using System.Net; | ||
| using System.Net.Http; | ||
|
|
||
| /// <summary> | ||
| /// Role based access control provides you a way to apply granular level | ||
| /// policy administration down to individual resources or resource groups. | ||
| /// These operations allow you to manage role definitions. A role | ||
| /// definition describes the set of actions that can be performed on | ||
| /// resources. | ||
| /// </summary> | ||
| public partial class AuthorizationManagementClient : ServiceClient<AuthorizationManagementClient>, IAuthorizationManagementClient, IAzureClient | ||
| { | ||
| /// <summary> | ||
| /// The base URI of the service. | ||
| /// </summary> | ||
| public System.Uri BaseUri { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets json serialization settings. | ||
| /// </summary> | ||
| public JsonSerializerSettings SerializationSettings { get; private set; } | ||
|
|
||
| /// <summary> | ||
| /// Gets or sets json deserialization settings. | ||
| /// </summary> | ||
| public JsonSerializerSettings DeserializationSettings { get; private set; } | ||
|
|
||
| /// <summary> | ||
| /// Credentials needed for the client to connect to Azure. | ||
| /// </summary> | ||
| public ServiceClientCredentials Credentials { get; private set; } | ||
|
|
||
| /// <summary> | ||
| /// The API version to use for this operation. | ||
| /// </summary> | ||
| public string ApiVersion { get; private set; } | ||
|
|
||
| /// <summary> | ||
| /// The ID of the target subscription. | ||
| /// </summary> | ||
| public string SubscriptionId { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// The preferred language for the response. | ||
| /// </summary> | ||
| public string AcceptLanguage { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// The retry timeout in seconds for Long Running Operations. Default value is | ||
| /// 30. | ||
| /// </summary> | ||
| public int? LongRunningOperationRetryTimeout { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// 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; } | ||
|
|
||
| /// <summary> | ||
| /// Gets the IPermissionsOperations. | ||
| /// </summary> | ||
| public virtual IPermissionsOperations Permissions { get; private set; } | ||
|
|
||
| /// <summary> | ||
| /// Gets the IRoleDefinitionsOperations. | ||
| /// </summary> | ||
| public virtual IRoleDefinitionsOperations RoleDefinitions { get; private set; } | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the AuthorizationManagementClient class. | ||
| /// </summary> | ||
| /// <param name='httpClient'> | ||
| /// HttpClient to be used | ||
| /// </param> | ||
| /// <param name='disposeHttpClient'> | ||
| /// True: will dispose the provided httpClient on calling AuthorizationManagementClient.Dispose(). False: will not dispose provided httpClient</param> | ||
| protected AuthorizationManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) | ||
| { | ||
| Initialize(); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the AuthorizationManagementClient class. | ||
| /// </summary> | ||
| /// <param name='handlers'> | ||
| /// Optional. The delegating handlers to add to the http client pipeline. | ||
| /// </param> | ||
| protected AuthorizationManagementClient(params DelegatingHandler[] handlers) : base(handlers) | ||
| { | ||
| Initialize(); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the AuthorizationManagementClient class. | ||
| /// </summary> | ||
| /// <param name='rootHandler'> | ||
| /// Optional. The http client handler used to handle http transport. | ||
| /// </param> | ||
| /// <param name='handlers'> | ||
| /// Optional. The delegating handlers to add to the http client pipeline. | ||
| /// </param> | ||
| protected AuthorizationManagementClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) | ||
| { | ||
| Initialize(); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the AuthorizationManagementClient class. | ||
| /// </summary> | ||
| /// <param name='baseUri'> | ||
| /// Optional. The base URI of the service. | ||
| /// </param> | ||
| /// <param name='handlers'> | ||
| /// Optional. The delegating handlers to add to the http client pipeline. | ||
| /// </param> | ||
| /// <exception cref="System.ArgumentNullException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| protected AuthorizationManagementClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) | ||
| { | ||
| if (baseUri == null) | ||
| { | ||
| throw new System.ArgumentNullException("baseUri"); | ||
| } | ||
| BaseUri = baseUri; | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the AuthorizationManagementClient class. | ||
| /// </summary> | ||
| /// <param name='baseUri'> | ||
| /// Optional. The base URI of the service. | ||
| /// </param> | ||
| /// <param name='rootHandler'> | ||
| /// Optional. The http client handler used to handle http transport. | ||
| /// </param> | ||
| /// <param name='handlers'> | ||
| /// Optional. The delegating handlers to add to the http client pipeline. | ||
| /// </param> | ||
| /// <exception cref="System.ArgumentNullException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| protected AuthorizationManagementClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) | ||
| { | ||
| if (baseUri == null) | ||
| { | ||
| throw new System.ArgumentNullException("baseUri"); | ||
| } | ||
| BaseUri = baseUri; | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the AuthorizationManagementClient class. | ||
| /// </summary> | ||
| /// <param name='credentials'> | ||
| /// Required. Credentials needed for the client to connect to Azure. | ||
| /// </param> | ||
| /// <param name='handlers'> | ||
| /// Optional. The delegating handlers to add to the http client pipeline. | ||
| /// </param> | ||
| /// <exception cref="System.ArgumentNullException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| public AuthorizationManagementClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) | ||
| { | ||
| if (credentials == null) | ||
| { | ||
| throw new System.ArgumentNullException("credentials"); | ||
| } | ||
| Credentials = credentials; | ||
| if (Credentials != null) | ||
| { | ||
| Credentials.InitializeServiceClient(this); | ||
| } | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the AuthorizationManagementClient 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 AuthorizationManagementClient.Dispose(). False: will not dispose provided httpClient</param> | ||
| /// <exception cref="System.ArgumentNullException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| public AuthorizationManagementClient(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 AuthorizationManagementClient class. | ||
| /// </summary> | ||
| /// <param name='credentials'> | ||
| /// Required. Credentials needed for the client to connect to Azure. | ||
| /// </param> | ||
| /// <param name='rootHandler'> | ||
| /// Optional. The http client handler used to handle http transport. | ||
| /// </param> | ||
| /// <param name='handlers'> | ||
| /// Optional. The delegating handlers to add to the http client pipeline. | ||
| /// </param> | ||
| /// <exception cref="System.ArgumentNullException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| public AuthorizationManagementClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) | ||
| { | ||
| if (credentials == null) | ||
| { | ||
| throw new System.ArgumentNullException("credentials"); | ||
| } | ||
| Credentials = credentials; | ||
| if (Credentials != null) | ||
| { | ||
| Credentials.InitializeServiceClient(this); | ||
| } | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the AuthorizationManagementClient class. | ||
| /// </summary> | ||
| /// <param name='baseUri'> | ||
| /// Optional. The base URI of the service. | ||
| /// </param> | ||
| /// <param name='credentials'> | ||
| /// Required. Credentials needed for the client to connect to Azure. | ||
| /// </param> | ||
| /// <param name='handlers'> | ||
| /// Optional. The delegating handlers to add to the http client pipeline. | ||
| /// </param> | ||
| /// <exception cref="System.ArgumentNullException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| public AuthorizationManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) | ||
| { | ||
| if (baseUri == null) | ||
| { | ||
| throw new System.ArgumentNullException("baseUri"); | ||
| } | ||
| if (credentials == null) | ||
| { | ||
| throw new System.ArgumentNullException("credentials"); | ||
| } | ||
| BaseUri = baseUri; | ||
| Credentials = credentials; | ||
| if (Credentials != null) | ||
| { | ||
| Credentials.InitializeServiceClient(this); | ||
| } | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Initializes a new instance of the AuthorizationManagementClient class. | ||
| /// </summary> | ||
| /// <param name='baseUri'> | ||
| /// Optional. The base URI of the service. | ||
| /// </param> | ||
| /// <param name='credentials'> | ||
| /// Required. Credentials needed for the client to connect to Azure. | ||
| /// </param> | ||
| /// <param name='rootHandler'> | ||
| /// Optional. The http client handler used to handle http transport. | ||
| /// </param> | ||
| /// <param name='handlers'> | ||
| /// Optional. The delegating handlers to add to the http client pipeline. | ||
| /// </param> | ||
| /// <exception cref="System.ArgumentNullException"> | ||
| /// Thrown when a required parameter is null | ||
| /// </exception> | ||
| public AuthorizationManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) | ||
| { | ||
| if (baseUri == null) | ||
| { | ||
| throw new System.ArgumentNullException("baseUri"); | ||
| } | ||
| if (credentials == null) | ||
| { | ||
| throw new System.ArgumentNullException("credentials"); | ||
| } | ||
| BaseUri = baseUri; | ||
| Credentials = credentials; | ||
| if (Credentials != null) | ||
| { | ||
| Credentials.InitializeServiceClient(this); | ||
| } | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// An optional partial-method to perform custom initialization. | ||
| /// </summary> | ||
| partial void CustomInitialize(); | ||
| /// <summary> | ||
| /// Initializes client properties. | ||
| /// </summary> | ||
| private void Initialize() | ||
| { | ||
| Permissions = new PermissionsOperations(this); | ||
| RoleDefinitions = new RoleDefinitionsOperations(this); | ||
| BaseUri = new System.Uri("https://management.azure.com"); | ||
| ApiVersion = "2022-05-01-preview"; | ||
| AcceptLanguage = "en-US"; | ||
| LongRunningOperationRetryTimeout = 30; | ||
| GenerateClientRequestId = true; | ||
| SerializationSettings = new JsonSerializerSettings | ||
| { | ||
| Formatting = Newtonsoft.Json.Formatting.Indented, | ||
| DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, | ||
| DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, | ||
| NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, | ||
| ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, | ||
| ContractResolver = new ReadOnlyJsonContractResolver(), | ||
| Converters = new List<JsonConverter> | ||
| { | ||
| new Iso8601TimeSpanConverter() | ||
| } | ||
| }; | ||
| SerializationSettings.Converters.Add(new TransformationJsonConverter()); | ||
| DeserializationSettings = new JsonSerializerSettings | ||
| { | ||
| DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, | ||
| DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, | ||
| NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, | ||
| ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, | ||
| ContractResolver = new ReadOnlyJsonContractResolver(), | ||
| Converters = new List<JsonConverter> | ||
| { | ||
| new Iso8601TimeSpanConverter() | ||
| } | ||
| }; | ||
| SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<RoleManagementPolicyRule>("ruleType")); | ||
| DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<RoleManagementPolicyRule>("ruleType")); | ||
| CustomInitialize(); | ||
| DeserializationSettings.Converters.Add(new TransformationJsonConverter()); | ||
| DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Resources