com.pulumi.gcp.vmwareengine.kotlin.VmwareengineFunctions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.vmwareengine.kotlin
import com.pulumi.gcp.vmwareengine.VmwareengineFunctions.getClusterPlain
import com.pulumi.gcp.vmwareengine.VmwareengineFunctions.getExternalAccessRulePlain
import com.pulumi.gcp.vmwareengine.VmwareengineFunctions.getExternalAddressPlain
import com.pulumi.gcp.vmwareengine.VmwareengineFunctions.getNetworkPeeringPlain
import com.pulumi.gcp.vmwareengine.VmwareengineFunctions.getNetworkPlain
import com.pulumi.gcp.vmwareengine.VmwareengineFunctions.getNetworkPolicyPlain
import com.pulumi.gcp.vmwareengine.VmwareengineFunctions.getNsxCredentialsPlain
import com.pulumi.gcp.vmwareengine.VmwareengineFunctions.getPrivateCloudPlain
import com.pulumi.gcp.vmwareengine.VmwareengineFunctions.getSubnetPlain
import com.pulumi.gcp.vmwareengine.VmwareengineFunctions.getVcenterCredentialsPlain
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetClusterPlainArgs
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetClusterPlainArgsBuilder
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetExternalAccessRulePlainArgs
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetExternalAccessRulePlainArgsBuilder
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetExternalAddressPlainArgs
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetExternalAddressPlainArgsBuilder
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetNetworkPeeringPlainArgs
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetNetworkPeeringPlainArgsBuilder
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetNetworkPlainArgs
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetNetworkPlainArgsBuilder
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetNetworkPolicyPlainArgs
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetNetworkPolicyPlainArgsBuilder
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetNsxCredentialsPlainArgs
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetNsxCredentialsPlainArgsBuilder
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetPrivateCloudPlainArgs
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetPrivateCloudPlainArgsBuilder
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetSubnetPlainArgs
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetSubnetPlainArgsBuilder
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetVcenterCredentialsPlainArgs
import com.pulumi.gcp.vmwareengine.kotlin.inputs.GetVcenterCredentialsPlainArgsBuilder
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetClusterResult
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetExternalAccessRuleResult
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetExternalAddressResult
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetNetworkPeeringResult
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetNetworkPolicyResult
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetNetworkResult
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetNsxCredentialsResult
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetPrivateCloudResult
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetSubnetResult
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetVcenterCredentialsResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetClusterResult.Companion.toKotlin as getClusterResultToKotlin
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetExternalAccessRuleResult.Companion.toKotlin as getExternalAccessRuleResultToKotlin
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetExternalAddressResult.Companion.toKotlin as getExternalAddressResultToKotlin
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetNetworkPeeringResult.Companion.toKotlin as getNetworkPeeringResultToKotlin
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetNetworkPolicyResult.Companion.toKotlin as getNetworkPolicyResultToKotlin
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetNetworkResult.Companion.toKotlin as getNetworkResultToKotlin
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetNsxCredentialsResult.Companion.toKotlin as getNsxCredentialsResultToKotlin
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetPrivateCloudResult.Companion.toKotlin as getPrivateCloudResultToKotlin
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetSubnetResult.Companion.toKotlin as getSubnetResultToKotlin
import com.pulumi.gcp.vmwareengine.kotlin.outputs.GetVcenterCredentialsResult.Companion.toKotlin as getVcenterCredentialsResultToKotlin
public object VmwareengineFunctions {
/**
* Use this data source to get details about a cluster resource.
* To get more information about private cloud cluster, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.clusters)
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const myCluster = gcp.vmwareengine.getCluster({
* name: "my-cluster",
* parent: "project/locations/us-west1-a/privateClouds/my-cloud",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* my_cluster = gcp.vmwareengine.get_cluster(name="my-cluster",
* parent="project/locations/us-west1-a/privateClouds/my-cloud")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var myCluster = Gcp.VMwareEngine.GetCluster.Invoke(new()
* {
* Name = "my-cluster",
* Parent = "project/locations/us-west1-a/privateClouds/my-cloud",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/vmwareengine"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := vmwareengine.LookupCluster(ctx, &vmwareengine.LookupClusterArgs{
* Name: "my-cluster",
* Parent: "project/locations/us-west1-a/privateClouds/my-cloud",
* }, nil)
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
* import com.pulumi.gcp.vmwareengine.inputs.GetClusterArgs;
* 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 myCluster = VmwareengineFunctions.getCluster(GetClusterArgs.builder()
* .name("my-cluster")
* .parent("project/locations/us-west1-a/privateClouds/my-cloud")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* myCluster:
* fn::invoke:
* Function: gcp:vmwareengine:getCluster
* Arguments:
* name: my-cluster
* parent: project/locations/us-west1-a/privateClouds/my-cloud
* ```
*
* @param argument A collection of arguments for invoking getCluster.
* @return A collection of values returned by getCluster.
*/
public suspend fun getCluster(argument: GetClusterPlainArgs): GetClusterResult =
getClusterResultToKotlin(getClusterPlain(argument.toJava()).await())
/**
* @see [getCluster].
* @param name Name of the resource.
* @param parent The resource name of the private cloud that this cluster belongs.
* @return A collection of values returned by getCluster.
*/
public suspend fun getCluster(name: String, parent: String): GetClusterResult {
val argument = GetClusterPlainArgs(
name = name,
parent = parent,
)
return getClusterResultToKotlin(getClusterPlain(argument.toJava()).await())
}
/**
* @see [getCluster].
* @param argument Builder for [com.pulumi.gcp.vmwareengine.kotlin.inputs.GetClusterPlainArgs].
* @return A collection of values returned by getCluster.
*/
public suspend fun getCluster(argument: suspend GetClusterPlainArgsBuilder.() -> Unit): GetClusterResult {
val builder = GetClusterPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getClusterResultToKotlin(getClusterPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to get details about a external access rule resource.
* To get more information about external address, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPolicies.externalAccessRules)
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const myExternalAccessRule = gcp.vmwareengine.getExternalAccessRule({
* name: "my-external-access-rule",
* parent: "project/my-project/locations/us-west1-a/networkPolicies/my-network-policy",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* my_external_access_rule = gcp.vmwareengine.get_external_access_rule(name="my-external-access-rule",
* parent="project/my-project/locations/us-west1-a/networkPolicies/my-network-policy")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var myExternalAccessRule = Gcp.VMwareEngine.GetExternalAccessRule.Invoke(new()
* {
* Name = "my-external-access-rule",
* Parent = "project/my-project/locations/us-west1-a/networkPolicies/my-network-policy",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/vmwareengine"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := vmwareengine.LookupExternalAccessRule(ctx, &vmwareengine.LookupExternalAccessRuleArgs{
* Name: "my-external-access-rule",
* Parent: "project/my-project/locations/us-west1-a/networkPolicies/my-network-policy",
* }, nil)
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
* import com.pulumi.gcp.vmwareengine.inputs.GetExternalAccessRuleArgs;
* 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 myExternalAccessRule = VmwareengineFunctions.getExternalAccessRule(GetExternalAccessRuleArgs.builder()
* .name("my-external-access-rule")
* .parent("project/my-project/locations/us-west1-a/networkPolicies/my-network-policy")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* myExternalAccessRule:
* fn::invoke:
* Function: gcp:vmwareengine:getExternalAccessRule
* Arguments:
* name: my-external-access-rule
* parent: project/my-project/locations/us-west1-a/networkPolicies/my-network-policy
* ```
*
* @param argument A collection of arguments for invoking getExternalAccessRule.
* @return A collection of values returned by getExternalAccessRule.
*/
public suspend fun getExternalAccessRule(argument: GetExternalAccessRulePlainArgs): GetExternalAccessRuleResult =
getExternalAccessRuleResultToKotlin(getExternalAccessRulePlain(argument.toJava()).await())
/**
* @see [getExternalAccessRule].
* @param name Name of the resource.
* @param parent The resource name of the network policy that this cluster belongs.
* @return A collection of values returned by getExternalAccessRule.
*/
public suspend fun getExternalAccessRule(name: String, parent: String): GetExternalAccessRuleResult {
val argument = GetExternalAccessRulePlainArgs(
name = name,
parent = parent,
)
return getExternalAccessRuleResultToKotlin(getExternalAccessRulePlain(argument.toJava()).await())
}
/**
* @see [getExternalAccessRule].
* @param argument Builder for [com.pulumi.gcp.vmwareengine.kotlin.inputs.GetExternalAccessRulePlainArgs].
* @return A collection of values returned by getExternalAccessRule.
*/
public suspend fun getExternalAccessRule(argument: suspend GetExternalAccessRulePlainArgsBuilder.() -> Unit): GetExternalAccessRuleResult {
val builder = GetExternalAccessRulePlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getExternalAccessRuleResultToKotlin(getExternalAccessRulePlain(builtArgument.toJava()).await())
}
/**
* Use this data source to get details about a external address resource.
* To get more information about external address, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.externalAddresses)
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const myExternalAddress = gcp.vmwareengine.getExternalAddress({
* name: "my-external-address",
* parent: "project/my-project/locations/us-west1-a/privateClouds/my-cloud",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* my_external_address = gcp.vmwareengine.get_external_address(name="my-external-address",
* parent="project/my-project/locations/us-west1-a/privateClouds/my-cloud")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var myExternalAddress = Gcp.VMwareEngine.GetExternalAddress.Invoke(new()
* {
* Name = "my-external-address",
* Parent = "project/my-project/locations/us-west1-a/privateClouds/my-cloud",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/vmwareengine"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := vmwareengine.LookupExternalAddress(ctx, &vmwareengine.LookupExternalAddressArgs{
* Name: "my-external-address",
* Parent: "project/my-project/locations/us-west1-a/privateClouds/my-cloud",
* }, nil)
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
* import com.pulumi.gcp.vmwareengine.inputs.GetExternalAddressArgs;
* 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 myExternalAddress = VmwareengineFunctions.getExternalAddress(GetExternalAddressArgs.builder()
* .name("my-external-address")
* .parent("project/my-project/locations/us-west1-a/privateClouds/my-cloud")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* myExternalAddress:
* fn::invoke:
* Function: gcp:vmwareengine:getExternalAddress
* Arguments:
* name: my-external-address
* parent: project/my-project/locations/us-west1-a/privateClouds/my-cloud
* ```
*
* @param argument A collection of arguments for invoking getExternalAddress.
* @return A collection of values returned by getExternalAddress.
*/
public suspend fun getExternalAddress(argument: GetExternalAddressPlainArgs): GetExternalAddressResult =
getExternalAddressResultToKotlin(getExternalAddressPlain(argument.toJava()).await())
/**
* @see [getExternalAddress].
* @param name Name of the resource.
* @param parent The resource name of the private cloud that this cluster belongs.
* @return A collection of values returned by getExternalAddress.
*/
public suspend fun getExternalAddress(name: String, parent: String): GetExternalAddressResult {
val argument = GetExternalAddressPlainArgs(
name = name,
parent = parent,
)
return getExternalAddressResultToKotlin(getExternalAddressPlain(argument.toJava()).await())
}
/**
* @see [getExternalAddress].
* @param argument Builder for [com.pulumi.gcp.vmwareengine.kotlin.inputs.GetExternalAddressPlainArgs].
* @return A collection of values returned by getExternalAddress.
*/
public suspend fun getExternalAddress(argument: suspend GetExternalAddressPlainArgsBuilder.() -> Unit): GetExternalAddressResult {
val builder = GetExternalAddressPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getExternalAddressResultToKotlin(getExternalAddressPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to get details about a VMwareEngine network resource.
* To get more information about VMwareEngine Network, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.vmwareEngineNetworks)
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const myNw = gcp.vmwareengine.getNetwork({
* name: "us-central1-default",
* location: "us-central1",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* my_nw = gcp.vmwareengine.get_network(name="us-central1-default",
* location="us-central1")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var myNw = Gcp.VMwareEngine.GetNetwork.Invoke(new()
* {
* Name = "us-central1-default",
* Location = "us-central1",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/vmwareengine"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := vmwareengine.LookupNetwork(ctx, &vmwareengine.LookupNetworkArgs{
* Name: "us-central1-default",
* Location: "us-central1",
* }, nil)
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
* import com.pulumi.gcp.vmwareengine.inputs.GetNetworkArgs;
* 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 myNw = VmwareengineFunctions.getNetwork(GetNetworkArgs.builder()
* .name("us-central1-default")
* .location("us-central1")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* myNw:
* fn::invoke:
* Function: gcp:vmwareengine:getNetwork
* Arguments:
* name: us-central1-default
* location: us-central1
* ```
*
* @param argument A collection of arguments for invoking getNetwork.
* @return A collection of values returned by getNetwork.
*/
public suspend fun getNetwork(argument: GetNetworkPlainArgs): GetNetworkResult =
getNetworkResultToKotlin(getNetworkPlain(argument.toJava()).await())
/**
* @see [getNetwork].
* @param location Location of the resource.
* - - -
* @param name Name of the resource.
* @param project The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
* @return A collection of values returned by getNetwork.
*/
public suspend fun getNetwork(
location: String,
name: String,
project: String? = null,
): GetNetworkResult {
val argument = GetNetworkPlainArgs(
location = location,
name = name,
project = project,
)
return getNetworkResultToKotlin(getNetworkPlain(argument.toJava()).await())
}
/**
* @see [getNetwork].
* @param argument Builder for [com.pulumi.gcp.vmwareengine.kotlin.inputs.GetNetworkPlainArgs].
* @return A collection of values returned by getNetwork.
*/
public suspend fun getNetwork(argument: suspend GetNetworkPlainArgsBuilder.() -> Unit): GetNetworkResult {
val builder = GetNetworkPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getNetworkResultToKotlin(getNetworkPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to get details about a network peering resource.
* To get more information about network peering, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPeerings)
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const myNetworkPeering = gcp.vmwareengine.getNetworkPeering({
* name: "my-network-peering",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* my_network_peering = gcp.vmwareengine.get_network_peering(name="my-network-peering")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var myNetworkPeering = Gcp.VMwareEngine.GetNetworkPeering.Invoke(new()
* {
* Name = "my-network-peering",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/vmwareengine"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := vmwareengine.LookupNetworkPeering(ctx, &vmwareengine.LookupNetworkPeeringArgs{
* Name: "my-network-peering",
* }, nil)
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
* import com.pulumi.gcp.vmwareengine.inputs.GetNetworkPeeringArgs;
* 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 myNetworkPeering = VmwareengineFunctions.getNetworkPeering(GetNetworkPeeringArgs.builder()
* .name("my-network-peering")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* myNetworkPeering:
* fn::invoke:
* Function: gcp:vmwareengine:getNetworkPeering
* Arguments:
* name: my-network-peering
* ```
*
* @param argument A collection of arguments for invoking getNetworkPeering.
* @return A collection of values returned by getNetworkPeering.
*/
public suspend fun getNetworkPeering(argument: GetNetworkPeeringPlainArgs): GetNetworkPeeringResult =
getNetworkPeeringResultToKotlin(getNetworkPeeringPlain(argument.toJava()).await())
/**
* @see [getNetworkPeering].
* @param name Name of the resource.
* @param project
* @return A collection of values returned by getNetworkPeering.
*/
public suspend fun getNetworkPeering(name: String, project: String? = null): GetNetworkPeeringResult {
val argument = GetNetworkPeeringPlainArgs(
name = name,
project = project,
)
return getNetworkPeeringResultToKotlin(getNetworkPeeringPlain(argument.toJava()).await())
}
/**
* @see [getNetworkPeering].
* @param argument Builder for [com.pulumi.gcp.vmwareengine.kotlin.inputs.GetNetworkPeeringPlainArgs].
* @return A collection of values returned by getNetworkPeering.
*/
public suspend fun getNetworkPeering(argument: suspend GetNetworkPeeringPlainArgsBuilder.() -> Unit): GetNetworkPeeringResult {
val builder = GetNetworkPeeringPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getNetworkPeeringResultToKotlin(getNetworkPeeringPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to get details about a network policy resource.
* To get more information about network policy, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.networkPolicies)
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const myNetworkPolicy = gcp.vmwareengine.getNetworkPolicy({
* name: "my-network-policy",
* location: "us-central1",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* my_network_policy = gcp.vmwareengine.get_network_policy(name="my-network-policy",
* location="us-central1")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var myNetworkPolicy = Gcp.VMwareEngine.GetNetworkPolicy.Invoke(new()
* {
* Name = "my-network-policy",
* Location = "us-central1",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/vmwareengine"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := vmwareengine.LookupNetworkPolicy(ctx, &vmwareengine.LookupNetworkPolicyArgs{
* Name: "my-network-policy",
* Location: "us-central1",
* }, nil)
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
* import com.pulumi.gcp.vmwareengine.inputs.GetNetworkPolicyArgs;
* 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 myNetworkPolicy = VmwareengineFunctions.getNetworkPolicy(GetNetworkPolicyArgs.builder()
* .name("my-network-policy")
* .location("us-central1")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* myNetworkPolicy:
* fn::invoke:
* Function: gcp:vmwareengine:getNetworkPolicy
* Arguments:
* name: my-network-policy
* location: us-central1
* ```
*
* @param argument A collection of arguments for invoking getNetworkPolicy.
* @return A collection of values returned by getNetworkPolicy.
*/
public suspend fun getNetworkPolicy(argument: GetNetworkPolicyPlainArgs): GetNetworkPolicyResult =
getNetworkPolicyResultToKotlin(getNetworkPolicyPlain(argument.toJava()).await())
/**
* @see [getNetworkPolicy].
* @param location Location of the resource.
* @param name Name of the resource.
* @param project
* @return A collection of values returned by getNetworkPolicy.
*/
public suspend fun getNetworkPolicy(
location: String,
name: String,
project: String? = null,
): GetNetworkPolicyResult {
val argument = GetNetworkPolicyPlainArgs(
location = location,
name = name,
project = project,
)
return getNetworkPolicyResultToKotlin(getNetworkPolicyPlain(argument.toJava()).await())
}
/**
* @see [getNetworkPolicy].
* @param argument Builder for [com.pulumi.gcp.vmwareengine.kotlin.inputs.GetNetworkPolicyPlainArgs].
* @return A collection of values returned by getNetworkPolicy.
*/
public suspend fun getNetworkPolicy(argument: suspend GetNetworkPolicyPlainArgsBuilder.() -> Unit): GetNetworkPolicyResult {
val builder = GetNetworkPolicyPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getNetworkPolicyResultToKotlin(getNetworkPolicyPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to get NSX credentials for a Private Cloud.
* To get more information about private cloud NSX credentials, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds/showNsxCredentials)
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const ds = gcp.vmwareengine.getNsxCredentials({
* parent: "projects/my-project/locations/us-west1-a/privateClouds/my-cloud",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* ds = gcp.vmwareengine.get_nsx_credentials(parent="projects/my-project/locations/us-west1-a/privateClouds/my-cloud")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var ds = Gcp.VMwareEngine.GetNsxCredentials.Invoke(new()
* {
* Parent = "projects/my-project/locations/us-west1-a/privateClouds/my-cloud",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/vmwareengine"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := vmwareengine.GetNsxCredentials(ctx, &vmwareengine.GetNsxCredentialsArgs{
* Parent: "projects/my-project/locations/us-west1-a/privateClouds/my-cloud",
* }, nil)
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
* import com.pulumi.gcp.vmwareengine.inputs.GetNsxCredentialsArgs;
* 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 ds = VmwareengineFunctions.getNsxCredentials(GetNsxCredentialsArgs.builder()
* .parent("projects/my-project/locations/us-west1-a/privateClouds/my-cloud")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* ds:
* fn::invoke:
* Function: gcp:vmwareengine:getNsxCredentials
* Arguments:
* parent: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
* ```
*
* @param argument A collection of arguments for invoking getNsxCredentials.
* @return A collection of values returned by getNsxCredentials.
*/
public suspend fun getNsxCredentials(argument: GetNsxCredentialsPlainArgs): GetNsxCredentialsResult =
getNsxCredentialsResultToKotlin(getNsxCredentialsPlain(argument.toJava()).await())
/**
* @see [getNsxCredentials].
* @param parent The resource name of the private cloud which contains the NSX.
* @return A collection of values returned by getNsxCredentials.
*/
public suspend fun getNsxCredentials(parent: String): GetNsxCredentialsResult {
val argument = GetNsxCredentialsPlainArgs(
parent = parent,
)
return getNsxCredentialsResultToKotlin(getNsxCredentialsPlain(argument.toJava()).await())
}
/**
* @see [getNsxCredentials].
* @param argument Builder for [com.pulumi.gcp.vmwareengine.kotlin.inputs.GetNsxCredentialsPlainArgs].
* @return A collection of values returned by getNsxCredentials.
*/
public suspend fun getNsxCredentials(argument: suspend GetNsxCredentialsPlainArgsBuilder.() -> Unit): GetNsxCredentialsResult {
val builder = GetNsxCredentialsPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getNsxCredentialsResultToKotlin(getNsxCredentialsPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to get details about a private cloud resource.
* To get more information about private cloud, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds)
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const myPc = gcp.vmwareengine.getPrivateCloud({
* name: "my-pc",
* location: "us-central1-a",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* my_pc = gcp.vmwareengine.get_private_cloud(name="my-pc",
* location="us-central1-a")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var myPc = Gcp.VMwareEngine.GetPrivateCloud.Invoke(new()
* {
* Name = "my-pc",
* Location = "us-central1-a",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/vmwareengine"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := vmwareengine.LookupPrivateCloud(ctx, &vmwareengine.LookupPrivateCloudArgs{
* Name: "my-pc",
* Location: "us-central1-a",
* }, nil)
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
* import com.pulumi.gcp.vmwareengine.inputs.GetPrivateCloudArgs;
* 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 myPc = VmwareengineFunctions.getPrivateCloud(GetPrivateCloudArgs.builder()
* .name("my-pc")
* .location("us-central1-a")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* myPc:
* fn::invoke:
* Function: gcp:vmwareengine:getPrivateCloud
* Arguments:
* name: my-pc
* location: us-central1-a
* ```
*
* @param argument A collection of arguments for invoking getPrivateCloud.
* @return A collection of values returned by getPrivateCloud.
*/
public suspend fun getPrivateCloud(argument: GetPrivateCloudPlainArgs): GetPrivateCloudResult =
getPrivateCloudResultToKotlin(getPrivateCloudPlain(argument.toJava()).await())
/**
* @see [getPrivateCloud].
* @param location Location of the resource.
* - - -
* @param name Name of the resource.
* @param project The ID of the project in which the resource belongs. If it
* is not provided, the provider project is used.
* @return A collection of values returned by getPrivateCloud.
*/
public suspend fun getPrivateCloud(
location: String,
name: String,
project: String? = null,
): GetPrivateCloudResult {
val argument = GetPrivateCloudPlainArgs(
location = location,
name = name,
project = project,
)
return getPrivateCloudResultToKotlin(getPrivateCloudPlain(argument.toJava()).await())
}
/**
* @see [getPrivateCloud].
* @param argument Builder for [com.pulumi.gcp.vmwareengine.kotlin.inputs.GetPrivateCloudPlainArgs].
* @return A collection of values returned by getPrivateCloud.
*/
public suspend fun getPrivateCloud(argument: suspend GetPrivateCloudPlainArgsBuilder.() -> Unit): GetPrivateCloudResult {
val builder = GetPrivateCloudPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getPrivateCloudResultToKotlin(getPrivateCloudPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to get details about a subnet. Management subnets support only read operations and should be configured through this data source. User defined subnets can be configured using the resource as well as the datasource.
* To get more information about private cloud subnet, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds.subnets)
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const mySubnet = gcp.vmwareengine.getSubnet({
* name: "service-1",
* parent: "project/my-project/locations/us-west1-a/privateClouds/my-cloud",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* my_subnet = gcp.vmwareengine.get_subnet(name="service-1",
* parent="project/my-project/locations/us-west1-a/privateClouds/my-cloud")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var mySubnet = Gcp.VMwareEngine.GetSubnet.Invoke(new()
* {
* Name = "service-1",
* Parent = "project/my-project/locations/us-west1-a/privateClouds/my-cloud",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/vmwareengine"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := vmwareengine.LookupSubnet(ctx, &vmwareengine.LookupSubnetArgs{
* Name: "service-1",
* Parent: "project/my-project/locations/us-west1-a/privateClouds/my-cloud",
* }, nil)
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
* import com.pulumi.gcp.vmwareengine.inputs.GetSubnetArgs;
* 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 mySubnet = VmwareengineFunctions.getSubnet(GetSubnetArgs.builder()
* .name("service-1")
* .parent("project/my-project/locations/us-west1-a/privateClouds/my-cloud")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* mySubnet:
* fn::invoke:
* Function: gcp:vmwareengine:getSubnet
* Arguments:
* name: service-1
* parent: project/my-project/locations/us-west1-a/privateClouds/my-cloud
* ```
*
* @param argument A collection of arguments for invoking getSubnet.
* @return A collection of values returned by getSubnet.
*/
public suspend fun getSubnet(argument: GetSubnetPlainArgs): GetSubnetResult =
getSubnetResultToKotlin(getSubnetPlain(argument.toJava()).await())
/**
* @see [getSubnet].
* @param name Name of the resource.
* UserDefined subnets are named in the format of "service-n", where n ranges from 1 to 5.
* Management subnets have arbitary names including "vmotion", "vsan", "system-management" etc. More details about subnet names can be found on the cloud console.
* @param parent The resource name of the private cloud that this subnet belongs.
* @return A collection of values returned by getSubnet.
*/
public suspend fun getSubnet(name: String, parent: String): GetSubnetResult {
val argument = GetSubnetPlainArgs(
name = name,
parent = parent,
)
return getSubnetResultToKotlin(getSubnetPlain(argument.toJava()).await())
}
/**
* @see [getSubnet].
* @param argument Builder for [com.pulumi.gcp.vmwareengine.kotlin.inputs.GetSubnetPlainArgs].
* @return A collection of values returned by getSubnet.
*/
public suspend fun getSubnet(argument: suspend GetSubnetPlainArgsBuilder.() -> Unit): GetSubnetResult {
val builder = GetSubnetPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getSubnetResultToKotlin(getSubnetPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to get Vcenter credentials for a Private Cloud.
* To get more information about private cloud Vcenter credentials, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds/showVcenterCredentials)
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const ds = gcp.vmwareengine.getVcenterCredentials({
* parent: "projects/my-project/locations/us-west1-a/privateClouds/my-cloud",
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* ds = gcp.vmwareengine.get_vcenter_credentials(parent="projects/my-project/locations/us-west1-a/privateClouds/my-cloud")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var ds = Gcp.VMwareEngine.GetVcenterCredentials.Invoke(new()
* {
* Parent = "projects/my-project/locations/us-west1-a/privateClouds/my-cloud",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/vmwareengine"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := vmwareengine.GetVcenterCredentials(ctx, &vmwareengine.GetVcenterCredentialsArgs{
* Parent: "projects/my-project/locations/us-west1-a/privateClouds/my-cloud",
* }, nil)
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.vmwareengine.VmwareengineFunctions;
* import com.pulumi.gcp.vmwareengine.inputs.GetVcenterCredentialsArgs;
* 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 ds = VmwareengineFunctions.getVcenterCredentials(GetVcenterCredentialsArgs.builder()
* .parent("projects/my-project/locations/us-west1-a/privateClouds/my-cloud")
* .build());
* }
* }
* ```
* ```yaml
* variables:
* ds:
* fn::invoke:
* Function: gcp:vmwareengine:getVcenterCredentials
* Arguments:
* parent: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
* ```
*
* @param argument A collection of arguments for invoking getVcenterCredentials.
* @return A collection of values returned by getVcenterCredentials.
*/
public suspend fun getVcenterCredentials(argument: GetVcenterCredentialsPlainArgs): GetVcenterCredentialsResult =
getVcenterCredentialsResultToKotlin(getVcenterCredentialsPlain(argument.toJava()).await())
/**
* @see [getVcenterCredentials].
* @param parent The resource name of the private cloud which contains the Vcenter.
* @return A collection of values returned by getVcenterCredentials.
*/
public suspend fun getVcenterCredentials(parent: String): GetVcenterCredentialsResult {
val argument = GetVcenterCredentialsPlainArgs(
parent = parent,
)
return getVcenterCredentialsResultToKotlin(getVcenterCredentialsPlain(argument.toJava()).await())
}
/**
* @see [getVcenterCredentials].
* @param argument Builder for [com.pulumi.gcp.vmwareengine.kotlin.inputs.GetVcenterCredentialsPlainArgs].
* @return A collection of values returned by getVcenterCredentials.
*/
public suspend fun getVcenterCredentials(argument: suspend GetVcenterCredentialsPlainArgsBuilder.() -> Unit): GetVcenterCredentialsResult {
val builder = GetVcenterCredentialsPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getVcenterCredentialsResultToKotlin(getVcenterCredentialsPlain(builtArgument.toJava()).await())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy