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

com.pulumi.gcp.gkeonprem.kotlin.BareMetalNodePool.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.gkeonprem.kotlin

import com.pulumi.core.Output
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalNodePoolNodePoolConfig
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalNodePoolStatus
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalNodePoolNodePoolConfig.Companion.toKotlin as bareMetalNodePoolNodePoolConfigToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalNodePoolStatus.Companion.toKotlin as bareMetalNodePoolStatusToKotlin

/**
 * Builder for [BareMetalNodePool].
 */
@PulumiTagMarker
public class BareMetalNodePoolResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: BareMetalNodePoolArgs = BareMetalNodePoolArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend BareMetalNodePoolArgsBuilder.() -> Unit) {
        val builder = BareMetalNodePoolArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): BareMetalNodePool {
        val builtJavaResource = com.pulumi.gcp.gkeonprem.BareMetalNodePool(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return BareMetalNodePool(builtJavaResource)
    }
}

/**
 * A Google Bare Metal Node Pool.
 * ## Example Usage
 * ### Gkeonprem Bare Metal Node Pool Basic
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const default_basic = new gcp.gkeonprem.BareMetalCluster("default-basic", {
 *     name: "my-cluster",
 *     location: "us-west1",
 *     adminClusterMembership: "projects/870316890899/locations/global/memberships/gkeonprem-terraform-test",
 *     bareMetalVersion: "1.12.3",
 *     networkConfig: {
 *         islandModeCidr: {
 *             serviceAddressCidrBlocks: ["172.26.0.0/16"],
 *             podAddressCidrBlocks: ["10.240.0.0/13"],
 *         },
 *     },
 *     controlPlane: {
 *         controlPlaneNodePoolConfig: {
 *             nodePoolConfig: {
 *                 labels: {},
 *                 operatingSystem: "LINUX",
 *                 nodeConfigs: [{
 *                     labels: {},
 *                     nodeIp: "10.200.0.9",
 *                 }],
 *             },
 *         },
 *     },
 *     loadBalancer: {
 *         portConfig: {
 *             controlPlaneLoadBalancerPort: 443,
 *         },
 *         vipConfig: {
 *             controlPlaneVip: "10.200.0.13",
 *             ingressVip: "10.200.0.14",
 *         },
 *         metalLbConfig: {
 *             addressPools: [{
 *                 pool: "pool1",
 *                 addresses: [
 *                     "10.200.0.14/32",
 *                     "10.200.0.15/32",
 *                     "10.200.0.16/32",
 *                     "10.200.0.17/32",
 *                     "10.200.0.18/32",
 *                     "fd00:1::f/128",
 *                     "fd00:1::10/128",
 *                     "fd00:1::11/128",
 *                     "fd00:1::12/128",
 *                 ],
 *             }],
 *         },
 *     },
 *     storage: {
 *         lvpShareConfig: {
 *             lvpConfig: {
 *                 path: "/mnt/localpv-share",
 *                 storageClass: "local-shared",
 *             },
 *             sharedPathPvCount: 5,
 *         },
 *         lvpNodeMountsConfig: {
 *             path: "/mnt/localpv-disk",
 *             storageClass: "local-disks",
 *         },
 *     },
 *     securityConfig: {
 *         authorization: {
 *             adminUsers: [{
 *                 username: "[email protected]",
 *             }],
 *         },
 *     },
 * });
 * const nodepool_basic = new gcp.gkeonprem.BareMetalNodePool("nodepool-basic", {
 *     name: "my-nodepool",
 *     bareMetalCluster: default_basic.name,
 *     location: "us-west1",
 *     nodePoolConfig: {
 *         operatingSystem: "LINUX",
 *         nodeConfigs: [{
 *             nodeIp: "10.200.0.11",
 *         }],
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * default_basic = gcp.gkeonprem.BareMetalCluster("default-basic",
 *     name="my-cluster",
 *     location="us-west1",
 *     admin_cluster_membership="projects/870316890899/locations/global/memberships/gkeonprem-terraform-test",
 *     bare_metal_version="1.12.3",
 *     network_config=gcp.gkeonprem.BareMetalClusterNetworkConfigArgs(
 *         island_mode_cidr=gcp.gkeonprem.BareMetalClusterNetworkConfigIslandModeCidrArgs(
 *             service_address_cidr_blocks=["172.26.0.0/16"],
 *             pod_address_cidr_blocks=["10.240.0.0/13"],
 *         ),
 *     ),
 *     control_plane=gcp.gkeonprem.BareMetalClusterControlPlaneArgs(
 *         control_plane_node_pool_config=gcp.gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs(
 *             node_pool_config=gcp.gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs(
 *                 labels={},
 *                 operating_system="LINUX",
 *                 node_configs=[gcp.gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs(
 *                     labels={},
 *                     node_ip="10.200.0.9",
 *                 )],
 *             ),
 *         ),
 *     ),
 *     load_balancer=gcp.gkeonprem.BareMetalClusterLoadBalancerArgs(
 *         port_config=gcp.gkeonprem.BareMetalClusterLoadBalancerPortConfigArgs(
 *             control_plane_load_balancer_port=443,
 *         ),
 *         vip_config=gcp.gkeonprem.BareMetalClusterLoadBalancerVipConfigArgs(
 *             control_plane_vip="10.200.0.13",
 *             ingress_vip="10.200.0.14",
 *         ),
 *         metal_lb_config=gcp.gkeonprem.BareMetalClusterLoadBalancerMetalLbConfigArgs(
 *             address_pools=[gcp.gkeonprem.BareMetalClusterLoadBalancerMetalLbConfigAddressPoolArgs(
 *                 pool="pool1",
 *                 addresses=[
 *                     "10.200.0.14/32",
 *                     "10.200.0.15/32",
 *                     "10.200.0.16/32",
 *                     "10.200.0.17/32",
 *                     "10.200.0.18/32",
 *                     "fd00:1::f/128",
 *                     "fd00:1::10/128",
 *                     "fd00:1::11/128",
 *                     "fd00:1::12/128",
 *                 ],
 *             )],
 *         ),
 *     ),
 *     storage=gcp.gkeonprem.BareMetalClusterStorageArgs(
 *         lvp_share_config=gcp.gkeonprem.BareMetalClusterStorageLvpShareConfigArgs(
 *             lvp_config=gcp.gkeonprem.BareMetalClusterStorageLvpShareConfigLvpConfigArgs(
 *                 path="/mnt/localpv-share",
 *                 storage_class="local-shared",
 *             ),
 *             shared_path_pv_count=5,
 *         ),
 *         lvp_node_mounts_config=gcp.gkeonprem.BareMetalClusterStorageLvpNodeMountsConfigArgs(
 *             path="/mnt/localpv-disk",
 *             storage_class="local-disks",
 *         ),
 *     ),
 *     security_config=gcp.gkeonprem.BareMetalClusterSecurityConfigArgs(
 *         authorization=gcp.gkeonprem.BareMetalClusterSecurityConfigAuthorizationArgs(
 *             admin_users=[gcp.gkeonprem.BareMetalClusterSecurityConfigAuthorizationAdminUserArgs(
 *                 username="[email protected]",
 *             )],
 *         ),
 *     ))
 * nodepool_basic = gcp.gkeonprem.BareMetalNodePool("nodepool-basic",
 *     name="my-nodepool",
 *     bare_metal_cluster=default_basic.name,
 *     location="us-west1",
 *     node_pool_config=gcp.gkeonprem.BareMetalNodePoolNodePoolConfigArgs(
 *         operating_system="LINUX",
 *         node_configs=[gcp.gkeonprem.BareMetalNodePoolNodePoolConfigNodeConfigArgs(
 *             node_ip="10.200.0.11",
 *         )],
 *     ))
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var default_basic = new Gcp.GkeOnPrem.BareMetalCluster("default-basic", new()
 *     {
 *         Name = "my-cluster",
 *         Location = "us-west1",
 *         AdminClusterMembership = "projects/870316890899/locations/global/memberships/gkeonprem-terraform-test",
 *         BareMetalVersion = "1.12.3",
 *         NetworkConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterNetworkConfigArgs
 *         {
 *             IslandModeCidr = new Gcp.GkeOnPrem.Inputs.BareMetalClusterNetworkConfigIslandModeCidrArgs
 *             {
 *                 ServiceAddressCidrBlocks = new[]
 *                 {
 *                     "172.26.0.0/16",
 *                 },
 *                 PodAddressCidrBlocks = new[]
 *                 {
 *                     "10.240.0.0/13",
 *                 },
 *             },
 *         },
 *         ControlPlane = new Gcp.GkeOnPrem.Inputs.BareMetalClusterControlPlaneArgs
 *         {
 *             ControlPlaneNodePoolConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs
 *             {
 *                 NodePoolConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs
 *                 {
 *                     Labels = null,
 *                     OperatingSystem = "LINUX",
 *                     NodeConfigs = new[]
 *                     {
 *                         new Gcp.GkeOnPrem.Inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs
 *                         {
 *                             Labels = null,
 *                             NodeIp = "10.200.0.9",
 *                         },
 *                     },
 *                 },
 *             },
 *         },
 *         LoadBalancer = new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerArgs
 *         {
 *             PortConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerPortConfigArgs
 *             {
 *                 ControlPlaneLoadBalancerPort = 443,
 *             },
 *             VipConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerVipConfigArgs
 *             {
 *                 ControlPlaneVip = "10.200.0.13",
 *                 IngressVip = "10.200.0.14",
 *             },
 *             MetalLbConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerMetalLbConfigArgs
 *             {
 *                 AddressPools = new[]
 *                 {
 *                     new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerMetalLbConfigAddressPoolArgs
 *                     {
 *                         Pool = "pool1",
 *                         Addresses = new[]
 *                         {
 *                             "10.200.0.14/32",
 *                             "10.200.0.15/32",
 *                             "10.200.0.16/32",
 *                             "10.200.0.17/32",
 *                             "10.200.0.18/32",
 *                             "fd00:1::f/128",
 *                             "fd00:1::10/128",
 *                             "fd00:1::11/128",
 *                             "fd00:1::12/128",
 *                         },
 *                     },
 *                 },
 *             },
 *         },
 *         Storage = new Gcp.GkeOnPrem.Inputs.BareMetalClusterStorageArgs
 *         {
 *             LvpShareConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterStorageLvpShareConfigArgs
 *             {
 *                 LvpConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterStorageLvpShareConfigLvpConfigArgs
 *                 {
 *                     Path = "/mnt/localpv-share",
 *                     StorageClass = "local-shared",
 *                 },
 *                 SharedPathPvCount = 5,
 *             },
 *             LvpNodeMountsConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterStorageLvpNodeMountsConfigArgs
 *             {
 *                 Path = "/mnt/localpv-disk",
 *                 StorageClass = "local-disks",
 *             },
 *         },
 *         SecurityConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterSecurityConfigArgs
 *         {
 *             Authorization = new Gcp.GkeOnPrem.Inputs.BareMetalClusterSecurityConfigAuthorizationArgs
 *             {
 *                 AdminUsers = new[]
 *                 {
 *                     new Gcp.GkeOnPrem.Inputs.BareMetalClusterSecurityConfigAuthorizationAdminUserArgs
 *                     {
 *                         Username = "[email protected]",
 *                     },
 *                 },
 *             },
 *         },
 *     });
 *     var nodepool_basic = new Gcp.GkeOnPrem.BareMetalNodePool("nodepool-basic", new()
 *     {
 *         Name = "my-nodepool",
 *         BareMetalCluster = default_basic.Name,
 *         Location = "us-west1",
 *         NodePoolConfig = new Gcp.GkeOnPrem.Inputs.BareMetalNodePoolNodePoolConfigArgs
 *         {
 *             OperatingSystem = "LINUX",
 *             NodeConfigs = new[]
 *             {
 *                 new Gcp.GkeOnPrem.Inputs.BareMetalNodePoolNodePoolConfigNodeConfigArgs
 *                 {
 *                     NodeIp = "10.200.0.11",
 *                 },
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/gkeonprem"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := gkeonprem.NewBareMetalCluster(ctx, "default-basic", &gkeonprem.BareMetalClusterArgs{
 * 			Name:                   pulumi.String("my-cluster"),
 * 			Location:               pulumi.String("us-west1"),
 * 			AdminClusterMembership: pulumi.String("projects/870316890899/locations/global/memberships/gkeonprem-terraform-test"),
 * 			BareMetalVersion:       pulumi.String("1.12.3"),
 * 			NetworkConfig: &gkeonprem.BareMetalClusterNetworkConfigArgs{
 * 				IslandModeCidr: &gkeonprem.BareMetalClusterNetworkConfigIslandModeCidrArgs{
 * 					ServiceAddressCidrBlocks: pulumi.StringArray{
 * 						pulumi.String("172.26.0.0/16"),
 * 					},
 * 					PodAddressCidrBlocks: pulumi.StringArray{
 * 						pulumi.String("10.240.0.0/13"),
 * 					},
 * 				},
 * 			},
 * 			ControlPlane: &gkeonprem.BareMetalClusterControlPlaneArgs{
 * 				ControlPlaneNodePoolConfig: &gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs{
 * 					NodePoolConfig: &gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs{
 * 						Labels:          nil,
 * 						OperatingSystem: pulumi.String("LINUX"),
 * 						NodeConfigs: gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArray{
 * 							&gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs{
 * 								Labels: nil,
 * 								NodeIp: pulumi.String("10.200.0.9"),
 * 							},
 * 						},
 * 					},
 * 				},
 * 			},
 * 			LoadBalancer: &gkeonprem.BareMetalClusterLoadBalancerArgs{
 * 				PortConfig: &gkeonprem.BareMetalClusterLoadBalancerPortConfigArgs{
 * 					ControlPlaneLoadBalancerPort: pulumi.Int(443),
 * 				},
 * 				VipConfig: &gkeonprem.BareMetalClusterLoadBalancerVipConfigArgs{
 * 					ControlPlaneVip: pulumi.String("10.200.0.13"),
 * 					IngressVip:      pulumi.String("10.200.0.14"),
 * 				},
 * 				MetalLbConfig: &gkeonprem.BareMetalClusterLoadBalancerMetalLbConfigArgs{
 * 					AddressPools: gkeonprem.BareMetalClusterLoadBalancerMetalLbConfigAddressPoolArray{
 * 						&gkeonprem.BareMetalClusterLoadBalancerMetalLbConfigAddressPoolArgs{
 * 							Pool: pulumi.String("pool1"),
 * 							Addresses: pulumi.StringArray{
 * 								pulumi.String("10.200.0.14/32"),
 * 								pulumi.String("10.200.0.15/32"),
 * 								pulumi.String("10.200.0.16/32"),
 * 								pulumi.String("10.200.0.17/32"),
 * 								pulumi.String("10.200.0.18/32"),
 * 								pulumi.String("fd00:1::f/128"),
 * 								pulumi.String("fd00:1::10/128"),
 * 								pulumi.String("fd00:1::11/128"),
 * 								pulumi.String("fd00:1::12/128"),
 * 							},
 * 						},
 * 					},
 * 				},
 * 			},
 * 			Storage: &gkeonprem.BareMetalClusterStorageArgs{
 * 				LvpShareConfig: &gkeonprem.BareMetalClusterStorageLvpShareConfigArgs{
 * 					LvpConfig: &gkeonprem.BareMetalClusterStorageLvpShareConfigLvpConfigArgs{
 * 						Path:         pulumi.String("/mnt/localpv-share"),
 * 						StorageClass: pulumi.String("local-shared"),
 * 					},
 * 					SharedPathPvCount: pulumi.Int(5),
 * 				},
 * 				LvpNodeMountsConfig: &gkeonprem.BareMetalClusterStorageLvpNodeMountsConfigArgs{
 * 					Path:         pulumi.String("/mnt/localpv-disk"),
 * 					StorageClass: pulumi.String("local-disks"),
 * 				},
 * 			},
 * 			SecurityConfig: &gkeonprem.BareMetalClusterSecurityConfigArgs{
 * 				Authorization: &gkeonprem.BareMetalClusterSecurityConfigAuthorizationArgs{
 * 					AdminUsers: gkeonprem.BareMetalClusterSecurityConfigAuthorizationAdminUserArray{
 * 						&gkeonprem.BareMetalClusterSecurityConfigAuthorizationAdminUserArgs{
 * 							Username: pulumi.String("[email protected]"),
 * 						},
 * 					},
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = gkeonprem.NewBareMetalNodePool(ctx, "nodepool-basic", &gkeonprem.BareMetalNodePoolArgs{
 * 			Name:             pulumi.String("my-nodepool"),
 * 			BareMetalCluster: default_basic.Name,
 * 			Location:         pulumi.String("us-west1"),
 * 			NodePoolConfig: &gkeonprem.BareMetalNodePoolNodePoolConfigArgs{
 * 				OperatingSystem: pulumi.String("LINUX"),
 * 				NodeConfigs: gkeonprem.BareMetalNodePoolNodePoolConfigNodeConfigArray{
 * 					&gkeonprem.BareMetalNodePoolNodePoolConfigNodeConfigArgs{
 * 						NodeIp: pulumi.String("10.200.0.11"),
 * 					},
 * 				},
 * 			},
 * 		})
 * 		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.gkeonprem.BareMetalCluster;
 * import com.pulumi.gcp.gkeonprem.BareMetalClusterArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterNetworkConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterNetworkConfigIslandModeCidrArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterControlPlaneArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerPortConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerVipConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerMetalLbConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterStorageArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterStorageLvpShareConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterStorageLvpShareConfigLvpConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterStorageLvpNodeMountsConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterSecurityConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterSecurityConfigAuthorizationArgs;
 * import com.pulumi.gcp.gkeonprem.BareMetalNodePool;
 * import com.pulumi.gcp.gkeonprem.BareMetalNodePoolArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalNodePoolNodePoolConfigArgs;
 * 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 default_basic = new BareMetalCluster("default-basic", BareMetalClusterArgs.builder()
 *             .name("my-cluster")
 *             .location("us-west1")
 *             .adminClusterMembership("projects/870316890899/locations/global/memberships/gkeonprem-terraform-test")
 *             .bareMetalVersion("1.12.3")
 *             .networkConfig(BareMetalClusterNetworkConfigArgs.builder()
 *                 .islandModeCidr(BareMetalClusterNetworkConfigIslandModeCidrArgs.builder()
 *                     .serviceAddressCidrBlocks("172.26.0.0/16")
 *                     .podAddressCidrBlocks("10.240.0.0/13")
 *                     .build())
 *                 .build())
 *             .controlPlane(BareMetalClusterControlPlaneArgs.builder()
 *                 .controlPlaneNodePoolConfig(BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs.builder()
 *                     .nodePoolConfig(BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs.builder()
 *                         .labels()
 *                         .operatingSystem("LINUX")
 *                         .nodeConfigs(BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs.builder()
 *                             .labels()
 *                             .nodeIp("10.200.0.9")
 *                             .build())
 *                         .build())
 *                     .build())
 *                 .build())
 *             .loadBalancer(BareMetalClusterLoadBalancerArgs.builder()
 *                 .portConfig(BareMetalClusterLoadBalancerPortConfigArgs.builder()
 *                     .controlPlaneLoadBalancerPort(443)
 *                     .build())
 *                 .vipConfig(BareMetalClusterLoadBalancerVipConfigArgs.builder()
 *                     .controlPlaneVip("10.200.0.13")
 *                     .ingressVip("10.200.0.14")
 *                     .build())
 *                 .metalLbConfig(BareMetalClusterLoadBalancerMetalLbConfigArgs.builder()
 *                     .addressPools(BareMetalClusterLoadBalancerMetalLbConfigAddressPoolArgs.builder()
 *                         .pool("pool1")
 *                         .addresses(
 *                             "10.200.0.14/32",
 *                             "10.200.0.15/32",
 *                             "10.200.0.16/32",
 *                             "10.200.0.17/32",
 *                             "10.200.0.18/32",
 *                             "fd00:1::f/128",
 *                             "fd00:1::10/128",
 *                             "fd00:1::11/128",
 *                             "fd00:1::12/128")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .storage(BareMetalClusterStorageArgs.builder()
 *                 .lvpShareConfig(BareMetalClusterStorageLvpShareConfigArgs.builder()
 *                     .lvpConfig(BareMetalClusterStorageLvpShareConfigLvpConfigArgs.builder()
 *                         .path("/mnt/localpv-share")
 *                         .storageClass("local-shared")
 *                         .build())
 *                     .sharedPathPvCount(5)
 *                     .build())
 *                 .lvpNodeMountsConfig(BareMetalClusterStorageLvpNodeMountsConfigArgs.builder()
 *                     .path("/mnt/localpv-disk")
 *                     .storageClass("local-disks")
 *                     .build())
 *                 .build())
 *             .securityConfig(BareMetalClusterSecurityConfigArgs.builder()
 *                 .authorization(BareMetalClusterSecurityConfigAuthorizationArgs.builder()
 *                     .adminUsers(BareMetalClusterSecurityConfigAuthorizationAdminUserArgs.builder()
 *                         .username("[email protected]")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .build());
 *         var nodepool_basic = new BareMetalNodePool("nodepool-basic", BareMetalNodePoolArgs.builder()
 *             .name("my-nodepool")
 *             .bareMetalCluster(default_basic.name())
 *             .location("us-west1")
 *             .nodePoolConfig(BareMetalNodePoolNodePoolConfigArgs.builder()
 *                 .operatingSystem("LINUX")
 *                 .nodeConfigs(BareMetalNodePoolNodePoolConfigNodeConfigArgs.builder()
 *                     .nodeIp("10.200.0.11")
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   default-basic:
 *     type: gcp:gkeonprem:BareMetalCluster
 *     properties:
 *       name: my-cluster
 *       location: us-west1
 *       adminClusterMembership: projects/870316890899/locations/global/memberships/gkeonprem-terraform-test
 *       bareMetalVersion: 1.12.3
 *       networkConfig:
 *         islandModeCidr:
 *           serviceAddressCidrBlocks:
 *             - 172.26.0.0/16
 *           podAddressCidrBlocks:
 *             - 10.240.0.0/13
 *       controlPlane:
 *         controlPlaneNodePoolConfig:
 *           nodePoolConfig:
 *             labels: {}
 *             operatingSystem: LINUX
 *             nodeConfigs:
 *               - labels: {}
 *                 nodeIp: 10.200.0.9
 *       loadBalancer:
 *         portConfig:
 *           controlPlaneLoadBalancerPort: 443
 *         vipConfig:
 *           controlPlaneVip: 10.200.0.13
 *           ingressVip: 10.200.0.14
 *         metalLbConfig:
 *           addressPools:
 *             - pool: pool1
 *               addresses:
 *                 - 10.200.0.14/32
 *                 - 10.200.0.15/32
 *                 - 10.200.0.16/32
 *                 - 10.200.0.17/32
 *                 - 10.200.0.18/32
 *                 - fd00:1::f/128
 *                 - fd00:1::10/128
 *                 - fd00:1::11/128
 *                 - fd00:1::12/128
 *       storage:
 *         lvpShareConfig:
 *           lvpConfig:
 *             path: /mnt/localpv-share
 *             storageClass: local-shared
 *           sharedPathPvCount: 5
 *         lvpNodeMountsConfig:
 *           path: /mnt/localpv-disk
 *           storageClass: local-disks
 *       securityConfig:
 *         authorization:
 *           adminUsers:
 *             - username: [email protected]
 *   nodepool-basic:
 *     type: gcp:gkeonprem:BareMetalNodePool
 *     properties:
 *       name: my-nodepool
 *       bareMetalCluster: ${["default-basic"].name}
 *       location: us-west1
 *       nodePoolConfig:
 *         operatingSystem: LINUX
 *         nodeConfigs:
 *           - nodeIp: 10.200.0.11
 * ```
 * 
 * ### Gkeonprem Bare Metal Node Pool Full
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const default_full = new gcp.gkeonprem.BareMetalCluster("default-full", {
 *     name: "my-cluster",
 *     location: "us-west1",
 *     adminClusterMembership: "projects/870316890899/locations/global/memberships/gkeonprem-terraform-test",
 *     bareMetalVersion: "1.12.3",
 *     networkConfig: {
 *         islandModeCidr: {
 *             serviceAddressCidrBlocks: ["172.26.0.0/16"],
 *             podAddressCidrBlocks: ["10.240.0.0/13"],
 *         },
 *     },
 *     controlPlane: {
 *         controlPlaneNodePoolConfig: {
 *             nodePoolConfig: {
 *                 labels: {},
 *                 operatingSystem: "LINUX",
 *                 nodeConfigs: [{
 *                     labels: {},
 *                     nodeIp: "10.200.0.9",
 *                 }],
 *             },
 *         },
 *     },
 *     loadBalancer: {
 *         portConfig: {
 *             controlPlaneLoadBalancerPort: 443,
 *         },
 *         vipConfig: {
 *             controlPlaneVip: "10.200.0.13",
 *             ingressVip: "10.200.0.14",
 *         },
 *         metalLbConfig: {
 *             addressPools: [{
 *                 pool: "pool1",
 *                 addresses: [
 *                     "10.200.0.14/32",
 *                     "10.200.0.15/32",
 *                     "10.200.0.16/32",
 *                     "10.200.0.17/32",
 *                     "10.200.0.18/32",
 *                     "fd00:1::f/128",
 *                     "fd00:1::10/128",
 *                     "fd00:1::11/128",
 *                     "fd00:1::12/128",
 *                 ],
 *             }],
 *         },
 *     },
 *     storage: {
 *         lvpShareConfig: {
 *             lvpConfig: {
 *                 path: "/mnt/localpv-share",
 *                 storageClass: "local-shared",
 *             },
 *             sharedPathPvCount: 5,
 *         },
 *         lvpNodeMountsConfig: {
 *             path: "/mnt/localpv-disk",
 *             storageClass: "local-disks",
 *         },
 *     },
 *     securityConfig: {
 *         authorization: {
 *             adminUsers: [{
 *                 username: "[email protected]",
 *             }],
 *         },
 *     },
 * });
 * const nodepool_full = new gcp.gkeonprem.BareMetalNodePool("nodepool-full", {
 *     name: "my-nodepool",
 *     displayName: "test-name",
 *     bareMetalCluster: default_full.name,
 *     location: "us-west1",
 *     annotations: {},
 *     nodePoolConfig: {
 *         operatingSystem: "LINUX",
 *         labels: {},
 *         nodeConfigs: [{
 *             nodeIp: "10.200.0.11",
 *             labels: {},
 *         }],
 *         taints: [{
 *             key: "test-key",
 *             value: "test-value",
 *             effect: "NO_EXECUTE",
 *         }],
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * default_full = gcp.gkeonprem.BareMetalCluster("default-full",
 *     name="my-cluster",
 *     location="us-west1",
 *     admin_cluster_membership="projects/870316890899/locations/global/memberships/gkeonprem-terraform-test",
 *     bare_metal_version="1.12.3",
 *     network_config=gcp.gkeonprem.BareMetalClusterNetworkConfigArgs(
 *         island_mode_cidr=gcp.gkeonprem.BareMetalClusterNetworkConfigIslandModeCidrArgs(
 *             service_address_cidr_blocks=["172.26.0.0/16"],
 *             pod_address_cidr_blocks=["10.240.0.0/13"],
 *         ),
 *     ),
 *     control_plane=gcp.gkeonprem.BareMetalClusterControlPlaneArgs(
 *         control_plane_node_pool_config=gcp.gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs(
 *             node_pool_config=gcp.gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs(
 *                 labels={},
 *                 operating_system="LINUX",
 *                 node_configs=[gcp.gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs(
 *                     labels={},
 *                     node_ip="10.200.0.9",
 *                 )],
 *             ),
 *         ),
 *     ),
 *     load_balancer=gcp.gkeonprem.BareMetalClusterLoadBalancerArgs(
 *         port_config=gcp.gkeonprem.BareMetalClusterLoadBalancerPortConfigArgs(
 *             control_plane_load_balancer_port=443,
 *         ),
 *         vip_config=gcp.gkeonprem.BareMetalClusterLoadBalancerVipConfigArgs(
 *             control_plane_vip="10.200.0.13",
 *             ingress_vip="10.200.0.14",
 *         ),
 *         metal_lb_config=gcp.gkeonprem.BareMetalClusterLoadBalancerMetalLbConfigArgs(
 *             address_pools=[gcp.gkeonprem.BareMetalClusterLoadBalancerMetalLbConfigAddressPoolArgs(
 *                 pool="pool1",
 *                 addresses=[
 *                     "10.200.0.14/32",
 *                     "10.200.0.15/32",
 *                     "10.200.0.16/32",
 *                     "10.200.0.17/32",
 *                     "10.200.0.18/32",
 *                     "fd00:1::f/128",
 *                     "fd00:1::10/128",
 *                     "fd00:1::11/128",
 *                     "fd00:1::12/128",
 *                 ],
 *             )],
 *         ),
 *     ),
 *     storage=gcp.gkeonprem.BareMetalClusterStorageArgs(
 *         lvp_share_config=gcp.gkeonprem.BareMetalClusterStorageLvpShareConfigArgs(
 *             lvp_config=gcp.gkeonprem.BareMetalClusterStorageLvpShareConfigLvpConfigArgs(
 *                 path="/mnt/localpv-share",
 *                 storage_class="local-shared",
 *             ),
 *             shared_path_pv_count=5,
 *         ),
 *         lvp_node_mounts_config=gcp.gkeonprem.BareMetalClusterStorageLvpNodeMountsConfigArgs(
 *             path="/mnt/localpv-disk",
 *             storage_class="local-disks",
 *         ),
 *     ),
 *     security_config=gcp.gkeonprem.BareMetalClusterSecurityConfigArgs(
 *         authorization=gcp.gkeonprem.BareMetalClusterSecurityConfigAuthorizationArgs(
 *             admin_users=[gcp.gkeonprem.BareMetalClusterSecurityConfigAuthorizationAdminUserArgs(
 *                 username="[email protected]",
 *             )],
 *         ),
 *     ))
 * nodepool_full = gcp.gkeonprem.BareMetalNodePool("nodepool-full",
 *     name="my-nodepool",
 *     display_name="test-name",
 *     bare_metal_cluster=default_full.name,
 *     location="us-west1",
 *     annotations={},
 *     node_pool_config=gcp.gkeonprem.BareMetalNodePoolNodePoolConfigArgs(
 *         operating_system="LINUX",
 *         labels={},
 *         node_configs=[gcp.gkeonprem.BareMetalNodePoolNodePoolConfigNodeConfigArgs(
 *             node_ip="10.200.0.11",
 *             labels={},
 *         )],
 *         taints=[gcp.gkeonprem.BareMetalNodePoolNodePoolConfigTaintArgs(
 *             key="test-key",
 *             value="test-value",
 *             effect="NO_EXECUTE",
 *         )],
 *     ))
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var default_full = new Gcp.GkeOnPrem.BareMetalCluster("default-full", new()
 *     {
 *         Name = "my-cluster",
 *         Location = "us-west1",
 *         AdminClusterMembership = "projects/870316890899/locations/global/memberships/gkeonprem-terraform-test",
 *         BareMetalVersion = "1.12.3",
 *         NetworkConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterNetworkConfigArgs
 *         {
 *             IslandModeCidr = new Gcp.GkeOnPrem.Inputs.BareMetalClusterNetworkConfigIslandModeCidrArgs
 *             {
 *                 ServiceAddressCidrBlocks = new[]
 *                 {
 *                     "172.26.0.0/16",
 *                 },
 *                 PodAddressCidrBlocks = new[]
 *                 {
 *                     "10.240.0.0/13",
 *                 },
 *             },
 *         },
 *         ControlPlane = new Gcp.GkeOnPrem.Inputs.BareMetalClusterControlPlaneArgs
 *         {
 *             ControlPlaneNodePoolConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs
 *             {
 *                 NodePoolConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs
 *                 {
 *                     Labels = null,
 *                     OperatingSystem = "LINUX",
 *                     NodeConfigs = new[]
 *                     {
 *                         new Gcp.GkeOnPrem.Inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs
 *                         {
 *                             Labels = null,
 *                             NodeIp = "10.200.0.9",
 *                         },
 *                     },
 *                 },
 *             },
 *         },
 *         LoadBalancer = new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerArgs
 *         {
 *             PortConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerPortConfigArgs
 *             {
 *                 ControlPlaneLoadBalancerPort = 443,
 *             },
 *             VipConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerVipConfigArgs
 *             {
 *                 ControlPlaneVip = "10.200.0.13",
 *                 IngressVip = "10.200.0.14",
 *             },
 *             MetalLbConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerMetalLbConfigArgs
 *             {
 *                 AddressPools = new[]
 *                 {
 *                     new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerMetalLbConfigAddressPoolArgs
 *                     {
 *                         Pool = "pool1",
 *                         Addresses = new[]
 *                         {
 *                             "10.200.0.14/32",
 *                             "10.200.0.15/32",
 *                             "10.200.0.16/32",
 *                             "10.200.0.17/32",
 *                             "10.200.0.18/32",
 *                             "fd00:1::f/128",
 *                             "fd00:1::10/128",
 *                             "fd00:1::11/128",
 *                             "fd00:1::12/128",
 *                         },
 *                     },
 *                 },
 *             },
 *         },
 *         Storage = new Gcp.GkeOnPrem.Inputs.BareMetalClusterStorageArgs
 *         {
 *             LvpShareConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterStorageLvpShareConfigArgs
 *             {
 *                 LvpConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterStorageLvpShareConfigLvpConfigArgs
 *                 {
 *                     Path = "/mnt/localpv-share",
 *                     StorageClass = "local-shared",
 *                 },
 *                 SharedPathPvCount = 5,
 *             },
 *             LvpNodeMountsConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterStorageLvpNodeMountsConfigArgs
 *             {
 *                 Path = "/mnt/localpv-disk",
 *                 StorageClass = "local-disks",
 *             },
 *         },
 *         SecurityConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterSecurityConfigArgs
 *         {
 *             Authorization = new Gcp.GkeOnPrem.Inputs.BareMetalClusterSecurityConfigAuthorizationArgs
 *             {
 *                 AdminUsers = new[]
 *                 {
 *                     new Gcp.GkeOnPrem.Inputs.BareMetalClusterSecurityConfigAuthorizationAdminUserArgs
 *                     {
 *                         Username = "[email protected]",
 *                     },
 *                 },
 *             },
 *         },
 *     });
 *     var nodepool_full = new Gcp.GkeOnPrem.BareMetalNodePool("nodepool-full", new()
 *     {
 *         Name = "my-nodepool",
 *         DisplayName = "test-name",
 *         BareMetalCluster = default_full.Name,
 *         Location = "us-west1",
 *         Annotations = null,
 *         NodePoolConfig = new Gcp.GkeOnPrem.Inputs.BareMetalNodePoolNodePoolConfigArgs
 *         {
 *             OperatingSystem = "LINUX",
 *             Labels = null,
 *             NodeConfigs = new[]
 *             {
 *                 new Gcp.GkeOnPrem.Inputs.BareMetalNodePoolNodePoolConfigNodeConfigArgs
 *                 {
 *                     NodeIp = "10.200.0.11",
 *                     Labels = null,
 *                 },
 *             },
 *             Taints = new[]
 *             {
 *                 new Gcp.GkeOnPrem.Inputs.BareMetalNodePoolNodePoolConfigTaintArgs
 *                 {
 *                     Key = "test-key",
 *                     Value = "test-value",
 *                     Effect = "NO_EXECUTE",
 *                 },
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/gkeonprem"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := gkeonprem.NewBareMetalCluster(ctx, "default-full", &gkeonprem.BareMetalClusterArgs{
 * 			Name:                   pulumi.String("my-cluster"),
 * 			Location:               pulumi.String("us-west1"),
 * 			AdminClusterMembership: pulumi.String("projects/870316890899/locations/global/memberships/gkeonprem-terraform-test"),
 * 			BareMetalVersion:       pulumi.String("1.12.3"),
 * 			NetworkConfig: &gkeonprem.BareMetalClusterNetworkConfigArgs{
 * 				IslandModeCidr: &gkeonprem.BareMetalClusterNetworkConfigIslandModeCidrArgs{
 * 					ServiceAddressCidrBlocks: pulumi.StringArray{
 * 						pulumi.String("172.26.0.0/16"),
 * 					},
 * 					PodAddressCidrBlocks: pulumi.StringArray{
 * 						pulumi.String("10.240.0.0/13"),
 * 					},
 * 				},
 * 			},
 * 			ControlPlane: &gkeonprem.BareMetalClusterControlPlaneArgs{
 * 				ControlPlaneNodePoolConfig: &gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs{
 * 					NodePoolConfig: &gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs{
 * 						Labels:          nil,
 * 						OperatingSystem: pulumi.String("LINUX"),
 * 						NodeConfigs: gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArray{
 * 							&gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs{
 * 								Labels: nil,
 * 								NodeIp: pulumi.String("10.200.0.9"),
 * 							},
 * 						},
 * 					},
 * 				},
 * 			},
 * 			LoadBalancer: &gkeonprem.BareMetalClusterLoadBalancerArgs{
 * 				PortConfig: &gkeonprem.BareMetalClusterLoadBalancerPortConfigArgs{
 * 					ControlPlaneLoadBalancerPort: pulumi.Int(443),
 * 				},
 * 				VipConfig: &gkeonprem.BareMetalClusterLoadBalancerVipConfigArgs{
 * 					ControlPlaneVip: pulumi.String("10.200.0.13"),
 * 					IngressVip:      pulumi.String("10.200.0.14"),
 * 				},
 * 				MetalLbConfig: &gkeonprem.BareMetalClusterLoadBalancerMetalLbConfigArgs{
 * 					AddressPools: gkeonprem.BareMetalClusterLoadBalancerMetalLbConfigAddressPoolArray{
 * 						&gkeonprem.BareMetalClusterLoadBalancerMetalLbConfigAddressPoolArgs{
 * 							Pool: pulumi.String("pool1"),
 * 							Addresses: pulumi.StringArray{
 * 								pulumi.String("10.200.0.14/32"),
 * 								pulumi.String("10.200.0.15/32"),
 * 								pulumi.String("10.200.0.16/32"),
 * 								pulumi.String("10.200.0.17/32"),
 * 								pulumi.String("10.200.0.18/32"),
 * 								pulumi.String("fd00:1::f/128"),
 * 								pulumi.String("fd00:1::10/128"),
 * 								pulumi.String("fd00:1::11/128"),
 * 								pulumi.String("fd00:1::12/128"),
 * 							},
 * 						},
 * 					},
 * 				},
 * 			},
 * 			Storage: &gkeonprem.BareMetalClusterStorageArgs{
 * 				LvpShareConfig: &gkeonprem.BareMetalClusterStorageLvpShareConfigArgs{
 * 					LvpConfig: &gkeonprem.BareMetalClusterStorageLvpShareConfigLvpConfigArgs{
 * 						Path:         pulumi.String("/mnt/localpv-share"),
 * 						StorageClass: pulumi.String("local-shared"),
 * 					},
 * 					SharedPathPvCount: pulumi.Int(5),
 * 				},
 * 				LvpNodeMountsConfig: &gkeonprem.BareMetalClusterStorageLvpNodeMountsConfigArgs{
 * 					Path:         pulumi.String("/mnt/localpv-disk"),
 * 					StorageClass: pulumi.String("local-disks"),
 * 				},
 * 			},
 * 			SecurityConfig: &gkeonprem.BareMetalClusterSecurityConfigArgs{
 * 				Authorization: &gkeonprem.BareMetalClusterSecurityConfigAuthorizationArgs{
 * 					AdminUsers: gkeonprem.BareMetalClusterSecurityConfigAuthorizationAdminUserArray{
 * 						&gkeonprem.BareMetalClusterSecurityConfigAuthorizationAdminUserArgs{
 * 							Username: pulumi.String("[email protected]"),
 * 						},
 * 					},
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = gkeonprem.NewBareMetalNodePool(ctx, "nodepool-full", &gkeonprem.BareMetalNodePoolArgs{
 * 			Name:             pulumi.String("my-nodepool"),
 * 			DisplayName:      pulumi.String("test-name"),
 * 			BareMetalCluster: default_full.Name,
 * 			Location:         pulumi.String("us-west1"),
 * 			Annotations:      nil,
 * 			NodePoolConfig: &gkeonprem.BareMetalNodePoolNodePoolConfigArgs{
 * 				OperatingSystem: pulumi.String("LINUX"),
 * 				Labels:          nil,
 * 				NodeConfigs: gkeonprem.BareMetalNodePoolNodePoolConfigNodeConfigArray{
 * 					&gkeonprem.BareMetalNodePoolNodePoolConfigNodeConfigArgs{
 * 						NodeIp: pulumi.String("10.200.0.11"),
 * 						Labels: nil,
 * 					},
 * 				},
 * 				Taints: gkeonprem.BareMetalNodePoolNodePoolConfigTaintArray{
 * 					&gkeonprem.BareMetalNodePoolNodePoolConfigTaintArgs{
 * 						Key:    pulumi.String("test-key"),
 * 						Value:  pulumi.String("test-value"),
 * 						Effect: pulumi.String("NO_EXECUTE"),
 * 					},
 * 				},
 * 			},
 * 		})
 * 		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.gkeonprem.BareMetalCluster;
 * import com.pulumi.gcp.gkeonprem.BareMetalClusterArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterNetworkConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterNetworkConfigIslandModeCidrArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterControlPlaneArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerPortConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerVipConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerMetalLbConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterStorageArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterStorageLvpShareConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterStorageLvpShareConfigLvpConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterStorageLvpNodeMountsConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterSecurityConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterSecurityConfigAuthorizationArgs;
 * import com.pulumi.gcp.gkeonprem.BareMetalNodePool;
 * import com.pulumi.gcp.gkeonprem.BareMetalNodePoolArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalNodePoolNodePoolConfigArgs;
 * 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 default_full = new BareMetalCluster("default-full", BareMetalClusterArgs.builder()
 *             .name("my-cluster")
 *             .location("us-west1")
 *             .adminClusterMembership("projects/870316890899/locations/global/memberships/gkeonprem-terraform-test")
 *             .bareMetalVersion("1.12.3")
 *             .networkConfig(BareMetalClusterNetworkConfigArgs.builder()
 *                 .islandModeCidr(BareMetalClusterNetworkConfigIslandModeCidrArgs.builder()
 *                     .serviceAddressCidrBlocks("172.26.0.0/16")
 *                     .podAddressCidrBlocks("10.240.0.0/13")
 *                     .build())
 *                 .build())
 *             .controlPlane(BareMetalClusterControlPlaneArgs.builder()
 *                 .controlPlaneNodePoolConfig(BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs.builder()
 *                     .nodePoolConfig(BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs.builder()
 *                         .labels()
 *                         .operatingSystem("LINUX")
 *                         .nodeConfigs(BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs.builder()
 *                             .labels()
 *                             .nodeIp("10.200.0.9")
 *                             .build())
 *                         .build())
 *                     .build())
 *                 .build())
 *             .loadBalancer(BareMetalClusterLoadBalancerArgs.builder()
 *                 .portConfig(BareMetalClusterLoadBalancerPortConfigArgs.builder()
 *                     .controlPlaneLoadBalancerPort(443)
 *                     .build())
 *                 .vipConfig(BareMetalClusterLoadBalancerVipConfigArgs.builder()
 *                     .controlPlaneVip("10.200.0.13")
 *                     .ingressVip("10.200.0.14")
 *                     .build())
 *                 .metalLbConfig(BareMetalClusterLoadBalancerMetalLbConfigArgs.builder()
 *                     .addressPools(BareMetalClusterLoadBalancerMetalLbConfigAddressPoolArgs.builder()
 *                         .pool("pool1")
 *                         .addresses(
 *                             "10.200.0.14/32",
 *                             "10.200.0.15/32",
 *                             "10.200.0.16/32",
 *                             "10.200.0.17/32",
 *                             "10.200.0.18/32",
 *                             "fd00:1::f/128",
 *                             "fd00:1::10/128",
 *                             "fd00:1::11/128",
 *                             "fd00:1::12/128")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .storage(BareMetalClusterStorageArgs.builder()
 *                 .lvpShareConfig(BareMetalClusterStorageLvpShareConfigArgs.builder()
 *                     .lvpConfig(BareMetalClusterStorageLvpShareConfigLvpConfigArgs.builder()
 *                         .path("/mnt/localpv-share")
 *                         .storageClass("local-shared")
 *                         .build())
 *                     .sharedPathPvCount(5)
 *                     .build())
 *                 .lvpNodeMountsConfig(BareMetalClusterStorageLvpNodeMountsConfigArgs.builder()
 *                     .path("/mnt/localpv-disk")
 *                     .storageClass("local-disks")
 *                     .build())
 *                 .build())
 *             .securityConfig(BareMetalClusterSecurityConfigArgs.builder()
 *                 .authorization(BareMetalClusterSecurityConfigAuthorizationArgs.builder()
 *                     .adminUsers(BareMetalClusterSecurityConfigAuthorizationAdminUserArgs.builder()
 *                         .username("[email protected]")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .build());
 *         var nodepool_full = new BareMetalNodePool("nodepool-full", BareMetalNodePoolArgs.builder()
 *             .name("my-nodepool")
 *             .displayName("test-name")
 *             .bareMetalCluster(default_full.name())
 *             .location("us-west1")
 *             .annotations()
 *             .nodePoolConfig(BareMetalNodePoolNodePoolConfigArgs.builder()
 *                 .operatingSystem("LINUX")
 *                 .labels()
 *                 .nodeConfigs(BareMetalNodePoolNodePoolConfigNodeConfigArgs.builder()
 *                     .nodeIp("10.200.0.11")
 *                     .labels()
 *                     .build())
 *                 .taints(BareMetalNodePoolNodePoolConfigTaintArgs.builder()
 *                     .key("test-key")
 *                     .value("test-value")
 *                     .effect("NO_EXECUTE")
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   default-full:
 *     type: gcp:gkeonprem:BareMetalCluster
 *     properties:
 *       name: my-cluster
 *       location: us-west1
 *       adminClusterMembership: projects/870316890899/locations/global/memberships/gkeonprem-terraform-test
 *       bareMetalVersion: 1.12.3
 *       networkConfig:
 *         islandModeCidr:
 *           serviceAddressCidrBlocks:
 *             - 172.26.0.0/16
 *           podAddressCidrBlocks:
 *             - 10.240.0.0/13
 *       controlPlane:
 *         controlPlaneNodePoolConfig:
 *           nodePoolConfig:
 *             labels: {}
 *             operatingSystem: LINUX
 *             nodeConfigs:
 *               - labels: {}
 *                 nodeIp: 10.200.0.9
 *       loadBalancer:
 *         portConfig:
 *           controlPlaneLoadBalancerPort: 443
 *         vipConfig:
 *           controlPlaneVip: 10.200.0.13
 *           ingressVip: 10.200.0.14
 *         metalLbConfig:
 *           addressPools:
 *             - pool: pool1
 *               addresses:
 *                 - 10.200.0.14/32
 *                 - 10.200.0.15/32
 *                 - 10.200.0.16/32
 *                 - 10.200.0.17/32
 *                 - 10.200.0.18/32
 *                 - fd00:1::f/128
 *                 - fd00:1::10/128
 *                 - fd00:1::11/128
 *                 - fd00:1::12/128
 *       storage:
 *         lvpShareConfig:
 *           lvpConfig:
 *             path: /mnt/localpv-share
 *             storageClass: local-shared
 *           sharedPathPvCount: 5
 *         lvpNodeMountsConfig:
 *           path: /mnt/localpv-disk
 *           storageClass: local-disks
 *       securityConfig:
 *         authorization:
 *           adminUsers:
 *             - username: [email protected]
 *   nodepool-full:
 *     type: gcp:gkeonprem:BareMetalNodePool
 *     properties:
 *       name: my-nodepool
 *       displayName: test-name
 *       bareMetalCluster: ${["default-full"].name}
 *       location: us-west1
 *       annotations: {}
 *       nodePoolConfig:
 *         operatingSystem: LINUX
 *         labels: {}
 *         nodeConfigs:
 *           - nodeIp: 10.200.0.11
 *             labels: {}
 *         taints:
 *           - key: test-key
 *             value: test-value
 *             effect: NO_EXECUTE
 * ```
 * 
 * ## Import
 * BareMetalNodePool can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{location}}/bareMetalClusters/{{bare_metal_cluster}}/bareMetalNodePools/{{name}}`
 * * `{{project}}/{{location}}/{{bare_metal_cluster}}/{{name}}`
 * * `{{location}}/{{bare_metal_cluster}}/{{name}}`
 * When using the `pulumi import` command, BareMetalNodePool can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:gkeonprem/bareMetalNodePool:BareMetalNodePool default projects/{{project}}/locations/{{location}}/bareMetalClusters/{{bare_metal_cluster}}/bareMetalNodePools/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:gkeonprem/bareMetalNodePool:BareMetalNodePool default {{project}}/{{location}}/{{bare_metal_cluster}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:gkeonprem/bareMetalNodePool:BareMetalNodePool default {{location}}/{{bare_metal_cluster}}/{{name}}
 * ```
 */
public class BareMetalNodePool internal constructor(
    override val javaResource: com.pulumi.gcp.gkeonprem.BareMetalNodePool,
) : KotlinCustomResource(javaResource, BareMetalNodePoolMapper) {
    /**
     * Annotations on the Bare Metal Node Pool. This field has the same restrictions as Kubernetes annotations. The total size
     * of all keys and values combined is limited to 256k. Key can have 2 segments: prefix (optional) and name (required),
     * separated by a slash (/). Prefix must be a DNS subdomain. Name must be 63 characters or less, begin and end with
     * alphanumerics, with dashes (-), underscores (_), dots (.), and alphanumerics between. **Note**: This field is
     * non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field
     * 'effective_annotations' for all of the annotations present on the resource.
     */
    public val annotations: Output>?
        get() = javaResource.annotations().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap()
            }).orElse(null)
        })

    /**
     * The cluster this node pool belongs to.
     */
    public val bareMetalCluster: Output
        get() = javaResource.bareMetalCluster().applyValue({ args0 -> args0 })

    /**
     * The time the cluster was created, in RFC3339 text format.
     */
    public val createTime: Output
        get() = javaResource.createTime().applyValue({ args0 -> args0 })

    /**
     * The time the cluster was deleted, in RFC3339 text format.
     */
    public val deleteTime: Output
        get() = javaResource.deleteTime().applyValue({ args0 -> args0 })

    /**
     * The display name for the Bare Metal Node Pool.
     */
    public val displayName: Output?
        get() = javaResource.displayName().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    public val effectiveAnnotations: Output>
        get() = javaResource.effectiveAnnotations().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.key.to(args0.value)
            }).toMap()
        })

    /**
     * This checksum is computed by the server based on the value of other
     * fields, and may be sent on update and delete requests to ensure the
     * client has an up-to-date value before proceeding.
     * Allows clients to perform consistent read-modify-writes
     * through optimistic concurrency control.
     */
    public val etag: Output
        get() = javaResource.etag().applyValue({ args0 -> args0 })

    /**
     * The location of the resource.
     */
    public val location: Output
        get() = javaResource.location().applyValue({ args0 -> args0 })

    /**
     * The bare metal node pool name.
     */
    public val name: Output
        get() = javaResource.name().applyValue({ args0 -> args0 })

    /**
     * Node pool configuration.
     * Structure is documented below.
     */
    public val nodePoolConfig: Output
        get() = javaResource.nodePoolConfig().applyValue({ args0 ->
            args0.let({ args0 ->
                bareMetalNodePoolNodePoolConfigToKotlin(args0)
            })
        })

    public val project: Output
        get() = javaResource.project().applyValue({ args0 -> args0 })

    /**
     * If set, there are currently changes in flight to the Bare Metal User Cluster.
     */
    public val reconciling: Output
        get() = javaResource.reconciling().applyValue({ args0 -> args0 })

    /**
     * (Output)
     * The lifecycle state of the condition.
     */
    public val state: Output
        get() = javaResource.state().applyValue({ args0 -> args0 })

    /**
     * Specifies detailed node pool status.
     * Structure is documented below.
     */
    public val statuses: Output>
        get() = javaResource.statuses().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    bareMetalNodePoolStatusToKotlin(args0)
                })
            })
        })

    /**
     * The unique identifier of the Bare Metal Node Pool.
     */
    public val uid: Output
        get() = javaResource.uid().applyValue({ args0 -> args0 })

    /**
     * The time the cluster was last updated, in RFC3339 text format.
     */
    public val updateTime: Output
        get() = javaResource.updateTime().applyValue({ args0 -> args0 })
}

public object BareMetalNodePoolMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.gcp.gkeonprem.BareMetalNodePool::class == javaResource::class

    override fun map(javaResource: Resource): BareMetalNodePool = BareMetalNodePool(
        javaResource as
            com.pulumi.gcp.gkeonprem.BareMetalNodePool,
    )
}

/**
 * @see [BareMetalNodePool].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [BareMetalNodePool].
 */
public suspend fun bareMetalNodePool(
    name: String,
    block: suspend BareMetalNodePoolResourceBuilder.() -> Unit,
): BareMetalNodePool {
    val builder = BareMetalNodePoolResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [BareMetalNodePool].
 * @param name The _unique_ name of the resulting resource.
 */
public fun bareMetalNodePool(name: String): BareMetalNodePool {
    val builder = BareMetalNodePoolResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy