code
stringlengths
73
34.1k
label
stringclasses
1 value
public static void waitUntilNoActivityUpTo(Jenkins jenkins, int timeout) throws Exception { long startTime = System.currentTimeMillis(); int streak = 0; while (true) { Thread.sleep(10); if (isSomethingHappening(jenkins)) { streak = 0; } else {...
java
public boolean waitUp(String cloudId, DockerSlaveTemplate dockerSlaveTemplate, InspectContainerResponse containerInspect) { if (isFalse(containerInspect.getState().getRunning())) { throw new IllegalStateException("Container '" + containerInspect.getId() + "' is not running!...
java
public ClientBuilderForConnector forConnector(DockerConnector connector) throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException { LOG.debug("Building connection to docker host '{}'", connector.getServerUrl()); withCredentialsId(connector.getCred...
java
public ClientBuilderForConnector withCredentialsId(String credentialsId) throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException { if (isNotBlank(credentialsId)) { withCredentials(lookupSystemCredentials(credentialsId)); } else { ...
java
public static Credentials lookupSystemCredentials(String credentialsId) { return firstOrNull( lookupCredentials( Credentials.class, Jenkins.getInstance(), ACL.SYSTEM, emptyList() ), ...
java
@Nonnull public List<DockerSlaveTemplate> getTemplates(Label label) { List<DockerSlaveTemplate> dockerSlaveTemplates = new ArrayList<>(); for (DockerSlaveTemplate t : templates) { if (isNull(label) && t.getMode() == Node.Mode.NORMAL) { dockerSlaveTemplates.add(t); ...
java
public void setTemplates(List<DockerSlaveTemplate> replaceTemplates) { if (replaceTemplates != null) { templates = new ArrayList<>(replaceTemplates); } else { templates = Collections.emptyList(); } }
java
protected void decrementAmiSlaveProvision(DockerSlaveTemplate container) { synchronized (provisionedImages) { int currentProvisioning = 0; if (provisionedImages.containsKey(container)) { currentProvisioning = provisionedImages.get(container); } pro...
java
public void execInternal(@Nonnull final DockerClient client, @Nonnull final String imageName, TaskListener listener) throws IOException { PrintStream llog = listener.getLogger(); if (shouldPullImage(client, imageName)) { LOG.info("Pulling image '{}'. This may take awhile...", im...
java
public void resolveCreds() { final AuthConfigurations authConfigs = new AuthConfigurations(); for (Map.Entry<String, String> entry : creds.entrySet()) { final String registry = entry.getKey(); final String credId = entry.getValue(); final Credentials credentials = Cl...
java
protected List<DockerCloud> getAvailableDockerClouds(Label label) { return getAllDockerClouds().stream() .filter(cloud -> cloud.canProvision(label) && (countCurrentDockerSlaves(cloud) >= 0) && (countCurrentDo...
java
public static AppEngineDescriptor parse(InputStream in) throws IOException, SAXException { Preconditions.checkNotNull(in, "Null input"); try { DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); documentBuilderFactory.setNamespaceAware(true); return new AppEng...
java
public String getRuntime() throws AppEngineException { String runtime = getText(getNode(document, "appengine-web-app", "runtime")); if (runtime == null) { runtime = "java7"; // the default runtime when not specified. } return runtime; }
java
@Nullable public String getServiceId() throws AppEngineException { String serviceId = getText(getNode(document, "appengine-web-app", "service")); if (serviceId != null) { return serviceId; } return getText(getNode(document, "appengine-web-app", "module")); }
java
private static Map<String, String> getAttributeMap( Node parent, String nodeName, String keyAttributeName, String valueAttributeName) throws AppEngineException { Map<String, String> nameValueAttributeMap = new HashMap<>(); if (parent.hasChildNodes()) { for (int i = 0; i < parent.getChildNodes...
java
@Nullable private static Node getNode(Document doc, String parentNodeName, String targetNodeName) { NodeList parentElements = doc.getElementsByTagNameNS(APP_ENGINE_NAMESPACE, parentNodeName); if (parentElements.getLength() > 0) { Node parent = parentElements.item(0); if (parent.hasChildNodes()) { ...
java
public void login() throws AppEngineException { try { runner.run(ImmutableList.of("auth", "login"), null); } catch (ProcessHandlerException | IOException ex) { throw new AppEngineException(ex); } }
java
public void activateServiceAccount(Path jsonFile) throws AppEngineException { Preconditions.checkArgument(Files.exists(jsonFile), "File does not exist: " + jsonFile); try { List<String> args = new ArrayList<>(3); args.add("auth"); args.add("activate-service-account"); args.addAll(GcloudA...
java
@Override public int compareTo(CloudSdkVersion other) { Preconditions.checkNotNull(other); if ("HEAD".equals(version) && !"HEAD".equals(other.version)) { return 1; } else if (!"HEAD".equals(version) && "HEAD".equals(other.version)) { return -1; } // First, compare required fields ...
java
public void deploy(DeployConfiguration config) throws AppEngineException { Preconditions.checkNotNull(config); Preconditions.checkNotNull(config.getDeployables()); Preconditions.checkArgument(config.getDeployables().size() > 0); Path workingDirectory = null; List<String> arguments = new ArrayList<>...
java
@Override public int compareTo(CloudSdkVersionPreRelease other) { Preconditions.checkNotNull(other); // Compare segments from left to right. A smaller number of pre-release segments comes before a // higher number, if all preceding segments are equal. int index = 0; while (index < this.segments.s...
java
public static boolean contains(String className) { if (className.startsWith("javax.")) { return !isBundledInJre(className) || WHITELIST.contains(className); } else if (className.startsWith("java.") || className.startsWith("sun.util.") || className.startsWith("org.xml.sax.") || clas...
java
private static boolean isBundledInJre(String className) { if (className.startsWith("javax.accessibility.") || className.startsWith("javax.activation.") || className.startsWith("javax.activity.") || className.startsWith("javax.annotation.") || className.startsWith("javax.crypto.") ...
java
public boolean isInstalled() throws ManagedSdkVerificationException, ManagedSdkVersionMismatchException { if (getSdkHome() == null) { return false; } if (!Files.isDirectory(getSdkHome())) { return false; } if (!Files.isRegularFile(getGcloudPath())) { return false; } /...
java
public boolean isUpToDate() throws ManagedSdkVerificationException { if (!Files.isRegularFile(getGcloudPath())) { return false; } if (version != Version.LATEST) { return true; } List<String> updateAvailableCommand = Arrays.asList( getGcloudPath().toString(), ...
java
public Extractor newExtractor(Path archive, Path destination, ProgressListener progressListener) throws UnknownArchiveTypeException { if (archive.toString().toLowerCase().endsWith(".tar.gz")) { return new Extractor(archive, destination, new TarGzExtractorProvider(), progressListener); } if (arc...
java
@SuppressWarnings("unchecked") public static AppYaml parse(InputStream input) throws AppEngineException { try { // our needs are simple so just load using primitive objects Yaml yaml = new Yaml(new SafeConstructor()); Map<String, ?> contents = (Map<String, ?>) yaml.load(input); return new ...
java
public Builder toBuilder() { Builder builder = builder(getServices()) .additionalArguments(getAdditionalArguments()) .automaticRestart(automaticRestart) .defaultGcsBucketName(defaultGcsBucketName) .environment(getEnvironment()) .host(host) ...
java
@Override public void handleStream(final InputStream inputStream) { if (executorService.isShutdown()) { throw new IllegalStateException("Cannot re-use " + this.getClass().getName()); } result.setFuture(executorService.submit(() -> consumeBytes(inputStream))); executorService.shutdown(); }
java
public static SdkUpdater newUpdater(OsInfo.Name osName, Path gcloudPath) { switch (osName) { case WINDOWS: return new SdkUpdater( gcloudPath, CommandRunner.newRunner(), new WindowsBundledPythonCopier(gcloudPath, CommandCaller.newCaller())); default: re...
java
public void stageArchive(AppYamlProjectStageConfiguration config) throws AppEngineException { Preconditions.checkNotNull(config); Path stagingDirectory = config.getStagingDirectory(); if (!Files.exists(stagingDirectory)) { throw new AppEngineException( "Staging directory does not exist. Loc...
java
public void extract() throws IOException, InterruptedException { try { extractorProvider.extract(archive, destination, progressListener); } catch (IOException ex) { try { logger.warning("Extraction failed, cleaning up " + destination); cleanUp(destination); } catch (IOExceptio...
java
public void start(VersionsSelectionConfiguration configuration) throws AppEngineException { Preconditions.checkNotNull(configuration); Preconditions.checkNotNull(configuration.getVersions()); Preconditions.checkArgument(configuration.getVersions().size() > 0); List<String> arguments = new ArrayList<>()...
java
public void list(VersionsListConfiguration configuration) throws AppEngineException { Preconditions.checkNotNull(configuration); List<String> arguments = new ArrayList<>(); arguments.add("app"); arguments.add("versions"); arguments.add("list"); arguments.addAll(GcloudArgs.get("service", configu...
java
@Override public void onOutputLine(String line) { if (waitLatch.getCount() > 0 && message != null && line.matches(message)) { waitLatch.countDown(); } }
java
public List<CloudSdkComponent> getComponents() throws ProcessHandlerException, JsonSyntaxException, CloudSdkNotFoundException, CloudSdkOutOfDateException, CloudSdkVersionFileException, IOException { sdk.validateCloudSdk(); // gcloud components list --show-versions --format=json List<String>...
java
public CloudSdkConfig getConfig() throws CloudSdkNotFoundException, CloudSdkOutOfDateException, CloudSdkVersionFileException, IOException, ProcessHandlerException { sdk.validateCloudSdk(); List<String> command = new ImmutableList.Builder<String>() .add("config", "list") ...
java
public String runCommand(List<String> args) throws CloudSdkNotFoundException, IOException, ProcessHandlerException { sdk.validateCloudSdkLocation(); StringBuilderProcessOutputLineListener stdOutListener = StringBuilderProcessOutputLineListener.newListener(); StringBuilderProcessOutputLineList...
java
public void run(List<String> args) throws ProcessHandlerException, AppEngineJavaComponentsNotInstalledException, InvalidJavaSdkException, IOException { sdk.validateAppEngineJavaComponents(); sdk.validateJdk(); // App Engine Java Sdk requires this system property to be set. // TODO: perh...
java
public void generate(GenRepoInfoFileConfiguration configuration) throws AppEngineException { List<String> arguments = new ArrayList<>(); arguments.add("beta"); arguments.add("debug"); arguments.add("source"); arguments.add("gen-repo-info-file"); arguments.addAll(GcloudArgs.get("output-directory...
java
public void download() throws IOException, InterruptedException { if (!Files.exists(destinationFile.getParent())) { Files.createDirectories(destinationFile.getParent()); } if (Files.exists(destinationFile)) { throw new FileAlreadyExistsException(destinationFile.toString()); } URLConnect...
java
public CloudSdkVersion getVersion() throws CloudSdkVersionFileException { Path versionFile = getPath().resolve(VERSION_FILE_NAME); if (!Files.isRegularFile(versionFile)) { throw new CloudSdkVersionFileNotFoundException( "Cloud SDK version file not found at " + versionFile.toString()); } ...
java
public Path getGCloudPath() { String gcloud = GCLOUD; if (IS_WINDOWS) { gcloud += ".cmd"; } return getPath().resolve(gcloud); }
java
public Path getAppEngineSdkForJavaPath() { Path resolved = getPath().resolve(APPENGINE_SDK_FOR_JAVA_PATH); if (resolved == null) { throw new RuntimeException("Misconfigured App Engine SDK for Java"); } return resolved; }
java
public void validateAppEngineJavaComponents() throws AppEngineJavaComponentsNotInstalledException { if (!Files.isDirectory(getAppEngineSdkForJavaPath())) { throw new AppEngineJavaComponentsNotInstalledException( "Validation Error: Java App Engine components not installed." + " Fi...
java
public Path getAppEngineToolsJar() { Path path = jarLocations.get(JAVA_TOOLS_JAR); if (path == null) { throw new RuntimeException("Misconfigured Cloud SDK"); } return path; }
java
public void installComponent( SdkComponent component, ProgressListener progressListener, ConsoleListener consoleListener) throws InterruptedException, CommandExitException, CommandExecutionException { progressListener.start("Installing " + component.toString(), ProgressListener.UNKNOWN); Map<Strin...
java
public static SdkComponentInstaller newComponentInstaller(OsInfo.Name osName, Path gcloudPath) { switch (osName) { case WINDOWS: return new SdkComponentInstaller( gcloudPath, CommandRunner.newRunner(), new WindowsBundledPythonCopier(gcloudPath, CommandCaller.newCall...
java
public Path install( final ProgressListener progressListener, final ConsoleListener consoleListener) throws IOException, InterruptedException, SdkInstallerException, CommandExecutionException, CommandExitException { FileResourceProvider fileResourceProvider = fileResourceProviderFacto...
java
public static SdkInstaller newInstaller( Path managedSdkDirectory, Version version, OsInfo osInfo, String userAgentString, boolean usageReporting) { DownloaderFactory downloaderFactory = new DownloaderFactory(userAgentString); ExtractorFactory extractorFactory = new ExtractorFactor...
java
public void run(RunConfiguration config) throws AppEngineException { Preconditions.checkNotNull(config); Preconditions.checkNotNull(config.getServices()); Preconditions.checkArgument(config.getServices().size() > 0); List<String> arguments = new ArrayList<>(); List<String> jvmArguments = new ArrayL...
java
public void stop(StopConfiguration configuration) throws AppEngineException { Preconditions.checkNotNull(configuration); HttpURLConnection connection = null; String host = configuration.getHost() != null ? configuration.getHost() : DEFAULT_HOST; int port = configuration.getPort() != null ? configuration...
java
@Override @Nullable public Path getCloudSdkPath() { // search system environment PATH List<String> possiblePaths = getLocationsFromPath(System.getenv("PATH")); // try environment variable GOOGLE_CLOUD_SDK_HOME possiblePaths.add(System.getenv("GOOGLE_CLOUD_SDK_HOME")); // search program files ...
java
@Nullable private static String getLocalAppDataLocation() { String localAppData = System.getenv("LOCALAPPDATA"); if (localAppData != null) { return localAppData + "\\Google\\Cloud SDK\\google-cloud-sdk"; } else { return null; } }
java
@VisibleForTesting static void getLocationsFromLink(List<String> possiblePaths, Path link) { try { Path resolvedLink = link.toRealPath(); Path possibleBinDir = resolvedLink.getParent(); // check if the parent is "bin", we actually depend on that for other resolution if (possibleBinDir != n...
java
public void stageStandard(AppEngineWebXmlProjectStageConfiguration config) throws AppEngineException { Preconditions.checkNotNull(config); Preconditions.checkNotNull(config.getSourceDirectory()); Preconditions.checkNotNull(config.getStagingDirectory()); List<String> arguments = new ArrayList<>();...
java
public void start() { config.serverConfigs().forEach((key, serverConfig) -> servers.put(key, EbeanServerFactory.create(serverConfig))); }
java
@Override public void create() { if (!environment.isProd()) { config.serverConfigs().forEach((key, serverConfig) -> { String evolutionScript = generateEvolutionScript(servers.get(key)); if (evolutionScript != null) { File evolutions = environme...
java
public static String generateEvolutionScript(EbeanServer server) { try { SpiEbeanServer spiServer = (SpiEbeanServer) server; CurrentModel ddl = new CurrentModel(spiServer); String ups = ddl.getCreateDdl(); String downs = ddl.getDropAllDdl(); if (ups ...
java
public static EbeanParsedConfig parseFromConfig(Config config) { Config playEbeanConfig = config.getConfig("play.ebean"); String defaultDatasource = playEbeanConfig.getString("defaultDatasource"); String ebeanConfigKey = playEbeanConfig.getString("config"); Map<String, List<String>> dat...
java
public ArrayList<String> serviceName_renewCertificate_POST(String serviceName, String domain) throws IOException { String qPath = "/sslGateway/{serviceName}/renewCertificate"; StringBuilder sb = path(qPath, serviceName); HashMap<String, Object>o = new HashMap<String, Object>(); addBody(o, "domain", domain); S...
java
public OvhServer serviceName_server_POST(String serviceName, String address, Long port) throws IOException { String qPath = "/sslGateway/{serviceName}/server"; StringBuilder sb = path(qPath, serviceName); HashMap<String, Object>o = new HashMap<String, Object>(); addBody(o, "address", address); addBody(o, "por...
java
public ArrayList<OvhTask> serviceName_update_POST(String serviceName, String ip, String password, Long port, String username) throws IOException { String qPath = "/veeam/veeamEnterprise/{serviceName}/update"; StringBuilder sb = path(qPath, serviceName); HashMap<String, Object>o = new HashMap<String, Object>(); ...
java
public OvhSecret retrieve_POST(String id) throws IOException { String qPath = "/secret/retrieve"; StringBuilder sb = path(qPath); HashMap<String, Object>o = new HashMap<String, Object>(); addBody(o, "id", id); String resp = execN(qPath, "POST", sb.toString(), o); return convertTo(resp, OvhSecret.class); }
java
public OvhCustomSslMessage serviceName_ssl_PUT(String serviceName, OvhInputCustomSsl body) throws IOException { String qPath = "/caas/containers/{serviceName}/ssl"; StringBuilder sb = path(qPath, serviceName); String resp = exec(qPath, "PUT", sb.toString(), body); return convertTo(resp, OvhCustomSslMessage.clas...
java
public void serviceName_frameworks_frameworkId_password_PUT(String serviceName, String frameworkId, OvhPassword body) throws IOException { String qPath = "/caas/containers/{serviceName}/frameworks/{frameworkId}/password"; StringBuilder sb = path(qPath, serviceName, frameworkId); exec(qPath, "PUT", sb.toString(), ...
java
public OvhApplication serviceName_frameworks_frameworkId_apps_GET(String serviceName, String frameworkId) throws IOException { String qPath = "/caas/containers/{serviceName}/frameworks/{frameworkId}/apps"; StringBuilder sb = path(qPath, serviceName, frameworkId); String resp = exec(qPath, "GET", sb.toString(), nu...
java
public OvhFramework serviceName_frameworks_frameworkId_GET(String serviceName, String frameworkId) throws IOException { String qPath = "/caas/containers/{serviceName}/frameworks/{frameworkId}"; StringBuilder sb = path(qPath, serviceName, frameworkId); String resp = exec(qPath, "GET", sb.toString(), null); retur...
java
public OvhSlave serviceName_slaves_slaveId_GET(String serviceName, String slaveId) throws IOException { String qPath = "/caas/containers/{serviceName}/slaves/{slaveId}"; StringBuilder sb = path(qPath, serviceName, slaveId); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, OvhSlave.c...
java
public OvhRegistryCredentials serviceName_registry_credentials_credentialsId_PUT(String serviceName, String credentialsId, OvhInputCustomSsl body) throws IOException { String qPath = "/caas/containers/{serviceName}/registry/credentials/{credentialsId}"; StringBuilder sb = path(qPath, serviceName, credentialsId); ...
java
public OvhRegistryCredentials serviceName_registry_credentials_credentialsId_GET(String serviceName, String credentialsId) throws IOException { String qPath = "/caas/containers/{serviceName}/registry/credentials/{credentialsId}"; StringBuilder sb = path(qPath, serviceName, credentialsId); String resp = exec(qPath...
java
public void serviceName_registry_credentials_credentialsId_DELETE(String serviceName, String credentialsId) throws IOException { String qPath = "/caas/containers/{serviceName}/registry/credentials/{credentialsId}"; StringBuilder sb = path(qPath, serviceName, credentialsId); exec(qPath, "DELETE", sb.toString(), nu...
java
public OvhBackend serviceName_domains_domain_backends_POST(String serviceName, String domain, String ip) throws IOException { String qPath = "/cdn/dedicated/{serviceName}/domains/{domain}/backends"; StringBuilder sb = path(qPath, serviceName, domain); HashMap<String, Object>o = new HashMap<String, Object>(); ad...
java
public OvhCacheRule serviceName_domains_domain_cacheRules_POST(String serviceName, String domain, OvhCacheRuleCacheTypeEnum cacheType, String fileMatch, OvhCacheRuleFileTypeEnum fileType, Long ttl) throws IOException { String qPath = "/cdn/dedicated/{serviceName}/domains/{domain}/cacheRules"; StringBuilder sb = pat...
java
public ArrayList<OvhStatsDataType> serviceName_domains_domain_statistics_GET(String serviceName, String domain, OvhStatsPeriodEnum period, OvhStatsTypeEnum type, OvhStatsValueEnum value) throws IOException { String qPath = "/cdn/dedicated/{serviceName}/domains/{domain}/statistics"; StringBuilder sb = path(qPath, se...
java
public ArrayList<OvhStatsDataType> serviceName_quota_GET(String serviceName, OvhStatsPeriodEnum period) throws IOException { String qPath = "/cdn/dedicated/{serviceName}/quota"; StringBuilder sb = path(qPath, serviceName); query(sb, "period", period); String resp = exec(qPath, "GET", sb.toString(), null); ret...
java
public ArrayList<OvhOfferEnum> availableOffer_GET(String domain) throws IOException { String qPath = "/hosting/web/availableOffer"; StringBuilder sb = path(qPath); query(sb, "domain", domain); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, t2); }
java
public OvhTask serviceName_ovhConfig_id_changeConfiguration_POST(String serviceName, Long id, OvhContainerEnum container, OvhEngineNameEnum engineName, OvhAvailableEngineVersionEnum engineVersion, OvhEnvironmentEnum environment, OvhHttpFirewallEnum httpFirewall) throws IOException { String qPath = "/hosting/web/{serv...
java
public ArrayList<Long> serviceName_ovhConfig_GET(String serviceName, Boolean historical, String path) throws IOException { String qPath = "/hosting/web/{serviceName}/ovhConfig"; StringBuilder sb = path(qPath, serviceName); query(sb, "historical", historical); query(sb, "path", path); String resp = exec(qPath,...
java
public ArrayList<OvhTypeEnum> serviceName_runtimeAvailableTypes_GET(String serviceName, String language) throws IOException { String qPath = "/hosting/web/{serviceName}/runtimeAvailableTypes"; StringBuilder sb = path(qPath, serviceName); query(sb, "language", language); String resp = exec(qPath, "GET", sb.toStr...
java
public ArrayList<Date> serviceName_boostHistory_GET(String serviceName, Date date) throws IOException { String qPath = "/hosting/web/{serviceName}/boostHistory"; StringBuilder sb = path(qPath, serviceName); query(sb, "date", date); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, ...
java
public String serviceName_userLogsToken_GET(String serviceName, String attachedDomain, Boolean remoteCheck, Long ttl) throws IOException { String qPath = "/hosting/web/{serviceName}/userLogsToken"; StringBuilder sb = path(qPath, serviceName); query(sb, "attachedDomain", attachedDomain); query(sb, "remoteCheck",...
java
public ArrayList<Long> serviceName_runtime_GET(String serviceName, String name, OvhTypeEnum type) throws IOException { String qPath = "/hosting/web/{serviceName}/runtime"; StringBuilder sb = path(qPath, serviceName); query(sb, "name", name); query(sb, "type", type); String resp = exec(qPath, "GET", sb.toStrin...
java
public OvhTask serviceName_runtime_POST(String serviceName, String appBootstrap, OvhEnvEnum appEnv, String[] attachedDomains, Boolean isDefault, String name, String publicDir, OvhTypeEnum type) throws IOException { String qPath = "/hosting/web/{serviceName}/runtime"; StringBuilder sb = path(qPath, serviceName); H...
java
public ArrayList<OvhChartSerie<OvhChartTimestampValue>> serviceName_statistics_GET(String serviceName, OvhStatisticsPeriodEnum period, OvhStatisticsTypeEnum type) throws IOException { String qPath = "/hosting/web/{serviceName}/statistics"; StringBuilder sb = path(qPath, serviceName); query(sb, "period", period); ...
java
public ArrayList<String> serviceName_freedom_GET(String serviceName, net.minidev.ovh.api.hosting.web.freedom.OvhStatusEnum status) throws IOException { String qPath = "/hosting/web/{serviceName}/freedom"; StringBuilder sb = path(qPath, serviceName); query(sb, "status", status); String resp = exec(qPath, "GET", ...
java
public OvhTask serviceName_request_POST(String serviceName, OvhRequestActionEnum action) throws IOException { String qPath = "/hosting/web/{serviceName}/request"; StringBuilder sb = path(qPath, serviceName); HashMap<String, Object>o = new HashMap<String, Object>(); addBody(o, "action", action); String resp = ...
java
public OvhAvailableVersionStruct serviceName_databaseAvailableVersion_GET(String serviceName, OvhDatabaseTypeEnum type) throws IOException { String qPath = "/hosting/web/{serviceName}/databaseAvailableVersion"; StringBuilder sb = path(qPath, serviceName); query(sb, "type", type); String resp = exec(qPath, "GET"...
java
public ArrayList<Long> serviceName_localSeo_account_GET(String serviceName, String email) throws IOException { String qPath = "/hosting/web/{serviceName}/localSeo/account"; StringBuilder sb = path(qPath, serviceName); query(sb, "email", email); String resp = exec(qPath, "GET", sb.toString(), null); return con...
java
public String serviceName_ownLogs_id_userLogs_login_DELETE(String serviceName, Long id, String login) throws IOException { String qPath = "/hosting/web/{serviceName}/ownLogs/{id}/userLogs/{login}"; StringBuilder sb = path(qPath, serviceName, id, login); String resp = exec(qPath, "DELETE", sb.toString(), null); ...
java
public String serviceName_ownLogs_id_userLogs_login_changePassword_POST(String serviceName, Long id, String login, String password) throws IOException { String qPath = "/hosting/web/{serviceName}/ownLogs/{id}/userLogs/{login}/changePassword"; StringBuilder sb = path(qPath, serviceName, id, login); HashMap<String,...
java
public OvhTask serviceName_restoreSnapshot_POST(String serviceName, net.minidev.ovh.api.hosting.web.backup.OvhTypeEnum backup) throws IOException { String qPath = "/hosting/web/{serviceName}/restoreSnapshot"; StringBuilder sb = path(qPath, serviceName); HashMap<String, Object>o = new HashMap<String, Object>(); ...
java
public ArrayList<String> serviceName_database_GET(String serviceName, OvhModeEnum mode, String name, String server, OvhDatabaseTypeEnum type, String user) throws IOException { String qPath = "/hosting/web/{serviceName}/database"; StringBuilder sb = path(qPath, serviceName); query(sb, "mode", mode); query(sb, "n...
java
public OvhTask serviceName_database_POST(String serviceName, OvhDatabaseCapabilitiesTypeEnum capabilitie, String password, OvhExtraSqlQuotaEnum quota, OvhDatabaseTypeEnum type, String user, OvhVersionEnum version) throws IOException { String qPath = "/hosting/web/{serviceName}/database"; StringBuilder sb = path(qPa...
java
public OvhTask serviceName_database_name_request_POST(String serviceName, String name, net.minidev.ovh.api.hosting.web.database.OvhRequestActionEnum action) throws IOException { String qPath = "/hosting/web/{serviceName}/database/{name}/request"; StringBuilder sb = path(qPath, serviceName, name); HashMap<String, ...
java
public ArrayList<Long> serviceName_database_name_dump_GET(String serviceName, String name, Date creationDate, Date deletionDate, OvhDateEnum type) throws IOException { String qPath = "/hosting/web/{serviceName}/database/{name}/dump"; StringBuilder sb = path(qPath, serviceName, name); query(sb, "creationDate", cre...
java
public OvhTask serviceName_database_name_dump_POST(String serviceName, String name, OvhDateEnum date, Boolean sendEmail) throws IOException { String qPath = "/hosting/web/{serviceName}/database/{name}/dump"; StringBuilder sb = path(qPath, serviceName, name); HashMap<String, Object>o = new HashMap<String, Object>(...
java
public ArrayList<OvhChartSerie<OvhChartTimestampValue>> serviceName_database_name_statistics_GET(String serviceName, String name, OvhStatisticsPeriodEnum period, net.minidev.ovh.api.hosting.web.database.OvhStatisticsTypeEnum type) throws IOException { String qPath = "/hosting/web/{serviceName}/database/{name}/statist...
java
public ArrayList<OvhLanguageEnum> serviceName_cronAvailableLanguage_GET(String serviceName) throws IOException { String qPath = "/hosting/web/{serviceName}/cronAvailableLanguage"; StringBuilder sb = path(qPath, serviceName); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, t8); }
java
public ArrayList<OvhDatabaseTypeEnum> serviceName_databaseAvailableType_GET(String serviceName) throws IOException { String qPath = "/hosting/web/{serviceName}/databaseAvailableType"; StringBuilder sb = path(qPath, serviceName); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, t9); ...
java