Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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