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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
KostyaSha/yet-another-docker-plugin | yet-another-docker-its/src/main/java/com/github/kostyasha/it/utils/JenkinsRuleHelpers.java | JenkinsRuleHelpers.waitUntilNoActivityUpTo | 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 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 {... | [
"public",
"static",
"void",
"waitUntilNoActivityUpTo",
"(",
"Jenkins",
"jenkins",
",",
"int",
"timeout",
")",
"throws",
"Exception",
"{",
"long",
"startTime",
"=",
"System",
".",
"currentTimeMillis",
"(",
")",
";",
"int",
"streak",
"=",
"0",
";",
"while",
"(... | Waits until Hudson finishes building everything, including those in the queue, or fail the test
if the specified timeout milliseconds is | [
"Waits",
"until",
"Hudson",
"finishes",
"building",
"everything",
"including",
"those",
"in",
"the",
"queue",
"or",
"fail",
"the",
"test",
"if",
"the",
"specified",
"timeout",
"milliseconds",
"is"
] | 40b12e39ff94c3834cff7e028c3dd01c88e87d77 | https://github.com/KostyaSha/yet-another-docker-plugin/blob/40b12e39ff94c3834cff7e028c3dd01c88e87d77/yet-another-docker-its/src/main/java/com/github/kostyasha/it/utils/JenkinsRuleHelpers.java#L51-L84 | train |
KostyaSha/yet-another-docker-plugin | yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/launcher/DockerComputerLauncher.java | DockerComputerLauncher.waitUp | 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 boolean waitUp(String cloudId, DockerSlaveTemplate dockerSlaveTemplate,
InspectContainerResponse containerInspect) {
if (isFalse(containerInspect.getState().getRunning())) {
throw new IllegalStateException("Container '" + containerInspect.getId() + "' is not running!... | [
"public",
"boolean",
"waitUp",
"(",
"String",
"cloudId",
",",
"DockerSlaveTemplate",
"dockerSlaveTemplate",
",",
"InspectContainerResponse",
"containerInspect",
")",
"{",
"if",
"(",
"isFalse",
"(",
"containerInspect",
".",
"getState",
"(",
")",
".",
"getRunning",
"(... | Wait until slave is up and ready for connection. | [
"Wait",
"until",
"slave",
"is",
"up",
"and",
"ready",
"for",
"connection",
"."
] | 40b12e39ff94c3834cff7e028c3dd01c88e87d77 | https://github.com/KostyaSha/yet-another-docker-plugin/blob/40b12e39ff94c3834cff7e028c3dd01c88e87d77/yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/launcher/DockerComputerLauncher.java#L53-L60 | train |
KostyaSha/yet-another-docker-plugin | yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/client/ClientBuilderForConnector.java | ClientBuilderForConnector.forConnector | 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 forConnector(DockerConnector connector)
throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException {
LOG.debug("Building connection to docker host '{}'", connector.getServerUrl());
withCredentialsId(connector.getCred... | [
"public",
"ClientBuilderForConnector",
"forConnector",
"(",
"DockerConnector",
"connector",
")",
"throws",
"UnrecoverableKeyException",
",",
"NoSuchAlgorithmException",
",",
"KeyStoreException",
",",
"KeyManagementException",
"{",
"LOG",
".",
"debug",
"(",
"\"Building connect... | Provides ready to use docker client with information from docker connector
@param connector docker connector with info about url, version, creds and timeout
@return docker-java client | [
"Provides",
"ready",
"to",
"use",
"docker",
"client",
"with",
"information",
"from",
"docker",
"connector"
] | 40b12e39ff94c3834cff7e028c3dd01c88e87d77 | https://github.com/KostyaSha/yet-another-docker-plugin/blob/40b12e39ff94c3834cff7e028c3dd01c88e87d77/yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/client/ClientBuilderForConnector.java#L86-L95 | train |
KostyaSha/yet-another-docker-plugin | yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/client/ClientBuilderForConnector.java | ClientBuilderForConnector.withCredentialsId | public ClientBuilderForConnector withCredentialsId(String credentialsId)
throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException {
if (isNotBlank(credentialsId)) {
withCredentials(lookupSystemCredentials(credentialsId));
} else {
... | java | public ClientBuilderForConnector withCredentialsId(String credentialsId)
throws UnrecoverableKeyException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException {
if (isNotBlank(credentialsId)) {
withCredentials(lookupSystemCredentials(credentialsId));
} else {
... | [
"public",
"ClientBuilderForConnector",
"withCredentialsId",
"(",
"String",
"credentialsId",
")",
"throws",
"UnrecoverableKeyException",
",",
"NoSuchAlgorithmException",
",",
"KeyStoreException",
",",
"KeyManagementException",
"{",
"if",
"(",
"isNotBlank",
"(",
"credentialsId"... | Sets SSLConfig from defined credentials id.
@param credentialsId credentials to find in jenkins
@return docker-java client | [
"Sets",
"SSLConfig",
"from",
"defined",
"credentials",
"id",
"."
] | 40b12e39ff94c3834cff7e028c3dd01c88e87d77 | https://github.com/KostyaSha/yet-another-docker-plugin/blob/40b12e39ff94c3834cff7e028c3dd01c88e87d77/yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/client/ClientBuilderForConnector.java#L131-L140 | train |
KostyaSha/yet-another-docker-plugin | yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/client/ClientBuilderForConnector.java | ClientBuilderForConnector.lookupSystemCredentials | public static Credentials lookupSystemCredentials(String credentialsId) {
return firstOrNull(
lookupCredentials(
Credentials.class,
Jenkins.getInstance(),
ACL.SYSTEM,
emptyList()
),
... | java | public static Credentials lookupSystemCredentials(String credentialsId) {
return firstOrNull(
lookupCredentials(
Credentials.class,
Jenkins.getInstance(),
ACL.SYSTEM,
emptyList()
),
... | [
"public",
"static",
"Credentials",
"lookupSystemCredentials",
"(",
"String",
"credentialsId",
")",
"{",
"return",
"firstOrNull",
"(",
"lookupCredentials",
"(",
"Credentials",
".",
"class",
",",
"Jenkins",
".",
"getInstance",
"(",
")",
",",
"ACL",
".",
"SYSTEM",
... | Util method to find credential by id in jenkins
@param credentialsId credentials to find in jenkins
@return {@link CertificateCredentials} or {@link StandardUsernamePasswordCredentials} expected | [
"Util",
"method",
"to",
"find",
"credential",
"by",
"id",
"in",
"jenkins"
] | 40b12e39ff94c3834cff7e028c3dd01c88e87d77 | https://github.com/KostyaSha/yet-another-docker-plugin/blob/40b12e39ff94c3834cff7e028c3dd01c88e87d77/yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/client/ClientBuilderForConnector.java#L234-L244 | train |
KostyaSha/yet-another-docker-plugin | yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/commons/AbstractCloud.java | AbstractCloud.getTemplates | @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 | @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);
... | [
"@",
"Nonnull",
"public",
"List",
"<",
"DockerSlaveTemplate",
">",
"getTemplates",
"(",
"Label",
"label",
")",
"{",
"List",
"<",
"DockerSlaveTemplate",
">",
"dockerSlaveTemplates",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"for",
"(",
"DockerSlaveTemplate",
... | Multiple templates may have the same label.
@return Templates matched to requested label assuming slave Mode | [
"Multiple",
"templates",
"may",
"have",
"the",
"same",
"label",
"."
] | 40b12e39ff94c3834cff7e028c3dd01c88e87d77 | https://github.com/KostyaSha/yet-another-docker-plugin/blob/40b12e39ff94c3834cff7e028c3dd01c88e87d77/yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/commons/AbstractCloud.java#L96-L111 | train |
KostyaSha/yet-another-docker-plugin | yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/commons/AbstractCloud.java | AbstractCloud.setTemplates | public void setTemplates(List<DockerSlaveTemplate> replaceTemplates) {
if (replaceTemplates != null) {
templates = new ArrayList<>(replaceTemplates);
} else {
templates = Collections.emptyList();
}
} | java | public void setTemplates(List<DockerSlaveTemplate> replaceTemplates) {
if (replaceTemplates != null) {
templates = new ArrayList<>(replaceTemplates);
} else {
templates = Collections.emptyList();
}
} | [
"public",
"void",
"setTemplates",
"(",
"List",
"<",
"DockerSlaveTemplate",
">",
"replaceTemplates",
")",
"{",
"if",
"(",
"replaceTemplates",
"!=",
"null",
")",
"{",
"templates",
"=",
"new",
"ArrayList",
"<>",
"(",
"replaceTemplates",
")",
";",
"}",
"else",
"... | Set list of available templates | [
"Set",
"list",
"of",
"available",
"templates"
] | 40b12e39ff94c3834cff7e028c3dd01c88e87d77 | https://github.com/KostyaSha/yet-another-docker-plugin/blob/40b12e39ff94c3834cff7e028c3dd01c88e87d77/yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/commons/AbstractCloud.java#L116-L122 | train |
KostyaSha/yet-another-docker-plugin | yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/commons/AbstractCloud.java | AbstractCloud.decrementAmiSlaveProvision | protected void decrementAmiSlaveProvision(DockerSlaveTemplate container) {
synchronized (provisionedImages) {
int currentProvisioning = 0;
if (provisionedImages.containsKey(container)) {
currentProvisioning = provisionedImages.get(container);
}
pro... | java | protected void decrementAmiSlaveProvision(DockerSlaveTemplate container) {
synchronized (provisionedImages) {
int currentProvisioning = 0;
if (provisionedImages.containsKey(container)) {
currentProvisioning = provisionedImages.get(container);
}
pro... | [
"protected",
"void",
"decrementAmiSlaveProvision",
"(",
"DockerSlaveTemplate",
"container",
")",
"{",
"synchronized",
"(",
"provisionedImages",
")",
"{",
"int",
"currentProvisioning",
"=",
"0",
";",
"if",
"(",
"provisionedImages",
".",
"containsKey",
"(",
"container",... | Decrease the count of slaves being "provisioned". | [
"Decrease",
"the",
"count",
"of",
"slaves",
"being",
"provisioned",
"."
] | 40b12e39ff94c3834cff7e028c3dd01c88e87d77 | https://github.com/KostyaSha/yet-another-docker-plugin/blob/40b12e39ff94c3834cff7e028c3dd01c88e87d77/yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/commons/AbstractCloud.java#L134-L142 | train |
KostyaSha/yet-another-docker-plugin | yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/commons/DockerPullImage.java | DockerPullImage.execInternal | 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 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... | [
"public",
"void",
"execInternal",
"(",
"@",
"Nonnull",
"final",
"DockerClient",
"client",
",",
"@",
"Nonnull",
"final",
"String",
"imageName",
",",
"TaskListener",
"listener",
")",
"throws",
"IOException",
"{",
"PrintStream",
"llog",
"=",
"listener",
".",
"getLo... | Action around image with defined configuration | [
"Action",
"around",
"image",
"with",
"defined",
"configuration"
] | 40b12e39ff94c3834cff7e028c3dd01c88e87d77 | https://github.com/KostyaSha/yet-another-docker-plugin/blob/40b12e39ff94c3834cff7e028c3dd01c88e87d77/yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/commons/DockerPullImage.java#L131-L185 | train |
KostyaSha/yet-another-docker-plugin | yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/commons/cmds/DockerBuildImage.java | DockerBuildImage.resolveCreds | 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 | 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... | [
"public",
"void",
"resolveCreds",
"(",
")",
"{",
"final",
"AuthConfigurations",
"authConfigs",
"=",
"new",
"AuthConfigurations",
"(",
")",
";",
"for",
"(",
"Map",
".",
"Entry",
"<",
"String",
",",
"String",
">",
"entry",
":",
"creds",
".",
"entrySet",
"(",... | Fill additional object with resolved creds.
For example before transfering object to remote. | [
"Fill",
"additional",
"object",
"with",
"resolved",
"creds",
".",
"For",
"example",
"before",
"transfering",
"object",
"to",
"remote",
"."
] | 40b12e39ff94c3834cff7e028c3dd01c88e87d77 | https://github.com/KostyaSha/yet-another-docker-plugin/blob/40b12e39ff94c3834cff7e028c3dd01c88e87d77/yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/commons/cmds/DockerBuildImage.java#L250-L272 | train |
KostyaSha/yet-another-docker-plugin | yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/other/cloudorder/RandomLeastLoadedDockerCloudOrder.java | RandomLeastLoadedDockerCloudOrder.getAvailableDockerClouds | protected List<DockerCloud> getAvailableDockerClouds(Label label) {
return getAllDockerClouds().stream()
.filter(cloud ->
cloud.canProvision(label) &&
(countCurrentDockerSlaves(cloud) >= 0) &&
(countCurrentDo... | java | protected List<DockerCloud> getAvailableDockerClouds(Label label) {
return getAllDockerClouds().stream()
.filter(cloud ->
cloud.canProvision(label) &&
(countCurrentDockerSlaves(cloud) >= 0) &&
(countCurrentDo... | [
"protected",
"List",
"<",
"DockerCloud",
">",
"getAvailableDockerClouds",
"(",
"Label",
"label",
")",
"{",
"return",
"getAllDockerClouds",
"(",
")",
".",
"stream",
"(",
")",
".",
"filter",
"(",
"cloud",
"->",
"cloud",
".",
"canProvision",
"(",
"label",
")",
... | Get a list of available DockerCloud clouds which are not at max
capacity.
@param label A label expression of a Job Run requiring an executor.
@return A list of available DockerCloud clouds. | [
"Get",
"a",
"list",
"of",
"available",
"DockerCloud",
"clouds",
"which",
"are",
"not",
"at",
"max",
"capacity",
"."
] | 40b12e39ff94c3834cff7e028c3dd01c88e87d77 | https://github.com/KostyaSha/yet-another-docker-plugin/blob/40b12e39ff94c3834cff7e028c3dd01c88e87d77/yet-another-docker-plugin/src/main/java/com/github/kostyasha/yad/other/cloudorder/RandomLeastLoadedDockerCloudOrder.java#L60-L67 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/AppEngineDescriptor.java | AppEngineDescriptor.parse | 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 static AppEngineDescriptor parse(InputStream in) throws IOException, SAXException {
Preconditions.checkNotNull(in, "Null input");
try {
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
documentBuilderFactory.setNamespaceAware(true);
return new AppEng... | [
"public",
"static",
"AppEngineDescriptor",
"parse",
"(",
"InputStream",
"in",
")",
"throws",
"IOException",
",",
"SAXException",
"{",
"Preconditions",
".",
"checkNotNull",
"(",
"in",
",",
"\"Null input\"",
")",
";",
"try",
"{",
"DocumentBuilderFactory",
"documentBui... | Parses an appengine-web.xml file.
@param in the contents of appengine-web.xml
@return a fully parsed object that can be queried
@throws IOException if parsing fails due to I/O errors
@throws SAXException malformed XML | [
"Parses",
"an",
"appengine",
"-",
"web",
".",
"xml",
"file",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/AppEngineDescriptor.java#L53-L62 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/AppEngineDescriptor.java | AppEngineDescriptor.getRuntime | 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 | 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;
} | [
"public",
"String",
"getRuntime",
"(",
")",
"throws",
"AppEngineException",
"{",
"String",
"runtime",
"=",
"getText",
"(",
"getNode",
"(",
"document",
",",
"\"appengine-web-app\"",
",",
"\"runtime\"",
")",
")",
";",
"if",
"(",
"runtime",
"==",
"null",
")",
"... | Returns runtime from the <runtime> element of the appengine-web.xml or the default one
when it is missing. | [
"Returns",
"runtime",
"from",
"the",
"<",
";",
"runtime>",
";",
"element",
"of",
"the",
"appengine",
"-",
"web",
".",
"xml",
"or",
"the",
"default",
"one",
"when",
"it",
"is",
"missing",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/AppEngineDescriptor.java#L77-L83 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/AppEngineDescriptor.java | AppEngineDescriptor.getServiceId | @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 | @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"));
} | [
"@",
"Nullable",
"public",
"String",
"getServiceId",
"(",
")",
"throws",
"AppEngineException",
"{",
"String",
"serviceId",
"=",
"getText",
"(",
"getNode",
"(",
"document",
",",
"\"appengine-web-app\"",
",",
"\"service\"",
")",
")",
";",
"if",
"(",
"serviceId",
... | Returns service ID from the <service> element of the appengine-web.xml, or null if it is
missing. Will also look at module ID. | [
"Returns",
"service",
"ID",
"from",
"the",
"<",
";",
"service>",
";",
"element",
"of",
"the",
"appengine",
"-",
"web",
".",
"xml",
"or",
"null",
"if",
"it",
"is",
"missing",
".",
"Will",
"also",
"look",
"at",
"module",
"ID",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/AppEngineDescriptor.java#L98-L105 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/AppEngineDescriptor.java | AppEngineDescriptor.getAttributeMap | 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 | 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... | [
"private",
"static",
"Map",
"<",
"String",
",",
"String",
">",
"getAttributeMap",
"(",
"Node",
"parent",
",",
"String",
"nodeName",
",",
"String",
"keyAttributeName",
",",
"String",
"valueAttributeName",
")",
"throws",
"AppEngineException",
"{",
"Map",
"<",
"Str... | Returns a map formed from the attributes of the nodes contained within the parent node. | [
"Returns",
"a",
"map",
"formed",
"from",
"the",
"attributes",
"of",
"the",
"nodes",
"contained",
"within",
"the",
"parent",
"node",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/AppEngineDescriptor.java#L157-L184 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/AppEngineDescriptor.java | AppEngineDescriptor.getNode | @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 | @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()) {
... | [
"@",
"Nullable",
"private",
"static",
"Node",
"getNode",
"(",
"Document",
"doc",
",",
"String",
"parentNodeName",
",",
"String",
"targetNodeName",
")",
"{",
"NodeList",
"parentElements",
"=",
"doc",
".",
"getElementsByTagNameNS",
"(",
"APP_ENGINE_NAMESPACE",
",",
... | Returns the first node found matching the given name contained within the parent node. | [
"Returns",
"the",
"first",
"node",
"found",
"matching",
"the",
"given",
"name",
"contained",
"within",
"the",
"parent",
"node",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/AppEngineDescriptor.java#L187-L202 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/Auth.java | Auth.login | public void login() throws AppEngineException {
try {
runner.run(ImmutableList.of("auth", "login"), null);
} catch (ProcessHandlerException | IOException ex) {
throw new AppEngineException(ex);
}
} | java | public void login() throws AppEngineException {
try {
runner.run(ImmutableList.of("auth", "login"), null);
} catch (ProcessHandlerException | IOException ex) {
throw new AppEngineException(ex);
}
} | [
"public",
"void",
"login",
"(",
")",
"throws",
"AppEngineException",
"{",
"try",
"{",
"runner",
".",
"run",
"(",
"ImmutableList",
".",
"of",
"(",
"\"auth\"",
",",
"\"login\"",
")",
",",
"null",
")",
";",
"}",
"catch",
"(",
"ProcessHandlerException",
"|",
... | Launches the gcloud auth login flow. | [
"Launches",
"the",
"gcloud",
"auth",
"login",
"flow",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/Auth.java#L62-L68 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/Auth.java | Auth.activateServiceAccount | 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 | 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... | [
"public",
"void",
"activateServiceAccount",
"(",
"Path",
"jsonFile",
")",
"throws",
"AppEngineException",
"{",
"Preconditions",
".",
"checkArgument",
"(",
"Files",
".",
"exists",
"(",
"jsonFile",
")",
",",
"\"File does not exist: \"",
"+",
"jsonFile",
")",
";",
"t... | Activates a service account based on a configured json key file.
@param jsonFile a service account json key file
@throws AppEngineException when there is an issue with the auth flow | [
"Activates",
"a",
"service",
"account",
"based",
"on",
"a",
"configured",
"json",
"key",
"file",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/Auth.java#L76-L87 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/cloudsdk/serialization/CloudSdkVersion.java | CloudSdkVersion.compareTo | @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 | @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
... | [
"@",
"Override",
"public",
"int",
"compareTo",
"(",
"CloudSdkVersion",
"other",
")",
"{",
"Preconditions",
".",
"checkNotNull",
"(",
"other",
")",
";",
"if",
"(",
"\"HEAD\"",
".",
"equals",
"(",
"version",
")",
"&&",
"!",
"\"HEAD\"",
".",
"equals",
"(",
... | Compares this to another CloudSdkVersion, per the Semantic Versioning 2.0.0 specification.
<p>Note that the build identifier field is excluded for comparison. Thus, <code>
new CloudSdkVersion("0.0.1+v1").compareTo(new CloudSdkVersion("0.0.1+v2")) == 0</code> | [
"Compares",
"this",
"to",
"another",
"CloudSdkVersion",
"per",
"the",
"Semantic",
"Versioning",
"2",
".",
"0",
".",
"0",
"specification",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/cloudsdk/serialization/CloudSdkVersion.java#L120-L155 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/Deployment.java | Deployment.deploy | 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 | 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<>... | [
"public",
"void",
"deploy",
"(",
"DeployConfiguration",
"config",
")",
"throws",
"AppEngineException",
"{",
"Preconditions",
".",
"checkNotNull",
"(",
"config",
")",
";",
"Preconditions",
".",
"checkNotNull",
"(",
"config",
".",
"getDeployables",
"(",
")",
")",
... | Deploys a project to App Engine.
@throws CloudSdkNotFoundException when the Cloud SDK is not installed where expected
@throws CloudSdkOutOfDateException when the installed Cloud SDK is too old
@throws AppEngineException when there is an issue uploading project files to the cloud
@throws IllegalArgumentException when a... | [
"Deploys",
"a",
"project",
"to",
"App",
"Engine",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/Deployment.java#L52-L90 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/cloudsdk/serialization/CloudSdkVersionPreRelease.java | CloudSdkVersionPreRelease.compareTo | @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 | @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... | [
"@",
"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, ... | Compares this to another CloudSdkVersionPreRelease.
<p>Precedence for two pre-release versions MUST be determined by comparing each dot separated
identifier from left to right until a difference is found as follows: identifiers consisting of
only digits are compared numerically and identifiers with letters or hyphens ... | [
"Compares",
"this",
"to",
"another",
"CloudSdkVersionPreRelease",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/cloudsdk/serialization/CloudSdkVersionPreRelease.java#L61-L83 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/whitelist/AppEngineJreWhitelist.java | AppEngineJreWhitelist.contains | 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 | 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... | [
"public",
"static",
"boolean",
"contains",
"(",
"String",
"className",
")",
"{",
"if",
"(",
"className",
".",
"startsWith",
"(",
"\"javax.\"",
")",
")",
"{",
"return",
"!",
"isBundledInJre",
"(",
"className",
")",
"||",
"WHITELIST",
".",
"contains",
"(",
"... | Determine whether class is allowed in App Engine Standard.
@param className fully package qualified class name
@return true if this class is allowed in Java 7 on App Engine Standard, false otherwise | [
"Determine",
"whether",
"class",
"is",
"allowed",
"in",
"App",
"Engine",
"Standard",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/whitelist/AppEngineJreWhitelist.java#L1944-L1974 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/whitelist/AppEngineJreWhitelist.java | AppEngineJreWhitelist.isBundledInJre | 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 | 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.")
... | [
"private",
"static",
"boolean",
"isBundledInJre",
"(",
"String",
"className",
")",
"{",
"if",
"(",
"className",
".",
"startsWith",
"(",
"\"javax.accessibility.\"",
")",
"||",
"className",
".",
"startsWith",
"(",
"\"javax.activation.\"",
")",
"||",
"className",
"."... | javax packages are tricky. Some are in the JRE. Some aren't. | [
"javax",
"packages",
"are",
"tricky",
".",
"Some",
"are",
"in",
"the",
"JRE",
".",
"Some",
"aren",
"t",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/whitelist/AppEngineJreWhitelist.java#L1977-L2002 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/managedcloudsdk/ManagedCloudSdk.java | ManagedCloudSdk.isInstalled | 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 isInstalled()
throws ManagedSdkVerificationException, ManagedSdkVersionMismatchException {
if (getSdkHome() == null) {
return false;
}
if (!Files.isDirectory(getSdkHome())) {
return false;
}
if (!Files.isRegularFile(getGcloudPath())) {
return false;
}
/... | [
"public",
"boolean",
"isInstalled",
"(",
")",
"throws",
"ManagedSdkVerificationException",
",",
"ManagedSdkVersionMismatchException",
"{",
"if",
"(",
"getSdkHome",
"(",
")",
"==",
"null",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"!",
"Files",
".",
"is... | Simple check to verify Cloud SDK installed by verifying the existence of gcloud. | [
"Simple",
"check",
"to",
"verify",
"Cloud",
"SDK",
"installed",
"by",
"verifying",
"the",
"existence",
"of",
"gcloud",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/managedcloudsdk/ManagedCloudSdk.java#L70-L100 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/managedcloudsdk/ManagedCloudSdk.java | ManagedCloudSdk.isUpToDate | 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 boolean isUpToDate() throws ManagedSdkVerificationException {
if (!Files.isRegularFile(getGcloudPath())) {
return false;
}
if (version != Version.LATEST) {
return true;
}
List<String> updateAvailableCommand =
Arrays.asList(
getGcloudPath().toString(),
... | [
"public",
"boolean",
"isUpToDate",
"(",
")",
"throws",
"ManagedSdkVerificationException",
"{",
"if",
"(",
"!",
"Files",
".",
"isRegularFile",
"(",
"getGcloudPath",
"(",
")",
")",
")",
"{",
"return",
"false",
";",
"}",
"if",
"(",
"version",
"!=",
"Version",
... | Query gcloud to see if SDK is up to date. Gcloud makes a call to the server to check this. | [
"Query",
"gcloud",
"to",
"see",
"if",
"SDK",
"is",
"up",
"to",
"date",
".",
"Gcloud",
"makes",
"a",
"call",
"to",
"the",
"server",
"to",
"check",
"this",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/managedcloudsdk/ManagedCloudSdk.java#L134-L165 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/managedcloudsdk/install/ExtractorFactory.java | ExtractorFactory.newExtractor | 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 | 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... | [
"public",
"Extractor",
"newExtractor",
"(",
"Path",
"archive",
",",
"Path",
"destination",
",",
"ProgressListener",
"progressListener",
")",
"throws",
"UnknownArchiveTypeException",
"{",
"if",
"(",
"archive",
".",
"toString",
"(",
")",
".",
"toLowerCase",
"(",
")"... | Creates a new extractor based on filetype. Filetype determination is based on the filename
string, this method makes no attempt to validate the file contents to verify they are the type
defined by the file extension.
@param archive the archive to extract
@param destination the destination folder for extracted files
@p... | [
"Creates",
"a",
"new",
"extractor",
"based",
"on",
"filetype",
".",
"Filetype",
"determination",
"is",
"based",
"on",
"the",
"filename",
"string",
"this",
"method",
"makes",
"no",
"attempt",
"to",
"validate",
"the",
"file",
"contents",
"to",
"verify",
"they",
... | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/managedcloudsdk/install/ExtractorFactory.java#L37-L47 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/project/AppYaml.java | AppYaml.parse | @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 | @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 ... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"AppYaml",
"parse",
"(",
"InputStream",
"input",
")",
"throws",
"AppEngineException",
"{",
"try",
"{",
"// our needs are simple so just load using primitive objects",
"Yaml",
"yaml",
"=",
"new",
"Ya... | Parse an app.yaml file to an AppYaml object.
@param input the input, typically the contents of an {@code app.yaml} file
@throws AppEngineException if reading app.yaml fails while scanning such as due to malformed
YAML | [
"Parse",
"an",
"app",
".",
"yaml",
"file",
"to",
"an",
"AppYaml",
"object",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/project/AppYaml.java#L49-L59 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/configuration/RunConfiguration.java | RunConfiguration.toBuilder | public Builder toBuilder() {
Builder builder =
builder(getServices())
.additionalArguments(getAdditionalArguments())
.automaticRestart(automaticRestart)
.defaultGcsBucketName(defaultGcsBucketName)
.environment(getEnvironment())
.host(host)
... | java | public Builder toBuilder() {
Builder builder =
builder(getServices())
.additionalArguments(getAdditionalArguments())
.automaticRestart(automaticRestart)
.defaultGcsBucketName(defaultGcsBucketName)
.environment(getEnvironment())
.host(host)
... | [
"public",
"Builder",
"toBuilder",
"(",
")",
"{",
"Builder",
"builder",
"=",
"builder",
"(",
"getServices",
"(",
")",
")",
".",
"additionalArguments",
"(",
"getAdditionalArguments",
"(",
")",
")",
".",
"automaticRestart",
"(",
"automaticRestart",
")",
".",
"def... | Returns a mutable builder initialized with the values of this runtime configuration. | [
"Returns",
"a",
"mutable",
"builder",
"initialized",
"with",
"the",
"values",
"of",
"this",
"runtime",
"configuration",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/configuration/RunConfiguration.java#L197-L209 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/managedcloudsdk/command/AsyncByteConsumer.java | AsyncByteConsumer.handleStream | @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 | @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();
} | [
"@",
"Override",
"public",
"void",
"handleStream",
"(",
"final",
"InputStream",
"inputStream",
")",
"{",
"if",
"(",
"executorService",
".",
"isShutdown",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"Cannot re-use \"",
"+",
"this",
".",
... | Handle an input stream on a separate thread. | [
"Handle",
"an",
"input",
"stream",
"on",
"a",
"separate",
"thread",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/managedcloudsdk/command/AsyncByteConsumer.java#L59-L66 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/managedcloudsdk/components/SdkUpdater.java | SdkUpdater.newUpdater | 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 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... | [
"public",
"static",
"SdkUpdater",
"newUpdater",
"(",
"OsInfo",
".",
"Name",
"osName",
",",
"Path",
"gcloudPath",
")",
"{",
"switch",
"(",
"osName",
")",
"{",
"case",
"WINDOWS",
":",
"return",
"new",
"SdkUpdater",
"(",
"gcloudPath",
",",
"CommandRunner",
".",... | Configure and create a new Updater instance.
@param gcloudPath path to gcloud in the Cloud SDK
@return a new configured Cloud SDK updater | [
"Configure",
"and",
"create",
"a",
"new",
"Updater",
"instance",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/managedcloudsdk/components/SdkUpdater.java#L75-L85 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/AppYamlProjectStaging.java | AppYamlProjectStaging.stageArchive | 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 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... | [
"public",
"void",
"stageArchive",
"(",
"AppYamlProjectStageConfiguration",
"config",
")",
"throws",
"AppEngineException",
"{",
"Preconditions",
".",
"checkNotNull",
"(",
"config",
")",
";",
"Path",
"stagingDirectory",
"=",
"config",
".",
"getStagingDirectory",
"(",
")... | Stages an app.yaml based App Engine project for deployment. Copies app.yaml, the project
artifact and any user defined extra files. Will also copy the Docker directory for flex
projects.
@param config Specifies artifacts and staging destination
@throws AppEngineException When staging fails | [
"Stages",
"an",
"app",
".",
"yaml",
"based",
"App",
"Engine",
"project",
"for",
"deployment",
".",
"Copies",
"app",
".",
"yaml",
"the",
"project",
"artifact",
"and",
"any",
"user",
"defined",
"extra",
"files",
".",
"Will",
"also",
"copy",
"the",
"Docker",
... | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/AppYamlProjectStaging.java#L56-L86 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/managedcloudsdk/install/Extractor.java | Extractor.extract | 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 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... | [
"public",
"void",
"extract",
"(",
")",
"throws",
"IOException",
",",
"InterruptedException",
"{",
"try",
"{",
"extractorProvider",
".",
"extract",
"(",
"archive",
",",
"destination",
",",
"progressListener",
")",
";",
"}",
"catch",
"(",
"IOException",
"ex",
")... | Extract an archive. | [
"Extract",
"an",
"archive",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/managedcloudsdk/install/Extractor.java#L53-L74 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/Versions.java | Versions.start | 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 start(VersionsSelectionConfiguration configuration) throws AppEngineException {
Preconditions.checkNotNull(configuration);
Preconditions.checkNotNull(configuration.getVersions());
Preconditions.checkArgument(configuration.getVersions().size() > 0);
List<String> arguments = new ArrayList<>()... | [
"public",
"void",
"start",
"(",
"VersionsSelectionConfiguration",
"configuration",
")",
"throws",
"AppEngineException",
"{",
"Preconditions",
".",
"checkNotNull",
"(",
"configuration",
")",
";",
"Preconditions",
".",
"checkNotNull",
"(",
"configuration",
".",
"getVersio... | Starts serving a specific version or versions.
@throws CloudSdkNotFoundException when the Cloud SDK is not installed where expected
@throws CloudSdkOutOfDateException when the installed Cloud SDK is too old | [
"Starts",
"serving",
"a",
"specific",
"version",
"or",
"versions",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/Versions.java#L54-L66 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/Versions.java | Versions.list | 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 | 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... | [
"public",
"void",
"list",
"(",
"VersionsListConfiguration",
"configuration",
")",
"throws",
"AppEngineException",
"{",
"Preconditions",
".",
"checkNotNull",
"(",
"configuration",
")",
";",
"List",
"<",
"String",
">",
"arguments",
"=",
"new",
"ArrayList",
"<>",
"("... | Lists the versions for a service, or every version of every service if no service is specified.
@throws CloudSdkNotFoundException when the Cloud SDK is not installed where expected
@throws CloudSdkOutOfDateException when the installed Cloud SDK is too old | [
"Lists",
"the",
"versions",
"for",
"a",
"service",
"or",
"every",
"version",
"of",
"every",
"service",
"if",
"no",
"service",
"is",
"specified",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/Versions.java#L114-L126 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/cloudsdk/internal/process/WaitingProcessOutputLineListener.java | WaitingProcessOutputLineListener.onOutputLine | @Override
public void onOutputLine(String line) {
if (waitLatch.getCount() > 0 && message != null && line.matches(message)) {
waitLatch.countDown();
}
} | java | @Override
public void onOutputLine(String line) {
if (waitLatch.getCount() > 0 && message != null && line.matches(message)) {
waitLatch.countDown();
}
} | [
"@",
"Override",
"public",
"void",
"onOutputLine",
"(",
"String",
"line",
")",
"{",
"if",
"(",
"waitLatch",
".",
"getCount",
"(",
")",
">",
"0",
"&&",
"message",
"!=",
"null",
"&&",
"line",
".",
"matches",
"(",
"message",
")",
")",
"{",
"waitLatch",
... | Monitors the output of the process to check whether the wait condition is satisfied. | [
"Monitors",
"the",
"output",
"of",
"the",
"process",
"to",
"check",
"whether",
"the",
"wait",
"condition",
"is",
"satisfied",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/cloudsdk/internal/process/WaitingProcessOutputLineListener.java#L81-L86 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/Gcloud.java | Gcloud.getComponents | public List<CloudSdkComponent> getComponents()
throws ProcessHandlerException, JsonSyntaxException, CloudSdkNotFoundException,
CloudSdkOutOfDateException, CloudSdkVersionFileException, IOException {
sdk.validateCloudSdk();
// gcloud components list --show-versions --format=json
List<String>... | java | public List<CloudSdkComponent> getComponents()
throws ProcessHandlerException, JsonSyntaxException, CloudSdkNotFoundException,
CloudSdkOutOfDateException, CloudSdkVersionFileException, IOException {
sdk.validateCloudSdk();
// gcloud components list --show-versions --format=json
List<String>... | [
"public",
"List",
"<",
"CloudSdkComponent",
">",
"getComponents",
"(",
")",
"throws",
"ProcessHandlerException",
",",
"JsonSyntaxException",
",",
"CloudSdkNotFoundException",
",",
"CloudSdkOutOfDateException",
",",
"CloudSdkVersionFileException",
",",
"IOException",
"{",
"s... | Returns the list of Cloud SDK Components and their settings, reported by the current gcloud
installation. Unlike other methods in this class that call gcloud, this method always uses a
synchronous ProcessRunner and will block until the gcloud process returns.
@throws ProcessHandlerException when process runner encount... | [
"Returns",
"the",
"list",
"of",
"Cloud",
"SDK",
"Components",
"and",
"their",
"settings",
"reported",
"by",
"the",
"current",
"gcloud",
"installation",
".",
"Unlike",
"other",
"methods",
"in",
"this",
"class",
"that",
"call",
"gcloud",
"this",
"method",
"alway... | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/Gcloud.java#L92-L107 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/Gcloud.java | Gcloud.getConfig | public CloudSdkConfig getConfig()
throws CloudSdkNotFoundException, CloudSdkOutOfDateException, CloudSdkVersionFileException,
IOException, ProcessHandlerException {
sdk.validateCloudSdk();
List<String> command =
new ImmutableList.Builder<String>()
.add("config", "list")
... | java | public CloudSdkConfig getConfig()
throws CloudSdkNotFoundException, CloudSdkOutOfDateException, CloudSdkVersionFileException,
IOException, ProcessHandlerException {
sdk.validateCloudSdk();
List<String> command =
new ImmutableList.Builder<String>()
.add("config", "list")
... | [
"public",
"CloudSdkConfig",
"getConfig",
"(",
")",
"throws",
"CloudSdkNotFoundException",
",",
"CloudSdkOutOfDateException",
",",
"CloudSdkVersionFileException",
",",
"IOException",
",",
"ProcessHandlerException",
"{",
"sdk",
".",
"validateCloudSdk",
"(",
")",
";",
"List"... | Returns a representation of gcloud config, it makes a synchronous call to gcloud config list to
do so. | [
"Returns",
"a",
"representation",
"of",
"gcloud",
"config",
"it",
"makes",
"a",
"synchronous",
"call",
"to",
"gcloud",
"config",
"list",
"to",
"do",
"so",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/Gcloud.java#L113-L126 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/Gcloud.java | Gcloud.runCommand | public String runCommand(List<String> args)
throws CloudSdkNotFoundException, IOException, ProcessHandlerException {
sdk.validateCloudSdkLocation();
StringBuilderProcessOutputLineListener stdOutListener =
StringBuilderProcessOutputLineListener.newListener();
StringBuilderProcessOutputLineList... | java | public String runCommand(List<String> args)
throws CloudSdkNotFoundException, IOException, ProcessHandlerException {
sdk.validateCloudSdkLocation();
StringBuilderProcessOutputLineListener stdOutListener =
StringBuilderProcessOutputLineListener.newListener();
StringBuilderProcessOutputLineList... | [
"public",
"String",
"runCommand",
"(",
"List",
"<",
"String",
">",
"args",
")",
"throws",
"CloudSdkNotFoundException",
",",
"IOException",
",",
"ProcessHandlerException",
"{",
"sdk",
".",
"validateCloudSdkLocation",
"(",
")",
";",
"StringBuilderProcessOutputLineListener... | Run short lived gcloud commands.
@param args the arguments to gcloud command (not including 'gcloud')
@return standard out collected as a single string | [
"Run",
"short",
"lived",
"gcloud",
"commands",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/Gcloud.java#L134-L167 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/AppCfgRunner.java | AppCfgRunner.run | 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 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... | [
"public",
"void",
"run",
"(",
"List",
"<",
"String",
">",
"args",
")",
"throws",
"ProcessHandlerException",
",",
"AppEngineJavaComponentsNotInstalledException",
",",
"InvalidJavaSdkException",
",",
"IOException",
"{",
"sdk",
".",
"validateAppEngineJavaComponents",
"(",
... | Executes an App Engine SDK CLI command.
@throws AppEngineJavaComponentsNotInstalledException when the App Engine Java components are
not installed in the Cloud SDK
@throws InvalidJavaSdkException java not found | [
"Executes",
"an",
"App",
"Engine",
"SDK",
"CLI",
"command",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/AppCfgRunner.java#L52-L76 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/GenRepoInfoFile.java | GenRepoInfoFile.generate | 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 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... | [
"public",
"void",
"generate",
"(",
"GenRepoInfoFileConfiguration",
"configuration",
")",
"throws",
"AppEngineException",
"{",
"List",
"<",
"String",
">",
"arguments",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"arguments",
".",
"add",
"(",
"\"beta\"",
")",
... | Generates source context files.
<p>It is possible for the process to return an error code. In that case, no exception is
thrown, but the code must be caught with a {@link
com.google.cloud.tools.appengine.operations.cloudsdk.process.ProcessExitListener} attached to
the {@link CloudSdk} object used to run the command.
... | [
"Generates",
"source",
"context",
"files",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/GenRepoInfoFile.java#L48-L63 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/managedcloudsdk/install/Downloader.java | Downloader.download | 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 void download() throws IOException, InterruptedException {
if (!Files.exists(destinationFile.getParent())) {
Files.createDirectories(destinationFile.getParent());
}
if (Files.exists(destinationFile)) {
throw new FileAlreadyExistsException(destinationFile.toString());
}
URLConnect... | [
"public",
"void",
"download",
"(",
")",
"throws",
"IOException",
",",
"InterruptedException",
"{",
"if",
"(",
"!",
"Files",
".",
"exists",
"(",
"destinationFile",
".",
"getParent",
"(",
")",
")",
")",
"{",
"Files",
".",
"createDirectories",
"(",
"destination... | Download an archive, this will NOT overwrite a previously existing file. | [
"Download",
"an",
"archive",
"this",
"will",
"NOT",
"overwrite",
"a",
"previously",
"existing",
"file",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/managedcloudsdk/install/Downloader.java#L53-L93 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/CloudSdk.java | CloudSdk.getVersion | 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 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());
}
... | [
"public",
"CloudSdkVersion",
"getVersion",
"(",
")",
"throws",
"CloudSdkVersionFileException",
"{",
"Path",
"versionFile",
"=",
"getPath",
"(",
")",
".",
"resolve",
"(",
"VERSION_FILE_NAME",
")",
";",
"if",
"(",
"!",
"Files",
".",
"isRegularFile",
"(",
"versionF... | Returns the version of the Cloud SDK installation. Version is determined by reading the VERSION
file located in the Cloud SDK directory. | [
"Returns",
"the",
"version",
"of",
"the",
"Cloud",
"SDK",
"installation",
".",
"Version",
"is",
"determined",
"by",
"reading",
"the",
"VERSION",
"file",
"located",
"in",
"the",
"Cloud",
"SDK",
"directory",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/CloudSdk.java#L85-L107 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/CloudSdk.java | CloudSdk.getGCloudPath | public Path getGCloudPath() {
String gcloud = GCLOUD;
if (IS_WINDOWS) {
gcloud += ".cmd";
}
return getPath().resolve(gcloud);
} | java | public Path getGCloudPath() {
String gcloud = GCLOUD;
if (IS_WINDOWS) {
gcloud += ".cmd";
}
return getPath().resolve(gcloud);
} | [
"public",
"Path",
"getGCloudPath",
"(",
")",
"{",
"String",
"gcloud",
"=",
"GCLOUD",
";",
"if",
"(",
"IS_WINDOWS",
")",
"{",
"gcloud",
"+=",
"\".cmd\"",
";",
"}",
"return",
"getPath",
"(",
")",
".",
"resolve",
"(",
"gcloud",
")",
";",
"}"
] | Get an OS specific path to gcloud. | [
"Get",
"an",
"OS",
"specific",
"path",
"to",
"gcloud",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/CloudSdk.java#L114-L120 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/CloudSdk.java | CloudSdk.getAppEngineSdkForJavaPath | 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 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;
} | [
"public",
"Path",
"getAppEngineSdkForJavaPath",
"(",
")",
"{",
"Path",
"resolved",
"=",
"getPath",
"(",
")",
".",
"resolve",
"(",
"APPENGINE_SDK_FOR_JAVA_PATH",
")",
";",
"if",
"(",
"resolved",
"==",
"null",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
... | Returns the directory containing JAR files bundled with the Cloud SDK.
@return the directory containing JAR files bundled with the Cloud SDK | [
"Returns",
"the",
"directory",
"containing",
"JAR",
"files",
"bundled",
"with",
"the",
"Cloud",
"SDK",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/CloudSdk.java#L131-L137 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/CloudSdk.java | CloudSdk.validateAppEngineJavaComponents | public void validateAppEngineJavaComponents()
throws AppEngineJavaComponentsNotInstalledException {
if (!Files.isDirectory(getAppEngineSdkForJavaPath())) {
throw new AppEngineJavaComponentsNotInstalledException(
"Validation Error: Java App Engine components not installed."
+ " Fi... | java | public void validateAppEngineJavaComponents()
throws AppEngineJavaComponentsNotInstalledException {
if (!Files.isDirectory(getAppEngineSdkForJavaPath())) {
throw new AppEngineJavaComponentsNotInstalledException(
"Validation Error: Java App Engine components not installed."
+ " Fi... | [
"public",
"void",
"validateAppEngineJavaComponents",
"(",
")",
"throws",
"AppEngineJavaComponentsNotInstalledException",
"{",
"if",
"(",
"!",
"Files",
".",
"isDirectory",
"(",
"getAppEngineSdkForJavaPath",
"(",
")",
")",
")",
"{",
"throw",
"new",
"AppEngineJavaComponent... | Checks whether the App Engine Java components are installed in the expected location in the
Cloud SDK.
@throws AppEngineJavaComponentsNotInstalledException when the App Engine Java components are
not installed in the Cloud SDK | [
"Checks",
"whether",
"the",
"App",
"Engine",
"Java",
"components",
"are",
"installed",
"in",
"the",
"expected",
"location",
"in",
"the",
"Cloud",
"SDK",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/CloudSdk.java#L244-L257 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/CloudSdk.java | CloudSdk.getAppEngineToolsJar | public Path getAppEngineToolsJar() {
Path path = jarLocations.get(JAVA_TOOLS_JAR);
if (path == null) {
throw new RuntimeException("Misconfigured Cloud SDK");
}
return path;
} | java | public Path getAppEngineToolsJar() {
Path path = jarLocations.get(JAVA_TOOLS_JAR);
if (path == null) {
throw new RuntimeException("Misconfigured Cloud SDK");
}
return path;
} | [
"public",
"Path",
"getAppEngineToolsJar",
"(",
")",
"{",
"Path",
"path",
"=",
"jarLocations",
".",
"get",
"(",
"JAVA_TOOLS_JAR",
")",
";",
"if",
"(",
"path",
"==",
"null",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"Misconfigured Cloud SDK\"",
")",
... | Locates appengine-tools-api.jar. | [
"Locates",
"appengine",
"-",
"tools",
"-",
"api",
".",
"jar",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/CloudSdk.java#L260-L266 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/managedcloudsdk/components/SdkComponentInstaller.java | SdkComponentInstaller.installComponent | public void installComponent(
SdkComponent component, ProgressListener progressListener, ConsoleListener consoleListener)
throws InterruptedException, CommandExitException, CommandExecutionException {
progressListener.start("Installing " + component.toString(), ProgressListener.UNKNOWN);
Map<Strin... | java | public void installComponent(
SdkComponent component, ProgressListener progressListener, ConsoleListener consoleListener)
throws InterruptedException, CommandExitException, CommandExecutionException {
progressListener.start("Installing " + component.toString(), ProgressListener.UNKNOWN);
Map<Strin... | [
"public",
"void",
"installComponent",
"(",
"SdkComponent",
"component",
",",
"ProgressListener",
"progressListener",
",",
"ConsoleListener",
"consoleListener",
")",
"throws",
"InterruptedException",
",",
"CommandExitException",
",",
"CommandExecutionException",
"{",
"progress... | Install a component.
@param component component to install
@param progressListener listener to action progress feedback
@param consoleListener listener to process console feedback | [
"Install",
"a",
"component",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/managedcloudsdk/components/SdkComponentInstaller.java#L58-L75 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/managedcloudsdk/components/SdkComponentInstaller.java | SdkComponentInstaller.newComponentInstaller | 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 static SdkComponentInstaller newComponentInstaller(OsInfo.Name osName, Path gcloudPath) {
switch (osName) {
case WINDOWS:
return new SdkComponentInstaller(
gcloudPath,
CommandRunner.newRunner(),
new WindowsBundledPythonCopier(gcloudPath, CommandCaller.newCall... | [
"public",
"static",
"SdkComponentInstaller",
"newComponentInstaller",
"(",
"OsInfo",
".",
"Name",
"osName",
",",
"Path",
"gcloudPath",
")",
"{",
"switch",
"(",
"osName",
")",
"{",
"case",
"WINDOWS",
":",
"return",
"new",
"SdkComponentInstaller",
"(",
"gcloudPath",... | Configure and create a new Component Installer instance.
@param gcloudPath full path to gcloud in the Cloud SDK
@return a new configured Cloud SDK component installer | [
"Configure",
"and",
"create",
"a",
"new",
"Component",
"Installer",
"instance",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/managedcloudsdk/components/SdkComponentInstaller.java#L83-L93 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/managedcloudsdk/install/SdkInstaller.java | SdkInstaller.install | public Path install(
final ProgressListener progressListener, final ConsoleListener consoleListener)
throws IOException, InterruptedException, SdkInstallerException, CommandExecutionException,
CommandExitException {
FileResourceProvider fileResourceProvider =
fileResourceProviderFacto... | java | public Path install(
final ProgressListener progressListener, final ConsoleListener consoleListener)
throws IOException, InterruptedException, SdkInstallerException, CommandExecutionException,
CommandExitException {
FileResourceProvider fileResourceProvider =
fileResourceProviderFacto... | [
"public",
"Path",
"install",
"(",
"final",
"ProgressListener",
"progressListener",
",",
"final",
"ConsoleListener",
"consoleListener",
")",
"throws",
"IOException",
",",
"InterruptedException",
",",
"SdkInstallerException",
",",
"CommandExecutionException",
",",
"CommandExi... | Download and install a new Cloud SDK. | [
"Download",
"and",
"install",
"a",
"new",
"Cloud",
"SDK",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/managedcloudsdk/install/SdkInstaller.java#L56-L133 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/managedcloudsdk/install/SdkInstaller.java | SdkInstaller.newInstaller | 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 static SdkInstaller newInstaller(
Path managedSdkDirectory,
Version version,
OsInfo osInfo,
String userAgentString,
boolean usageReporting) {
DownloaderFactory downloaderFactory = new DownloaderFactory(userAgentString);
ExtractorFactory extractorFactory = new ExtractorFactor... | [
"public",
"static",
"SdkInstaller",
"newInstaller",
"(",
"Path",
"managedSdkDirectory",
",",
"Version",
"version",
",",
"OsInfo",
"osInfo",
",",
"String",
"userAgentString",
",",
"boolean",
"usageReporting",
")",
"{",
"DownloaderFactory",
"downloaderFactory",
"=",
"ne... | Configure and create a new Installer instance.
@param managedSdkDirectory home directory of google cloud java managed cloud SDKs
@param version version of the Cloud SDK we want to install
@param osInfo target operating system for installation
@param userAgentString user agent string for https requests
@param usageRepo... | [
"Configure",
"and",
"create",
"a",
"new",
"Installer",
"instance",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/managedcloudsdk/install/SdkInstaller.java#L145-L162 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/DevServer.java | DevServer.run | 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 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... | [
"public",
"void",
"run",
"(",
"RunConfiguration",
"config",
")",
"throws",
"AppEngineException",
"{",
"Preconditions",
".",
"checkNotNull",
"(",
"config",
")",
";",
"Preconditions",
".",
"checkNotNull",
"(",
"config",
".",
"getServices",
"(",
")",
")",
";",
"P... | Starts the local development server, synchronously or asynchronously.
@throws AppEngineException I/O error in the Java dev server
@throws CloudSdkNotFoundException when the Cloud SDK is not installed where expected
@throws CloudSdkOutOfDateException when the installed Cloud SDK is too old | [
"Starts",
"the",
"local",
"development",
"server",
"synchronously",
"or",
"asynchronously",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/DevServer.java#L67-L137 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/DevServer.java | DevServer.stop | 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 | 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... | [
"public",
"void",
"stop",
"(",
"StopConfiguration",
"configuration",
")",
"throws",
"AppEngineException",
"{",
"Preconditions",
".",
"checkNotNull",
"(",
"configuration",
")",
";",
"HttpURLConnection",
"connection",
"=",
"null",
";",
"String",
"host",
"=",
"configur... | Stops the local development server. | [
"Stops",
"the",
"local",
"development",
"server",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/DevServer.java#L140-L170 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/cloudsdk/PathResolver.java | PathResolver.getCloudSdkPath | @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 | @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
... | [
"@",
"Override",
"@",
"Nullable",
"public",
"Path",
"getCloudSdkPath",
"(",
")",
"{",
"// search system environment PATH",
"List",
"<",
"String",
">",
"possiblePaths",
"=",
"getLocationsFromPath",
"(",
"System",
".",
"getenv",
"(",
"\"PATH\"",
")",
")",
";",
"//... | Attempts to find the path to Google Cloud SDK.
@return path to Google Cloud SDK or null | [
"Attempts",
"to",
"find",
"the",
"path",
"to",
"Google",
"Cloud",
"SDK",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/cloudsdk/PathResolver.java#L44-L71 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/cloudsdk/PathResolver.java | PathResolver.getLocalAppDataLocation | @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 | @Nullable
private static String getLocalAppDataLocation() {
String localAppData = System.getenv("LOCALAPPDATA");
if (localAppData != null) {
return localAppData + "\\Google\\Cloud SDK\\google-cloud-sdk";
} else {
return null;
}
} | [
"@",
"Nullable",
"private",
"static",
"String",
"getLocalAppDataLocation",
"(",
")",
"{",
"String",
"localAppData",
"=",
"System",
".",
"getenv",
"(",
"\"LOCALAPPDATA\"",
")",
";",
"if",
"(",
"localAppData",
"!=",
"null",
")",
"{",
"return",
"localAppData",
"+... | The default location for a single-user install of Cloud SDK on Windows. | [
"The",
"default",
"location",
"for",
"a",
"single",
"-",
"user",
"install",
"of",
"Cloud",
"SDK",
"on",
"Windows",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/cloudsdk/PathResolver.java#L74-L82 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/cloudsdk/PathResolver.java | PathResolver.getLocationsFromLink | @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 | @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... | [
"@",
"VisibleForTesting",
"static",
"void",
"getLocationsFromLink",
"(",
"List",
"<",
"String",
">",
"possiblePaths",
",",
"Path",
"link",
")",
"{",
"try",
"{",
"Path",
"resolvedLink",
"=",
"link",
".",
"toRealPath",
"(",
")",
";",
"Path",
"possibleBinDir",
... | resolve symlinks to a path that could be the bin directory of the cloud sdk | [
"resolve",
"symlinks",
"to",
"a",
"path",
"that",
"could",
"be",
"the",
"bin",
"directory",
"of",
"the",
"cloud",
"sdk"
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/cloudsdk/PathResolver.java#L128-L144 | train |
GoogleCloudPlatform/appengine-plugins-core | src/main/java/com/google/cloud/tools/appengine/operations/AppEngineWebXmlProjectStaging.java | AppEngineWebXmlProjectStaging.stageStandard | 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 stageStandard(AppEngineWebXmlProjectStageConfiguration config)
throws AppEngineException {
Preconditions.checkNotNull(config);
Preconditions.checkNotNull(config.getSourceDirectory());
Preconditions.checkNotNull(config.getStagingDirectory());
List<String> arguments = new ArrayList<>();... | [
"public",
"void",
"stageStandard",
"(",
"AppEngineWebXmlProjectStageConfiguration",
"config",
")",
"throws",
"AppEngineException",
"{",
"Preconditions",
".",
"checkNotNull",
"(",
"config",
")",
";",
"Preconditions",
".",
"checkNotNull",
"(",
"config",
".",
"getSourceDir... | Stages an appengine-web.xml based project for deployment. Calls out to appcfg to execute this
staging.
@param config Specifies source config and staging destination
@throws AppEngineException When staging fails | [
"Stages",
"an",
"appengine",
"-",
"web",
".",
"xml",
"based",
"project",
"for",
"deployment",
".",
"Calls",
"out",
"to",
"appcfg",
"to",
"execute",
"this",
"staging",
"."
] | d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d | https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/d22e9fa1103522409ab6fdfbf68c4a5a0bc5b97d/src/main/java/com/google/cloud/tools/appengine/operations/AppEngineWebXmlProjectStaging.java#L49-L99 | train |
playframework/play-ebean | play-ebean/src/main/java/play/db/ebean/EbeanDynamicEvolutions.java | EbeanDynamicEvolutions.start | public void start() {
config.serverConfigs().forEach((key, serverConfig) -> servers.put(key, EbeanServerFactory.create(serverConfig)));
} | java | public void start() {
config.serverConfigs().forEach((key, serverConfig) -> servers.put(key, EbeanServerFactory.create(serverConfig)));
} | [
"public",
"void",
"start",
"(",
")",
"{",
"config",
".",
"serverConfigs",
"(",
")",
".",
"forEach",
"(",
"(",
"key",
",",
"serverConfig",
")",
"->",
"servers",
".",
"put",
"(",
"key",
",",
"EbeanServerFactory",
".",
"create",
"(",
"serverConfig",
")",
... | Initialise the Ebean servers. | [
"Initialise",
"the",
"Ebean",
"servers",
"."
] | ca8dcb8865a06b949d40e05f050238979fd2f9a3 | https://github.com/playframework/play-ebean/blob/ca8dcb8865a06b949d40e05f050238979fd2f9a3/play-ebean/src/main/java/play/db/ebean/EbeanDynamicEvolutions.java#L48-L50 | train |
playframework/play-ebean | play-ebean/src/main/java/play/db/ebean/EbeanDynamicEvolutions.java | EbeanDynamicEvolutions.create | @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 | @Override
public void create() {
if (!environment.isProd()) {
config.serverConfigs().forEach((key, serverConfig) -> {
String evolutionScript = generateEvolutionScript(servers.get(key));
if (evolutionScript != null) {
File evolutions = environme... | [
"@",
"Override",
"public",
"void",
"create",
"(",
")",
"{",
"if",
"(",
"!",
"environment",
".",
"isProd",
"(",
")",
")",
"{",
"config",
".",
"serverConfigs",
"(",
")",
".",
"forEach",
"(",
"(",
"key",
",",
"serverConfig",
")",
"->",
"{",
"String",
... | Generate evolutions. | [
"Generate",
"evolutions",
"."
] | ca8dcb8865a06b949d40e05f050238979fd2f9a3 | https://github.com/playframework/play-ebean/blob/ca8dcb8865a06b949d40e05f050238979fd2f9a3/play-ebean/src/main/java/play/db/ebean/EbeanDynamicEvolutions.java#L55-L80 | train |
playframework/play-ebean | play-ebean/src/main/java/play/db/ebean/EbeanDynamicEvolutions.java | EbeanDynamicEvolutions.generateEvolutionScript | 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 String generateEvolutionScript(EbeanServer server) {
try {
SpiEbeanServer spiServer = (SpiEbeanServer) server;
CurrentModel ddl = new CurrentModel(spiServer);
String ups = ddl.getCreateDdl();
String downs = ddl.getDropAllDdl();
if (ups ... | [
"public",
"static",
"String",
"generateEvolutionScript",
"(",
"EbeanServer",
"server",
")",
"{",
"try",
"{",
"SpiEbeanServer",
"spiServer",
"=",
"(",
"SpiEbeanServer",
")",
"server",
";",
"CurrentModel",
"ddl",
"=",
"new",
"CurrentModel",
"(",
"spiServer",
")",
... | Helper method that generates the required evolution to properly run Ebean.
@param server the EbeanServer.
@return the complete migration generated by Ebean | [
"Helper",
"method",
"that",
"generates",
"the",
"required",
"evolution",
"to",
"properly",
"run",
"Ebean",
"."
] | ca8dcb8865a06b949d40e05f050238979fd2f9a3 | https://github.com/playframework/play-ebean/blob/ca8dcb8865a06b949d40e05f050238979fd2f9a3/play-ebean/src/main/java/play/db/ebean/EbeanDynamicEvolutions.java#L88-L114 | train |
playframework/play-ebean | play-ebean/src/main/java/play/db/ebean/EbeanParsedConfig.java | EbeanParsedConfig.parseFromConfig | 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 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... | [
"public",
"static",
"EbeanParsedConfig",
"parseFromConfig",
"(",
"Config",
"config",
")",
"{",
"Config",
"playEbeanConfig",
"=",
"config",
".",
"getConfig",
"(",
"\"play.ebean\"",
")",
";",
"String",
"defaultDatasource",
"=",
"playEbeanConfig",
".",
"getString",
"("... | Parse a play configuration.
@param config play configuration
@return ebean parsed configuration
@see com.typesafe.config.Config | [
"Parse",
"a",
"play",
"configuration",
"."
] | ca8dcb8865a06b949d40e05f050238979fd2f9a3 | https://github.com/playframework/play-ebean/blob/ca8dcb8865a06b949d40e05f050238979fd2f9a3/play-ebean/src/main/java/play/db/ebean/EbeanParsedConfig.java#L43-L65 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-sslGateway/src/main/java/net/minidev/ovh/api/ApiOvhSslGateway.java | ApiOvhSslGateway.serviceName_renewCertificate_POST | 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 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... | [
"public",
"ArrayList",
"<",
"String",
">",
"serviceName_renewCertificate_POST",
"(",
"String",
"serviceName",
",",
"String",
"domain",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/sslGateway/{serviceName}/renewCertificate\"",
";",
"StringBuilder",
"sb",
... | Renew your SSL certificates
REST: POST /sslGateway/{serviceName}/renewCertificate
@param domain [required] Domain on which you want to renew certificate
@param serviceName [required] The internal name of your SSL Gateway
API beta | [
"Renew",
"your",
"SSL",
"certificates"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-sslGateway/src/main/java/net/minidev/ovh/api/ApiOvhSslGateway.java#L93-L100 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-sslGateway/src/main/java/net/minidev/ovh/api/ApiOvhSslGateway.java | ApiOvhSslGateway.serviceName_server_POST | 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 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... | [
"public",
"OvhServer",
"serviceName_server_POST",
"(",
"String",
"serviceName",
",",
"String",
"address",
",",
"Long",
"port",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/sslGateway/{serviceName}/server\"",
";",
"StringBuilder",
"sb",
"=",
"path",
... | Add a new server to your SSL Gateway
REST: POST /sslGateway/{serviceName}/server
@param address [required] IPv4 address of your server
@param port [required] Port of your server
@param serviceName [required] The internal name of your SSL Gateway
API beta | [
"Add",
"a",
"new",
"server",
"to",
"your",
"SSL",
"Gateway"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-sslGateway/src/main/java/net/minidev/ovh/api/ApiOvhSslGateway.java#L361-L369 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-veeamveeamEnterprise/src/main/java/net/minidev/ovh/api/ApiOvhVeeamveeamEnterprise.java | ApiOvhVeeamveeamEnterprise.serviceName_update_POST | 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 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>();
... | [
"public",
"ArrayList",
"<",
"OvhTask",
">",
"serviceName_update_POST",
"(",
"String",
"serviceName",
",",
"String",
"ip",
",",
"String",
"password",
",",
"Long",
"port",
",",
"String",
"username",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/... | Update Veeam enterprise configuration
REST: POST /veeam/veeamEnterprise/{serviceName}/update
@param port [required] Your Veeam Backup And Replication Server Port
@param ip [required] Your Veeam Backup And Replication Server IP
@param password [required] Your Veeam Backup And Replication associated password
@param user... | [
"Update",
"Veeam",
"enterprise",
"configuration"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-veeamveeamEnterprise/src/main/java/net/minidev/ovh/api/ApiOvhVeeamveeamEnterprise.java#L117-L127 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-secret/src/main/java/net/minidev/ovh/api/ApiOvhSecret.java | ApiOvhSecret.retrieve_POST | 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 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);
} | [
"public",
"OvhSecret",
"retrieve_POST",
"(",
"String",
"id",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/secret/retrieve\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
")",
";",
"HashMap",
"<",
"String",
",",
"Object",
">",
"o"... | Retrieve a secret sent by email
REST: POST /secret/retrieve
@param id [required] The secret ID | [
"Retrieve",
"a",
"secret",
"sent",
"by",
"email"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-secret/src/main/java/net/minidev/ovh/api/ApiOvhSecret.java#L25-L32 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java | ApiOvhCaascontainers.serviceName_ssl_PUT | 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 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... | [
"public",
"OvhCustomSslMessage",
"serviceName_ssl_PUT",
"(",
"String",
"serviceName",
",",
"OvhInputCustomSsl",
"body",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/caas/containers/{serviceName}/ssl\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qP... | Update the custom SSL certificate and private
REST: PUT /caas/containers/{serviceName}/ssl
@param body [required] A custom SSL certificate associated to a Docker PaaS environment
@param serviceName [required] service name
API beta | [
"Update",
"the",
"custom",
"SSL",
"certificate",
"and",
"private"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java#L55-L60 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java | ApiOvhCaascontainers.serviceName_frameworks_frameworkId_password_PUT | 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 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(), ... | [
"public",
"void",
"serviceName_frameworks_frameworkId_password_PUT",
"(",
"String",
"serviceName",
",",
"String",
"frameworkId",
",",
"OvhPassword",
"body",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/caas/containers/{serviceName}/frameworks/{frameworkId}/pas... | Update the framework access password
REST: PUT /caas/containers/{serviceName}/frameworks/{frameworkId}/password
@param frameworkId [required] framework id
@param serviceName [required] service name
@param body [required] The new framework password
API beta | [
"Update",
"the",
"framework",
"access",
"password"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java#L200-L204 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java | ApiOvhCaascontainers.serviceName_frameworks_frameworkId_apps_GET | 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 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... | [
"public",
"OvhApplication",
"serviceName_frameworks_frameworkId_apps_GET",
"(",
"String",
"serviceName",
",",
"String",
"frameworkId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/caas/containers/{serviceName}/frameworks/{frameworkId}/apps\"",
";",
"StringBuilde... | List apps in the framework
REST: GET /caas/containers/{serviceName}/frameworks/{frameworkId}/apps
@param frameworkId [required] framework id
@param serviceName [required] service name
API beta | [
"List",
"apps",
"in",
"the",
"framework"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java#L215-L220 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java | ApiOvhCaascontainers.serviceName_frameworks_frameworkId_GET | 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 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... | [
"public",
"OvhFramework",
"serviceName_frameworks_frameworkId_GET",
"(",
"String",
"serviceName",
",",
"String",
"frameworkId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/caas/containers/{serviceName}/frameworks/{frameworkId}\"",
";",
"StringBuilder",
"sb",
... | Inspect the stack framework
REST: GET /caas/containers/{serviceName}/frameworks/{frameworkId}
@param frameworkId [required] framework id
@param serviceName [required] service name
API beta | [
"Inspect",
"the",
"stack",
"framework"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java#L231-L236 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java | ApiOvhCaascontainers.serviceName_slaves_slaveId_GET | 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 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... | [
"public",
"OvhSlave",
"serviceName_slaves_slaveId_GET",
"(",
"String",
"serviceName",
",",
"String",
"slaveId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/caas/containers/{serviceName}/slaves/{slaveId}\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
... | Inspect the argument user slave instance
REST: GET /caas/containers/{serviceName}/slaves/{slaveId}
@param slaveId [required] slave id
@param serviceName [required] service name
API beta | [
"Inspect",
"the",
"argument",
"user",
"slave",
"instance"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java#L247-L252 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java | ApiOvhCaascontainers.serviceName_registry_credentials_credentialsId_PUT | 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_PUT(String serviceName, String credentialsId, OvhInputCustomSsl body) throws IOException {
String qPath = "/caas/containers/{serviceName}/registry/credentials/{credentialsId}";
StringBuilder sb = path(qPath, serviceName, credentialsId);
... | [
"public",
"OvhRegistryCredentials",
"serviceName_registry_credentials_credentialsId_PUT",
"(",
"String",
"serviceName",
",",
"String",
"credentialsId",
",",
"OvhInputCustomSsl",
"body",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/caas/containers/{serviceName}... | Update the registry credentials.
REST: PUT /caas/containers/{serviceName}/registry/credentials/{credentialsId}
@param body [required] Credentials providing authentication to an external registry
@param credentialsId [required] credentials id
@param serviceName [required] service name
API beta | [
"Update",
"the",
"registry",
"credentials",
"."
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java#L279-L284 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java | ApiOvhCaascontainers.serviceName_registry_credentials_credentialsId_GET | 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 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... | [
"public",
"OvhRegistryCredentials",
"serviceName_registry_credentials_credentialsId_GET",
"(",
"String",
"serviceName",
",",
"String",
"credentialsId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/caas/containers/{serviceName}/registry/credentials/{credentialsId}\""... | Inspect the image registry credentials associated to the stack
REST: GET /caas/containers/{serviceName}/registry/credentials/{credentialsId}
@param credentialsId [required] credentials id
@param serviceName [required] service name
API beta | [
"Inspect",
"the",
"image",
"registry",
"credentials",
"associated",
"to",
"the",
"stack"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java#L295-L300 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java | ApiOvhCaascontainers.serviceName_registry_credentials_credentialsId_DELETE | 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 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... | [
"public",
"void",
"serviceName_registry_credentials_credentialsId_DELETE",
"(",
"String",
"serviceName",
",",
"String",
"credentialsId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/caas/containers/{serviceName}/registry/credentials/{credentialsId}\"",
";",
"Str... | Delete the registry credentials.
REST: DELETE /caas/containers/{serviceName}/registry/credentials/{credentialsId}
@param credentialsId [required] credentials id
@param serviceName [required] service name
API beta | [
"Delete",
"the",
"registry",
"credentials",
"."
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-caascontainers/src/main/java/net/minidev/ovh/api/ApiOvhCaascontainers.java#L311-L315 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-cdndedicated/src/main/java/net/minidev/ovh/api/ApiOvhCdndedicated.java | ApiOvhCdndedicated.serviceName_domains_domain_backends_POST | 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 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... | [
"public",
"OvhBackend",
"serviceName_domains_domain_backends_POST",
"(",
"String",
"serviceName",
",",
"String",
"domain",
",",
"String",
"ip",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/cdn/dedicated/{serviceName}/domains/{domain}/backends\"",
";",
"Str... | Add a backend IP
REST: POST /cdn/dedicated/{serviceName}/domains/{domain}/backends
@param ip [required] IP to add to backends list
@param serviceName [required] The internal name of your CDN offer
@param domain [required] Domain of this object | [
"Add",
"a",
"backend",
"IP"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-cdndedicated/src/main/java/net/minidev/ovh/api/ApiOvhCdndedicated.java#L127-L134 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-cdndedicated/src/main/java/net/minidev/ovh/api/ApiOvhCdndedicated.java | ApiOvhCdndedicated.serviceName_domains_domain_cacheRules_POST | 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 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... | [
"public",
"OvhCacheRule",
"serviceName_domains_domain_cacheRules_POST",
"(",
"String",
"serviceName",
",",
"String",
"domain",
",",
"OvhCacheRuleCacheTypeEnum",
"cacheType",
",",
"String",
"fileMatch",
",",
"OvhCacheRuleFileTypeEnum",
"fileType",
",",
"Long",
"ttl",
")",
... | Add a cache rule to a domain
REST: POST /cdn/dedicated/{serviceName}/domains/{domain}/cacheRules
@param cacheType [required] Type of cache rule to add to the domain
@param ttl [required] ttl for cache rule to add to the domain
@param fileMatch [required] File match for cache rule to add to the domain
@param fileType [... | [
"Add",
"a",
"cache",
"rule",
"to",
"a",
"domain"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-cdndedicated/src/main/java/net/minidev/ovh/api/ApiOvhCdndedicated.java#L223-L233 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-cdndedicated/src/main/java/net/minidev/ovh/api/ApiOvhCdndedicated.java | ApiOvhCdndedicated.serviceName_domains_domain_statistics_GET | 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_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... | [
"public",
"ArrayList",
"<",
"OvhStatsDataType",
">",
"serviceName_domains_domain_statistics_GET",
"(",
"String",
"serviceName",
",",
"String",
"domain",
",",
"OvhStatsPeriodEnum",
"period",
",",
"OvhStatsTypeEnum",
"type",
",",
"OvhStatsValueEnum",
"value",
")",
"throws",... | Return stats about a domain
REST: GET /cdn/dedicated/{serviceName}/domains/{domain}/statistics
@param period [required]
@param type [required]
@param value [required]
@param serviceName [required] The internal name of your CDN offer
@param domain [required] Domain of this object | [
"Return",
"stats",
"about",
"a",
"domain"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-cdndedicated/src/main/java/net/minidev/ovh/api/ApiOvhCdndedicated.java#L336-L344 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-cdndedicated/src/main/java/net/minidev/ovh/api/ApiOvhCdndedicated.java | ApiOvhCdndedicated.serviceName_quota_GET | 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<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... | [
"public",
"ArrayList",
"<",
"OvhStatsDataType",
">",
"serviceName_quota_GET",
"(",
"String",
"serviceName",
",",
"OvhStatsPeriodEnum",
"period",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/cdn/dedicated/{serviceName}/quota\"",
";",
"StringBuilder",
"sb"... | Return quota history
REST: GET /cdn/dedicated/{serviceName}/quota
@param period [required]
@param serviceName [required] The internal name of your CDN offer | [
"Return",
"quota",
"history"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-cdndedicated/src/main/java/net/minidev/ovh/api/ApiOvhCdndedicated.java#L537-L543 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.availableOffer_GET | 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 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);
} | [
"public",
"ArrayList",
"<",
"OvhOfferEnum",
">",
"availableOffer_GET",
"(",
"String",
"domain",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/availableOffer\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
")",
";",
"query",
... | Get available offer
REST: GET /hosting/web/availableOffer
@param domain [required] Domain you want to add or upgrade a hosting | [
"Get",
"available",
"offer"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L109-L115 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_ovhConfig_id_changeConfiguration_POST | 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 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... | [
"public",
"OvhTask",
"serviceName_ovhConfig_id_changeConfiguration_POST",
"(",
"String",
"serviceName",
",",
"Long",
"id",
",",
"OvhContainerEnum",
"container",
",",
"OvhEngineNameEnum",
"engineName",
",",
"OvhAvailableEngineVersionEnum",
"engineVersion",
",",
"OvhEnvironmentEn... | Apply a new configuration on this path
REST: POST /hosting/web/{serviceName}/ovhConfig/{id}/changeConfiguration
@param container [required] Container to run this website
@param environment [required] Environment configuration you want
@param httpFirewall [required] Configuration you want for http firewall
@param engin... | [
"Apply",
"a",
"new",
"configuration",
"on",
"this",
"path"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L162-L173 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_ovhConfig_GET | 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<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,... | [
"public",
"ArrayList",
"<",
"Long",
">",
"serviceName_ovhConfig_GET",
"(",
"String",
"serviceName",
",",
"Boolean",
"historical",
",",
"String",
"path",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/ovhConfig\"",
";",
"String... | Configuration used on your hosting
REST: GET /hosting/web/{serviceName}/ovhConfig
@param path [required] Filter the value of path property (like)
@param historical [required] Filter the value of historical property (=)
@param serviceName [required] The internal name of your hosting | [
"Configuration",
"used",
"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#L214-L221 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_runtimeAvailableTypes_GET | 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<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... | [
"public",
"ArrayList",
"<",
"OvhTypeEnum",
">",
"serviceName_runtimeAvailableTypes_GET",
"(",
"String",
"serviceName",
",",
"String",
"language",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/runtimeAvailableTypes\"",
";",
"StringB... | List available runtime configurations available backend types
REST: GET /hosting/web/{serviceName}/runtimeAvailableTypes
@param language [required] Specific programming language to filter
@param serviceName [required] The internal name of your hosting | [
"List",
"available",
"runtime",
"configurations",
"available",
"backend",
"types"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L230-L236 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_boostHistory_GET | 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 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, ... | [
"public",
"ArrayList",
"<",
"Date",
">",
"serviceName_boostHistory_GET",
"(",
"String",
"serviceName",
",",
"Date",
"date",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/boostHistory\"",
";",
"StringBuilder",
"sb",
"=",
"path... | History of your hosting boost
REST: GET /hosting/web/{serviceName}/boostHistory
@param date [required] Filter the value of date property (=)
@param serviceName [required] The internal name of your hosting | [
"History",
"of",
"your",
"hosting",
"boost"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L260-L266 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_userLogsToken_GET | 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 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",... | [
"public",
"String",
"serviceName_userLogsToken_GET",
"(",
"String",
"serviceName",
",",
"String",
"attachedDomain",
",",
"Boolean",
"remoteCheck",
",",
"Long",
"ttl",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/userLogsToken\""... | Get a temporary token to access the your web hosting logs interface
REST: GET /hosting/web/{serviceName}/userLogsToken
@param attachedDomain [required] Specific attached domain to be included in the scope of your token
@param ttl [required] [default=3600] Expiration of your token (in seconds)
@param remoteCheck [requi... | [
"Get",
"a",
"temporary",
"token",
"to",
"access",
"the",
"your",
"web",
"hosting",
"logs",
"interface"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L278-L286 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_runtime_GET | 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 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... | [
"public",
"ArrayList",
"<",
"Long",
">",
"serviceName_runtime_GET",
"(",
"String",
"serviceName",
",",
"String",
"name",
",",
"OvhTypeEnum",
"type",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/runtime\"",
";",
"StringBuilde... | List of runtime configurations to your hosting
REST: GET /hosting/web/{serviceName}/runtime
@param name [required] Filter the value of name property (like)
@param type [required] Filter the value of type property (=)
@param serviceName [required] The internal name of your hosting | [
"List",
"of",
"runtime",
"configurations",
"to",
"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#L352-L359 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_runtime_POST | 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 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... | [
"public",
"OvhTask",
"serviceName_runtime_POST",
"(",
"String",
"serviceName",
",",
"String",
"appBootstrap",
",",
"OvhEnvEnum",
"appEnv",
",",
"String",
"[",
"]",
"attachedDomains",
",",
"Boolean",
"isDefault",
",",
"String",
"name",
",",
"String",
"publicDir",
"... | Request the creation of a new runtime configuration
REST: POST /hosting/web/{serviceName}/runtime
@param isDefault [required] Set if the runtime configuration is the one by default for the hosting
@param appEnv [required] The client application environment
@param publicDir [required] The client application public dire... | [
"Request",
"the",
"creation",
"of",
"a",
"new",
"runtime",
"configuration"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L374-L387 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_statistics_GET | 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<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);
... | [
"public",
"ArrayList",
"<",
"OvhChartSerie",
"<",
"OvhChartTimestampValue",
">",
">",
"serviceName_statistics_GET",
"(",
"String",
"serviceName",
",",
"OvhStatisticsPeriodEnum",
"period",
",",
"OvhStatisticsTypeEnum",
"type",
")",
"throws",
"IOException",
"{",
"String",
... | Get statistics about this web hosting
REST: GET /hosting/web/{serviceName}/statistics
@param period [required]
@param type [required]
@param serviceName [required] The internal name of your hosting | [
"Get",
"statistics",
"about",
"this",
"web",
"hosting"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L531-L538 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_freedom_GET | 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 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", ... | [
"public",
"ArrayList",
"<",
"String",
">",
"serviceName_freedom_GET",
"(",
"String",
"serviceName",
",",
"net",
".",
"minidev",
".",
"ovh",
".",
"api",
".",
"hosting",
".",
"web",
".",
"freedom",
".",
"OvhStatusEnum",
"status",
")",
"throws",
"IOException",
... | Freedom linked to this hosting account
REST: GET /hosting/web/{serviceName}/freedom
@param status [required] Filter the value of status property (=)
@param serviceName [required] The internal name of your hosting | [
"Freedom",
"linked",
"to",
"this",
"hosting",
"account"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L626-L632 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_request_POST | 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 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 = ... | [
"public",
"OvhTask",
"serviceName_request_POST",
"(",
"String",
"serviceName",
",",
"OvhRequestActionEnum",
"action",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/request\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPat... | Request specific operation for your hosting
REST: POST /hosting/web/{serviceName}/request
@param action [required] Action you want to request
@param serviceName [required] The internal name of your hosting | [
"Request",
"specific",
"operation",
"for",
"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#L737-L744 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_databaseAvailableVersion_GET | 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 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"... | [
"public",
"OvhAvailableVersionStruct",
"serviceName_databaseAvailableVersion_GET",
"(",
"String",
"serviceName",
",",
"OvhDatabaseTypeEnum",
"type",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/databaseAvailableVersion\"",
";",
"StringB... | List available database version following a type
REST: GET /hosting/web/{serviceName}/databaseAvailableVersion
@param type [required] Type of the database
@param serviceName [required] The internal name of your hosting | [
"List",
"available",
"database",
"version",
"following",
"a",
"type"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L753-L759 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_localSeo_account_GET | 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 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... | [
"public",
"ArrayList",
"<",
"Long",
">",
"serviceName_localSeo_account_GET",
"(",
"String",
"serviceName",
",",
"String",
"email",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/localSeo/account\"",
";",
"StringBuilder",
"sb",
"... | Local SEO accounts associated to the hosting
REST: GET /hosting/web/{serviceName}/localSeo/account
@param email [required] Filter the value of email property (like)
@param serviceName [required] The internal name of your hosting | [
"Local",
"SEO",
"accounts",
"associated",
"to",
"the",
"hosting"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L880-L886 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_ownLogs_id_userLogs_login_DELETE | 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_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);
... | [
"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}\"",
";",
"Stri... | Delete the userLogs
REST: DELETE /hosting/web/{serviceName}/ownLogs/{id}/userLogs/{login}
@param serviceName [required] The internal name of your hosting
@param id [required] Id of the object
@param login [required] The userLogs login used to connect to logs.ovh.net | [
"Delete",
"the",
"userLogs"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1034-L1039 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_ownLogs_id_userLogs_login_changePassword_POST | 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 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,... | [
"public",
"String",
"serviceName_ownLogs_id_userLogs_login_changePassword_POST",
"(",
"String",
"serviceName",
",",
"Long",
"id",
",",
"String",
"login",
",",
"String",
"password",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/ow... | Request a password change
REST: POST /hosting/web/{serviceName}/ownLogs/{id}/userLogs/{login}/changePassword
@param password [required] The new userLogs password
@param serviceName [required] The internal name of your hosting
@param id [required] Id of the object
@param login [required] The userLogs login used to conn... | [
"Request",
"a",
"password",
"change"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1050-L1057 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_restoreSnapshot_POST | 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 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>();
... | [
"public",
"OvhTask",
"serviceName_restoreSnapshot_POST",
"(",
"String",
"serviceName",
",",
"net",
".",
"minidev",
".",
"ovh",
".",
"api",
".",
"hosting",
".",
"web",
".",
"backup",
".",
"OvhTypeEnum",
"backup",
")",
"throws",
"IOException",
"{",
"String",
"qP... | Restore this snapshot ALL CURRENT DATA WILL BE REPLACED BY YOUR SNAPSHOT
REST: POST /hosting/web/{serviceName}/restoreSnapshot
@param backup [required] The backup you want to restore
@param serviceName [required] The internal name of your hosting | [
"Restore",
"this",
"snapshot",
"ALL",
"CURRENT",
"DATA",
"WILL",
"BE",
"REPLACED",
"BY",
"YOUR",
"SNAPSHOT"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1066-L1073 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_database_GET | 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 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... | [
"public",
"ArrayList",
"<",
"String",
">",
"serviceName_database_GET",
"(",
"String",
"serviceName",
",",
"OvhModeEnum",
"mode",
",",
"String",
"name",
",",
"String",
"server",
",",
"OvhDatabaseTypeEnum",
"type",
",",
"String",
"user",
")",
"throws",
"IOException"... | Databases linked to your hosting
REST: GET /hosting/web/{serviceName}/database
@param type [required] Filter the value of type property (=)
@param name [required] Filter the value of name property (like)
@param server [required] Filter the value of server property (like)
@param mode [required] Filter the value of mode... | [
"Databases",
"linked",
"to",
"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#L1086-L1096 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_database_POST | 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_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... | [
"public",
"OvhTask",
"serviceName_database_POST",
"(",
"String",
"serviceName",
",",
"OvhDatabaseCapabilitiesTypeEnum",
"capabilitie",
",",
"String",
"password",
",",
"OvhExtraSqlQuotaEnum",
"quota",
",",
"OvhDatabaseTypeEnum",
"type",
",",
"String",
"user",
",",
"OvhVers... | Install new database
REST: POST /hosting/web/{serviceName}/database
@param type [required] Type you want for your database
@param password [required] Database password
@param user [required] Database user name. Must begin with your hosting login and must be in lower case
@param quota [required] Quota assign to your da... | [
"Install",
"new",
"database"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1110-L1122 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_database_name_request_POST | 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 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, ... | [
"public",
"OvhTask",
"serviceName_database_name_request_POST",
"(",
"String",
"serviceName",
",",
"String",
"name",
",",
"net",
".",
"minidev",
".",
"ovh",
".",
"api",
".",
"hosting",
".",
"web",
".",
"database",
".",
"OvhRequestActionEnum",
"action",
")",
"thro... | Request specific operation for your database
REST: POST /hosting/web/{serviceName}/database/{name}/request
@param action [required] Action you want to request
@param serviceName [required] The internal name of your hosting
@param name [required] Database name (like mydb.mysql.db or mydb.postgres.db) | [
"Request",
"specific",
"operation",
"for",
"your",
"database"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1160-L1167 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_database_name_dump_GET | 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 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... | [
"public",
"ArrayList",
"<",
"Long",
">",
"serviceName_database_name_dump_GET",
"(",
"String",
"serviceName",
",",
"String",
"name",
",",
"Date",
"creationDate",
",",
"Date",
"deletionDate",
",",
"OvhDateEnum",
"type",
")",
"throws",
"IOException",
"{",
"String",
"... | Dump available for your databases
REST: GET /hosting/web/{serviceName}/database/{name}/dump
@param type [required] Filter the value of type property (=)
@param deletionDate [required] Filter the value of deletionDate property (like)
@param creationDate [required] Filter the value of creationDate property (like)
@param... | [
"Dump",
"available",
"for",
"your",
"databases"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1179-L1187 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_database_name_dump_POST | 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 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>(... | [
"public",
"OvhTask",
"serviceName_database_name_dump_POST",
"(",
"String",
"serviceName",
",",
"String",
"name",
",",
"OvhDateEnum",
"date",
",",
"Boolean",
"sendEmail",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/database/{nam... | Request the dump from your database
REST: POST /hosting/web/{serviceName}/database/{name}/dump
@param date [required] The date you want to dump
@param sendEmail [required] Send an email when dump will be available? Default: true
@param serviceName [required] The internal name of your hosting
@param name [required] Dat... | [
"Request",
"the",
"dump",
"from",
"your",
"database"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1198-L1206 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_database_name_statistics_GET | 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<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... | [
"public",
"ArrayList",
"<",
"OvhChartSerie",
"<",
"OvhChartTimestampValue",
">",
">",
"serviceName_database_name_statistics_GET",
"(",
"String",
"serviceName",
",",
"String",
"name",
",",
"OvhStatisticsPeriodEnum",
"period",
",",
"net",
".",
"minidev",
".",
"ovh",
"."... | Get statistics about this database
REST: GET /hosting/web/{serviceName}/database/{name}/statistics
@param type [required] Types of statistics available for the database
@param period [required] Available periods for statistics
@param serviceName [required] The internal name of your hosting
@param name [required] Datab... | [
"Get",
"statistics",
"about",
"this",
"database"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1312-L1319 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_cronAvailableLanguage_GET | 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<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);
} | [
"public",
"ArrayList",
"<",
"OvhLanguageEnum",
">",
"serviceName_cronAvailableLanguage_GET",
"(",
"String",
"serviceName",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/cronAvailableLanguage\"",
";",
"StringBuilder",
"sb",
"=",
"pa... | List available cron language
REST: GET /hosting/web/{serviceName}/cronAvailableLanguage
@param serviceName [required] The internal name of your hosting | [
"List",
"available",
"cron",
"language"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1368-L1373 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java | ApiOvhHostingweb.serviceName_databaseAvailableType_GET | 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 | 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);
... | [
"public",
"ArrayList",
"<",
"OvhDatabaseTypeEnum",
">",
"serviceName_databaseAvailableType_GET",
"(",
"String",
"serviceName",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/hosting/web/{serviceName}/databaseAvailableType\"",
";",
"StringBuilder",
"sb",
"=",
... | List available database type
REST: GET /hosting/web/{serviceName}/databaseAvailableType
@param serviceName [required] The internal name of your hosting | [
"List",
"available",
"database",
"type"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-hostingweb/src/main/java/net/minidev/ovh/api/ApiOvhHostingweb.java#L1534-L1539 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.