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

com.pulumi.gcp.gkeonprem.kotlin.BareMetalNodePoolArgs.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.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.gkeonprem.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkeonprem.BareMetalNodePoolArgs.builder
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalNodePoolNodePoolConfigArgs
import com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalNodePoolNodePoolConfigArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * 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={
 *         "island_mode_cidr": {
 *             "service_address_cidr_blocks": ["172.26.0.0/16"],
 *             "pod_address_cidr_blocks": ["10.240.0.0/13"],
 *         },
 *     },
 *     control_plane={
 *         "control_plane_node_pool_config": {
 *             "node_pool_config": {
 *                 "labels": {},
 *                 "operating_system": "LINUX",
 *                 "node_configs": [{
 *                     "labels": {},
 *                     "node_ip": "10.200.0.9",
 *                 }],
 *             },
 *         },
 *     },
 *     load_balancer={
 *         "port_config": {
 *             "control_plane_load_balancer_port": 443,
 *         },
 *         "vip_config": {
 *             "control_plane_vip": "10.200.0.13",
 *             "ingress_vip": "10.200.0.14",
 *         },
 *         "metal_lb_config": {
 *             "address_pools": [{
 *                 "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={
 *         "lvp_share_config": {
 *             "lvp_config": {
 *                 "path": "/mnt/localpv-share",
 *                 "storage_class": "local-shared",
 *             },
 *             "shared_path_pv_count": 5,
 *         },
 *         "lvp_node_mounts_config": {
 *             "path": "/mnt/localpv-disk",
 *             "storage_class": "local-disks",
 *         },
 *     },
 *     security_config={
 *         "authorization": {
 *             "admin_users": [{
 *                 "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={
 *         "operating_system": "LINUX",
 *         "node_configs": [{
 *             "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/v8/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:          pulumi.StringMap{},
 * 						OperatingSystem: pulumi.String("LINUX"),
 * 						NodeConfigs: gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArray{
 * 							&gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs{
 * 								Labels: pulumi.StringMap{},
 * 								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={
 *         "island_mode_cidr": {
 *             "service_address_cidr_blocks": ["172.26.0.0/16"],
 *             "pod_address_cidr_blocks": ["10.240.0.0/13"],
 *         },
 *     },
 *     control_plane={
 *         "control_plane_node_pool_config": {
 *             "node_pool_config": {
 *                 "labels": {},
 *                 "operating_system": "LINUX",
 *                 "node_configs": [{
 *                     "labels": {},
 *                     "node_ip": "10.200.0.9",
 *                 }],
 *             },
 *         },
 *     },
 *     load_balancer={
 *         "port_config": {
 *             "control_plane_load_balancer_port": 443,
 *         },
 *         "vip_config": {
 *             "control_plane_vip": "10.200.0.13",
 *             "ingress_vip": "10.200.0.14",
 *         },
 *         "metal_lb_config": {
 *             "address_pools": [{
 *                 "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={
 *         "lvp_share_config": {
 *             "lvp_config": {
 *                 "path": "/mnt/localpv-share",
 *                 "storage_class": "local-shared",
 *             },
 *             "shared_path_pv_count": 5,
 *         },
 *         "lvp_node_mounts_config": {
 *             "path": "/mnt/localpv-disk",
 *             "storage_class": "local-disks",
 *         },
 *     },
 *     security_config={
 *         "authorization": {
 *             "admin_users": [{
 *                 "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={
 *         "operating_system": "LINUX",
 *         "labels": {},
 *         "node_configs": [{
 *             "node_ip": "10.200.0.11",
 *             "labels": {},
 *         }],
 *         "taints": [{
 *             "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/v8/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:          pulumi.StringMap{},
 * 						OperatingSystem: pulumi.String("LINUX"),
 * 						NodeConfigs: gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArray{
 * 							&gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs{
 * 								Labels: pulumi.StringMap{},
 * 								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:      pulumi.StringMap{},
 * 			NodePoolConfig: &gkeonprem.BareMetalNodePoolNodePoolConfigArgs{
 * 				OperatingSystem: pulumi.String("LINUX"),
 * 				Labels:          pulumi.StringMap{},
 * 				NodeConfigs: gkeonprem.BareMetalNodePoolNodePoolConfigNodeConfigArray{
 * 					&gkeonprem.BareMetalNodePoolNodePoolConfigNodeConfigArgs{
 * 						NodeIp: pulumi.String("10.200.0.11"),
 * 						Labels: pulumi.StringMap{},
 * 					},
 * 				},
 * 				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}}
 * ```
 * @property annotations 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.
 * @property bareMetalCluster The cluster this node pool belongs to.
 * @property displayName The display name for the Bare Metal Node Pool.
 * @property location The location of the resource.
 * @property name The bare metal node pool name.
 * @property nodePoolConfig Node pool configuration.
 * Structure is documented below.
 * @property project
 */
public data class BareMetalNodePoolArgs(
    public val annotations: Output>? = null,
    public val bareMetalCluster: Output? = null,
    public val displayName: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val nodePoolConfig: Output? = null,
    public val project: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.BareMetalNodePoolArgs =
        com.pulumi.gcp.gkeonprem.BareMetalNodePoolArgs.builder()
            .annotations(
                annotations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .bareMetalCluster(bareMetalCluster?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .nodePoolConfig(nodePoolConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .project(project?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BareMetalNodePoolArgs].
 */
@PulumiTagMarker
public class BareMetalNodePoolArgsBuilder internal constructor() {
    private var annotations: Output>? = null

    private var bareMetalCluster: Output? = null

    private var displayName: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var nodePoolConfig: Output? = null

    private var project: Output? = null

    /**
     * @param value 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.
     */
    @JvmName("txavuqekgebxdort")
    public suspend fun annotations(`value`: Output>) {
        this.annotations = value
    }

    /**
     * @param value The cluster this node pool belongs to.
     */
    @JvmName("ltppmmieyvqcyyjj")
    public suspend fun bareMetalCluster(`value`: Output) {
        this.bareMetalCluster = value
    }

    /**
     * @param value The display name for the Bare Metal Node Pool.
     */
    @JvmName("gusdfurrdkpopfuy")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value The location of the resource.
     */
    @JvmName("auivfgopoduicsgk")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The bare metal node pool name.
     */
    @JvmName("xjtdpbpybgrqebxx")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Node pool configuration.
     * Structure is documented below.
     */
    @JvmName("gxvveebmshfqprme")
    public suspend fun nodePoolConfig(`value`: Output) {
        this.nodePoolConfig = value
    }

    /**
     * @param value
     */
    @JvmName("mejqaovvlxplkmpy")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value 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.
     */
    @JvmName("ahtcyhhgatwwysmx")
    public suspend fun annotations(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.annotations = mapped
    }

    /**
     * @param values 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.
     */
    @JvmName("qwdrrjgdiukrvirl")
    public fun annotations(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.annotations = mapped
    }

    /**
     * @param value The cluster this node pool belongs to.
     */
    @JvmName("yyolwwmjkujjthru")
    public suspend fun bareMetalCluster(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bareMetalCluster = mapped
    }

    /**
     * @param value The display name for the Bare Metal Node Pool.
     */
    @JvmName("myrsvlqnpgnwgwjb")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value The location of the resource.
     */
    @JvmName("fgdvrjnqhhcmounw")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The bare metal node pool name.
     */
    @JvmName("foyyjsvqkyloljyy")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Node pool configuration.
     * Structure is documented below.
     */
    @JvmName("fhovaqwfcbaweqwm")
    public suspend fun nodePoolConfig(`value`: BareMetalNodePoolNodePoolConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodePoolConfig = mapped
    }

    /**
     * @param argument Node pool configuration.
     * Structure is documented below.
     */
    @JvmName("beaynievoukcwkkg")
    public suspend fun nodePoolConfig(argument: suspend BareMetalNodePoolNodePoolConfigArgsBuilder.() -> Unit) {
        val toBeMapped = BareMetalNodePoolNodePoolConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.nodePoolConfig = mapped
    }

    /**
     * @param value
     */
    @JvmName("nwflymnvslgjlyrl")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    internal fun build(): BareMetalNodePoolArgs = BareMetalNodePoolArgs(
        annotations = annotations,
        bareMetalCluster = bareMetalCluster,
        displayName = displayName,
        location = location,
        name = name,
        nodePoolConfig = nodePoolConfig,
        project = project,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy