net.minidev.ovh.api.ApiOvhTelephony Maven / Gradle / Ivy
The newest version!
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.complextype.OvhSafeKeyValue;
import net.minidev.ovh.api.complextype.OvhUnitAndValues;
import net.minidev.ovh.api.order.OvhPrice;
import net.minidev.ovh.api.services.OvhService;
import net.minidev.ovh.api.spare.telephony.OvhTelephonySpare;
import net.minidev.ovh.api.telephony.OvhAbbreviatedNumber;
import net.minidev.ovh.api.telephony.OvhAbbreviatedNumberGroup;
import net.minidev.ovh.api.telephony.OvhAccessoryOffer;
import net.minidev.ovh.api.telephony.OvhAntihackActionEnum;
import net.minidev.ovh.api.telephony.OvhBannerAccess;
import net.minidev.ovh.api.telephony.OvhBillDocument;
import net.minidev.ovh.api.telephony.OvhBillingAccount;
import net.minidev.ovh.api.telephony.OvhCallDiagnostics;
import net.minidev.ovh.api.telephony.OvhCallsGenerated;
import net.minidev.ovh.api.telephony.OvhCallsGeneratorDialplanEnum;
import net.minidev.ovh.api.telephony.OvhCity;
import net.minidev.ovh.api.telephony.OvhClick2CallUser;
import net.minidev.ovh.api.telephony.OvhConference;
import net.minidev.ovh.api.telephony.OvhConferenceHistory;
import net.minidev.ovh.api.telephony.OvhConferenceInformations;
import net.minidev.ovh.api.telephony.OvhConferenceParticipants;
import net.minidev.ovh.api.telephony.OvhConferenceProperties;
import net.minidev.ovh.api.telephony.OvhConferenceWebAccess;
import net.minidev.ovh.api.telephony.OvhConferenceWebAccessTypeEnum;
import net.minidev.ovh.api.telephony.OvhConsumptionThreshold;
import net.minidev.ovh.api.telephony.OvhContactsExportFormatsEnum;
import net.minidev.ovh.api.telephony.OvhDatetimeAndIpvalue;
import net.minidev.ovh.api.telephony.OvhDdi;
import net.minidev.ovh.api.telephony.OvhDefaultSipDomains;
import net.minidev.ovh.api.telephony.OvhDetailedRateCodeInformation;
import net.minidev.ovh.api.telephony.OvhDiagnosticReport;
import net.minidev.ovh.api.telephony.OvhDiagnosticReportIndexEnum;
import net.minidev.ovh.api.telephony.OvhDirectoryHeadingPJ;
import net.minidev.ovh.api.telephony.OvhDirectoryInfo;
import net.minidev.ovh.api.telephony.OvhDirectoryWayType;
import net.minidev.ovh.api.telephony.OvhEasyHunting;
import net.minidev.ovh.api.telephony.OvhEasyHuntingScreenListsConditions;
import net.minidev.ovh.api.telephony.OvhEasyHuntingScreenListsConditionsSettings;
import net.minidev.ovh.api.telephony.OvhEasyHuntingTimeConditions;
import net.minidev.ovh.api.telephony.OvhEasyHuntingTimeConditionsSettings;
import net.minidev.ovh.api.telephony.OvhEasyMiniPabxHuntingAgent;
import net.minidev.ovh.api.telephony.OvhEasyPabx;
import net.minidev.ovh.api.telephony.OvhEasyPabxHunting;
import net.minidev.ovh.api.telephony.OvhEntrepriseNumberInformationsTask;
import net.minidev.ovh.api.telephony.OvhEventToken;
import net.minidev.ovh.api.telephony.OvhFax;
import net.minidev.ovh.api.telephony.OvhFaxCampaign;
import net.minidev.ovh.api.telephony.OvhFaxCampaignDetail;
import net.minidev.ovh.api.telephony.OvhFaxCampaignRecipientsTypeEnum;
import net.minidev.ovh.api.telephony.OvhFaxCampaignSendTypeEnum;
import net.minidev.ovh.api.telephony.OvhFaxConsumption;
import net.minidev.ovh.api.telephony.OvhFaxConsumptionWayTypeEnum;
import net.minidev.ovh.api.telephony.OvhFaxProperties;
import net.minidev.ovh.api.telephony.OvhFaxQualityEnum;
import net.minidev.ovh.api.telephony.OvhFaxScreen;
import net.minidev.ovh.api.telephony.OvhFaxScreenListTypeEnum;
import net.minidev.ovh.api.telephony.OvhFunctionKey;
import net.minidev.ovh.api.telephony.OvhGenericScreen;
import net.minidev.ovh.api.telephony.OvhHardwareOffer;
import net.minidev.ovh.api.telephony.OvhHistoryConsumption;
import net.minidev.ovh.api.telephony.OvhHistoryRepaymentConsumption;
import net.minidev.ovh.api.telephony.OvhHistoryTollfreeConsumption;
import net.minidev.ovh.api.telephony.OvhLine;
import net.minidev.ovh.api.telephony.OvhLineBlockingMode;
import net.minidev.ovh.api.telephony.OvhLineOffer;
import net.minidev.ovh.api.telephony.OvhLineOffersAndContracts;
import net.minidev.ovh.api.telephony.OvhLineOptions;
import net.minidev.ovh.api.telephony.OvhLinePhone;
import net.minidev.ovh.api.telephony.OvhLinePhoneAssociable;
import net.minidev.ovh.api.telephony.OvhLineStatisticsTypeEnum;
import net.minidev.ovh.api.telephony.OvhMiniPabx;
import net.minidev.ovh.api.telephony.OvhMiniPabxHunting;
import net.minidev.ovh.api.telephony.OvhNumber;
import net.minidev.ovh.api.telephony.OvhNumberCountryEnum;
import net.minidev.ovh.api.telephony.OvhNumberDetailedZone;
import net.minidev.ovh.api.telephony.OvhNumberTypeEnum;
import net.minidev.ovh.api.telephony.OvhOfferChange;
import net.minidev.ovh.api.telephony.OvhOfferTask;
import net.minidev.ovh.api.telephony.OvhOfferTaskActionEnum;
import net.minidev.ovh.api.telephony.OvhOfferTaskTypeEnum;
import net.minidev.ovh.api.telephony.OvhOutplanNotificationBlockEnum;
import net.minidev.ovh.api.telephony.OvhOvhPabx;
import net.minidev.ovh.api.telephony.OvhOvhPabxCustomStatus;
import net.minidev.ovh.api.telephony.OvhOvhPabxDialplan;
import net.minidev.ovh.api.telephony.OvhOvhPabxDialplanExtension;
import net.minidev.ovh.api.telephony.OvhOvhPabxDialplanExtensionConditionScreenList;
import net.minidev.ovh.api.telephony.OvhOvhPabxDialplanExtensionConditionScreenListTypeEnum;
import net.minidev.ovh.api.telephony.OvhOvhPabxDialplanExtensionConditionTime;
import net.minidev.ovh.api.telephony.OvhOvhPabxDialplanExtensionConditionTimeWeekDayEnum;
import net.minidev.ovh.api.telephony.OvhOvhPabxDialplanExtensionRule;
import net.minidev.ovh.api.telephony.OvhOvhPabxDialplanExtensionRuleActionEnum;
import net.minidev.ovh.api.telephony.OvhOvhPabxDialplanNumberPresentationEnum;
import net.minidev.ovh.api.telephony.OvhOvhPabxHunting;
import net.minidev.ovh.api.telephony.OvhOvhPabxHuntingAgent;
import net.minidev.ovh.api.telephony.OvhOvhPabxHuntingAgentLiveStatus;
import net.minidev.ovh.api.telephony.OvhOvhPabxHuntingAgentQueue;
import net.minidev.ovh.api.telephony.OvhOvhPabxHuntingAgentStatusEnum;
import net.minidev.ovh.api.telephony.OvhOvhPabxHuntingQueue;
import net.minidev.ovh.api.telephony.OvhOvhPabxHuntingQueueLiveCalls;
import net.minidev.ovh.api.telephony.OvhOvhPabxHuntingQueueLiveStatistics;
import net.minidev.ovh.api.telephony.OvhOvhPabxHuntingQueueRecordDisablingDigitEnum;
import net.minidev.ovh.api.telephony.OvhOvhPabxHuntingQueueRecordDisablingLanguageEnum;
import net.minidev.ovh.api.telephony.OvhOvhPabxHuntingQueueStrategyEnum;
import net.minidev.ovh.api.telephony.OvhOvhPabxIvrMenuEntryActionEnum;
import net.minidev.ovh.api.telephony.OvhOvhPabxMenu;
import net.minidev.ovh.api.telephony.OvhOvhPabxMenuEntry;
import net.minidev.ovh.api.telephony.OvhOvhPabxQueueActionEnum;
import net.minidev.ovh.api.telephony.OvhOvhPabxRecord;
import net.minidev.ovh.api.telephony.OvhOvhPabxSound;
import net.minidev.ovh.api.telephony.OvhOvhPabxTts;
import net.minidev.ovh.api.telephony.OvhOvhPabxTtsVoiceEnum;
import net.minidev.ovh.api.telephony.OvhOvhPabxWhisperingModeEnum;
import net.minidev.ovh.api.telephony.OvhPcsFile;
import net.minidev.ovh.api.telephony.OvhPhone;
import net.minidev.ovh.api.telephony.OvhPhoneCredentials;
import net.minidev.ovh.api.telephony.OvhPhonebook;
import net.minidev.ovh.api.telephony.OvhPhonebookContact;
import net.minidev.ovh.api.telephony.OvhPhonebookMaster;
import net.minidev.ovh.api.telephony.OvhPortability;
import net.minidev.ovh.api.telephony.OvhPortabilityDocument;
import net.minidev.ovh.api.telephony.OvhPortabilityFixErrorPossibleParameters;
import net.minidev.ovh.api.telephony.OvhPortabilityStep;
import net.minidev.ovh.api.telephony.OvhPreviousVoiceConsumption;
import net.minidev.ovh.api.telephony.OvhRateCodeInformation;
import net.minidev.ovh.api.telephony.OvhRedirect;
import net.minidev.ovh.api.telephony.OvhRegistrationInformations;
import net.minidev.ovh.api.telephony.OvhRepaymentConsumption;
import net.minidev.ovh.api.telephony.OvhResetPhoneInfo;
import net.minidev.ovh.api.telephony.OvhRma;
import net.minidev.ovh.api.telephony.OvhRmaPublicTypeEnum;
import net.minidev.ovh.api.telephony.OvhRmaReturn;
import net.minidev.ovh.api.telephony.OvhRsva;
import net.minidev.ovh.api.telephony.OvhScheduler;
import net.minidev.ovh.api.telephony.OvhSchedulerCategoryEnum;
import net.minidev.ovh.api.telephony.OvhSchedulerEvent;
import net.minidev.ovh.api.telephony.OvhScreen;
import net.minidev.ovh.api.telephony.OvhScreenList;
import net.minidev.ovh.api.telephony.OvhScreenListNatureEnum;
import net.minidev.ovh.api.telephony.OvhScreenListTypeEnum;
import net.minidev.ovh.api.telephony.OvhServiceVoicemailAudioFormatEnum;
import net.minidev.ovh.api.telephony.OvhSimultaneousChannelsDetails;
import net.minidev.ovh.api.telephony.OvhSipDomainProductTypeEnum;
import net.minidev.ovh.api.telephony.OvhSound;
import net.minidev.ovh.api.telephony.OvhSpecificNumber;
import net.minidev.ovh.api.telephony.OvhStatisticsTimeframeEnum;
import net.minidev.ovh.api.telephony.OvhTask;
import net.minidev.ovh.api.telephony.OvhTaskStatusEnum;
import net.minidev.ovh.api.telephony.OvhTelephonyGenericService;
import net.minidev.ovh.api.telephony.OvhTelephonySearchService;
import net.minidev.ovh.api.telephony.OvhTelephonyService;
import net.minidev.ovh.api.telephony.OvhTemporaryLogsLink;
import net.minidev.ovh.api.telephony.OvhTerminationReasonEnum;
import net.minidev.ovh.api.telephony.OvhTimeCondition;
import net.minidev.ovh.api.telephony.OvhTimeConditionOptions;
import net.minidev.ovh.api.telephony.OvhTimeConditionsDayEnum;
import net.minidev.ovh.api.telephony.OvhTimeConditionsPolicyEnum;
import net.minidev.ovh.api.telephony.OvhTimestampAndValue;
import net.minidev.ovh.api.telephony.OvhTokenExpirationEnum;
import net.minidev.ovh.api.telephony.OvhTones;
import net.minidev.ovh.api.telephony.OvhTonesTypeEnum;
import net.minidev.ovh.api.telephony.OvhTrafficExtract;
import net.minidev.ovh.api.telephony.OvhTrunk;
import net.minidev.ovh.api.telephony.OvhTrunkExternalDisplayedNumber;
import net.minidev.ovh.api.telephony.OvhTrunkExternalDisplayedNumberValidation;
import net.minidev.ovh.api.telephony.OvhTrunkSimultaneousPacksRepartition;
import net.minidev.ovh.api.telephony.OvhTypeEnum;
import net.minidev.ovh.api.telephony.OvhVoiceConsumption;
import net.minidev.ovh.api.telephony.OvhVoiceConsumptionDestinationTypeEnum;
import net.minidev.ovh.api.telephony.OvhVoiceConsumptionPlanTypeEnum;
import net.minidev.ovh.api.telephony.OvhVoiceConsumptionWayTypeEnum;
import net.minidev.ovh.api.telephony.OvhVoicefaxRoutingEnum;
import net.minidev.ovh.api.telephony.OvhVoicemail;
import net.minidev.ovh.api.telephony.OvhVoicemailGreetings;
import net.minidev.ovh.api.telephony.OvhVoicemailMessageFolderDirectoryEnum;
import net.minidev.ovh.api.telephony.OvhVoicemailMessageFolderGreetingEnum;
import net.minidev.ovh.api.telephony.OvhVoicemailMessages;
import net.minidev.ovh.api.telephony.OvhVoicemailNumbers;
import net.minidev.ovh.api.telephony.OvhVoicemailProperties;
import net.minidev.ovh.api.telephony.OvhVxml;
import net.minidev.ovh.api.telephony.OvhVxmlProperties;
import net.minidev.ovh.core.ApiOvhBase;
import net.minidev.ovh.core.ApiOvhCore;
/**
* BasePath:https://eu.api.ovh.com/1.0
* ResourcePath:/telephony
* version:1.0
*/
public class ApiOvhTelephony extends ApiOvhBase {
public ApiOvhTelephony(ApiOvhCore core) {
super(core);
}
/**
* Get all available SIP domains by country
*
* REST: POST /telephony/setDefaultSipDomain
* @param type [required] Product type
* @param country [required] Country
* @param domain [required] SIP domain to set
*/
public void setDefaultSipDomain_POST(OvhNumberCountryEnum country, String domain, OvhSipDomainProductTypeEnum type) throws IOException {
String qPath = "/telephony/setDefaultSipDomain";
StringBuilder sb = path(qPath);
HashMapo = new HashMap();
addBody(o, "country", country);
addBody(o, "domain", domain);
addBody(o, "type", type);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Search a service with its domain, to get its billing account and type
*
* REST: GET /telephony/searchServices
* @param axiom [required] Filter the value of property (like)
*/
public ArrayList searchServices_GET(String axiom) throws IOException {
String qPath = "/telephony/searchServices";
StringBuilder sb = path(qPath);
query(sb, "axiom", axiom);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t1);
}
private static TypeReference> t1 = new TypeReference>() {};
/**
* Get all available line offer compatible
*
* REST: GET /telephony/line/offers
* @param country [required] The country
*/
public ArrayList line_offers_GET(OvhNumberCountryEnum country) throws IOException {
String qPath = "/telephony/line/offers";
StringBuilder sb = path(qPath);
query(sb, "country", country);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t2);
}
private static TypeReference> t2 = new TypeReference>() {};
/**
* Get all available phone brands compatible with lines
*
* REST: GET /telephony/line/offer/phones
* @param offer [required] The selected offer
* @param country [required] The country
*/
public ArrayList line_offer_phones_GET(OvhNumberCountryEnum country, String offer) throws IOException {
String qPath = "/telephony/line/offer/phones";
StringBuilder sb = path(qPath);
query(sb, "country", country);
query(sb, "offer", offer);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
private static TypeReference> t3 = new TypeReference>() {};
/**
* Replace the phone by its spare. The broken phone became a spare if it was bought. An RMA is created if the broken phone is under securitydeposit.
*
* REST: POST /telephony/spare/{spare}/replace
* @param domain [required] The phone to replace by the spare
* @param ip [required] Public ip of the phone
* @param spare [required] The internal name of your spare
*/
public void spare_spare_replace_POST(String spare, String domain, String ip) throws IOException {
String qPath = "/telephony/spare/{spare}/replace";
StringBuilder sb = path(qPath, spare);
HashMapo = new HashMap();
addBody(o, "domain", domain);
addBody(o, "ip", ip);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Get this object properties
*
* REST: GET /telephony/spare/{spare}/serviceInfos
* @param spare [required] The internal name of your spare
*/
public OvhService spare_spare_serviceInfos_GET(String spare) throws IOException {
String qPath = "/telephony/spare/{spare}/serviceInfos";
StringBuilder sb = path(qPath, spare);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhService.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/spare/{spare}/serviceInfos
* @param body [required] New object properties
* @param spare [required] The internal name of your spare
*/
public void spare_spare_serviceInfos_PUT(String spare, OvhService body) throws IOException {
String qPath = "/telephony/spare/{spare}/serviceInfos";
StringBuilder sb = path(qPath, spare);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Return the list of phone domains compatible to be replaced
*
* REST: GET /telephony/spare/{spare}/compatibleReplacement
* @param spare [required] The internal name of your spare
*/
public ArrayList spare_spare_compatibleReplacement_GET(String spare) throws IOException {
String qPath = "/telephony/spare/{spare}/compatibleReplacement";
StringBuilder sb = path(qPath, spare);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
private static TypeReference> t4 = new TypeReference>() {};
/**
* Get this object properties
*
* REST: GET /telephony/spare/{spare}
* @param spare [required] The internal name of your spare
*/
public OvhTelephonySpare spare_spare_GET(String spare) throws IOException {
String qPath = "/telephony/spare/{spare}";
StringBuilder sb = path(qPath, spare);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhTelephonySpare.class);
}
/**
* Delete the spare as if it was not belonging to OVH anymore
*
* REST: DELETE /telephony/spare/{spare}
* @param spare [required] The internal name of your spare
*/
public void spare_spare_DELETE(String spare) throws IOException {
String qPath = "/telephony/spare/{spare}";
StringBuilder sb = path(qPath, spare);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Get all available spare brands
*
* REST: GET /telephony/spare/brands
*/
public ArrayList spare_brands_GET() throws IOException {
String qPath = "/telephony/spare/brands";
StringBuilder sb = path(qPath);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* List available services
*
* REST: GET /telephony/spare
*/
public ArrayList spare_GET() throws IOException {
String qPath = "/telephony/spare";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Get all zip codes compatible for a number
*
* REST: GET /telephony/directories/availableZipCodes
* @param number [required] The number (can be a range terminated by XXXX)
* @param country [required] The country of the city
*/
public ArrayList directories_availableZipCodes_GET(OvhNumberCountryEnum country, String number) throws IOException {
String qPath = "/telephony/directories/availableZipCodes";
StringBuilder sb = path(qPath);
query(sb, "country", country);
query(sb, "number", number);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Get city informations from a zip code
*
* REST: GET /telephony/directories/cities
* @param zipCode [required] The zip code of the city
* @param country [required] The country of the city
*/
public ArrayList directories_cities_GET(OvhNumberCountryEnum country, String zipCode) throws IOException {
String qPath = "/telephony/directories/cities";
StringBuilder sb = path(qPath);
query(sb, "country", country);
query(sb, "zipCode", zipCode);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t5);
}
private static TypeReference> t5 = new TypeReference>() {};
/**
* Get all available SIP domains by country
*
* REST: GET /telephony/availableDefaultSipDomains
* @param type [required] Product type
*/
public ArrayList availableDefaultSipDomains_GET(OvhSipDomainProductTypeEnum type) throws IOException {
String qPath = "/telephony/availableDefaultSipDomains";
StringBuilder sb = path(qPath);
query(sb, "type", type);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t6);
}
private static TypeReference> t6 = new TypeReference>() {};
/**
* Get all available geographic zone with some details, from a country
*
* REST: GET /telephony/number/detailedZones
* @param axiom [required] Enter a part of a city name or a zip for specific zne returns
* @param country [required] The country
*/
public ArrayList number_detailedZones_GET(String axiom, OvhNumberCountryEnum country) throws IOException {
String qPath = "/telephony/number/detailedZones";
StringBuilder sb = path(qPath);
query(sb, "axiom", axiom);
query(sb, "country", country);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t7);
}
private static TypeReference> t7 = new TypeReference>() {};
/**
* Get all available special range from a country
*
* REST: GET /telephony/number/ranges
* @param country [required] The country
*/
public ArrayList number_ranges_GET(OvhNumberCountryEnum country) throws IOException {
String qPath = "/telephony/number/ranges";
StringBuilder sb = path(qPath);
query(sb, "country", country);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Get all available geographic zone from a country
*
* REST: GET /telephony/number/zones
* @param axiom [required] Enter a part of a city name or a zip for specific zne returns
* @param country [required] The country
*/
public ArrayList number_zones_GET(String axiom, OvhNumberCountryEnum country) throws IOException {
String qPath = "/telephony/number/zones";
StringBuilder sb = path(qPath);
query(sb, "axiom", axiom);
query(sb, "country", country);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Get all available specific number from a country
*
* REST: GET /telephony/number/specificNumbers
* @param country [required] The country
* @param range [required] The range (special number)
* @param type [required] The type of number
* @param zone [required] The zone (geographic number)
*/
public ArrayList number_specificNumbers_GET(OvhNumberCountryEnum country, String range, OvhNumberTypeEnum type, String zone) throws IOException {
String qPath = "/telephony/number/specificNumbers";
StringBuilder sb = path(qPath);
query(sb, "country", country);
query(sb, "range", range);
query(sb, "type", type);
query(sb, "zone", zone);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t8);
}
private static TypeReference> t8 = new TypeReference>() {};
/**
* List available services
*
* REST: GET /telephony/aliases
*/
public ArrayList aliases_GET() throws IOException {
String qPath = "/telephony/aliases";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Launch a contact change procedure
*
* REST: POST /telephony/aliases/{serviceName}/changeContact
* @param contactAdmin The contact to set as admin contact
* @param contactTech The contact to set as tech contact
* @param contactBilling The contact to set as billing contact
* @param serviceName [required] Your line number
*/
public ArrayList aliases_serviceName_changeContact_POST(String serviceName, String contactAdmin, String contactBilling, String contactTech) throws IOException {
String qPath = "/telephony/aliases/{serviceName}/changeContact";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "contactAdmin", contactAdmin);
addBody(o, "contactBilling", contactBilling);
addBody(o, "contactTech", contactTech);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, t9);
}
private static TypeReference> t9 = new TypeReference>() {};
/**
* Get this object properties
*
* REST: GET /telephony/aliases/{serviceName}
* @param serviceName [required] Your line number
*/
public OvhTelephonyGenericService aliases_serviceName_GET(String serviceName) throws IOException {
String qPath = "/telephony/aliases/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhTelephonyGenericService.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/aliases/{serviceName}/serviceInfos
* @param serviceName [required] Your line number
*/
public OvhService aliases_serviceName_serviceInfos_GET(String serviceName) throws IOException {
String qPath = "/telephony/aliases/{serviceName}/serviceInfos";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhService.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/aliases/{serviceName}/serviceInfos
* @param body [required] New object properties
* @param serviceName [required] Your line number
*/
public void aliases_serviceName_serviceInfos_PUT(String serviceName, OvhService body) throws IOException {
String qPath = "/telephony/aliases/{serviceName}/serviceInfos";
StringBuilder sb = path(qPath, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Get this object properties
*
* REST: GET /telephony/trunks/{serviceName}/serviceInfos
* @param serviceName [required] Your trunk number
*/
public OvhService trunks_serviceName_serviceInfos_GET(String serviceName) throws IOException {
String qPath = "/telephony/trunks/{serviceName}/serviceInfos";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhService.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/trunks/{serviceName}/serviceInfos
* @param body [required] New object properties
* @param serviceName [required] Your trunk number
*/
public void trunks_serviceName_serviceInfos_PUT(String serviceName, OvhService body) throws IOException {
String qPath = "/telephony/trunks/{serviceName}/serviceInfos";
StringBuilder sb = path(qPath, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Get this object properties
*
* REST: GET /telephony/trunks/{serviceName}
* @param serviceName [required] Your trunk number
*/
public OvhTelephonyGenericService trunks_serviceName_GET(String serviceName) throws IOException {
String qPath = "/telephony/trunks/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhTelephonyGenericService.class);
}
/**
* Launch a contact change procedure
*
* REST: POST /telephony/trunks/{serviceName}/changeContact
* @param contactAdmin The contact to set as admin contact
* @param contactTech The contact to set as tech contact
* @param contactBilling The contact to set as billing contact
* @param serviceName [required] Your trunk number
*/
public ArrayList trunks_serviceName_changeContact_POST(String serviceName, String contactAdmin, String contactBilling, String contactTech) throws IOException {
String qPath = "/telephony/trunks/{serviceName}/changeContact";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "contactAdmin", contactAdmin);
addBody(o, "contactBilling", contactBilling);
addBody(o, "contactTech", contactTech);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, t9);
}
/**
* List available services
*
* REST: GET /telephony/trunks
*/
public ArrayList trunks_GET() throws IOException {
String qPath = "/telephony/trunks";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* List available services
*
* REST: GET /telephony/lines
*/
public ArrayList lines_GET() throws IOException {
String qPath = "/telephony/lines";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Launch a contact change procedure
*
* REST: POST /telephony/lines/{serviceName}/changeContact
* @param contactAdmin The contact to set as admin contact
* @param contactTech The contact to set as tech contact
* @param contactBilling The contact to set as billing contact
* @param serviceName [required] Your line number
*/
public ArrayList lines_serviceName_changeContact_POST(String serviceName, String contactAdmin, String contactBilling, String contactTech) throws IOException {
String qPath = "/telephony/lines/{serviceName}/changeContact";
StringBuilder sb = path(qPath, serviceName);
HashMapo = new HashMap();
addBody(o, "contactAdmin", contactAdmin);
addBody(o, "contactBilling", contactBilling);
addBody(o, "contactTech", contactTech);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, t9);
}
/**
* Get this object properties
*
* REST: GET /telephony/lines/{serviceName}
* @param serviceName [required] Your line number
*/
public OvhTelephonyGenericService lines_serviceName_GET(String serviceName) throws IOException {
String qPath = "/telephony/lines/{serviceName}";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhTelephonyGenericService.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/lines/{serviceName}/serviceInfos
* @param serviceName [required] Your line number
*/
public OvhService lines_serviceName_serviceInfos_GET(String serviceName) throws IOException {
String qPath = "/telephony/lines/{serviceName}/serviceInfos";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhService.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/lines/{serviceName}/serviceInfos
* @param body [required] New object properties
* @param serviceName [required] Your line number
*/
public void lines_serviceName_serviceInfos_PUT(String serviceName, OvhService body) throws IOException {
String qPath = "/telephony/lines/{serviceName}/serviceInfos";
StringBuilder sb = path(qPath, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Sounds attached to this telephony account
*
* REST: GET /telephony/sounds
*/
public ArrayList sounds_GET() throws IOException {
String qPath = "/telephony/sounds";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Create a new sound
*
* REST: POST /telephony/sounds
* @param description [required] Sound description
* @param filename [required] Sound filename
*/
public OvhSound sounds_POST(String description, String filename) throws IOException {
String qPath = "/telephony/sounds";
StringBuilder sb = path(qPath);
HashMapo = new HashMap();
addBody(o, "description", description);
addBody(o, "filename", filename);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhSound.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/sounds/{id}
* @param id [required] Sound ID
*/
public OvhSound sounds_id_GET(Long id) throws IOException {
String qPath = "/telephony/sounds/{id}";
StringBuilder sb = path(qPath, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhSound.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/sounds/{id}
* @param body [required] New object properties
* @param id [required] Sound ID
*/
public void sounds_id_PUT(Long id, OvhSound body) throws IOException {
String qPath = "/telephony/sounds/{id}";
StringBuilder sb = path(qPath, id);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Delete the sound
*
* REST: DELETE /telephony/sounds/{id}
* @param id [required] Sound ID
*/
public void sounds_id_DELETE(Long id) throws IOException {
String qPath = "/telephony/sounds/{id}";
StringBuilder sb = path(qPath, id);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* List available services
*
* REST: GET /telephony
*/
public ArrayList GET() throws IOException {
String qPath = "/telephony";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Get all available fax offer compatible
*
* REST: GET /telephony/fax/offers
* @param country [required] The country
*/
public ArrayList fax_offers_GET(OvhNumberCountryEnum country) throws IOException {
String qPath = "/telephony/fax/offers";
StringBuilder sb = path(qPath);
query(sb, "country", country);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t2);
}
/**
* Get all available accessories
*
* REST: GET /telephony/accessories
* @param country [required] The country
*/
public ArrayList accessories_GET(OvhNumberCountryEnum country) throws IOException {
String qPath = "/telephony/accessories";
StringBuilder sb = path(qPath);
query(sb, "country", country);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t10);
}
private static TypeReference> t10 = new TypeReference>() {};
/**
* Get current order ids
*
* REST: GET /telephony/currentOrderIds
*/
public ArrayList currentOrderIds_GET() throws IOException {
String qPath = "/telephony/currentOrderIds";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Current billing account site (billing account features are overwritten by the site)
*
* REST: GET /telephony/{billingAccount}/billingAccountSite
* @param billingAccount [required] The name of your billingAccount
*/
public String billingAccount_billingAccountSite_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/billingAccountSite";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, String.class);
}
/**
* Used to overwrite current billing account feature by the billing account site
*
* REST: POST /telephony/{billingAccount}/billingAccountSite
* @param billingAccountSite [required] Billing account site (master billing account)
* @param billingAccount [required] The name of your billingAccount
*/
public void billingAccount_billingAccountSite_POST(String billingAccount, String billingAccountSite) throws IOException {
String qPath = "/telephony/{billingAccount}/billingAccountSite";
StringBuilder sb = path(qPath, billingAccount);
HashMapo = new HashMap();
addBody(o, "billingAccountSite", billingAccountSite);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Get the allowed creditThreshold for this billing account
*
* REST: GET /telephony/{billingAccount}/allowedCreditThreshold
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_allowedCreditThreshold_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/allowedCreditThreshold";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t11);
}
private static TypeReference> t11 = new TypeReference>() {};
/**
* Miniabx associated with this billing account
*
* REST: GET /telephony/{billingAccount}/miniPabx
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_miniPabx_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/miniPabx";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/miniPabx/{serviceName}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhMiniPabx billingAccount_miniPabx_serviceName_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/miniPabx/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhMiniPabx.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/miniPabx/{serviceName}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_miniPabx_serviceName_PUT(String billingAccount, String serviceName, OvhMiniPabx body) throws IOException {
String qPath = "/telephony/{billingAccount}/miniPabx/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/miniPabx/{serviceName}/hunting
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhMiniPabxHunting billingAccount_miniPabx_serviceName_hunting_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/miniPabx/{serviceName}/hunting";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhMiniPabxHunting.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/miniPabx/{serviceName}/hunting
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_miniPabx_serviceName_hunting_PUT(String billingAccount, String serviceName, OvhMiniPabxHunting body) throws IOException {
String qPath = "/telephony/{billingAccount}/miniPabx/{serviceName}/hunting";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Hunting agents
*
* REST: GET /telephony/{billingAccount}/miniPabx/{serviceName}/hunting/agent
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_miniPabx_serviceName_hunting_agent_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/miniPabx/{serviceName}/hunting/agent";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Create a new agent
*
* REST: POST /telephony/{billingAccount}/miniPabx/{serviceName}/hunting/agent
* @param position [required] The position in the hunting
* @param noReplyTimer [required] The maxium ringing time
* @param agentNumber [required] The phone number of the agent
* @param logged [required] True if the agent is logged
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhEasyMiniPabxHuntingAgent billingAccount_miniPabx_serviceName_hunting_agent_POST(String billingAccount, String serviceName, String agentNumber, Boolean logged, Long noReplyTimer, Long position) throws IOException {
String qPath = "/telephony/{billingAccount}/miniPabx/{serviceName}/hunting/agent";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "agentNumber", agentNumber);
addBody(o, "logged", logged);
addBody(o, "noReplyTimer", noReplyTimer);
addBody(o, "position", position);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhEasyMiniPabxHuntingAgent.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/miniPabx/{serviceName}/hunting/agent/{agentNumber}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentNumber [required] The phone number of the agent
*/
public OvhEasyMiniPabxHuntingAgent billingAccount_miniPabx_serviceName_hunting_agent_agentNumber_GET(String billingAccount, String serviceName, String agentNumber) throws IOException {
String qPath = "/telephony/{billingAccount}/miniPabx/{serviceName}/hunting/agent/{agentNumber}";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentNumber);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhEasyMiniPabxHuntingAgent.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/miniPabx/{serviceName}/hunting/agent/{agentNumber}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentNumber [required] The phone number of the agent
*/
public void billingAccount_miniPabx_serviceName_hunting_agent_agentNumber_PUT(String billingAccount, String serviceName, String agentNumber, OvhEasyMiniPabxHuntingAgent body) throws IOException {
String qPath = "/telephony/{billingAccount}/miniPabx/{serviceName}/hunting/agent/{agentNumber}";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentNumber);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Delete the agent
*
* REST: DELETE /telephony/{billingAccount}/miniPabx/{serviceName}/hunting/agent/{agentNumber}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentNumber [required] The phone number of the agent
*/
public void billingAccount_miniPabx_serviceName_hunting_agent_agentNumber_DELETE(String billingAccount, String serviceName, String agentNumber) throws IOException {
String qPath = "/telephony/{billingAccount}/miniPabx/{serviceName}/hunting/agent/{agentNumber}";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentNumber);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Upload new tone file
*
* REST: POST /telephony/{billingAccount}/miniPabx/{serviceName}/tones/toneUpload
* @param url [required] URL of the file you want to import (instead of /me/document ID)
* @param type [required]
* @param documentId [required] ID of the /me/document file you want to import
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhTask billingAccount_miniPabx_serviceName_tones_toneUpload_POST(String billingAccount, String serviceName, String documentId, OvhTonesTypeEnum type, String url) throws IOException {
String qPath = "/telephony/{billingAccount}/miniPabx/{serviceName}/tones/toneUpload";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "documentId", documentId);
addBody(o, "type", type);
addBody(o, "url", url);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/miniPabx/{serviceName}/tones
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhTones billingAccount_miniPabx_serviceName_tones_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/miniPabx/{serviceName}/tones";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhTones.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/miniPabx/{serviceName}/tones
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_miniPabx_serviceName_tones_PUT(String billingAccount, String serviceName, OvhTones body) throws IOException {
String qPath = "/telephony/{billingAccount}/miniPabx/{serviceName}/tones";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* OVH easy calls queues associated with this billing account
*
* REST: GET /telephony/{billingAccount}/easyHunting
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_easyHunting_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/timeConditions
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhEasyHuntingTimeConditionsSettings billingAccount_easyHunting_serviceName_timeConditions_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/timeConditions";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhEasyHuntingTimeConditionsSettings.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/easyHunting/{serviceName}/timeConditions
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_easyHunting_serviceName_timeConditions_PUT(String billingAccount, String serviceName, OvhEasyHuntingTimeConditionsSettings body) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/timeConditions";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Time conditions checked when a call is received
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/timeConditions/conditions
* @param policy [required] Filter the value of policy property (=)
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_easyHunting_serviceName_timeConditions_conditions_GET(String billingAccount, String serviceName, OvhTimeConditionsPolicyEnum policy) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/timeConditions/conditions";
StringBuilder sb = path(qPath, billingAccount, serviceName);
query(sb, "policy", policy);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Create a new time condition
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/timeConditions/conditions
* @param timeTo [required] The time of the day when the extension will stop to be executed
* @param policy [required] The time condition's policy
* @param timeFrom [required] The time of the day when the extension will start to be executed
* @param weekDay [required] The day of the week when the extension will be executed
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhEasyHuntingTimeConditions billingAccount_easyHunting_serviceName_timeConditions_conditions_POST(String billingAccount, String serviceName, OvhTimeConditionsPolicyEnum policy, Date timeFrom, Date timeTo, OvhOvhPabxDialplanExtensionConditionTimeWeekDayEnum weekDay) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/timeConditions/conditions";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "policy", policy);
addBody(o, "timeFrom", timeFrom);
addBody(o, "timeTo", timeTo);
addBody(o, "weekDay", weekDay);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhEasyHuntingTimeConditions.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/timeConditions/conditions/{conditionId}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param conditionId [required]
*/
public OvhEasyHuntingTimeConditions billingAccount_easyHunting_serviceName_timeConditions_conditions_conditionId_GET(String billingAccount, String serviceName, Long conditionId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/timeConditions/conditions/{conditionId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, conditionId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhEasyHuntingTimeConditions.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/easyHunting/{serviceName}/timeConditions/conditions/{conditionId}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param conditionId [required]
*/
public void billingAccount_easyHunting_serviceName_timeConditions_conditions_conditionId_PUT(String billingAccount, String serviceName, Long conditionId, OvhEasyHuntingTimeConditions body) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/timeConditions/conditions/{conditionId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, conditionId);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Delete the given condition
*
* REST: DELETE /telephony/{billingAccount}/easyHunting/{serviceName}/timeConditions/conditions/{conditionId}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param conditionId [required]
*/
public void billingAccount_easyHunting_serviceName_timeConditions_conditions_conditionId_DELETE(String billingAccount, String serviceName, Long conditionId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/timeConditions/conditions/{conditionId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, conditionId);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhEasyHunting billingAccount_easyHunting_serviceName_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhEasyHunting.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/easyHunting/{serviceName}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_easyHunting_serviceName_PUT(String billingAccount, String serviceName, OvhEasyHunting body) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/screenListConditions/conditions/{conditionId}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param conditionId [required]
*/
public OvhEasyHuntingScreenListsConditions billingAccount_easyHunting_serviceName_screenListConditions_conditions_conditionId_GET(String billingAccount, String serviceName, Long conditionId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/screenListConditions/conditions/{conditionId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, conditionId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhEasyHuntingScreenListsConditions.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/easyHunting/{serviceName}/screenListConditions/conditions/{conditionId}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param conditionId [required]
*/
public void billingAccount_easyHunting_serviceName_screenListConditions_conditions_conditionId_PUT(String billingAccount, String serviceName, Long conditionId, OvhEasyHuntingScreenListsConditions body) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/screenListConditions/conditions/{conditionId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, conditionId);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Delete the given condition
*
* REST: DELETE /telephony/{billingAccount}/easyHunting/{serviceName}/screenListConditions/conditions/{conditionId}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param conditionId [required]
*/
public void billingAccount_easyHunting_serviceName_screenListConditions_conditions_conditionId_DELETE(String billingAccount, String serviceName, Long conditionId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/screenListConditions/conditions/{conditionId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, conditionId);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Screen lists conditions checked when a call is received
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/screenListConditions/conditions
* @param screenListType [required] Filter the value of screenListType property (=)
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_easyHunting_serviceName_screenListConditions_conditions_GET(String billingAccount, String serviceName, OvhOvhPabxDialplanExtensionConditionScreenListTypeEnum screenListType) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/screenListConditions/conditions";
StringBuilder sb = path(qPath, billingAccount, serviceName);
query(sb, "screenListType", screenListType);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Create a new screenlist condition for an extension
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/screenListConditions/conditions
* @param callerIdNumber [required] Add a screenlist based on the presented caller number
* @param screenListType [required] Type of screenlist
* @param destinationNumber [required] Add a screenlist based on the destination number
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhEasyHuntingScreenListsConditions billingAccount_easyHunting_serviceName_screenListConditions_conditions_POST(String billingAccount, String serviceName, String callerIdNumber, String destinationNumber, OvhOvhPabxDialplanExtensionConditionScreenListTypeEnum screenListType) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/screenListConditions/conditions";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "callerIdNumber", callerIdNumber);
addBody(o, "destinationNumber", destinationNumber);
addBody(o, "screenListType", screenListType);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhEasyHuntingScreenListsConditions.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/screenListConditions
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhEasyHuntingScreenListsConditionsSettings billingAccount_easyHunting_serviceName_screenListConditions_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/screenListConditions";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhEasyHuntingScreenListsConditionsSettings.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/easyHunting/{serviceName}/screenListConditions
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_easyHunting_serviceName_screenListConditions_PUT(String billingAccount, String serviceName, OvhEasyHuntingScreenListsConditionsSettings body) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/screenListConditions";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/records/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required]
*/
public OvhOvhPabxRecord billingAccount_easyHunting_serviceName_records_id_GET(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/records/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxRecord.class);
}
/**
* Delete the given record
*
* REST: DELETE /telephony/{billingAccount}/easyHunting/{serviceName}/records/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required]
*/
public void billingAccount_easyHunting_serviceName_records_id_DELETE(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/records/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Records associated with this PABX
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/records
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_easyHunting_serviceName_records_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/records";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Sounds associated with this PABX
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/sound
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_easyHunting_serviceName_sound_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/sound";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/sound/{soundId}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param soundId [required]
*/
public OvhOvhPabxSound billingAccount_easyHunting_serviceName_sound_soundId_GET(String billingAccount, String serviceName, Long soundId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/sound/{soundId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, soundId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxSound.class);
}
/**
* Delete the given sound
*
* REST: DELETE /telephony/{billingAccount}/easyHunting/{serviceName}/sound/{soundId}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param soundId [required]
*/
public void billingAccount_easyHunting_serviceName_sound_soundId_DELETE(String billingAccount, String serviceName, Long soundId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/sound/{soundId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, soundId);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Upload new sound file
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/soundUpload
* @param url [required] URL of the file you want to import (instead of /me/document ID)
* @param name [required]
* @param documentId [required] ID of the /me/document file you want to import
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhTask billingAccount_easyHunting_serviceName_soundUpload_POST(String billingAccount, String serviceName, String documentId, String name, String url) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/soundUpload";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "documentId", documentId);
addBody(o, "name", name);
addBody(o, "url", url);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Calls agents
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_easyHunting_serviceName_hunting_agent_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Create a new agent
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent
* @param status [required] The current status of the agent
* @param number [required] The number of the agent
* @param timeout [required] The waiting timeout (in seconds) before hangup for an assigned called
* @param description [required] The agent's description
* @param wrapUpTime [required] The wrap up time (in seconds) after the calls
* @param simultaneousLines [required] The maximum of simultaneous calls that the agent will receive from the hunting
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhOvhPabxHuntingAgent billingAccount_easyHunting_serviceName_hunting_agent_POST(String billingAccount, String serviceName, String description, String number, Long simultaneousLines, OvhOvhPabxHuntingAgentStatusEnum status, Long timeout, Long wrapUpTime) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "description", description);
addBody(o, "number", number);
addBody(o, "simultaneousLines", simultaneousLines);
addBody(o, "status", status);
addBody(o, "timeout", timeout);
addBody(o, "wrapUpTime", wrapUpTime);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOvhPabxHuntingAgent.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
*/
public OvhOvhPabxHuntingAgent billingAccount_easyHunting_serviceName_hunting_agent_agentId_GET(String billingAccount, String serviceName, Long agentId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxHuntingAgent.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
*/
public void billingAccount_easyHunting_serviceName_hunting_agent_agentId_PUT(String billingAccount, String serviceName, Long agentId, OvhOvhPabxHuntingAgent body) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Delete the given agent
*
* REST: DELETE /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
*/
public void billingAccount_easyHunting_serviceName_hunting_agent_agentId_DELETE(String billingAccount, String serviceName, Long agentId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/bannerAccess
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
*/
public OvhBannerAccess billingAccount_easyHunting_serviceName_hunting_agent_agentId_bannerAccess_GET(String billingAccount, String serviceName, Long agentId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/bannerAccess";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhBannerAccess.class);
}
/**
* Create a new web access for this ressource
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/bannerAccess
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
*/
public OvhBannerAccess billingAccount_easyHunting_serviceName_hunting_agent_agentId_bannerAccess_POST(String billingAccount, String serviceName, Long agentId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/bannerAccess";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhBannerAccess.class);
}
/**
* Delete the given web access
*
* REST: DELETE /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/bannerAccess
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
*/
public void billingAccount_easyHunting_serviceName_hunting_agent_agentId_bannerAccess_DELETE(String billingAccount, String serviceName, Long agentId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/bannerAccess";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/eventToken
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
*/
public OvhEventToken billingAccount_easyHunting_serviceName_hunting_agent_agentId_eventToken_GET(String billingAccount, String serviceName, Long agentId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/eventToken";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhEventToken.class);
}
/**
* Create a new token
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/eventToken
* @param expiration [required] Time to live in seconds for the token
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
*/
public String billingAccount_easyHunting_serviceName_hunting_agent_agentId_eventToken_POST(String billingAccount, String serviceName, Long agentId, OvhTokenExpirationEnum expiration) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/eventToken";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId);
HashMapo = new HashMap();
addBody(o, "expiration", expiration);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, String.class);
}
/**
* Delete the given token
*
* REST: DELETE /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/eventToken
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
*/
public void billingAccount_easyHunting_serviceName_hunting_agent_agentId_eventToken_DELETE(String billingAccount, String serviceName, Long agentId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/eventToken";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Intercept a non answered call
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls/{id}/intercept
* @param number [required] Phone number that will be called and that will intercept the communication
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_easyHunting_serviceName_hunting_agent_agentId_calls_id_intercept_POST(String billingAccount, String serviceName, Long agentId, Long id, String number) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls/{id}/intercept";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId, id);
HashMapo = new HashMap();
addBody(o, "number", number);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Hangup a call
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls/{id}/hangup
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_easyHunting_serviceName_hunting_agent_agentId_calls_id_hangup_POST(String billingAccount, String serviceName, Long agentId, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls/{id}/hangup";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId, id);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhTask.class);
}
/**
* Toogle hold on call
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls/{id}/hold
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_easyHunting_serviceName_hunting_agent_agentId_calls_id_hold_POST(String billingAccount, String serviceName, Long agentId, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls/{id}/hold";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId, id);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhTask.class);
}
/**
* Transfer an answered call
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls/{id}/transfer
* @param number [required] Phone number to whom the communication will be transfered
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_easyHunting_serviceName_hunting_agent_agentId_calls_id_transfer_POST(String billingAccount, String serviceName, Long agentId, Long id, String number) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls/{id}/transfer";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId, id);
HashMapo = new HashMap();
addBody(o, "number", number);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Whisper on a call
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls/{id}/whisper
* @param number [required] Phone number that will be called and bridged in the communication
* @param whisperingMode [required] Whispering mode
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_easyHunting_serviceName_hunting_agent_agentId_calls_id_whisper_POST(String billingAccount, String serviceName, Long agentId, Long id, String number, OvhOvhPabxWhisperingModeEnum whisperingMode) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls/{id}/whisper";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId, id);
HashMapo = new HashMap();
addBody(o, "number", number);
addBody(o, "whisperingMode", whisperingMode);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
* @param id [required] Id of the object
*/
public OvhOvhPabxHuntingQueueLiveCalls billingAccount_easyHunting_serviceName_hunting_agent_agentId_calls_id_GET(String billingAccount, String serviceName, Long agentId, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxHuntingQueueLiveCalls.class);
}
/**
* Eavesdrop on a call
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls/{id}/eavesdrop
* @param number [required] Phone number that will be called and bridged in the communication
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_easyHunting_serviceName_hunting_agent_agentId_calls_id_eavesdrop_POST(String billingAccount, String serviceName, Long agentId, Long id, String number) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls/{id}/eavesdrop";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId, id);
HashMapo = new HashMap();
addBody(o, "number", number);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Current calls of the callcenter agent
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
*/
public ArrayList billingAccount_easyHunting_serviceName_hunting_agent_agentId_calls_GET(String billingAccount, String serviceName, Long agentId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/calls";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Agent assigned to the queues
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/queue
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
*/
public ArrayList billingAccount_easyHunting_serviceName_hunting_agent_agentId_queue_GET(String billingAccount, String serviceName, Long agentId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/queue";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Create a new skill for an agent (it adds the agent in a queue)
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/queue
* @param queueId [required] The queue where you want to add the agent
* @param position [required] The position of the agent in the queue
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
*/
public OvhOvhPabxHuntingAgentQueue billingAccount_easyHunting_serviceName_hunting_agent_agentId_queue_POST(String billingAccount, String serviceName, Long agentId, Long position, Long queueId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/queue";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId);
HashMapo = new HashMap();
addBody(o, "position", position);
addBody(o, "queueId", queueId);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOvhPabxHuntingAgentQueue.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/queue/{queueId}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
* @param queueId [required]
*/
public OvhOvhPabxHuntingAgentQueue billingAccount_easyHunting_serviceName_hunting_agent_agentId_queue_queueId_GET(String billingAccount, String serviceName, Long agentId, Long queueId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/queue/{queueId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId, queueId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxHuntingAgentQueue.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/queue/{queueId}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
* @param queueId [required]
*/
public void billingAccount_easyHunting_serviceName_hunting_agent_agentId_queue_queueId_PUT(String billingAccount, String serviceName, Long agentId, Long queueId, OvhOvhPabxHuntingAgentQueue body) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/queue/{queueId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId, queueId);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Delete the given skill
*
* REST: DELETE /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/queue/{queueId}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
* @param queueId [required]
*/
public void billingAccount_easyHunting_serviceName_hunting_agent_agentId_queue_queueId_DELETE(String billingAccount, String serviceName, Long agentId, Long queueId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/queue/{queueId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId, queueId);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/queue/{queueId}/liveStatus
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
* @param queueId [required]
*/
public OvhOvhPabxHuntingAgentLiveStatus billingAccount_easyHunting_serviceName_hunting_agent_agentId_queue_queueId_liveStatus_GET(String billingAccount, String serviceName, Long agentId, Long queueId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/queue/{queueId}/liveStatus";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId, queueId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxHuntingAgentLiveStatus.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/liveStatus
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param agentId [required]
*/
public OvhOvhPabxHuntingAgentLiveStatus billingAccount_easyHunting_serviceName_hunting_agent_agentId_liveStatus_GET(String billingAccount, String serviceName, Long agentId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}/liveStatus";
StringBuilder sb = path(qPath, billingAccount, serviceName, agentId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxHuntingAgentLiveStatus.class);
}
/**
* Calls queues
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_easyHunting_serviceName_hunting_queue_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Create a new queue
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue
* @param actionOnOverflow [required] Action executed when caller enters a full queue
* @param description [required] The name of the queue
* @param actionOnClosureParam [required] The additionnal parameter of the on closure action
* @param actionOnClosure [required] Action executed when there is no member in queue
* @param maxMember [required] The maximum of people waiting in the queue
* @param record [required] Enable record on calls in queue
* @param recordDisablingDigit [required] Key to press to disable record
* @param maxWaitTime [required] The maximum waiting time (in seconds) in the queue
* @param strategy [required] The calls dispatching strategy
* @param soundOnHold [required] The id of the OvhPabxSound played to caller when on hold
* @param actionOnOverflowParam [required] The additionnal parameter of the overflow action
* @param askForRecordDisabling [required] Allow the caller to disable call record by pressing a key
* @param recordDisablingLanguage [required] Language of the sound played to the caller to inform that he can disable record
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhOvhPabxHuntingQueue billingAccount_easyHunting_serviceName_hunting_queue_POST(String billingAccount, String serviceName, OvhOvhPabxQueueActionEnum actionOnClosure, String actionOnClosureParam, OvhOvhPabxQueueActionEnum actionOnOverflow, String actionOnOverflowParam, Boolean askForRecordDisabling, String description, Long maxMember, Long maxWaitTime, Boolean record, OvhOvhPabxHuntingQueueRecordDisablingDigitEnum recordDisablingDigit, OvhOvhPabxHuntingQueueRecordDisablingLanguageEnum recordDisablingLanguage, Long soundOnHold, OvhOvhPabxHuntingQueueStrategyEnum strategy) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "actionOnClosure", actionOnClosure);
addBody(o, "actionOnClosureParam", actionOnClosureParam);
addBody(o, "actionOnOverflow", actionOnOverflow);
addBody(o, "actionOnOverflowParam", actionOnOverflowParam);
addBody(o, "askForRecordDisabling", askForRecordDisabling);
addBody(o, "description", description);
addBody(o, "maxMember", maxMember);
addBody(o, "maxWaitTime", maxWaitTime);
addBody(o, "record", record);
addBody(o, "recordDisablingDigit", recordDisablingDigit);
addBody(o, "recordDisablingLanguage", recordDisablingLanguage);
addBody(o, "soundOnHold", soundOnHold);
addBody(o, "strategy", strategy);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOvhPabxHuntingQueue.class);
}
/**
* Live calls of the queue
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
*/
public ArrayList billingAccount_easyHunting_serviceName_hunting_queue_queueId_liveCalls_GET(String billingAccount, String serviceName, Long queueId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Intercept a non answered call
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls/{id}/intercept
* @param number [required] Phone number that will be called and that will intercept the communication
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_easyHunting_serviceName_hunting_queue_queueId_liveCalls_id_intercept_POST(String billingAccount, String serviceName, Long queueId, Long id, String number) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls/{id}/intercept";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId, id);
HashMapo = new HashMap();
addBody(o, "number", number);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Hangup a call
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls/{id}/hangup
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_easyHunting_serviceName_hunting_queue_queueId_liveCalls_id_hangup_POST(String billingAccount, String serviceName, Long queueId, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls/{id}/hangup";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId, id);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhTask.class);
}
/**
* Toogle hold on call
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls/{id}/hold
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_easyHunting_serviceName_hunting_queue_queueId_liveCalls_id_hold_POST(String billingAccount, String serviceName, Long queueId, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls/{id}/hold";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId, id);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhTask.class);
}
/**
* Transfer an answered call
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls/{id}/transfer
* @param number [required] Phone number to whom the communication will be transfered
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_easyHunting_serviceName_hunting_queue_queueId_liveCalls_id_transfer_POST(String billingAccount, String serviceName, Long queueId, Long id, String number) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls/{id}/transfer";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId, id);
HashMapo = new HashMap();
addBody(o, "number", number);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Whisper on a call
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls/{id}/whisper
* @param number [required] Phone number that will be called and bridged in the communication
* @param whisperingMode [required] Whispering mode
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_easyHunting_serviceName_hunting_queue_queueId_liveCalls_id_whisper_POST(String billingAccount, String serviceName, Long queueId, Long id, String number, OvhOvhPabxWhisperingModeEnum whisperingMode) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls/{id}/whisper";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId, id);
HashMapo = new HashMap();
addBody(o, "number", number);
addBody(o, "whisperingMode", whisperingMode);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Eavesdrop on a call
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls/{id}/eavesdrop
* @param number [required] Phone number that will be called and bridged in the communication
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_easyHunting_serviceName_hunting_queue_queueId_liveCalls_id_eavesdrop_POST(String billingAccount, String serviceName, Long queueId, Long id, String number) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls/{id}/eavesdrop";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId, id);
HashMapo = new HashMap();
addBody(o, "number", number);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
* @param id [required] Id of the object
*/
public OvhOvhPabxHuntingQueueLiveCalls billingAccount_easyHunting_serviceName_hunting_queue_queueId_liveCalls_id_GET(String billingAccount, String serviceName, Long queueId, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveCalls/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxHuntingQueueLiveCalls.class);
}
/**
* Agent assigned to the queue
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/agent
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
*/
public ArrayList billingAccount_easyHunting_serviceName_hunting_queue_queueId_agent_GET(String billingAccount, String serviceName, Long queueId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/agent";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Create a new skill for an agent (it adds the agent in a queue)
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/agent
* @param queueId [required] The queue where you want to add the agent
* @param position [required] The position of the agent in the queue
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhOvhPabxHuntingAgentQueue billingAccount_easyHunting_serviceName_hunting_queue_queueId_agent_POST(String billingAccount, String serviceName, Long queueId, Long position) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/agent";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId);
HashMapo = new HashMap();
addBody(o, "position", position);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOvhPabxHuntingAgentQueue.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/agent/{agentId}/liveStatus
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
* @param agentId [required]
*/
public OvhOvhPabxHuntingAgentLiveStatus billingAccount_easyHunting_serviceName_hunting_queue_queueId_agent_agentId_liveStatus_GET(String billingAccount, String serviceName, Long queueId, Long agentId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/agent/{agentId}/liveStatus";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId, agentId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxHuntingAgentLiveStatus.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/agent/{agentId}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
* @param agentId [required]
*/
public OvhOvhPabxHuntingAgentQueue billingAccount_easyHunting_serviceName_hunting_queue_queueId_agent_agentId_GET(String billingAccount, String serviceName, Long queueId, Long agentId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/agent/{agentId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId, agentId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxHuntingAgentQueue.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/agent/{agentId}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
* @param agentId [required]
*/
public void billingAccount_easyHunting_serviceName_hunting_queue_queueId_agent_agentId_PUT(String billingAccount, String serviceName, Long queueId, Long agentId, OvhOvhPabxHuntingAgentQueue body) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/agent/{agentId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId, agentId);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Delete the given skill
*
* REST: DELETE /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/agent/{agentId}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
* @param agentId [required]
*/
public void billingAccount_easyHunting_serviceName_hunting_queue_queueId_agent_agentId_DELETE(String billingAccount, String serviceName, Long queueId, Long agentId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/agent/{agentId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId, agentId);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveStatistics
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
*/
public OvhOvhPabxHuntingQueueLiveStatistics billingAccount_easyHunting_serviceName_hunting_queue_queueId_liveStatistics_GET(String billingAccount, String serviceName, Long queueId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}/liveStatistics";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxHuntingQueueLiveStatistics.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
*/
public OvhOvhPabxHuntingQueue billingAccount_easyHunting_serviceName_hunting_queue_queueId_GET(String billingAccount, String serviceName, Long queueId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxHuntingQueue.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
*/
public void billingAccount_easyHunting_serviceName_hunting_queue_queueId_PUT(String billingAccount, String serviceName, Long queueId, OvhOvhPabxHuntingQueue body) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Delete the given queue
*
* REST: DELETE /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param queueId [required]
*/
public void billingAccount_easyHunting_serviceName_hunting_queue_queueId_DELETE(String billingAccount, String serviceName, Long queueId) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/queue/{queueId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, queueId);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/eventToken
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhEventToken billingAccount_easyHunting_serviceName_hunting_eventToken_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/eventToken";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhEventToken.class);
}
/**
* Create a new token
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/eventToken
* @param expiration [required] Time to live in seconds for the token
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public String billingAccount_easyHunting_serviceName_hunting_eventToken_POST(String billingAccount, String serviceName, OvhTokenExpirationEnum expiration) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/eventToken";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "expiration", expiration);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, String.class);
}
/**
* Delete the given token
*
* REST: DELETE /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/eventToken
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_easyHunting_serviceName_hunting_eventToken_DELETE(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/eventToken";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Custom statuses of your agents
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/customStatus
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_easyHunting_serviceName_hunting_customStatus_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/customStatus";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Create a new custom status
*
* REST: POST /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/customStatus
* @param color [required] The color (in hexadecimal) of the status that will be displayed on agent banner web application
* @param name [required] The name of the status (Pause, Mission, etc...)
* @param description [required] A short description of the status
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhOvhPabxCustomStatus billingAccount_easyHunting_serviceName_hunting_customStatus_POST(String billingAccount, String serviceName, String color, String description, String name) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/customStatus";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "color", color);
addBody(o, "description", description);
addBody(o, "name", name);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhOvhPabxCustomStatus.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/customStatus/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required]
*/
public OvhOvhPabxCustomStatus billingAccount_easyHunting_serviceName_hunting_customStatus_id_GET(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/customStatus/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxCustomStatus.class);
}
/**
* Delete the given custom status
*
* REST: DELETE /telephony/{billingAccount}/easyHunting/{serviceName}/hunting/customStatus/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required]
*/
public void billingAccount_easyHunting_serviceName_hunting_customStatus_id_DELETE(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/customStatus/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/easyHunting/{serviceName}/hunting
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhOvhPabxHunting billingAccount_easyHunting_serviceName_hunting_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxHunting.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/easyHunting/{serviceName}/hunting
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_easyHunting_serviceName_hunting_PUT(String billingAccount, String serviceName, OvhOvhPabxHunting body) throws IOException {
String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Transfer security deposit between two billing accounts
*
* REST: POST /telephony/{billingAccount}/transferSecurityDeposit
* @param amount [required] The amount, in euros, you want to transfer
* @param billingAccountDestination [required] The destination billing account
* @param billingAccount [required] The name of your billingAccount
*/
public void billingAccount_transferSecurityDeposit_POST(String billingAccount, Long amount, String billingAccountDestination) throws IOException {
String qPath = "/telephony/{billingAccount}/transferSecurityDeposit";
StringBuilder sb = path(qPath, billingAccount);
HashMapo = new HashMap();
addBody(o, "amount", amount);
addBody(o, "billingAccountDestination", billingAccountDestination);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Give all amounts availables for your billing account
*
* REST: GET /telephony/{billingAccount}/amountSecurityDeposit
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_amountSecurityDeposit_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/amountSecurityDeposit";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t11);
}
/**
* Vxml numbers associated with this billing account
*
* REST: GET /telephony/{billingAccount}/vxml
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_vxml_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/vxml";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Generate a temporary url to retrieve device logs
*
* REST: POST /telephony/{billingAccount}/vxml/{serviceName}/settings/logs
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhTemporaryLogsLink billingAccount_vxml_serviceName_settings_logs_POST(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/vxml/{serviceName}/settings/logs";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhTemporaryLogsLink.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/vxml/{serviceName}/settings
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhVxmlProperties billingAccount_vxml_serviceName_settings_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/vxml/{serviceName}/settings";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhVxmlProperties.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/vxml/{serviceName}/settings
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_vxml_serviceName_settings_PUT(String billingAccount, String serviceName, OvhVxmlProperties body) throws IOException {
String qPath = "/telephony/{billingAccount}/vxml/{serviceName}/settings";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/vxml/{serviceName}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhVxml billingAccount_vxml_serviceName_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/vxml/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhVxml.class);
}
/**
* Previous repayment bill
*
* REST: GET /telephony/{billingAccount}/historyRepaymentConsumption
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_historyRepaymentConsumption_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/historyRepaymentConsumption";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t12);
}
private static TypeReference> t12 = new TypeReference>() {};
/**
* Ask for a new repayment
*
* REST: POST /telephony/{billingAccount}/historyRepaymentConsumption
* @param billingNumber [required] The number of the bill
* @param billingAccount [required] The name of your billingAccount
*/
public OvhHistoryRepaymentConsumption billingAccount_historyRepaymentConsumption_POST(String billingAccount, String billingNumber) throws IOException {
String qPath = "/telephony/{billingAccount}/historyRepaymentConsumption";
StringBuilder sb = path(qPath, billingAccount);
HashMapo = new HashMap();
addBody(o, "billingNumber", billingNumber);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhHistoryRepaymentConsumption.class);
}
/**
* Get the csv document
*
* REST: GET /telephony/{billingAccount}/historyRepaymentConsumption/{date}/document
* @param billingAccount [required] The name of your billingAccount
* @param date [required] date of the bill
*/
public OvhPcsFile billingAccount_historyRepaymentConsumption_date_document_GET(String billingAccount, java.util.Date date) throws IOException {
String qPath = "/telephony/{billingAccount}/historyRepaymentConsumption/{date}/document";
StringBuilder sb = path(qPath, billingAccount, date);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhPcsFile.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/historyRepaymentConsumption/{date}
* @param billingAccount [required] The name of your billingAccount
* @param date [required] date of the bill
*/
public OvhHistoryRepaymentConsumption billingAccount_historyRepaymentConsumption_date_GET(String billingAccount, java.util.Date date) throws IOException {
String qPath = "/telephony/{billingAccount}/historyRepaymentConsumption/{date}";
StringBuilder sb = path(qPath, billingAccount, date);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhHistoryRepaymentConsumption.class);
}
/**
* List old phones archived as they were not returned after an RMA
*
* REST: GET /telephony/{billingAccount}/oldPhone
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_oldPhone_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/oldPhone";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t13);
}
private static TypeReference> t13 = new TypeReference>() {};
/**
* Screenlist compatible numbers associated with this billing account
*
* REST: GET /telephony/{billingAccount}/screen
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_screen_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/screen";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Rules for call filtering for this service
*
* REST: GET /telephony/{billingAccount}/screen/{serviceName}/screenLists
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_screen_serviceName_screenLists_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/screen/{serviceName}/screenLists";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Create a new screen list rule
*
* REST: POST /telephony/{billingAccount}/screen/{serviceName}/screenLists
* @param nature [required] The nature of the generic screen list
* @param type [required] The type of the generic screen list
* @param callNumber [required] The callNumber of the generic screen list
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_screen_serviceName_screenLists_POST(String billingAccount, String serviceName, String callNumber, OvhScreenListNatureEnum nature, OvhScreenListTypeEnum type) throws IOException {
String qPath = "/telephony/{billingAccount}/screen/{serviceName}/screenLists";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "callNumber", callNumber);
addBody(o, "nature", nature);
addBody(o, "type", type);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/screen/{serviceName}/screenLists/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhScreenList billingAccount_screen_serviceName_screenLists_id_GET(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/screen/{serviceName}/screenLists/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhScreenList.class);
}
/**
* Delete the given screen list
*
* REST: DELETE /telephony/{billingAccount}/screen/{serviceName}/screenLists/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public void billingAccount_screen_serviceName_screenLists_id_DELETE(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/screen/{serviceName}/screenLists/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/screen/{serviceName}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhScreen billingAccount_screen_serviceName_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/screen/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhScreen.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/screen/{serviceName}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_screen_serviceName_PUT(String billingAccount, String serviceName, OvhScreen body) throws IOException {
String qPath = "/telephony/{billingAccount}/screen/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* New scheduled rate code related to this sva
*
* REST: GET /telephony/{billingAccount}/rsva/{serviceName}/scheduledRateCode
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhDetailedRateCodeInformation billingAccount_rsva_serviceName_scheduledRateCode_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/rsva/{serviceName}/scheduledRateCode";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhDetailedRateCodeInformation.class);
}
/**
* Cancel a scheduled rate code update
*
* REST: POST /telephony/{billingAccount}/rsva/{serviceName}/cancelScheduledRateCode
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_rsva_serviceName_cancelScheduledRateCode_POST(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/rsva/{serviceName}/cancelScheduledRateCode";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "POST", sb.toString(), null);
}
/**
* Compatible rate codes related to this value added service
*
* REST: GET /telephony/{billingAccount}/rsva/{serviceName}/allowedRateCodes
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_rsva_serviceName_allowedRateCodes_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/rsva/{serviceName}/allowedRateCodes";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t14);
}
private static TypeReference> t14 = new TypeReference>() {};
/**
* Current rate code related to this sva
*
* REST: GET /telephony/{billingAccount}/rsva/{serviceName}/currentRateCode
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhDetailedRateCodeInformation billingAccount_rsva_serviceName_currentRateCode_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/rsva/{serviceName}/currentRateCode";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhDetailedRateCodeInformation.class);
}
/**
* Schedule a new rate code for this sva
*
* REST: POST /telephony/{billingAccount}/rsva/{serviceName}/scheduleRateCode
* @param rateCode [required] The specified rate code
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhDetailedRateCodeInformation billingAccount_rsva_serviceName_scheduleRateCode_POST(String billingAccount, String serviceName, String rateCode) throws IOException {
String qPath = "/telephony/{billingAccount}/rsva/{serviceName}/scheduleRateCode";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "rateCode", rateCode);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhDetailedRateCodeInformation.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/rsva/{serviceName}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhRsva billingAccount_rsva_serviceName_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/rsva/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhRsva.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/rsva/{serviceName}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_rsva_serviceName_PUT(String billingAccount, String serviceName, OvhRsva body) throws IOException {
String qPath = "/telephony/{billingAccount}/rsva/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Service concerned by the french RSVA reform
*
* REST: GET /telephony/{billingAccount}/rsva
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_rsva_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/rsva";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* List phones with available slots where this line can be attached
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/listAssociablePhones
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_listAssociablePhones_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/listAssociablePhones";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t15);
}
private static TypeReference> t15 = new TypeReference>() {};
/**
* The recordings of your line outgoing calls
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/records
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_records_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/records";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/records/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhOvhPabxRecord billingAccount_line_serviceName_records_id_GET(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/records/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxRecord.class);
}
/**
* Delete the given record
*
* REST: DELETE /telephony/{billingAccount}/line/{serviceName}/records/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public void billingAccount_line_serviceName_records_id_DELETE(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/records/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Dissociate a device from the current line with the device mac address
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/dissociateDevice
* @param ipAddress [required] The public phone IP address allowed to get phone's configuration
* @param macAddress [required] The mac address of the device you want to dissociate from the line (format: AABBCCDDEEFF)
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_dissociateDevice_POST(String billingAccount, String serviceName, String ipAddress, String macAddress) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/dissociateDevice";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "ipAddress", ipAddress);
addBody(o, "macAddress", macAddress);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/tones
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhTones billingAccount_line_serviceName_tones_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/tones";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhTones.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/line/{serviceName}/tones
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_tones_PUT(String billingAccount, String serviceName, OvhTones body) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/tones";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Upload new tone file
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/tones/toneUpload
* @param url [required] URL of the file you want to import (instead of /me/document ID)
* @param type [required]
* @param documentId [required] ID of the /me/document file you want to import
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhTask billingAccount_line_serviceName_tones_toneUpload_POST(String billingAccount, String serviceName, String documentId, OvhTonesTypeEnum type, String url) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/tones/toneUpload";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "documentId", documentId);
addBody(o, "type", type);
addBody(o, "url", url);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* The current calls of your line
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/calls
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_calls_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/calls";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Transfer an answered call
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/calls/{id}/transfer
* @param number [required] Phone number to whom the communication will be transfered
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_line_serviceName_calls_id_transfer_POST(String billingAccount, String serviceName, Long id, String number) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/calls/{id}/transfer";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
HashMapo = new HashMap();
addBody(o, "number", number);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Eavesdrop on a call
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/calls/{id}/eavesdrop
* @param number [required] Phone number that will be called and bridged in the communication
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_line_serviceName_calls_id_eavesdrop_POST(String billingAccount, String serviceName, Long id, String number) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/calls/{id}/eavesdrop";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
HashMapo = new HashMap();
addBody(o, "number", number);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/calls/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhOvhPabxHuntingQueueLiveCalls billingAccount_line_serviceName_calls_id_GET(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/calls/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOvhPabxHuntingQueueLiveCalls.class);
}
/**
* Whisper on a call
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/calls/{id}/whisper
* @param number [required] Phone number that will be called and bridged in the communication
* @param whisperingMode [required] Whispering mode
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_line_serviceName_calls_id_whisper_POST(String billingAccount, String serviceName, Long id, String number, OvhOvhPabxWhisperingModeEnum whisperingMode) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/calls/{id}/whisper";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
HashMapo = new HashMap();
addBody(o, "number", number);
addBody(o, "whisperingMode", whisperingMode);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Hangup a call
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/calls/{id}/hangup
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_line_serviceName_calls_id_hangup_POST(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/calls/{id}/hangup";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhTask.class);
}
/**
* Toogle hold on call
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/calls/{id}/hold
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_line_serviceName_calls_id_hold_POST(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/calls/{id}/hold";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhTask.class);
}
/**
* Intercept a non answered call
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/calls/{id}/intercept
* @param number [required] Phone number that will be called and that will intercept the communication
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhTask billingAccount_line_serviceName_calls_id_intercept_POST(String billingAccount, String serviceName, Long id, String number) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/calls/{id}/intercept";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
HashMapo = new HashMap();
addBody(o, "number", number);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Unblock the line. It will remove any incoming and outboing block made earlier
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/unblock
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_unblock_POST(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/unblock";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "POST", sb.toString(), null);
}
/**
* The traffic extracts (SIP only) of your line
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/trafficExtracts
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_trafficExtracts_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/trafficExtracts";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Launch a traffic extract on your line
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/trafficExtracts
* @param dateStart [required] The start date of the traffic extract
* @param dateEnd [required] The end date of the traffic extract
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhTrafficExtract billingAccount_line_serviceName_trafficExtracts_POST(String billingAccount, String serviceName, Date dateEnd, Date dateStart) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/trafficExtracts";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "dateEnd", dateEnd);
addBody(o, "dateStart", dateStart);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTrafficExtract.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/trafficExtracts/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhTrafficExtract billingAccount_line_serviceName_trafficExtracts_id_GET(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/trafficExtracts/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhTrafficExtract.class);
}
/**
* Delete a traffic extract
*
* REST: DELETE /telephony/{billingAccount}/line/{serviceName}/trafficExtracts/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public void billingAccount_line_serviceName_trafficExtracts_id_DELETE(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/trafficExtracts/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Details about simultaneous channels of this line.
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/simultaneousChannelsDetails
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhSimultaneousChannelsDetails billingAccount_line_serviceName_simultaneousChannelsDetails_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/simultaneousChannelsDetails";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhSimultaneousChannelsDetails.class);
}
/**
* Allow to activate new phone, in case of phone switch
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/activateNewPhone
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_activateNewPhone_POST(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/activateNewPhone";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "POST", sb.toString(), null);
}
/**
* Check if there is a new phone to activate and if it's possible, in case of phone switch
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/activateNewPhone
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_activateNewPhone_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/activateNewPhone";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "GET", sb.toString(), null);
}
/**
* Cancel a scheduled conversion to number
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/cancelConvertToNumber
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_cancelConvertToNumber_POST(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/cancelConvertToNumber";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "POST", sb.toString(), null);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/options
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhLineOptions billingAccount_line_serviceName_options_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/options";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhLineOptions.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/line/{serviceName}/options
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_options_PUT(String billingAccount, String serviceName, OvhLineOptions body) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/options";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* List of codecs combinaisons available for this line
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/options/availableCodecs
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_options_availableCodecs_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/options/availableCodecs";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Get the default codecs for this line if none are set
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/options/defaultCodecs
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public String billingAccount_line_serviceName_options_defaultCodecs_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/options/defaultCodecs";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, String.class);
}
/**
* Clean the antihack or add it on active filter screen list
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/antihack
* @param restricted [required] Number or short number restricted
* @param action [required] Type of action
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_antihack_POST(String billingAccount, String serviceName, OvhAntihackActionEnum action, String restricted) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/antihack";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "action", action);
addBody(o, "restricted", restricted);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Current list of numbers or short code numbers restricted by an auto antihack
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/antihack
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_antihack_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/antihack";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Listing of domains Sip availables
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/availableSipDomains
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_availableSipDomains_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/availableSipDomains";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Block the line. By default it will block incoming and outgoing calls (except for emergency numbers)
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/block
* @param mode [required] The block mode : outgoing, incoming, both (default: both)
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_block_POST(String billingAccount, String serviceName, OvhLineBlockingMode mode) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/block";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "mode", mode);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Listing of last ips registry
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/ips
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_ips_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/ips";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t16);
}
private static TypeReference> t16 = new TypeReference>() {};
/**
* User which can use click 2 call on the line
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/click2CallUser
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_click2CallUser_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/click2CallUser";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Create a new user for click 2 call
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/click2CallUser
* @param password [required] The user password
* @param login [required] Name of the contact
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public Long billingAccount_line_serviceName_click2CallUser_POST(String billingAccount, String serviceName, String login, String password) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/click2CallUser";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "login", login);
addBody(o, "password", password);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, Long.class);
}
/**
* Make a phone call from the current line
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/click2CallUser/{id}/click2Call
* @param calledNumber [required]
* @param callingNumber [required]
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public void billingAccount_line_serviceName_click2CallUser_id_click2Call_POST(String billingAccount, String serviceName, Long id, String calledNumber, String callingNumber) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/click2CallUser/{id}/click2Call";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
HashMapo = new HashMap();
addBody(o, "calledNumber", calledNumber);
addBody(o, "callingNumber", callingNumber);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/click2CallUser/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhClick2CallUser billingAccount_line_serviceName_click2CallUser_id_GET(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/click2CallUser/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhClick2CallUser.class);
}
/**
* Delete a click 2 call user
*
* REST: DELETE /telephony/{billingAccount}/line/{serviceName}/click2CallUser/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public void billingAccount_line_serviceName_click2CallUser_id_DELETE(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/click2CallUser/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Change the password of the click2call user
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/click2CallUser/{id}/changePassword
* @param password [required] The password
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public void billingAccount_line_serviceName_click2CallUser_id_changePassword_POST(String billingAccount, String serviceName, Long id, String password) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/click2CallUser/{id}/changePassword";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
HashMapo = new HashMap();
addBody(o, "password", password);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Make a phone call from the current line
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/click2Call
* @param calledNumber [required]
* @param intercom [required] Activate the calling number in intercom mode automatically (pick up and speaker automatic activation).
* @param callingNumber [required]
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_click2Call_POST(String billingAccount, String serviceName, String calledNumber, String callingNumber, Boolean intercom) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/click2Call";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "calledNumber", calledNumber);
addBody(o, "callingNumber", callingNumber);
addBody(o, "intercom", intercom);
exec(qPath, "POST", sb.toString(), o);
}
/**
* List of available exchange merchandise brand
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/phone/merchandiseAvailable
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_phone_merchandiseAvailable_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/merchandiseAvailable";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t17);
}
private static TypeReference> t17 = new TypeReference>() {};
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/phone
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhPhone billingAccount_line_serviceName_phone_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhPhone.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/line/{serviceName}/phone
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_phone_PUT(String billingAccount, String serviceName, OvhPhone body) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/phone/functionKey/{keyNum}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param keyNum [required] The number of the function key
*/
public OvhFunctionKey billingAccount_line_serviceName_phone_functionKey_keyNum_GET(String billingAccount, String serviceName, Long keyNum) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/functionKey/{keyNum}";
StringBuilder sb = path(qPath, billingAccount, serviceName, keyNum);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhFunctionKey.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/line/{serviceName}/phone/functionKey/{keyNum}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param keyNum [required] The number of the function key
*/
public void billingAccount_line_serviceName_phone_functionKey_keyNum_PUT(String billingAccount, String serviceName, Long keyNum, OvhFunctionKey body) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/functionKey/{keyNum}";
StringBuilder sb = path(qPath, billingAccount, serviceName, keyNum);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* List the available functions for the key
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/phone/functionKey/{keyNum}/availableFunction
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param keyNum [required] The number of the function key
*/
public ArrayList billingAccount_line_serviceName_phone_functionKey_keyNum_availableFunction_GET(String billingAccount, String serviceName, Long keyNum) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/functionKey/{keyNum}/availableFunction";
StringBuilder sb = path(qPath, billingAccount, serviceName, keyNum);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Plug & Phone function keys
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/phone/functionKey
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_phone_functionKey_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/functionKey";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Reinitialize the phone configuration
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/phone/resetConfig
* @param ip [required] The public ip phone allowed for reset
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhResetPhoneInfo billingAccount_line_serviceName_phone_resetConfig_POST(String billingAccount, String serviceName, String ip) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/resetConfig";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "ip", ip);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhResetPhoneInfo.class);
}
/**
* Create a task to refresh the screen of the MGCP phone
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/phone/refreshScreen
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhTask billingAccount_line_serviceName_phone_refreshScreen_POST(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/refreshScreen";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhTask.class);
}
/**
* Create a task to reboot the phone
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/phone/reboot
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhTask billingAccount_line_serviceName_phone_reboot_POST(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/reboot";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhTask.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}/phonebookContact/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param bookKey [required] Identifier of the phonebook
* @param id [required] Contact identifier
*/
public OvhPhonebookContact billingAccount_line_serviceName_phone_phonebook_bookKey_phonebookContact_id_GET(String billingAccount, String serviceName, String bookKey, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}/phonebookContact/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, bookKey, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhPhonebookContact.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}/phonebookContact/{id}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param bookKey [required] Identifier of the phonebook
* @param id [required] Contact identifier
*/
public void billingAccount_line_serviceName_phone_phonebook_bookKey_phonebookContact_id_PUT(String billingAccount, String serviceName, String bookKey, Long id, OvhPhonebookContact body) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}/phonebookContact/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, bookKey, id);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Delete a phonebook contact
*
* REST: DELETE /telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}/phonebookContact/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param bookKey [required] Identifier of the phonebook
* @param id [required] Contact identifier
*/
public void billingAccount_line_serviceName_phone_phonebook_bookKey_phonebookContact_id_DELETE(String billingAccount, String serviceName, String bookKey, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}/phonebookContact/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, bookKey, id);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Phonebook contacts
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}/phonebookContact
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param bookKey [required] Identifier of the phonebook
*/
public ArrayList billingAccount_line_serviceName_phone_phonebook_bookKey_phonebookContact_GET(String billingAccount, String serviceName, String bookKey) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}/phonebookContact";
StringBuilder sb = path(qPath, billingAccount, serviceName, bookKey);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Create a phonebook contact. Return identifier of the phonebook contact.
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}/phonebookContact
* @param workMobile [required] Mobile phone office number of the contact
* @param workPhone [required] Landline phone office number of the contact
* @param surname [required] Contact surname
* @param group [required] Group name of the phonebook
* @param homePhone [required] Home landline phone number of the contact
* @param homeMobile [required] Home mobile phone number of the contact
* @param name [required] Name of the contact
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param bookKey [required] Identifier of the phonebook
*/
public Long billingAccount_line_serviceName_phone_phonebook_bookKey_phonebookContact_POST(String billingAccount, String serviceName, String bookKey, String group, String homeMobile, String homePhone, String name, String surname, String workMobile, String workPhone) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}/phonebookContact";
StringBuilder sb = path(qPath, billingAccount, serviceName, bookKey);
HashMapo = new HashMap();
addBody(o, "group", group);
addBody(o, "homeMobile", homeMobile);
addBody(o, "homePhone", homePhone);
addBody(o, "name", name);
addBody(o, "surname", surname);
addBody(o, "workMobile", workMobile);
addBody(o, "workPhone", workPhone);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, Long.class);
}
/**
* Export the phonebook's contacts
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}/export
* @param format [required] Format of the file
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param bookKey [required] Identifier of the phonebook
*/
public OvhPcsFile billingAccount_line_serviceName_phone_phonebook_bookKey_export_GET(String billingAccount, String serviceName, String bookKey, OvhContactsExportFormatsEnum format) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}/export";
StringBuilder sb = path(qPath, billingAccount, serviceName, bookKey);
query(sb, "format", format);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhPcsFile.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param bookKey [required] Identifier of the phonebook
*/
public OvhPhonebook billingAccount_line_serviceName_phone_phonebook_bookKey_GET(String billingAccount, String serviceName, String bookKey) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}";
StringBuilder sb = path(qPath, billingAccount, serviceName, bookKey);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhPhonebook.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param bookKey [required] Identifier of the phonebook
*/
public void billingAccount_line_serviceName_phone_phonebook_bookKey_PUT(String billingAccount, String serviceName, String bookKey, OvhPhonebook body) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}";
StringBuilder sb = path(qPath, billingAccount, serviceName, bookKey);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Delete a phonebook
*
* REST: DELETE /telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param bookKey [required] Identifier of the phonebook
*/
public void billingAccount_line_serviceName_phone_phonebook_bookKey_DELETE(String billingAccount, String serviceName, String bookKey) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}";
StringBuilder sb = path(qPath, billingAccount, serviceName, bookKey);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Import a contacts file. Supported formats are Excel (.xls and .xlsx) and CSV
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}/import
* @param documentId [required] ID of the /me/document file you want to import
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param bookKey [required] Identifier of the phonebook
*/
public OvhTask billingAccount_line_serviceName_phone_phonebook_bookKey_import_POST(String billingAccount, String serviceName, String bookKey, String documentId) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/phonebook/{bookKey}/import";
StringBuilder sb = path(qPath, billingAccount, serviceName, bookKey);
HashMapo = new HashMap();
addBody(o, "documentId", documentId);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Return phonebooks associated
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/phone/phonebook
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_phone_phonebook_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/phonebook";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Add a phonebook. Return the bookKey.
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/phone/phonebook
* @param name [required] Name of the wanted phonebook
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public String billingAccount_line_serviceName_phone_phonebook_POST(String billingAccount, String serviceName, String name) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/phonebook";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "name", name);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, String.class);
}
/**
* Does the phone manages phonebooks?
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/phone/supportsPhonebook
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public Boolean billingAccount_line_serviceName_phone_supportsPhonebook_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/supportsPhonebook";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, Boolean.class);
}
/**
* Returns the administration user and password of the phone if you are a VIP
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/phone/adminCredentials
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhPhoneCredentials billingAccount_line_serviceName_phone_adminCredentials_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/adminCredentials";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhPhoneCredentials.class);
}
/**
* Edit configuration of the phone remotely by provisioning
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/phone/changePhoneConfiguration
* @param autoReboot [required] Automatically reboot phone when applying the configuration
* @param newConfigurations [required] Name value pairs of provisioning options
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_phone_changePhoneConfiguration_POST(String billingAccount, String serviceName, Boolean autoReboot, OvhSafeKeyValue[] newConfigurations) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/changePhoneConfiguration";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "autoReboot", autoReboot);
addBody(o, "newConfigurations", newConfigurations);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Return Merchandise Authorisation associated
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/phone/rma
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_phone_rma_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/rma";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Create a specific rma
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/phone/rma
* @param newMerchandise [required] New merchandise brand in case of exchange
* @param type [required] Typology process of merchandise return
* @param mondialRelayId [required] Use /supply/mondialRelay entry point to specify a relay point and ignore shipping contact address information entry.
* @param shippingContactId [required] Shipping contact information id from /me entry point
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhRmaReturn billingAccount_line_serviceName_phone_rma_POST(String billingAccount, String serviceName, String mondialRelayId, String newMerchandise, Long shippingContactId, OvhRmaPublicTypeEnum type) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/rma";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "mondialRelayId", mondialRelayId);
addBody(o, "newMerchandise", newMerchandise);
addBody(o, "shippingContactId", shippingContactId);
addBody(o, "type", type);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhRmaReturn.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/phone/rma/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Return merchandise authorisation identifier
*/
public OvhRma billingAccount_line_serviceName_phone_rma_id_GET(String billingAccount, String serviceName, String id) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/rma/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhRma.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/line/{serviceName}/phone/rma/{id}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Return merchandise authorisation identifier
*/
public void billingAccount_line_serviceName_phone_rma_id_PUT(String billingAccount, String serviceName, String id, OvhRma body) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/rma/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Cancel the rma
*
* REST: DELETE /telephony/{billingAccount}/line/{serviceName}/phone/rma/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Return merchandise authorisation identifier
*/
public void billingAccount_line_serviceName_phone_rma_id_DELETE(String billingAccount, String serviceName, String id) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone/rma/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Return public offer property
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/offer
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhLineOffer billingAccount_line_serviceName_offer_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/offer";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhLineOffer.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhLine billingAccount_line_serviceName_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhLine.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/line/{serviceName}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_PUT(String billingAccount, String serviceName, OvhLine body) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Change the SIP account password. It must be more than 7 and less than 21 alpha and numerical characters.
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/changePassword
* @param password [required] The password
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_changePassword_POST(String billingAccount, String serviceName, String password) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/changePassword";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "password", password);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Get statistics of the current line
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/statistics
* @param timeframe [required]
* @param type [required]
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhUnitAndValues billingAccount_line_serviceName_statistics_GET(String billingAccount, String serviceName, OvhStatisticsTimeframeEnum timeframe, OvhLineStatisticsTypeEnum type) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/statistics";
StringBuilder sb = path(qPath, billingAccount, serviceName);
query(sb, "timeframe", timeframe);
query(sb, "type", type);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t18);
}
private static TypeReference> t18 = new TypeReference>() {};
/**
* List the informations about the last registrations (i.e. IP, port, User-Agent...)
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/lastRegistrations
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_lastRegistrations_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/lastRegistrations";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t19);
}
private static TypeReference> t19 = new TypeReference>() {};
/**
* Associate a device to the current line with the device mac address
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/associateDevice
* @param ipAddress [required] The public phone IP address allowed to get phone's configuration
* @param macAddress [required] The mac address of the device you want to associate to the line (format: AABBCCDDEEFF)
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_associateDevice_POST(String billingAccount, String serviceName, String ipAddress, String macAddress) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/associateDevice";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "ipAddress", ipAddress);
addBody(o, "macAddress", macAddress);
exec(qPath, "POST", sb.toString(), o);
}
/**
* List the phones with Sip slot available
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/phoneCanBeAssociable
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @deprecated
*/
public ArrayList billingAccount_line_serviceName_phoneCanBeAssociable_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phoneCanBeAssociable";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t3);
}
/**
* Get the maximum available simultaneous lines for this line
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/maximumAvailableSimultaneousLines
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public Long billingAccount_line_serviceName_maximumAvailableSimultaneousLines_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/maximumAvailableSimultaneousLines";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, Long.class);
}
/**
* Ability to manage SIP password on this service
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/canChangePassword
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @deprecated
*/
public Boolean billingAccount_line_serviceName_canChangePassword_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/canChangePassword";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, Boolean.class);
}
/**
* Automatic Calls made by Calls Generator on this line
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/automaticCall
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_automaticCall_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/automaticCall";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Make an automatic phone call. Return generated call identifier
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/automaticCall
* @param ttsTextDialplan [required] Text to read if TTS on dialplan selected
* @param timeout [required] Timeout (in seconds). Default is 20 seconds
* @param isAnonymous [required] For anonymous call
* @param callingNumber [required] Optional, number where the call come from
* @param bridgeNumberDialplan [required] Number to call if transfer in dialplan selected
* @param playbackAudioFileDialplan [required] Name of the audioFile (if needed) with extention. This audio file must have been upload previously
* @param calledNumber [required] Number to call
* @param dialplan [required] Dialplan used for the call
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public String billingAccount_line_serviceName_automaticCall_POST(String billingAccount, String serviceName, String bridgeNumberDialplan, String calledNumber, String callingNumber, OvhCallsGeneratorDialplanEnum dialplan, Boolean isAnonymous, String playbackAudioFileDialplan, Long timeout, String ttsTextDialplan) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/automaticCall";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "bridgeNumberDialplan", bridgeNumberDialplan);
addBody(o, "calledNumber", calledNumber);
addBody(o, "callingNumber", callingNumber);
addBody(o, "dialplan", dialplan);
addBody(o, "isAnonymous", isAnonymous);
addBody(o, "playbackAudioFileDialplan", playbackAudioFileDialplan);
addBody(o, "timeout", timeout);
addBody(o, "ttsTextDialplan", ttsTextDialplan);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, String.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/automaticCall/{identifier}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param identifier [required] Generated call identifier
*/
public OvhCallsGenerated billingAccount_line_serviceName_automaticCall_identifier_GET(String billingAccount, String serviceName, String identifier) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/automaticCall/{identifier}";
StringBuilder sb = path(qPath, billingAccount, serviceName, identifier);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhCallsGenerated.class);
}
/**
* Schedule a conversion to number
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/convertToNumber
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhOfferTask billingAccount_line_serviceName_convertToNumber_POST(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/convertToNumber";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhOfferTask.class);
}
/**
* Abbreviated numbers for the line
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/abbreviatedNumber
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_line_serviceName_abbreviatedNumber_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/abbreviatedNumber";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Create a new abbreviated number for the line
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/abbreviatedNumber
* @param abbreviatedNumber [required] The abbreviated number which must start with "2" and must have a length of 3 or 4 digits
* @param destinationNumber [required] The destination of the abbreviated number
* @param name [required]
* @param surname [required]
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhAbbreviatedNumber billingAccount_line_serviceName_abbreviatedNumber_POST(String billingAccount, String serviceName, Long abbreviatedNumber, String destinationNumber, String name, String surname) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/abbreviatedNumber";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "abbreviatedNumber", abbreviatedNumber);
addBody(o, "destinationNumber", destinationNumber);
addBody(o, "name", name);
addBody(o, "surname", surname);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhAbbreviatedNumber.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/line/{serviceName}/abbreviatedNumber/{abbreviatedNumber}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param abbreviatedNumber [required] The abbreviated number which must start with "2" and must have a length of 3 or 4 digits
*/
public OvhAbbreviatedNumber billingAccount_line_serviceName_abbreviatedNumber_abbreviatedNumber_GET(String billingAccount, String serviceName, Long abbreviatedNumber) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/abbreviatedNumber/{abbreviatedNumber}";
StringBuilder sb = path(qPath, billingAccount, serviceName, abbreviatedNumber);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhAbbreviatedNumber.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/line/{serviceName}/abbreviatedNumber/{abbreviatedNumber}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param abbreviatedNumber [required] The abbreviated number which must start with "2" and must have a length of 3 or 4 digits
*/
public void billingAccount_line_serviceName_abbreviatedNumber_abbreviatedNumber_PUT(String billingAccount, String serviceName, Long abbreviatedNumber, OvhAbbreviatedNumber body) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/abbreviatedNumber/{abbreviatedNumber}";
StringBuilder sb = path(qPath, billingAccount, serviceName, abbreviatedNumber);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Delete the given abbreviated number
*
* REST: DELETE /telephony/{billingAccount}/line/{serviceName}/abbreviatedNumber/{abbreviatedNumber}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param abbreviatedNumber [required] The abbreviated number which must start with "2" and must have a length of 3 or 4 digits
*/
public void billingAccount_line_serviceName_abbreviatedNumber_abbreviatedNumber_DELETE(String billingAccount, String serviceName, Long abbreviatedNumber) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/abbreviatedNumber/{abbreviatedNumber}";
StringBuilder sb = path(qPath, billingAccount, serviceName, abbreviatedNumber);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Remove extra simultaneous lines
*
* REST: POST /telephony/{billingAccount}/line/{serviceName}/removeSimultaneousLines
* @param quantityRemove [required] The quantity of extra simultaneous lines to remove
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_line_serviceName_removeSimultaneousLines_POST(String billingAccount, String serviceName, Long quantityRemove) throws IOException {
String qPath = "/telephony/{billingAccount}/line/{serviceName}/removeSimultaneousLines";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "quantityRemove", quantityRemove);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Lines associated with this billing account
*
* REST: GET /telephony/{billingAccount}/line
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_line_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/line";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* DDIs (direct dial-in) associated with this billing account
*
* REST: GET /telephony/{billingAccount}/ddi
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_ddi_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/ddi";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/ddi/{serviceName}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhDdi billingAccount_ddi_serviceName_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/ddi/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhDdi.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/ddi/{serviceName}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_ddi_serviceName_PUT(String billingAccount, String serviceName, OvhDdi body) throws IOException {
String qPath = "/telephony/{billingAccount}/ddi/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Change the destination of the DDI
*
* REST: POST /telephony/{billingAccount}/ddi/{serviceName}/changeDestination
* @param destination [required] The destination
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhTask billingAccount_ddi_serviceName_changeDestination_POST(String billingAccount, String serviceName, String destination) throws IOException {
String qPath = "/telephony/{billingAccount}/ddi/{serviceName}/changeDestination";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "destination", destination);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/offerTask/{taskId}
* @param billingAccount [required] The name of your billingAccount
* @param taskId [required]
*/
public OvhOfferTask billingAccount_offerTask_taskId_GET(String billingAccount, Long taskId) throws IOException {
String qPath = "/telephony/{billingAccount}/offerTask/{taskId}";
StringBuilder sb = path(qPath, billingAccount, taskId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhOfferTask.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/offerTask/{taskId}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param taskId [required]
*/
public void billingAccount_offerTask_taskId_PUT(String billingAccount, Long taskId, OvhOfferTask body) throws IOException {
String qPath = "/telephony/{billingAccount}/offerTask/{taskId}";
StringBuilder sb = path(qPath, billingAccount, taskId);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Operations on a telephony service's offer
*
* REST: GET /telephony/{billingAccount}/offerTask
* @param type [required] Filter the value of type property (=)
* @param status [required] Filter the value of status property (=)
* @param action [required] Filter the value of action property (=)
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_offerTask_GET(String billingAccount, OvhOfferTaskActionEnum action, OvhTaskStatusEnum status, OvhOfferTaskTypeEnum type) throws IOException {
String qPath = "/telephony/{billingAccount}/offerTask";
StringBuilder sb = path(qPath, billingAccount);
query(sb, "action", action);
query(sb, "status", status);
query(sb, "type", type);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Change the voicemail password. It must be 4 digit
*
* REST: POST /telephony/{billingAccount}/voicemail/{serviceName}/settings/changePassword
* @param password [required] The password
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_voicemail_serviceName_settings_changePassword_POST(String billingAccount, String serviceName, String password) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/settings/changePassword";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "password", password);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Get the status of the voicemail. Available only if the line has fax capabilities
*
* REST: GET /telephony/{billingAccount}/voicemail/{serviceName}/settings/routing
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhVoicefaxRoutingEnum billingAccount_voicemail_serviceName_settings_routing_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/settings/routing";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhVoicefaxRoutingEnum.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/voicemail/{serviceName}/settings
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhVoicemailProperties billingAccount_voicemail_serviceName_settings_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/settings";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhVoicemailProperties.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/voicemail/{serviceName}/settings
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_voicemail_serviceName_settings_PUT(String billingAccount, String serviceName, OvhVoicemailProperties body) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/settings";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Get number for internal and external voicemail
*
* REST: GET /telephony/{billingAccount}/voicemail/{serviceName}/settings/voicemailNumbers
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhVoicemailNumbers billingAccount_voicemail_serviceName_settings_voicemailNumbers_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/settings/voicemailNumbers";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhVoicemailNumbers.class);
}
/**
* Disable/Enable voicemail. Available only if the line has fax capabilities
*
* REST: POST /telephony/{billingAccount}/voicemail/{serviceName}/settings/changeRouting
* @param routing [required] Activate or Desactivate voicemail on the line
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_voicemail_serviceName_settings_changeRouting_POST(String billingAccount, String serviceName, OvhVoicefaxRoutingEnum routing) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/settings/changeRouting";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "routing", routing);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/voicemail/{serviceName}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhVoicemail billingAccount_voicemail_serviceName_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhVoicemail.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/voicemail/{serviceName}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_voicemail_serviceName_PUT(String billingAccount, String serviceName, OvhVoicemail body) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Change the voicemail on a new version to manager greetings, directories and extra settings.
*
* REST: POST /telephony/{billingAccount}/voicemail/{serviceName}/migrateOnNewVersion
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_voicemail_serviceName_migrateOnNewVersion_POST(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/migrateOnNewVersion";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "POST", sb.toString(), null);
}
/**
* Voicemail directory messages
*
* REST: GET /telephony/{billingAccount}/voicemail/{serviceName}/directories
* @param dir [required] Filter the value of dir property (=)
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_voicemail_serviceName_directories_GET(String billingAccount, String serviceName, OvhVoicemailMessageFolderDirectoryEnum dir) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/directories";
StringBuilder sb = path(qPath, billingAccount, serviceName);
query(sb, "dir", dir);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Move the message to another directory
*
* REST: POST /telephony/{billingAccount}/voicemail/{serviceName}/directories/{id}/move
* @param dir [required] Greeting voicemail directory
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public void billingAccount_voicemail_serviceName_directories_id_move_POST(String billingAccount, String serviceName, Long id, OvhVoicemailMessageFolderDirectoryEnum dir) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/directories/{id}/move";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
HashMapo = new HashMap();
addBody(o, "dir", dir);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Get a url to download the sound file
*
* REST: GET /telephony/{billingAccount}/voicemail/{serviceName}/directories/{id}/download
* @param format [required] File format wanted
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhPcsFile billingAccount_voicemail_serviceName_directories_id_download_GET(String billingAccount, String serviceName, Long id, OvhServiceVoicemailAudioFormatEnum format) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/directories/{id}/download";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
query(sb, "format", format);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhPcsFile.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/voicemail/{serviceName}/directories/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhVoicemailMessages billingAccount_voicemail_serviceName_directories_id_GET(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/directories/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhVoicemailMessages.class);
}
/**
* Delete the given voicemail message
*
* REST: DELETE /telephony/{billingAccount}/voicemail/{serviceName}/directories/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public void billingAccount_voicemail_serviceName_directories_id_DELETE(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/directories/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Voicemail greeting message properties
*
* REST: GET /telephony/{billingAccount}/voicemail/{serviceName}/greetings
* @param dir [required] Filter the value of dir property (=)
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_voicemail_serviceName_greetings_GET(String billingAccount, String serviceName, OvhVoicemailMessageFolderGreetingEnum dir) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/greetings";
StringBuilder sb = path(qPath, billingAccount, serviceName);
query(sb, "dir", dir);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Upload a new sound for a specific greeting. Return a task id.
*
* REST: POST /telephony/{billingAccount}/voicemail/{serviceName}/greetings
* @param dir [required] Greeting voicemail directory
* @param documentId [required] Get the /me/document uuid generated
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public Long billingAccount_voicemail_serviceName_greetings_POST(String billingAccount, String serviceName, OvhVoicemailMessageFolderGreetingEnum dir, String documentId) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/greetings";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "dir", dir);
addBody(o, "documentId", documentId);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, Long.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/voicemail/{serviceName}/greetings/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhVoicemailGreetings billingAccount_voicemail_serviceName_greetings_id_GET(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/greetings/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhVoicemailGreetings.class);
}
/**
* Delete the customized greeting
*
* REST: DELETE /telephony/{billingAccount}/voicemail/{serviceName}/greetings/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public void billingAccount_voicemail_serviceName_greetings_id_DELETE(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/greetings/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Move the message to another directory
*
* REST: POST /telephony/{billingAccount}/voicemail/{serviceName}/greetings/{id}/move
* @param dir [required] Greeting voicemail directory
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public void billingAccount_voicemail_serviceName_greetings_id_move_POST(String billingAccount, String serviceName, Long id, OvhVoicemailMessageFolderGreetingEnum dir) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/greetings/{id}/move";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
HashMapo = new HashMap();
addBody(o, "dir", dir);
exec(qPath, "POST", sb.toString(), o);
}
/**
* Get a url to download the sound file
*
* REST: GET /telephony/{billingAccount}/voicemail/{serviceName}/greetings/{id}/download
* @param format [required] File format wanted
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhPcsFile billingAccount_voicemail_serviceName_greetings_id_download_GET(String billingAccount, String serviceName, Long id, OvhServiceVoicemailAudioFormatEnum format) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/greetings/{id}/download";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
query(sb, "format", format);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhPcsFile.class);
}
/**
* Voicemails associated with this billing account
*
* REST: GET /telephony/{billingAccount}/voicemail
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_voicemail_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/outplanNotification/{id}
* @param billingAccount [required] The name of your billingAccount
* @param id [required] Id of the object
*/
public OvhConsumptionThreshold billingAccount_outplanNotification_id_GET(String billingAccount, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/outplanNotification/{id}";
StringBuilder sb = path(qPath, billingAccount, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhConsumptionThreshold.class);
}
/**
* Delete an outplan notification
*
* REST: DELETE /telephony/{billingAccount}/outplanNotification/{id}
* @param billingAccount [required] The name of your billingAccount
* @param id [required] Id of the object
*/
public void billingAccount_outplanNotification_id_DELETE(String billingAccount, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/outplanNotification/{id}";
StringBuilder sb = path(qPath, billingAccount, id);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Outplan notifications configured for this billing account
*
* REST: GET /telephony/{billingAccount}/outplanNotification
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_outplanNotification_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/outplanNotification";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Add an outplan notification on the billing account
*
* REST: POST /telephony/{billingAccount}/outplanNotification
* @param notifyEmail [required] Override the nichandle email for this notification
* @param percentage [required] The notification percentage of maximum outplan
* @param block [required] The blocking type of the associate lines
* @param billingAccount [required] The name of your billingAccount
*/
public OvhConsumptionThreshold billingAccount_outplanNotification_POST(String billingAccount, OvhOutplanNotificationBlockEnum block, String notifyEmail, Double percentage) throws IOException {
String qPath = "/telephony/{billingAccount}/outplanNotification";
StringBuilder sb = path(qPath, billingAccount);
HashMapo = new HashMap();
addBody(o, "block", block);
addBody(o, "notifyEmail", notifyEmail);
addBody(o, "percentage", percentage);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhConsumptionThreshold.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/serviceInfos
* @param billingAccount [required] The name of your billingAccount
*/
public OvhService billingAccount_serviceInfos_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/serviceInfos";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhService.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/serviceInfos
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
*/
public void billingAccount_serviceInfos_PUT(String billingAccount, OvhService body) throws IOException {
String qPath = "/telephony/{billingAccount}/serviceInfos";
StringBuilder sb = path(qPath, billingAccount);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Import a contacts file. Supported formats are Excel (.xls and .xlsx) and CSV
*
* REST: POST /telephony/{billingAccount}/phonebook/{bookKey}/import
* @param documentId [required] ID of the /me/document file you want to import
* @param billingAccount [required] The name of your billingAccount
* @param bookKey [required] Identifier of the phonebook
*/
public OvhTask billingAccount_phonebook_bookKey_import_POST(String billingAccount, String bookKey, String documentId) throws IOException {
String qPath = "/telephony/{billingAccount}/phonebook/{bookKey}/import";
StringBuilder sb = path(qPath, billingAccount, bookKey);
HashMapo = new HashMap();
addBody(o, "documentId", documentId);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/phonebook/{bookKey}
* @param billingAccount [required] The name of your billingAccount
* @param bookKey [required] Identifier of the phonebook
*/
public OvhPhonebookMaster billingAccount_phonebook_bookKey_GET(String billingAccount, String bookKey) throws IOException {
String qPath = "/telephony/{billingAccount}/phonebook/{bookKey}";
StringBuilder sb = path(qPath, billingAccount, bookKey);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhPhonebookMaster.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/phonebook/{bookKey}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param bookKey [required] Identifier of the phonebook
*/
public void billingAccount_phonebook_bookKey_PUT(String billingAccount, String bookKey, OvhPhonebookMaster body) throws IOException {
String qPath = "/telephony/{billingAccount}/phonebook/{bookKey}";
StringBuilder sb = path(qPath, billingAccount, bookKey);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Delete a phonebook
*
* REST: DELETE /telephony/{billingAccount}/phonebook/{bookKey}
* @param billingAccount [required] The name of your billingAccount
* @param bookKey [required] Identifier of the phonebook
*/
public void billingAccount_phonebook_bookKey_DELETE(String billingAccount, String bookKey) throws IOException {
String qPath = "/telephony/{billingAccount}/phonebook/{bookKey}";
StringBuilder sb = path(qPath, billingAccount, bookKey);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Export the phonebook's contacts
*
* REST: GET /telephony/{billingAccount}/phonebook/{bookKey}/export
* @param format [required] Format of the file
* @param billingAccount [required] The name of your billingAccount
* @param bookKey [required] Identifier of the phonebook
*/
public OvhPcsFile billingAccount_phonebook_bookKey_export_GET(String billingAccount, String bookKey, OvhContactsExportFormatsEnum format) throws IOException {
String qPath = "/telephony/{billingAccount}/phonebook/{bookKey}/export";
StringBuilder sb = path(qPath, billingAccount, bookKey);
query(sb, "format", format);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhPcsFile.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/phonebook/{bookKey}/phonebookContact/{id}
* @param billingAccount [required] The name of your billingAccount
* @param bookKey [required] Identifier of the phonebook
* @param id [required] Contact identifier
*/
public OvhPhonebookContact billingAccount_phonebook_bookKey_phonebookContact_id_GET(String billingAccount, String bookKey, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/phonebook/{bookKey}/phonebookContact/{id}";
StringBuilder sb = path(qPath, billingAccount, bookKey, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhPhonebookContact.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/phonebook/{bookKey}/phonebookContact/{id}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param bookKey [required] Identifier of the phonebook
* @param id [required] Contact identifier
*/
public void billingAccount_phonebook_bookKey_phonebookContact_id_PUT(String billingAccount, String bookKey, Long id, OvhPhonebookContact body) throws IOException {
String qPath = "/telephony/{billingAccount}/phonebook/{bookKey}/phonebookContact/{id}";
StringBuilder sb = path(qPath, billingAccount, bookKey, id);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Delete a phonebook contact
*
* REST: DELETE /telephony/{billingAccount}/phonebook/{bookKey}/phonebookContact/{id}
* @param billingAccount [required] The name of your billingAccount
* @param bookKey [required] Identifier of the phonebook
* @param id [required] Contact identifier
*/
public void billingAccount_phonebook_bookKey_phonebookContact_id_DELETE(String billingAccount, String bookKey, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/phonebook/{bookKey}/phonebookContact/{id}";
StringBuilder sb = path(qPath, billingAccount, bookKey, id);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* Phonebook contacts
*
* REST: GET /telephony/{billingAccount}/phonebook/{bookKey}/phonebookContact
* @param billingAccount [required] The name of your billingAccount
* @param bookKey [required] Identifier of the phonebook
*/
public ArrayList billingAccount_phonebook_bookKey_phonebookContact_GET(String billingAccount, String bookKey) throws IOException {
String qPath = "/telephony/{billingAccount}/phonebook/{bookKey}/phonebookContact";
StringBuilder sb = path(qPath, billingAccount, bookKey);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Create a phonebook contact. Return identifier of the phonebook contact.
*
* REST: POST /telephony/{billingAccount}/phonebook/{bookKey}/phonebookContact
* @param workMobile [required] Mobile phone office number of the contact
* @param workPhone [required] Landline phone office number of the contact
* @param surname [required] Contact surname
* @param group [required] Group name of the phonebook
* @param homePhone [required] Home landline phone number of the contact
* @param homeMobile [required] Home mobile phone number of the contact
* @param name [required] Name of the contact
* @param billingAccount [required] The name of your billingAccount
* @param bookKey [required] Identifier of the phonebook
*/
public Long billingAccount_phonebook_bookKey_phonebookContact_POST(String billingAccount, String bookKey, String group, String homeMobile, String homePhone, String name, String surname, String workMobile, String workPhone) throws IOException {
String qPath = "/telephony/{billingAccount}/phonebook/{bookKey}/phonebookContact";
StringBuilder sb = path(qPath, billingAccount, bookKey);
HashMapo = new HashMap();
addBody(o, "group", group);
addBody(o, "homeMobile", homeMobile);
addBody(o, "homePhone", homePhone);
addBody(o, "name", name);
addBody(o, "surname", surname);
addBody(o, "workMobile", workMobile);
addBody(o, "workPhone", workPhone);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, Long.class);
}
/**
* Return phonebooks associated to this group
*
* REST: GET /telephony/{billingAccount}/phonebook
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_phonebook_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/phonebook";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Add a phonebook on group. Return the bookKey.
*
* REST: POST /telephony/{billingAccount}/phonebook
* @param name [required] Name of the wanted phonebook
* @param billingAccount [required] The name of your billingAccount
*/
public String billingAccount_phonebook_POST(String billingAccount, String name) throws IOException {
String qPath = "/telephony/{billingAccount}/phonebook";
StringBuilder sb = path(qPath, billingAccount);
HashMapo = new HashMap();
addBody(o, "name", name);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, String.class);
}
/**
* Cancel the billing account termination
*
* REST: POST /telephony/{billingAccount}/cancelTermination
* @param billingAccount [required] The name of your billingAccount
*/
public void billingAccount_cancelTermination_POST(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/cancelTermination";
StringBuilder sb = path(qPath, billingAccount);
exec(qPath, "POST", sb.toString(), null);
}
/**
* Redirects associated with this billing account
*
* REST: GET /telephony/{billingAccount}/redirect
* @param billingAccount [required] The name of your billingAccount
*/
public ArrayList billingAccount_redirect_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/redirect";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
}
/**
* Change the destination of the redirect
*
* REST: POST /telephony/{billingAccount}/redirect/{serviceName}/changeDestination
* @param destination [required] The destination
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhTask billingAccount_redirect_serviceName_changeDestination_POST(String billingAccount, String serviceName, String destination) throws IOException {
String qPath = "/telephony/{billingAccount}/redirect/{serviceName}/changeDestination";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMapo = new HashMap();
addBody(o, "destination", destination);
String resp = exec(qPath, "POST", sb.toString(), o);
return convertTo(resp, OvhTask.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/redirect/{serviceName}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhRedirect billingAccount_redirect_serviceName_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/redirect/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhRedirect.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/redirect/{serviceName}
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_redirect_serviceName_PUT(String billingAccount, String serviceName, OvhRedirect body) throws IOException {
String qPath = "/telephony/{billingAccount}/redirect/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/conference/{serviceName}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhConference billingAccount_conference_serviceName_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/conference/{serviceName}";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhConference.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/conference/{serviceName}/settings
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhConferenceProperties billingAccount_conference_serviceName_settings_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/conference/{serviceName}/settings";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhConferenceProperties.class);
}
/**
* Alter this object properties
*
* REST: PUT /telephony/{billingAccount}/conference/{serviceName}/settings
* @param body [required] New object properties
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public void billingAccount_conference_serviceName_settings_PUT(String billingAccount, String serviceName, OvhConferenceProperties body) throws IOException {
String qPath = "/telephony/{billingAccount}/conference/{serviceName}/settings";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "PUT", sb.toString(), body);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/conference/{serviceName}/histories/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhConferenceHistory billingAccount_conference_serviceName_histories_id_GET(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/conference/{serviceName}/histories/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhConferenceHistory.class);
}
/**
* List your past conferences for this number
*
* REST: GET /telephony/{billingAccount}/conference/{serviceName}/histories
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_conference_serviceName_histories_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/conference/{serviceName}/histories";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Lock the conference room
*
* REST: POST /telephony/{billingAccount}/conference/{serviceName}/unlock
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhTask billingAccount_conference_serviceName_unlock_POST(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/conference/{serviceName}/unlock";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, OvhTask.class);
}
/**
* Get this object properties
*
* REST: GET /telephony/{billingAccount}/conference/{serviceName}/webAccess/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public OvhConferenceWebAccess billingAccount_conference_serviceName_webAccess_id_GET(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/conference/{serviceName}/webAccess/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhConferenceWebAccess.class);
}
/**
* Delete a public web access to your conference
*
* REST: DELETE /telephony/{billingAccount}/conference/{serviceName}/webAccess/{id}
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
* @param id [required] Id of the object
*/
public void billingAccount_conference_serviceName_webAccess_id_DELETE(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/conference/{serviceName}/webAccess/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
exec(qPath, "DELETE", sb.toString(), null);
}
/**
* List your conference web access
*
* REST: GET /telephony/{billingAccount}/conference/{serviceName}/webAccess
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public ArrayList billingAccount_conference_serviceName_webAccess_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/conference/{serviceName}/webAccess";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
/**
* Add a public web access to your conference
*
* REST: POST /telephony/{billingAccount}/conference/{serviceName}/webAccess
* @param type [required] The type of the conference web access : read or write
* @param billingAccount [required] The name of your billingAccount
* @param serviceName [required]
*/
public OvhConferenceWebAccess billingAccount_conference_serviceName_webAccess_POST(String billingAccount, String serviceName, OvhConferenceWebAccessTypeEnum type) throws IOException {
String qPath = "/telephony/{billingAccount}/conference/{serviceName}/webAccess";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMap