Skip to content

Commit

Permalink
.NET SDK Resource Provider:'ManagementPartner' (#5894)
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5726'
REST Spec PR Author 'jetts'
REST Spec PR Last commit
  • Loading branch information
adxsdknet authored and dsgouda committed Apr 24, 2019
1 parent 274d16e commit f6e25c7
Show file tree
Hide file tree
Showing 6 changed files with 419 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,20 @@ public partial class ACEProvisioningManagementPartnerAPIClient : ServiceClient<A
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; }

Expand All @@ -78,6 +79,24 @@ public partial class ACEProvisioningManagementPartnerAPIClient : ServiceClient<A
/// </summary>
public virtual IOperationOperations Operation { get; private set; }

/// <summary>
/// Gets the IPartnersOperations.
/// </summary>
public virtual IPartnersOperations Partners { get; private set; }

/// <summary>
/// Initializes a new instance of the ACEProvisioningManagementPartnerAPIClient class.
/// </summary>
/// <param name='httpClient'>
/// HttpClient to be used
/// </param>
/// <param name='disposeHttpClient'>
/// True: will dispose the provided httpClient on calling ACEProvisioningManagementPartnerAPIClient.Dispose(). False: will not dispose provided httpClient</param>
protected ACEProvisioningManagementPartnerAPIClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient)
{
Initialize();
}

/// <summary>
/// Initializes a new instance of the ACEProvisioningManagementPartnerAPIClient class.
/// </summary>
Expand Down Expand Up @@ -173,6 +192,33 @@ public ACEProvisioningManagementPartnerAPIClient(ServiceClientCredentials creden
}
}

/// <summary>
/// Initializes a new instance of the ACEProvisioningManagementPartnerAPIClient 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 ACEProvisioningManagementPartnerAPIClient.Dispose(). False: will not dispose provided httpClient</param>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
public ACEProvisioningManagementPartnerAPIClient(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 ACEProvisioningManagementPartnerAPIClient class.
/// </summary>
Expand Down Expand Up @@ -281,6 +327,7 @@ private void Initialize()
{
Partner = new PartnerOperations(this);
Operation = new OperationOperations(this);
Partners = new PartnersOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
ApiVersion = "2018-02-01";
AcceptLanguage = "en-US";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,20 @@ public partial interface IACEProvisioningManagementPartnerAPIClient : System.IDi
string ApiVersion { get; }

/// <summary>
/// Gets or sets the preferred language for the response.
/// The preferred language for the response.
/// </summary>
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>
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>
bool? GenerateClientRequestId { get; set; }

Expand All @@ -73,5 +74,10 @@ public partial interface IACEProvisioningManagementPartnerAPIClient : System.IDi
/// </summary>
IOperationOperations Operation { get; }

/// <summary>
/// Gets the IPartnersOperations.
/// </summary>
IPartnersOperations Partners { get; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// <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.Azure.Management.ManagementPartner
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// PartnersOperations operations.
/// </summary>
public partial interface IPartnersOperations
{
/// <summary>
/// Get a specific `Partner`.
/// </summary>
/// <remarks>
/// Get the management partner using the objectId and tenantId.
/// </remarks>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<PartnerResponse>> GetWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Loading

0 comments on commit f6e25c7

Please sign in to comment.