code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public OvhTask serviceName_requestBoost_POST(String serviceName, OvhOfferEnum offer) throws IOException {
String qPath = "/hosting/web/{serviceName}/requestBoost";
StringBuilder sb = path(qPath, serviceName);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "offer", offer);
String resp = e... | java |
public OvhTask serviceName_module_POST(String serviceName, String adminName, String adminPassword, OvhDependencyType[] dependencies, String domain, net.minidev.ovh.api.hosting.web.module.OvhLanguageEnum language, Long moduleId, String path) throws IOException {
String qPath = "/hosting/web/{serviceName}/module";
St... | java |
public ArrayList<String> serviceName_envVar_GET(String serviceName, net.minidev.ovh.api.hosting.web.envvar.OvhTypeEnum type) throws IOException {
String qPath = "/hosting/web/{serviceName}/envVar";
StringBuilder sb = path(qPath, serviceName);
query(sb, "type", type);
String resp = exec(qPath, "GET", sb.toString... | java |
public OvhTask serviceName_envVar_POST(String serviceName, String key, net.minidev.ovh.api.hosting.web.envvar.OvhTypeEnum type, String value) throws IOException {
String qPath = "/hosting/web/{serviceName}/envVar";
StringBuilder sb = path(qPath, serviceName);
HashMap<String, Object>o = new HashMap<String, Object>... | java |
public ArrayList<OvhVolumeHistory> serviceName_email_volumes_GET(String serviceName) throws IOException {
String qPath = "/hosting/web/{serviceName}/email/volumes";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t10);
} | java |
public String serviceName_email_request_POST(String serviceName, OvhActionEnum action) throws IOException {
String qPath = "/hosting/web/{serviceName}/email/request";
StringBuilder sb = path(qPath, serviceName);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "action", action);
String res... | java |
public ArrayList<OvhBounce> serviceName_email_bounces_GET(String serviceName, Long limit) throws IOException {
String qPath = "/hosting/web/{serviceName}/email/bounces";
StringBuilder sb = path(qPath, serviceName);
query(sb, "limit", limit);
String resp = exec(qPath, "GET", sb.toString(), null);
return conver... | java |
public OvhTask serviceName_attachedDomain_POST(String serviceName, OvhCdnEnum cdn, String domain, OvhFirewallEnum firewall, String ownLog, String path, Long runtimeId, Boolean ssl) throws IOException {
String qPath = "/hosting/web/{serviceName}/attachedDomain";
StringBuilder sb = path(qPath, serviceName);
HashMap... | java |
public ArrayList<OvhCreationDatabaseCapabilities> serviceName_databaseCreationCapabilities_GET(String serviceName) throws IOException {
String qPath = "/hosting/web/{serviceName}/databaseCreationCapabilities";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
re... | java |
public OvhTask serviceName_activatePrivateDatabase_POST(String serviceName, OvhAvailableRamSizeEnum ram, OvhOrderableVersionEnum version) throws IOException {
String qPath = "/hosting/web/{serviceName}/activatePrivateDatabase";
StringBuilder sb = path(qPath, serviceName);
HashMap<String, Object>o = new HashMap<St... | java |
public ArrayList<Long> serviceName_cron_GET(String serviceName, String command, String description, String email, OvhLanguageEnum language) throws IOException {
String qPath = "/hosting/web/{serviceName}/cron";
StringBuilder sb = path(qPath, serviceName);
query(sb, "command", command);
query(sb, "description", ... | java |
public String serviceName_cron_POST(String serviceName, String command, String description, String email, String frequency, OvhLanguageEnum language, net.minidev.ovh.api.hosting.web.cron.OvhStatusEnum status) throws IOException {
String qPath = "/hosting/web/{serviceName}/cron";
StringBuilder sb = path(qPath, servi... | java |
public OvhCapabilities offerCapabilities_GET(OvhOfferCapabilitiesEnum offer) throws IOException {
String qPath = "/hosting/web/offerCapabilities";
StringBuilder sb = path(qPath);
query(sb, "offer", offer);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhCapabilities.class);
... | java |
public OvhVisibilityCheckResponse localSeo_visibilityCheck_POST(OvhCountryEnum country, String name, String street, String zip) throws IOException {
String qPath = "/hosting/web/localSeo/visibilityCheck";
StringBuilder sb = path(qPath);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "count... | java |
public OvhDirectoriesList localSeo_directoriesList_GET(OvhCountryEnum country, net.minidev.ovh.api.hosting.web.localseo.location.OvhOfferEnum offer) throws IOException {
String qPath = "/hosting/web/localSeo/directoriesList";
StringBuilder sb = path(qPath);
query(sb, "country", country);
query(sb, "offer", offe... | java |
public ArrayList<OvhVisibilityCheckResultResponse> localSeo_visibilityCheckResult_GET(String directory, Long id, String token) throws IOException {
String qPath = "/hosting/web/localSeo/visibilityCheckResult";
StringBuilder sb = path(qPath);
query(sb, "directory", directory);
query(sb, "id", id);
query(sb, "t... | java |
public ArrayList<Long> moduleList_GET(Boolean active, OvhBranchEnum branch, Boolean latest) throws IOException {
String qPath = "/hosting/web/moduleList";
StringBuilder sb = path(qPath);
query(sb, "active", active);
query(sb, "branch", branch);
query(sb, "latest", latest);
String resp = execN(qPath, "GET", ... | java |
public ArrayList<OvhSnapshotEnum> serviceName_partition_partitionName_snapshot_GET(String serviceName, String partitionName) throws IOException {
String qPath = "/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot";
StringBuilder sb = path(qPath, serviceName, partitionName);
String resp = exec(qPath... | java |
public OvhTask serviceName_partition_partitionName_snapshot_POST(String serviceName, String partitionName, OvhSnapshotEnum snapshotType) throws IOException {
String qPath = "/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot";
StringBuilder sb = path(qPath, serviceName, partitionName);
HashMap<Stri... | java |
public OvhUnitAndValue<Double> serviceName_partition_partitionName_use_GET(String serviceName, String partitionName, OvhPartitionUsageTypeEnum type) throws IOException {
String qPath = "/dedicated/nasha/{serviceName}/partition/{partitionName}/use";
StringBuilder sb = path(qPath, serviceName, partitionName);
query... | java |
@SafeVarargs
public final void enable(Option... options) {
for (Option o : options) {
optionSet.add(o);
}
} | java |
public void setMaximumBatchUpdateSize(int size) {
if (!batchUpdateSupport) {
throw new InvalidOperationException("Batch updates not allowed by database driver.");
}
if (! isEnabled(DB.Option.BATCH_UPDATES)) {
throw new InvalidOperationException(DB.Option.BATCH_UPDATES + " option is not enabled."... | java |
public void enableFullLogging() {
enable(DB.Option.LOG_ASSERTION_ERRORS,
DB.Option.LOG_ASSERTIONS,
DB.Option.LOG_SETUP,
DB.Option.LOG_QUERIES,
DB.Option.LOG_SNAPSHOTS,
DB.Option.LOG_DATABASE_EXCEPTIONS);
} | java |
@SafeVarargs
public final void disable(Option... options) {
for (Option o : options) {
optionSet.remove(o);
}
} | java |
WrappedStatement compile(String sql) throws SQLException {
WrappedStatement ws;
if (! isEnabled(Option.REUSE_STATEMENTS)) {
ws = new WrappedStatement(connection.prepareStatement(sql), false);
}
else {
if (pool == null) {
pool = new IdentityHashMap<>();
}
String sqlI = sql... | java |
void save(CallInfo callInfo) {
access(callInfo, () -> {
if (!savepointSupport) {
throw new UnsupportedOperationException("Savepoints are not supported by the database driver.");
}
logSetup(callInfo);
clearSavePointIfSet();
if (connection.getAutoCommit()) {
throw new Inv... | java |
void commit(CallInfo callInfo) {
access(callInfo, () -> {
logSetup(callInfo);
clearSavePointIfSet();
connection.commit();
return 0;
});
} | java |
void restore(CallInfo callInfo) {
// Note: this is a conservative implementation, it sets another save-point
// after roll-back, some engines seem to implicitly release the save point on roll-back
// (an issue with HSQLDB)
access(callInfo, () -> {
logSetup(callInfo);
try {
if (!savep... | java |
void teardown(CallInfo callInfo, boolean closeConn) {
logSetup(callInfo);
if (pool != null) {
for (WrappedStatement ws : pool.values()) {
ignoreSQLException(ws.getStatement()::close);
}
pool.clear();
pool = null;
}
clearSavePointIfSet();
log.close();
log = null;
... | java |
<T> T access(CallInfo callInfo, Access<T> op) {
try {
return op.execute();
}
catch (SQLException e) {
if (isEnabled(DB.Option.LOG_DATABASE_EXCEPTIONS)) {
log.write(callInfo, e);
}
throw new DBExecutionException(e);
}
} | java |
void logDataSetOperation(CallInfo callInfo, DataSet data) {
if (isEnabled(Option.LOG_SETUP)) {
log.write(callInfo, data);
}
} | java |
void logSetup(CallInfo callInfo, String sql) {
if (isEnabled(Option.LOG_SETUP)) {
log.writeSQL(callInfo, sql);
}
} | java |
public OvhTag serviceName_namespaces_namespaceId_images_imageId_tags_tagId_GET(String serviceName, String namespaceId, String imageId, String tagId) throws IOException {
String qPath = "/caas/registry/{serviceName}/namespaces/{namespaceId}/images/{imageId}/tags/{tagId}";
StringBuilder sb = path(qPath, serviceName, ... | java |
public void serviceName_namespaces_namespaceId_images_imageId_permissions_permissionId_DELETE(String serviceName, String namespaceId, String imageId, String permissionId) throws IOException {
String qPath = "/caas/registry/{serviceName}/namespaces/{namespaceId}/images/{imageId}/permissions/{permissionId}";
StringBu... | java |
public OvhPermissions serviceName_namespaces_namespaceId_images_imageId_permissions_POST(String serviceName, String namespaceId, String imageId, OvhInputPermissions body) throws IOException {
String qPath = "/caas/registry/{serviceName}/namespaces/{namespaceId}/images/{imageId}/permissions";
StringBuilder sb = path... | java |
@SafeVarargs
public final DataSet row(Object... columnValues) {
checkIfNotReadOnly();
if (columnValues.length != source.getColumnCount()) {
throw new InvalidOperationException(source.getColumnCount() +
" columns expected, not " + columnValues.length + ".");
}
addRow(new Row(columnValue... | java |
public final DataSet add(DataSet other) {
checkIfNotReadOnly();
if (other.getSource() != source) {
throw new InvalidOperationException("Data source mismatch.");
}
rows.addAll(other.rows);
return this;
} | java |
public static DataSet subset(DataSet data, int startIndex, int count) {
if (data == null) {
throw new InvalidOperationException("Null data set");
}
if (startIndex < 0 || count < 0 || startIndex + count > data.size()) {
throw new InvalidOperationException("Invalid range.");
}
DataSet sub ... | java |
public static DataSet copyOf(DataSet data) {
if (data == null) {
throw new InvalidOperationException("Null data set");
}
DataSet r = new DataSet(data.getSource());
r.getRows().addAll(data.getRows());
return r;
} | java |
@SafeVarargs
public static DataSet join(DataSet... dataSets) {
if (dataSets == null || dataSets.length == 0) {
throw new InvalidOperationException("No source data sets given for joining.");
}
DataSet r = copyOf(dataSets[0]);
for (int i = 1; i < dataSets.length; i++) {
DataSet d = dataSets[... | java |
public void registerHandler(String method, String url, OphApiHandler handler) {
if (mtdHandler == null)
mtdHandler = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
TreeMap<String, OphApiHandler> reg;
if (method == null)
method = "ALL";
reg = mtdHandler.get(method);
if (reg == null) {
reg = new TreeMa... | java |
private void invalidateConsumerKey(String nic, String currentCK) throws IOException {
config.invalidateConsumerKey(nic, currentCK);
} | java |
public static ApiOvhCore getInstance() {
ApiOvhCore core = new ApiOvhCore();
// core._consumerKey = core.config.getConsumerKey();
core._consumerKey = core.getConsumerKeyOrNull();// config.getConsumerKey();
if (core._consumerKey == null) {
File file = ApiOvhConfigBasic.getOvhConfig();
String location = Api... | java |
public static ApiOvhCore getInstance(String consumerKey) {
ApiOvhCore core = new ApiOvhCore();
core._consumerKey = consumerKey;
return core;
} | java |
private void syncTime() {
try {
Long ovhTime = new ApiOvhAuth(this).time_GET();
long myTime = System.currentTimeMillis() / 1000L;
timeOffset = myTime - ovhTime;
} catch (Exception e) {
log.error("Failed syncronized Ovh Clock");
timeOffset = 0L;
}
} | java |
private String getTimestamp() {
if (timeOffset == null)
syncTime();
long now = System.currentTimeMillis() / 1000L;
now -= timeOffset;
return Long.toString(now);
} | java |
public void setLoginInfo(String nic, String password, int timeInSec) {
nic = nic.toLowerCase();
this.nic = nic;
this.password = password;
this.timeInSec = timeInSec;
} | java |
public OvhCredential requestToken(String redirection) throws IOException {
OvhAccessRule[] accessRules = new OvhAccessRule[this.accessRules.length];
// {GET POST PUT DELETE} /*
for (int i = 0; i < this.accessRules.length; i++) {
String rule = this.accessRules[i];
int p = rule.indexOf(" ");
if (p == -1)
... | java |
public String exec(String apiPath, String method, String query, Object payload, boolean needAuth)
throws IOException {
if (payload == null)
payload = "";
String responseText = null;
boolean cached = false;
if (cacheManager != null) {
responseText = cacheManager.getCache(apiPath, method, query, payloa... | java |
public void templateModem_name_DELETE(String name) throws IOException {
String qPath = "/xdsl/templateModem/{name}";
StringBuilder sb = path(qPath, name);
exec(qPath, "DELETE", sb.toString(), null);
} | java |
public ArrayList<OvhCity> eligibility_cities_GET(String zipCode) throws IOException {
String qPath = "/xdsl/eligibility/cities";
StringBuilder sb = path(qPath);
query(sb, "zipCode", zipCode);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t2);
} | java |
public OvhAsyncTaskArray<OvhLine> eligibility_lines_active_POST(OvhCity city, String contactName, OvhStreet street, String streetNumber) throws IOException {
String qPath = "/xdsl/eligibility/lines/active";
StringBuilder sb = path(qPath);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "cit... | java |
public ArrayList<OvhStreet> eligibility_streets_GET(String inseeCode, String partialName) throws IOException {
String qPath = "/xdsl/eligibility/streets";
StringBuilder sb = path(qPath);
query(sb, "inseeCode", inseeCode);
query(sb, "partialName", partialName);
String resp = exec(qPath, "GET", sb.toString(), n... | java |
public OvhAsyncTask<OvhMeetingSlots> eligibility_meetings_GET(String eligibilityId, String offerLabel) throws IOException {
String qPath = "/xdsl/eligibility/meetings";
StringBuilder sb = path(qPath);
query(sb, "eligibilityId", eligibilityId);
query(sb, "offerLabel", offerLabel);
String resp = exec(qPath, "GE... | java |
public OvhDiagnostic serviceName_lines_number_diagnostic_run_POST(String serviceName, String number, OvhCustomerActionsEnum[] actionsDone, OvhAnswers answers, OvhFaultTypeEnum faultType) throws IOException {
String qPath = "/xdsl/{serviceName}/lines/{number}/diagnostic/run";
StringBuilder sb = path(qPath, serviceNa... | java |
public void serviceName_lines_number_diagnostic_cancel_POST(String serviceName, String number) throws IOException {
String qPath = "/xdsl/{serviceName}/lines/{number}/diagnostic/cancel";
StringBuilder sb = path(qPath, serviceName, number);
exec(qPath, "POST", sb.toString(), null);
} | java |
public OvhUnitAndValues<OvhTimestampAndValue> serviceName_lines_number_statistics_GET(String serviceName, String number, OvhStatisticsPeriodEnum period, OvhLineStatisticsTypeEnum type) throws IOException {
String qPath = "/xdsl/{serviceName}/lines/{number}/statistics";
StringBuilder sb = path(qPath, serviceName, nu... | java |
public OvhTask serviceName_lines_number_dslamPort_changeProfile_POST(String serviceName, String number, Long dslamProfileId) throws IOException {
String qPath = "/xdsl/{serviceName}/lines/{number}/dslamPort/changeProfile";
StringBuilder sb = path(qPath, serviceName, number);
HashMap<String, Object>o = new HashMap... | java |
public ArrayList<OvhDslamPortLog> serviceName_lines_number_dslamPort_logs_GET(String serviceName, String number, Long limit) throws IOException {
String qPath = "/xdsl/{serviceName}/lines/{number}/dslamPort/logs";
StringBuilder sb = path(qPath, serviceName, number);
query(sb, "limit", limit);
String resp = exec... | java |
public ArrayList<OvhDslamLineProfile> serviceName_lines_number_dslamPort_availableProfiles_GET(String serviceName, String number) throws IOException {
String qPath = "/xdsl/{serviceName}/lines/{number}/dslamPort/availableProfiles";
StringBuilder sb = path(qPath, serviceName, number);
String resp = exec(qPath, "GE... | java |
public OvhUnitAndValues<OvhTimestampAndValue> serviceName_statistics_GET(String serviceName, OvhStatisticsPeriodEnum period, OvhAccessStatisticsTypeEnum type) throws IOException {
String qPath = "/xdsl/{serviceName}/statistics";
StringBuilder sb = path(qPath, serviceName);
query(sb, "period", period);
query(sb,... | java |
public OvhResiliationFollowUpDetail serviceName_resiliate_POST(String serviceName, Date resiliationDate, OvhResiliationSurvey resiliationSurvey) throws IOException {
String qPath = "/xdsl/{serviceName}/resiliate";
StringBuilder sb = path(qPath, serviceName);
HashMap<String, Object>o = new HashMap<String, Object>(... | java |
public void serviceName_updateInvalidOrMissingRio_POST(String serviceName, Boolean relaunchWithoutPortability, String rio) throws IOException {
String qPath = "/xdsl/{serviceName}/updateInvalidOrMissingRio";
StringBuilder sb = path(qPath, serviceName);
HashMap<String, Object>o = new HashMap<String, Object>();
a... | java |
public void serviceName_modem_duplicatePortMappingConfig_POST(String serviceName, String accessName) throws IOException {
String qPath = "/xdsl/{serviceName}/modem/duplicatePortMappingConfig";
StringBuilder sb = path(qPath, serviceName);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "acce... | java |
public ArrayList<Long> serviceName_modem_availableWLANChannel_GET(String serviceName, OvhWLANFrequencyEnum frequency) throws IOException {
String qPath = "/xdsl/{serviceName}/modem/availableWLANChannel";
StringBuilder sb = path(qPath, serviceName);
query(sb, "frequency", frequency);
String resp = exec(qPath, "G... | java |
public OvhTask serviceName_modem_reboot_POST(String serviceName, Date todoDate) throws IOException {
String qPath = "/xdsl/{serviceName}/modem/reboot";
StringBuilder sb = path(qPath, serviceName);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "todoDate", todoDate);
String resp = exec(qP... | java |
public OvhTask serviceName_modem_blocIp_POST(String serviceName, OvhServiceStatusEnum status) throws IOException {
String qPath = "/xdsl/{serviceName}/modem/blocIp";
StringBuilder sb = path(qPath, serviceName);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "status", status);
String resp... | java |
public OvhAsyncTask<OvhModemInfo> serviceName_modem_retrieveInfo_POST(String serviceName) throws IOException {
String qPath = "/xdsl/{serviceName}/modem/retrieveInfo";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, t16);
} | java |
public OvhDHCPStaticAddress serviceName_modem_lan_lanName_dhcp_dhcpName_DHCPStaticAddresses_POST(String serviceName, String lanName, String dhcpName, String IPAddress, String MACAddress, String name) throws IOException {
String qPath = "/xdsl/{serviceName}/modem/lan/{lanName}/dhcp/{dhcpName}/DHCPStaticAddresses";
S... | java |
public OvhTask serviceName_modem_lan_lanName_dhcp_dhcpName_DHCPStaticAddresses_MACAddress_DELETE(String serviceName, String lanName, String dhcpName, String MACAddress) throws IOException {
String qPath = "/xdsl/{serviceName}/modem/lan/{lanName}/dhcp/{dhcpName}/DHCPStaticAddresses/{MACAddress}";
StringBuilder sb = ... | java |
public OvhTask serviceName_modem_reset_POST(String serviceName, Boolean resetOvhConfig) throws IOException {
String qPath = "/xdsl/{serviceName}/modem/reset";
StringBuilder sb = path(qPath, serviceName);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "resetOvhConfig", resetOvhConfig);
St... | java |
public OvhPortMapping serviceName_modem_portMappings_POST(String serviceName, String allowedRemoteIp, String description, Long externalPortEnd, Long externalPortStart, String internalClient, Long internalPort, String name, OvhProtocolTypeEnum protocol) throws IOException {
String qPath = "/xdsl/{serviceName}/modem/po... | java |
public ArrayList<Long> serviceName_monitoringNotifications_GET(String serviceName) throws IOException {
String qPath = "/xdsl/{serviceName}/monitoringNotifications";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t15);
} | java |
public OvhMonitoringNotification serviceName_monitoringNotifications_POST(String serviceName, Boolean allowIncident, Long downThreshold, String email, OvhFrequencyEnum frequency, String phone, String smsAccount, OvhTypeEnum type) throws IOException {
String qPath = "/xdsl/{serviceName}/monitoringNotifications";
Str... | java |
public void serviceName_ips_ip_DELETE(String serviceName, String ip) throws IOException {
String qPath = "/xdsl/{serviceName}/ips/{ip}";
StringBuilder sb = path(qPath, serviceName, ip);
exec(qPath, "DELETE", sb.toString(), null);
} | java |
public OvhEvidencesInfo serviceName_antiSpams_ip_evidences_GET(String serviceName, String ip) throws IOException {
String qPath = "/xdsl/{serviceName}/antiSpams/{ip}/evidences";
StringBuilder sb = path(qPath, serviceName, ip);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhEvid... | java |
public ArrayList<OvhRadiusConnectionLog> serviceName_radiusConnectionLogs_GET(String serviceName) throws IOException {
String qPath = "/xdsl/{serviceName}/radiusConnectionLogs";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t17);
} | java |
public OvhTask serviceName_requestTotalDeconsolidation_POST(String serviceName, Boolean noPortability, String rio) throws IOException {
String qPath = "/xdsl/{serviceName}/requestTotalDeconsolidation";
StringBuilder sb = path(qPath, serviceName);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody... | java |
public void serviceName_sendOrderToProvider_POST(String serviceName) throws IOException {
String qPath = "/xdsl/{serviceName}/sendOrderToProvider";
StringBuilder sb = path(qPath, serviceName);
exec(qPath, "POST", sb.toString(), null);
} | java |
public ArrayList<OvhStep> serviceName_orderFollowup_GET(String serviceName) throws IOException {
String qPath = "/xdsl/{serviceName}/orderFollowup";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t18);
} | java |
public net.minidev.ovh.api.xdsl.email.pro.OvhTask email_pro_email_changePassword_POST(String email, String password) throws IOException {
String qPath = "/xdsl/email/pro/{email}/changePassword";
StringBuilder sb = path(qPath, email);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "password... | java |
public ArrayList<Long> incidents_GET(Date creationDate, Date endDate) throws IOException {
String qPath = "/xdsl/incidents";
StringBuilder sb = path(qPath);
query(sb, "creationDate", creationDate);
query(sb, "endDate", endDate);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, ... | java |
public void spare_spare_returnMerchandise_POST(String spare) throws IOException {
String qPath = "/xdsl/spare/{spare}/returnMerchandise";
StringBuilder sb = path(qPath, spare);
exec(qPath, "POST", sb.toString(), null);
} | java |
static String toHexString(byte[] data) {
char[] chArray = new char[data.length * 2];
int pos = 0;
for (byte b : data) {
chArray[pos++] = HEX_CHARS[(b >> 4) & 0x0f];
chArray[pos++] = HEX_CHARS[b & 0x0f];
}
return new String(chArray);
} | java |
static byte[] fromHexString(String str) {
if (str.length() % 2 != 0) {
throw new InvalidOperationException("Hex-string has odd length!");
}
byte[] data = new byte[str.length() / 2];
int spos = 0;
for (int dpos = 0; dpos < data.length; dpos++) {
int d1 = Character.digit(str.charAt(spos++)... | java |
static byte[] sha1(InputStream in) {
try {
MessageDigest md = MessageDigest.getInstance(SHA1_DIGEST);
byte[] buffer = new byte[4096];
int bytes;
while ( (bytes = in.read(buffer)) > 0) {
md.update(buffer, 0, bytes);
}
return md.digest();
}
catch(NoSuchAlgorithmExc... | java |
@SafeVarargs
static <T> String sqlArgumentList(T... values) {
StringBuilder sb = new StringBuilder();
if (values.length != 0) {
sb.append(values[0]);
for (int i=1; i < values.length; i++) {
sb.append(',').append(' ').append(values[i]);
}
}
return sb.toString();
} | java |
public OvhPublicOffer offer_reference_GET(String reference) throws IOException {
String qPath = "/dbaas/logs/offer/{reference}";
StringBuilder sb = path(qPath, reference);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhPublicOffer.class);
} | java |
public OvhEngine input_engine_engineId_GET(String engineId) throws IOException {
String qPath = "/dbaas/logs/input/engine/{engineId}";
StringBuilder sb = path(qPath, engineId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhEngine.class);
} | java |
public OvhOperation serviceName_cluster_clusterId_allowedNetwork_POST(String serviceName, String clusterId, OvhClusterAllowedNetworkFlowTypeEnum flowType, String network) throws IOException {
String qPath = "/dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork";
StringBuilder sb = path(qPath, serviceName, c... | java |
public OvhOperation serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_DELETE(String serviceName, String clusterId, String allowedNetworkId) throws IOException {
String qPath = "/dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork/{allowedNetworkId}";
StringBuilder sb = path(qPath, serviceName, c... | java |
public OvhClusterAllowedNetwork serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_GET(String serviceName, String clusterId, String allowedNetworkId) throws IOException {
String qPath = "/dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork/{allowedNetworkId}";
StringBuilder sb = path(qPath, servi... | java |
public OvhLogstashConfiguration serviceName_input_inputId_configuration_logstash_GET(String serviceName, String inputId) throws IOException {
String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/configuration/logstash";
StringBuilder sb = path(qPath, serviceName, inputId);
String resp = exec(qPath, "GET", sb... | java |
public OvhOperation serviceName_input_inputId_configuration_logstash_PUT(String serviceName, String inputId, String filterSection, String inputSection, String patternSection) throws IOException {
String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/configuration/logstash";
StringBuilder sb = path(qPath, servic... | java |
public OvhFlowggerConfiguration serviceName_input_inputId_configuration_flowgger_GET(String serviceName, String inputId) throws IOException {
String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/configuration/flowgger";
StringBuilder sb = path(qPath, serviceName, inputId);
String resp = exec(qPath, "GET", sb... | java |
public OvhOperation serviceName_input_inputId_configuration_flowgger_PUT(String serviceName, String inputId, OvhFlowggerConfigurationLogFormatEnum logFormat, OvhFlowggerConfigurationLogFramingEnum logFraming) throws IOException {
String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/configuration/flowgger";
Str... | java |
public OvhInput serviceName_input_inputId_GET(String serviceName, String inputId) throws IOException {
String qPath = "/dbaas/logs/{serviceName}/input/{inputId}";
StringBuilder sb = path(qPath, serviceName, inputId);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhInput.class);
... | java |
public OvhOperation serviceName_input_inputId_PUT(String serviceName, String inputId, String description, String engineId, String exposedPort, String optionId, Boolean singleInstanceEnabled, String streamId, String title) throws IOException {
String qPath = "/dbaas/logs/{serviceName}/input/{inputId}";
StringBuilder... | java |
public OvhOperation serviceName_input_inputId_allowedNetwork_POST(String serviceName, String inputId, String network) throws IOException {
String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/allowedNetwork";
StringBuilder sb = path(qPath, serviceName, inputId);
HashMap<String, Object>o = new HashMap<String,... | java |
public OvhAllowedNetwork serviceName_input_inputId_allowedNetwork_allowedNetworkId_GET(String serviceName, String inputId, String allowedNetworkId) throws IOException {
String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/allowedNetwork/{allowedNetworkId}";
StringBuilder sb = path(qPath, serviceName, inputId, ... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.