Skip to content
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

HybridDataManager - Adding SDK version 1.0.1 to correspond to API version 2019-06-01 #10531

Merged
merged 5 commits into from
Apr 7, 2020
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
14 changes: 14 additions & 0 deletions eng/mgmt/mgmtmetadata/hybriddatamanager_resource-manager.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Installing AutoRest version: 2.0.4413
AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/hybriddatamanager/resource-manager/readme.md --csharp --version=2.0.4413 --reflect-api-versions --csharp-sdks-folder=C:\Users\prtank\GitHub\azure-sdk-for-net\sdk
2020-04-03 19:49:23 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: d692fc97bf6d7affc02b75709b276461c4521b33
AutoRest information
Requested version: 2.0.4413
Bootstrapper version: autorest@2.0.4413
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>HybridData_2016-06-01;</AzureApiTag>
<AzureApiTag>HybridData_2019-06-01;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,20 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.329
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Management.Management.HybridData", "src\Microsoft.Azure.Management.Management.HybridData.csproj", "{0A22016D-C073-4DA0-BB49-E79C56158395}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.HybridData", "src\Microsoft.Azure.Management.HybridData.csproj", "{3B9508A8-659C-4D0D-AD8A-84CC72DBCE0B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Management.HybridData.Tests", "tests\Microsoft.Azure.Management.HybridData.Tests.csproj", "{1150F17C-7840-4482-9E8C-862748E17837}"
ProjectSection(ProjectDependencies) = postProject
{0A22016D-C073-4DA0-BB49-E79C56158395} = {0A22016D-C073-4DA0-BB49-E79C56158395}
EndProjectSection
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.HybridData.Tests", "tests\Microsoft.Azure.Management.HybridData.Tests.csproj", "{1150F17C-7840-4482-9E8C-862748E17837}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0A22016D-C073-4DA0-BB49-E79C56158395}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0A22016D-C073-4DA0-BB49-E79C56158395}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0A22016D-C073-4DA0-BB49-E79C56158395}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0A22016D-C073-4DA0-BB49-E79C56158395}.Release|Any CPU.Build.0 = Release|Any CPU
{3B9508A8-659C-4D0D-AD8A-84CC72DBCE0B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3B9508A8-659C-4D0D-AD8A-84CC72DBCE0B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3B9508A8-659C-4D0D-AD8A-84CC72DBCE0B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3B9508A8-659C-4D0D-AD8A-84CC72DBCE0B}.Release|Any CPU.Build.0 = Release|Any CPU
{1150F17C-7840-4482-9E8C-862748E17837}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1150F17C-7840-4482-9E8C-862748E17837}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1150F17C-7840-4482-9E8C-862748E17837}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static partial class DataStoresOperationsExtensions
public static DataStore CreateStorSimpleDataStore(this IDataStoresOperations operations, string subscriptionIdOfDataManager,
string subscriptionIdOfStorSimpleDevice, string resourceGroupOfDataManager,
string resourceGroupOfStorSimpleDevice, string dataManagerName,
string serviceEncryptionKey, string storSimpleDeviceName, HybridDataManagementClient client)
string serviceEncryptionKey, string storSimpleResourceName, HybridDataManagementClient client)
{
var storSimpleDataStore = new DataStore();
var publicKey = client.PublicKeys.ListByDataManager(resourceGroupOfDataManager, dataManagerName).FirstOrDefault();
Expand All @@ -37,7 +37,7 @@ public static DataStore CreateStorSimpleDataStore(this IDataStoresOperations ope
subscriptionIdOfDataManager, resourceGroupOfDataManager, dataManagerName);

storSimpleDataStore.RepositoryId = $"/subscriptions/{subscriptionIdOfStorSimpleDevice}/resourceGroups/{resourceGroupOfStorSimpleDevice}"
+$"/providers/Microsoft.StorSimple/managers/{storSimpleDeviceName}";
+$"/providers/Microsoft.StorSimple/managers/{storSimpleResourceName}";

storSimpleDataStore.ExtendedProperties = GetStorSimpleExtendedProperties(storSimpleDataStore.RepositoryId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ internal DataServicesOperations(HybridDataManagementClient client)
}

/// <summary>
/// Gets the data service that match the data service name given.
/// Gets the data service that matches the data service name given.
/// </summary>
/// <param name='dataServiceName'>
/// The name of the data service that is being queried.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static IPage<DataService> ListByDataManager(this IDataServicesOperations
}

/// <summary>
/// Gets the data service that match the data service name given.
/// Gets the data service that matches the data service name given.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -88,7 +88,7 @@ public static DataService Get(this IDataServicesOperations operations, string da
}

/// <summary>
/// Gets the data service that match the data service name given.
/// Gets the data service that matches the data service name given.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ private void Initialize()
DataStoreTypes = new DataStoreTypesOperations(this);
PublicKeys = new PublicKeysOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
ApiVersion = "2016-06-01";
ApiVersion = "2019-06-01";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public partial interface IDataServicesOperations
/// </exception>
Task<AzureOperationResponse<IPage<DataService>>> ListByDataManagerWithHttpMessagesAsync(string resourceGroupName, string dataManagerName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets the data service that match the data service name given.
/// Gets the data service that matches the data service name given.
/// </summary>
/// <param name='dataServiceName'>
/// The name of the data service that is being queried.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.HybridData
public partial interface IOperations
{
/// <summary>
/// This method gets all the operations.
/// The list of operations for Microsoft.HybridData provider.
/// </summary>
/// <param name='customHeaders'>
/// The headers that will be added to request.
Expand All @@ -43,7 +43,7 @@ public partial interface IOperations
/// </exception>
Task<AzureOperationResponse<IPage<AvailableProviderOperation>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// This method gets all the operations.
/// The list of operations for Microsoft.HybridData provider.
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Job()
/// </summary>
/// <param name="status">Status of the job. Possible values include:
/// 'None', 'InProgress', 'Succeeded', 'WaitingForAction', 'Failed',
/// 'Cancelled', 'Cancelling'</param>
/// 'Cancelled', 'Cancelling', 'PartiallySucceeded'</param>
/// <param name="startTime">Time at which the job was started in UTC
/// ISO 8601 format.</param>
/// <param name="isCancellable">Describes whether the job is
Expand Down Expand Up @@ -86,7 +86,7 @@ public Job()
/// <summary>
/// Gets or sets status of the job. Possible values include: 'None',
/// 'InProgress', 'Succeeded', 'WaitingForAction', 'Failed',
/// 'Cancelled', 'Cancelling'
/// 'Cancelled', 'Cancelling', 'PartiallySucceeded'
/// </summary>
[JsonProperty(PropertyName = "status")]
public JobStatus Status { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public JobFilter()
/// </summary>
/// <param name="status">The status of the job. Possible values
/// include: 'None', 'InProgress', 'Succeeded', 'WaitingForAction',
/// 'Failed', 'Cancelled', 'Cancelling'</param>
/// 'Failed', 'Cancelled', 'Cancelling', 'PartiallySucceeded'</param>
/// <param name="startTime">The start time of the job.</param>
public JobFilter(JobStatus status, System.DateTime? startTime = default(System.DateTime?))
{
Expand All @@ -48,7 +48,7 @@ public JobFilter()
/// <summary>
/// Gets or sets the status of the job. Possible values include:
/// 'None', 'InProgress', 'Succeeded', 'WaitingForAction', 'Failed',
/// 'Cancelled', 'Cancelling'
/// 'Cancelled', 'Cancelling', 'PartiallySucceeded'
/// </summary>
[JsonProperty(PropertyName = "status")]
public JobStatus Status { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public JobStages()
/// </summary>
/// <param name="stageStatus">Status of the job stage. Possible values
/// include: 'None', 'InProgress', 'Succeeded', 'WaitingForAction',
/// 'Failed', 'Cancelled', 'Cancelling'</param>
/// 'Failed', 'Cancelled', 'Cancelling', 'PartiallySucceeded'</param>
/// <param name="stageName">Name of the job stage.</param>
/// <param name="jobStageDetails">Job Stage Details</param>
/// <param name="errorDetails">Error details for the stage. This is
Expand Down Expand Up @@ -61,7 +61,7 @@ public JobStages()
/// <summary>
/// Gets or sets status of the job stage. Possible values include:
/// 'None', 'InProgress', 'Succeeded', 'WaitingForAction', 'Failed',
/// 'Cancelled', 'Cancelling'
/// 'Cancelled', 'Cancelling', 'PartiallySucceeded'
/// </summary>
[JsonProperty(PropertyName = "stageStatus")]
public JobStatus StageStatus { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public enum JobStatus
[EnumMember(Value = "Cancelled")]
Cancelled,
[EnumMember(Value = "Cancelling")]
Cancelling
Cancelling,
[EnumMember(Value = "PartiallySucceeded")]
PartiallySucceeded
}
internal static class JobStatusEnumExtension
{
Expand All @@ -61,6 +63,8 @@ internal static string ToSerializedValue(this JobStatus value)
return "Cancelled";
case JobStatus.Cancelling:
return "Cancelling";
case JobStatus.PartiallySucceeded:
return "PartiallySucceeded";
}
return null;
}
Expand All @@ -83,6 +87,8 @@ internal static string ToSerializedValue(this JobStatus value)
return JobStatus.Cancelled;
case "Cancelling":
return JobStatus.Cancelling;
case "PartiallySucceeded":
return JobStatus.PartiallySucceeded;
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal Operations(HybridDataManagementClient client)
public HybridDataManagementClient Client { get; private set; }

/// <summary>
/// This method gets all the operations.
/// The list of operations for Microsoft.HybridData provider.
/// </summary>
/// <param name='customHeaders'>
/// Headers that will be added to request.
Expand Down Expand Up @@ -224,7 +224,7 @@ internal Operations(HybridDataManagementClient client)
}

/// <summary>
/// This method gets all the operations.
/// The list of operations for Microsoft.HybridData provider.
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.HybridData
public static partial class OperationsExtensions
{
/// <summary>
/// This method gets all the operations.
/// The list of operations for Microsoft.HybridData provider.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -33,7 +33,7 @@ public static IPage<AvailableProviderOperation> List(this IOperations operations
}

/// <summary>
/// This method gets all the operations.
/// The list of operations for Microsoft.HybridData provider.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -50,7 +50,7 @@ public static IPage<AvailableProviderOperation> List(this IOperations operations
}

/// <summary>
/// This method gets all the operations.
/// The list of operations for Microsoft.HybridData provider.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -64,7 +64,7 @@ public static IPage<AvailableProviderOperation> ListNext(this IOperations operat
}

/// <summary>
/// This method gets all the operations.
/// The list of operations for Microsoft.HybridData provider.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_HybridDataManag
{
return new Tuple<string, string, string>[]
{
new Tuple<string, string, string>("HybridData", "DataManagers", "2016-06-01"),
new Tuple<string, string, string>("HybridData", "DataServices", "2016-06-01"),
new Tuple<string, string, string>("HybridData", "DataStoreTypes", "2016-06-01"),
new Tuple<string, string, string>("HybridData", "DataStores", "2016-06-01"),
new Tuple<string, string, string>("HybridData", "JobDefinitions", "2016-06-01"),
new Tuple<string, string, string>("HybridData", "Jobs", "2016-06-01"),
new Tuple<string, string, string>("HybridData", "Operations", "2016-06-01"),
new Tuple<string, string, string>("HybridData", "PublicKeys", "2016-06-01"),
new Tuple<string, string, string>("HybridData", "DataManagers", "2019-06-01"),
new Tuple<string, string, string>("HybridData", "DataServices", "2019-06-01"),
new Tuple<string, string, string>("HybridData", "DataStoreTypes", "2019-06-01"),
new Tuple<string, string, string>("HybridData", "DataStores", "2019-06-01"),
new Tuple<string, string, string>("HybridData", "JobDefinitions", "2019-06-01"),
new Tuple<string, string, string>("HybridData", "Jobs", "2019-06-01"),
new Tuple<string, string, string>("HybridData", "Operations", "2019-06-01"),
new Tuple<string, string, string>("HybridData", "PublicKeys", "2019-06-01"),
}.AsEnumerable();
}
}
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "latest";
public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/hybriddatamanager/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\Users\\t-prta\\GitHub\\azure-sdk-for-net\\src\\SDKs";
public static readonly String AutoRestVersion = "2.0.4413";
public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/hybriddatamanager/resource-manager/readme.md --csharp --version=2.0.4413 --reflect-api-versions --csharp-sdks-folder=C:\\Users\\prtank\\GitHub\\azure-sdk-for-net\\sdk";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "463b431f324d40c08f510276509d2f851ace4a54";
public static readonly String GithubCommidId = "d692fc97bf6d7affc02b75709b276461c4521b33";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<PropertyGroup>
<PackageId>Microsoft.Azure.Management.HybridData</PackageId>
<Description></Description>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
<AssemblyName>Microsoft.Azure.Management.HybridData</AssemblyName>
<PackageTags>Management;Storage;StorSimple;StorSimpleDataManager;Azure;HybridDataManager;Microsoft.HybridData</PackageTags>
<PackageReleaseNotes>
<![CDATA[
This is the first public release of the Azure StorSimple Data Manager SDK (Microsoft.HybridData).
API version 1.0.1: Adding PartiallySucceeded job status
]]>
</PackageReleaseNotes>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Start-AutoRestCodeGeneration -ResourceProvider "hybriddatamanager/resource-manager" -AutoRestVersion "latest"
Start-AutoRestCodeGeneration -ResourceProvider "hybriddatamanager/resource-manager" -AutoRestVersion "2.0.4413"
Loading