Skip to content
Closed
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
2 changes: 1 addition & 1 deletion src/SDKs/BotService/AzSdk.RP.props
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>BotService_2017-12-01;</AzureApiTag>
<AzureApiTag>BotService_2018-07-12;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,25 @@ public partial class AzureBotServiceClient : ServiceClient<AzureBotServiceClient
public string SubscriptionId { get; set; }

/// <summary>
/// Version of the API to be used with the client request. Current version is
/// 2017-12-01
/// Version of the API to be used with the client request.
/// </summary>
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 @@ -90,6 +90,29 @@ public partial class AzureBotServiceClient : ServiceClient<AzureBotServiceClient
/// </summary>
public virtual IOperations Operations { get; private set; }

/// <summary>
/// Gets the IBotConnectionOperations.
/// </summary>
public virtual IBotConnectionOperations BotConnection { get; private set; }

/// <summary>
/// Gets the IEnterpriseChannelsOperations.
/// </summary>
public virtual IEnterpriseChannelsOperations EnterpriseChannels { get; private set; }

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

/// <summary>
/// Initializes a new instance of the AzureBotServiceClient class.
/// </summary>
Expand Down Expand Up @@ -185,6 +208,33 @@ public AzureBotServiceClient(ServiceClientCredentials credentials, params Delega
}
}

/// <summary>
/// Initializes a new instance of the AzureBotServiceClient 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 AzureBotServiceClient.Dispose(). False: will not dispose provided httpClient</param>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
public AzureBotServiceClient(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 AzureBotServiceClient class.
/// </summary>
Expand Down Expand Up @@ -294,8 +344,10 @@ private void Initialize()
Bots = new BotsOperations(this);
Channels = new ChannelsOperations(this);
Operations = new Operations(this);
BotConnection = new BotConnectionOperations(this);
EnterpriseChannels = new EnterpriseChannelsOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
ApiVersion = "2017-12-01";
ApiVersion = "2018-07-12";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
Expand Down
Loading