-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update SDK and test for BatchAI for GA
- Loading branch information
Showing
46 changed files
with
3,877 additions
and
1,236 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -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 /> | ||
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags> | ||
</PropertyGroup> | ||
<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 /> | ||
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags> | ||
</PropertyGroup> | ||
</Project> |
1,164 changes: 1,006 additions & 158 deletions
1,164
...Tests/SessionRecords/BatchAI.Tests.CreateClusterTests/TestClusterCreationAndDeletion.json
Large diffs are not rendered by default.
Oops, something went wrong.
2,222 changes: 1,293 additions & 929 deletions
2,222
...BatchAI.Tests/SessionRecords/BatchAI.Tests.CreateJobTests/TestJobCreationAndDeletion.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
73 changes: 73 additions & 0 deletions
73
src/SDKs/BatchAI/Management.BatchAI/Generated/IUsageOperations.cs
This file contains 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,73 @@ | ||
// <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.BatchAI | ||
{ | ||
using Microsoft.Rest; | ||
using Microsoft.Rest.Azure; | ||
using Models; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
/// <summary> | ||
/// UsageOperations operations. | ||
/// </summary> | ||
public partial interface IUsageOperations | ||
{ | ||
/// <summary> | ||
/// Gets the current usage information as well as limits for Batch AI | ||
/// resources for given subscription. | ||
/// </summary> | ||
/// <param name='location'> | ||
/// The location for which resource usage is queried. | ||
/// </param> | ||
/// <param name='customHeaders'> | ||
/// The headers that will be added to request. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
/// <exception cref="Microsoft.Rest.Azure.CloudException"> | ||
/// 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<IPage<Usage>>> ListWithHttpMessagesAsync(string location, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
/// <summary> | ||
/// Gets the current usage information as well as limits for Batch AI | ||
/// resources for given subscription. | ||
/// </summary> | ||
/// <param name='nextPageLink'> | ||
/// The NextLink from the previous successful call to List operation. | ||
/// </param> | ||
/// <param name='customHeaders'> | ||
/// The headers that will be added to request. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
/// <exception cref="Microsoft.Rest.Azure.CloudException"> | ||
/// 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<IPage<Usage>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
} | ||
} |
This file contains 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
This file contains 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
102 changes: 102 additions & 0 deletions
102
src/SDKs/BatchAI/Management.BatchAI/Generated/Models/AppInsightsReference.cs
This file contains 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,102 @@ | ||
// <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.BatchAI.Models | ||
{ | ||
using Microsoft.Rest; | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Specifies Azure Application Insights information for performance | ||
/// counters reporting. | ||
/// </summary> | ||
public partial class AppInsightsReference | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the AppInsightsReference class. | ||
/// </summary> | ||
public AppInsightsReference() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the AppInsightsReference class. | ||
/// </summary> | ||
/// <param name="component">Specifies the Azure Application Insights | ||
/// component resource id.</param> | ||
/// <param name="instrumentationKey">Value of the Azure Application | ||
/// Insights instrumentation key.</param> | ||
/// <param name="instrumentationKeySecretReference">Specifies a | ||
/// KeyVault Secret containing Azure Application Insights | ||
/// instrumentation key.</param> | ||
public AppInsightsReference(ResourceId component, string instrumentationKey = default(string), KeyVaultSecretReference instrumentationKeySecretReference = default(KeyVaultSecretReference)) | ||
{ | ||
Component = component; | ||
InstrumentationKey = instrumentationKey; | ||
InstrumentationKeySecretReference = instrumentationKeySecretReference; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets specifies the Azure Application Insights component | ||
/// resource id. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "component")] | ||
public ResourceId Component { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets value of the Azure Application Insights | ||
/// instrumentation key. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "instrumentationKey")] | ||
public string InstrumentationKey { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets specifies a KeyVault Secret containing Azure | ||
/// Application Insights instrumentation key. | ||
/// </summary> | ||
/// <remarks> | ||
/// Specifies KeyVault Store and Secret which contains Azure | ||
/// Application Insights instrumentation key. One of instumentationKey | ||
/// or instrumentationKeySecretReference must be specified. | ||
/// </remarks> | ||
[JsonProperty(PropertyName = "instrumentationKeySecretReference")] | ||
public KeyVaultSecretReference InstrumentationKeySecretReference { get; set; } | ||
|
||
/// <summary> | ||
/// Validate the object. | ||
/// </summary> | ||
/// <exception cref="ValidationException"> | ||
/// Thrown if validation fails | ||
/// </exception> | ||
public virtual void Validate() | ||
{ | ||
if (Component == null) | ||
{ | ||
throw new ValidationException(ValidationRules.CannotBeNull, "Component"); | ||
} | ||
if (Component != null) | ||
{ | ||
Component.Validate(); | ||
} | ||
if (InstrumentationKeySecretReference != null) | ||
{ | ||
InstrumentationKeySecretReference.Validate(); | ||
} | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.