All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.equinix.pulumi.metal.MetalFunctions Maven / Gradle / Ivy

There is a newer version: 0.19.0
Show newest version
// *** 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.equinix.pulumi.metal;

import com.equinix.pulumi.Utilities;
import com.equinix.pulumi.metal.inputs.GetDeviceArgs;
import com.equinix.pulumi.metal.inputs.GetDeviceBgpNeighborsArgs;
import com.equinix.pulumi.metal.inputs.GetDeviceBgpNeighborsPlainArgs;
import com.equinix.pulumi.metal.inputs.GetDevicePlainArgs;
import com.equinix.pulumi.metal.inputs.GetDevicesArgs;
import com.equinix.pulumi.metal.inputs.GetDevicesPlainArgs;
import com.equinix.pulumi.metal.inputs.GetFacilityArgs;
import com.equinix.pulumi.metal.inputs.GetFacilityPlainArgs;
import com.equinix.pulumi.metal.inputs.GetGatewayArgs;
import com.equinix.pulumi.metal.inputs.GetGatewayPlainArgs;
import com.equinix.pulumi.metal.inputs.GetHardwareReservationArgs;
import com.equinix.pulumi.metal.inputs.GetHardwareReservationPlainArgs;
import com.equinix.pulumi.metal.inputs.GetInterconnectionArgs;
import com.equinix.pulumi.metal.inputs.GetInterconnectionPlainArgs;
import com.equinix.pulumi.metal.inputs.GetIpBlockRangesArgs;
import com.equinix.pulumi.metal.inputs.GetIpBlockRangesPlainArgs;
import com.equinix.pulumi.metal.inputs.GetMetroArgs;
import com.equinix.pulumi.metal.inputs.GetMetroPlainArgs;
import com.equinix.pulumi.metal.inputs.GetOperatingSystemArgs;
import com.equinix.pulumi.metal.inputs.GetOperatingSystemPlainArgs;
import com.equinix.pulumi.metal.inputs.GetOrganizationArgs;
import com.equinix.pulumi.metal.inputs.GetOrganizationPlainArgs;
import com.equinix.pulumi.metal.inputs.GetPlansArgs;
import com.equinix.pulumi.metal.inputs.GetPlansPlainArgs;
import com.equinix.pulumi.metal.inputs.GetPortArgs;
import com.equinix.pulumi.metal.inputs.GetPortPlainArgs;
import com.equinix.pulumi.metal.inputs.GetPrecreatedIpBlockArgs;
import com.equinix.pulumi.metal.inputs.GetPrecreatedIpBlockPlainArgs;
import com.equinix.pulumi.metal.inputs.GetProjectArgs;
import com.equinix.pulumi.metal.inputs.GetProjectPlainArgs;
import com.equinix.pulumi.metal.inputs.GetProjectSshKeyArgs;
import com.equinix.pulumi.metal.inputs.GetProjectSshKeyPlainArgs;
import com.equinix.pulumi.metal.inputs.GetReservedIpBlockArgs;
import com.equinix.pulumi.metal.inputs.GetReservedIpBlockPlainArgs;
import com.equinix.pulumi.metal.inputs.GetSpotMarketPriceArgs;
import com.equinix.pulumi.metal.inputs.GetSpotMarketPricePlainArgs;
import com.equinix.pulumi.metal.inputs.GetSpotMarketRequestArgs;
import com.equinix.pulumi.metal.inputs.GetSpotMarketRequestPlainArgs;
import com.equinix.pulumi.metal.inputs.GetVirtualCircuitArgs;
import com.equinix.pulumi.metal.inputs.GetVirtualCircuitPlainArgs;
import com.equinix.pulumi.metal.inputs.GetVlanArgs;
import com.equinix.pulumi.metal.inputs.GetVlanPlainArgs;
import com.equinix.pulumi.metal.inputs.GetVrfArgs;
import com.equinix.pulumi.metal.inputs.GetVrfPlainArgs;
import com.equinix.pulumi.metal.outputs.GetDeviceBgpNeighborsResult;
import com.equinix.pulumi.metal.outputs.GetDeviceResult;
import com.equinix.pulumi.metal.outputs.GetDevicesResult;
import com.equinix.pulumi.metal.outputs.GetFacilityResult;
import com.equinix.pulumi.metal.outputs.GetGatewayResult;
import com.equinix.pulumi.metal.outputs.GetHardwareReservationResult;
import com.equinix.pulumi.metal.outputs.GetInterconnectionResult;
import com.equinix.pulumi.metal.outputs.GetIpBlockRangesResult;
import com.equinix.pulumi.metal.outputs.GetMetroResult;
import com.equinix.pulumi.metal.outputs.GetOperatingSystemResult;
import com.equinix.pulumi.metal.outputs.GetOrganizationResult;
import com.equinix.pulumi.metal.outputs.GetPlansResult;
import com.equinix.pulumi.metal.outputs.GetPortResult;
import com.equinix.pulumi.metal.outputs.GetPrecreatedIpBlockResult;
import com.equinix.pulumi.metal.outputs.GetProjectResult;
import com.equinix.pulumi.metal.outputs.GetProjectSshKeyResult;
import com.equinix.pulumi.metal.outputs.GetReservedIpBlockResult;
import com.equinix.pulumi.metal.outputs.GetSpotMarketPriceResult;
import com.equinix.pulumi.metal.outputs.GetSpotMarketRequestResult;
import com.equinix.pulumi.metal.outputs.GetVirtualCircuitResult;
import com.equinix.pulumi.metal.outputs.GetVlanResult;
import com.equinix.pulumi.metal.outputs.GetVrfResult;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import java.util.concurrent.CompletableFuture;

public final class MetalFunctions {
    /**
     * The datasource can be used to fetch a single device.
     * 
     * If you need to fetch a list of devices which meet filter criteria, you can use the equinix.metal.getDevices datasource.
     * 
     * > **Note:** All arguments including the `root_password` and `user_data` will be stored in the raw state as plain-text. Read more about sensitive data in state.
     * 
     * ## Example Usage
     * 
     * <!--Start PulumiCodeChooser -->
     * 
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceArgs;
     * 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 test = MetalFunctions.getDevice(GetDeviceArgs.builder()
     *             .projectId(local.project_id())
     *             .hostname("mydevice")
     *             .build());
     * 
     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceArgs;
     * 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 test = MetalFunctions.getDevice(GetDeviceArgs.builder()
     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
     *             .build());
     * 
     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getDevice() { return getDevice(GetDeviceArgs.Empty, InvokeOptions.Empty); } /** * The datasource can be used to fetch a single device. * * If you need to fetch a list of devices which meet filter criteria, you can use the equinix.metal.getDevices datasource. * * > **Note:** All arguments including the `root_password` and `user_data` will be stored in the raw state as plain-text. Read more about sensitive data in state. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceArgs;
     * 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 test = MetalFunctions.getDevice(GetDeviceArgs.builder()
     *             .projectId(local.project_id())
     *             .hostname("mydevice")
     *             .build());
     * 
     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceArgs;
     * 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 test = MetalFunctions.getDevice(GetDeviceArgs.builder()
     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
     *             .build());
     * 
     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDevicePlain() { return getDevicePlain(GetDevicePlainArgs.Empty, InvokeOptions.Empty); } /** * The datasource can be used to fetch a single device. * * If you need to fetch a list of devices which meet filter criteria, you can use the equinix.metal.getDevices datasource. * * > **Note:** All arguments including the `root_password` and `user_data` will be stored in the raw state as plain-text. Read more about sensitive data in state. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceArgs;
     * 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 test = MetalFunctions.getDevice(GetDeviceArgs.builder()
     *             .projectId(local.project_id())
     *             .hostname("mydevice")
     *             .build());
     * 
     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceArgs;
     * 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 test = MetalFunctions.getDevice(GetDeviceArgs.builder()
     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
     *             .build());
     * 
     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getDevice(GetDeviceArgs args) { return getDevice(args, InvokeOptions.Empty); } /** * The datasource can be used to fetch a single device. * * If you need to fetch a list of devices which meet filter criteria, you can use the equinix.metal.getDevices datasource. * * > **Note:** All arguments including the `root_password` and `user_data` will be stored in the raw state as plain-text. Read more about sensitive data in state. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceArgs;
     * 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 test = MetalFunctions.getDevice(GetDeviceArgs.builder()
     *             .projectId(local.project_id())
     *             .hostname("mydevice")
     *             .build());
     * 
     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceArgs;
     * 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 test = MetalFunctions.getDevice(GetDeviceArgs.builder()
     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
     *             .build());
     * 
     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDevicePlain(GetDevicePlainArgs args) { return getDevicePlain(args, InvokeOptions.Empty); } /** * The datasource can be used to fetch a single device. * * If you need to fetch a list of devices which meet filter criteria, you can use the equinix.metal.getDevices datasource. * * > **Note:** All arguments including the `root_password` and `user_data` will be stored in the raw state as plain-text. Read more about sensitive data in state. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceArgs;
     * 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 test = MetalFunctions.getDevice(GetDeviceArgs.builder()
     *             .projectId(local.project_id())
     *             .hostname("mydevice")
     *             .build());
     * 
     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceArgs;
     * 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 test = MetalFunctions.getDevice(GetDeviceArgs.builder()
     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
     *             .build());
     * 
     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getDevice(GetDeviceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getDevice:getDevice", TypeShape.of(GetDeviceResult.class), args, Utilities.withVersion(options)); } /** * The datasource can be used to fetch a single device. * * If you need to fetch a list of devices which meet filter criteria, you can use the equinix.metal.getDevices datasource. * * > **Note:** All arguments including the `root_password` and `user_data` will be stored in the raw state as plain-text. Read more about sensitive data in state. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceArgs;
     * 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 test = MetalFunctions.getDevice(GetDeviceArgs.builder()
     *             .projectId(local.project_id())
     *             .hostname("mydevice")
     *             .build());
     * 
     *         ctx.export("id", test.applyValue(getDeviceResult -> getDeviceResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceArgs;
     * 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 test = MetalFunctions.getDevice(GetDeviceArgs.builder()
     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
     *             .build());
     * 
     *         ctx.export("ipv4", test.applyValue(getDeviceResult -> getDeviceResult.accessPublicIpv4()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDevicePlain(GetDevicePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getDevice:getDevice", TypeShape.of(GetDeviceResult.class), args, Utilities.withVersion(options)); } /** * Use this datasource to retrieve list of BGP neighbors of a device in the Equinix Metal host. * * To have any BGP neighbors listed, the device must be in BGP-enabled project and have a BGP session assigned. * * To learn more about using BGP in Equinix Metal, see the equinix.metal.BgpSession resource documentation. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceBgpNeighborsArgs;
     * 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 test = MetalFunctions.getDeviceBgpNeighbors(GetDeviceBgpNeighborsArgs.builder()
     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
     *             .build());
     * 
     *         ctx.export("bgpNeighborsListing", test.applyValue(getDeviceBgpNeighborsResult -> getDeviceBgpNeighborsResult.bgpNeighbors()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getDeviceBgpNeighbors(GetDeviceBgpNeighborsArgs args) { return getDeviceBgpNeighbors(args, InvokeOptions.Empty); } /** * Use this datasource to retrieve list of BGP neighbors of a device in the Equinix Metal host. * * To have any BGP neighbors listed, the device must be in BGP-enabled project and have a BGP session assigned. * * To learn more about using BGP in Equinix Metal, see the equinix.metal.BgpSession resource documentation. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceBgpNeighborsArgs;
     * 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 test = MetalFunctions.getDeviceBgpNeighbors(GetDeviceBgpNeighborsArgs.builder()
     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
     *             .build());
     * 
     *         ctx.export("bgpNeighborsListing", test.applyValue(getDeviceBgpNeighborsResult -> getDeviceBgpNeighborsResult.bgpNeighbors()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDeviceBgpNeighborsPlain(GetDeviceBgpNeighborsPlainArgs args) { return getDeviceBgpNeighborsPlain(args, InvokeOptions.Empty); } /** * Use this datasource to retrieve list of BGP neighbors of a device in the Equinix Metal host. * * To have any BGP neighbors listed, the device must be in BGP-enabled project and have a BGP session assigned. * * To learn more about using BGP in Equinix Metal, see the equinix.metal.BgpSession resource documentation. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceBgpNeighborsArgs;
     * 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 test = MetalFunctions.getDeviceBgpNeighbors(GetDeviceBgpNeighborsArgs.builder()
     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
     *             .build());
     * 
     *         ctx.export("bgpNeighborsListing", test.applyValue(getDeviceBgpNeighborsResult -> getDeviceBgpNeighborsResult.bgpNeighbors()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getDeviceBgpNeighbors(GetDeviceBgpNeighborsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getDeviceBgpNeighbors:getDeviceBgpNeighbors", TypeShape.of(GetDeviceBgpNeighborsResult.class), args, Utilities.withVersion(options)); } /** * Use this datasource to retrieve list of BGP neighbors of a device in the Equinix Metal host. * * To have any BGP neighbors listed, the device must be in BGP-enabled project and have a BGP session assigned. * * To learn more about using BGP in Equinix Metal, see the equinix.metal.BgpSession resource documentation. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDeviceBgpNeighborsArgs;
     * 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 test = MetalFunctions.getDeviceBgpNeighbors(GetDeviceBgpNeighborsArgs.builder()
     *             .deviceId("4c641195-25e5-4c3c-b2b7-4cd7a42c7b40")
     *             .build());
     * 
     *         ctx.export("bgpNeighborsListing", test.applyValue(getDeviceBgpNeighborsResult -> getDeviceBgpNeighborsResult.bgpNeighbors()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDeviceBgpNeighborsPlain(GetDeviceBgpNeighborsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getDeviceBgpNeighbors:getDeviceBgpNeighbors", TypeShape.of(GetDeviceBgpNeighborsResult.class), args, Utilities.withVersion(options)); } /** * The datasource can be used to find a list of devices which meet filter criteria. * * If you need to fetch a single device by ID or by project ID and hostname, use the equinix.metal.Device datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDevicesArgs;
     * 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 example = MetalFunctions.getDevices(GetDevicesArgs.builder()
     *             .projectId(local.project_id())
     *             .filters(            
     *                 GetDevicesFilterArgs.builder()
     *                     .attribute("plan")
     *                     .values("c3.small.x86")
     *                     .build(),
     *                 GetDevicesFilterArgs.builder()
     *                     .attribute("metro")
     *                     .values(                    
     *                         "da",
     *                         "sv")
     *                     .build())
     *             .build());
     * 
     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDevicesArgs;
     * 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 example = MetalFunctions.getDevices(GetDevicesArgs.builder()
     *             .search("database")
     *             .build());
     * 
     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * ## search vs filter * * The difference between `search` and `filter` is that `search` is an API parameter, interpreted by the Equinix Metal service. The "filter" arguments will reduce the API list (or search) results by applying client-side filtering, within this provider. * */ public static Output getDevices() { return getDevices(GetDevicesArgs.Empty, InvokeOptions.Empty); } /** * The datasource can be used to find a list of devices which meet filter criteria. * * If you need to fetch a single device by ID or by project ID and hostname, use the equinix.metal.Device datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDevicesArgs;
     * 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 example = MetalFunctions.getDevices(GetDevicesArgs.builder()
     *             .projectId(local.project_id())
     *             .filters(            
     *                 GetDevicesFilterArgs.builder()
     *                     .attribute("plan")
     *                     .values("c3.small.x86")
     *                     .build(),
     *                 GetDevicesFilterArgs.builder()
     *                     .attribute("metro")
     *                     .values(                    
     *                         "da",
     *                         "sv")
     *                     .build())
     *             .build());
     * 
     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDevicesArgs;
     * 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 example = MetalFunctions.getDevices(GetDevicesArgs.builder()
     *             .search("database")
     *             .build());
     * 
     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * ## search vs filter * * The difference between `search` and `filter` is that `search` is an API parameter, interpreted by the Equinix Metal service. The "filter" arguments will reduce the API list (or search) results by applying client-side filtering, within this provider. * */ public static CompletableFuture getDevicesPlain() { return getDevicesPlain(GetDevicesPlainArgs.Empty, InvokeOptions.Empty); } /** * The datasource can be used to find a list of devices which meet filter criteria. * * If you need to fetch a single device by ID or by project ID and hostname, use the equinix.metal.Device datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDevicesArgs;
     * 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 example = MetalFunctions.getDevices(GetDevicesArgs.builder()
     *             .projectId(local.project_id())
     *             .filters(            
     *                 GetDevicesFilterArgs.builder()
     *                     .attribute("plan")
     *                     .values("c3.small.x86")
     *                     .build(),
     *                 GetDevicesFilterArgs.builder()
     *                     .attribute("metro")
     *                     .values(                    
     *                         "da",
     *                         "sv")
     *                     .build())
     *             .build());
     * 
     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDevicesArgs;
     * 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 example = MetalFunctions.getDevices(GetDevicesArgs.builder()
     *             .search("database")
     *             .build());
     * 
     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * ## search vs filter * * The difference between `search` and `filter` is that `search` is an API parameter, interpreted by the Equinix Metal service. The "filter" arguments will reduce the API list (or search) results by applying client-side filtering, within this provider. * */ public static Output getDevices(GetDevicesArgs args) { return getDevices(args, InvokeOptions.Empty); } /** * The datasource can be used to find a list of devices which meet filter criteria. * * If you need to fetch a single device by ID or by project ID and hostname, use the equinix.metal.Device datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDevicesArgs;
     * 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 example = MetalFunctions.getDevices(GetDevicesArgs.builder()
     *             .projectId(local.project_id())
     *             .filters(            
     *                 GetDevicesFilterArgs.builder()
     *                     .attribute("plan")
     *                     .values("c3.small.x86")
     *                     .build(),
     *                 GetDevicesFilterArgs.builder()
     *                     .attribute("metro")
     *                     .values(                    
     *                         "da",
     *                         "sv")
     *                     .build())
     *             .build());
     * 
     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDevicesArgs;
     * 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 example = MetalFunctions.getDevices(GetDevicesArgs.builder()
     *             .search("database")
     *             .build());
     * 
     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * ## search vs filter * * The difference between `search` and `filter` is that `search` is an API parameter, interpreted by the Equinix Metal service. The "filter" arguments will reduce the API list (or search) results by applying client-side filtering, within this provider. * */ public static CompletableFuture getDevicesPlain(GetDevicesPlainArgs args) { return getDevicesPlain(args, InvokeOptions.Empty); } /** * The datasource can be used to find a list of devices which meet filter criteria. * * If you need to fetch a single device by ID or by project ID and hostname, use the equinix.metal.Device datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDevicesArgs;
     * 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 example = MetalFunctions.getDevices(GetDevicesArgs.builder()
     *             .projectId(local.project_id())
     *             .filters(            
     *                 GetDevicesFilterArgs.builder()
     *                     .attribute("plan")
     *                     .values("c3.small.x86")
     *                     .build(),
     *                 GetDevicesFilterArgs.builder()
     *                     .attribute("metro")
     *                     .values(                    
     *                         "da",
     *                         "sv")
     *                     .build())
     *             .build());
     * 
     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDevicesArgs;
     * 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 example = MetalFunctions.getDevices(GetDevicesArgs.builder()
     *             .search("database")
     *             .build());
     * 
     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * ## search vs filter * * The difference between `search` and `filter` is that `search` is an API parameter, interpreted by the Equinix Metal service. The "filter" arguments will reduce the API list (or search) results by applying client-side filtering, within this provider. * */ public static Output getDevices(GetDevicesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getDevices:getDevices", TypeShape.of(GetDevicesResult.class), args, Utilities.withVersion(options)); } /** * The datasource can be used to find a list of devices which meet filter criteria. * * If you need to fetch a single device by ID or by project ID and hostname, use the equinix.metal.Device datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDevicesArgs;
     * 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 example = MetalFunctions.getDevices(GetDevicesArgs.builder()
     *             .projectId(local.project_id())
     *             .filters(            
     *                 GetDevicesFilterArgs.builder()
     *                     .attribute("plan")
     *                     .values("c3.small.x86")
     *                     .build(),
     *                 GetDevicesFilterArgs.builder()
     *                     .attribute("metro")
     *                     .values(                    
     *                         "da",
     *                         "sv")
     *                     .build())
     *             .build());
     * 
     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetDevicesArgs;
     * 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 example = MetalFunctions.getDevices(GetDevicesArgs.builder()
     *             .search("database")
     *             .build());
     * 
     *         ctx.export("devices", example.applyValue(getDevicesResult -> getDevicesResult.devices()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * ## search vs filter * * The difference between `search` and `filter` is that `search` is an API parameter, interpreted by the Equinix Metal service. The "filter" arguments will reduce the API list (or search) results by applying client-side filtering, within this provider. * */ public static CompletableFuture getDevicesPlain(GetDevicesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getDevices:getDevices", TypeShape.of(GetDevicesResult.class), args, Utilities.withVersion(options)); } /** * > **Deprecated** Use `equinix.metal.getMetro` instead. For more information, refer to the facility to metro migration guide. * * Provides an Equinix Metal facility datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetFacilityArgs;
     * 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 ny5 = MetalFunctions.getFacility(GetFacilityArgs.builder()
     *             .code("ny5")
     *             .build());
     * 
     *         ctx.export("id", ny5.applyValue(getFacilityResult -> getFacilityResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getFacility(GetFacilityArgs args) { return getFacility(args, InvokeOptions.Empty); } /** * > **Deprecated** Use `equinix.metal.getMetro` instead. For more information, refer to the facility to metro migration guide. * * Provides an Equinix Metal facility datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetFacilityArgs;
     * 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 ny5 = MetalFunctions.getFacility(GetFacilityArgs.builder()
     *             .code("ny5")
     *             .build());
     * 
     *         ctx.export("id", ny5.applyValue(getFacilityResult -> getFacilityResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getFacilityPlain(GetFacilityPlainArgs args) { return getFacilityPlain(args, InvokeOptions.Empty); } /** * > **Deprecated** Use `equinix.metal.getMetro` instead. For more information, refer to the facility to metro migration guide. * * Provides an Equinix Metal facility datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetFacilityArgs;
     * 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 ny5 = MetalFunctions.getFacility(GetFacilityArgs.builder()
     *             .code("ny5")
     *             .build());
     * 
     *         ctx.export("id", ny5.applyValue(getFacilityResult -> getFacilityResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getFacility(GetFacilityArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getFacility:getFacility", TypeShape.of(GetFacilityResult.class), args, Utilities.withVersion(options)); } /** * > **Deprecated** Use `equinix.metal.getMetro` instead. For more information, refer to the facility to metro migration guide. * * Provides an Equinix Metal facility datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetFacilityArgs;
     * 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 ny5 = MetalFunctions.getFacility(GetFacilityArgs.builder()
     *             .code("ny5")
     *             .build());
     * 
     *         ctx.export("id", ny5.applyValue(getFacilityResult -> getFacilityResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getFacilityPlain(GetFacilityPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getFacility:getFacility", TypeShape.of(GetFacilityResult.class), args, Utilities.withVersion(options)); } /** * Use this datasource to retrieve Metal Gateway resources in Equinix Metal. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Vlan;
     * import com.pulumi.equinix.metal.VlanArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetGatewayArgs;
     * 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) {
     *         // Create Metal Gateway for a VLAN with a private IPv4 block with 8 IP addresses
     *         var testVlan = new Vlan("testVlan", VlanArgs.builder()
     *             .description("test VLAN in SV")
     *             .metro("sv")
     *             .projectId(local.project_id())
     *             .build());
     * 
     *         final var testGateway = MetalFunctions.getGateway(GetGatewayArgs.builder()
     *             .gatewayId(local.gateway_id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getGateway(GetGatewayArgs args) { return getGateway(args, InvokeOptions.Empty); } /** * Use this datasource to retrieve Metal Gateway resources in Equinix Metal. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Vlan;
     * import com.pulumi.equinix.metal.VlanArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetGatewayArgs;
     * 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) {
     *         // Create Metal Gateway for a VLAN with a private IPv4 block with 8 IP addresses
     *         var testVlan = new Vlan("testVlan", VlanArgs.builder()
     *             .description("test VLAN in SV")
     *             .metro("sv")
     *             .projectId(local.project_id())
     *             .build());
     * 
     *         final var testGateway = MetalFunctions.getGateway(GetGatewayArgs.builder()
     *             .gatewayId(local.gateway_id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getGatewayPlain(GetGatewayPlainArgs args) { return getGatewayPlain(args, InvokeOptions.Empty); } /** * Use this datasource to retrieve Metal Gateway resources in Equinix Metal. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Vlan;
     * import com.pulumi.equinix.metal.VlanArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetGatewayArgs;
     * 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) {
     *         // Create Metal Gateway for a VLAN with a private IPv4 block with 8 IP addresses
     *         var testVlan = new Vlan("testVlan", VlanArgs.builder()
     *             .description("test VLAN in SV")
     *             .metro("sv")
     *             .projectId(local.project_id())
     *             .build());
     * 
     *         final var testGateway = MetalFunctions.getGateway(GetGatewayArgs.builder()
     *             .gatewayId(local.gateway_id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getGateway(GetGatewayArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getGateway:getGateway", TypeShape.of(GetGatewayResult.class), args, Utilities.withVersion(options)); } /** * Use this datasource to retrieve Metal Gateway resources in Equinix Metal. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Vlan;
     * import com.pulumi.equinix.metal.VlanArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetGatewayArgs;
     * 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) {
     *         // Create Metal Gateway for a VLAN with a private IPv4 block with 8 IP addresses
     *         var testVlan = new Vlan("testVlan", VlanArgs.builder()
     *             .description("test VLAN in SV")
     *             .metro("sv")
     *             .projectId(local.project_id())
     *             .build());
     * 
     *         final var testGateway = MetalFunctions.getGateway(GetGatewayArgs.builder()
     *             .gatewayId(local.gateway_id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getGatewayPlain(GetGatewayPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getGateway:getGateway", TypeShape.of(GetGatewayResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to retrieve a [hardware reservation resource from Equinix Metal](https://metal.equinix.com/developers/docs/deploy/reserved/). * * You can look up hardware reservation by its ID or by ID of device which occupies it. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetHardwareReservationArgs;
     * 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 example = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
     *             .build());
     * 
     *         final var exampleByDeviceId = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getHardwareReservation() { return getHardwareReservation(GetHardwareReservationArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to retrieve a [hardware reservation resource from Equinix Metal](https://metal.equinix.com/developers/docs/deploy/reserved/). * * You can look up hardware reservation by its ID or by ID of device which occupies it. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetHardwareReservationArgs;
     * 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 example = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
     *             .build());
     * 
     *         final var exampleByDeviceId = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getHardwareReservationPlain() { return getHardwareReservationPlain(GetHardwareReservationPlainArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to retrieve a [hardware reservation resource from Equinix Metal](https://metal.equinix.com/developers/docs/deploy/reserved/). * * You can look up hardware reservation by its ID or by ID of device which occupies it. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetHardwareReservationArgs;
     * 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 example = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
     *             .build());
     * 
     *         final var exampleByDeviceId = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getHardwareReservation(GetHardwareReservationArgs args) { return getHardwareReservation(args, InvokeOptions.Empty); } /** * Use this data source to retrieve a [hardware reservation resource from Equinix Metal](https://metal.equinix.com/developers/docs/deploy/reserved/). * * You can look up hardware reservation by its ID or by ID of device which occupies it. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetHardwareReservationArgs;
     * 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 example = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
     *             .build());
     * 
     *         final var exampleByDeviceId = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getHardwareReservationPlain(GetHardwareReservationPlainArgs args) { return getHardwareReservationPlain(args, InvokeOptions.Empty); } /** * Use this data source to retrieve a [hardware reservation resource from Equinix Metal](https://metal.equinix.com/developers/docs/deploy/reserved/). * * You can look up hardware reservation by its ID or by ID of device which occupies it. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetHardwareReservationArgs;
     * 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 example = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
     *             .build());
     * 
     *         final var exampleByDeviceId = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getHardwareReservation(GetHardwareReservationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getHardwareReservation:getHardwareReservation", TypeShape.of(GetHardwareReservationResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to retrieve a [hardware reservation resource from Equinix Metal](https://metal.equinix.com/developers/docs/deploy/reserved/). * * You can look up hardware reservation by its ID or by ID of device which occupies it. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetHardwareReservationArgs;
     * 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 example = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
     *             .id("4347e805-eb46-4699-9eb9-5c116e6a0172")
     *             .build());
     * 
     *         final var exampleByDeviceId = MetalFunctions.getHardwareReservation(GetHardwareReservationArgs.builder()
     *             .deviceId("ff85aa58-c106-4624-8f1c-7c64554047ea")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getHardwareReservationPlain(GetHardwareReservationPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getHardwareReservation:getHardwareReservation", TypeShape.of(GetHardwareReservationResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to retrieve a [connection resource](https://metal.equinix.com/developers/docs/networking/fabric/) * * > Equinix Metal connection with with Service Token A-side / Z-side (service_token_type) is not generally available and may not be enabled yet for your organization. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetInterconnectionArgs;
     * 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 example = MetalFunctions.getInterconnection(GetInterconnectionArgs.builder()
     *             .connectionId("4347e805-eb46-4699-9eb9-5c116e6a017d")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getInterconnection(GetInterconnectionArgs args) { return getInterconnection(args, InvokeOptions.Empty); } /** * Use this data source to retrieve a [connection resource](https://metal.equinix.com/developers/docs/networking/fabric/) * * > Equinix Metal connection with with Service Token A-side / Z-side (service_token_type) is not generally available and may not be enabled yet for your organization. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetInterconnectionArgs;
     * 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 example = MetalFunctions.getInterconnection(GetInterconnectionArgs.builder()
     *             .connectionId("4347e805-eb46-4699-9eb9-5c116e6a017d")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getInterconnectionPlain(GetInterconnectionPlainArgs args) { return getInterconnectionPlain(args, InvokeOptions.Empty); } /** * Use this data source to retrieve a [connection resource](https://metal.equinix.com/developers/docs/networking/fabric/) * * > Equinix Metal connection with with Service Token A-side / Z-side (service_token_type) is not generally available and may not be enabled yet for your organization. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetInterconnectionArgs;
     * 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 example = MetalFunctions.getInterconnection(GetInterconnectionArgs.builder()
     *             .connectionId("4347e805-eb46-4699-9eb9-5c116e6a017d")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getInterconnection(GetInterconnectionArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getInterconnection:getInterconnection", TypeShape.of(GetInterconnectionResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to retrieve a [connection resource](https://metal.equinix.com/developers/docs/networking/fabric/) * * > Equinix Metal connection with with Service Token A-side / Z-side (service_token_type) is not generally available and may not be enabled yet for your organization. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetInterconnectionArgs;
     * 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 example = MetalFunctions.getInterconnection(GetInterconnectionArgs.builder()
     *             .connectionId("4347e805-eb46-4699-9eb9-5c116e6a017d")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getInterconnectionPlain(GetInterconnectionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getInterconnection:getInterconnection", TypeShape.of(GetInterconnectionResult.class), args, Utilities.withVersion(options)); } /** * Use this datasource to get CIDR expressions for allocated IP blocks of all the types in a project, optionally filtered by facility or metro. * * There are four types of IP blocks in Equinix: equinix_metal_global IPv4, public IPv4, private IPv4 and IPv6. Both global and public IPv4 are routable from the Internet. Public IPv4 blocks are allocated in a facility or metro, and addresses from it can only be assigned to devices in that location. Addresses from Global IPv4 block can be assigned to a device in any metro. * * The datasource has 4 list attributes: `global_ipv4`, `public_ipv4`, `private_ipv4` and `ipv6`, each listing CIDR notation (`<network>/<mask>`) of respective blocks from the 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.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetIpBlockRangesArgs;
     * 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 projectId = "";
     * 
     *         final var test = MetalFunctions.getIpBlockRanges(GetIpBlockRangesArgs.builder()
     *             .projectId(projectId)
     *             .build());
     * 
     *         ctx.export("out", test.applyValue(getIpBlockRangesResult -> getIpBlockRangesResult));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getIpBlockRanges(GetIpBlockRangesArgs args) { return getIpBlockRanges(args, InvokeOptions.Empty); } /** * Use this datasource to get CIDR expressions for allocated IP blocks of all the types in a project, optionally filtered by facility or metro. * * There are four types of IP blocks in Equinix: equinix_metal_global IPv4, public IPv4, private IPv4 and IPv6. Both global and public IPv4 are routable from the Internet. Public IPv4 blocks are allocated in a facility or metro, and addresses from it can only be assigned to devices in that location. Addresses from Global IPv4 block can be assigned to a device in any metro. * * The datasource has 4 list attributes: `global_ipv4`, `public_ipv4`, `private_ipv4` and `ipv6`, each listing CIDR notation (`<network>/<mask>`) of respective blocks from the 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.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetIpBlockRangesArgs;
     * 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 projectId = "";
     * 
     *         final var test = MetalFunctions.getIpBlockRanges(GetIpBlockRangesArgs.builder()
     *             .projectId(projectId)
     *             .build());
     * 
     *         ctx.export("out", test.applyValue(getIpBlockRangesResult -> getIpBlockRangesResult));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getIpBlockRangesPlain(GetIpBlockRangesPlainArgs args) { return getIpBlockRangesPlain(args, InvokeOptions.Empty); } /** * Use this datasource to get CIDR expressions for allocated IP blocks of all the types in a project, optionally filtered by facility or metro. * * There are four types of IP blocks in Equinix: equinix_metal_global IPv4, public IPv4, private IPv4 and IPv6. Both global and public IPv4 are routable from the Internet. Public IPv4 blocks are allocated in a facility or metro, and addresses from it can only be assigned to devices in that location. Addresses from Global IPv4 block can be assigned to a device in any metro. * * The datasource has 4 list attributes: `global_ipv4`, `public_ipv4`, `private_ipv4` and `ipv6`, each listing CIDR notation (`<network>/<mask>`) of respective blocks from the 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.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetIpBlockRangesArgs;
     * 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 projectId = "";
     * 
     *         final var test = MetalFunctions.getIpBlockRanges(GetIpBlockRangesArgs.builder()
     *             .projectId(projectId)
     *             .build());
     * 
     *         ctx.export("out", test.applyValue(getIpBlockRangesResult -> getIpBlockRangesResult));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getIpBlockRanges(GetIpBlockRangesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getIpBlockRanges:getIpBlockRanges", TypeShape.of(GetIpBlockRangesResult.class), args, Utilities.withVersion(options)); } /** * Use this datasource to get CIDR expressions for allocated IP blocks of all the types in a project, optionally filtered by facility or metro. * * There are four types of IP blocks in Equinix: equinix_metal_global IPv4, public IPv4, private IPv4 and IPv6. Both global and public IPv4 are routable from the Internet. Public IPv4 blocks are allocated in a facility or metro, and addresses from it can only be assigned to devices in that location. Addresses from Global IPv4 block can be assigned to a device in any metro. * * The datasource has 4 list attributes: `global_ipv4`, `public_ipv4`, `private_ipv4` and `ipv6`, each listing CIDR notation (`<network>/<mask>`) of respective blocks from the 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.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetIpBlockRangesArgs;
     * 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 projectId = "";
     * 
     *         final var test = MetalFunctions.getIpBlockRanges(GetIpBlockRangesArgs.builder()
     *             .projectId(projectId)
     *             .build());
     * 
     *         ctx.export("out", test.applyValue(getIpBlockRangesResult -> getIpBlockRangesResult));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getIpBlockRangesPlain(GetIpBlockRangesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getIpBlockRanges:getIpBlockRanges", TypeShape.of(GetIpBlockRangesResult.class), args, Utilities.withVersion(options)); } /** * Provides an Equinix Metal metro datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetMetroArgs;
     * 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 sv = MetalFunctions.getMetro(GetMetroArgs.builder()
     *             .code("sv")
     *             .build());
     * 
     *         ctx.export("id", sv.applyValue(getMetroResult -> getMetroResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getMetro(GetMetroArgs args) { return getMetro(args, InvokeOptions.Empty); } /** * Provides an Equinix Metal metro datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetMetroArgs;
     * 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 sv = MetalFunctions.getMetro(GetMetroArgs.builder()
     *             .code("sv")
     *             .build());
     * 
     *         ctx.export("id", sv.applyValue(getMetroResult -> getMetroResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getMetroPlain(GetMetroPlainArgs args) { return getMetroPlain(args, InvokeOptions.Empty); } /** * Provides an Equinix Metal metro datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetMetroArgs;
     * 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 sv = MetalFunctions.getMetro(GetMetroArgs.builder()
     *             .code("sv")
     *             .build());
     * 
     *         ctx.export("id", sv.applyValue(getMetroResult -> getMetroResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getMetro(GetMetroArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getMetro:getMetro", TypeShape.of(GetMetroResult.class), args, Utilities.withVersion(options)); } /** * Provides an Equinix Metal metro datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetMetroArgs;
     * 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 sv = MetalFunctions.getMetro(GetMetroArgs.builder()
     *             .code("sv")
     *             .build());
     * 
     *         ctx.export("id", sv.applyValue(getMetroResult -> getMetroResult.id()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getMetroPlain(GetMetroPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getMetro:getMetro", TypeShape.of(GetMetroResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to get Equinix Metal Operating System image. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetOperatingSystemArgs;
     * import com.pulumi.equinix.metal.Device;
     * import com.pulumi.equinix.metal.DeviceArgs;
     * 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 example = MetalFunctions.getOperatingSystem(GetOperatingSystemArgs.builder()
     *             .distro("ubuntu")
     *             .version("20.04")
     *             .provisionableOn("c3.medium.x86")
     *             .build());
     * 
     *         var server = new Device("server", DeviceArgs.builder()
     *             .hostname("tf.ubuntu")
     *             .plan("c3.medium.x86")
     *             .metro("ny")
     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
     *             .billingCycle("hourly")
     *             .projectId(local.project_id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getOperatingSystem() { return getOperatingSystem(GetOperatingSystemArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to get Equinix Metal Operating System image. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetOperatingSystemArgs;
     * import com.pulumi.equinix.metal.Device;
     * import com.pulumi.equinix.metal.DeviceArgs;
     * 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 example = MetalFunctions.getOperatingSystem(GetOperatingSystemArgs.builder()
     *             .distro("ubuntu")
     *             .version("20.04")
     *             .provisionableOn("c3.medium.x86")
     *             .build());
     * 
     *         var server = new Device("server", DeviceArgs.builder()
     *             .hostname("tf.ubuntu")
     *             .plan("c3.medium.x86")
     *             .metro("ny")
     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
     *             .billingCycle("hourly")
     *             .projectId(local.project_id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getOperatingSystemPlain() { return getOperatingSystemPlain(GetOperatingSystemPlainArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to get Equinix Metal Operating System image. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetOperatingSystemArgs;
     * import com.pulumi.equinix.metal.Device;
     * import com.pulumi.equinix.metal.DeviceArgs;
     * 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 example = MetalFunctions.getOperatingSystem(GetOperatingSystemArgs.builder()
     *             .distro("ubuntu")
     *             .version("20.04")
     *             .provisionableOn("c3.medium.x86")
     *             .build());
     * 
     *         var server = new Device("server", DeviceArgs.builder()
     *             .hostname("tf.ubuntu")
     *             .plan("c3.medium.x86")
     *             .metro("ny")
     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
     *             .billingCycle("hourly")
     *             .projectId(local.project_id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getOperatingSystem(GetOperatingSystemArgs args) { return getOperatingSystem(args, InvokeOptions.Empty); } /** * Use this data source to get Equinix Metal Operating System image. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetOperatingSystemArgs;
     * import com.pulumi.equinix.metal.Device;
     * import com.pulumi.equinix.metal.DeviceArgs;
     * 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 example = MetalFunctions.getOperatingSystem(GetOperatingSystemArgs.builder()
     *             .distro("ubuntu")
     *             .version("20.04")
     *             .provisionableOn("c3.medium.x86")
     *             .build());
     * 
     *         var server = new Device("server", DeviceArgs.builder()
     *             .hostname("tf.ubuntu")
     *             .plan("c3.medium.x86")
     *             .metro("ny")
     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
     *             .billingCycle("hourly")
     *             .projectId(local.project_id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getOperatingSystemPlain(GetOperatingSystemPlainArgs args) { return getOperatingSystemPlain(args, InvokeOptions.Empty); } /** * Use this data source to get Equinix Metal Operating System image. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetOperatingSystemArgs;
     * import com.pulumi.equinix.metal.Device;
     * import com.pulumi.equinix.metal.DeviceArgs;
     * 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 example = MetalFunctions.getOperatingSystem(GetOperatingSystemArgs.builder()
     *             .distro("ubuntu")
     *             .version("20.04")
     *             .provisionableOn("c3.medium.x86")
     *             .build());
     * 
     *         var server = new Device("server", DeviceArgs.builder()
     *             .hostname("tf.ubuntu")
     *             .plan("c3.medium.x86")
     *             .metro("ny")
     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
     *             .billingCycle("hourly")
     *             .projectId(local.project_id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getOperatingSystem(GetOperatingSystemArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getOperatingSystem:getOperatingSystem", TypeShape.of(GetOperatingSystemResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to get Equinix Metal Operating System image. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetOperatingSystemArgs;
     * import com.pulumi.equinix.metal.Device;
     * import com.pulumi.equinix.metal.DeviceArgs;
     * 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 example = MetalFunctions.getOperatingSystem(GetOperatingSystemArgs.builder()
     *             .distro("ubuntu")
     *             .version("20.04")
     *             .provisionableOn("c3.medium.x86")
     *             .build());
     * 
     *         var server = new Device("server", DeviceArgs.builder()
     *             .hostname("tf.ubuntu")
     *             .plan("c3.medium.x86")
     *             .metro("ny")
     *             .operatingSystem(example.applyValue(getOperatingSystemResult -> getOperatingSystemResult.id()))
     *             .billingCycle("hourly")
     *             .projectId(local.project_id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getOperatingSystemPlain(GetOperatingSystemPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getOperatingSystem:getOperatingSystem", TypeShape.of(GetOperatingSystemResult.class), args, Utilities.withVersion(options)); } /** * Provides an Equinix Metal organization datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetOrganizationArgs;
     * 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 test = MetalFunctions.getOrganization(GetOrganizationArgs.builder()
     *             .organizationId(local.org_id())
     *             .build());
     * 
     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getOrganization() { return getOrganization(GetOrganizationArgs.Empty, InvokeOptions.Empty); } /** * Provides an Equinix Metal organization datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetOrganizationArgs;
     * 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 test = MetalFunctions.getOrganization(GetOrganizationArgs.builder()
     *             .organizationId(local.org_id())
     *             .build());
     * 
     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getOrganizationPlain() { return getOrganizationPlain(GetOrganizationPlainArgs.Empty, InvokeOptions.Empty); } /** * Provides an Equinix Metal organization datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetOrganizationArgs;
     * 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 test = MetalFunctions.getOrganization(GetOrganizationArgs.builder()
     *             .organizationId(local.org_id())
     *             .build());
     * 
     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getOrganization(GetOrganizationArgs args) { return getOrganization(args, InvokeOptions.Empty); } /** * Provides an Equinix Metal organization datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetOrganizationArgs;
     * 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 test = MetalFunctions.getOrganization(GetOrganizationArgs.builder()
     *             .organizationId(local.org_id())
     *             .build());
     * 
     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getOrganizationPlain(GetOrganizationPlainArgs args) { return getOrganizationPlain(args, InvokeOptions.Empty); } /** * Provides an Equinix Metal organization datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetOrganizationArgs;
     * 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 test = MetalFunctions.getOrganization(GetOrganizationArgs.builder()
     *             .organizationId(local.org_id())
     *             .build());
     * 
     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getOrganization(GetOrganizationArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getOrganization:getOrganization", TypeShape.of(GetOrganizationResult.class), args, Utilities.withVersion(options)); } /** * Provides an Equinix Metal organization datasource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetOrganizationArgs;
     * 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 test = MetalFunctions.getOrganization(GetOrganizationArgs.builder()
     *             .organizationId(local.org_id())
     *             .build());
     * 
     *         ctx.export("projectsInTheOrg", test.applyValue(getOrganizationResult -> getOrganizationResult.projectIds()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getOrganizationPlain(GetOrganizationPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getOrganization:getOrganization", TypeShape.of(GetOrganizationResult.class), args, Utilities.withVersion(options)); } public static Output getPlans() { return getPlans(GetPlansArgs.Empty, InvokeOptions.Empty); } public static CompletableFuture getPlansPlain() { return getPlansPlain(GetPlansPlainArgs.Empty, InvokeOptions.Empty); } public static Output getPlans(GetPlansArgs args) { return getPlans(args, InvokeOptions.Empty); } public static CompletableFuture getPlansPlain(GetPlansPlainArgs args) { return getPlansPlain(args, InvokeOptions.Empty); } public static Output getPlans(GetPlansArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getPlans:getPlans", TypeShape.of(GetPlansResult.class), args, Utilities.withVersion(options)); } public static CompletableFuture getPlansPlain(GetPlansPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getPlans:getPlans", TypeShape.of(GetPlansResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to read ports of existing devices. You can read port by either its UUID, or by a device UUID and port name. * * ## Example Usage * * Create a device and read it's eth0 port to the datasource. * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Device;
     * import com.pulumi.equinix.metal.DeviceArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetPortArgs;
     * 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 projectId = "";
     * 
     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
     *             .hostname("tfacc-test-device-port")
     *             .plan("c3.medium.x86")
     *             .metro("sv")
     *             .operatingSystem("ubuntu_20_04")
     *             .billingCycle("hourly")
     *             .projectId(projectId)
     *             .build());
     * 
     *         final var testPort = MetalFunctions.getPort(GetPortArgs.builder()
     *             .deviceId(testDevice.id())
     *             .name("eth0")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getPort() { return getPort(GetPortArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to read ports of existing devices. You can read port by either its UUID, or by a device UUID and port name. * * ## Example Usage * * Create a device and read it's eth0 port to the datasource. * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Device;
     * import com.pulumi.equinix.metal.DeviceArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetPortArgs;
     * 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 projectId = "";
     * 
     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
     *             .hostname("tfacc-test-device-port")
     *             .plan("c3.medium.x86")
     *             .metro("sv")
     *             .operatingSystem("ubuntu_20_04")
     *             .billingCycle("hourly")
     *             .projectId(projectId)
     *             .build());
     * 
     *         final var testPort = MetalFunctions.getPort(GetPortArgs.builder()
     *             .deviceId(testDevice.id())
     *             .name("eth0")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPortPlain() { return getPortPlain(GetPortPlainArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to read ports of existing devices. You can read port by either its UUID, or by a device UUID and port name. * * ## Example Usage * * Create a device and read it's eth0 port to the datasource. * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Device;
     * import com.pulumi.equinix.metal.DeviceArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetPortArgs;
     * 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 projectId = "";
     * 
     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
     *             .hostname("tfacc-test-device-port")
     *             .plan("c3.medium.x86")
     *             .metro("sv")
     *             .operatingSystem("ubuntu_20_04")
     *             .billingCycle("hourly")
     *             .projectId(projectId)
     *             .build());
     * 
     *         final var testPort = MetalFunctions.getPort(GetPortArgs.builder()
     *             .deviceId(testDevice.id())
     *             .name("eth0")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getPort(GetPortArgs args) { return getPort(args, InvokeOptions.Empty); } /** * Use this data source to read ports of existing devices. You can read port by either its UUID, or by a device UUID and port name. * * ## Example Usage * * Create a device and read it's eth0 port to the datasource. * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Device;
     * import com.pulumi.equinix.metal.DeviceArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetPortArgs;
     * 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 projectId = "";
     * 
     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
     *             .hostname("tfacc-test-device-port")
     *             .plan("c3.medium.x86")
     *             .metro("sv")
     *             .operatingSystem("ubuntu_20_04")
     *             .billingCycle("hourly")
     *             .projectId(projectId)
     *             .build());
     * 
     *         final var testPort = MetalFunctions.getPort(GetPortArgs.builder()
     *             .deviceId(testDevice.id())
     *             .name("eth0")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPortPlain(GetPortPlainArgs args) { return getPortPlain(args, InvokeOptions.Empty); } /** * Use this data source to read ports of existing devices. You can read port by either its UUID, or by a device UUID and port name. * * ## Example Usage * * Create a device and read it's eth0 port to the datasource. * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Device;
     * import com.pulumi.equinix.metal.DeviceArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetPortArgs;
     * 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 projectId = "";
     * 
     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
     *             .hostname("tfacc-test-device-port")
     *             .plan("c3.medium.x86")
     *             .metro("sv")
     *             .operatingSystem("ubuntu_20_04")
     *             .billingCycle("hourly")
     *             .projectId(projectId)
     *             .build());
     * 
     *         final var testPort = MetalFunctions.getPort(GetPortArgs.builder()
     *             .deviceId(testDevice.id())
     *             .name("eth0")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getPort(GetPortArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getPort:getPort", TypeShape.of(GetPortResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to read ports of existing devices. You can read port by either its UUID, or by a device UUID and port name. * * ## Example Usage * * Create a device and read it's eth0 port to the datasource. * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Device;
     * import com.pulumi.equinix.metal.DeviceArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetPortArgs;
     * 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 projectId = "";
     * 
     *         var testDevice = new Device("testDevice", DeviceArgs.builder()
     *             .hostname("tfacc-test-device-port")
     *             .plan("c3.medium.x86")
     *             .metro("sv")
     *             .operatingSystem("ubuntu_20_04")
     *             .billingCycle("hourly")
     *             .projectId(projectId)
     *             .build());
     * 
     *         final var testPort = MetalFunctions.getPort(GetPortArgs.builder()
     *             .deviceId(testDevice.id())
     *             .name("eth0")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPortPlain(GetPortPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getPort:getPort", TypeShape.of(GetPortResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to get CIDR expression for precreated (management) IPv6 and IPv4 blocks in Equinix Metal. You can then use the cidrsubnet TF builtin function to derive subnets. * * > For backward compatibility, this data source will also return reserved (elastic) IP blocks. * * > Precreated (management) IP blocks for a metro will not be available until first device is created in that metro. * * > Public IPv4 blocks auto-assigned (management) to a device cannot be retrieved. If you need that information, consider using the equinix.metal.Device data source instead. * */ public static Output getPrecreatedIpBlock(GetPrecreatedIpBlockArgs args) { return getPrecreatedIpBlock(args, InvokeOptions.Empty); } /** * Use this data source to get CIDR expression for precreated (management) IPv6 and IPv4 blocks in Equinix Metal. You can then use the cidrsubnet TF builtin function to derive subnets. * * > For backward compatibility, this data source will also return reserved (elastic) IP blocks. * * > Precreated (management) IP blocks for a metro will not be available until first device is created in that metro. * * > Public IPv4 blocks auto-assigned (management) to a device cannot be retrieved. If you need that information, consider using the equinix.metal.Device data source instead. * */ public static CompletableFuture getPrecreatedIpBlockPlain(GetPrecreatedIpBlockPlainArgs args) { return getPrecreatedIpBlockPlain(args, InvokeOptions.Empty); } /** * Use this data source to get CIDR expression for precreated (management) IPv6 and IPv4 blocks in Equinix Metal. You can then use the cidrsubnet TF builtin function to derive subnets. * * > For backward compatibility, this data source will also return reserved (elastic) IP blocks. * * > Precreated (management) IP blocks for a metro will not be available until first device is created in that metro. * * > Public IPv4 blocks auto-assigned (management) to a device cannot be retrieved. If you need that information, consider using the equinix.metal.Device data source instead. * */ public static Output getPrecreatedIpBlock(GetPrecreatedIpBlockArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getPrecreatedIpBlock:getPrecreatedIpBlock", TypeShape.of(GetPrecreatedIpBlockResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to get CIDR expression for precreated (management) IPv6 and IPv4 blocks in Equinix Metal. You can then use the cidrsubnet TF builtin function to derive subnets. * * > For backward compatibility, this data source will also return reserved (elastic) IP blocks. * * > Precreated (management) IP blocks for a metro will not be available until first device is created in that metro. * * > Public IPv4 blocks auto-assigned (management) to a device cannot be retrieved. If you need that information, consider using the equinix.metal.Device data source instead. * */ public static CompletableFuture getPrecreatedIpBlockPlain(GetPrecreatedIpBlockPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getPrecreatedIpBlock:getPrecreatedIpBlock", TypeShape.of(GetPrecreatedIpBlockResult.class), args, Utilities.withVersion(options)); } /** * Use this datasource to retrieve attributes of the Project API resource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.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 tfProject1 = MetalFunctions.getProject(GetProjectArgs.builder()
     *             .name("Terraform Fun")
     *             .build());
     * 
     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getProject() { return getProject(GetProjectArgs.Empty, InvokeOptions.Empty); } /** * Use this datasource to retrieve attributes of the Project API resource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.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 tfProject1 = MetalFunctions.getProject(GetProjectArgs.builder()
     *             .name("Terraform Fun")
     *             .build());
     * 
     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getProjectPlain() { return getProjectPlain(GetProjectPlainArgs.Empty, InvokeOptions.Empty); } /** * Use this datasource to retrieve attributes of the Project API resource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.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 tfProject1 = MetalFunctions.getProject(GetProjectArgs.builder()
     *             .name("Terraform Fun")
     *             .build());
     * 
     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getProject(GetProjectArgs args) { return getProject(args, InvokeOptions.Empty); } /** * Use this datasource to retrieve attributes of the Project API resource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.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 tfProject1 = MetalFunctions.getProject(GetProjectArgs.builder()
     *             .name("Terraform Fun")
     *             .build());
     * 
     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getProjectPlain(GetProjectPlainArgs args) { return getProjectPlain(args, InvokeOptions.Empty); } /** * Use this datasource to retrieve attributes of the Project API resource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.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 tfProject1 = MetalFunctions.getProject(GetProjectArgs.builder()
     *             .name("Terraform Fun")
     *             .build());
     * 
     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getProject(GetProjectArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getProject:getProject", TypeShape.of(GetProjectResult.class), args, Utilities.withVersion(options)); } /** * Use this datasource to retrieve attributes of the Project API resource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.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 tfProject1 = MetalFunctions.getProject(GetProjectArgs.builder()
     *             .name("Terraform Fun")
     *             .build());
     * 
     *         ctx.export("usersOfTerraformFun", tfProject1.applyValue(getProjectResult -> getProjectResult.userIds()));
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getProjectPlain(GetProjectPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getProject:getProject", TypeShape.of(GetProjectResult.class), args, Utilities.withVersion(options)); } /** * Use this datasource to retrieve attributes of a Project SSH Key API resource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetProjectSshKeyArgs;
     * 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 }{{@code
     *     public static void main(String[] args) }{{@code
     *         Pulumi.run(App::stack);
     *     }}{@code
     * 
     *     public static void stack(Context ctx) }{{@code
     *         final var myKey = MetalFunctions.getProjectSshKey(GetProjectSshKeyArgs.builder()
     *             .search("username}{@literal @}{@code hostname")
     *             .projectId(local.project_id())
     *             .build());
     * 
     *     }}{@code
     * }}{@code
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getProjectSshKey(GetProjectSshKeyArgs args) { return getProjectSshKey(args, InvokeOptions.Empty); } /** * Use this datasource to retrieve attributes of a Project SSH Key API resource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetProjectSshKeyArgs;
     * 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 }{{@code
     *     public static void main(String[] args) }{{@code
     *         Pulumi.run(App::stack);
     *     }}{@code
     * 
     *     public static void stack(Context ctx) }{{@code
     *         final var myKey = MetalFunctions.getProjectSshKey(GetProjectSshKeyArgs.builder()
     *             .search("username}{@literal @}{@code hostname")
     *             .projectId(local.project_id())
     *             .build());
     * 
     *     }}{@code
     * }}{@code
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getProjectSshKeyPlain(GetProjectSshKeyPlainArgs args) { return getProjectSshKeyPlain(args, InvokeOptions.Empty); } /** * Use this datasource to retrieve attributes of a Project SSH Key API resource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetProjectSshKeyArgs;
     * 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 }{{@code
     *     public static void main(String[] args) }{{@code
     *         Pulumi.run(App::stack);
     *     }}{@code
     * 
     *     public static void stack(Context ctx) }{{@code
     *         final var myKey = MetalFunctions.getProjectSshKey(GetProjectSshKeyArgs.builder()
     *             .search("username}{@literal @}{@code hostname")
     *             .projectId(local.project_id())
     *             .build());
     * 
     *     }}{@code
     * }}{@code
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getProjectSshKey(GetProjectSshKeyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getProjectSshKey:getProjectSshKey", TypeShape.of(GetProjectSshKeyResult.class), args, Utilities.withVersion(options)); } /** * Use this datasource to retrieve attributes of a Project SSH Key API resource. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetProjectSshKeyArgs;
     * 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 }{{@code
     *     public static void main(String[] args) }{{@code
     *         Pulumi.run(App::stack);
     *     }}{@code
     * 
     *     public static void stack(Context ctx) }{{@code
     *         final var myKey = MetalFunctions.getProjectSshKey(GetProjectSshKeyArgs.builder()
     *             .search("username}{@literal @}{@code hostname")
     *             .projectId(local.project_id())
     *             .build());
     * 
     *     }}{@code
     * }}{@code
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getProjectSshKeyPlain(GetProjectSshKeyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getProjectSshKey:getProjectSshKey", TypeShape.of(GetProjectSshKeyResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to find IP address blocks in Equinix Metal. You can use IP address or a block ID for lookup. * * > For backward compatibility, this data source can be also used for precreated (management) IP blocks. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * */ public static Output getReservedIpBlock() { return getReservedIpBlock(GetReservedIpBlockArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to find IP address blocks in Equinix Metal. You can use IP address or a block ID for lookup. * * > For backward compatibility, this data source can be also used for precreated (management) IP blocks. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * */ public static CompletableFuture getReservedIpBlockPlain() { return getReservedIpBlockPlain(GetReservedIpBlockPlainArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to find IP address blocks in Equinix Metal. You can use IP address or a block ID for lookup. * * > For backward compatibility, this data source can be also used for precreated (management) IP blocks. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * */ public static Output getReservedIpBlock(GetReservedIpBlockArgs args) { return getReservedIpBlock(args, InvokeOptions.Empty); } /** * Use this data source to find IP address blocks in Equinix Metal. You can use IP address or a block ID for lookup. * * > For backward compatibility, this data source can be also used for precreated (management) IP blocks. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * */ public static CompletableFuture getReservedIpBlockPlain(GetReservedIpBlockPlainArgs args) { return getReservedIpBlockPlain(args, InvokeOptions.Empty); } /** * Use this data source to find IP address blocks in Equinix Metal. You can use IP address or a block ID for lookup. * * > For backward compatibility, this data source can be also used for precreated (management) IP blocks. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * */ public static Output getReservedIpBlock(GetReservedIpBlockArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getReservedIpBlock:getReservedIpBlock", TypeShape.of(GetReservedIpBlockResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to find IP address blocks in Equinix Metal. You can use IP address or a block ID for lookup. * * > For backward compatibility, this data source can be also used for precreated (management) IP blocks. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * */ public static CompletableFuture getReservedIpBlockPlain(GetReservedIpBlockPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getReservedIpBlock:getReservedIpBlock", TypeShape.of(GetReservedIpBlockResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to get Equinix Metal Spot Market Price for a plan. * * ## Example Usage * * Lookup by metro: * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetSpotMarketPriceArgs;
     * 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 example = MetalFunctions.getSpotMarketPrice(GetSpotMarketPriceArgs.builder()
     *             .metro("sv")
     *             .plan("c3.small.x86")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getSpotMarketPrice(GetSpotMarketPriceArgs args) { return getSpotMarketPrice(args, InvokeOptions.Empty); } /** * Use this data source to get Equinix Metal Spot Market Price for a plan. * * ## Example Usage * * Lookup by metro: * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetSpotMarketPriceArgs;
     * 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 example = MetalFunctions.getSpotMarketPrice(GetSpotMarketPriceArgs.builder()
     *             .metro("sv")
     *             .plan("c3.small.x86")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getSpotMarketPricePlain(GetSpotMarketPricePlainArgs args) { return getSpotMarketPricePlain(args, InvokeOptions.Empty); } /** * Use this data source to get Equinix Metal Spot Market Price for a plan. * * ## Example Usage * * Lookup by metro: * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetSpotMarketPriceArgs;
     * 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 example = MetalFunctions.getSpotMarketPrice(GetSpotMarketPriceArgs.builder()
     *             .metro("sv")
     *             .plan("c3.small.x86")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getSpotMarketPrice(GetSpotMarketPriceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getSpotMarketPrice:getSpotMarketPrice", TypeShape.of(GetSpotMarketPriceResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to get Equinix Metal Spot Market Price for a plan. * * ## Example Usage * * Lookup by metro: * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetSpotMarketPriceArgs;
     * 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 example = MetalFunctions.getSpotMarketPrice(GetSpotMarketPriceArgs.builder()
     *             .metro("sv")
     *             .plan("c3.small.x86")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getSpotMarketPricePlain(GetSpotMarketPricePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getSpotMarketPrice:getSpotMarketPrice", TypeShape.of(GetSpotMarketPriceResult.class), args, Utilities.withVersion(options)); } public static Output getSpotMarketRequest(GetSpotMarketRequestArgs args) { return getSpotMarketRequest(args, InvokeOptions.Empty); } public static CompletableFuture getSpotMarketRequestPlain(GetSpotMarketRequestPlainArgs args) { return getSpotMarketRequestPlain(args, InvokeOptions.Empty); } public static Output getSpotMarketRequest(GetSpotMarketRequestArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getSpotMarketRequest:getSpotMarketRequest", TypeShape.of(GetSpotMarketRequestResult.class), args, Utilities.withVersion(options)); } public static CompletableFuture getSpotMarketRequestPlain(GetSpotMarketRequestPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getSpotMarketRequest:getSpotMarketRequest", TypeShape.of(GetSpotMarketRequestResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to retrieve a virtual circuit resource from [Equinix Fabric - software-defined interconnections](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/) * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * */ public static Output getVirtualCircuit(GetVirtualCircuitArgs args) { return getVirtualCircuit(args, InvokeOptions.Empty); } /** * Use this data source to retrieve a virtual circuit resource from [Equinix Fabric - software-defined interconnections](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/) * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * */ public static CompletableFuture getVirtualCircuitPlain(GetVirtualCircuitPlainArgs args) { return getVirtualCircuitPlain(args, InvokeOptions.Empty); } /** * Use this data source to retrieve a virtual circuit resource from [Equinix Fabric - software-defined interconnections](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/) * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * */ public static Output getVirtualCircuit(GetVirtualCircuitArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getVirtualCircuit:getVirtualCircuit", TypeShape.of(GetVirtualCircuitResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to retrieve a virtual circuit resource from [Equinix Fabric - software-defined interconnections](https://deploy.equinix.com/developers/docs/metal/interconnections/introduction/) * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * */ public static CompletableFuture getVirtualCircuitPlain(GetVirtualCircuitPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getVirtualCircuit:getVirtualCircuit", TypeShape.of(GetVirtualCircuitResult.class), args, Utilities.withVersion(options)); } /** * Provides an Equinix Metal Virtual Network datasource. VLANs data sources can be searched by VLAN UUID, or project UUID and vxlan number. * * ## Example Usage * * Fetch a vlan by ID: * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Vlan;
     * import com.pulumi.equinix.metal.VlanArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVlanArgs;
     * 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) {
     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
     *             .projectId(local.project_id())
     *             .metro("sv")
     *             .vxlan(5)
     *             .build());
     * 
     *         final var dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
     *             .vlanId(foovlan.id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * Fetch a vlan by project ID, vxlan and metro * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVlanArgs;
     * 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 dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
     *             .projectId(local.project_id())
     *             .vxlan(5)
     *             .metro("sv")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getVlan() { return getVlan(GetVlanArgs.Empty, InvokeOptions.Empty); } /** * Provides an Equinix Metal Virtual Network datasource. VLANs data sources can be searched by VLAN UUID, or project UUID and vxlan number. * * ## Example Usage * * Fetch a vlan by ID: * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Vlan;
     * import com.pulumi.equinix.metal.VlanArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVlanArgs;
     * 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) {
     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
     *             .projectId(local.project_id())
     *             .metro("sv")
     *             .vxlan(5)
     *             .build());
     * 
     *         final var dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
     *             .vlanId(foovlan.id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * Fetch a vlan by project ID, vxlan and metro * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVlanArgs;
     * 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 dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
     *             .projectId(local.project_id())
     *             .vxlan(5)
     *             .metro("sv")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getVlanPlain() { return getVlanPlain(GetVlanPlainArgs.Empty, InvokeOptions.Empty); } /** * Provides an Equinix Metal Virtual Network datasource. VLANs data sources can be searched by VLAN UUID, or project UUID and vxlan number. * * ## Example Usage * * Fetch a vlan by ID: * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Vlan;
     * import com.pulumi.equinix.metal.VlanArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVlanArgs;
     * 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) {
     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
     *             .projectId(local.project_id())
     *             .metro("sv")
     *             .vxlan(5)
     *             .build());
     * 
     *         final var dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
     *             .vlanId(foovlan.id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * Fetch a vlan by project ID, vxlan and metro * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVlanArgs;
     * 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 dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
     *             .projectId(local.project_id())
     *             .vxlan(5)
     *             .metro("sv")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getVlan(GetVlanArgs args) { return getVlan(args, InvokeOptions.Empty); } /** * Provides an Equinix Metal Virtual Network datasource. VLANs data sources can be searched by VLAN UUID, or project UUID and vxlan number. * * ## Example Usage * * Fetch a vlan by ID: * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Vlan;
     * import com.pulumi.equinix.metal.VlanArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVlanArgs;
     * 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) {
     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
     *             .projectId(local.project_id())
     *             .metro("sv")
     *             .vxlan(5)
     *             .build());
     * 
     *         final var dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
     *             .vlanId(foovlan.id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * Fetch a vlan by project ID, vxlan and metro * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVlanArgs;
     * 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 dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
     *             .projectId(local.project_id())
     *             .vxlan(5)
     *             .metro("sv")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getVlanPlain(GetVlanPlainArgs args) { return getVlanPlain(args, InvokeOptions.Empty); } /** * Provides an Equinix Metal Virtual Network datasource. VLANs data sources can be searched by VLAN UUID, or project UUID and vxlan number. * * ## Example Usage * * Fetch a vlan by ID: * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Vlan;
     * import com.pulumi.equinix.metal.VlanArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVlanArgs;
     * 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) {
     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
     *             .projectId(local.project_id())
     *             .metro("sv")
     *             .vxlan(5)
     *             .build());
     * 
     *         final var dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
     *             .vlanId(foovlan.id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * Fetch a vlan by project ID, vxlan and metro * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVlanArgs;
     * 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 dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
     *             .projectId(local.project_id())
     *             .vxlan(5)
     *             .metro("sv")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getVlan(GetVlanArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getVlan:getVlan", TypeShape.of(GetVlanResult.class), args, Utilities.withVersion(options)); } /** * Provides an Equinix Metal Virtual Network datasource. VLANs data sources can be searched by VLAN UUID, or project UUID and vxlan number. * * ## Example Usage * * Fetch a vlan by ID: * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.Vlan;
     * import com.pulumi.equinix.metal.VlanArgs;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVlanArgs;
     * 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) {
     *         var foovlan = new Vlan("foovlan", VlanArgs.builder()
     *             .projectId(local.project_id())
     *             .metro("sv")
     *             .vxlan(5)
     *             .build());
     * 
     *         final var dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
     *             .vlanId(foovlan.id())
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * * Fetch a vlan by project ID, vxlan and metro * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVlanArgs;
     * 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 dsvlan = MetalFunctions.getVlan(GetVlanArgs.builder()
     *             .projectId(local.project_id())
     *             .vxlan(5)
     *             .metro("sv")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getVlanPlain(GetVlanPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getVlan:getVlan", TypeShape.of(GetVlanResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to retrieve a VRF resource. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVrfArgs;
     * 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 exampleVrf = MetalFunctions.getVrf(GetVrfArgs.builder()
     *             .vrfId("48630899-9ff2-4ce6-a93f-50ff4ebcdf6e")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getVrf(GetVrfArgs args) { return getVrf(args, InvokeOptions.Empty); } /** * Use this data source to retrieve a VRF resource. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVrfArgs;
     * 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 exampleVrf = MetalFunctions.getVrf(GetVrfArgs.builder()
     *             .vrfId("48630899-9ff2-4ce6-a93f-50ff4ebcdf6e")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getVrfPlain(GetVrfPlainArgs args) { return getVrfPlain(args, InvokeOptions.Empty); } /** * Use this data source to retrieve a VRF resource. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVrfArgs;
     * 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 exampleVrf = MetalFunctions.getVrf(GetVrfArgs.builder()
     *             .vrfId("48630899-9ff2-4ce6-a93f-50ff4ebcdf6e")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getVrf(GetVrfArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("equinix:metal/getVrf:getVrf", TypeShape.of(GetVrfResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to retrieve a VRF resource. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.equinix.metal.MetalFunctions;
     * import com.pulumi.equinix.metal.inputs.GetVrfArgs;
     * 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 exampleVrf = MetalFunctions.getVrf(GetVrfArgs.builder()
     *             .vrfId("48630899-9ff2-4ce6-a93f-50ff4ebcdf6e")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getVrfPlain(GetVrfPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("equinix:metal/getVrf:getVrf", TypeShape.of(GetVrfResult.class), args, Utilities.withVersion(options)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy