repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_requestBoost_POST | 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_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... | [
"public",
"OvhTask",
"serviceName_requestBoost_POST",
"(",
"String",
"serviceName",
",",
"OvhOfferEnum",
"offer",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/requestBoost\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPa... | Allows you to boost your offer.
REST: POST /hosting/web/{serviceName}/requestBoost
@param offer [required] The boost offer of your choice. Set to null to disable boost.
@param serviceName [required] The internal name of your hosting | [
"Allows",
"you",
"to",
"boost",
"your",
"offer",
"."
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1575-L1582 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_module_POST | 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 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... | [
"public",
"OvhTask",
"serviceName_module_POST",
"(",
"String",
"serviceName",
",",
"String",
"adminName",
",",
"String",
"adminPassword",
",",
"OvhDependencyType",
"[",
"]",
"dependencies",
",",
"String",
"domain",
",",
"net",
".",
"minidev",
".",
"ovh",
".",
"a... | Install a new module
REST: POST /hosting/web/{serviceName}/module
@param language [required] The language to set to your module
@param adminName [required] The login for the admin account (may be a standard string or your email)
@param adminPassword [required] The password for the admin account (at least 8 characters)... | [
"Install",
"a",
"new",
"module"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1652-L1665 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_envVar_GET | 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 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... | [
"public",
"ArrayList",
"<",
"String",
">",
"serviceName_envVar_GET",
"(",
"String",
"serviceName",
",",
"net",
".",
"minidev",
".",
"ovh",
".",
"api",
".",
"hosting",
".",
"web",
".",
"envvar",
".",
"OvhTypeEnum",
"type",
")",
"throws",
"IOException",
"{",
... | Environment variables set on your webhosting
REST: GET /hosting/web/{serviceName}/envVar
@param type [required] Filter the value of type property (=)
@param serviceName [required] The internal name of your hosting | [
"Environment",
"variables",
"set",
"on",
"your",
"webhosting"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1814-L1820 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_envVar_POST | 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 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>... | [
"public",
"OvhTask",
"serviceName_envVar_POST",
"(",
"String",
"serviceName",
",",
"String",
"key",
",",
"net",
".",
"minidev",
".",
"ovh",
".",
"api",
".",
"hosting",
".",
"web",
".",
"envvar",
".",
"OvhTypeEnum",
"type",
",",
"String",
"value",
")",
"thr... | Set a variable to this hosting
REST: POST /hosting/web/{serviceName}/envVar
@param value [required] Value of the variable
@param key [required] Name of the new variable
@param type [required] Type of variable set
@param serviceName [required] The internal name of your hosting | [
"Set",
"a",
"variable",
"to",
"this",
"hosting"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1831-L1840 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_email_volumes_GET | 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 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);
} | [
"public",
"ArrayList",
"<",
"OvhVolumeHistory",
">",
"serviceName_email_volumes_GET",
"(",
"String",
"serviceName",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/email/volumes\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"... | Request the history volume of email sent
REST: GET /hosting/web/{serviceName}/email/volumes
@param serviceName [required] The internal name of your hosting | [
"Request",
"the",
"history",
"volume",
"of",
"email",
"sent"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1848-L1853 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_email_request_POST | 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 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... | [
"public",
"String",
"serviceName_email_request_POST",
"(",
"String",
"serviceName",
",",
"OvhActionEnum",
"action",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/email/request\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"... | Request specific operation for your email
REST: POST /hosting/web/{serviceName}/email/request
@param action [required] Action you want to request
@param serviceName [required] The internal name of your hosting | [
"Request",
"specific",
"operation",
"for",
"your",
"email"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1863-L1870 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_email_bounces_GET | 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 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... | [
"public",
"ArrayList",
"<",
"OvhBounce",
">",
"serviceName_email_bounces_GET",
"(",
"String",
"serviceName",
",",
"Long",
"limit",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/email/bounces\"",
";",
"StringBuilder",
"sb",
"=",... | Request the last bounces
REST: GET /hosting/web/{serviceName}/email/bounces
@param limit [required] Maximum bounces limit ( default : 20 / max : 100 )
@param serviceName [required] The internal name of your hosting | [
"Request",
"the",
"last",
"bounces"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1905-L1911 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_attachedDomain_POST | 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 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... | [
"public",
"OvhTask",
"serviceName_attachedDomain_POST",
"(",
"String",
"serviceName",
",",
"OvhCdnEnum",
"cdn",
",",
"String",
"domain",
",",
"OvhFirewallEnum",
"firewall",
",",
"String",
"ownLog",
",",
"String",
"path",
",",
"Long",
"runtimeId",
",",
"Boolean",
"... | Link a domain to this hosting
REST: POST /hosting/web/{serviceName}/attachedDomain
@param cdn [required] Is linked to the hosting cdn
@param runtimeId [required] The runtime configuration ID linked to this attached domain
@param ownLog [required] Put domain for separate the logs on logs.ovh.net
@param ssl [required] P... | [
"Link",
"a",
"domain",
"to",
"this",
"hosting"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L2027-L2040 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_databaseCreationCapabilities_GET | 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 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... | [
"public",
"ArrayList",
"<",
"OvhCreationDatabaseCapabilities",
">",
"serviceName_databaseCreationCapabilities_GET",
"(",
"String",
"serviceName",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/databaseCreationCapabilities\"",
";",
"String... | List available database you can install
REST: GET /hosting/web/{serviceName}/databaseCreationCapabilities
@param serviceName [required] The internal name of your hosting | [
"List",
"available",
"database",
"you",
"can",
"install"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L2048-L2053 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_activatePrivateDatabase_POST | 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 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... | [
"public",
"OvhTask",
"serviceName_activatePrivateDatabase_POST",
"(",
"String",
"serviceName",
",",
"OvhAvailableRamSizeEnum",
"ram",
",",
"OvhOrderableVersionEnum",
"version",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/activatePriv... | Activate an included private database on your hosting offer
REST: POST /hosting/web/{serviceName}/activatePrivateDatabase
@param version [required] Private database available versions
@param ram [required] The private database ram size included in your offer
@param serviceName [required] The internal name of your host... | [
"Activate",
"an",
"included",
"private",
"database",
"on",
"your",
"hosting",
"offer"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L2063-L2071 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_cron_GET | 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 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", ... | [
"public",
"ArrayList",
"<",
"Long",
">",
"serviceName_cron_GET",
"(",
"String",
"serviceName",
",",
"String",
"command",
",",
"String",
"description",
",",
"String",
"email",
",",
"OvhLanguageEnum",
"language",
")",
"throws",
"IOException",
"{",
"String",
"qPath",... | Crons on your hosting
REST: GET /hosting/web/{serviceName}/cron
@param description [required] Filter the value of description property (like)
@param command [required] Filter the value of command property (like)
@param language [required] Filter the value of language property (=)
@param email [required] Filter the val... | [
"Crons",
"on",
"your",
"hosting"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L2125-L2134 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_cron_POST | 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 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... | [
"public",
"String",
"serviceName_cron_POST",
"(",
"String",
"serviceName",
",",
"String",
"command",
",",
"String",
"description",
",",
"String",
"email",
",",
"String",
"frequency",
",",
"OvhLanguageEnum",
"language",
",",
"net",
".",
"minidev",
".",
"ovh",
"."... | Create new cron
REST: POST /hosting/web/{serviceName}/cron
@param status [required] Cron status
@param language [required] Cron language
@param command [required] Command to execute
@param description [required] Description field for you
@param email [required] Email used to receive error log ( stderr )
@param frequen... | [
"Create",
"new",
"cron"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L2148-L2160 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.offerCapabilities_GET | 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 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);
... | [
"public",
"OvhCapabilities",
"offerCapabilities_GET",
"(",
"OvhOfferCapabilitiesEnum",
"offer",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/offerCapabilities\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
")",
";",
"query",
"... | Get offer capabilities
REST: GET /hosting/web/offerCapabilities
@param offer [required] Describe offer capabilities | [
"Get",
"offer",
"capabilities"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L2194-L2200 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.localSeo_visibilityCheck_POST | 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 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... | [
"public",
"OvhVisibilityCheckResponse",
"localSeo_visibilityCheck_POST",
"(",
"OvhCountryEnum",
"country",
",",
"String",
"name",
",",
"String",
"street",
",",
"String",
"zip",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/localSeo/visibilityC... | Check visibility of a location
REST: POST /hosting/web/localSeo/visibilityCheck
@param name [required] Name of the location
@param country [required] Country of the location
@param street [required] Address line 1 of the location
@param zip [required] Zipcode of the location | [
"Check",
"visibility",
"of",
"a",
"location"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L2211-L2221 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.localSeo_directoriesList_GET | 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 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... | [
"public",
"OvhDirectoriesList",
"localSeo_directoriesList_GET",
"(",
"OvhCountryEnum",
"country",
",",
"net",
".",
"minidev",
".",
"ovh",
".",
"api",
".",
"hosting",
".",
"web",
".",
"localseo",
".",
"location",
".",
"OvhOfferEnum",
"offer",
")",
"throws",
"IOEx... | Get list of directories associated to a local SEO offer and a country
REST: GET /hosting/web/localSeo/directoriesList
@param offer [required] Local SEO offer
@param country [required] Country of the location | [
"Get",
"list",
"of",
"directories",
"associated",
"to",
"a",
"local",
"SEO",
"offer",
"and",
"a",
"country"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L2230-L2237 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.localSeo_visibilityCheckResult_GET | 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<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... | [
"public",
"ArrayList",
"<",
"OvhVisibilityCheckResultResponse",
">",
"localSeo_visibilityCheckResult_GET",
"(",
"String",
"directory",
",",
"Long",
"id",
",",
"String",
"token",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/localSeo/visibility... | Get the result of a visibility check
REST: GET /hosting/web/localSeo/visibilityCheckResult
@param directory [required] Get the result only for one directory
@param token [required] Token received when requesting the check
@param id [required] Id of the check | [
"Get",
"the",
"result",
"of",
"a",
"visibility",
"check"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L2247-L2255 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.moduleList_GET | 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<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", ... | [
"public",
"ArrayList",
"<",
"Long",
">",
"moduleList_GET",
"(",
"Boolean",
"active",
",",
"OvhBranchEnum",
"branch",
",",
"Boolean",
"latest",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/moduleList\"",
";",
"StringBuilder",
"sb",
"="... | IDs of all modules available
REST: GET /hosting/web/moduleList
@param branch [required] Filter the value of branch property (=)
@param active [required] Filter the value of active property (=)
@param latest [required] Filter the value of latest property (=) | [
"IDs",
"of",
"all",
"modules",
"available"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L2306-L2314 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dedicatednasha/src/main/java/net/minidev/ovh/api/ApiOvhDedicatednasha.java | ApiOvhDedicatednasha.serviceName_partition_partitionName_snapshot_GET | 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 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... | [
"public",
"ArrayList",
"<",
"OvhSnapshotEnum",
">",
"serviceName_partition_partitionName_snapshot_GET",
"(",
"String",
"serviceName",
",",
"String",
"partitionName",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/dedicated/nasha/{serviceName}/partition/{partitio... | Get scheduled snapshot types for this partition
REST: GET /dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot
@param serviceName [required] The internal name of your storage
@param partitionName [required] the given name of partition | [
"Get",
"scheduled",
"snapshot",
"types",
"for",
"this",
"partition"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dedicatednasha/src/main/java/net/minidev/ovh/api/ApiOvhDedicatednasha.java#L325-L330 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dedicatednasha/src/main/java/net/minidev/ovh/api/ApiOvhDedicatednasha.java | ApiOvhDedicatednasha.serviceName_partition_partitionName_snapshot_POST | 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 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... | [
"public",
"OvhTask",
"serviceName_partition_partitionName_snapshot_POST",
"(",
"String",
"serviceName",
",",
"String",
"partitionName",
",",
"OvhSnapshotEnum",
"snapshotType",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/dedicated/nasha/{serviceName}/partition... | Schedule a new snapshot type
REST: POST /dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot
@param snapshotType [required] Snapshot interval to add
@param serviceName [required] The internal name of your storage
@param partitionName [required] the given name of partition | [
"Schedule",
"a",
"new",
"snapshot",
"type"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dedicatednasha/src/main/java/net/minidev/ovh/api/ApiOvhDedicatednasha.java#L341-L348 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dedicatednasha/src/main/java/net/minidev/ovh/api/ApiOvhDedicatednasha.java | ApiOvhDedicatednasha.serviceName_partition_partitionName_use_GET | 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 | 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... | [
"public",
"OvhUnitAndValue",
"<",
"Double",
">",
"serviceName_partition_partitionName_use_GET",
"(",
"String",
"serviceName",
",",
"String",
"partitionName",
",",
"OvhPartitionUsageTypeEnum",
"type",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/dedicated... | Return statistics about the partition
REST: GET /dedicated/nasha/{serviceName}/partition/{partitionName}/use
@param type [required] The type of statistic to be fetched
@param serviceName [required] The internal name of your storage
@param partitionName [required] the given name of partition | [
"Return",
"statistics",
"about",
"the",
"partition"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dedicatednasha/src/main/java/net/minidev/ovh/api/ApiOvhDedicatednasha.java#L358-L364 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DB.java | DB.enable | @SafeVarargs
public final void enable(Option... options) {
for (Option o : options) {
optionSet.add(o);
}
} | java | @SafeVarargs
public final void enable(Option... options) {
for (Option o : options) {
optionSet.add(o);
}
} | [
"@",
"SafeVarargs",
"public",
"final",
"void",
"enable",
"(",
"Option",
"...",
"options",
")",
"{",
"for",
"(",
"Option",
"o",
":",
"options",
")",
"{",
"optionSet",
".",
"add",
"(",
"o",
")",
";",
"}",
"}"
] | Enable options.
@param options Options to enable. | [
"Enable",
"options",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DB.java#L193-L198 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DB.java | DB.setMaximumBatchUpdateSize | 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 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."... | [
"public",
"void",
"setMaximumBatchUpdateSize",
"(",
"int",
"size",
")",
"{",
"if",
"(",
"!",
"batchUpdateSupport",
")",
"{",
"throw",
"new",
"InvalidOperationException",
"(",
"\"Batch updates not allowed by database driver.\"",
")",
";",
"}",
"if",
"(",
"!",
"isEnab... | Set maximum size for batch updates.
@param size The size to set.
@see #getMaximumBatchUpdateSize()
@see #DEFAULT_MAX_BATCH_UPDATE_SIZE
@see DB.Option#BATCH_UPDATES | [
"Set",
"maximum",
"size",
"for",
"batch",
"updates",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DB.java#L207-L218 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DB.java | DB.enableFullLogging | 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 | 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);
} | [
"public",
"void",
"enableFullLogging",
"(",
")",
"{",
"enable",
"(",
"DB",
".",
"Option",
".",
"LOG_ASSERTION_ERRORS",
",",
"DB",
".",
"Option",
".",
"LOG_ASSERTIONS",
",",
"DB",
".",
"Option",
".",
"LOG_SETUP",
",",
"DB",
".",
"Option",
".",
"LOG_QUERIES"... | Enable all logging options. | [
"Enable",
"all",
"logging",
"options",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DB.java#L235-L242 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DB.java | DB.disable | @SafeVarargs
public final void disable(Option... options) {
for (Option o : options) {
optionSet.remove(o);
}
} | java | @SafeVarargs
public final void disable(Option... options) {
for (Option o : options) {
optionSet.remove(o);
}
} | [
"@",
"SafeVarargs",
"public",
"final",
"void",
"disable",
"(",
"Option",
"...",
"options",
")",
"{",
"for",
"(",
"Option",
"o",
":",
"options",
")",
"{",
"optionSet",
".",
"remove",
"(",
"o",
")",
";",
"}",
"}"
] | Disable options.
@param options Options to enable.
@see #enable(Option...)
@see #isEnabled(Option) | [
"Disable",
"options",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DB.java#L250-L255 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DB.java | DB.compile | 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 | 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... | [
"WrappedStatement",
"compile",
"(",
"String",
"sql",
")",
"throws",
"SQLException",
"{",
"WrappedStatement",
"ws",
";",
"if",
"(",
"!",
"isEnabled",
"(",
"Option",
".",
"REUSE_STATEMENTS",
")",
")",
"{",
"ws",
"=",
"new",
"WrappedStatement",
"(",
"connection",... | Compile a SQL statement.
@param sql SQL code.
@return Wrapper for prepared statement.
@throws SQLException If there is a error preparing the statement. | [
"Compile",
"a",
"SQL",
"statement",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DB.java#L308-L325 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DB.java | DB.save | 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 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... | [
"void",
"save",
"(",
"CallInfo",
"callInfo",
")",
"{",
"access",
"(",
"callInfo",
",",
"(",
")",
"->",
"{",
"if",
"(",
"!",
"savepointSupport",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
"\"Savepoints are not supported by the database driver.\""... | Set JDBDT save-point.
@param callInfo Call info. | [
"Set",
"JDBDT",
"save",
"-",
"point",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DB.java#L331-L344 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DB.java | DB.commit | void commit(CallInfo callInfo) {
access(callInfo, () -> {
logSetup(callInfo);
clearSavePointIfSet();
connection.commit();
return 0;
});
} | java | void commit(CallInfo callInfo) {
access(callInfo, () -> {
logSetup(callInfo);
clearSavePointIfSet();
connection.commit();
return 0;
});
} | [
"void",
"commit",
"(",
"CallInfo",
"callInfo",
")",
"{",
"access",
"(",
"callInfo",
",",
"(",
")",
"->",
"{",
"logSetup",
"(",
"callInfo",
")",
";",
"clearSavePointIfSet",
"(",
")",
";",
"connection",
".",
"commit",
"(",
")",
";",
"return",
"0",
";",
... | Commit changes in the current transaction.
@param callInfo Call info. | [
"Commit",
"changes",
"in",
"the",
"current",
"transaction",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DB.java#L358-L365 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DB.java | DB.restore | 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 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... | [
"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",
",",
... | Roll back changes to JDBDT save-point.
@param callInfo Call info. | [
"Roll",
"back",
"changes",
"to",
"JDBDT",
"save",
"-",
"point",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DB.java#L371-L393 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DB.java | DB.teardown | 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 | 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;
... | [
"void",
"teardown",
"(",
"CallInfo",
"callInfo",
",",
"boolean",
"closeConn",
")",
"{",
"logSetup",
"(",
"callInfo",
")",
";",
"if",
"(",
"pool",
"!=",
"null",
")",
"{",
"for",
"(",
"WrappedStatement",
"ws",
":",
"pool",
".",
"values",
"(",
")",
")",
... | Tear down the database handle, freeing any internal
resources.
@param callInfo Call info.
@param closeConn Close underlying connection. | [
"Tear",
"down",
"the",
"database",
"handle",
"freeing",
"any",
"internal",
"resources",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DB.java#L401-L416 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DB.java | DB.access | <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 | <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);
}
} | [
"<",
"T",
">",
"T",
"access",
"(",
"CallInfo",
"callInfo",
",",
"Access",
"<",
"T",
">",
"op",
")",
"{",
"try",
"{",
"return",
"op",
".",
"execute",
"(",
")",
";",
"}",
"catch",
"(",
"SQLException",
"e",
")",
"{",
"if",
"(",
"isEnabled",
"(",
"... | Run a operation.
Any {@link java.sql.SQLException} error that occurs is wrapped
into a {@link DBExecutionException} instance.
@param <T> Type of result.
@param callInfo Call info.
@param op Operation.
@return DB access result.
@throws DBExecutionException If a database error occurs. | [
"Run",
"a",
"operation",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DB.java#L443-L453 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DB.java | DB.logDataSetOperation | void logDataSetOperation(CallInfo callInfo, DataSet data) {
if (isEnabled(Option.LOG_SETUP)) {
log.write(callInfo, data);
}
} | java | void logDataSetOperation(CallInfo callInfo, DataSet data) {
if (isEnabled(Option.LOG_SETUP)) {
log.write(callInfo, data);
}
} | [
"void",
"logDataSetOperation",
"(",
"CallInfo",
"callInfo",
",",
"DataSet",
"data",
")",
"{",
"if",
"(",
"isEnabled",
"(",
"Option",
".",
"LOG_SETUP",
")",
")",
"{",
"log",
".",
"write",
"(",
"callInfo",
",",
"data",
")",
";",
"}",
"}"
] | Log insertion.
@param callInfo Call info.
@param data Data set. | [
"Log",
"insertion",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DB.java#L490-L494 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DB.java | DB.logSetup | void logSetup(CallInfo callInfo, String sql) {
if (isEnabled(Option.LOG_SETUP)) {
log.writeSQL(callInfo, sql);
}
} | java | void logSetup(CallInfo callInfo, String sql) {
if (isEnabled(Option.LOG_SETUP)) {
log.writeSQL(callInfo, sql);
}
} | [
"void",
"logSetup",
"(",
"CallInfo",
"callInfo",
",",
"String",
"sql",
")",
"{",
"if",
"(",
"isEnabled",
"(",
"Option",
".",
"LOG_SETUP",
")",
")",
"{",
"log",
".",
"writeSQL",
"(",
"callInfo",
",",
"sql",
")",
";",
"}",
"}"
] | Log database setup command.
@param callInfo Call info.
@param sql SQL code. | [
"Log",
"database",
"setup",
"command",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DB.java#L540-L544 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-caasregistry/src/main/java/net/minidev/ovh/api/ApiOvhCaasregistry.java | ApiOvhCaasregistry.serviceName_namespaces_namespaceId_images_imageId_tags_tagId_GET | 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 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, ... | [
"public",
"OvhTag",
"serviceName_namespaces_namespaceId_images_imageId_tags_tagId_GET",
"(",
"String",
"serviceName",
",",
"String",
"namespaceId",
",",
"String",
"imageId",
",",
"String",
"tagId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/caas/regist... | Inspect image tag
REST: GET /caas/registry/{serviceName}/namespaces/{namespaceId}/images/{imageId}/tags/{tagId}
@param imageId [required] Image id
@param namespaceId [required] Namespace id
@param serviceName [required] Service name
@param tagId [required] Tag id
API beta | [
"Inspect",
"image",
"tag"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-caasregistry/src/main/java/net/minidev/ovh/api/ApiOvhCaasregistry.java#L235-L240 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-caasregistry/src/main/java/net/minidev/ovh/api/ApiOvhCaasregistry.java | ApiOvhCaasregistry.serviceName_namespaces_namespaceId_images_imageId_permissions_permissionId_DELETE | 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 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... | [
"public",
"void",
"serviceName_namespaces_namespaceId_images_imageId_permissions_permissionId_DELETE",
"(",
"String",
"serviceName",
",",
"String",
"namespaceId",
",",
"String",
"imageId",
",",
"String",
"permissionId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
... | Delete image permissions.
REST: DELETE /caas/registry/{serviceName}/namespaces/{namespaceId}/images/{imageId}/permissions/{permissionId}
@param imageId [required] Image id
@param namespaceId [required] Namespace id
@param permissionId [required] Permission id
@param serviceName [required] Service name
API beta | [
"Delete",
"image",
"permissions",
"."
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-caasregistry/src/main/java/net/minidev/ovh/api/ApiOvhCaasregistry.java#L304-L308 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-caasregistry/src/main/java/net/minidev/ovh/api/ApiOvhCaasregistry.java | ApiOvhCaasregistry.serviceName_namespaces_namespaceId_images_imageId_permissions_POST | 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 | 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... | [
"public",
"OvhPermissions",
"serviceName_namespaces_namespaceId_images_imageId_permissions_POST",
"(",
"String",
"serviceName",
",",
"String",
"namespaceId",
",",
"String",
"imageId",
",",
"OvhInputPermissions",
"body",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
... | Create image permissions
REST: POST /caas/registry/{serviceName}/namespaces/{namespaceId}/images/{imageId}/permissions
@param imageId [required] Image id
@param namespaceId [required] Namespace id
@param body [required] Permissions of a user over a namespace
@param serviceName [required] Service name
API beta | [
"Create",
"image",
"permissions"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-caasregistry/src/main/java/net/minidev/ovh/api/ApiOvhCaasregistry.java#L339-L344 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DataSet.java | DataSet.row | @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 | @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... | [
"@",
"SafeVarargs",
"public",
"final",
"DataSet",
"row",
"(",
"Object",
"...",
"columnValues",
")",
"{",
"checkIfNotReadOnly",
"(",
")",
";",
"if",
"(",
"columnValues",
".",
"length",
"!=",
"source",
".",
"getColumnCount",
"(",
")",
")",
"{",
"throw",
"new... | Add a row to the data set.
@param columnValues Column values forming a row.
@return The data set instance (for chained calls).
@throws InvalidOperationException if this data set is read-only.
@see #rows(Object[][])
@see #add(DataSet)
@see #isReadOnly() | [
"Add",
"a",
"row",
"to",
"the",
"data",
"set",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DataSet.java#L155-L164 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DataSet.java | DataSet.add | 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 final DataSet add(DataSet other) {
checkIfNotReadOnly();
if (other.getSource() != source) {
throw new InvalidOperationException("Data source mismatch.");
}
rows.addAll(other.rows);
return this;
} | [
"public",
"final",
"DataSet",
"add",
"(",
"DataSet",
"other",
")",
"{",
"checkIfNotReadOnly",
"(",
")",
";",
"if",
"(",
"other",
".",
"getSource",
"(",
")",
"!=",
"source",
")",
"{",
"throw",
"new",
"InvalidOperationException",
"(",
"\"Data source mismatch.\""... | Add rows of given data set to this data set.
@param other The other data set.
@return The data set instance (for chained calls).
@throws InvalidOperationException
if this data set is read-only, or
if the data source of the other data set differs
from this one.
@see #row(Object...)
@see #rows(Object[][])
@see #isReadOn... | [
"Add",
"rows",
"of",
"given",
"data",
"set",
"to",
"this",
"data",
"set",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DataSet.java#L197-L204 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DataSet.java | DataSet.subset | 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 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 ... | [
"public",
"static",
"DataSet",
"subset",
"(",
"DataSet",
"data",
",",
"int",
"startIndex",
",",
"int",
"count",
")",
"{",
"if",
"(",
"data",
"==",
"null",
")",
"{",
"throw",
"new",
"InvalidOperationException",
"(",
"\"Null data set\"",
")",
";",
"}",
"if",... | Create a subset of the rows of given data set.
@param data Source data set.
@param startIndex Start index (from 0 to <code>data.size()-1</code>).
@param count Number of rows.
@return A new data set containing
the rows in the specified range.
@throws InvalidOperationException if the given data
set is null or if the spec... | [
"Create",
"a",
"subset",
"of",
"the",
"rows",
"of",
"given",
"data",
"set",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DataSet.java#L237-L250 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DataSet.java | DataSet.copyOf | 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 | 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;
} | [
"public",
"static",
"DataSet",
"copyOf",
"(",
"DataSet",
"data",
")",
"{",
"if",
"(",
"data",
"==",
"null",
")",
"{",
"throw",
"new",
"InvalidOperationException",
"(",
"\"Null data set\"",
")",
";",
"}",
"DataSet",
"r",
"=",
"new",
"DataSet",
"(",
"data",
... | Create data set with the same contents of given data set.
@param data Source data set.
@return A new data set containing all
rows in the source data set.
@throws InvalidOperationException if given data set is null. | [
"Create",
"data",
"set",
"with",
"the",
"same",
"contents",
"of",
"given",
"data",
"set",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DataSet.java#L299-L306 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/DataSet.java | DataSet.join | @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 | @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[... | [
"@",
"SafeVarargs",
"public",
"static",
"DataSet",
"join",
"(",
"DataSet",
"...",
"dataSets",
")",
"{",
"if",
"(",
"dataSets",
"==",
"null",
"||",
"dataSets",
".",
"length",
"==",
"0",
")",
"{",
"throw",
"new",
"InvalidOperationException",
"(",
"\"No source ... | Create data set that results from joining
several data sets.
@param dataSets Data sets to join.
@return A new data set containing the rows
from all given data sets.
@throws InvalidOperationException if <code>dataSets</code>
is null or empty or if the data source is not the
same for all data sets. | [
"Create",
"data",
"set",
"that",
"results",
"from",
"joining",
"several",
"data",
"sets",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/DataSet.java#L318-L332 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java | ApiOvhCore.registerHandler | 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 | 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... | [
"public",
"void",
"registerHandler",
"(",
"String",
"method",
",",
"String",
"url",
",",
"OphApiHandler",
"handler",
")",
"{",
"if",
"(",
"mtdHandler",
"==",
"null",
")",
"mtdHandler",
"=",
"new",
"TreeMap",
"<>",
"(",
"String",
".",
"CASE_INSENSITIVE_ORDER",
... | register and handlet linked to a method
@param method
GET PUT POST DELETE or ALL
@param url
@param handler | [
"register",
"and",
"handlet",
"linked",
"to",
"a",
"method"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java#L62-L75 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java | ApiOvhCore.invalidateConsumerKey | private void invalidateConsumerKey(String nic, String currentCK) throws IOException {
config.invalidateConsumerKey(nic, currentCK);
} | java | private void invalidateConsumerKey(String nic, String currentCK) throws IOException {
config.invalidateConsumerKey(nic, currentCK);
} | [
"private",
"void",
"invalidateConsumerKey",
"(",
"String",
"nic",
",",
"String",
"currentCK",
")",
"throws",
"IOException",
"{",
"config",
".",
"invalidateConsumerKey",
"(",
"nic",
",",
"currentCK",
")",
";",
"}"
] | Discard a consumerKey from cache
@param nic
nichandler
@param currentCK
@throws IOException | [
"Discard",
"a",
"consumerKey",
"from",
"cache"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java#L111-L113 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java | ApiOvhCore.getInstance | 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() {
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... | [
"public",
"static",
"ApiOvhCore",
"getInstance",
"(",
")",
"{",
"ApiOvhCore",
"core",
"=",
"new",
"ApiOvhCore",
"(",
")",
";",
"// core._consumerKey = core.config.getConsumerKey();",
"core",
".",
"_consumerKey",
"=",
"core",
".",
"getConsumerKeyOrNull",
"(",
")",
";... | Connect to the OVH API using a consumerKey contains in your ovh config file
or environment variable
@return an ApiOvhCore authenticate by consumerKey | [
"Connect",
"to",
"the",
"OVH",
"API",
"using",
"a",
"consumerKey",
"contains",
"in",
"your",
"ovh",
"config",
"file",
"or",
"environment",
"variable"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java#L202-L225 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java | ApiOvhCore.getInstance | public static ApiOvhCore getInstance(String consumerKey) {
ApiOvhCore core = new ApiOvhCore();
core._consumerKey = consumerKey;
return core;
} | java | public static ApiOvhCore getInstance(String consumerKey) {
ApiOvhCore core = new ApiOvhCore();
core._consumerKey = consumerKey;
return core;
} | [
"public",
"static",
"ApiOvhCore",
"getInstance",
"(",
"String",
"consumerKey",
")",
"{",
"ApiOvhCore",
"core",
"=",
"new",
"ApiOvhCore",
"(",
")",
";",
"core",
".",
"_consumerKey",
"=",
"consumerKey",
";",
"return",
"core",
";",
"}"
] | Connect to the OVH API using a consumerKey
@param consumerKey
the consumerKey
@return an ApiOvhCore authenticate by consumerKey | [
"Connect",
"to",
"the",
"OVH",
"API",
"using",
"a",
"consumerKey"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java#L234-L238 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java | ApiOvhCore.syncTime | 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 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;
}
} | [
"private",
"void",
"syncTime",
"(",
")",
"{",
"try",
"{",
"Long",
"ovhTime",
"=",
"new",
"ApiOvhAuth",
"(",
"this",
")",
".",
"time_GET",
"(",
")",
";",
"long",
"myTime",
"=",
"System",
".",
"currentTimeMillis",
"(",
")",
"/",
"1000L",
";",
"timeOffset... | sync local and remote time | [
"sync",
"local",
"and",
"remote",
"time"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java#L303-L312 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java | ApiOvhCore.getTimestamp | private String getTimestamp() {
if (timeOffset == null)
syncTime();
long now = System.currentTimeMillis() / 1000L;
now -= timeOffset;
return Long.toString(now);
} | java | private String getTimestamp() {
if (timeOffset == null)
syncTime();
long now = System.currentTimeMillis() / 1000L;
now -= timeOffset;
return Long.toString(now);
} | [
"private",
"String",
"getTimestamp",
"(",
")",
"{",
"if",
"(",
"timeOffset",
"==",
"null",
")",
"syncTime",
"(",
")",
";",
"long",
"now",
"=",
"System",
".",
"currentTimeMillis",
"(",
")",
"/",
"1000L",
";",
"now",
"-=",
"timeOffset",
";",
"return",
"L... | issue an time syncronized timestamp.
@return | [
"issue",
"an",
"time",
"syncronized",
"timestamp",
"."
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java#L319-L325 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java | ApiOvhCore.setLoginInfo | public void setLoginInfo(String nic, String password, int timeInSec) {
nic = nic.toLowerCase();
this.nic = nic;
this.password = password;
this.timeInSec = timeInSec;
} | java | public void setLoginInfo(String nic, String password, int timeInSec) {
nic = nic.toLowerCase();
this.nic = nic;
this.password = password;
this.timeInSec = timeInSec;
} | [
"public",
"void",
"setLoginInfo",
"(",
"String",
"nic",
",",
"String",
"password",
",",
"int",
"timeInSec",
")",
"{",
"nic",
"=",
"nic",
".",
"toLowerCase",
"(",
")",
";",
"this",
".",
"nic",
"=",
"nic",
";",
"this",
".",
"password",
"=",
"password",
... | Store password based credential for an automatic certificate generation
@param nic
@param password
@param timeInSec | [
"Store",
"password",
"based",
"credential",
"for",
"an",
"automatic",
"certificate",
"generation"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java#L334-L339 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java | ApiOvhCore.requestToken | 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 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)
... | [
"public",
"OvhCredential",
"requestToken",
"(",
"String",
"redirection",
")",
"throws",
"IOException",
"{",
"OvhAccessRule",
"[",
"]",
"accessRules",
"=",
"new",
"OvhAccessRule",
"[",
"this",
".",
"accessRules",
".",
"length",
"]",
";",
"// {GET POST PUT DELETE} /*"... | Request for a new Token with full access
@param redirection
@return a new OvhCredential | [
"Request",
"for",
"a",
"new",
"Token",
"with",
"full",
"access"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java#L460-L477 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java | ApiOvhCore.exec | 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 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... | [
"public",
"String",
"exec",
"(",
"String",
"apiPath",
",",
"String",
"method",
",",
"String",
"query",
",",
"Object",
"payload",
",",
"boolean",
"needAuth",
")",
"throws",
"IOException",
"{",
"if",
"(",
"payload",
"==",
"null",
")",
"payload",
"=",
"\"\"",... | Call REST entry point and handle errors
@param method
@param query
@param payload
@param needAuth
@return Full response as String
@throws IOException | [
"Call",
"REST",
"entry",
"point",
"and",
"handle",
"errors"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-core/src/main/java/net/minidev/ovh/core/ApiOvhCore.java#L489-L539 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.templateModem_name_DELETE | 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 void templateModem_name_DELETE(String name) throws IOException {
String qPath = "/xdsl/templateModem/{name}";
StringBuilder sb = path(qPath, name);
exec(qPath, "DELETE", sb.toString(), null);
} | [
"public",
"void",
"templateModem_name_DELETE",
"(",
"String",
"name",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/templateModem/{name}\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
",",
"name",
")",
";",
"exec",
"(",
"qPath",... | Delete this Modem Template
REST: DELETE /xdsl/templateModem/{name}
@param name [required] Name of the Modem Template
API beta | [
"Delete",
"this",
"Modem",
"Template"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L150-L154 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.eligibility_cities_GET | 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 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);
} | [
"public",
"ArrayList",
"<",
"OvhCity",
">",
"eligibility_cities_GET",
"(",
"String",
"zipCode",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/eligibility/cities\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
")",
";",
"query",
"... | Get the cities from a zipCode
REST: GET /xdsl/eligibility/cities
@param zipCode [required] The zipCode of the city
@deprecated | [
"Get",
"the",
"cities",
"from",
"a",
"zipCode"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L175-L181 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.eligibility_lines_active_POST | 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 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... | [
"public",
"OvhAsyncTaskArray",
"<",
"OvhLine",
">",
"eligibility_lines_active_POST",
"(",
"OvhCity",
"city",
",",
"String",
"contactName",
",",
"OvhStreet",
"street",
",",
"String",
"streetNumber",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/... | Get the active lines at given address
REST: POST /xdsl/eligibility/lines/active
@param street [required] The information about the street
@param contactName [required] The contact name first three letters
@param city [required] The information about the city
@param streetNumber [required] The number in the street
@dep... | [
"Get",
"the",
"active",
"lines",
"at",
"given",
"address"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L284-L294 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.eligibility_streets_GET | 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 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... | [
"public",
"ArrayList",
"<",
"OvhStreet",
">",
"eligibility_streets_GET",
"(",
"String",
"inseeCode",
",",
"String",
"partialName",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/eligibility/streets\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(... | Get the streets from a city inseeCode and partial street name
REST: GET /xdsl/eligibility/streets
@param inseeCode [required] The inseeCode of the city
@param partialName [required] The partial name to match against the name of the street
@deprecated | [
"Get",
"the",
"streets",
"from",
"a",
"city",
"inseeCode",
"and",
"partial",
"street",
"name"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L304-L311 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.eligibility_meetings_GET | 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 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... | [
"public",
"OvhAsyncTask",
"<",
"OvhMeetingSlots",
">",
"eligibility_meetings_GET",
"(",
"String",
"eligibilityId",
",",
"String",
"offerLabel",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/eligibility/meetings\"",
";",
"StringBuilder",
"sb",
"=",
... | Search for meeting time slot
REST: GET /xdsl/eligibility/meetings
@param offerLabel [required] The choosen offer label
@param eligibilityId [required] The eligibility test id
@deprecated | [
"Search",
"for",
"meeting",
"time",
"slot"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L322-L329 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_lines_number_diagnostic_run_POST | 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 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... | [
"public",
"OvhDiagnostic",
"serviceName_lines_number_diagnostic_run_POST",
"(",
"String",
"serviceName",
",",
"String",
"number",
",",
"OvhCustomerActionsEnum",
"[",
"]",
"actionsDone",
",",
"OvhAnswers",
"answers",
",",
"OvhFaultTypeEnum",
"faultType",
")",
"throws",
"IO... | Update and get advanced diagnostic of the line
REST: POST /xdsl/{serviceName}/lines/{number}/diagnostic/run
@param actionsDone [required] Customer possible actions
@param answers [required] Customer answers for line diagnostic
@param faultType [required] [default=noSync] Line diagnostic type. Depends of problem
@param... | [
"Update",
"and",
"get",
"advanced",
"diagnostic",
"of",
"the",
"line"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L412-L421 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_lines_number_diagnostic_cancel_POST | 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 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);
} | [
"public",
"void",
"serviceName_lines_number_diagnostic_cancel_POST",
"(",
"String",
"serviceName",
",",
"String",
"number",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/lines/{number}/diagnostic/cancel\"",
";",
"StringBuilder",
"sb",
"=",
... | Cancel line diagnostic if possible
REST: POST /xdsl/{serviceName}/lines/{number}/diagnostic/cancel
@param serviceName [required] The internal name of your XDSL offer
@param number [required] The number of the line | [
"Cancel",
"line",
"diagnostic",
"if",
"possible"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L430-L434 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_lines_number_statistics_GET | 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 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... | [
"public",
"OvhUnitAndValues",
"<",
"OvhTimestampAndValue",
">",
"serviceName_lines_number_statistics_GET",
"(",
"String",
"serviceName",
",",
"String",
"number",
",",
"OvhStatisticsPeriodEnum",
"period",
",",
"OvhLineStatisticsTypeEnum",
"type",
")",
"throws",
"IOException",
... | Get various statistics about the line
REST: GET /xdsl/{serviceName}/lines/{number}/statistics
@param type [required]
@param period [required]
@param serviceName [required] The internal name of your XDSL offer
@param number [required] The number of the line | [
"Get",
"various",
"statistics",
"about",
"the",
"line"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L459-L466 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_lines_number_dslamPort_changeProfile_POST | 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 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... | [
"public",
"OvhTask",
"serviceName_lines_number_dslamPort_changeProfile_POST",
"(",
"String",
"serviceName",
",",
"String",
"number",
",",
"Long",
"dslamProfileId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/lines/{number}/dslamPort/changeP... | Change the profile of the port
REST: POST /xdsl/{serviceName}/lines/{number}/dslamPort/changeProfile
@param dslamProfileId [required] The id of the xdsl.DslamLineProfile
@param serviceName [required] The internal name of your XDSL offer
@param number [required] The number of the line | [
"Change",
"the",
"profile",
"of",
"the",
"port"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L477-L484 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_lines_number_dslamPort_logs_GET | 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<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... | [
"public",
"ArrayList",
"<",
"OvhDslamPortLog",
">",
"serviceName_lines_number_dslamPort_logs_GET",
"(",
"String",
"serviceName",
",",
"String",
"number",
",",
"Long",
"limit",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/lines/{number}... | Get the logs emitted by the DSLAM for this port
REST: GET /xdsl/{serviceName}/lines/{number}/dslamPort/logs
@param limit [required] [default=50]
@param serviceName [required] The internal name of your XDSL offer
@param number [required] The number of the line | [
"Get",
"the",
"logs",
"emitted",
"by",
"the",
"DSLAM",
"for",
"this",
"port"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L522-L528 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_lines_number_dslamPort_availableProfiles_GET | 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 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... | [
"public",
"ArrayList",
"<",
"OvhDslamLineProfile",
">",
"serviceName_lines_number_dslamPort_availableProfiles_GET",
"(",
"String",
"serviceName",
",",
"String",
"number",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/lines/{number}/dslamPort/... | List all availables profiles for this port
REST: GET /xdsl/{serviceName}/lines/{number}/dslamPort/availableProfiles
@param serviceName [required] The internal name of your XDSL offer
@param number [required] The number of the line | [
"List",
"all",
"availables",
"profiles",
"for",
"this",
"port"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L538-L543 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_statistics_GET | 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 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,... | [
"public",
"OvhUnitAndValues",
"<",
"OvhTimestampAndValue",
">",
"serviceName_statistics_GET",
"(",
"String",
"serviceName",
",",
"OvhStatisticsPeriodEnum",
"period",
",",
"OvhAccessStatisticsTypeEnum",
"type",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"... | Get various statistics about this access
REST: GET /xdsl/{serviceName}/statistics
@param period [required]
@param type [required]
@param serviceName [required] The internal name of your XDSL offer | [
"Get",
"various",
"statistics",
"about",
"this",
"access"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L593-L600 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_resiliate_POST | 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 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>(... | [
"public",
"OvhResiliationFollowUpDetail",
"serviceName_resiliate_POST",
"(",
"String",
"serviceName",
",",
"Date",
"resiliationDate",
",",
"OvhResiliationSurvey",
"resiliationSurvey",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/resiliate\""... | Resiliate the access
REST: POST /xdsl/{serviceName}/resiliate
@param resiliationSurvey [required] Comment about resiliation reasons
@param resiliationDate [required] The desired resiliation date
@param serviceName [required] The internal name of your XDSL offer | [
"Resiliate",
"the",
"access"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L626-L634 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_updateInvalidOrMissingRio_POST | 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_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... | [
"public",
"void",
"serviceName_updateInvalidOrMissingRio_POST",
"(",
"String",
"serviceName",
",",
"Boolean",
"relaunchWithoutPortability",
",",
"String",
"rio",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/updateInvalidOrMissingRio\"",
";... | Update RIO, or disable portability, for order in error because of missing or invalid RIO
REST: POST /xdsl/{serviceName}/updateInvalidOrMissingRio
@param rio [required] RIO number for portability
@param relaunchWithoutPortability [required] Do not set RIO, and relaunch order without portability
@param serviceName [requ... | [
"Update",
"RIO",
"or",
"disable",
"portability",
"for",
"order",
"in",
"error",
"because",
"of",
"missing",
"or",
"invalid",
"RIO"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L644-L651 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_modem_duplicatePortMappingConfig_POST | 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 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... | [
"public",
"void",
"serviceName_modem_duplicatePortMappingConfig_POST",
"(",
"String",
"serviceName",
",",
"String",
"accessName",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/modem/duplicatePortMappingConfig\"",
";",
"StringBuilder",
"sb",
... | Remove all the current port mapping rules and set the same config as the access given in parameters
REST: POST /xdsl/{serviceName}/modem/duplicatePortMappingConfig
@param accessName [required] The access name with the config you want to duplicate
@param serviceName [required] The internal name of your XDSL offer
@depr... | [
"Remove",
"all",
"the",
"current",
"port",
"mapping",
"rules",
"and",
"set",
"the",
"same",
"config",
"as",
"the",
"access",
"given",
"in",
"parameters"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L687-L693 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_modem_availableWLANChannel_GET | 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 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... | [
"public",
"ArrayList",
"<",
"Long",
">",
"serviceName_modem_availableWLANChannel_GET",
"(",
"String",
"serviceName",
",",
"OvhWLANFrequencyEnum",
"frequency",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/modem/availableWLANChannel\"",
";",... | List available WLAN channel for this modem
REST: GET /xdsl/{serviceName}/modem/availableWLANChannel
@param frequency [required] WLAN frequency you want to retrieve channels
@param serviceName [required] The internal name of your XDSL offer | [
"List",
"available",
"WLAN",
"channel",
"for",
"this",
"modem"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L760-L766 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_modem_reboot_POST | 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_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... | [
"public",
"OvhTask",
"serviceName_modem_reboot_POST",
"(",
"String",
"serviceName",
",",
"Date",
"todoDate",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/modem/reboot\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
",",
... | Reboot the modem
REST: POST /xdsl/{serviceName}/modem/reboot
@param todoDate [required] Date when the reboot will start
@param serviceName [required] The internal name of your XDSL offer | [
"Reboot",
"the",
"modem"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L789-L796 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_modem_blocIp_POST | 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 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... | [
"public",
"OvhTask",
"serviceName_modem_blocIp_POST",
"(",
"String",
"serviceName",
",",
"OvhServiceStatusEnum",
"status",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/modem/blocIp\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"q... | Change the status of the Bloc IP on modem
REST: POST /xdsl/{serviceName}/modem/blocIp
@param status [required] the new status of the bloc ip service
@param serviceName [required] The internal name of your XDSL offer | [
"Change",
"the",
"status",
"of",
"the",
"Bloc",
"IP",
"on",
"modem"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L805-L812 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_modem_retrieveInfo_POST | 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 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);
} | [
"public",
"OvhAsyncTask",
"<",
"OvhModemInfo",
">",
"serviceName_modem_retrieveInfo_POST",
"(",
"String",
"serviceName",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/modem/retrieveInfo\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
... | get general Modem information
REST: POST /xdsl/{serviceName}/modem/retrieveInfo
@param serviceName [required] The internal name of your XDSL offer | [
"get",
"general",
"Modem",
"information"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L833-L838 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_modem_lan_lanName_dhcp_dhcpName_DHCPStaticAddresses_POST | 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 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... | [
"public",
"OvhDHCPStaticAddress",
"serviceName_modem_lan_lanName_dhcp_dhcpName_DHCPStaticAddresses_POST",
"(",
"String",
"serviceName",
",",
"String",
"lanName",
",",
"String",
"dhcpName",
",",
"String",
"IPAddress",
",",
"String",
"MACAddress",
",",
"String",
"name",
")",
... | Add a DHCP static lease
REST: POST /xdsl/{serviceName}/modem/lan/{lanName}/dhcp/{dhcpName}/DHCPStaticAddresses
@param name [required] Name of the DHCP static lease
@param IPAddress [required] The IP address of the device
@param MACAddress [required] The MAC address of the device
@param serviceName [required] The inter... | [
"Add",
"a",
"DHCP",
"static",
"lease"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L1070-L1079 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_modem_lan_lanName_dhcp_dhcpName_DHCPStaticAddresses_MACAddress_DELETE | 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_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 = ... | [
"public",
"OvhTask",
"serviceName_modem_lan_lanName_dhcp_dhcpName_DHCPStaticAddresses_MACAddress_DELETE",
"(",
"String",
"serviceName",
",",
"String",
"lanName",
",",
"String",
"dhcpName",
",",
"String",
"MACAddress",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=... | Delete this port mapping
REST: DELETE /xdsl/{serviceName}/modem/lan/{lanName}/dhcp/{dhcpName}/DHCPStaticAddresses/{MACAddress}
@param serviceName [required] The internal name of your XDSL offer
@param lanName [required] Name of the LAN
@param dhcpName [required] Name of the DHCP
@param MACAddress [required] The MAC ad... | [
"Delete",
"this",
"port",
"mapping"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L1122-L1127 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_modem_reset_POST | 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 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... | [
"public",
"OvhTask",
"serviceName_modem_reset_POST",
"(",
"String",
"serviceName",
",",
"Boolean",
"resetOvhConfig",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/modem/reset\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
... | Reset the modem to its default configuration
REST: POST /xdsl/{serviceName}/modem/reset
@param resetOvhConfig [required] Reset configuration stored in OVH databases
@param serviceName [required] The internal name of your XDSL offer | [
"Reset",
"the",
"modem",
"to",
"its",
"default",
"configuration"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L1257-L1264 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_modem_portMappings_POST | 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 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... | [
"public",
"OvhPortMapping",
"serviceName_modem_portMappings_POST",
"(",
"String",
"serviceName",
",",
"String",
"allowedRemoteIp",
",",
"String",
"description",
",",
"Long",
"externalPortEnd",
",",
"Long",
"externalPortStart",
",",
"String",
"internalClient",
",",
"Long",... | Add a port mapping
REST: POST /xdsl/{serviceName}/modem/portMappings
@param protocol [required] Protocol of the port mapping (TCP / UDP)
@param name [required] Name of the port mapping entry
@param allowedRemoteIp [required] An ip which will access to the defined rule. Default : no restriction applied
@param internalP... | [
"Add",
"a",
"port",
"mapping"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L1335-L1349 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_monitoringNotifications_GET | 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 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);
} | [
"public",
"ArrayList",
"<",
"Long",
">",
"serviceName_monitoringNotifications_GET",
"(",
"String",
"serviceName",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/monitoringNotifications\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
... | List the notifications for this access
REST: GET /xdsl/{serviceName}/monitoringNotifications
@param serviceName [required] The internal name of your XDSL offer | [
"List",
"the",
"notifications",
"for",
"this",
"access"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L1425-L1430 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_monitoringNotifications_POST | 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 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... | [
"public",
"OvhMonitoringNotification",
"serviceName_monitoringNotifications_POST",
"(",
"String",
"serviceName",
",",
"Boolean",
"allowIncident",
",",
"Long",
"downThreshold",
",",
"String",
"email",
",",
"OvhFrequencyEnum",
"frequency",
",",
"String",
"phone",
",",
"Stri... | Add a notification
REST: POST /xdsl/{serviceName}/monitoringNotifications
@param frequency [required]
@param downThreshold [required] [default=120] The number of seconds the access has to be down to trigger the alert
@param phone [required] The phone number, if type is sms
@param type [required]
@param smsAccount [req... | [
"Add",
"a",
"notification"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L1445-L1458 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_ips_ip_DELETE | 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 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);
} | [
"public",
"void",
"serviceName_ips_ip_DELETE",
"(",
"String",
"serviceName",
",",
"String",
"ip",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/ips/{ip}\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
",",
"serviceName"... | Stop renewing this extra IPv4 option
REST: DELETE /xdsl/{serviceName}/ips/{ip}
@param serviceName [required] The internal name of your XDSL offer
@param ip [required] The IP address | [
"Stop",
"renewing",
"this",
"extra",
"IPv4",
"option"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L1481-L1485 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_antiSpams_ip_evidences_GET | 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 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... | [
"public",
"OvhEvidencesInfo",
"serviceName_antiSpams_ip_evidences_GET",
"(",
"String",
"serviceName",
",",
"String",
"ip",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/antiSpams/{ip}/evidences\"",
";",
"StringBuilder",
"sb",
"=",
"path",... | List of evidences stored on PCS for this ip
REST: GET /xdsl/{serviceName}/antiSpams/{ip}/evidences
@param serviceName [required] The internal name of your XDSL offer
@param ip [required] IP which spam | [
"List",
"of",
"evidences",
"stored",
"on",
"PCS",
"for",
"this",
"ip"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L1534-L1539 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_radiusConnectionLogs_GET | 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 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);
} | [
"public",
"ArrayList",
"<",
"OvhRadiusConnectionLog",
">",
"serviceName_radiusConnectionLogs_GET",
"(",
"String",
"serviceName",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/radiusConnectionLogs\"",
";",
"StringBuilder",
"sb",
"=",
"path... | List the radius connection logs
REST: GET /xdsl/{serviceName}/radiusConnectionLogs
@param serviceName [required] The internal name of your XDSL offer | [
"List",
"the",
"radius",
"connection",
"logs"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L1612-L1617 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_requestTotalDeconsolidation_POST | 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 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... | [
"public",
"OvhTask",
"serviceName_requestTotalDeconsolidation_POST",
"(",
"String",
"serviceName",
",",
"Boolean",
"noPortability",
",",
"String",
"rio",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/requestTotalDeconsolidation\"",
";",
"... | Switch this access to total deconsolidation
REST: POST /xdsl/{serviceName}/requestTotalDeconsolidation
@param noPortability [required] Do not port the number
@param rio [required] A token to prove the ownership of the line number, needed to port the number
@param serviceName [required] The internal name of your XDSL o... | [
"Switch",
"this",
"access",
"to",
"total",
"deconsolidation"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L1730-L1738 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_sendOrderToProvider_POST | 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 void serviceName_sendOrderToProvider_POST(String serviceName) throws IOException {
String qPath = "/xdsl/{serviceName}/sendOrderToProvider";
StringBuilder sb = path(qPath, serviceName);
exec(qPath, "POST", sb.toString(), null);
} | [
"public",
"void",
"serviceName_sendOrderToProvider_POST",
"(",
"String",
"serviceName",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/sendOrderToProvider\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
",",
"serviceName",
"... | Unlock order in "waitingCustomer" status. It only concerns orders whose modem is sent before anything have been forwarded to our provider
REST: POST /xdsl/{serviceName}/sendOrderToProvider
@param serviceName [required] The internal name of your XDSL offer | [
"Unlock",
"order",
"in",
"waitingCustomer",
"status",
".",
"It",
"only",
"concerns",
"orders",
"whose",
"modem",
"is",
"sent",
"before",
"anything",
"have",
"been",
"forwarded",
"to",
"our",
"provider"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L1746-L1750 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.serviceName_orderFollowup_GET | 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 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);
} | [
"public",
"ArrayList",
"<",
"OvhStep",
">",
"serviceName_orderFollowup_GET",
"(",
"String",
"serviceName",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/{serviceName}/orderFollowup\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
",",
... | Get the status of the order
REST: GET /xdsl/{serviceName}/orderFollowup
@param serviceName [required] The internal name of your XDSL offer | [
"Get",
"the",
"status",
"of",
"the",
"order"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L1843-L1848 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.email_pro_email_changePassword_POST | 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 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... | [
"public",
"net",
".",
"minidev",
".",
"ovh",
".",
"api",
".",
"xdsl",
".",
"email",
".",
"pro",
".",
"OvhTask",
"email_pro_email_changePassword_POST",
"(",
"String",
"email",
",",
"String",
"password",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=... | Change the email password
REST: POST /xdsl/email/pro/{email}/changePassword
@param password [required] New email password
@param email [required] The email address if the XDSL Email Pro | [
"Change",
"the",
"email",
"password"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L1949-L1956 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.incidents_GET | 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 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, ... | [
"public",
"ArrayList",
"<",
"Long",
">",
"incidents_GET",
"(",
"Date",
"creationDate",
",",
"Date",
"endDate",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/incidents\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
")",
";",
... | List of incidents
REST: GET /xdsl/incidents
@param creationDate [required] Filter the value of creationDate property (>)
@param endDate [required] Filter the value of endDate property (<) | [
"List",
"of",
"incidents"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L1977-L1984 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java | ApiOvhXdsl.spare_spare_returnMerchandise_POST | 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 | 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);
} | [
"public",
"void",
"spare_spare_returnMerchandise_POST",
"(",
"String",
"spare",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/xdsl/spare/{spare}/returnMerchandise\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
",",
"spare",
")",
";",
"ex... | Return the broken equipment in instantRefund
REST: POST /xdsl/spare/{spare}/returnMerchandise
@param spare [required] The internal name of your spare | [
"Return",
"the",
"broken",
"equipment",
"in",
"instantRefund"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-xdsl/src/main/java/net/minidev/ovh/api/ApiOvhXdsl.java#L2032-L2036 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/Misc.java | Misc.toHexString | 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 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);
} | [
"static",
"String",
"toHexString",
"(",
"byte",
"[",
"]",
"data",
")",
"{",
"char",
"[",
"]",
"chArray",
"=",
"new",
"char",
"[",
"data",
".",
"length",
"*",
"2",
"]",
";",
"int",
"pos",
"=",
"0",
";",
"for",
"(",
"byte",
"b",
":",
"data",
")",... | Convert byte array to a "hexa"-string.
@param data Byte array to convert.
@return "Hexa-string" representation. | [
"Convert",
"byte",
"array",
"to",
"a",
"hexa",
"-",
"string",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/Misc.java#L56-L64 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/Misc.java | Misc.fromHexString | 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[] 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++)... | [
"static",
"byte",
"[",
"]",
"fromHexString",
"(",
"String",
"str",
")",
"{",
"if",
"(",
"str",
".",
"length",
"(",
")",
"%",
"2",
"!=",
"0",
")",
"{",
"throw",
"new",
"InvalidOperationException",
"(",
"\"Hex-string has odd length!\"",
")",
";",
"}",
"byt... | Convert a "hexa"-string to a byte array.
@param str Input string.
@return Corresponding array of bytes. | [
"Convert",
"a",
"hexa",
"-",
"string",
"to",
"a",
"byte",
"array",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/Misc.java#L71-L86 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/Misc.java | Misc.sha1 | 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 | 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... | [
"static",
"byte",
"[",
"]",
"sha1",
"(",
"InputStream",
"in",
")",
"{",
"try",
"{",
"MessageDigest",
"md",
"=",
"MessageDigest",
".",
"getInstance",
"(",
"SHA1_DIGEST",
")",
";",
"byte",
"[",
"]",
"buffer",
"=",
"new",
"byte",
"[",
"4096",
"]",
";",
... | Compute SHA-1 hash value for a given input stream.
@param in Input stream
@return SHA-1 hash value (array of 20 bytes). | [
"Compute",
"SHA",
"-",
"1",
"hash",
"value",
"for",
"a",
"given",
"input",
"stream",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/Misc.java#L96-L109 | train |
JDBDT/jdbdt | src/main/java/org/jdbdt/Misc.java | Misc.sqlArgumentList | @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 | @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();
} | [
"@",
"SafeVarargs",
"static",
"<",
"T",
">",
"String",
"sqlArgumentList",
"(",
"T",
"...",
"values",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"values",
".",
"length",
"!=",
"0",
")",
"{",
"sb",
".",
"app... | Obtain string for SQL argument list from array.
@param <T> Type of data.
@param values Array of values.
@return CSV string | [
"Obtain",
"string",
"for",
"SQL",
"argument",
"list",
"from",
"array",
"."
] | 7e32845ad41dfbc5d6fd0fd561e3613697186df4 | https://github.com/JDBDT/jdbdt/blob/7e32845ad41dfbc5d6fd0fd561e3613697186df4/src/main/java/org/jdbdt/Misc.java#L117-L127 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java | ApiOvhDbaaslogs.offer_reference_GET | 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 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);
} | [
"public",
"OvhPublicOffer",
"offer_reference_GET",
"(",
"String",
"reference",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/dbaas/logs/offer/{reference}\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
",",
"reference",
")",
";",
"String"... | Display specified offer
REST: GET /dbaas/logs/offer/{reference}
@param reference [required] Reference | [
"Display",
"specified",
"offer"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java#L77-L82 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java | ApiOvhDbaaslogs.input_engine_engineId_GET | 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 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);
} | [
"public",
"OvhEngine",
"input_engine_engineId_GET",
"(",
"String",
"engineId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/dbaas/logs/input/engine/{engineId}\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
",",
"engineId",
")",
";",
"St... | Returns details of specified input engine
REST: GET /dbaas/logs/input/engine/{engineId}
@param engineId [required] Engine ID | [
"Returns",
"details",
"of",
"specified",
"input",
"engine"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java#L90-L95 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java | ApiOvhDbaaslogs.serviceName_cluster_clusterId_allowedNetwork_POST | 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_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... | [
"public",
"OvhOperation",
"serviceName_cluster_clusterId_allowedNetwork_POST",
"(",
"String",
"serviceName",
",",
"String",
"clusterId",
",",
"OvhClusterAllowedNetworkFlowTypeEnum",
"flowType",
",",
"String",
"network",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
... | Allow an IP to contact cluster
REST: POST /dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork
@param serviceName [required] Service name
@param clusterId [required] Cluster ID
@param network [required] IP block
@param flowType [required] Flow type | [
"Allow",
"an",
"IP",
"to",
"contact",
"cluster"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java#L158-L166 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java | ApiOvhDbaaslogs.serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_DELETE | 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 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... | [
"public",
"OvhOperation",
"serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_DELETE",
"(",
"String",
"serviceName",
",",
"String",
"clusterId",
",",
"String",
"allowedNetworkId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/dbaas/logs/{serviceName}... | Remove the specified IP from the list of allowed networks
REST: DELETE /dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork/{allowedNetworkId}
@param serviceName [required] Service name
@param clusterId [required] Cluster ID
@param allowedNetworkId [required] Allowed network UUID | [
"Remove",
"the",
"specified",
"IP",
"from",
"the",
"list",
"of",
"allowed",
"networks"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java#L176-L181 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java | ApiOvhDbaaslogs.serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_GET | 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 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... | [
"public",
"OvhClusterAllowedNetwork",
"serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_GET",
"(",
"String",
"serviceName",
",",
"String",
"clusterId",
",",
"String",
"allowedNetworkId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/dbaas/logs/{ser... | Returns details of an allowed network
REST: GET /dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork/{allowedNetworkId}
@param serviceName [required] Service name
@param clusterId [required] Cluster ID
@param allowedNetworkId [required] Allowed network UUID | [
"Returns",
"details",
"of",
"an",
"allowed",
"network"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java#L191-L196 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java | ApiOvhDbaaslogs.serviceName_input_inputId_configuration_logstash_GET | 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 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... | [
"public",
"OvhLogstashConfiguration",
"serviceName_input_inputId_configuration_logstash_GET",
"(",
"String",
"serviceName",
",",
"String",
"inputId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/dbaas/logs/{serviceName}/input/{inputId}/configuration/logstash\"",
"... | Returns the logstash configuration
REST: GET /dbaas/logs/{serviceName}/input/{inputId}/configuration/logstash
@param serviceName [required] Service name
@param inputId [required] Input ID | [
"Returns",
"the",
"logstash",
"configuration"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java#L258-L263 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java | ApiOvhDbaaslogs.serviceName_input_inputId_configuration_logstash_PUT | 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 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... | [
"public",
"OvhOperation",
"serviceName_input_inputId_configuration_logstash_PUT",
"(",
"String",
"serviceName",
",",
"String",
"inputId",
",",
"String",
"filterSection",
",",
"String",
"inputSection",
",",
"String",
"patternSection",
")",
"throws",
"IOException",
"{",
"St... | Update the logstash configuration
REST: PUT /dbaas/logs/{serviceName}/input/{inputId}/configuration/logstash
@param serviceName [required] Service name
@param inputId [required] Input ID
@param patternSection [required] Pattern section
@param inputSection [required] Input section
@param filterSection [required] Filter... | [
"Update",
"the",
"logstash",
"configuration"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java#L275-L284 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java | ApiOvhDbaaslogs.serviceName_input_inputId_configuration_flowgger_GET | 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 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... | [
"public",
"OvhFlowggerConfiguration",
"serviceName_input_inputId_configuration_flowgger_GET",
"(",
"String",
"serviceName",
",",
"String",
"inputId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/dbaas/logs/{serviceName}/input/{inputId}/configuration/flowgger\"",
"... | Returns the flowgger configuration
REST: GET /dbaas/logs/{serviceName}/input/{inputId}/configuration/flowgger
@param serviceName [required] Service name
@param inputId [required] Input ID | [
"Returns",
"the",
"flowgger",
"configuration"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java#L293-L298 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java | ApiOvhDbaaslogs.serviceName_input_inputId_configuration_flowgger_PUT | 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 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... | [
"public",
"OvhOperation",
"serviceName_input_inputId_configuration_flowgger_PUT",
"(",
"String",
"serviceName",
",",
"String",
"inputId",
",",
"OvhFlowggerConfigurationLogFormatEnum",
"logFormat",
",",
"OvhFlowggerConfigurationLogFramingEnum",
"logFraming",
")",
"throws",
"IOExcept... | Update the flowgger configuration
REST: PUT /dbaas/logs/{serviceName}/input/{inputId}/configuration/flowgger
@param serviceName [required] Service name
@param inputId [required] Input ID
@param logFraming [required] Log framing
@param logFormat [required] configuration log format | [
"Update",
"the",
"flowgger",
"configuration"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java#L309-L317 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java | ApiOvhDbaaslogs.serviceName_input_inputId_GET | 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 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);
... | [
"public",
"OvhInput",
"serviceName_input_inputId_GET",
"(",
"String",
"serviceName",
",",
"String",
"inputId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/dbaas/logs/{serviceName}/input/{inputId}\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPat... | Returns details of specified input
REST: GET /dbaas/logs/{serviceName}/input/{inputId}
@param serviceName [required] Service name
@param inputId [required] Input ID | [
"Returns",
"details",
"of",
"specified",
"input"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java#L396-L401 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java | ApiOvhDbaaslogs.serviceName_input_inputId_PUT | 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_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... | [
"public",
"OvhOperation",
"serviceName_input_inputId_PUT",
"(",
"String",
"serviceName",
",",
"String",
"inputId",
",",
"String",
"description",
",",
"String",
"engineId",
",",
"String",
"exposedPort",
",",
"String",
"optionId",
",",
"Boolean",
"singleInstanceEnabled",
... | Update information of specified input object
REST: PUT /dbaas/logs/{serviceName}/input/{inputId}
@param serviceName [required] Service name
@param inputId [required] Input ID
@param streamId [required] Stream ID
@param engineId [required] Engine ID
@param description [required] Description
@param singleInstanceEnabled... | [
"Update",
"information",
"of",
"specified",
"input",
"object"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java#L417-L430 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java | ApiOvhDbaaslogs.serviceName_input_inputId_allowedNetwork_POST | 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 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,... | [
"public",
"OvhOperation",
"serviceName_input_inputId_allowedNetwork_POST",
"(",
"String",
"serviceName",
",",
"String",
"inputId",
",",
"String",
"network",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/dbaas/logs/{serviceName}/input/{inputId}/allowedNetwork\""... | Allow an ip to join input
REST: POST /dbaas/logs/{serviceName}/input/{inputId}/allowedNetwork
@param serviceName [required] Service name
@param inputId [required] Input ID
@param network [required] IP block | [
"Allow",
"an",
"ip",
"to",
"join",
"input"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java#L497-L504 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java | ApiOvhDbaaslogs.serviceName_input_inputId_allowedNetwork_allowedNetworkId_GET | 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 | 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, ... | [
"public",
"OvhAllowedNetwork",
"serviceName_input_inputId_allowedNetwork_allowedNetworkId_GET",
"(",
"String",
"serviceName",
",",
"String",
"inputId",
",",
"String",
"allowedNetworkId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/dbaas/logs/{serviceName}/inp... | List all network UUID allowed to join input
REST: GET /dbaas/logs/{serviceName}/input/{inputId}/allowedNetwork/{allowedNetworkId}
@param serviceName [required] Service name
@param inputId [required] Input ID
@param allowedNetworkId [required] Allowed network ID | [
"List",
"all",
"network",
"UUID",
"allowed",
"to",
"join",
"input"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-dbaaslogs/src/main/java/net/minidev/ovh/api/ApiOvhDbaaslogs.java#L529-L534 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.