Permalink
Browse files

Merge pull request #293 from WindowsAzure/dev

Windows Azure Scheduler Preview
  • Loading branch information...
2 parents d5deb8d + d1f0a1f commit e9329d86b64bbcd4e21fa1171030d7d1c14938a3 @jeffwilcox jeffwilcox committed Nov 4, 2013
Showing with 13,501 additions and 822 deletions.
  1. +8 −3 libraries/WindowsAzureLibraries.sln
  2. +4 −8 libraries/libraries.msbuild
  3. +2 −2 libraries/src/Common/Exception/CloudException.cs
  4. +10 −0 libraries/src/Common/Internals/TypeConversion.cs
  5. +785 −785 libraries/src/Management/ManagementClient.cs
  6. +5 −2 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Common.nuspec
  7. +1 −1 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Management.Compute.nuspec
  8. +10 −6 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Management.Libraries.nuspec
  9. +36 −0 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Management.Scheduler.nuspec
  10. +1 −1 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Management.Storage.nuspec
  11. +1 −1 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Management.VirtualNetworks.nuspec
  12. +1 −1 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Management.WebSites.nuspec
  13. +1 −1 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Management.nuspec
  14. +12 −7 libraries/src/PackageSpecs/NuGetSpecs.proj
  15. +81 −0 libraries/src/SchedulerManagement/CloudServiceManagementClient.Customization.cs
  16. +2,566 −0 libraries/src/SchedulerManagement/CloudServiceManagementClient.cs
  17. +32 −0 libraries/src/SchedulerManagement/Properties/AssemblyInfo.cs
  18. +85 −0 libraries/src/SchedulerManagement/SchedulerClient.Customization.cs
  19. +6,190 −0 libraries/src/SchedulerManagement/SchedulerClient.cs
  20. +92 −0 libraries/src/SchedulerManagement/SchedulerManagement.csproj
  21. +81 −0 libraries/src/SchedulerManagement/SchedulerManagementClient.Customization.cs
  22. +3,485 −0 libraries/src/SchedulerManagement/SchedulerManagementClient.cs
  23. +8 −0 libraries/src/SchedulerManagement/packages.config
  24. +1 −1 libraries/src/libraries.targets
  25. BIN microsoft-azure-api/Configuration/Microsoft.WindowsAzure.Configuration/GlobalSuppressions.cs
  26. +2 −2 ...iguration/Microsoft.WindowsAzure.Configuration/Microsoft.WindowsAzure.ConfigurationManager.nuspec
  27. +1 −1 microsoft-azure-api/Configuration/Microsoft.WindowsAzure.Configuration/Properties/AssemblyInfo.cs
View
11 libraries/WindowsAzureLibraries.sln
@@ -1,8 +1,5 @@

Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2013
-VisualStudioVersion = 12.0.21005.1
-MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{868850B4-1073-41A1-ABA8-A3B465880148}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Common", "src\Common\Common.csproj", "{856A1D19-C3BF-439A-BEBF-E822A332BC12}"
@@ -39,12 +36,15 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "nuget specifications", "nug
src\PackageSpecs\Microsoft.WindowsAzure.Management.Compute.nuspec = src\PackageSpecs\Microsoft.WindowsAzure.Management.Compute.nuspec
src\PackageSpecs\Microsoft.WindowsAzure.Management.Libraries.nuspec = src\PackageSpecs\Microsoft.WindowsAzure.Management.Libraries.nuspec
src\PackageSpecs\Microsoft.WindowsAzure.Management.nuspec = src\PackageSpecs\Microsoft.WindowsAzure.Management.nuspec
+ src\PackageSpecs\Microsoft.WindowsAzure.Management.Scheduler.nuspec = src\PackageSpecs\Microsoft.WindowsAzure.Management.Scheduler.nuspec
src\PackageSpecs\Microsoft.WindowsAzure.Management.Storage.nuspec = src\PackageSpecs\Microsoft.WindowsAzure.Management.Storage.nuspec
src\PackageSpecs\Microsoft.WindowsAzure.Management.VirtualNetworks.nuspec = src\PackageSpecs\Microsoft.WindowsAzure.Management.VirtualNetworks.nuspec
src\PackageSpecs\Microsoft.WindowsAzure.Management.WebSites.nuspec = src\PackageSpecs\Microsoft.WindowsAzure.Management.WebSites.nuspec
src\PackageSpecs\NuGetSpecs.proj = src\PackageSpecs\NuGetSpecs.proj
EndProjectSection
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchedulerManagement", "src\SchedulerManagement\SchedulerManagement.csproj", "{A3FD3224-3058-48CC-961F-E89D5DCB028D}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -79,6 +79,10 @@ Global
{2B6D304F-5DC0-4052-A8AB-80E53C291E5F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2B6D304F-5DC0-4052-A8AB-80E53C291E5F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2B6D304F-5DC0-4052-A8AB-80E53C291E5F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A3FD3224-3058-48CC-961F-E89D5DCB028D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A3FD3224-3058-48CC-961F-E89D5DCB028D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A3FD3224-3058-48CC-961F-E89D5DCB028D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A3FD3224-3058-48CC-961F-E89D5DCB028D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -91,5 +95,6 @@ Global
{77F0BEC3-FBCD-43A4-AF45-8A55846A6897} = {868850B4-1073-41A1-ABA8-A3B465880148}
{7E8328EC-E439-4CF2-B375-16EB2EDAF34D} = {868850B4-1073-41A1-ABA8-A3B465880148}
{2B6D304F-5DC0-4052-A8AB-80E53C291E5F} = {868850B4-1073-41A1-ABA8-A3B465880148}
+ {A3FD3224-3058-48CC-961F-E89D5DCB028D} = {868850B4-1073-41A1-ABA8-A3B465880148}
EndGlobalSection
EndGlobal
View
12 libraries/libraries.msbuild
@@ -21,7 +21,6 @@
The release notes can also use token replacement to share common information.
-->
<PropertyGroup>
- <BaselineCommonPackageVersion>0.9.0-preview</BaselineCommonPackageVersion>
<BaselineReleaseNotes>PREVIEW RELEASE</BaselineReleaseNotes>
</PropertyGroup>
@@ -335,7 +334,7 @@
<Target Name="BuildEngineeringDependencies">
<MSBuild Projects="..\tools\Microsoft.WindowsAzure.Build.Tasks\Microsoft.WindowsAzure.Build.Tasks.csproj"
Targets="Build"
- Properties="Configuration=Debug" />
+ Properties="Configuration=Debug;Platform=AnyCPU" />
</Target>
<!--
@@ -388,7 +387,6 @@
changes before commiting to Git.
-->
<PropertyGroup>
- <BaselineCommonPackageVersionReplacementToken>__BASELINE_COMMON_VERSION__</BaselineCommonPackageVersionReplacementToken>
<BaselineReleaseNotesReplacementToken>__BASELINE_RELEASE_NOTES__</BaselineReleaseNotesReplacementToken>
</PropertyGroup>
<Target Name="BurnBuildVersions"
@@ -409,13 +407,11 @@
<Message Text="Destructive burn of NuGet dependency versions in .nuspec files." />
<ItemGroup>
- <NuspecFilesToUpdate Include="$(ProductSourceFolder)\**\Microsoft.WindowsAzure.*.nuspec">
- <SetPackageVersion>$(SignalRPackageVersion)</SetPackageVersion>
- </NuspecFilesToUpdate>
+ <NuspecFilesToUpdate Include="$(ProductSourceFolder)\**\Microsoft.WindowsAzure.*.nuspec" />
</ItemGroup>
<RegexReplacementTask Files="@(NuspecFilesToUpdate)"
- Find="__BASELINE_COMMON_VERSION__"
- Replace="$(BaselineCommonPackageVersion)$(BuildVersionSuffix)$(AdditionalVersionSuffix)"
+ Find="__VERSION_%(SdkNuGetPackage.Identity)__"
+ Replace="%(SdkNuGetPackage.PackageVersion)$(BuildVersionSuffix)$(AdditionalVersionSuffix)"
LogReplacement="true" />
<RegexReplacementTask Files="@(NuspecFilesToUpdate)"
Find="__BASELINE_RELEASE_NOTES__"
View
4 libraries/src/Common/Exception/CloudException.cs
@@ -37,15 +37,15 @@ public class CloudException : Exception
/// <remarks>
/// This is included by default in the Message property.
/// </remarks>
- public string ErrorMessage { get; protected set; }
+ public string ErrorMessage { get; set; }
/// <summary>
/// Gets the error code returned from the server.
/// </summary>
/// <remarks>
/// This is included by default in the Message property.
/// </remarks>
- public string ErrorCode { get; protected set; }
+ public string ErrorCode { get; set; }
/// <summary>
/// Gets information about the associated HTTP request.
View
10 libraries/src/Common/Internals/TypeConversion.cs
@@ -94,5 +94,15 @@ public static string To8601String(this TimeSpan timespan)
{
return XmlConvert.ToString(timespan);
}
+
+ /// <summary>
+ /// Convert a string from ISO 8601 format to a TimeSpan instance.
+ /// </summary>
+ /// <param name="value">Value to parse</param>
+ /// <returns>The resulting timespan</returns>
+ public static TimeSpan From8601TimeSpan(string value)
+ {
+ return XmlConvert.ToTimeSpan(value);
+ }
}
}
View
1,570 libraries/src/Management/ManagementClient.cs
785 additions, 785 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
7 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Common.nuspec
@@ -14,7 +14,10 @@
<summary>Provides infrastructure for common error handling, tracing, configuration, and HTTP/REST-based pipeline manipulation. The package also exposes the CloudContext type, which enables centralized discovery of available Windows Azure libraries.</summary>
<description>Provides infrastructure for common error handling, tracing, configuration, and HTTP/REST-based pipeline manipulation. The package also exposes the CloudContext type, which enables centralized discovery of available Windows Azure libraries.
-Supported Platforms:
+.NET Framework Recommended during Preview:
+At this time, applications looking to use the Windows Azure Management Libraries should use the .NET Framework. Management operations require the X509Certificate2 type that is not present in the Portable Class Library API surface area. The Common.NetFramework library exposes this functionality. Looking to the future, we are enabling PCL early: Windows Azure Active Directory integration enables token-based authentication. Coupled with appropriate platform-specific libraries, in the future more platforms will light up with support for managing Windows Azure services.
+
+Supported Portable Library Platforms:
- .NET Framework 4.5, 4.5.1
- .NET for Windows Store apps
- Windows Phone 8
@@ -32,7 +35,7 @@ Supported Platforms:
</group>
</references>
<dependencies>
- <dependency id="Microsoft.WindowsAzure.Common.Dependencies" version="__BASELINE_COMMON_VERSION__" />
+ <dependency id="Microsoft.WindowsAzure.Common.Dependencies" version="__VERSION_Microsoft.WindowsAzure.Common.Dependencies__" />
</dependencies>
</metadata>
<files>
View
2 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Management.Compute.nuspec
@@ -21,7 +21,7 @@
</group>
</references>
<dependencies>
- <dependency id="Microsoft.WindowsAzure.Common" version="__BASELINE_COMMON_VERSION__" />
+ <dependency id="Microsoft.WindowsAzure.Common" version="__VERSION_Microsoft.WindowsAzure.Common__" />
</dependencies>
</metadata>
<files>
View
16 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Management.Libraries.nuspec
@@ -12,16 +12,20 @@
<iconUrl>http://go.microsoft.com/fwlink/?LinkID=288890</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<summary>This set of packages open up a rich surface area of Windows Azure services, giving you the power to automate, deploy, and test cloud infrastructure with ease. These services support Windows Azure Virtual Machines, Hosted Services, Storage, Virtual Networks, Web Sites and core data center infrastructure management.</summary>
- <description>This set of packages open up a rich surface area of Windows Azure services, giving you the power to automate, deploy, and test cloud infrastructure with ease. These services support Windows Azure Virtual Machines, Hosted Services, Storage, Virtual Networks, Web Sites and core data center infrastructure management.</description>
+ <description>This set of packages open up a rich surface area of Windows Azure services, giving you the power to automate, deploy, and test cloud infrastructure with ease. These services support Windows Azure Virtual Machines, Hosted Services, Storage, Virtual Networks, Web Sites and core data center infrastructure management.
+
+.NET Framework Recommended during Preview:
+At this time, applications looking to use the Windows Azure Management Libraries should use the .NET Framework. Management operations require the X509Certificate2 type that is not present in the Portable Class Library API surface area. The Common.NetFramework library exposes this functionality. Looking to the future, we are enabling PCL early: Windows Azure Active Directory integration enables token-based authentication. Coupled with appropriate platform-specific libraries, in the future more platforms will light up with support for managing Windows Azure services.
+</description>
<copyright>Copyright © Microsoft Corporation</copyright>
<tags>windowsazureofficial management cloud libraries "windows azure management"</tags>
<dependencies>
<group>
- <dependency id="Microsoft.WindowsAzure.Management" version="__BASELINE_COMMON_VERSION__" />
- <dependency id="Microsoft.WindowsAzure.Management.Compute" version="__BASELINE_COMMON_VERSION__" />
- <dependency id="Microsoft.WindowsAzure.Management.Storage" version="__BASELINE_COMMON_VERSION__" />
- <dependency id="Microsoft.WindowsAzure.Management.VirtualNetworks" version="__BASELINE_COMMON_VERSION__" />
- <dependency id="Microsoft.WindowsAzure.Management.WebSites" version="__BASELINE_COMMON_VERSION__" />
+ <dependency id="Microsoft.WindowsAzure.Management" version="__VERSION_Microsoft.WindowsAzure.Management__" />
+ <dependency id="Microsoft.WindowsAzure.Management.Compute" version="__VERSION_Microsoft.WindowsAzure.Management.Compute__" />
+ <dependency id="Microsoft.WindowsAzure.Management.Storage" version="__VERSION_Microsoft.WindowsAzure.Management.Storage__" />
+ <dependency id="Microsoft.WindowsAzure.Management.VirtualNetworks" version="__VERSION_Microsoft.WindowsAzure.Management.VirtualNetworks__" />
+ <dependency id="Microsoft.WindowsAzure.Management.WebSites" version="__VERSION_Microsoft.WindowsAzure.Management.WebSites__" />
</group>
</dependencies>
</metadata>
View
36 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Management.Scheduler.nuspec
@@ -0,0 +1,36 @@
+<?xml version="1.0"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
+ <metadata minClientVersion="2.5">
+ <id>Microsoft.WindowsAzure.Management.Scheduler</id>
+ <title>Windows Azure Scheduler Management Library</title>
+
+ <releaseNotes>PREVIEW RELEASE</releaseNotes>
+
+ <version>$version$</version>
+ <authors>Microsoft</authors>
+ <owners>azure-sdk, Microsoft</owners>
+ <licenseUrl>http://go.microsoft.com/fwlink/?LinkId=235170</licenseUrl>
+ <projectUrl>https://github.com/WindowsAzure/azure-sdk-for-net</projectUrl>
+ <iconUrl>http://go.microsoft.com/fwlink/?LinkID=288890</iconUrl>
+ <requireLicenseAcceptance>true</requireLicenseAcceptance>
+ <summary>Provides Windows Azure Scheduler management operations including the ability to create, update and delete scheduled jobs and get job status and history.</summary>
+ <description>Provides Windows Azure Scheduler management operations including the ability to create, update and delete scheduled jobs and get job status and history.</description>
+ <copyright>Copyright © Microsoft Corporation</copyright>
+ <tags>Microsoft "Windows Azure" Azure scheduler REST HTTP cron scheduler client windowsazureofficial</tags>
+ <references>
+ <group targetFramework="portable-net45+sl50+wp80+win">
+ <reference file="Microsoft.WindowsAzure.Management.Scheduler.dll" />
+ </group>
+ </references>
+ <dependencies>
+ <dependency id="Microsoft.WindowsAzure.Common" version="__VERSION_Microsoft.WindowsAzure.Common__" />
+ </dependencies>
+ </metadata>
+ <files>
+ <file src="SchedulerManagement\**\*.cs" target="src" />
+
+ <file src="..\binaries\Microsoft.WindowsAzure.Management.Scheduler.dll" target="lib\portable-net45+sl50+wp80+win" />
+ <file src="..\binaries\Microsoft.WindowsAzure.Management.Scheduler.pdb" target="lib\portable-net45+sl50+wp80+win" />
+ <file src="..\binaries\Microsoft.WindowsAzure.Management.Scheduler.xml" target="lib\portable-net45+sl50+wp80+win" />
+ </files>
+</package>
View
2 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Management.Storage.nuspec
@@ -21,7 +21,7 @@
</group>
</references>
<dependencies>
- <dependency id="Microsoft.WindowsAzure.Common" version="__BASELINE_COMMON_VERSION__" />
+ <dependency id="Microsoft.WindowsAzure.Common" version="__VERSION_Microsoft.WindowsAzure.Common__" />
</dependencies>
</metadata>
<files>
View
2 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Management.VirtualNetworks.nuspec
@@ -21,7 +21,7 @@
</group>
</references>
<dependencies>
- <dependency id="Microsoft.WindowsAzure.Common" version="__BASELINE_COMMON_VERSION__" />
+ <dependency id="Microsoft.WindowsAzure.Common" version="__VERSION_Microsoft.WindowsAzure.Common__" />
</dependencies>
</metadata>
<files>
View
2 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Management.WebSites.nuspec
@@ -21,7 +21,7 @@
</group>
</references>
<dependencies>
- <dependency id="Microsoft.WindowsAzure.Common" version="__BASELINE_COMMON_VERSION__" />
+ <dependency id="Microsoft.WindowsAzure.Common" version="__VERSION_Microsoft.WindowsAzure.Common__" />
</dependencies>
</metadata>
<files>
View
2 libraries/src/PackageSpecs/Microsoft.WindowsAzure.Management.nuspec
@@ -21,7 +21,7 @@
</group>
</references>
<dependencies>
- <dependency id="Microsoft.WindowsAzure.Common" version="__BASELINE_COMMON_VERSION__" />
+ <dependency id="Microsoft.WindowsAzure.Common" version="__VERSION_Microsoft.WindowsAzure.Common__" />
</dependencies>
</metadata>
<files>
View
19 libraries/src/PackageSpecs/NuGetSpecs.proj
@@ -6,38 +6,43 @@
<ItemGroup>
<!-- Shared Dependencies -->
<SdkNuGetPackage Include="Microsoft.WindowsAzure.Common.Dependencies">
- <PackageVersion>$(BaselineCommonPackageVersion)</PackageVersion>
+ <PackageVersion>0.9.0-preview</PackageVersion>
<SkipSymbolSourcePackage>true</SkipSymbolSourcePackage>
</SdkNuGetPackage>
<!-- Common Core -->
<SdkNuGetPackage Include="Microsoft.WindowsAzure.Common">
- <PackageVersion>$(BaselineCommonPackageVersion)</PackageVersion>
+ <PackageVersion>0.9.1-preview</PackageVersion>
</SdkNuGetPackage>
<!-- Infrastructure, Storage, Compute, Virtual Network Management and Virtual Network Libraries -->
<SdkNuGetPackage Include="Microsoft.WindowsAzure.Management">
- <PackageVersion>$(BaselineCommonPackageVersion)</PackageVersion>
+ <PackageVersion>0.9.1-preview</PackageVersion>
</SdkNuGetPackage>
<SdkNuGetPackage Include="Microsoft.WindowsAzure.Management.VirtualNetworks">
- <PackageVersion>$(BaselineCommonPackageVersion)</PackageVersion>
+ <PackageVersion>0.9.0-preview</PackageVersion>
</SdkNuGetPackage>
<SdkNuGetPackage Include="Microsoft.WindowsAzure.Management.Compute">
<PackageVersion>0.9.2-preview</PackageVersion>
</SdkNuGetPackage>
<SdkNuGetPackage Include="Microsoft.WindowsAzure.Management.Storage">
- <PackageVersion>$(BaselineCommonPackageVersion)</PackageVersion>
+ <PackageVersion>0.9.0-preview</PackageVersion>
+ </SdkNuGetPackage>
+
+ <!-- Windows Azure Scheduler -->
+ <SdkNuGetPackage Include="Microsoft.WindowsAzure.Management.Scheduler">
+ <PackageVersion>0.9.0-preview</PackageVersion>
</SdkNuGetPackage>
<!-- Management Libraries is a group of all our management packages -->
<SdkNuGetPackage Include="Microsoft.WindowsAzure.Management.Libraries">
- <PackageVersion>$(BaselineCommonPackageVersion)</PackageVersion>
+ <PackageVersion>0.9.1-preview</PackageVersion>
<SkipSymbolSourcePackage>true</SkipSymbolSourcePackage>
</SdkNuGetPackage>
<!-- Web Sites -->
<SdkNuGetPackage Include="Microsoft.WindowsAzure.Management.WebSites">
- <PackageVersion>$(BaselineCommonPackageVersion)</PackageVersion>
+ <PackageVersion>0.9.0-preview</PackageVersion>
</SdkNuGetPackage>
</ItemGroup>
View
81 libraries/src/SchedulerManagement/CloudServiceManagementClient.Customization.cs
@@ -0,0 +1,81 @@
+//
+// Copyright (c) Microsoft. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+using System;
+using System.Collections.Generic;
+using System.Net.Http;
+using Microsoft.WindowsAzure.Common;
+using Microsoft.WindowsAzure.Common.Internals;
+using Microsoft.WindowsAzure.Management.Scheduler;
+
+namespace Microsoft.WindowsAzure
+{
+ public static class CloudServiceManagementDiscoveryExtensions
+ {
+ public static CloudServiceManagementClient CreateCloudServiceManagementClient(this CloudClients clients, SubscriptionCloudCredentials credentials)
+ {
+ return new CloudServiceManagementClient(credentials);
+ }
+
+ public static CloudServiceManagementClient CreateCloudServiceManagementClient(this CloudClients clients, SubscriptionCloudCredentials credentials, Uri baseUri)
+ {
+ return new CloudServiceManagementClient(credentials, baseUri);
+ }
+
+ public static CloudServiceManagementClient CreateCloudServiceManagementClient(this CloudClients clients)
+ {
+ return ConfigurationHelper.CreateFromSettings<CloudServiceManagementClient>(CloudServiceManagementClient.Create);
+ }
+ }
+}
+
+namespace Microsoft.WindowsAzure.Management.Scheduler
+{
+ public partial class CloudServiceManagementClient
+ {
+ public static CloudServiceManagementClient Create(IDictionary<string, object> settings)
+ {
+ if (settings == null)
+ {
+ throw new ArgumentNullException("settings");
+ }
+
+ SubscriptionCloudCredentials credentials = ConfigurationHelper.GetCredentials<SubscriptionCloudCredentials>(settings);
+
+ Uri baseUri = ConfigurationHelper.GetUri(settings, "BaseUri", false);
+
+ return baseUri != null ?
+ new CloudServiceManagementClient(credentials, baseUri) :
+ new CloudServiceManagementClient(credentials);
+ }
+
+ protected override void Clone(ServiceClient<CloudServiceManagementClient> client)
+ {
+ base.Clone(client);
+ CloudServiceManagementClient management = client as CloudServiceManagementClient;
+ if (management != null)
+ {
+ management._credentials = Credentials;
+ management._baseUri = BaseUri;
+ management.Credentials.InitializeServiceClient(management);
+ }
+ }
+
+ public CloudServiceManagementClient WithHandler(DelegatingHandler handler)
+ {
+ return (CloudServiceManagementClient)WithHandler(new CloudServiceManagementClient(), handler);
+ }
+ }
+}
View
2,566 libraries/src/SchedulerManagement/CloudServiceManagementClient.cs
2,566 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
32 libraries/src/SchedulerManagement/Properties/AssemblyInfo.cs
@@ -0,0 +1,32 @@
+//
+// Copyright (c) Microsoft. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+using System.Reflection;
+using System.Resources;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Windows Azure Scheduler Management Library")]
+[assembly: AssemblyDescription("Provides Windows Azure Scheduler management operations including the ability to create, update and delete scheduled jobs and get job status and history.")]
+
+[assembly: AssemblyVersion("0.9.0.0")]
+[assembly: AssemblyFileVersion("0.9.0.0")]
+
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("Windows Azure .NET SDK")]
+[assembly: AssemblyCopyright("Copyright © Microsoft Corporation")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+[assembly: NeutralResourcesLanguage("en")]
View
85 libraries/src/SchedulerManagement/SchedulerClient.Customization.cs
@@ -0,0 +1,85 @@
+//
+// Copyright (c) Microsoft. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+using System;
+using System.Collections.Generic;
+using System.Net.Http;
+using Microsoft.WindowsAzure.Common;
+using Microsoft.WindowsAzure.Common.Internals;
+using Microsoft.WindowsAzure.Scheduler;
+
+namespace Microsoft.WindowsAzure
+{
+ public static class SchedulerDiscoveryExtensions
+ {
+ public static SchedulerClient CreateSchedulerClient(this CloudClients clients, SubscriptionCloudCredentials credentials, string cloudServiceName, string jobCollectionName)
+ {
+ return new SchedulerClient(credentials, cloudServiceName, jobCollectionName);
+ }
+
+ public static SchedulerClient CreateSchedulerClient(this CloudClients clients, SubscriptionCloudCredentials credentials, string cloudServiceName, string jobCollectionName, Uri baseUri)
+ {
+ return new SchedulerClient(credentials, cloudServiceName, jobCollectionName, baseUri);
+ }
+
+ public static SchedulerClient CreateSchedulerClient(this CloudClients clients)
+ {
+ return ConfigurationHelper.CreateFromSettings<SchedulerClient>(SchedulerClient.Create);
+ }
+ }
+}
+
+namespace Microsoft.WindowsAzure.Scheduler
+{
+ public partial class SchedulerClient
+ {
+ public static SchedulerClient Create(IDictionary<string, object> settings)
+ {
+ if (settings == null)
+ {
+ throw new ArgumentNullException("settings");
+ }
+
+ SubscriptionCloudCredentials credentials = ConfigurationHelper.GetCredentials<SubscriptionCloudCredentials>(settings);
+
+ string cloudServiceName = ConfigurationHelper.GetString(settings, "CloudServiceName", true);
+ string jobCollectionName = ConfigurationHelper.GetString(settings, "JobCollectionName", true);
+ Uri baseUri = ConfigurationHelper.GetUri(settings, "BaseUri", false);
+
+ return baseUri != null ?
+ new SchedulerClient(credentials, cloudServiceName, jobCollectionName, baseUri) :
+ new SchedulerClient(credentials, cloudServiceName, jobCollectionName);
+ }
+
+ protected override void Clone(ServiceClient<SchedulerClient> client)
+ {
+ base.Clone(client);
+ SchedulerClient management = client as SchedulerClient;
+ if (management != null)
+ {
+ management._credentials = Credentials;
+ management._cloudServiceName = CloudServiceName;
+ management._jobCollectionName = JobCollectionName;
+ management._baseUri = BaseUri;
+ management.Credentials.InitializeServiceClient(management);
+ }
+ }
+
+ public SchedulerClient WithHandler(DelegatingHandler handler)
+ {
+ return (SchedulerClient)WithHandler(new SchedulerClient(), handler);
+ }
+ }
+}
View
6,190 libraries/src/SchedulerManagement/SchedulerClient.cs
6,190 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
92 libraries/src/SchedulerManagement/SchedulerManagement.csproj
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{A3FD3224-3058-48CC-961F-E89D5DCB028D}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Microsoft.WindowsAzure.Scheduler</RootNamespace>
+ <AssemblyName>Microsoft.WindowsAzure.Management.Scheduler</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Profile158</TargetFrameworkProfile>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <DocumentationFile>bin\Debug\Microsoft.WindowsAzure.Management.Scheduler.xml</DocumentationFile>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Microsoft.Threading.Tasks">
+ <HintPath>..\..\packages\Microsoft.Bcl.Async.1.0.16\lib\portable-net40+sl4+win8+wp71\Microsoft.Threading.Tasks.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.Threading.Tasks.Extensions">
+ <HintPath>..\..\packages\Microsoft.Bcl.Async.1.0.16\lib\portable-net40+sl4+win8+wp71\Microsoft.Threading.Tasks.Extensions.dll</HintPath>
+ </Reference>
+ <Reference Include="Newtonsoft.Json">
+ <HintPath>..\..\packages\Newtonsoft.Json.5.0.6\lib\portable-net40+sl4+wp7+win8\Newtonsoft.Json.dll</HintPath>
+ </Reference>
+ <Reference Include="System.IO">
+ <HintPath>..\..\packages\Microsoft.Bcl.1.1.3\lib\portable-net40+sl5+win8+wp8\System.IO.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Net.Http">
+ <HintPath>..\..\packages\Microsoft.Net.Http.2.2.15\lib\portable-net40+sl4+win8+wp71\System.Net.Http.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Net.Http.Extensions">
+ <HintPath>..\..\packages\Microsoft.Net.Http.2.2.15\lib\portable-net40+sl4+win8+wp71\System.Net.Http.Extensions.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Net.Http.Primitives">
+ <HintPath>..\..\packages\Microsoft.Net.Http.2.2.15\lib\portable-net40+sl4+win8+wp71\System.Net.Http.Primitives.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Runtime">
+ <HintPath>..\..\packages\Microsoft.Bcl.1.1.3\lib\portable-net40+sl5+win8+wp8\System.Runtime.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Threading.Tasks">
+ <HintPath>..\..\packages\Microsoft.Bcl.1.1.3\lib\portable-net40+sl5+win8+wp8\System.Threading.Tasks.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="CloudServiceManagementClient.cs" />
+ <Compile Include="CloudServiceManagementClient.Customization.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="SchedulerClient.cs" />
+ <Compile Include="SchedulerClient.Customization.cs" />
+ <Compile Include="SchedulerManagementClient.cs" />
+ <Compile Include="SchedulerManagementClient.Customization.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Common\Common.csproj">
+ <Project>{856a1d19-c3bf-439a-bebf-e822a332bc12}</Project>
+ <Name>Common</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
+ <Import Project="..\..\packages\Microsoft.Bcl.Build.1.0.10\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\..\packages\Microsoft.Bcl.Build.1.0.10\tools\Microsoft.Bcl.Build.targets')" />
+ <Target Name="EnsureBclBuildImported" BeforeTargets="BeforeBuild" Condition="'$(BclBuildImported)' == ''">
+ <Error Condition="!Exists('..\..\packages\Microsoft.Bcl.Build.1.0.10\tools\Microsoft.Bcl.Build.targets')" Text="This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567." HelpKeyword="BCLBUILD2001" />
+ <Error Condition="Exists('..\..\packages\Microsoft.Bcl.Build.1.0.10\tools\Microsoft.Bcl.Build.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" />
+ </Target>
+ <Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
+ <Import Project="$(ProjectDir)\..\libraries.targets" />
+</Project>
View
81 libraries/src/SchedulerManagement/SchedulerManagementClient.Customization.cs
@@ -0,0 +1,81 @@
+//
+// Copyright (c) Microsoft. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+using System;
+using System.Collections.Generic;
+using System.Net.Http;
+using Microsoft.WindowsAzure.Common;
+using Microsoft.WindowsAzure.Common.Internals;
+using Microsoft.WindowsAzure.Management.Scheduler;
+
+namespace Microsoft.WindowsAzure
+{
+ public static class SchedulerManagementDiscoveryExtensions
+ {
+ public static SchedulerManagementClient CreateSchedulerManagementClient(this CloudClients clients, SubscriptionCloudCredentials credentials)
+ {
+ return new SchedulerManagementClient(credentials);
+ }
+
+ public static SchedulerManagementClient CreateSchedulerManagementClient(this CloudClients clients, SubscriptionCloudCredentials credentials, Uri baseUri)
+ {
+ return new SchedulerManagementClient(credentials, baseUri);
+ }
+
+ public static SchedulerManagementClient CreateSchedulerManagementClient(this CloudClients clients)
+ {
+ return ConfigurationHelper.CreateFromSettings<SchedulerManagementClient>(SchedulerManagementClient.Create);
+ }
+ }
+}
+
+namespace Microsoft.WindowsAzure.Management.Scheduler
+{
+ public partial class SchedulerManagementClient
+ {
+ public static SchedulerManagementClient Create(IDictionary<string, object> settings)
+ {
+ if (settings == null)
+ {
+ throw new ArgumentNullException("settings");
+ }
+
+ SubscriptionCloudCredentials credentials = ConfigurationHelper.GetCredentials<SubscriptionCloudCredentials>(settings);
+
+ Uri baseUri = ConfigurationHelper.GetUri(settings, "BaseUri", false);
+
+ return baseUri != null ?
+ new SchedulerManagementClient(credentials, baseUri) :
+ new SchedulerManagementClient(credentials);
+ }
+
+ protected override void Clone(ServiceClient<SchedulerManagementClient> client)
+ {
+ base.Clone(client);
+ SchedulerManagementClient management = client as SchedulerManagementClient;
+ if (management != null)
+ {
+ management._credentials = Credentials;
+ management._baseUri = BaseUri;
+ management.Credentials.InitializeServiceClient(management);
+ }
+ }
+
+ public SchedulerManagementClient WithHandler(DelegatingHandler handler)
+ {
+ return (SchedulerManagementClient)WithHandler(new SchedulerManagementClient(), handler);
+ }
+ }
+}
View
3,485 libraries/src/SchedulerManagement/SchedulerManagementClient.cs
3,485 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
8 libraries/src/SchedulerManagement/packages.config
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="Microsoft.Bcl" version="1.1.3" targetFramework="portable-net45+sl50+wp80+win" />
+ <package id="Microsoft.Bcl.Async" version="1.0.16" targetFramework="portable-net45+sl50+wp80+win" />
+ <package id="Microsoft.Bcl.Build" version="1.0.10" targetFramework="portable-net45+sl50+wp80+win" />
+ <package id="Microsoft.Net.Http" version="2.2.15" targetFramework="portable-net45+sl50+wp80+win" />
+ <package id="Newtonsoft.Json" version="5.0.6" targetFramework="portable-net45+sl50+wp80+win" />
+</packages>
View
2 libraries/src/libraries.targets
@@ -50,7 +50,7 @@
</PropertyGroup>
<PropertyGroup>
- <!-- Turn off XML documentation warnings. This is only for Oct. 2013 -->
+ <!-- Turn off XML documentation warnings. This is only for preview -->
<NoWarn>1591</NoWarn>
</PropertyGroup>
View
BIN microsoft-azure-api/Configuration/Microsoft.WindowsAzure.Configuration/GlobalSuppressions.cs
Binary file not shown.
View
4 ...n/Microsoft.WindowsAzure.Configuration/Microsoft.WindowsAzure.ConfigurationManager.nuspec
@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Microsoft.WindowsAzure.ConfigurationManager</id>
- <version>1.8.0.0</version>
+ <version>2.0.2.0</version>
<title>Windows Azure Configuration Manager</title>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
@@ -17,4 +17,4 @@
<reference file="Microsoft.WindowsAzure.Configuration.dll" />
</references>
</metadata>
-</package>
+</package>
View
2 ...t-azure-api/Configuration/Microsoft.WindowsAzure.Configuration/Properties/AssemblyInfo.cs
@@ -33,5 +33,5 @@
[assembly: Guid("3a4d8eda-db18-4c6f-9f84-4576bb255f30")]
[assembly: AssemblyVersion("2.0.0.0")]
-[assembly: AssemblyFileVersion("2.0.0.0")]
+[assembly: AssemblyFileVersion("2.0.2.0")]
[assembly: NeutralResourcesLanguageAttribute("en")]

0 comments on commit e9329d8

Please sign in to comment.