com.ovhcloud.pulumi.ovh.Cloud.CloudFunctions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-ovh Show documentation
Show all versions of pulumi-ovh Show documentation
A Pulumi package for creating and managing OVH resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.ovhcloud.pulumi.ovh.Cloud;
import com.ovhcloud.pulumi.ovh.Cloud.inputs.GetProjectArgs;
import com.ovhcloud.pulumi.ovh.Cloud.inputs.GetProjectPlainArgs;
import com.ovhcloud.pulumi.ovh.Cloud.outputs.GetProjectResult;
import com.ovhcloud.pulumi.ovh.Cloud.outputs.GetProjectsResult;
import com.ovhcloud.pulumi.ovh.Utilities;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import com.pulumi.resources.InvokeArgs;
import java.util.concurrent.CompletableFuture;
public final class CloudFunctions {
/**
* Get the details of a public cloud project.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Cloud.CloudFunctions;
* import com.pulumi.ovh.Cloud.inputs.GetProjectArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var project = CloudFunctions.getProject(GetProjectArgs.builder()
* .serviceName("XXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getProject(GetProjectArgs args) {
return getProject(args, InvokeOptions.Empty);
}
/**
* Get the details of a public cloud project.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Cloud.CloudFunctions;
* import com.pulumi.ovh.Cloud.inputs.GetProjectArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var project = CloudFunctions.getProject(GetProjectArgs.builder()
* .serviceName("XXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getProjectPlain(GetProjectPlainArgs args) {
return getProjectPlain(args, InvokeOptions.Empty);
}
/**
* Get the details of a public cloud project.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Cloud.CloudFunctions;
* import com.pulumi.ovh.Cloud.inputs.GetProjectArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var project = CloudFunctions.getProject(GetProjectArgs.builder()
* .serviceName("XXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getProject(GetProjectArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("ovh:Cloud/getProject:getProject", TypeShape.of(GetProjectResult.class), args, Utilities.withVersion(options));
}
/**
* Get the details of a public cloud project.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Cloud.CloudFunctions;
* import com.pulumi.ovh.Cloud.inputs.GetProjectArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var project = CloudFunctions.getProject(GetProjectArgs.builder()
* .serviceName("XXX")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getProjectPlain(GetProjectPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("ovh:Cloud/getProject:getProject", TypeShape.of(GetProjectResult.class), args, Utilities.withVersion(options));
}
/**
* Get the details of your public cloud projects.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Cloud.CloudFunctions;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var projects = CloudFunctions.getProjects();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getProjects() {
return getProjects(InvokeArgs.Empty, InvokeOptions.Empty);
}
/**
* Get the details of your public cloud projects.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Cloud.CloudFunctions;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var projects = CloudFunctions.getProjects();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getProjectsPlain() {
return getProjectsPlain(InvokeArgs.Empty, InvokeOptions.Empty);
}
/**
* Get the details of your public cloud projects.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Cloud.CloudFunctions;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var projects = CloudFunctions.getProjects();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getProjects(InvokeArgs args) {
return getProjects(args, InvokeOptions.Empty);
}
/**
* Get the details of your public cloud projects.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Cloud.CloudFunctions;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var projects = CloudFunctions.getProjects();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getProjectsPlain(InvokeArgs args) {
return getProjectsPlain(args, InvokeOptions.Empty);
}
/**
* Get the details of your public cloud projects.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Cloud.CloudFunctions;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var projects = CloudFunctions.getProjects();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getProjects(InvokeArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("ovh:Cloud/getProjects:getProjects", TypeShape.of(GetProjectsResult.class), args, Utilities.withVersion(options));
}
/**
* Get the details of your public cloud projects.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.ovh.Cloud.CloudFunctions;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
*
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
*
* public static void stack(Context ctx) {
* final var projects = CloudFunctions.getProjects();
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getProjectsPlain(InvokeArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("ovh:Cloud/getProjects:getProjects", TypeShape.of(GetProjectsResult.class), args, Utilities.withVersion(options));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy