当前位置: 首页>>代码示例>>C#>>正文


C# OvhApi.ToString方法代码示例

本文整理汇总了C#中OvhApi.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# OvhApi.ToString方法的具体用法?C# OvhApi.ToString怎么用?C# OvhApi.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在OvhApi的用法示例。


在下文中一共展示了OvhApi.ToString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetPriceHostingPrivatedatabase

		/// <summary>
		/// Get the price for a private database
		/// <param name="privateDatabaseName">PrivateDatabase</param>
		/// </summary>
		public async Task<OvhApi.Models.Order.Price> GetPriceHostingPrivatedatabase(OvhApi.Models.Price.Hosting.PrivateDatabaseEnum privateDatabaseName)
		{
			if(ConsumerKey == null)
				throw new OvhException("This request must be authenticated");
			Ensure.NotNull("privateDatabaseName",privateDatabaseName);



return await RawCall<OvhApi.Models.Order.Price>(HttpMethod.Get,String.Format("/price/hosting/privateDatabase/{0}",System.Uri.EscapeDataString(privateDatabaseName.ToString()).Replace("%2B", "+")));
		}
开发者ID:biapar,项目名称:ovhapicil,代码行数:14,代码来源:Operations.cs

示例2: GetDedicatedServerBootOption

		/// <summary>
		/// Get this object properties
		/// <param name="serviceName">The internal name of your dedicated server</param>
		/// <param name="bootId">boot id</param>
		/// <param name="option">The option of this boot</param>
		/// </summary>
		public async Task<OvhApi.Models.Dedicated.Server.NetbootOption> GetDedicatedServerBootOption(string serviceName,long bootId,OvhApi.Models.Dedicated.Server.BootOptionEnum option)
		{
			if(ConsumerKey == null)
				throw new OvhException("This request must be authenticated");
			Ensure.NotNullNorEmpty("serviceName",serviceName);
			Ensure.IdIsValid("bootId",bootId);
			Ensure.NotNull("option",option);



return await RawCall<OvhApi.Models.Dedicated.Server.NetbootOption>(HttpMethod.Get,String.Format("/dedicated/server/{0}/boot/{1}/option/{2}",System.Uri.EscapeDataString(serviceName.ToString()).Replace("%2B", "+"),System.Uri.EscapeDataString(bootId.ToString()).Replace("%2B", "+"),System.Uri.EscapeDataString(option.ToString()).Replace("%2B", "+")));
		}
开发者ID:biapar,项目名称:ovhapicil,代码行数:18,代码来源:Operations.cs

示例3: GetPriceDedicatedcloud2014v1Rbx2bEnterpriseHostHourly

        /// <summary>
        /// Get price of dedicated Cloud hourly host ressources
        /// <param name="hostProfile">type of the hourly ressources you want to order</param>
        /// </summary>
        public OvhApi.Models.Order.Price GetPriceDedicatedcloud2014v1Rbx2bEnterpriseHostHourly(OvhApi.Models.Price.DedicatedCloud._2014v1.Rbx2b.Enterprise.Host.HourlyEnum hostProfile)
        {
            if(ConsumerKey == null)
                throw new OvhException("This request must be authenticated");
            Ensure.NotNull("hostProfile",hostProfile);

            return RawCall<OvhApi.Models.Order.Price>(HttpMethod.Get,String.Format("/price/dedicatedCloud/2014v1/rbx2b/enterprise/host/hourly/{0}",System.Uri.EscapeDataString(hostProfile.ToString()).Replace("%2B", "+")));
        }
开发者ID:biapar,项目名称:ovhapicil,代码行数:12,代码来源:Operations.sync.cs

示例4: GetPriceHpcspotAccountSubscription

		/// <summary>
		/// Get the price of a HPC Spot Account for 1 month
		/// <param name="subscriptionName">Subscription</param>
		/// </summary>
		public async Task<OvhApi.Models.Order.Price> GetPriceHpcspotAccountSubscription(OvhApi.Models.Price.Hpcspot.Account.SubscriptionEnum subscriptionName)
		{
			if(ConsumerKey == null)
				throw new OvhException("This request must be authenticated");
			Ensure.NotNull("subscriptionName",subscriptionName);



return await RawCall<OvhApi.Models.Order.Price>(HttpMethod.Get,String.Format("/price/hpcspot/account/subscription/{0}",System.Uri.EscapeDataString(subscriptionName.ToString()).Replace("%2B", "+")));
		}
开发者ID:biapar,项目名称:ovhapicil,代码行数:14,代码来源:Operations.cs

示例5: DeleteDedicatedNashaPartitionSnapshot

		/// <summary>
		/// Delete a given snapshot
		/// <param name="serviceName">The internal name of your storage</param>
		/// <param name="partitionName">the given name of partition</param>
		/// <param name="snapshotType">the interval of snapshot</param>
		/// </summary>
		public async Task<OvhApi.Models.Dedicated.NasTask.Task> DeleteDedicatedNashaPartitionSnapshot(string serviceName,string partitionName,OvhApi.Models.Dedicated.Storage.SnapshotEnum snapshotType)
		{
			if(ConsumerKey == null)
				throw new OvhException("This request must be authenticated");
			Ensure.NotNullNorEmpty("serviceName",serviceName);
			Ensure.NotNullNorEmpty("partitionName",partitionName);
			Ensure.NotNull("snapshotType",snapshotType);



return await RawCall<OvhApi.Models.Dedicated.NasTask.Task>(HttpMethod.Delete,String.Format("/dedicated/nasha/{0}/partition/{1}/snapshot/{2}",System.Uri.EscapeDataString(serviceName.ToString()).Replace("%2B", "+"),System.Uri.EscapeDataString(partitionName.ToString()).Replace("%2B", "+"),System.Uri.EscapeDataString(snapshotType.ToString()).Replace("%2B", "+")));
		}
开发者ID:biapar,项目名称:ovhapicil,代码行数:18,代码来源:Operations.cs

示例6: GetPriceDedicatedNashaModel

		/// <summary>
		/// Get the price of Nas HA offers
		/// <param name="modelName">capacity in gigabit of Nas Ha</param>
		/// </summary>
		public async Task<OvhApi.Models.Order.Price> GetPriceDedicatedNashaModel(OvhApi.Models.Price.Dedicated.Nasha.ModelEnum modelName)
		{
			if(ConsumerKey == null)
				throw new OvhException("This request must be authenticated");
			Ensure.NotNull("modelName",modelName);



return await RawCall<OvhApi.Models.Order.Price>(HttpMethod.Get,String.Format("/price/dedicated/nasha/model/{0}",System.Uri.EscapeDataString(modelName.ToString()).Replace("%2B", "+")));
		}
开发者ID:biapar,项目名称:ovhapicil,代码行数:14,代码来源:Operations.cs

示例7: GetPriceDedicatedServerBackupstorage

		/// <summary>
		/// Get price of backup storage offer
		/// <param name="capacity">Capacity in gigabytes of backup storage offer</param>
		/// </summary>
		public async Task<OvhApi.Models.Order.Price> GetPriceDedicatedServerBackupstorage(OvhApi.Models.Price.Dedicated.Server.BackupStorageEnum capacity)
		{
			if(ConsumerKey == null)
				throw new OvhException("This request must be authenticated");
			Ensure.NotNull("capacity",capacity);



return await RawCall<OvhApi.Models.Order.Price>(HttpMethod.Get,String.Format("/price/dedicated/server/backupStorage/{0}",System.Uri.EscapeDataString(capacity.ToString()).Replace("%2B", "+")));
		}
开发者ID:biapar,项目名称:ovhapicil,代码行数:14,代码来源:Operations.cs

示例8: GetPriceVpsLowlatModel

        public OvhApi.Models.Order.Price GetPriceVpsLowlatModel(OvhApi.Models.Price.Vps.Lowlat.ModelEnum modelName)
        {
            if(ConsumerKey == null)
                throw new OvhException("This request must be authenticated");
            Ensure.NotNull("modelName",modelName);

            return RawCall<OvhApi.Models.Order.Price>(HttpMethod.Get,String.Format("/price/vps/lowlat/model/{0}",System.Uri.EscapeDataString(modelName.ToString()).Replace("%2B", "+")));
        }
开发者ID:biapar,项目名称:ovhapicil,代码行数:8,代码来源:Operations.sync.cs

示例9: DeleteIpLoadbalancingPortsredirection

		/// <summary>
		/// Delete a port redirection
		/// <param name="serviceName">The internal name of your IP load balancing</param>
		/// <param name="srcPort">The port you want to redirect from</param>
		/// </summary>
		public async Task<OvhApi.Models.Ip.LoadBalancingTask> DeleteIpLoadbalancingPortsredirection(string serviceName,OvhApi.Models.Ip.LoadBalancingAdditionalPortEnum srcPort)
		{
			if(ConsumerKey == null)
				throw new OvhException("This request must be authenticated");
			Ensure.NotNullNorEmpty("serviceName",serviceName);
			Ensure.NotNull("srcPort",srcPort);



return await RawCall<OvhApi.Models.Ip.LoadBalancingTask>(HttpMethod.Delete,String.Format("/ip/loadBalancing/{0}/portsRedirection/{1}",System.Uri.EscapeDataString(serviceName.ToString()).Replace("%2B", "+"),System.Uri.EscapeDataString(srcPort.ToString()).Replace("%2B", "+")));
		}
开发者ID:biapar,项目名称:ovhapicil,代码行数:16,代码来源:Operations.cs

示例10: GetPriceHostingWebSsl

        /// <summary>
        /// Get the price for hosted ssl option
        /// <param name="sslName">Ssl</param>
        /// </summary>
        public OvhApi.Models.Order.Price GetPriceHostingWebSsl(OvhApi.Models.Price.Hosting.Web.SslEnum sslName)
        {
            if(ConsumerKey == null)
                throw new OvhException("This request must be authenticated");
            Ensure.NotNull("sslName",sslName);

            return RawCall<OvhApi.Models.Order.Price>(HttpMethod.Get,String.Format("/price/hosting/web/ssl/{0}",System.Uri.EscapeDataString(sslName.ToString()).Replace("%2B", "+")));
        }
开发者ID:biapar,项目名称:ovhapicil,代码行数:12,代码来源:Operations.sync.cs

示例11: GetPriceVpsCloudOption

        public OvhApi.Models.Order.Price GetPriceVpsCloudOption(OvhApi.Models.Price.Vps.Cloud.OptionEnum optionName)
        {
            if(ConsumerKey == null)
                throw new OvhException("This request must be authenticated");
            Ensure.NotNull("optionName",optionName);

            return RawCall<OvhApi.Models.Order.Price>(HttpMethod.Get,String.Format("/price/vps/cloud/option/{0}",System.Uri.EscapeDataString(optionName.ToString()).Replace("%2B", "+")));
        }
开发者ID:biapar,项目名称:ovhapicil,代码行数:8,代码来源:Operations.sync.cs

示例12: GetPriceDedicatedServerFirewall

        /// <summary>
        /// Get price of available firewall models
        /// <param name="firewallModel">Model of firewall</param>
        /// </summary>
        public OvhApi.Models.Order.Price GetPriceDedicatedServerFirewall(OvhApi.Models.Price.Dedicated.Server.FirewallEnum firewallModel)
        {
            if(ConsumerKey == null)
                throw new OvhException("This request must be authenticated");
            Ensure.NotNull("firewallModel",firewallModel);

            return RawCall<OvhApi.Models.Order.Price>(HttpMethod.Get,String.Format("/price/dedicated/server/firewall/{0}",System.Uri.EscapeDataString(firewallModel.ToString()).Replace("%2B", "+")));
        }
开发者ID:biapar,项目名称:ovhapicil,代码行数:12,代码来源:Operations.sync.cs

示例13: GetPriceDedicatedcloud2014v1Sbg1aInfrastructureHostMonthly

        /// <summary>
        /// Get price of dedicated Cloud monthly host ressources
        /// <param name="hostProfile">type of the monthly ressources you want to order</param>
        /// </summary>
        public OvhApi.Models.Order.Price GetPriceDedicatedcloud2014v1Sbg1aInfrastructureHostMonthly(OvhApi.Models.Price.DedicatedCloud._2014v1.Sbg1a.Infrastructure.Host.MonthlyEnum hostProfile)
        {
            if(ConsumerKey == null)
                throw new OvhException("This request must be authenticated");
            Ensure.NotNull("hostProfile",hostProfile);

            return RawCall<OvhApi.Models.Order.Price>(HttpMethod.Get,String.Format("/price/dedicatedCloud/2014v1/sbg1a/infrastructure/host/monthly/{0}",System.Uri.EscapeDataString(hostProfile.ToString()).Replace("%2B", "+")));
        }
开发者ID:biapar,项目名称:ovhapicil,代码行数:12,代码来源:Operations.sync.cs

示例14: GetPriceDedicatedcloud2014v1Rbx2bInfrastructureFilerMonthly

        /// <summary>
        /// Get price of dedicated Cloud monthly filer ressources
        /// <param name="filerProfile">type of the monthly ressources you want to order</param>
        /// </summary>
        public OvhApi.Models.Order.Price GetPriceDedicatedcloud2014v1Rbx2bInfrastructureFilerMonthly(OvhApi.Models.Price.DedicatedCloud._2014v1.Rbx2b.Infrastructure.Filer.MonthlyEnum filerProfile)
        {
            if(ConsumerKey == null)
                throw new OvhException("This request must be authenticated");
            Ensure.NotNull("filerProfile",filerProfile);

            return RawCall<OvhApi.Models.Order.Price>(HttpMethod.Get,String.Format("/price/dedicatedCloud/2014v1/rbx2b/infrastructure/filer/monthly/{0}",System.Uri.EscapeDataString(filerProfile.ToString()).Replace("%2B", "+")));
        }
开发者ID:biapar,项目名称:ovhapicil,代码行数:12,代码来源:Operations.sync.cs

示例15: GetPriceDomainZoneOption

		/// <summary>
		/// Get price of zone options
		/// <param name="optionName">Option</param>
		/// </summary>
		public async Task<OvhApi.Models.Order.Price> GetPriceDomainZoneOption(OvhApi.Models.Price.Domain.Zone.OptionEnum optionName)
		{
			if(ConsumerKey == null)
				throw new OvhException("This request must be authenticated");
			Ensure.NotNull("optionName",optionName);



return await RawCall<OvhApi.Models.Order.Price>(HttpMethod.Get,String.Format("/price/domain/zone/option/{0}",System.Uri.EscapeDataString(optionName.ToString()).Replace("%2B", "+")));
		}
开发者ID:biapar,项目名称:ovhapicil,代码行数:14,代码来源:Operations.cs


注:本文中的OvhApi.ToString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。