Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
net.minidev.ovh.api.ApiOvhOrder Maven / Gradle / Ivy
package net.minidev.ovh.api;
import com.fasterxml.jackson.core.type.TypeReference;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import net.minidev.ovh.api.cdn.webstorage.OvhOrderStorageEnum;
import net.minidev.ovh.api.cdn.webstorage.OvhOrderTrafficEnum;
import net.minidev.ovh.api.cdnanycast.OvhOrderCacheRuleEnum;
import net.minidev.ovh.api.cdnanycast.OvhOrderQuotaEnum;
import net.minidev.ovh.api.dedicated.OvhNasHAOfferEnum;
import net.minidev.ovh.api.dedicated.OvhNasHAZoneEnum;
import net.minidev.ovh.api.dedicated.server.OvhBackupStorageCapacityEnum;
import net.minidev.ovh.api.dedicated.server.OvhBandwidthOrderEnum;
import net.minidev.ovh.api.dedicated.server.OvhBandwidthOrderTypeEnum;
import net.minidev.ovh.api.dedicated.server.OvhBandwidthvRackOrderEnum;
import net.minidev.ovh.api.dedicated.server.OvhFirewallModelEnum;
import net.minidev.ovh.api.dedicated.server.OvhIpBlockSizeEnum;
import net.minidev.ovh.api.dedicated.server.OvhIpCountryEnum;
import net.minidev.ovh.api.dedicated.server.OvhIpStaticCountryEnum;
import net.minidev.ovh.api.dedicated.server.OvhIpTypeOrderableEnum;
import net.minidev.ovh.api.dedicated.server.OvhOrderableSysFeatureEnum;
import net.minidev.ovh.api.dedicated.server.OvhTrafficOrderEnum;
import net.minidev.ovh.api.dedicated.server.OvhUsbKeyCapacityEnum;
import net.minidev.ovh.api.dedicatedcloud.OvhAdditionalBandwidthEnum;
import net.minidev.ovh.api.dedicatedcloud.OvhIpCountriesEnum;
import net.minidev.ovh.api.dedicatedcloud.OvhOrderableIpBlockRangeEnum;
import net.minidev.ovh.api.dedicatedcloud.ressources.OvhUpgradeRessourceTypeEnum;
import net.minidev.ovh.api.dedicatedcloud.ressources.OvhUpgradeTypeEnum;
import net.minidev.ovh.api.email.domain.OvhOfferEnum;
import net.minidev.ovh.api.email.exchange.OvhAccountQuotaEnum;
import net.minidev.ovh.api.email.exchange.OvhOutlookVersionEnum;
import net.minidev.ovh.api.email.exchange.OvhOvhLicenceEnum;
import net.minidev.ovh.api.freefax.OvhQuantityEnum;
import net.minidev.ovh.api.hosting.privatedatabase.OvhAvailableRamSizeEnum;
import net.minidev.ovh.api.hosting.privatedatabase.OvhDatacenterEnum;
import net.minidev.ovh.api.hosting.privatedatabase.OvhOrderableVersionEnum;
import net.minidev.ovh.api.hosting.web.OvhBandwidthOfferEnum;
import net.minidev.ovh.api.hosting.web.OvhCdnOfferEnum;
import net.minidev.ovh.api.hosting.web.OvhDnsZoneEnum;
import net.minidev.ovh.api.hosting.web.database.OvhSqlPersoOfferEnum;
import net.minidev.ovh.api.hosting.web.module.OvhOrderableNameEnum;
import net.minidev.ovh.api.hosting.web.order.OvhMxPlanEnum;
import net.minidev.ovh.api.license.OvhCloudLinuxVersionEnum;
import net.minidev.ovh.api.license.OvhLicenseTypeEnum;
import net.minidev.ovh.api.license.OvhOrderableAntispamEnum;
import net.minidev.ovh.api.license.OvhOrderableAntivirusEnum;
import net.minidev.ovh.api.license.OvhOrderableCpanelVersionEnum;
import net.minidev.ovh.api.license.OvhOrderableDirectAdminVersionEnum;
import net.minidev.ovh.api.license.OvhOrderablePleskDomainNumberEnum;
import net.minidev.ovh.api.license.OvhOrderablePleskLanguagePackEnum;
import net.minidev.ovh.api.license.OvhOrderableVirtuozzoContainerNumberEnum;
import net.minidev.ovh.api.license.OvhOrderableVirtuozzoVersionEnum;
import net.minidev.ovh.api.license.OvhPleskApplicationSetEnum;
import net.minidev.ovh.api.license.OvhPleskVersionEnum;
import net.minidev.ovh.api.license.OvhSqlServerVersionEnum;
import net.minidev.ovh.api.license.OvhWindowsOsVersionEnum;
import net.minidev.ovh.api.license.OvhWindowsSqlVersionEnum;
import net.minidev.ovh.api.license.OvhWorkLightVersionEnum;
import net.minidev.ovh.api.nichandle.OvhLegalFormEnum;
import net.minidev.ovh.api.nichandle.OvhOvhSubsidiaryEnum;
import net.minidev.ovh.api.order.OvhOrder;
import net.minidev.ovh.api.order.cart.OvhCart;
import net.minidev.ovh.api.order.cart.OvhConfigurationItem;
import net.minidev.ovh.api.order.cart.OvhConfigurationRequirements;
import net.minidev.ovh.api.order.cart.OvhDomainPacksProductInformation;
import net.minidev.ovh.api.order.cart.OvhGenericOptionDefinition;
import net.minidev.ovh.api.order.cart.OvhGenericProductDefinition;
import net.minidev.ovh.api.order.cart.OvhItem;
import net.minidev.ovh.api.order.cart.OvhProductInformation;
import net.minidev.ovh.api.order.cart.OvhWebHostingProductInformation;
import net.minidev.ovh.api.order.catalog.privatecloud.OvhCatalog;
import net.minidev.ovh.api.order.upgrade.OvhOrderUpgradeOperationAndOrder;
import net.minidev.ovh.api.overthebox.OvhShippingMethodEnum;
import net.minidev.ovh.api.telephony.OvhLineTypeEnum;
import net.minidev.ovh.api.telephony.OvhNumberCountryEnum;
import net.minidev.ovh.api.telephony.OvhNumberOffer;
import net.minidev.ovh.api.telephony.OvhNumberPoolEnum;
import net.minidev.ovh.api.telephony.OvhNumberSpecialTypologyEnum;
import net.minidev.ovh.api.telephony.OvhSecurityDepositAmountsEnum;
import net.minidev.ovh.api.telephony.portability.OvhCountriesAvailable;
import net.minidev.ovh.api.telephony.portability.OvhNumberType;
import net.minidev.ovh.api.telephony.portability.OvhOfferType;
import net.minidev.ovh.api.telephony.portability.OvhSocialReason;
import net.minidev.ovh.api.telephony.portability.OvhSpecialNumberCategoryEnum;
import net.minidev.ovh.api.veeamcloudconnect.OvhOffer;
import net.minidev.ovh.api.vps.OvhPleskLicenseDomainNumberEnum;
import net.minidev.ovh.api.vps.additionaldisk.OvhAdditionalDiskSizeEnum;
import net.minidev.ovh.api.vps.ip.OvhGeolocationEnum;
import net.minidev.ovh.core.ApiOvhBase;
import net.minidev.ovh.core.ApiOvhCore;
/**
* BasePath:https://eu.api.ovh.com/1.0
* ResourcePath:/order
* version:1.0
*/
public class ApiOvhOrder extends ApiOvhBase {
public ApiOvhOrder(ApiOvhCore core) {
super(core);
}
/**
* Get allowed durations for 'quota' option
*
* REST: GET /order/cdn/dedicated/{serviceName}/quota
* @param quota [required] quota number in TB that will be added to the CDN service
* @param serviceName [required] The internal name of your CDN offer
*/
public ArrayList cdn_dedicated_serviceName_quota_GET(String serviceName, OvhOrderQuotaEnum quota) throws IOException {
String qPath = "/order/cdn/dedicated/{serviceName}/quota";
StringBuilder sb = path(qPath, serviceName);
query(sb, "quota", quota);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
private static TypeReference> t1 = new TypeReference>() {};
/**
* Get prices and contracts information
*
* REST: GET /order/cdn/dedicated/{serviceName}/quota/{duration}
* @param quota [required] quota number in TB that will be added to the CDN service
* @param serviceName [required] The internal name of your CDN offer
* @param duration [required] Duration
*/
public OvhOrder cdn_dedicated_serviceName_quota_duration_GET(String serviceName, String duration, OvhOrderQuotaEnum quota) throws IOException {
String qPath = "/order/cdn/dedicated/{serviceName}/quota/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "quota", quota);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/cdn/dedicated/{serviceName}/quota/{duration}
* @param quota [required] quota number in TB that will be added to the CDN service
* @param serviceName [required] The internal name of your CDN offer
* @param duration [required] Duration
*/
public OvhOrder cdn_dedicated_serviceName_quota_duration_POST(String serviceName, String duration, OvhOrderQuotaEnum quota) throws IOException {
String qPath = "/order/cdn/dedicated/{serviceName}/quota/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMapo = new HashMap();
addBody(o, "quota", quota);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed options
*
* REST: GET /order/cdn/dedicated/{serviceName}
* @param serviceName [required] The internal name of your CDN offer
*/
public ArrayList cdn_dedicated_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cdn/dedicated/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed durations for 'cacheRule' option
*
* REST: GET /order/cdn/dedicated/{serviceName}/cacheRule
* @param cacheRule [required] cache rule upgrade option to 100 or 1000
* @param serviceName [required] The internal name of your CDN offer
*/
public ArrayList cdn_dedicated_serviceName_cacheRule_GET(String serviceName, OvhOrderCacheRuleEnum cacheRule) throws IOException {
String qPath = "/order/cdn/dedicated/{serviceName}/cacheRule";
StringBuilder sb = path(qPath, serviceName);
query(sb, "cacheRule", cacheRule);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/cdn/dedicated/{serviceName}/cacheRule/{duration}
* @param cacheRule [required] cache rule upgrade option to 100 or 1000
* @param serviceName [required] The internal name of your CDN offer
* @param duration [required] Duration
*/
public OvhOrder cdn_dedicated_serviceName_cacheRule_duration_GET(String serviceName, String duration, OvhOrderCacheRuleEnum cacheRule) throws IOException {
String qPath = "/order/cdn/dedicated/{serviceName}/cacheRule/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "cacheRule", cacheRule);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/cdn/dedicated/{serviceName}/cacheRule/{duration}
* @param cacheRule [required] cache rule upgrade option to 100 or 1000
* @param serviceName [required] The internal name of your CDN offer
* @param duration [required] Duration
*/
public OvhOrder cdn_dedicated_serviceName_cacheRule_duration_POST(String serviceName, String duration, OvhOrderCacheRuleEnum cacheRule) throws IOException {
String qPath = "/order/cdn/dedicated/{serviceName}/cacheRule/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMapo = new HashMap();
addBody(o, "cacheRule", cacheRule);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed durations for 'backend' option
*
* REST: GET /order/cdn/dedicated/{serviceName}/backend
* @param backend [required] Backend number that will be ordered
* @param serviceName [required] The internal name of your CDN offer
*/
public ArrayList cdn_dedicated_serviceName_backend_GET(String serviceName, Long backend) throws IOException {
String qPath = "/order/cdn/dedicated/{serviceName}/backend";
StringBuilder sb = path(qPath, serviceName);
query(sb, "backend", backend);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/cdn/dedicated/{serviceName}/backend/{duration}
* @param backend [required] Backend number that will be ordered
* @param serviceName [required] The internal name of your CDN offer
* @param duration [required] Duration
*/
public OvhOrder cdn_dedicated_serviceName_backend_duration_GET(String serviceName, String duration, Long backend) throws IOException {
String qPath = "/order/cdn/dedicated/{serviceName}/backend/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "backend", backend);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/cdn/dedicated/{serviceName}/backend/{duration}
* @param backend [required] Backend number that will be ordered
* @param serviceName [required] The internal name of your CDN offer
* @param duration [required] Duration
*/
public OvhOrder cdn_dedicated_serviceName_backend_duration_POST(String serviceName, String duration, Long backend) throws IOException {
String qPath = "/order/cdn/dedicated/{serviceName}/backend/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMapo = new HashMap();
addBody(o, "backend", backend);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* List available services
*
* REST: GET /order/cdn/dedicated
*/
public ArrayList cdn_dedicated_GET() throws IOException {
String qPath = "/order/cdn/dedicated";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed durations for 'new' option
*
* REST: GET /order/cdn/dedicated/new
*/
public ArrayList cdn_dedicated_new_GET() throws IOException {
String qPath = "/order/cdn/dedicated/new";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/cdn/dedicated/new/{duration}
* @param duration [required] Duration
*/
public OvhOrder cdn_dedicated_new_duration_GET(String duration) throws IOException {
String qPath = "/order/cdn/dedicated/new/{duration}";
StringBuilder sb = path(qPath, duration);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/cdn/dedicated/new/{duration}
* @param duration [required] Duration
*/
public OvhOrder cdn_dedicated_new_duration_POST(String duration) throws IOException {
String qPath = "/order/cdn/dedicated/new/{duration}";
StringBuilder sb = path(qPath, duration);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/cdn/webstorage/{serviceName}/traffic
* @param bandwidth [required] Traffic in TB that will be added to the cdn.webstorage service
* @param serviceName [required] The internal name of your CDN Static offer
*/
public OvhOrder cdn_webstorage_serviceName_traffic_GET(String serviceName, OvhOrderTrafficEnum bandwidth) throws IOException {
String qPath = "/order/cdn/webstorage/{serviceName}/traffic";
StringBuilder sb = path(qPath, serviceName);
query(sb, "bandwidth", bandwidth);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/cdn/webstorage/{serviceName}/traffic
* @param bandwidth [required] Traffic in TB that will be added to the cdn.webstorage service
* @param serviceName [required] The internal name of your CDN Static offer
*/
public OvhOrder cdn_webstorage_serviceName_traffic_POST(String serviceName, OvhOrderTrafficEnum bandwidth) throws IOException {
String qPath = "/order/cdn/webstorage/{serviceName}/traffic";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "bandwidth", bandwidth);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed options
*
* REST: GET /order/cdn/webstorage/{serviceName}
* @param serviceName [required] The internal name of your CDN Static offer
*/
public ArrayList cdn_webstorage_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cdn/webstorage/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed durations for 'storage' option
*
* REST: GET /order/cdn/webstorage/{serviceName}/storage
* @param storage [required] Storage option that will be ordered
* @param serviceName [required] The internal name of your CDN Static offer
*/
public ArrayList cdn_webstorage_serviceName_storage_GET(String serviceName, OvhOrderStorageEnum storage) throws IOException {
String qPath = "/order/cdn/webstorage/{serviceName}/storage";
StringBuilder sb = path(qPath, serviceName);
query(sb, "storage", storage);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/cdn/webstorage/{serviceName}/storage/{duration}
* @param storage [required] Storage option that will be ordered
* @param serviceName [required] The internal name of your CDN Static offer
* @param duration [required] Duration
*/
public OvhOrder cdn_webstorage_serviceName_storage_duration_GET(String serviceName, String duration, OvhOrderStorageEnum storage) throws IOException {
String qPath = "/order/cdn/webstorage/{serviceName}/storage/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "storage", storage);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/cdn/webstorage/{serviceName}/storage/{duration}
* @param storage [required] Storage option that will be ordered
* @param serviceName [required] The internal name of your CDN Static offer
* @param duration [required] Duration
*/
public OvhOrder cdn_webstorage_serviceName_storage_duration_POST(String serviceName, String duration, OvhOrderStorageEnum storage) throws IOException {
String qPath = "/order/cdn/webstorage/{serviceName}/storage/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMapo = new HashMap();
addBody(o, "storage", storage);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* List available services
*
* REST: GET /order/cdn/webstorage
*/
public ArrayList cdn_webstorage_GET() throws IOException {
String qPath = "/order/cdn/webstorage";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed options
*
* REST: GET /order/sms/{serviceName}
* @param serviceName [required] The internal name of your SMS offer
*/
public ArrayList sms_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/sms/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/sms/{serviceName}/credits
* @param quantity [required] Sms credit quantity
* @param serviceName [required] The internal name of your SMS offer
*/
public OvhOrder sms_serviceName_credits_GET(String serviceName, Long quantity) throws IOException {
String qPath = "/order/sms/{serviceName}/credits";
StringBuilder sb = path(qPath, serviceName);
query(sb, "quantity", quantity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/sms/{serviceName}/credits
* @param quantity [required] Sms credit quantity
* @param serviceName [required] The internal name of your SMS offer
*/
public OvhOrder sms_serviceName_credits_POST(String serviceName, Long quantity) throws IOException {
String qPath = "/order/sms/{serviceName}/credits";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* List available services
*
* REST: GET /order/sms
*/
public ArrayList sms_GET() throws IOException {
String qPath = "/order/sms";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/sms/new
* @param quantity [required] Sms credit quantity
*/
public OvhOrder sms_new_GET(Long quantity) throws IOException {
String qPath = "/order/sms/new";
StringBuilder sb = path(qPath);
query(sb, "quantity", quantity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/sms/new
* @param quantity [required] Sms credit quantity
*/
public OvhOrder sms_new_POST(Long quantity) throws IOException {
String qPath = "/order/sms/new";
StringBuilder sb = path(qPath);
HashMapo = new HashMap();
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Retrieve list of catalog name
*
* REST: GET /order/catalog/formatted
* @deprecated
*/
public ArrayList catalog_formatted_GET() throws IOException {
String qPath = "/order/catalog/formatted";
StringBuilder sb = path(qPath);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Retrieve information of Private Cloud SDDC catalog
*
* REST: GET /order/catalog/formatted/privateCloudSDDC
* @param ovhSubsidiary [required] Subsidiary of the country you want to consult catalog
*
* API beta
*/
public OvhCatalog catalog_formatted_privateCloudSDDC_GET(OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException {
String qPath = "/order/catalog/formatted/privateCloudSDDC";
StringBuilder sb = path(qPath);
query(sb, "ovhSubsidiary", ovhSubsidiary);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhCatalog.class);
}
/**
* Retrieve information of Desk as a service catalog
*
* REST: GET /order/catalog/formatted/deskaas
* @param ovhSubsidiary [required] Subsidiary of the country you want to consult catalog
*
* API beta
*/
public net.minidev.ovh.api.order.catalog.OvhCatalog catalog_formatted_deskaas_GET(OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException {
String qPath = "/order/catalog/formatted/deskaas";
StringBuilder sb = path(qPath);
query(sb, "ovhSubsidiary", ovhSubsidiary);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, net.minidev.ovh.api.order.catalog.OvhCatalog.class);
}
/**
* Retrieve information of VPS catalog
*
* REST: GET /order/catalog/formatted/vps
* @param ovhSubsidiary [required] Subsidiary of the country you want to consult catalog
*
* API beta
*/
public net.minidev.ovh.api.order.catalog.OvhCatalog catalog_formatted_vps_GET(OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException {
String qPath = "/order/catalog/formatted/vps";
StringBuilder sb = path(qPath);
query(sb, "ovhSubsidiary", ovhSubsidiary);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, net.minidev.ovh.api.order.catalog.OvhCatalog.class);
}
/**
* Retrieve information of IP addresses catalog
*
* REST: GET /order/catalog/formatted/ip
* @param ovhSubsidiary [required] Subsidiary of the country you want to consult catalog
*
* API beta
*/
public net.minidev.ovh.api.order.catalog.OvhCatalog catalog_formatted_ip_GET(OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException {
String qPath = "/order/catalog/formatted/ip";
StringBuilder sb = path(qPath);
query(sb, "ovhSubsidiary", ovhSubsidiary);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, net.minidev.ovh.api.order.catalog.OvhCatalog.class);
}
/**
* Retrieve information of dedicated discover offer server catalog
*
* REST: GET /order/catalog/formatted/discover
* @param ovhSubsidiary [required] Subsidiary of the country you want to consult catalog
*/
public net.minidev.ovh.api.order.catalog.OvhCatalog catalog_formatted_discover_GET(OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException {
String qPath = "/order/catalog/formatted/discover";
StringBuilder sb = path(qPath);
query(sb, "ovhSubsidiary", ovhSubsidiary);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, net.minidev.ovh.api.order.catalog.OvhCatalog.class);
}
/**
* Retrieve information of Logs Data Platform catalog
*
* REST: GET /order/catalog/formatted/logs
* @param ovhSubsidiary [required] Subsidiary of the country you want to consult catalog
*/
public net.minidev.ovh.api.order.catalog.OvhCatalog catalog_formatted_logs_GET(OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException {
String qPath = "/order/catalog/formatted/logs";
StringBuilder sb = path(qPath);
query(sb, "ovhSubsidiary", ovhSubsidiary);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, net.minidev.ovh.api.order.catalog.OvhCatalog.class);
}
/**
* Retrieve information of Private Cloud Reseller Enterprise catalog
*
* REST: GET /order/catalog/formatted/privateCloudResellerEnterprise
* @param ovhSubsidiary [required] Subsidiary of the country you want to consult catalog
*/
public net.minidev.ovh.api.order.catalog.pcc.OvhCatalog catalog_formatted_privateCloudResellerEnterprise_GET(OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException {
String qPath = "/order/catalog/formatted/privateCloudResellerEnterprise";
StringBuilder sb = path(qPath);
query(sb, "ovhSubsidiary", ovhSubsidiary);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, net.minidev.ovh.api.order.catalog.pcc.OvhCatalog.class);
}
/**
* Retrieve information of Private Cloud Dedicated Cloud catalog
*
* REST: GET /order/catalog/formatted/privateCloudDC
* @param ovhSubsidiary [required] Subsidiary of the country you want to consult catalog
*
* API beta
*/
public OvhCatalog catalog_formatted_privateCloudDC_GET(OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException {
String qPath = "/order/catalog/formatted/privateCloudDC";
StringBuilder sb = path(qPath);
query(sb, "ovhSubsidiary", ovhSubsidiary);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhCatalog.class);
}
/**
* Retrieve information of Public Cloud catalog
*
* REST: GET /order/catalog/formatted/cloud
* @param ovhSubsidiary [required] Subsidiary of the country you want to consult catalog
*
* API beta
*/
public net.minidev.ovh.api.order.catalog.OvhCatalog catalog_formatted_cloud_GET(OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException {
String qPath = "/order/catalog/formatted/cloud";
StringBuilder sb = path(qPath);
query(sb, "ovhSubsidiary", ovhSubsidiary);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, net.minidev.ovh.api.order.catalog.OvhCatalog.class);
}
/**
* Retrieve information of Private Cloud Reseller catalog
*
* REST: GET /order/catalog/formatted/privateCloudReseller
* @param ovhSubsidiary [required] Subsidiary of the country you want to consult catalog
*/
public net.minidev.ovh.api.order.catalog.pcc.OvhCatalog catalog_formatted_privateCloudReseller_GET(OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException {
String qPath = "/order/catalog/formatted/privateCloudReseller";
StringBuilder sb = path(qPath);
query(sb, "ovhSubsidiary", ovhSubsidiary);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, net.minidev.ovh.api.order.catalog.pcc.OvhCatalog.class);
}
/**
* Retrieve information of dedicated server catalog
*
* REST: GET /order/catalog/formatted/dedicated
* @param ovhSubsidiary [required] Subsidiary of the country you want to consult catalog
*
* API beta
*/
public net.minidev.ovh.api.order.catalog.OvhCatalog catalog_formatted_dedicated_GET(OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException {
String qPath = "/order/catalog/formatted/dedicated";
StringBuilder sb = path(qPath);
query(sb, "ovhSubsidiary", ovhSubsidiary);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, net.minidev.ovh.api.order.catalog.OvhCatalog.class);
}
/**
* Retrieve information of Private Cloud CDI catalog
*
* REST: GET /order/catalog/formatted/privateCloudCDI
* @param ovhSubsidiary [required] Subsidiary of the country you want to consult catalog
*
* API beta
*/
public OvhCatalog catalog_formatted_privateCloudCDI_GET(OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException {
String qPath = "/order/catalog/formatted/privateCloudCDI";
StringBuilder sb = path(qPath);
query(sb, "ovhSubsidiary", ovhSubsidiary);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhCatalog.class);
}
/**
* Retrieve information of Reseller catalog
*
* REST: GET /order/catalog/formatted/reseller
* @param ovhSubsidiary [required] Subsidiary of the country you want to consult catalog
*
* API beta
*/
public net.minidev.ovh.api.order.catalog.OvhCatalog catalog_formatted_reseller_GET(OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException {
String qPath = "/order/catalog/formatted/reseller";
StringBuilder sb = path(qPath);
query(sb, "ovhSubsidiary", ovhSubsidiary);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, net.minidev.ovh.api.order.catalog.OvhCatalog.class);
}
/**
* List available services
*
* REST: GET /order/telephony
*/
public ArrayList telephony_GET() throws IOException {
String qPath = "/order/telephony";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed options
*
* REST: GET /order/telephony/{billingAccount}
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList telephony_billingAccount_GET(String billingAccount) throws IOException {
String qPath = "/order/telephony/{billingAccount}";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/telephony/{billingAccount}/securityDeposit
* @param amount [required] The amount, in euros, to credit to the current security deposit
* @param billingAccount [required] The name of your billingAccount
*/
public OvhOrder telephony_billingAccount_securityDeposit_GET(String billingAccount, OvhSecurityDepositAmountsEnum amount) throws IOException {
String qPath = "/order/telephony/{billingAccount}/securityDeposit";
StringBuilder sb = path(qPath, billingAccount);
query(sb, "amount", amount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/telephony/{billingAccount}/securityDeposit
* @param amount [required] The amount, in euros, to credit to the current security deposit
* @param billingAccount [required] The name of your billingAccount
*/
public OvhOrder telephony_billingAccount_securityDeposit_POST(String billingAccount, OvhSecurityDepositAmountsEnum amount) throws IOException {
String qPath = "/order/telephony/{billingAccount}/securityDeposit";
StringBuilder sb = path(qPath, billingAccount);
HashMapo = new HashMap();
addBody(o, "amount", amount);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/telephony/{billingAccount}/numberSpecial
* @param firstname [required] Contact firstname
* @param typology [required] Special range typology
* @param ape [required] Company ape
* @param range [required] Special range
* @param email [required]
* @param city [required] Contact city
* @param streetName [required] Street name
* @param pool [required] Number of alias in case of pool
* @param specificNumber [required] Preselected standard number
* @param siret [required] Companu siret
* @param displayUniversalDirectory [required] Publish contact informations on universal directories
* @param country [required] Number country
* @param organisation [required] Contact organisation
* @param socialNomination [required] Company social nomination
* @param name [required] Contact name
* @param phone [required] Contact phone
* @param retractation [required] Retractation rights if set
* @param zip [required] Contact zip
* @param streetNumber [required] Street number
* @param legalform [required] Legal form
* @param billingAccount [required] The name of your billingAccount
*/
public OvhOrder telephony_billingAccount_numberSpecial_GET(String billingAccount, String ape, String city, OvhNumberCountryEnum country, Boolean displayUniversalDirectory, String email, String firstname, OvhLegalFormEnum legalform, String name, String organisation, String phone, OvhNumberPoolEnum pool, String range, Boolean retractation, String siret, String socialNomination, String specificNumber, String streetName, String streetNumber, OvhNumberSpecialTypologyEnum typology, String zip) throws IOException {
String qPath = "/order/telephony/{billingAccount}/numberSpecial";
StringBuilder sb = path(qPath, billingAccount);
query(sb, "ape", ape);
query(sb, "city", city);
query(sb, "country", country);
query(sb, "displayUniversalDirectory", displayUniversalDirectory);
query(sb, "email", email);
query(sb, "firstname", firstname);
query(sb, "legalform", legalform);
query(sb, "name", name);
query(sb, "organisation", organisation);
query(sb, "phone", phone);
query(sb, "pool", pool);
query(sb, "range", range);
query(sb, "retractation", retractation);
query(sb, "siret", siret);
query(sb, "socialNomination", socialNomination);
query(sb, "specificNumber", specificNumber);
query(sb, "streetName", streetName);
query(sb, "streetNumber", streetNumber);
query(sb, "typology", typology);
query(sb, "zip", zip);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/telephony/{billingAccount}/numberSpecial
* @param firstname [required] Contact firstname
* @param typology [required] Special range typology
* @param ape [required] Company ape
* @param range [required] Special range
* @param email [required]
* @param city [required] Contact city
* @param streetName [required] Street name
* @param pool [required] Number of alias in case of pool
* @param specificNumber [required] Preselected standard number
* @param siret [required] Companu siret
* @param displayUniversalDirectory [required] Publish contact informations on universal directories
* @param country [required] Number country
* @param organisation [required] Contact organisation
* @param socialNomination [required] Company social nomination
* @param name [required] Contact name
* @param phone [required] Contact phone
* @param retractation [required] Retractation rights if set
* @param zip [required] Contact zip
* @param streetNumber [required] Street number
* @param legalform [required] Legal form
* @param billingAccount [required] The name of your billingAccount
*/
public OvhOrder telephony_billingAccount_numberSpecial_POST(String billingAccount, String firstname, OvhNumberSpecialTypologyEnum typology, String ape, String range, String email, String city, String streetName, OvhNumberPoolEnum pool, String specificNumber, String siret, Boolean displayUniversalDirectory, OvhNumberCountryEnum country, String organisation, String socialNomination, String name, String phone, Boolean retractation, String zip, String streetNumber, OvhLegalFormEnum legalform) throws IOException {
String qPath = "/order/telephony/{billingAccount}/numberSpecial";
StringBuilder sb = path(qPath, billingAccount);
HashMapo = new HashMap();
addBody(o, "firstname", firstname);
addBody(o, "typology", typology);
addBody(o, "ape", ape);
addBody(o, "range", range);
addBody(o, "email", email);
addBody(o, "city", city);
addBody(o, "streetName", streetName);
addBody(o, "pool", pool);
addBody(o, "specificNumber", specificNumber);
addBody(o, "siret", siret);
addBody(o, "displayUniversalDirectory", displayUniversalDirectory);
addBody(o, "country", country);
addBody(o, "organisation", organisation);
addBody(o, "socialNomination", socialNomination);
addBody(o, "name", name);
addBody(o, "phone", phone);
addBody(o, "retractation", retractation);
addBody(o, "zip", zip);
addBody(o, "streetNumber", streetNumber);
addBody(o, "legalform", legalform);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/telephony/{billingAccount}/accessories
* @param retractation [required] Retractation rights if set
* @param shippingContactId [required] Shipping contact information id from /me entry point
* @param mondialRelayId [required] Use /supply/mondialRelay entry point to specify a relay point and ignore shipping contact address information entry.
* @param accessories [required] Accessories to order
* @param billingAccount [required] The name of your billingAccount
*/
public OvhOrder telephony_billingAccount_accessories_GET(String billingAccount, String[] accessories, String mondialRelayId, Boolean retractation, Long shippingContactId) throws IOException {
String qPath = "/order/telephony/{billingAccount}/accessories";
StringBuilder sb = path(qPath, billingAccount);
query(sb, "accessories", accessories);
query(sb, "mondialRelayId", mondialRelayId);
query(sb, "retractation", retractation);
query(sb, "shippingContactId", shippingContactId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/telephony/{billingAccount}/accessories
* @param retractation [required] Retractation rights if set
* @param shippingContactId [required] Shipping contact information id from /me entry point
* @param mondialRelayId [required] Use /supply/mondialRelay entry point to specify a relay point and ignore shipping contact address information entry.
* @param accessories [required] Accessories to order
* @param billingAccount [required] The name of your billingAccount
*/
public OvhOrder telephony_billingAccount_accessories_POST(String billingAccount, Boolean retractation, Long shippingContactId, String mondialRelayId, String[] accessories) throws IOException {
String qPath = "/order/telephony/{billingAccount}/accessories";
StringBuilder sb = path(qPath, billingAccount);
HashMapo = new HashMap();
addBody(o, "retractation", retractation);
addBody(o, "shippingContactId", shippingContactId);
addBody(o, "mondialRelayId", mondialRelayId);
addBody(o, "accessories", accessories);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/telephony/{billingAccount}/portability
* @param socialReason [required] Your social reason
* @param rio [required] RIO of the number for individual offer
* @param offer [required] The offer : individual or company
* @param contactNumber [required] Your contact phone number
* @param floor [required] Address floor
* @param stair [required] Address stair
* @param streetNumberExtra [required] Address street number extra : bis, ter, ...
* @param city [required] Address city
* @param listNumbers [required] Extra numbers to be ported, a comma separated list of numbers
* @param executeAsSoonAsPossible [required] Ask to port the number as soon as possible
* @param streetName [required] Address street name
* @param lineToRedirectAliasTo [required] Redirect ported numbers to the specific line
* @param siret [required] If you port under your society, the SIRET number
* @param specialNumberCategory [required] The special number category (needed if type is special)
* @param displayUniversalDirectory [required] Publish informations on directory ? (Yellow Pages, 118XXX, ...)
* @param country [required] Country of number
* @param callNumber [required] The number you want to port
* @param firstName [required] Your firstname
* @param contactName [required] Your contact name
* @param streetType [required] Address street type
* @param fiabilisation [required] Ask for a fiabilisation or not (FR only)
* @param name [required] Your name
* @param mobilePhone [required] Mobile phone to use to text portability status
* @param zip [required] Address zip code
* @param desireDate [required] The date you want for portability execution. Overridden if flag executeAsSoonAsPossible is set
* @param streetNumber [required] Address street number
* @param door [required] Address door
* @param building [required] Address building
* @param type [required] The type of number : landline or special
* @param billingAccount [required] The name of your billingAccount
*/
public OvhOrder telephony_billingAccount_portability_GET(String billingAccount, String building, String callNumber, String city, String contactName, String contactNumber, OvhCountriesAvailable country, Date desireDate, Boolean displayUniversalDirectory, String door, Boolean executeAsSoonAsPossible, Boolean fiabilisation, String firstName, Double floor, String lineToRedirectAliasTo, String listNumbers, String mobilePhone, String name, OvhOfferType offer, String rio, String siret, OvhSocialReason socialReason, OvhSpecialNumberCategoryEnum specialNumberCategory, Double stair, String streetName, Double streetNumber, String streetNumberExtra, String streetType, OvhNumberType type, String zip) throws IOException {
String qPath = "/order/telephony/{billingAccount}/portability";
StringBuilder sb = path(qPath, billingAccount);
query(sb, "building", building);
query(sb, "callNumber", callNumber);
query(sb, "city", city);
query(sb, "contactName", contactName);
query(sb, "contactNumber", contactNumber);
query(sb, "country", country);
query(sb, "desireDate", desireDate);
query(sb, "displayUniversalDirectory", displayUniversalDirectory);
query(sb, "door", door);
query(sb, "executeAsSoonAsPossible", executeAsSoonAsPossible);
query(sb, "fiabilisation", fiabilisation);
query(sb, "firstName", firstName);
query(sb, "floor", floor);
query(sb, "lineToRedirectAliasTo", lineToRedirectAliasTo);
query(sb, "listNumbers", listNumbers);
query(sb, "mobilePhone", mobilePhone);
query(sb, "name", name);
query(sb, "offer", offer);
query(sb, "rio", rio);
query(sb, "siret", siret);
query(sb, "socialReason", socialReason);
query(sb, "specialNumberCategory", specialNumberCategory);
query(sb, "stair", stair);
query(sb, "streetName", streetName);
query(sb, "streetNumber", streetNumber);
query(sb, "streetNumberExtra", streetNumberExtra);
query(sb, "streetType", streetType);
query(sb, "type", type);
query(sb, "zip", zip);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/telephony/{billingAccount}/portability
* @param socialReason [required] Your social reason
* @param rio [required] RIO of the number for individual offer
* @param offer [required] The offer : individual or company
* @param contactNumber [required] Your contact phone number
* @param floor [required] Address floor
* @param stair [required] Address stair
* @param streetNumberExtra [required] Address street number extra : bis, ter, ...
* @param city [required] Address city
* @param listNumbers [required] Extra numbers to be ported, a comma separated list of numbers
* @param executeAsSoonAsPossible [required] Ask to port the number as soon as possible
* @param streetName [required] Address street name
* @param lineToRedirectAliasTo [required] Redirect ported numbers to the specific line
* @param siret [required] If you port under your society, the SIRET number
* @param specialNumberCategory [required] The special number category (needed if type is special)
* @param displayUniversalDirectory [required] Publish informations on directory ? (Yellow Pages, 118XXX, ...)
* @param country [required] Country of number
* @param callNumber [required] The number you want to port
* @param firstName [required] Your firstname
* @param contactName [required] Your contact name
* @param streetType [required] Address street type
* @param fiabilisation [required] Ask for a fiabilisation or not (FR only)
* @param name [required] Your name
* @param mobilePhone [required] Mobile phone to use to text portability status
* @param zip [required] Address zip code
* @param desireDate [required] The date you want for portability execution. Overridden if flag executeAsSoonAsPossible is set
* @param streetNumber [required] Address street number
* @param door [required] Address door
* @param building [required] Address building
* @param type [required] The type of number : landline or special
* @param billingAccount [required] The name of your billingAccount
*/
public OvhOrder telephony_billingAccount_portability_POST(String billingAccount, OvhSocialReason socialReason, String rio, OvhOfferType offer, String contactNumber, Double floor, Double stair, String streetNumberExtra, String city, String listNumbers, Boolean executeAsSoonAsPossible, String streetName, String lineToRedirectAliasTo, String siret, OvhSpecialNumberCategoryEnum specialNumberCategory, Boolean displayUniversalDirectory, OvhCountriesAvailable country, String callNumber, String firstName, String contactName, String streetType, Boolean fiabilisation, String name, String mobilePhone, String zip, Date desireDate, Double streetNumber, String door, String building, OvhNumberType type) throws IOException {
String qPath = "/order/telephony/{billingAccount}/portability";
StringBuilder sb = path(qPath, billingAccount);
HashMapo = new HashMap();
addBody(o, "socialReason", socialReason);
addBody(o, "rio", rio);
addBody(o, "offer", offer);
addBody(o, "contactNumber", contactNumber);
addBody(o, "floor", floor);
addBody(o, "stair", stair);
addBody(o, "streetNumberExtra", streetNumberExtra);
addBody(o, "city", city);
addBody(o, "listNumbers", listNumbers);
addBody(o, "executeAsSoonAsPossible", executeAsSoonAsPossible);
addBody(o, "streetName", streetName);
addBody(o, "lineToRedirectAliasTo", lineToRedirectAliasTo);
addBody(o, "siret", siret);
addBody(o, "specialNumberCategory", specialNumberCategory);
addBody(o, "displayUniversalDirectory", displayUniversalDirectory);
addBody(o, "country", country);
addBody(o, "callNumber", callNumber);
addBody(o, "firstName", firstName);
addBody(o, "contactName", contactName);
addBody(o, "streetType", streetType);
addBody(o, "fiabilisation", fiabilisation);
addBody(o, "name", name);
addBody(o, "mobilePhone", mobilePhone);
addBody(o, "zip", zip);
addBody(o, "desireDate", desireDate);
addBody(o, "streetNumber", streetNumber);
addBody(o, "door", door);
addBody(o, "building", building);
addBody(o, "type", type);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/telephony/{billingAccount}/numberNogeographic
* @param firstname [required] Contact firstname
* @param ape [required] Company ape
* @param offer [required] Number offer
* @param email [required]
* @param city [required] Contact city
* @param streetName [required] Street name
* @param pool [required] Number of alias in case of pool
* @param specificNumber [required] Preselected standard number
* @param siret [required] Companu siret
* @param displayUniversalDirectory [required] Publish contact informations on universal directories
* @param country [required] Number country
* @param organisation [required] Contact organisation
* @param socialNomination [required] Company social nomination
* @param name [required] Contact name
* @param phone [required] Contact phone
* @param retractation [required] Retractation rights if set
* @param zip [required] Contact zip
* @param streetNumber [required] Street number
* @param legalform [required] Legal form
* @param billingAccount [required] The name of your billingAccount
*/
public OvhOrder telephony_billingAccount_numberNogeographic_GET(String billingAccount, String ape, String city, OvhNumberCountryEnum country, Boolean displayUniversalDirectory, String email, String firstname, OvhLegalFormEnum legalform, String name, OvhNumberOffer offer, String organisation, String phone, OvhNumberPoolEnum pool, Boolean retractation, String siret, String socialNomination, String specificNumber, String streetName, String streetNumber, String zip) throws IOException {
String qPath = "/order/telephony/{billingAccount}/numberNogeographic";
StringBuilder sb = path(qPath, billingAccount);
query(sb, "ape", ape);
query(sb, "city", city);
query(sb, "country", country);
query(sb, "displayUniversalDirectory", displayUniversalDirectory);
query(sb, "email", email);
query(sb, "firstname", firstname);
query(sb, "legalform", legalform);
query(sb, "name", name);
query(sb, "offer", offer);
query(sb, "organisation", organisation);
query(sb, "phone", phone);
query(sb, "pool", pool);
query(sb, "retractation", retractation);
query(sb, "siret", siret);
query(sb, "socialNomination", socialNomination);
query(sb, "specificNumber", specificNumber);
query(sb, "streetName", streetName);
query(sb, "streetNumber", streetNumber);
query(sb, "zip", zip);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/telephony/{billingAccount}/numberNogeographic
* @param firstname [required] Contact firstname
* @param ape [required] Company ape
* @param offer [required] Number offer
* @param email [required]
* @param city [required] Contact city
* @param streetName [required] Street name
* @param pool [required] Number of alias in case of pool
* @param specificNumber [required] Preselected standard number
* @param siret [required] Companu siret
* @param displayUniversalDirectory [required] Publish contact informations on universal directories
* @param country [required] Number country
* @param organisation [required] Contact organisation
* @param socialNomination [required] Company social nomination
* @param name [required] Contact name
* @param phone [required] Contact phone
* @param retractation [required] Retractation rights if set
* @param zip [required] Contact zip
* @param streetNumber [required] Street number
* @param legalform [required] Legal form
* @param billingAccount [required] The name of your billingAccount
*/
public OvhOrder telephony_billingAccount_numberNogeographic_POST(String billingAccount, String firstname, String ape, OvhNumberOffer offer, String email, String city, String streetName, OvhNumberPoolEnum pool, String specificNumber, String siret, Boolean displayUniversalDirectory, OvhNumberCountryEnum country, String organisation, String socialNomination, String name, String phone, Boolean retractation, String zip, String streetNumber, OvhLegalFormEnum legalform) throws IOException {
String qPath = "/order/telephony/{billingAccount}/numberNogeographic";
StringBuilder sb = path(qPath, billingAccount);
HashMapo = new HashMap();
addBody(o, "firstname", firstname);
addBody(o, "ape", ape);
addBody(o, "offer", offer);
addBody(o, "email", email);
addBody(o, "city", city);
addBody(o, "streetName", streetName);
addBody(o, "pool", pool);
addBody(o, "specificNumber", specificNumber);
addBody(o, "siret", siret);
addBody(o, "displayUniversalDirectory", displayUniversalDirectory);
addBody(o, "country", country);
addBody(o, "organisation", organisation);
addBody(o, "socialNomination", socialNomination);
addBody(o, "name", name);
addBody(o, "phone", phone);
addBody(o, "retractation", retractation);
addBody(o, "zip", zip);
addBody(o, "streetNumber", streetNumber);
addBody(o, "legalform", legalform);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/telephony/{billingAccount}/numberGeographic
* @param firstname [required] Contact firstname
* @param ape [required] Company ape
* @param zone [required] Zone
* @param offer [required] Number offer
* @param email [required]
* @param city [required] Contact city
* @param streetName [required] Street name
* @param pool [required] Number of alias in case of pool
* @param specificNumber [required] Preselected standard number
* @param siret [required] Companu siret
* @param displayUniversalDirectory [required] Publish contact informations on universal directories
* @param country [required] Number country
* @param organisation [required] Contact organisation
* @param socialNomination [required] Company social nomination
* @param name [required] Contact name
* @param phone [required] Contact phone
* @param retractation [required] Retractation rights if set
* @param zip [required] Contact zip
* @param streetNumber [required] Street number
* @param legalform [required] Legal form
* @param billingAccount [required] The name of your billingAccount
*/
public OvhOrder telephony_billingAccount_numberGeographic_GET(String billingAccount, String ape, String city, OvhNumberCountryEnum country, Boolean displayUniversalDirectory, String email, String firstname, OvhLegalFormEnum legalform, String name, OvhNumberOffer offer, String organisation, String phone, OvhNumberPoolEnum pool, Boolean retractation, String siret, String socialNomination, String specificNumber, String streetName, String streetNumber, String zip, String zone) throws IOException {
String qPath = "/order/telephony/{billingAccount}/numberGeographic";
StringBuilder sb = path(qPath, billingAccount);
query(sb, "ape", ape);
query(sb, "city", city);
query(sb, "country", country);
query(sb, "displayUniversalDirectory", displayUniversalDirectory);
query(sb, "email", email);
query(sb, "firstname", firstname);
query(sb, "legalform", legalform);
query(sb, "name", name);
query(sb, "offer", offer);
query(sb, "organisation", organisation);
query(sb, "phone", phone);
query(sb, "pool", pool);
query(sb, "retractation", retractation);
query(sb, "siret", siret);
query(sb, "socialNomination", socialNomination);
query(sb, "specificNumber", specificNumber);
query(sb, "streetName", streetName);
query(sb, "streetNumber", streetNumber);
query(sb, "zip", zip);
query(sb, "zone", zone);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/telephony/{billingAccount}/numberGeographic
* @param firstname [required] Contact firstname
* @param ape [required] Company ape
* @param zone [required] Zone
* @param offer [required] Number offer
* @param email [required]
* @param city [required] Contact city
* @param streetName [required] Street name
* @param pool [required] Number of alias in case of pool
* @param specificNumber [required] Preselected standard number
* @param siret [required] Companu siret
* @param displayUniversalDirectory [required] Publish contact informations on universal directories
* @param country [required] Number country
* @param organisation [required] Contact organisation
* @param socialNomination [required] Company social nomination
* @param name [required] Contact name
* @param phone [required] Contact phone
* @param retractation [required] Retractation rights if set
* @param zip [required] Contact zip
* @param streetNumber [required] Street number
* @param legalform [required] Legal form
* @param billingAccount [required] The name of your billingAccount
*/
public OvhOrder telephony_billingAccount_numberGeographic_POST(String billingAccount, String firstname, String ape, String zone, OvhNumberOffer offer, String email, String city, String streetName, OvhNumberPoolEnum pool, String specificNumber, String siret, Boolean displayUniversalDirectory, OvhNumberCountryEnum country, String organisation, String socialNomination, String name, String phone, Boolean retractation, String zip, String streetNumber, OvhLegalFormEnum legalform) throws IOException {
String qPath = "/order/telephony/{billingAccount}/numberGeographic";
StringBuilder sb = path(qPath, billingAccount);
HashMapo = new HashMap();
addBody(o, "firstname", firstname);
addBody(o, "ape", ape);
addBody(o, "zone", zone);
addBody(o, "offer", offer);
addBody(o, "email", email);
addBody(o, "city", city);
addBody(o, "streetName", streetName);
addBody(o, "pool", pool);
addBody(o, "specificNumber", specificNumber);
addBody(o, "siret", siret);
addBody(o, "displayUniversalDirectory", displayUniversalDirectory);
addBody(o, "country", country);
addBody(o, "organisation", organisation);
addBody(o, "socialNomination", socialNomination);
addBody(o, "name", name);
addBody(o, "phone", phone);
addBody(o, "retractation", retractation);
addBody(o, "zip", zip);
addBody(o, "streetNumber", streetNumber);
addBody(o, "legalform", legalform);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/telephony/{billingAccount}/line
* @param shippingContactId [required] Shipping contact information id from /me entry point
* @param types [required] Number type. Set several types for each line per phone
* @param mondialRelayId [required] Use /supply/mondialRelay entry point to specify a relay point and ignore shipping address information entry.
* @param quantity [required] Quantity of request repetition in this configuration
* @param brand [required] Phone brands wanted with the offer. Set null for NO phone
* @param zones [required] Geographic zones. Let empty for nogeographic type. Set several zones for each line per phone
* @param retractation [required] Retractation rights if set
* @param offers [required] The line offers. Set several offers for each line per phone (Deprecated, use offer method instead)
* @param displayUniversalDirectories [required] Publish owner contact informations on universal directories or not
* @param ownerContactIds [required] Owner contact information id from /me entry point for each line
* @param extraSimultaneousLines [required] Additional simultaneous numbers. Set several simultaneous lines for each line per phone
* @param billingAccount [required] The name of your billingAccount
*/
public OvhOrder telephony_billingAccount_line_GET(String billingAccount, String brand, Boolean[] displayUniversalDirectories, Long[] extraSimultaneousLines, String mondialRelayId, String[] offers, Long[] ownerContactIds, Long quantity, Boolean retractation, Long shippingContactId, OvhLineTypeEnum[] types, String[] zones) throws IOException {
String qPath = "/order/telephony/{billingAccount}/line";
StringBuilder sb = path(qPath, billingAccount);
query(sb, "brand", brand);
query(sb, "displayUniversalDirectories", displayUniversalDirectories);
query(sb, "extraSimultaneousLines", extraSimultaneousLines);
query(sb, "mondialRelayId", mondialRelayId);
query(sb, "offers", offers);
query(sb, "ownerContactIds", ownerContactIds);
query(sb, "quantity", quantity);
query(sb, "retractation", retractation);
query(sb, "shippingContactId", shippingContactId);
query(sb, "types", types);
query(sb, "zones", zones);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/telephony/{billingAccount}/line
* @param shippingContactId [required] Shipping contact information id from /me entry point
* @param types [required] Number type. Set several types for each line per phone
* @param mondialRelayId [required] Use /supply/mondialRelay entry point to specify a relay point and ignore shipping address information entry.
* @param quantity [required] Quantity of request repetition in this configuration
* @param brand [required] Phone brands wanted with the offer. Set null for NO phone
* @param zones [required] Geographic zones. Let empty for nogeographic type. Set several zones for each line per phone
* @param retractation [required] Retractation rights if set
* @param offers [required] The line offers. Set several offers for each line per phone (Deprecated, use offer method instead)
* @param displayUniversalDirectories [required] Publish owner contact informations on universal directories or not
* @param ownerContactIds [required] Owner contact information id from /me entry point for each line
* @param extraSimultaneousLines [required] Additional simultaneous numbers. Set several simultaneous lines for each line per phone
* @param billingAccount [required] The name of your billingAccount
*/
public OvhOrder telephony_billingAccount_line_POST(String billingAccount, Long shippingContactId, OvhLineTypeEnum[] types, String mondialRelayId, Long quantity, String brand, String[] zones, Boolean retractation, String[] offers, Boolean[] displayUniversalDirectories, Long[] ownerContactIds, Long[] extraSimultaneousLines) throws IOException {
String qPath = "/order/telephony/{billingAccount}/line";
StringBuilder sb = path(qPath, billingAccount);
HashMapo = new HashMap();
addBody(o, "shippingContactId", shippingContactId);
addBody(o, "types", types);
addBody(o, "mondialRelayId", mondialRelayId);
addBody(o, "quantity", quantity);
addBody(o, "brand", brand);
addBody(o, "zones", zones);
addBody(o, "retractation", retractation);
addBody(o, "offers", offers);
addBody(o, "displayUniversalDirectories", displayUniversalDirectories);
addBody(o, "ownerContactIds", ownerContactIds);
addBody(o, "extraSimultaneousLines", extraSimultaneousLines);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/telephony/lines/{serviceName}/addSimultaneousLines
* @param billingAccount [required] The name of your billingAccount
* @param quantity [required] The quantity of extra simultaneous lines to add
* @param serviceName [required] Your line number
* @deprecated
*/
public OvhOrder telephony_lines_serviceName_addSimultaneousLines_GET(String serviceName, String billingAccount, Long quantity) throws IOException {
String qPath = "/order/telephony/lines/{serviceName}/addSimultaneousLines";
StringBuilder sb = path(qPath, serviceName);
query(sb, "billingAccount", billingAccount);
query(sb, "quantity", quantity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/telephony/lines/{serviceName}/addSimultaneousLines
* @param billingAccount [required] The name of your billingAccount
* @param quantity [required] The quantity of extra simultaneous lines to add
* @param serviceName [required] Your line number
* @deprecated
*/
public OvhOrder telephony_lines_serviceName_addSimultaneousLines_POST(String serviceName, String billingAccount, Long quantity) throws IOException {
String qPath = "/order/telephony/lines/{serviceName}/addSimultaneousLines";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "billingAccount", billingAccount);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed options
*
* REST: GET /order/telephony/lines/{serviceName}
* @param serviceName [required] Your line number
*/
public ArrayList telephony_lines_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/telephony/lines/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/telephony/lines/{serviceName}/hardware
* @param retractation [required] Retractation rights if set
* @param shippingContactId [required] Shipping contact information id from /me entry point
* @param hardware [required] The hardware you want to order for this specific line
* @param mondialRelayId [required] Use /supply/mondialRelay entry point to specify a relay point and ignore shipping contact address information entry.
* @param serviceName [required] Your line number
*/
public OvhOrder telephony_lines_serviceName_hardware_GET(String serviceName, String hardware, String mondialRelayId, Boolean retractation, String shippingContactId) throws IOException {
String qPath = "/order/telephony/lines/{serviceName}/hardware";
StringBuilder sb = path(qPath, serviceName);
query(sb, "hardware", hardware);
query(sb, "mondialRelayId", mondialRelayId);
query(sb, "retractation", retractation);
query(sb, "shippingContactId", shippingContactId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/telephony/lines/{serviceName}/hardware
* @param retractation [required] Retractation rights if set
* @param shippingContactId [required] Shipping contact information id from /me entry point
* @param hardware [required] The hardware you want to order for this specific line
* @param mondialRelayId [required] Use /supply/mondialRelay entry point to specify a relay point and ignore shipping contact address information entry.
* @param serviceName [required] Your line number
*/
public OvhOrder telephony_lines_serviceName_hardware_POST(String serviceName, Boolean retractation, String shippingContactId, String hardware, String mondialRelayId) throws IOException {
String qPath = "/order/telephony/lines/{serviceName}/hardware";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "retractation", retractation);
addBody(o, "shippingContactId", shippingContactId);
addBody(o, "hardware", hardware);
addBody(o, "mondialRelayId", mondialRelayId);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/telephony/lines/{serviceName}/updateSimultaneousChannels
* @param quantity [required] The quantity of total simultaneous channels requested
* @param serviceName [required] Your line number
*/
public OvhOrder telephony_lines_serviceName_updateSimultaneousChannels_GET(String serviceName, Long quantity) throws IOException {
String qPath = "/order/telephony/lines/{serviceName}/updateSimultaneousChannels";
StringBuilder sb = path(qPath, serviceName);
query(sb, "quantity", quantity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/telephony/lines/{serviceName}/updateSimultaneousChannels
* @param quantity [required] The quantity of total simultaneous channels requested
* @param serviceName [required] Your line number
*/
public OvhOrder telephony_lines_serviceName_updateSimultaneousChannels_POST(String serviceName, Long quantity) throws IOException {
String qPath = "/order/telephony/lines/{serviceName}/updateSimultaneousChannels";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* List available services
*
* REST: GET /order/telephony/lines
*/
public ArrayList telephony_lines_GET() throws IOException {
String qPath = "/order/telephony/lines";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/telephony/new
*/
public OvhOrder telephony_new_GET() throws IOException {
String qPath = "/order/telephony/new";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/telephony/new
*/
public OvhOrder telephony_new_POST() throws IOException {
String qPath = "/order/telephony/new";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/telephony/spare/new
* @param shippingContactId [required] Shipping contact information id from /me entry point
* @param mondialRelayId [required] Use /supply/mondialRelay entry point to specify a relay point and ignore shipping contact address information entry.
* @param quantity [required] Number of phone quantity
* @param brand [required] Spare phone brand model
*/
public OvhOrder telephony_spare_new_GET(String brand, String mondialRelayId, Long quantity, Long shippingContactId) throws IOException {
String qPath = "/order/telephony/spare/new";
StringBuilder sb = path(qPath);
query(sb, "brand", brand);
query(sb, "mondialRelayId", mondialRelayId);
query(sb, "quantity", quantity);
query(sb, "shippingContactId", shippingContactId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/telephony/spare/new
* @param shippingContactId [required] Shipping contact information id from /me entry point
* @param mondialRelayId [required] Use /supply/mondialRelay entry point to specify a relay point and ignore shipping contact address information entry.
* @param quantity [required] Number of phone quantity
* @param brand [required] Spare phone brand model
*/
public OvhOrder telephony_spare_new_POST(Long shippingContactId, String mondialRelayId, Long quantity, String brand) throws IOException {
String qPath = "/order/telephony/spare/new";
StringBuilder sb = path(qPath);
HashMapo = new HashMap();
addBody(o, "shippingContactId", shippingContactId);
addBody(o, "mondialRelayId", mondialRelayId);
addBody(o, "quantity", quantity);
addBody(o, "brand", brand);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/telephony/trunks/{serviceName}/addSimultaneousLines
* @param billingAccount [required] The name of your billingAccount
* @param quantity [required] The quantity of extra simultaneous lines to add
* @param serviceName [required] Your trunk number
* @deprecated
*/
public OvhOrder telephony_trunks_serviceName_addSimultaneousLines_GET(String serviceName, String billingAccount, Long quantity) throws IOException {
String qPath = "/order/telephony/trunks/{serviceName}/addSimultaneousLines";
StringBuilder sb = path(qPath, serviceName);
query(sb, "billingAccount", billingAccount);
query(sb, "quantity", quantity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/telephony/trunks/{serviceName}/addSimultaneousLines
* @param billingAccount [required] The name of your billingAccount
* @param quantity [required] The quantity of extra simultaneous lines to add
* @param serviceName [required] Your trunk number
* @deprecated
*/
public OvhOrder telephony_trunks_serviceName_addSimultaneousLines_POST(String serviceName, String billingAccount, Long quantity) throws IOException {
String qPath = "/order/telephony/trunks/{serviceName}/addSimultaneousLines";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "billingAccount", billingAccount);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed options
*
* REST: GET /order/telephony/trunks/{serviceName}
* @param serviceName [required] Your trunk number
*/
public ArrayList telephony_trunks_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/telephony/trunks/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/telephony/trunks/{serviceName}/hardware
* @param retractation [required] Retractation rights if set
* @param shippingContactId [required] Shipping contact information id from /me entry point
* @param hardware [required] The hardware you want to order for this specific line
* @param mondialRelayId [required] Use /supply/mondialRelay entry point to specify a relay point and ignore shipping contact address information entry.
* @param serviceName [required] Your trunk number
*/
public OvhOrder telephony_trunks_serviceName_hardware_GET(String serviceName, String hardware, String mondialRelayId, Boolean retractation, String shippingContactId) throws IOException {
String qPath = "/order/telephony/trunks/{serviceName}/hardware";
StringBuilder sb = path(qPath, serviceName);
query(sb, "hardware", hardware);
query(sb, "mondialRelayId", mondialRelayId);
query(sb, "retractation", retractation);
query(sb, "shippingContactId", shippingContactId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/telephony/trunks/{serviceName}/hardware
* @param retractation [required] Retractation rights if set
* @param shippingContactId [required] Shipping contact information id from /me entry point
* @param hardware [required] The hardware you want to order for this specific line
* @param mondialRelayId [required] Use /supply/mondialRelay entry point to specify a relay point and ignore shipping contact address information entry.
* @param serviceName [required] Your trunk number
*/
public OvhOrder telephony_trunks_serviceName_hardware_POST(String serviceName, Boolean retractation, String shippingContactId, String hardware, String mondialRelayId) throws IOException {
String qPath = "/order/telephony/trunks/{serviceName}/hardware";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "retractation", retractation);
addBody(o, "shippingContactId", shippingContactId);
addBody(o, "hardware", hardware);
addBody(o, "mondialRelayId", mondialRelayId);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/telephony/trunks/{serviceName}/updateSimultaneousChannels
* @param quantity [required] The quantity of total simultaneous channels requested
* @param serviceName [required] Your trunk number
*/
public OvhOrder telephony_trunks_serviceName_updateSimultaneousChannels_GET(String serviceName, Long quantity) throws IOException {
String qPath = "/order/telephony/trunks/{serviceName}/updateSimultaneousChannels";
StringBuilder sb = path(qPath, serviceName);
query(sb, "quantity", quantity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/telephony/trunks/{serviceName}/updateSimultaneousChannels
* @param quantity [required] The quantity of total simultaneous channels requested
* @param serviceName [required] Your trunk number
*/
public OvhOrder telephony_trunks_serviceName_updateSimultaneousChannels_POST(String serviceName, Long quantity) throws IOException {
String qPath = "/order/telephony/trunks/{serviceName}/updateSimultaneousChannels";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* List available services
*
* REST: GET /order/telephony/trunks
*/
public ArrayList telephony_trunks_GET() throws IOException {
String qPath = "/order/telephony/trunks";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* List available services
*
* REST: GET /order/email/pro
*/
public ArrayList email_pro_GET() throws IOException {
String qPath = "/order/email/pro";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed options
*
* REST: GET /order/email/pro/{service}
* @param service [required] The internal name of your pro organization
*/
public ArrayList email_pro_service_GET(String service) throws IOException {
String qPath = "/order/email/pro/{service}";
StringBuilder sb = path(qPath, service);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed durations for 'account' option
*
* REST: GET /order/email/pro/{service}/account
* @param number [required] Number of Accounts to order
* @param service [required] The internal name of your pro organization
*/
public ArrayList email_pro_service_account_GET(String service, Long number) throws IOException {
String qPath = "/order/email/pro/{service}/account";
StringBuilder sb = path(qPath, service);
query(sb, "number", number);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/email/pro/{service}/account/{duration}
* @param number [required] Number of Accounts to order
* @param service [required] The internal name of your pro organization
* @param duration [required] Duration
*/
public OvhOrder email_pro_service_account_duration_GET(String service, String duration, Long number) throws IOException {
String qPath = "/order/email/pro/{service}/account/{duration}";
StringBuilder sb = path(qPath, service, duration);
query(sb, "number", number);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/email/pro/{service}/account/{duration}
* @param number [required] Number of Accounts to order
* @param service [required] The internal name of your pro organization
* @param duration [required] Duration
*/
public OvhOrder email_pro_service_account_duration_POST(String service, String duration, Long number) throws IOException {
String qPath = "/order/email/pro/{service}/account/{duration}";
StringBuilder sb = path(qPath, service, duration);
HashMapo = new HashMap();
addBody(o, "number", number);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* List available services
*
* REST: GET /order/email/domain
*/
public ArrayList email_domain_GET() throws IOException {
String qPath = "/order/email/domain";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed durations for 'new' option
*
* REST: GET /order/email/domain/new
* @param domain [required] Domain name which will be linked to this mx account
* @param offer [required] Offer for your new mx account
* @deprecated
*/
public ArrayList email_domain_new_GET(String domain, OvhOfferEnum offer) throws IOException {
String qPath = "/order/email/domain/new";
StringBuilder sb = path(qPath);
query(sb, "domain", domain);
query(sb, "offer", offer);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/email/domain/new/{duration}
* @param domain [required] Domain name which will be linked to this mx account
* @param offer [required] Offer for your new mx account
* @param duration [required] Duration
* @deprecated
*/
public OvhOrder email_domain_new_duration_GET(String duration, String domain, OvhOfferEnum offer) throws IOException {
String qPath = "/order/email/domain/new/{duration}";
StringBuilder sb = path(qPath, duration);
query(sb, "domain", domain);
query(sb, "offer", offer);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/email/domain/new/{duration}
* @param domain [required] Domain name which will be linked to this mx account
* @param offer [required] Offer for your new mx account
* @param duration [required] Duration
* @deprecated
*/
public OvhOrder email_domain_new_duration_POST(String duration, String domain, OvhOfferEnum offer) throws IOException {
String qPath = "/order/email/domain/new/{duration}";
StringBuilder sb = path(qPath, duration);
HashMapo = new HashMap();
addBody(o, "domain", domain);
addBody(o, "offer", offer);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* List available services
*
* REST: GET /order/email/exchange
*/
public ArrayList email_exchange_GET() throws IOException {
String qPath = "/order/email/exchange";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* List available services
*
* REST: GET /order/email/exchange/{organizationName}/service
* @param organizationName [required] The internal name of your exchange organization
*/
public ArrayList email_exchange_organizationName_service_GET(String organizationName) throws IOException {
String qPath = "/order/email/exchange/{organizationName}/service";
StringBuilder sb = path(qPath, organizationName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed options
*
* REST: GET /order/email/exchange/{organizationName}/service/{exchangeService}
* @param organizationName [required] The internal name of your exchange organization
* @param exchangeService [required] The internal name of your exchange service
*/
public ArrayList email_exchange_organizationName_service_exchangeService_GET(String organizationName, String exchangeService) throws IOException {
String qPath = "/order/email/exchange/{organizationName}/service/{exchangeService}";
StringBuilder sb = path(qPath, organizationName, exchangeService);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed durations for 'accountUpgrade' option
*
* REST: GET /order/email/exchange/{organizationName}/service/{exchangeService}/accountUpgrade
* @param primaryEmailAddress [required] The account you wish to upgrade
* @param newQuota [required] New storage quota for that account
* @param organizationName [required] The internal name of your exchange organization
* @param exchangeService [required] The internal name of your exchange service
*/
public ArrayList email_exchange_organizationName_service_exchangeService_accountUpgrade_GET(String organizationName, String exchangeService, OvhAccountQuotaEnum newQuota, String primaryEmailAddress) throws IOException {
String qPath = "/order/email/exchange/{organizationName}/service/{exchangeService}/accountUpgrade";
StringBuilder sb = path(qPath, organizationName, exchangeService);
query(sb, "newQuota", newQuota);
query(sb, "primaryEmailAddress", primaryEmailAddress);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/email/exchange/{organizationName}/service/{exchangeService}/accountUpgrade/{duration}
* @param primaryEmailAddress [required] The account you wish to upgrade
* @param newQuota [required] New storage quota for that account
* @param organizationName [required] The internal name of your exchange organization
* @param exchangeService [required] The internal name of your exchange service
* @param duration [required] Duration
*/
public OvhOrder email_exchange_organizationName_service_exchangeService_accountUpgrade_duration_GET(String organizationName, String exchangeService, String duration, OvhAccountQuotaEnum newQuota, String primaryEmailAddress) throws IOException {
String qPath = "/order/email/exchange/{organizationName}/service/{exchangeService}/accountUpgrade/{duration}";
StringBuilder sb = path(qPath, organizationName, exchangeService, duration);
query(sb, "newQuota", newQuota);
query(sb, "primaryEmailAddress", primaryEmailAddress);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/email/exchange/{organizationName}/service/{exchangeService}/accountUpgrade/{duration}
* @param primaryEmailAddress [required] The account you wish to upgrade
* @param newQuota [required] New storage quota for that account
* @param organizationName [required] The internal name of your exchange organization
* @param exchangeService [required] The internal name of your exchange service
* @param duration [required] Duration
*/
public OvhOrder email_exchange_organizationName_service_exchangeService_accountUpgrade_duration_POST(String organizationName, String exchangeService, String duration, String primaryEmailAddress, OvhAccountQuotaEnum newQuota) throws IOException {
String qPath = "/order/email/exchange/{organizationName}/service/{exchangeService}/accountUpgrade/{duration}";
StringBuilder sb = path(qPath, organizationName, exchangeService, duration);
HashMapo = new HashMap();
addBody(o, "primaryEmailAddress", primaryEmailAddress);
addBody(o, "newQuota", newQuota);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed durations for 'outlook' option
*
* REST: GET /order/email/exchange/{organizationName}/service/{exchangeService}/outlook
* @param licence [required] Outlook version
* @param primaryEmailAddress [required] Primary email address for account which You want to buy an outlook
* @param organizationName [required] The internal name of your exchange organization
* @param exchangeService [required] The internal name of your exchange service
*/
public ArrayList email_exchange_organizationName_service_exchangeService_outlook_GET(String organizationName, String exchangeService, OvhOutlookVersionEnum licence, String primaryEmailAddress) throws IOException {
String qPath = "/order/email/exchange/{organizationName}/service/{exchangeService}/outlook";
StringBuilder sb = path(qPath, organizationName, exchangeService);
query(sb, "licence", licence);
query(sb, "primaryEmailAddress", primaryEmailAddress);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/email/exchange/{organizationName}/service/{exchangeService}/outlook/{duration}
* @param licence [required] Outlook version
* @param primaryEmailAddress [required] Primary email address for account which You want to buy an outlook
* @param organizationName [required] The internal name of your exchange organization
* @param exchangeService [required] The internal name of your exchange service
* @param duration [required] Duration
*/
public OvhOrder email_exchange_organizationName_service_exchangeService_outlook_duration_GET(String organizationName, String exchangeService, String duration, OvhOutlookVersionEnum licence, String primaryEmailAddress) throws IOException {
String qPath = "/order/email/exchange/{organizationName}/service/{exchangeService}/outlook/{duration}";
StringBuilder sb = path(qPath, organizationName, exchangeService, duration);
query(sb, "licence", licence);
query(sb, "primaryEmailAddress", primaryEmailAddress);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/email/exchange/{organizationName}/service/{exchangeService}/outlook/{duration}
* @param licence [required] Outlook version
* @param primaryEmailAddress [required] Primary email address for account which You want to buy an outlook
* @param organizationName [required] The internal name of your exchange organization
* @param exchangeService [required] The internal name of your exchange service
* @param duration [required] Duration
*/
public OvhOrder email_exchange_organizationName_service_exchangeService_outlook_duration_POST(String organizationName, String exchangeService, String duration, OvhOutlookVersionEnum licence, String primaryEmailAddress) throws IOException {
String qPath = "/order/email/exchange/{organizationName}/service/{exchangeService}/outlook/{duration}";
StringBuilder sb = path(qPath, organizationName, exchangeService, duration);
HashMapo = new HashMap();
addBody(o, "licence", licence);
addBody(o, "primaryEmailAddress", primaryEmailAddress);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed durations for 'account' option
*
* REST: GET /order/email/exchange/{organizationName}/service/{exchangeService}/account
* @param number [required] Number of Accounts to order
* @param licence [required] Licence type for the account
* @param storageQuota [required] The storage quota for the account(s) in GB (default = 50)
* @param organizationName [required] The internal name of your exchange organization
* @param exchangeService [required] The internal name of your exchange service
*/
public ArrayList email_exchange_organizationName_service_exchangeService_account_GET(String organizationName, String exchangeService, OvhOvhLicenceEnum licence, Long number, OvhAccountQuotaEnum storageQuota) throws IOException {
String qPath = "/order/email/exchange/{organizationName}/service/{exchangeService}/account";
StringBuilder sb = path(qPath, organizationName, exchangeService);
query(sb, "licence", licence);
query(sb, "number", number);
query(sb, "storageQuota", storageQuota);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/email/exchange/{organizationName}/service/{exchangeService}/account/{duration}
* @param number [required] Number of Accounts to order
* @param licence [required] Licence type for the account
* @param storageQuota [required] The storage quota for the account(s) in GB (default = 50)
* @param organizationName [required] The internal name of your exchange organization
* @param exchangeService [required] The internal name of your exchange service
* @param duration [required] Duration
*/
public OvhOrder email_exchange_organizationName_service_exchangeService_account_duration_GET(String organizationName, String exchangeService, String duration, OvhOvhLicenceEnum licence, Long number, OvhAccountQuotaEnum storageQuota) throws IOException {
String qPath = "/order/email/exchange/{organizationName}/service/{exchangeService}/account/{duration}";
StringBuilder sb = path(qPath, organizationName, exchangeService, duration);
query(sb, "licence", licence);
query(sb, "number", number);
query(sb, "storageQuota", storageQuota);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/email/exchange/{organizationName}/service/{exchangeService}/account/{duration}
* @param number [required] Number of Accounts to order
* @param licence [required] Licence type for the account
* @param storageQuota [required] The storage quota for the account(s) in GB (default = 50)
* @param organizationName [required] The internal name of your exchange organization
* @param exchangeService [required] The internal name of your exchange service
* @param duration [required] Duration
*/
public OvhOrder email_exchange_organizationName_service_exchangeService_account_duration_POST(String organizationName, String exchangeService, String duration, Long number, OvhOvhLicenceEnum licence, OvhAccountQuotaEnum storageQuota) throws IOException {
String qPath = "/order/email/exchange/{organizationName}/service/{exchangeService}/account/{duration}";
StringBuilder sb = path(qPath, organizationName, exchangeService, duration);
HashMapo = new HashMap();
addBody(o, "number", number);
addBody(o, "licence", licence);
addBody(o, "storageQuota", storageQuota);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/email/exchange/{organizationName}/service/{exchangeService}/upgrade
* @param organizationName [required] The internal name of your exchange organization
* @param exchangeService [required] The internal name of your exchange service
*/
public OvhOrder email_exchange_organizationName_service_exchangeService_upgrade_GET(String organizationName, String exchangeService) throws IOException {
String qPath = "/order/email/exchange/{organizationName}/service/{exchangeService}/upgrade";
StringBuilder sb = path(qPath, organizationName, exchangeService);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/email/exchange/{organizationName}/service/{exchangeService}/upgrade
* @param organizationName [required] The internal name of your exchange organization
* @param exchangeService [required] The internal name of your exchange service
*/
public OvhOrder email_exchange_organizationName_service_exchangeService_upgrade_POST(String organizationName, String exchangeService) throws IOException {
String qPath = "/order/email/exchange/{organizationName}/service/{exchangeService}/upgrade";
StringBuilder sb = path(qPath, organizationName, exchangeService);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/email/exchange/{organizationName}/service/{exchangeService}/diskSpace
* @param organizationName [required] The internal name of your exchange organization
* @param exchangeService [required] The internal name of your exchange service
*/
public OvhOrder email_exchange_organizationName_service_exchangeService_diskSpace_GET(String organizationName, String exchangeService) throws IOException {
String qPath = "/order/email/exchange/{organizationName}/service/{exchangeService}/diskSpace";
StringBuilder sb = path(qPath, organizationName, exchangeService);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/email/exchange/{organizationName}/service/{exchangeService}/diskSpace
* @param organizationName [required] The internal name of your exchange organization
* @param exchangeService [required] The internal name of your exchange service
*/
public OvhOrder email_exchange_organizationName_service_exchangeService_diskSpace_POST(String organizationName, String exchangeService) throws IOException {
String qPath = "/order/email/exchange/{organizationName}/service/{exchangeService}/diskSpace";
StringBuilder sb = path(qPath, organizationName, exchangeService);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed options
*
* REST: GET /order/cloud/project/{serviceName}
* @param serviceName [required] The project id
*/
public ArrayList cloud_project_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cloud/project/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/cloud/project/{serviceName}/credit
* @param amount [required] Amount to add in your cloud credit
* @param serviceName [required] The project id
*/
public OvhOrder cloud_project_serviceName_credit_GET(String serviceName, Long amount) throws IOException {
String qPath = "/order/cloud/project/{serviceName}/credit";
StringBuilder sb = path(qPath, serviceName);
query(sb, "amount", amount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/cloud/project/{serviceName}/credit
* @param amount [required] Amount to add in your cloud credit
* @param serviceName [required] The project id
*/
public OvhOrder cloud_project_serviceName_credit_POST(String serviceName, Long amount) throws IOException {
String qPath = "/order/cloud/project/{serviceName}/credit";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "amount", amount);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/cloud/project/{serviceName}/ip
* @param country [required] IP geolocation
* @param instanceId [required] Instance id where ip will be routed to
* @param quantity [required] Number of failover ip
* @param serviceName [required] The project id
*/
public OvhOrder cloud_project_serviceName_ip_GET(String serviceName, OvhGeolocationEnum country, String instanceId, Long quantity) throws IOException {
String qPath = "/order/cloud/project/{serviceName}/ip";
StringBuilder sb = path(qPath, serviceName);
query(sb, "country", country);
query(sb, "instanceId", instanceId);
query(sb, "quantity", quantity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/cloud/project/{serviceName}/ip
* @param country [required] IP geolocation
* @param instanceId [required] Instance id where ip will be routed to
* @param quantity [required] Number of failover ip
* @param serviceName [required] The project id
*/
public OvhOrder cloud_project_serviceName_ip_POST(String serviceName, OvhGeolocationEnum country, String instanceId, Long quantity) throws IOException {
String qPath = "/order/cloud/project/{serviceName}/ip";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "country", country);
addBody(o, "instanceId", instanceId);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* List available services
*
* REST: GET /order/cloud/project
*/
public ArrayList cloud_project_GET() throws IOException {
String qPath = "/order/cloud/project";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* List available services
*
* REST: GET /order/domain/zone
*/
public ArrayList domain_zone_GET() throws IOException {
String qPath = "/order/domain/zone";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed options
*
* REST: GET /order/domain/zone/{zoneName}
* @param zoneName [required] The internal name of your zone
*/
public ArrayList domain_zone_zoneName_GET(String zoneName) throws IOException {
String qPath = "/order/domain/zone/{zoneName}";
StringBuilder sb = path(qPath, zoneName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed durations for 'dnsAnycast' option
*
* REST: GET /order/domain/zone/{zoneName}/dnsAnycast
* @param zoneName [required] The internal name of your zone
*/
public ArrayList domain_zone_zoneName_dnsAnycast_GET(String zoneName) throws IOException {
String qPath = "/order/domain/zone/{zoneName}/dnsAnycast";
StringBuilder sb = path(qPath, zoneName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/domain/zone/{zoneName}/dnsAnycast/{duration}
* @param zoneName [required] The internal name of your zone
* @param duration [required] Duration
*/
public OvhOrder domain_zone_zoneName_dnsAnycast_duration_GET(String zoneName, String duration) throws IOException {
String qPath = "/order/domain/zone/{zoneName}/dnsAnycast/{duration}";
StringBuilder sb = path(qPath, zoneName, duration);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/domain/zone/{zoneName}/dnsAnycast/{duration}
* @param zoneName [required] The internal name of your zone
* @param duration [required] Duration
*/
public OvhOrder domain_zone_zoneName_dnsAnycast_duration_POST(String zoneName, String duration) throws IOException {
String qPath = "/order/domain/zone/{zoneName}/dnsAnycast/{duration}";
StringBuilder sb = path(qPath, zoneName, duration);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Get prices and contracts information
*
* REST: GET /order/domain/zone/new
* @param zoneName [required] Name of the zone to create
* @param minimized [required] Create only mandatory records
*/
public OvhOrder domain_zone_new_GET(Boolean minimized, String zoneName) throws IOException {
String qPath = "/order/domain/zone/new";
StringBuilder sb = path(qPath);
query(sb, "minimized", minimized);
query(sb, "zoneName", zoneName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/domain/zone/new
* @param zoneName [required] Name of the zone to create
* @param minimized [required] Create only mandatory records
*/
public OvhOrder domain_zone_new_POST(String zoneName, Boolean minimized) throws IOException {
String qPath = "/order/domain/zone/new";
StringBuilder sb = path(qPath);
HashMapo = new HashMap();
addBody(o, "zoneName", zoneName);
addBody(o, "minimized", minimized);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed options
*
* REST: GET /order/freefax/{serviceName}
* @param serviceName [required] Freefax number
*/
public ArrayList freefax_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/freefax/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/freefax/{serviceName}/convertToVoicefax
* @param billingAccount [required] The /telephony billing account you want your service to be attached to
* @param serviceName [required] Freefax number
*/
public OvhOrder freefax_serviceName_convertToVoicefax_GET(String serviceName, String billingAccount) throws IOException {
String qPath = "/order/freefax/{serviceName}/convertToVoicefax";
StringBuilder sb = path(qPath, serviceName);
query(sb, "billingAccount", billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/freefax/{serviceName}/convertToVoicefax
* @param billingAccount [required] The /telephony billing account you want your service to be attached to
* @param serviceName [required] Freefax number
*/
public OvhOrder freefax_serviceName_convertToVoicefax_POST(String serviceName, String billingAccount) throws IOException {
String qPath = "/order/freefax/{serviceName}/convertToVoicefax";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "billingAccount", billingAccount);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* List available services
*
* REST: GET /order/freefax
*/
public ArrayList freefax_GET() throws IOException {
String qPath = "/order/freefax";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/freefax/new
* @param quantity [required] Fax quantity possibilities to purchase
*/
public OvhOrder freefax_new_GET(OvhQuantityEnum quantity) throws IOException {
String qPath = "/order/freefax/new";
StringBuilder sb = path(qPath);
query(sb, "quantity", quantity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/freefax/new
* @param quantity [required] Fax quantity possibilities to purchase
*/
public OvhOrder freefax_new_POST(OvhQuantityEnum quantity) throws IOException {
String qPath = "/order/freefax/new";
StringBuilder sb = path(qPath);
HashMapo = new HashMap();
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Retrieve available offers to upgrade your service to
*
* REST: GET /order/upgrade/cephaas/{serviceName}
* @param serviceName [required] The internal ID of Ceph service
*
* API beta
*/
public ArrayList upgrade_cephaas_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/upgrade/cephaas/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t2);
}
private static TypeReference> t2 = new TypeReference>() {};
/**
* Get a provisional order for the selected upgrade of your service
*
* REST: GET /order/upgrade/cephaas/{serviceName}/{planCode}
* @param planCode [required] Plan code of the offer you want to upgrade to
* @param quantity [required] Quantity you want to upgrade to
* @param serviceName [required] The internal ID of Ceph service
*
* API beta
*/
public OvhOrderUpgradeOperationAndOrder upgrade_cephaas_serviceName_planCode_GET(String serviceName, String planCode, Long quantity) throws IOException {
String qPath = "/order/upgrade/cephaas/{serviceName}/{planCode}";
StringBuilder sb = path(qPath, serviceName, planCode);
query(sb, "quantity", quantity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrderUpgradeOperationAndOrder.class);
}
/**
* Perform the requested upgrade of your service
*
* REST: POST /order/upgrade/cephaas/{serviceName}/{planCode}
* @param planCode [required] Plan code of the offer you want to upgrade to
* @param quantity [required] Quantity you want to upgrade to
* @param serviceName [required] The internal ID of Ceph service
*
* API beta
*/
public OvhOrderUpgradeOperationAndOrder upgrade_cephaas_serviceName_planCode_POST(String serviceName, String planCode, Long quantity) throws IOException {
String qPath = "/order/upgrade/cephaas/{serviceName}/{planCode}";
StringBuilder sb = path(qPath, serviceName, planCode);
HashMapo = new HashMap();
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrderUpgradeOperationAndOrder.class);
}
/**
* List available services
*
* REST: GET /order/upgrade/cephaas
*
* API beta
*/
public ArrayList upgrade_cephaas_GET() throws IOException {
String qPath = "/order/upgrade/cephaas";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Retrieve available offers to upgrade your service to
*
* REST: GET /order/upgrade/metrics/{serviceName}
* @param serviceName [required] The internal ID of your Metrics service
*
* API beta
*/
public ArrayList upgrade_metrics_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/upgrade/metrics/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t2);
}
/**
* Get a provisional order for the selected upgrade of your service
*
* REST: GET /order/upgrade/metrics/{serviceName}/{planCode}
* @param planCode [required] Plan code of the offer you want to upgrade to
* @param quantity [required] Quantity you want to upgrade to
* @param serviceName [required] The internal ID of your Metrics service
*
* API beta
*/
public OvhOrderUpgradeOperationAndOrder upgrade_metrics_serviceName_planCode_GET(String serviceName, String planCode, Long quantity) throws IOException {
String qPath = "/order/upgrade/metrics/{serviceName}/{planCode}";
StringBuilder sb = path(qPath, serviceName, planCode);
query(sb, "quantity", quantity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrderUpgradeOperationAndOrder.class);
}
/**
* Perform the requested upgrade of your service
*
* REST: POST /order/upgrade/metrics/{serviceName}/{planCode}
* @param planCode [required] Plan code of the offer you want to upgrade to
* @param quantity [required] Quantity you want to upgrade to
* @param serviceName [required] The internal ID of your Metrics service
*
* API beta
*/
public OvhOrderUpgradeOperationAndOrder upgrade_metrics_serviceName_planCode_POST(String serviceName, String planCode, Long quantity) throws IOException {
String qPath = "/order/upgrade/metrics/{serviceName}/{planCode}";
StringBuilder sb = path(qPath, serviceName, planCode);
HashMapo = new HashMap();
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrderUpgradeOperationAndOrder.class);
}
/**
* List available services
*
* REST: GET /order/upgrade/metrics
*
* API beta
*/
public ArrayList upgrade_metrics_GET() throws IOException {
String qPath = "/order/upgrade/metrics";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Retrieve available offers to upgrade your service to
*
* REST: GET /order/upgrade/logs/{serviceName}
* @param serviceName [required] The internal ID of DBaaS Logs service
*
* API beta
*/
public ArrayList upgrade_logs_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/upgrade/logs/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t2);
}
/**
* Get a provisional order for the selected upgrade of your service
*
* REST: GET /order/upgrade/logs/{serviceName}/{planCode}
* @param planCode [required] Plan code of the offer you want to upgrade to
* @param quantity [required] Quantity you want to upgrade to
* @param serviceName [required] The internal ID of DBaaS Logs service
*
* API beta
*/
public OvhOrderUpgradeOperationAndOrder upgrade_logs_serviceName_planCode_GET(String serviceName, String planCode, Long quantity) throws IOException {
String qPath = "/order/upgrade/logs/{serviceName}/{planCode}";
StringBuilder sb = path(qPath, serviceName, planCode);
query(sb, "quantity", quantity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrderUpgradeOperationAndOrder.class);
}
/**
* Perform the requested upgrade of your service
*
* REST: POST /order/upgrade/logs/{serviceName}/{planCode}
* @param planCode [required] Plan code of the offer you want to upgrade to
* @param quantity [required] Quantity you want to upgrade to
* @param serviceName [required] The internal ID of DBaaS Logs service
*
* API beta
*/
public OvhOrderUpgradeOperationAndOrder upgrade_logs_serviceName_planCode_POST(String serviceName, String planCode, Long quantity) throws IOException {
String qPath = "/order/upgrade/logs/{serviceName}/{planCode}";
StringBuilder sb = path(qPath, serviceName, planCode);
HashMapo = new HashMap();
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrderUpgradeOperationAndOrder.class);
}
/**
* List available services
*
* REST: GET /order/upgrade/logs
*
* API beta
*/
public ArrayList upgrade_logs_GET() throws IOException {
String qPath = "/order/upgrade/logs";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Retrieve available offers to upgrade your service to
*
* REST: GET /order/upgrade/ipLoadbalancing/{serviceName}
* @param serviceName [required] The internal ID of your IPLB service
*
* API beta
*/
public ArrayList upgrade_ipLoadbalancing_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/upgrade/ipLoadbalancing/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t2);
}
/**
* Get a provisional order for the selected upgrade of your service
*
* REST: GET /order/upgrade/ipLoadbalancing/{serviceName}/{planCode}
* @param planCode [required] Plan code of the offer you want to upgrade to
* @param quantity [required] Quantity you want to upgrade to
* @param serviceName [required] The internal ID of your IPLB service
*
* API beta
*/
public OvhOrderUpgradeOperationAndOrder upgrade_ipLoadbalancing_serviceName_planCode_GET(String serviceName, String planCode, Long quantity) throws IOException {
String qPath = "/order/upgrade/ipLoadbalancing/{serviceName}/{planCode}";
StringBuilder sb = path(qPath, serviceName, planCode);
query(sb, "quantity", quantity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrderUpgradeOperationAndOrder.class);
}
/**
* Perform the requested upgrade of your service
*
* REST: POST /order/upgrade/ipLoadbalancing/{serviceName}/{planCode}
* @param planCode [required] Plan code of the offer you want to upgrade to
* @param quantity [required] Quantity you want to upgrade to
* @param serviceName [required] The internal ID of your IPLB service
*
* API beta
*/
public OvhOrderUpgradeOperationAndOrder upgrade_ipLoadbalancing_serviceName_planCode_POST(String serviceName, String planCode, Long quantity) throws IOException {
String qPath = "/order/upgrade/ipLoadbalancing/{serviceName}/{planCode}";
StringBuilder sb = path(qPath, serviceName, planCode);
HashMapo = new HashMap();
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrderUpgradeOperationAndOrder.class);
}
/**
* List available services
*
* REST: GET /order/upgrade/ipLoadbalancing
*
* API beta
*/
public ArrayList upgrade_ipLoadbalancing_GET() throws IOException {
String qPath = "/order/upgrade/ipLoadbalancing";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Retrieve available offers to upgrade your service to
*
* REST: GET /order/upgrade/sslGateway/{serviceName}
* @param serviceName [required] The internal ID of SSL Gateway service
*
* API beta
*/
public ArrayList upgrade_sslGateway_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/upgrade/sslGateway/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t2);
}
/**
* Get a provisional order for the selected upgrade of your service
*
* REST: GET /order/upgrade/sslGateway/{serviceName}/{planCode}
* @param planCode [required] Plan code of the offer you want to upgrade to
* @param quantity [required] Quantity you want to upgrade to
* @param serviceName [required] The internal ID of SSL Gateway service
*
* API beta
*/
public OvhOrderUpgradeOperationAndOrder upgrade_sslGateway_serviceName_planCode_GET(String serviceName, String planCode, Long quantity) throws IOException {
String qPath = "/order/upgrade/sslGateway/{serviceName}/{planCode}";
StringBuilder sb = path(qPath, serviceName, planCode);
query(sb, "quantity", quantity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrderUpgradeOperationAndOrder.class);
}
/**
* Perform the requested upgrade of your service
*
* REST: POST /order/upgrade/sslGateway/{serviceName}/{planCode}
* @param planCode [required] Plan code of the offer you want to upgrade to
* @param quantity [required] Quantity you want to upgrade to
* @param serviceName [required] The internal ID of SSL Gateway service
*
* API beta
*/
public OvhOrderUpgradeOperationAndOrder upgrade_sslGateway_serviceName_planCode_POST(String serviceName, String planCode, Long quantity) throws IOException {
String qPath = "/order/upgrade/sslGateway/{serviceName}/{planCode}";
StringBuilder sb = path(qPath, serviceName, planCode);
HashMapo = new HashMap();
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrderUpgradeOperationAndOrder.class);
}
/**
* List available services
*
* REST: GET /order/upgrade/sslGateway
*
* API beta
*/
public ArrayList upgrade_sslGateway_GET() throws IOException {
String qPath = "/order/upgrade/sslGateway";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed durations for 'new' option
*
* REST: GET /order/saas/csp2/new
* @param officeBusinessQuantity [required] Number of prepaid office business license
* @param officeProPlusQuantity [required] Number of prepaid office pro plus license
* @param giftCode [required] Gift code for office license
*/
public ArrayList saas_csp2_new_GET(String giftCode, Long officeBusinessQuantity, Long officeProPlusQuantity) throws IOException {
String qPath = "/order/saas/csp2/new";
StringBuilder sb = path(qPath);
query(sb, "giftCode", giftCode);
query(sb, "officeBusinessQuantity", officeBusinessQuantity);
query(sb, "officeProPlusQuantity", officeProPlusQuantity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/saas/csp2/new/{duration}
* @param officeBusinessQuantity [required] Number of prepaid office business license
* @param officeProPlusQuantity [required] Number of prepaid office pro plus license
* @param giftCode [required] Gift code for office license
* @param duration [required] Duration
*/
public OvhOrder saas_csp2_new_duration_GET(String duration, String giftCode, Long officeBusinessQuantity, Long officeProPlusQuantity) throws IOException {
String qPath = "/order/saas/csp2/new/{duration}";
StringBuilder sb = path(qPath, duration);
query(sb, "giftCode", giftCode);
query(sb, "officeBusinessQuantity", officeBusinessQuantity);
query(sb, "officeProPlusQuantity", officeProPlusQuantity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/saas/csp2/new/{duration}
* @param officeBusinessQuantity [required] Number of prepaid office business license
* @param officeProPlusQuantity [required] Number of prepaid office pro plus license
* @param giftCode [required] Gift code for office license
* @param duration [required] Duration
*/
public OvhOrder saas_csp2_new_duration_POST(String duration, Long officeBusinessQuantity, Long officeProPlusQuantity, String giftCode) throws IOException {
String qPath = "/order/saas/csp2/new/{duration}";
StringBuilder sb = path(qPath, duration);
HashMapo = new HashMap();
addBody(o, "officeBusinessQuantity", officeBusinessQuantity);
addBody(o, "officeProPlusQuantity", officeProPlusQuantity);
addBody(o, "giftCode", giftCode);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed options
*
* REST: GET /order/dedicated/housing/{serviceName}
* @param serviceName [required] The internal name of your Housing bay
*/
public ArrayList dedicated_housing_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/dedicated/housing/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed durations for 'APC' option
*
* REST: GET /order/dedicated/housing/{serviceName}/APC
* @param serviceName [required] The internal name of your Housing bay
*/
public ArrayList dedicated_housing_serviceName_APC_GET(String serviceName) throws IOException {
String qPath = "/order/dedicated/housing/{serviceName}/APC";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/housing/{serviceName}/APC/{duration}
* @param serviceName [required] The internal name of your Housing bay
* @param duration [required] Duration
*/
public OvhOrder dedicated_housing_serviceName_APC_duration_GET(String serviceName, String duration) throws IOException {
String qPath = "/order/dedicated/housing/{serviceName}/APC/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/housing/{serviceName}/APC/{duration}
* @param serviceName [required] The internal name of your Housing bay
* @param duration [required] Duration
*/
public OvhOrder dedicated_housing_serviceName_APC_duration_POST(String serviceName, String duration) throws IOException {
String qPath = "/order/dedicated/housing/{serviceName}/APC/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* List available services
*
* REST: GET /order/dedicated/housing
*/
public ArrayList dedicated_housing_GET() throws IOException {
String qPath = "/order/dedicated/housing";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed durations for 'kvmExpress' option
*
* REST: GET /order/dedicated/server/{serviceName}/kvmExpress
* @param serviceName [required] The internal name of your dedicated server
*/
public ArrayList dedicated_server_serviceName_kvmExpress_GET(String serviceName) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/kvmExpress";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/server/{serviceName}/kvmExpress/{duration}
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_kvmExpress_duration_GET(String serviceName, String duration) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/kvmExpress/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/server/{serviceName}/kvmExpress/{duration}
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_kvmExpress_duration_POST(String serviceName, String duration) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/kvmExpress/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed options
*
* REST: GET /order/dedicated/server/{serviceName}
* @param serviceName [required] The internal name of your dedicated server
*/
public ArrayList dedicated_server_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed durations for 'professionalUse' option
*
* REST: GET /order/dedicated/server/{serviceName}/professionalUse
* @param serviceName [required] The internal name of your dedicated server
*/
public ArrayList dedicated_server_serviceName_professionalUse_GET(String serviceName) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/professionalUse";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/server/{serviceName}/professionalUse/{duration}
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_professionalUse_duration_GET(String serviceName, String duration) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/professionalUse/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/server/{serviceName}/professionalUse/{duration}
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_professionalUse_duration_POST(String serviceName, String duration) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/professionalUse/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed durations for 'usbKey' option
*
* REST: GET /order/dedicated/server/{serviceName}/usbKey
* @param capacity [required] Capacity in gigabytes
* @param serviceName [required] The internal name of your dedicated server
*/
public ArrayList dedicated_server_serviceName_usbKey_GET(String serviceName, OvhUsbKeyCapacityEnum capacity) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/usbKey";
StringBuilder sb = path(qPath, serviceName);
query(sb, "capacity", capacity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/server/{serviceName}/usbKey/{duration}
* @param capacity [required] Capacity in gigabytes
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_usbKey_duration_GET(String serviceName, String duration, OvhUsbKeyCapacityEnum capacity) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/usbKey/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "capacity", capacity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/server/{serviceName}/usbKey/{duration}
* @param capacity [required] Capacity in gigabytes
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_usbKey_duration_POST(String serviceName, String duration, OvhUsbKeyCapacityEnum capacity) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/usbKey/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMapo = new HashMap();
addBody(o, "capacity", capacity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed durations for 'ip' option
*
* REST: GET /order/dedicated/server/{serviceName}/ip
* @param organisationId [required] Your organisation id to add on block informations
* @param country [required] IP localization
* @param blockSize [required] IP block size
* @param type [required] The type of IP
* @param serviceName [required] The internal name of your dedicated server
*/
public ArrayList dedicated_server_serviceName_ip_GET(String serviceName, OvhIpBlockSizeEnum blockSize, OvhIpCountryEnum country, String organisationId, OvhIpTypeOrderableEnum type) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/ip";
StringBuilder sb = path(qPath, serviceName);
query(sb, "blockSize", blockSize);
query(sb, "country", country);
query(sb, "organisationId", organisationId);
query(sb, "type", type);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/server/{serviceName}/ip/{duration}
* @param organisationId [required] Your organisation id to add on block informations
* @param country [required] IP localization
* @param blockSize [required] IP block size
* @param type [required] The type of IP
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_ip_duration_GET(String serviceName, String duration, OvhIpBlockSizeEnum blockSize, OvhIpCountryEnum country, String organisationId, OvhIpTypeOrderableEnum type) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/ip/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "blockSize", blockSize);
query(sb, "country", country);
query(sb, "organisationId", organisationId);
query(sb, "type", type);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/server/{serviceName}/ip/{duration}
* @param organisationId [required] Your organisation id to add on block informations
* @param country [required] IP localization
* @param blockSize [required] IP block size
* @param type [required] The type of IP
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_ip_duration_POST(String serviceName, String duration, String organisationId, OvhIpCountryEnum country, OvhIpBlockSizeEnum blockSize, OvhIpTypeOrderableEnum type) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/ip/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMapo = new HashMap();
addBody(o, "organisationId", organisationId);
addBody(o, "country", country);
addBody(o, "blockSize", blockSize);
addBody(o, "type", type);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed durations for 'backupStorage' option
*
* REST: GET /order/dedicated/server/{serviceName}/backupStorage
* @param capacity [required] The capacity in gigabytes of your backup storage
* @param serviceName [required] The internal name of your dedicated server
*/
public ArrayList dedicated_server_serviceName_backupStorage_GET(String serviceName, OvhBackupStorageCapacityEnum capacity) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/backupStorage";
StringBuilder sb = path(qPath, serviceName);
query(sb, "capacity", capacity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/server/{serviceName}/backupStorage/{duration}
* @param capacity [required] The capacity in gigabytes of your backup storage
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_backupStorage_duration_GET(String serviceName, String duration, OvhBackupStorageCapacityEnum capacity) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/backupStorage/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "capacity", capacity);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/server/{serviceName}/backupStorage/{duration}
* @param capacity [required] The capacity in gigabytes of your backup storage
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_backupStorage_duration_POST(String serviceName, String duration, OvhBackupStorageCapacityEnum capacity) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/backupStorage/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMapo = new HashMap();
addBody(o, "capacity", capacity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed durations for 'bandwidthvRack' option
*
* REST: GET /order/dedicated/server/{serviceName}/bandwidthvRack
* @param bandwidth [required] vRack Bandwidth to allocate
* @param serviceName [required] The internal name of your dedicated server
*/
public ArrayList dedicated_server_serviceName_bandwidthvRack_GET(String serviceName, OvhBandwidthvRackOrderEnum bandwidth) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/bandwidthvRack";
StringBuilder sb = path(qPath, serviceName);
query(sb, "bandwidth", bandwidth);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/server/{serviceName}/bandwidthvRack/{duration}
* @param bandwidth [required] vRack Bandwidth to allocate
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_bandwidthvRack_duration_GET(String serviceName, String duration, OvhBandwidthvRackOrderEnum bandwidth) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/bandwidthvRack/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "bandwidth", bandwidth);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/server/{serviceName}/bandwidthvRack/{duration}
* @param bandwidth [required] vRack Bandwidth to allocate
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_bandwidthvRack_duration_POST(String serviceName, String duration, OvhBandwidthvRackOrderEnum bandwidth) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/bandwidthvRack/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMapo = new HashMap();
addBody(o, "bandwidth", bandwidth);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed durations for 'ipMigration' option
*
* REST: GET /order/dedicated/server/{serviceName}/ipMigration
* @param ip [required] The IP to move to this server
* @param token [required] IP migration token
* @param serviceName [required] The internal name of your dedicated server
*/
public ArrayList dedicated_server_serviceName_ipMigration_GET(String serviceName, String ip, String token) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/ipMigration";
StringBuilder sb = path(qPath, serviceName);
query(sb, "ip", ip);
query(sb, "token", token);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/server/{serviceName}/ipMigration/{duration}
* @param ip [required] The IP to move to this server
* @param token [required] IP migration token
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_ipMigration_duration_GET(String serviceName, String duration, String ip, String token) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/ipMigration/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "ip", ip);
query(sb, "token", token);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/server/{serviceName}/ipMigration/{duration}
* @param ip [required] The IP to move to this server
* @param token [required] IP migration token
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_ipMigration_duration_POST(String serviceName, String duration, String ip, String token) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/ipMigration/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMapo = new HashMap();
addBody(o, "ip", ip);
addBody(o, "token", token);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed durations for 'kvm' option
*
* REST: GET /order/dedicated/server/{serviceName}/kvm
* @param serviceName [required] The internal name of your dedicated server
*/
public ArrayList dedicated_server_serviceName_kvm_GET(String serviceName) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/kvm";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/server/{serviceName}/kvm/{duration}
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_kvm_duration_GET(String serviceName, String duration) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/kvm/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/server/{serviceName}/kvm/{duration}
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_kvm_duration_POST(String serviceName, String duration) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/kvm/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed durations for 'feature' option
*
* REST: GET /order/dedicated/server/{serviceName}/feature
* @param feature [required] the feature
* @param serviceName [required] The internal name of your dedicated server
*/
public ArrayList dedicated_server_serviceName_feature_GET(String serviceName, OvhOrderableSysFeatureEnum feature) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/feature";
StringBuilder sb = path(qPath, serviceName);
query(sb, "feature", feature);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/server/{serviceName}/feature/{duration}
* @param feature [required] the feature
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_feature_duration_GET(String serviceName, String duration, OvhOrderableSysFeatureEnum feature) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/feature/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "feature", feature);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/server/{serviceName}/feature/{duration}
* @param feature [required] the feature
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_feature_duration_POST(String serviceName, String duration, OvhOrderableSysFeatureEnum feature) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/feature/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMapo = new HashMap();
addBody(o, "feature", feature);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed durations for 'staticIP' option
*
* REST: GET /order/dedicated/server/{serviceName}/staticIP
* @param country [required] Ip localization
* @param serviceName [required] The internal name of your dedicated server
*/
public ArrayList dedicated_server_serviceName_staticIP_GET(String serviceName, OvhIpStaticCountryEnum country) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/staticIP";
StringBuilder sb = path(qPath, serviceName);
query(sb, "country", country);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/server/{serviceName}/staticIP/{duration}
* @param country [required] Ip localization
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_staticIP_duration_GET(String serviceName, String duration, OvhIpStaticCountryEnum country) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/staticIP/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "country", country);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/server/{serviceName}/staticIP/{duration}
* @param country [required] Ip localization
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_staticIP_duration_POST(String serviceName, String duration, OvhIpStaticCountryEnum country) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/staticIP/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMapo = new HashMap();
addBody(o, "country", country);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed durations for 'traffic' option
*
* REST: GET /order/dedicated/server/{serviceName}/traffic
* @param traffic [required] amount of traffic to allocate
* @param serviceName [required] The internal name of your dedicated server
*/
public ArrayList dedicated_server_serviceName_traffic_GET(String serviceName, OvhTrafficOrderEnum traffic) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/traffic";
StringBuilder sb = path(qPath, serviceName);
query(sb, "traffic", traffic);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/server/{serviceName}/traffic/{duration}
* @param traffic [required] amount of traffic to allocate
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_traffic_duration_GET(String serviceName, String duration, OvhTrafficOrderEnum traffic) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/traffic/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "traffic", traffic);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/server/{serviceName}/traffic/{duration}
* @param traffic [required] amount of traffic to allocate
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_traffic_duration_POST(String serviceName, String duration, OvhTrafficOrderEnum traffic) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/traffic/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMapo = new HashMap();
addBody(o, "traffic", traffic);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed durations for 'failoverIP' option
*
* REST: GET /order/dedicated/server/{serviceName}/failoverIP
* @param country [required] Ip localization
* @param serviceName [required] The internal name of your dedicated server
*/
public ArrayList dedicated_server_serviceName_failoverIP_GET(String serviceName, OvhIpCountryEnum country) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/failoverIP";
StringBuilder sb = path(qPath, serviceName);
query(sb, "country", country);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/server/{serviceName}/failoverIP/{duration}
* @param country [required] Ip localization
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_failoverIP_duration_GET(String serviceName, String duration, OvhIpCountryEnum country) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/failoverIP/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "country", country);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/server/{serviceName}/failoverIP/{duration}
* @param country [required] Ip localization
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_failoverIP_duration_POST(String serviceName, String duration, OvhIpCountryEnum country) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/failoverIP/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMapo = new HashMap();
addBody(o, "country", country);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed durations for 'bandwidth' option
*
* REST: GET /order/dedicated/server/{serviceName}/bandwidth
* @param bandwidth [required] Bandwidth to allocate
* @param type [required] bandwidth type
* @param serviceName [required] The internal name of your dedicated server
*/
public ArrayList dedicated_server_serviceName_bandwidth_GET(String serviceName, OvhBandwidthOrderEnum bandwidth, OvhBandwidthOrderTypeEnum type) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/bandwidth";
StringBuilder sb = path(qPath, serviceName);
query(sb, "bandwidth", bandwidth);
query(sb, "type", type);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/server/{serviceName}/bandwidth/{duration}
* @param bandwidth [required] Bandwidth to allocate
* @param type [required] bandwidth type
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_bandwidth_duration_GET(String serviceName, String duration, OvhBandwidthOrderEnum bandwidth, OvhBandwidthOrderTypeEnum type) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/bandwidth/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "bandwidth", bandwidth);
query(sb, "type", type);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/server/{serviceName}/bandwidth/{duration}
* @param bandwidth [required] Bandwidth to allocate
* @param type [required] bandwidth type
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_bandwidth_duration_POST(String serviceName, String duration, OvhBandwidthOrderEnum bandwidth, OvhBandwidthOrderTypeEnum type) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/bandwidth/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMapo = new HashMap();
addBody(o, "bandwidth", bandwidth);
addBody(o, "type", type);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get allowed durations for 'firewall' option
*
* REST: GET /order/dedicated/server/{serviceName}/firewall
* @param firewallModel [required] Firewall type
* @param serviceName [required] The internal name of your dedicated server
*/
public ArrayList dedicated_server_serviceName_firewall_GET(String serviceName, OvhFirewallModelEnum firewallModel) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/firewall";
StringBuilder sb = path(qPath, serviceName);
query(sb, "firewallModel", firewallModel);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/server/{serviceName}/firewall/{duration}
* @param firewallModel [required] Firewall type
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_firewall_duration_GET(String serviceName, String duration, OvhFirewallModelEnum firewallModel) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/firewall/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
query(sb, "firewallModel", firewallModel);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/server/{serviceName}/firewall/{duration}
* @param firewallModel [required] Firewall type
* @param serviceName [required] The internal name of your dedicated server
* @param duration [required] Duration
*/
public OvhOrder dedicated_server_serviceName_firewall_duration_POST(String serviceName, String duration, OvhFirewallModelEnum firewallModel) throws IOException {
String qPath = "/order/dedicated/server/{serviceName}/firewall/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMapo = new HashMap();
addBody(o, "firewallModel", firewallModel);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* List available services
*
* REST: GET /order/dedicated/server
*/
public ArrayList dedicated_server_GET() throws IOException {
String qPath = "/order/dedicated/server";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get allowed durations for 'new' option
*
* REST: GET /order/dedicated/nasha/new
* @param datacenter [required] Nas HA localization
* @param model [required] Capacity of Nas HA offer
*/
public ArrayList dedicated_nasha_new_GET(OvhNasHAZoneEnum datacenter, OvhNasHAOfferEnum model) throws IOException {
String qPath = "/order/dedicated/nasha/new";
StringBuilder sb = path(qPath);
query(sb, "datacenter", datacenter);
query(sb, "model", model);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get prices and contracts information
*
* REST: GET /order/dedicated/nasha/new/{duration}
* @param datacenter [required] Nas HA localization
* @param model [required] Capacity of Nas HA offer
* @param duration [required] Duration
*/
public OvhOrder dedicated_nasha_new_duration_GET(String duration, OvhNasHAZoneEnum datacenter, OvhNasHAOfferEnum model) throws IOException {
String qPath = "/order/dedicated/nasha/new/{duration}";
StringBuilder sb = path(qPath, duration);
query(sb, "datacenter", datacenter);
query(sb, "model", model);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOrder.class);
}
/**
* Create order
*
* REST: POST /order/dedicated/nasha/new/{duration}
* @param datacenter [required] Nas HA localization
* @param model [required] Capacity of Nas HA offer
* @param duration [required] Duration
*/
public OvhOrder dedicated_nasha_new_duration_POST(String duration, OvhNasHAZoneEnum datacenter, OvhNasHAOfferEnum model) throws IOException {
String qPath = "/order/dedicated/nasha/new/{duration}";
StringBuilder sb = path(qPath, duration);
HashMapo = new HashMap();
addBody(o, "datacenter", datacenter);
addBody(o, "model", model);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOrder.class);
}
/**
* Get informations about additional Horizon View offer for your service
*
* REST: GET /order/cartServiceOption/vdi/{serviceName}
* @param serviceName [required] The internal ID of Horizon View service
*/
public ArrayList cartServiceOption_vdi_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/vdi/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
private static TypeReference> t3 = new TypeReference>() {};
/**
* Post an additional Horizon View option in your cart
*
* REST: POST /order/cartServiceOption/vdi/{serviceName}
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional Horizon View offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The internal ID of Horizon View service
*/
public OvhItem cartServiceOption_vdi_serviceName_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/vdi/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* List available services
*
* REST: GET /order/cartServiceOption/vdi
*/
public ArrayList cartServiceOption_vdi_GET() throws IOException {
String qPath = "/order/cartServiceOption/vdi";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get informations about additional Logs offer for your service
*
* REST: GET /order/cartServiceOption/logs/{serviceName}
* @param serviceName [required] The internal ID of Logs service
*/
public ArrayList cartServiceOption_logs_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/logs/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional Logs option in your cart
*
* REST: POST /order/cartServiceOption/logs/{serviceName}
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional Logs offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The internal ID of Logs service
*/
public OvhItem cartServiceOption_logs_serviceName_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/logs/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* List available services
*
* REST: GET /order/cartServiceOption/logs
*/
public ArrayList cartServiceOption_logs_GET() throws IOException {
String qPath = "/order/cartServiceOption/logs";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get informations about additional SSL Gateway offer for your service
*
* REST: GET /order/cartServiceOption/sslGateway/{serviceName}
* @param serviceName [required] The internal ID of SSL Gateway service
*/
public ArrayList cartServiceOption_sslGateway_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/sslGateway/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional SSL Gateway option in your cart
*
* REST: POST /order/cartServiceOption/sslGateway/{serviceName}
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional SSL Gateway offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The internal ID of SSL Gateway service
*/
public OvhItem cartServiceOption_sslGateway_serviceName_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/sslGateway/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* List available services
*
* REST: GET /order/cartServiceOption/sslGateway
*/
public ArrayList cartServiceOption_sslGateway_GET() throws IOException {
String qPath = "/order/cartServiceOption/sslGateway";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get informations about additional Private Cloud Enterprise offer for your service
*
* REST: GET /order/cartServiceOption/privateCloudResellerEnterprise/{serviceName}
* @param serviceName [required] The private cloud service name
*/
public ArrayList cartServiceOption_privateCloudResellerEnterprise_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/privateCloudResellerEnterprise/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional Private Cloud Enterprise option in your cart
*
* REST: POST /order/cartServiceOption/privateCloudResellerEnterprise/{serviceName}
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional private cloud enterprise offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The private cloud service name
*/
public OvhItem cartServiceOption_privateCloudResellerEnterprise_serviceName_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/privateCloudResellerEnterprise/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* List available services
*
* REST: GET /order/cartServiceOption/privateCloudResellerEnterprise
*/
public ArrayList cartServiceOption_privateCloudResellerEnterprise_GET() throws IOException {
String qPath = "/order/cartServiceOption/privateCloudResellerEnterprise";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get informations about additional Cloud offer for your service
*
* REST: GET /order/cartServiceOption/cloud/{serviceName}
* @param serviceName [required] The internal ID of Cloud Project
*/
public ArrayList cartServiceOption_cloud_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/cloud/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional Cloud option in your cart
*
* REST: POST /order/cartServiceOption/cloud/{serviceName}
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional Cloud offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The internal ID of Cloud Project
*/
public OvhItem cartServiceOption_cloud_serviceName_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/cloud/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* List available services
*
* REST: GET /order/cartServiceOption/cloud
*/
public ArrayList cartServiceOption_cloud_GET() throws IOException {
String qPath = "/order/cartServiceOption/cloud";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get informations about additional Domain offer for your service
*
* REST: GET /order/cartServiceOption/domain/{serviceName}
* @param serviceName [required] The internal ID of Domain service
*/
public ArrayList cartServiceOption_domain_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/domain/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional Domain option in your cart
*
* REST: POST /order/cartServiceOption/domain/{serviceName}
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional Domain offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The internal ID of Domain service
*/
public OvhItem cartServiceOption_domain_serviceName_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/domain/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* List available services
*
* REST: GET /order/cartServiceOption/domain
* @param whoisOwner Filter the value of whoisOwner property (=)
*/
public ArrayList cartServiceOption_domain_GET(String whoisOwner) throws IOException {
String qPath = "/order/cartServiceOption/domain";
StringBuilder sb = path(qPath);
query(sb, "whoisOwner", whoisOwner);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get informations about additional dedicated offer for your service
*
* REST: GET /order/cartServiceOption/dedicated/{serviceName}
* @param serviceName [required] The internal ID of Dedicated service
*/
public ArrayList cartServiceOption_dedicated_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/dedicated/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional dedicated option in your cart
*
* REST: POST /order/cartServiceOption/dedicated/{serviceName}
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional dedicated offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The internal ID of Dedicated service
*/
public OvhItem cartServiceOption_dedicated_serviceName_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/dedicated/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* List available services
*
* REST: GET /order/cartServiceOption/dedicated
*/
public ArrayList cartServiceOption_dedicated_GET() throws IOException {
String qPath = "/order/cartServiceOption/dedicated";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get informations about additional Private Cloud offer for your service
*
* REST: GET /order/cartServiceOption/privateCloud/{serviceName}
* @param serviceName [required] The private cloud service name
*/
public ArrayList cartServiceOption_privateCloud_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/privateCloud/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional Private Cloud option in your cart
*
* REST: POST /order/cartServiceOption/privateCloud/{serviceName}
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional private cloud offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The private cloud service name
*/
public OvhItem cartServiceOption_privateCloud_serviceName_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/privateCloud/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* Get informations about additional Private Cloud offer for your service
*
* REST: GET /order/cartServiceOption/privateCloud/{serviceName}/Reseller
* @param serviceName [required] The private cloud service name
*/
public ArrayList cartServiceOption_privateCloud_serviceName_Reseller_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/privateCloud/{serviceName}/Reseller";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional Private Cloud option in your cart
*
* REST: POST /order/cartServiceOption/privateCloud/{serviceName}/Reseller
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional private cloud offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The private cloud service name
*/
public OvhItem cartServiceOption_privateCloud_serviceName_Reseller_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/privateCloud/{serviceName}/Reseller";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* Get informations about additional Private Cloud Enterprise offer for your service
*
* REST: GET /order/cartServiceOption/privateCloud/{serviceName}/ResellerEnterprise
* @param serviceName [required] The private cloud service name
*/
public ArrayList cartServiceOption_privateCloud_serviceName_ResellerEnterprise_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/privateCloud/{serviceName}/ResellerEnterprise";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional Private Cloud Enterprise option in your cart
*
* REST: POST /order/cartServiceOption/privateCloud/{serviceName}/ResellerEnterprise
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional private cloud enterprise offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The private cloud service name
*/
public OvhItem cartServiceOption_privateCloud_serviceName_ResellerEnterprise_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/privateCloud/{serviceName}/ResellerEnterprise";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* List available services
*
* REST: GET /order/cartServiceOption/privateCloud
*/
public ArrayList cartServiceOption_privateCloud_GET() throws IOException {
String qPath = "/order/cartServiceOption/privateCloud";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get informations about additional Web Hosting offer for your service
*
* REST: GET /order/cartServiceOption/webHosting/{serviceName}
* @param serviceName [required] The internal ID of Web Hosting service
*/
public ArrayList cartServiceOption_webHosting_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/webHosting/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional Web Hosting option in your cart
*
* REST: POST /order/cartServiceOption/webHosting/{serviceName}
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional Web Hosting offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The internal ID of Web Hosting service
*/
public OvhItem cartServiceOption_webHosting_serviceName_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/webHosting/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* List available services
*
* REST: GET /order/cartServiceOption/webHosting
*/
public ArrayList cartServiceOption_webHosting_GET() throws IOException {
String qPath = "/order/cartServiceOption/webHosting";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get informations about additional IP Load-Balancing offer for your service
*
* REST: GET /order/cartServiceOption/ipLoadbalancing/{serviceName}
* @param serviceName [required] The internal ID of IP Load-Balancing service
*/
public ArrayList cartServiceOption_ipLoadbalancing_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/ipLoadbalancing/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional IP Load-Balancing option in your cart
*
* REST: POST /order/cartServiceOption/ipLoadbalancing/{serviceName}
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional IP Load-Balancing offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The internal ID of IP Load-Balancing service
*/
public OvhItem cartServiceOption_ipLoadbalancing_serviceName_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/ipLoadbalancing/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* List available services
*
* REST: GET /order/cartServiceOption/ipLoadbalancing
*/
public ArrayList cartServiceOption_ipLoadbalancing_GET() throws IOException {
String qPath = "/order/cartServiceOption/ipLoadbalancing";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get informations about additional Office offer for your service
*
* REST: GET /order/cartServiceOption/office365Prepaid/{serviceName}
* @param serviceName [required] The internal ID of Office service
*/
public ArrayList cartServiceOption_office365Prepaid_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/office365Prepaid/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional Office option in your cart
*
* REST: POST /order/cartServiceOption/office365Prepaid/{serviceName}
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional Office offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The internal ID of Office service
*/
public OvhItem cartServiceOption_office365Prepaid_serviceName_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/office365Prepaid/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* List available services
*
* REST: GET /order/cartServiceOption/office365Prepaid
*/
public ArrayList cartServiceOption_office365Prepaid_GET() throws IOException {
String qPath = "/order/cartServiceOption/office365Prepaid";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get informations about additional Sharepoint offer for your service
*
* REST: GET /order/cartServiceOption/sharepoint/{serviceName}
* @param serviceName [required] The internal ID of Sharepoint service
*/
public ArrayList cartServiceOption_sharepoint_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/sharepoint/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional Sharepoint option in your cart
*
* REST: POST /order/cartServiceOption/sharepoint/{serviceName}
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional Sharepoint offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The internal ID of Sharepoint service
*/
public OvhItem cartServiceOption_sharepoint_serviceName_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/sharepoint/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* List available services
*
* REST: GET /order/cartServiceOption/sharepoint
*/
public ArrayList cartServiceOption_sharepoint_GET() throws IOException {
String qPath = "/order/cartServiceOption/sharepoint";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get informations about additional Private Cloud offer for your service
*
* REST: GET /order/cartServiceOption/privateCloudReseller/{serviceName}
* @param serviceName [required] The private cloud service name
*/
public ArrayList cartServiceOption_privateCloudReseller_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/privateCloudReseller/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional Private Cloud option in your cart
*
* REST: POST /order/cartServiceOption/privateCloudReseller/{serviceName}
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional private cloud offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The private cloud service name
*/
public OvhItem cartServiceOption_privateCloudReseller_serviceName_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/privateCloudReseller/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* Get informations about additional Private Cloud Enterprise offer for your service
*
* REST: GET /order/cartServiceOption/privateCloudReseller/{serviceName}/Enterprise
* @param serviceName [required] The private cloud service name
*/
public ArrayList cartServiceOption_privateCloudReseller_serviceName_Enterprise_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/privateCloudReseller/{serviceName}/Enterprise";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional Private Cloud Enterprise option in your cart
*
* REST: POST /order/cartServiceOption/privateCloudReseller/{serviceName}/Enterprise
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional private cloud enterprise offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The private cloud service name
*/
public OvhItem cartServiceOption_privateCloudReseller_serviceName_Enterprise_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/privateCloudReseller/{serviceName}/Enterprise";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* List available services
*
* REST: GET /order/cartServiceOption/privateCloudReseller
*/
public ArrayList cartServiceOption_privateCloudReseller_GET() throws IOException {
String qPath = "/order/cartServiceOption/privateCloudReseller";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Get informations about additional EmailPro offer for your service
*
* REST: GET /order/cartServiceOption/emailpro/{serviceName}
* @param serviceName [required] The internal ID of EmailPro service
*/
public ArrayList cartServiceOption_emailpro_serviceName_GET(String serviceName) throws IOException {
String qPath = "/order/cartServiceOption/emailpro/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post an additional EmailPro option in your cart
*
* REST: POST /order/cartServiceOption/emailpro/{serviceName}
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the additional EmailPro offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
* @param serviceName [required] The internal ID of EmailPro service
*/
public OvhItem cartServiceOption_emailpro_serviceName_POST(String serviceName, String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cartServiceOption/emailpro/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "cartId", cartId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* List available services
*
* REST: GET /order/cartServiceOption/emailpro
*/
public ArrayList cartServiceOption_emailpro_GET() throws IOException {
String qPath = "/order/cartServiceOption/emailpro";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* List of your OVH order carts
*
* REST: GET /order/cart
* @param description [required] Filter the value of description property (=)
*/
public ArrayList cart_GET(String description) throws IOException {
String qPath = "/order/cart";
StringBuilder sb = path(qPath);
query(sb, "description", description);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
/**
* Create a new OVH order cart
*
* REST: POST /order/cart
* @param description [required] Description of your cart
* @param expire [required] Time of expiration of the cart
* @param ovhSubsidiary [required] OVH Subsidiary where you want to order
*/
public OvhCart cart_POST(String description, Date expire, OvhOvhSubsidiaryEnum ovhSubsidiary) throws IOException {
String qPath = "/order/cart";
StringBuilder sb = path(qPath);
HashMapo = new HashMap();
addBody(o, "description", description);
addBody(o, "expire", expire);
addBody(o, "ovhSubsidiary", ovhSubsidiary);
String resp = execN(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhCart.class);
}
/**
* Retrieve information about a specific cart
*
* REST: GET /order/cart/{cartId}
* @param cartId [required] Cart identifier
*/
public OvhCart cart_cartId_GET(String cartId) throws IOException {
String qPath = "/order/cart/{cartId}";
StringBuilder sb = path(qPath, cartId);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhCart.class);
}
/**
* Modify information about a specific cart
*
* REST: PUT /order/cart/{cartId}
* @param cartId [required] Cart identifier
* @param description [required] Description of your cart
* @param expire [required] Time of expiration of the cart
*/
public OvhCart cart_cartId_PUT(String cartId, String description, Date expire) throws IOException {
String qPath = "/order/cart/{cartId}";
StringBuilder sb = path(qPath, cartId);
HashMapo = new HashMap();
addBody(o, "description", description);
addBody(o, "expire", expire);
String resp = execN(qPath, "PUT", sb.toString(), o);
return convertTo(resp, OvhCart.class);
}
/**
* Delete a cart
*
* REST: DELETE /order/cart/{cartId}
* @param cartId [required] Cart identifier
*/
public void cart_cartId_DELETE(String cartId) throws IOException {
String qPath = "/order/cart/{cartId}";
StringBuilder sb = path(qPath, cartId);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Get informations about Desk As A Service offers
*
* REST: GET /order/cart/{cartId}/deskaas
* @param cartId [required] Cart identifier
*/
public ArrayList cart_cartId_deskaas_GET(String cartId) throws IOException {
String qPath = "/order/cart/{cartId}/deskaas";
StringBuilder sb = path(qPath, cartId);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t2);
}
/**
* Post a new Desk as a service item in your cart
*
* REST: POST /order/cart/{cartId}/deskaas
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the Desk as a Service offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
*/
public OvhItem cart_cartId_deskaas_POST(String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cart/{cartId}/deskaas";
StringBuilder sb = path(qPath, cartId);
HashMapo = new HashMap();
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = execN(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* Get informations about VoIP offers
*
* REST: GET /order/cart/{cartId}/telephony
* @param cartId [required] Cart identifier
*/
public ArrayList cart_cartId_telephony_GET(String cartId) throws IOException {
String qPath = "/order/cart/{cartId}/telephony";
StringBuilder sb = path(qPath, cartId);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t2);
}
/**
* Post a new VoIP item in your cart
*
* REST: POST /order/cart/{cartId}/telephony
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the VoIP offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
*/
public OvhItem cart_cartId_telephony_POST(String cartId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cart/{cartId}/telephony";
StringBuilder sb = path(qPath, cartId);
HashMapo = new HashMap();
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = execN(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* Get informations about VoIP options
*
* REST: GET /order/cart/{cartId}/telephony/options
* @param cartId [required] Cart identifier
* @param planCode [required] Identifier of the VoIP you want to consult options
*/
public ArrayList cart_cartId_telephony_options_GET(String cartId, String planCode) throws IOException {
String qPath = "/order/cart/{cartId}/telephony/options";
StringBuilder sb = path(qPath, cartId);
query(sb, "planCode", planCode);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Post a new VoIP option in your cart
*
* REST: POST /order/cart/{cartId}/telephony/options
* @param cartId [required] Cart identifier
* @param itemId [required] Cart item to be linked
* @param planCode [required] Identifier of a VoIP option offer
* @param duration [required] Duration selected for the purchase of the product
* @param pricingMode [required] Pricing mode selected for the purchase of the product
* @param quantity [required] Quantity of product desired
*/
public OvhItem cart_cartId_telephony_options_POST(String cartId, Long itemId, String planCode, String duration, String pricingMode, Long quantity) throws IOException {
String qPath = "/order/cart/{cartId}/telephony/options";
StringBuilder sb = path(qPath, cartId);
HashMapo = new HashMap();
addBody(o, "itemId", itemId);
addBody(o, "planCode", planCode);
addBody(o, "duration", duration);
addBody(o, "pricingMode", pricingMode);
addBody(o, "quantity", quantity);
String resp = execN(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhItem.class);
}
/**
* Get informations about vRack offers
*
* REST: GET /order/cart/{cartId}/vrackReseller
* @param cartId [required] Cart identifier
*/
public ArrayList