Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Azure/Constants.cs @ 7326

Last change on this file since 7326 was 7299, checked in by spimming, 12 years ago

#1680:

  • Azure management utils initial version added
  • View for cloud resources
File size: 3.7 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using System.Xml.Linq;
23namespace HeuristicLab.Clients.Hive.CloudManager.Azure {
24  public static class Constants {
25    #region HeuristicLab
26
27    public const string HLSlaveRoleName = "HeuristicLab.Clients.Hive.Slave.AzureClient";
28
29    #endregion
30
31    #region Service Management Versioning
32    // see: http://msdn.microsoft.com/en-us/library/windowsazure/gg592580.aspx
33
34    public const string APIVersionDefault = APIVersion20111001;
35    public const string APIVersion20111001 = "2011-10-01";
36    public const string APIVersion20110225 = "2011-02-25";
37
38    #endregion
39
40    #region Namespaces
41
42    public static XNamespace NSWindowsAzure { get { return "http://schemas.microsoft.com/windowsazure"; } }
43    public static XNamespace NSSchemaMicrosoft { get { return "http://schemas.microsoft.com/"; } }
44    public static XNamespace NSServiceConfiguration { get { return "http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration"; } }
45
46    #endregion
47
48    #region Web Request
49
50    public const string HeaderRequestId = "x-ms-request-id";
51    public const string HeaderVersionName = "x-ms-version";
52    public const string ContentTypeAppXml = "application/xml";
53
54    public const string HttpMethodPOST = "POST";
55    public const string HttpMethodGET = "GET";
56    public const string HttpMethodDELETE = "DELETE";
57
58    #endregion
59
60    #region Service Management URIs
61    // see: http://msdn.microsoft.com/en-us/library/ee460786.aspx
62
63    public const string URISubscriptionFormat = "https://management.core.windows.net/{0}";
64    public const string URIHostedServiceFormat = "https://management.core.windows.net/{0}/services/hostedservices";
65    public const string URISpecificHostedServiceFormat = "https://management.core.windows.net/{0}/services/hostedservices/{1}";
66    public const string URILocationsFormat = "https://management.core.windows.net/{0}/locations";
67    public const string URIAffinityGroupFormat = "https://management.core.windows.net/{0}/affinitygroups";
68    public const string URICertificateFormat = "https://management.core.windows.net/{0}/services/hostedservices/{1}/certificates";
69    public const string URIDeploymentFormat = "https://management.core.windows.net/{0}/services/hostedservices/{1}/deploymentslots/{2}";
70    public const string URISpecificDeploymentFormat = "https://management.core.windows.net/{0}/services/hostedservices/{1}/deployments/{2}";
71    public const string URIDeploymentConfigurationFormat = "https://management.core.windows.net/{0}/services/hostedservices/{1}/deploymentslots/{2}/?comp=config";
72    public const string URISpecificDeploymentConfigurationFormat = "https://management.core.windows.net/{0}/services/hostedservices/{1}/deployments/{2}/?comp=config";
73    public const string URIChangeDeploymentStatusFormat = "https://management.core.windows.net/{0}/services/hostedservices/{1}/deployments/{2}/?comp=status";
74
75    #endregion
76  }
77}
Note: See TracBrowser for help on using the repository browser.