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

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

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.gkeonprem.kotlin

import com.pulumi.core.Output
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterBinaryAuthorization
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterClusterOperations
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterControlPlane
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterFleet
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterLoadBalancer
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterMaintenanceConfig
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterNetworkConfig
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterNodeAccessConfig
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterNodeConfig
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterOsEnvironmentConfig
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterProxy
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterSecurityConfig
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterStatus
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterStorage
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterUpgradePolicy
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterValidationCheck
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.BareMetalClusterBinaryAuthorization.Companion.toKotlin as bareMetalClusterBinaryAuthorizationToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterClusterOperations.Companion.toKotlin as bareMetalClusterClusterOperationsToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterControlPlane.Companion.toKotlin as bareMetalClusterControlPlaneToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterFleet.Companion.toKotlin as bareMetalClusterFleetToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterLoadBalancer.Companion.toKotlin as bareMetalClusterLoadBalancerToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterMaintenanceConfig.Companion.toKotlin as bareMetalClusterMaintenanceConfigToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterNetworkConfig.Companion.toKotlin as bareMetalClusterNetworkConfigToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterNodeAccessConfig.Companion.toKotlin as bareMetalClusterNodeAccessConfigToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterNodeConfig.Companion.toKotlin as bareMetalClusterNodeConfigToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterOsEnvironmentConfig.Companion.toKotlin as bareMetalClusterOsEnvironmentConfigToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterProxy.Companion.toKotlin as bareMetalClusterProxyToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterSecurityConfig.Companion.toKotlin as bareMetalClusterSecurityConfigToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterStatus.Companion.toKotlin as bareMetalClusterStatusToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterStorage.Companion.toKotlin as bareMetalClusterStorageToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterUpgradePolicy.Companion.toKotlin as bareMetalClusterUpgradePolicyToKotlin
import com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterValidationCheck.Companion.toKotlin as bareMetalClusterValidationCheckToKotlin

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

    public var args: BareMetalClusterArgs = BareMetalClusterArgs()

    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 BareMetalClusterArgsBuilder.() -> Unit) {
        val builder = BareMetalClusterArgsBuilder()
        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(): BareMetalCluster {
        val builtJavaResource = com.pulumi.gcp.gkeonprem.BareMetalCluster(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return BareMetalCluster(builtJavaResource)
    }
}

/**
 * A Google Bare Metal User Cluster.
 * ## Example Usage
 * ### Gkeonprem Bare Metal Cluster Basic
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const cluster_basic = new gcp.gkeonprem.BareMetalCluster("cluster-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",
 *                 ],
 *                 avoidBuggyIps: true,
 *                 manualAssign: true,
 *             }],
 *         },
 *     },
 *     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]",
 *             }],
 *         },
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * cluster_basic = gcp.gkeonprem.BareMetalCluster("cluster-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",
 *                 ],
 *                 "avoid_buggy_ips": True,
 *                 "manual_assign": True,
 *             }],
 *         },
 *     },
 *     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]",
 *             }],
 *         },
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var cluster_basic = new Gcp.GkeOnPrem.BareMetalCluster("cluster-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",
 *                         },
 *                         AvoidBuggyIps = true,
 *                         ManualAssign = true,
 *                     },
 *                 },
 *             },
 *         },
 *         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]",
 *                     },
 *                 },
 *             },
 *         },
 *     });
 * });
 * ```
 * ```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, "cluster-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"),
 * 							},
 * 							AvoidBuggyIps: pulumi.Bool(true),
 * 							ManualAssign:  pulumi.Bool(true),
 * 						},
 * 					},
 * 				},
 * 			},
 * 			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
 * 		}
 * 		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 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 cluster_basic = new BareMetalCluster("cluster-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")
 *                         .avoidBuggyIps(true)
 *                         .manualAssign(true)
 *                         .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());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   cluster-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
 *               avoidBuggyIps: true
 *               manualAssign: true
 *       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]
 * ```
 * 
 * ### Gkeonprem Bare Metal Cluster Manuallb
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const cluster_manuallb = new gcp.gkeonprem.BareMetalCluster("cluster-manuallb", {
 *     name: "cluster-manuallb",
 *     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",
 *         },
 *         manualLbConfig: {
 *             enabled: true,
 *         },
 *     },
 *     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]",
 *             }],
 *         },
 *     },
 *     binaryAuthorization: {
 *         evaluationMode: "DISABLED",
 *     },
 *     upgradePolicy: {
 *         policy: "SERIAL",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * cluster_manuallb = gcp.gkeonprem.BareMetalCluster("cluster-manuallb",
 *     name="cluster-manuallb",
 *     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",
 *         },
 *         "manual_lb_config": {
 *             "enabled": True,
 *         },
 *     },
 *     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]",
 *             }],
 *         },
 *     },
 *     binary_authorization={
 *         "evaluation_mode": "DISABLED",
 *     },
 *     upgrade_policy={
 *         "policy": "SERIAL",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var cluster_manuallb = new Gcp.GkeOnPrem.BareMetalCluster("cluster-manuallb", new()
 *     {
 *         Name = "cluster-manuallb",
 *         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",
 *             },
 *             ManualLbConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerManualLbConfigArgs
 *             {
 *                 Enabled = true,
 *             },
 *         },
 *         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]",
 *                     },
 *                 },
 *             },
 *         },
 *         BinaryAuthorization = new Gcp.GkeOnPrem.Inputs.BareMetalClusterBinaryAuthorizationArgs
 *         {
 *             EvaluationMode = "DISABLED",
 *         },
 *         UpgradePolicy = new Gcp.GkeOnPrem.Inputs.BareMetalClusterUpgradePolicyArgs
 *         {
 *             Policy = "SERIAL",
 *         },
 *     });
 * });
 * ```
 * ```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, "cluster-manuallb", &gkeonprem.BareMetalClusterArgs{
 * 			Name:                   pulumi.String("cluster-manuallb"),
 * 			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"),
 * 				},
 * 				ManualLbConfig: &gkeonprem.BareMetalClusterLoadBalancerManualLbConfigArgs{
 * 					Enabled: pulumi.Bool(true),
 * 				},
 * 			},
 * 			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]"),
 * 						},
 * 					},
 * 				},
 * 			},
 * 			BinaryAuthorization: &gkeonprem.BareMetalClusterBinaryAuthorizationArgs{
 * 				EvaluationMode: pulumi.String("DISABLED"),
 * 			},
 * 			UpgradePolicy: &gkeonprem.BareMetalClusterUpgradePolicyArgs{
 * 				Policy: pulumi.String("SERIAL"),
 * 			},
 * 		})
 * 		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.BareMetalClusterLoadBalancerManualLbConfigArgs;
 * 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.inputs.BareMetalClusterBinaryAuthorizationArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterUpgradePolicyArgs;
 * 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 cluster_manuallb = new BareMetalCluster("cluster-manuallb", BareMetalClusterArgs.builder()
 *             .name("cluster-manuallb")
 *             .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())
 *                 .manualLbConfig(BareMetalClusterLoadBalancerManualLbConfigArgs.builder()
 *                     .enabled(true)
 *                     .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())
 *             .binaryAuthorization(BareMetalClusterBinaryAuthorizationArgs.builder()
 *                 .evaluationMode("DISABLED")
 *                 .build())
 *             .upgradePolicy(BareMetalClusterUpgradePolicyArgs.builder()
 *                 .policy("SERIAL")
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   cluster-manuallb:
 *     type: gcp:gkeonprem:BareMetalCluster
 *     properties:
 *       name: cluster-manuallb
 *       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
 *         manualLbConfig:
 *           enabled: true
 *       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]
 *       binaryAuthorization:
 *         evaluationMode: DISABLED
 *       upgradePolicy:
 *         policy: SERIAL
 * ```
 * 
 * ### Gkeonprem Bare Metal Cluster Bgplb
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const cluster_bgplb = new gcp.gkeonprem.BareMetalCluster("cluster-bgplb", {
 *     name: "cluster-bgplb",
 *     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"],
 *         },
 *         advancedNetworking: true,
 *         multipleNetworkInterfacesConfig: {
 *             enabled: true,
 *         },
 *         srIovConfig: {
 *             enabled: true,
 *         },
 *     },
 *     controlPlane: {
 *         controlPlaneNodePoolConfig: {
 *             nodePoolConfig: {
 *                 labels: {},
 *                 operatingSystem: "LINUX",
 *                 nodeConfigs: [{
 *                     labels: {},
 *                     nodeIp: "10.200.0.9",
 *                 }],
 *                 taints: [{
 *                     key: "test-key",
 *                     value: "test-value",
 *                     effect: "NO_EXECUTE",
 *                 }],
 *             },
 *         },
 *         apiServerArgs: [{
 *             argument: "test-argument",
 *             value: "test-value",
 *         }],
 *     },
 *     loadBalancer: {
 *         portConfig: {
 *             controlPlaneLoadBalancerPort: 443,
 *         },
 *         vipConfig: {
 *             controlPlaneVip: "10.200.0.13",
 *             ingressVip: "10.200.0.14",
 *         },
 *         bgpLbConfig: {
 *             asn: 123456,
 *             bgpPeerConfigs: [{
 *                 asn: 123457,
 *                 ipAddress: "10.0.0.1",
 *                 controlPlaneNodes: ["test-node"],
 *             }],
 *             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",
 *                 ],
 *             }],
 *             loadBalancerNodePoolConfig: {
 *                 nodePoolConfig: {
 *                     labels: {},
 *                     operatingSystem: "LINUX",
 *                     nodeConfigs: [{
 *                         labels: {},
 *                         nodeIp: "10.200.0.9",
 *                     }],
 *                     taints: [{
 *                         key: "test-key",
 *                         value: "test-value",
 *                         effect: "NO_EXECUTE",
 *                     }],
 *                     kubeletConfig: {
 *                         registryPullQps: 10,
 *                         registryBurst: 12,
 *                         serializeImagePullsDisabled: true,
 *                     },
 *                 },
 *             },
 *         },
 *     },
 *     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]",
 *             }],
 *         },
 *     },
 *     proxy: {
 *         uri: "http://test-domain/test",
 *         noProxies: ["127.0.0.1"],
 *     },
 *     clusterOperations: {
 *         enableApplicationLogs: true,
 *     },
 *     maintenanceConfig: {
 *         maintenanceAddressCidrBlocks: ["192.168.0.1/20"],
 *     },
 *     nodeConfig: {
 *         maxPodsPerNode: 10,
 *         containerRuntime: "CONTAINERD",
 *     },
 *     nodeAccessConfig: {
 *         loginUser: "[email protected]",
 *     },
 *     osEnvironmentConfig: {
 *         packageRepoExcluded: true,
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * cluster_bgplb = gcp.gkeonprem.BareMetalCluster("cluster-bgplb",
 *     name="cluster-bgplb",
 *     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"],
 *         },
 *         "advanced_networking": True,
 *         "multiple_network_interfaces_config": {
 *             "enabled": True,
 *         },
 *         "sr_iov_config": {
 *             "enabled": True,
 *         },
 *     },
 *     control_plane={
 *         "control_plane_node_pool_config": {
 *             "node_pool_config": {
 *                 "labels": {},
 *                 "operating_system": "LINUX",
 *                 "node_configs": [{
 *                     "labels": {},
 *                     "node_ip": "10.200.0.9",
 *                 }],
 *                 "taints": [{
 *                     "key": "test-key",
 *                     "value": "test-value",
 *                     "effect": "NO_EXECUTE",
 *                 }],
 *             },
 *         },
 *         "api_server_args": [{
 *             "argument": "test-argument",
 *             "value": "test-value",
 *         }],
 *     },
 *     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",
 *         },
 *         "bgp_lb_config": {
 *             "asn": 123456,
 *             "bgp_peer_configs": [{
 *                 "asn": 123457,
 *                 "ip_address": "10.0.0.1",
 *                 "control_plane_nodes": ["test-node"],
 *             }],
 *             "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",
 *                 ],
 *             }],
 *             "load_balancer_node_pool_config": {
 *                 "node_pool_config": {
 *                     "labels": {},
 *                     "operating_system": "LINUX",
 *                     "node_configs": [{
 *                         "labels": {},
 *                         "node_ip": "10.200.0.9",
 *                     }],
 *                     "taints": [{
 *                         "key": "test-key",
 *                         "value": "test-value",
 *                         "effect": "NO_EXECUTE",
 *                     }],
 *                     "kubelet_config": {
 *                         "registry_pull_qps": 10,
 *                         "registry_burst": 12,
 *                         "serialize_image_pulls_disabled": True,
 *                     },
 *                 },
 *             },
 *         },
 *     },
 *     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]",
 *             }],
 *         },
 *     },
 *     proxy={
 *         "uri": "http://test-domain/test",
 *         "no_proxies": ["127.0.0.1"],
 *     },
 *     cluster_operations={
 *         "enable_application_logs": True,
 *     },
 *     maintenance_config={
 *         "maintenance_address_cidr_blocks": ["192.168.0.1/20"],
 *     },
 *     node_config={
 *         "max_pods_per_node": 10,
 *         "container_runtime": "CONTAINERD",
 *     },
 *     node_access_config={
 *         "login_user": "[email protected]",
 *     },
 *     os_environment_config={
 *         "package_repo_excluded": True,
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var cluster_bgplb = new Gcp.GkeOnPrem.BareMetalCluster("cluster-bgplb", new()
 *     {
 *         Name = "cluster-bgplb",
 *         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",
 *                 },
 *             },
 *             AdvancedNetworking = true,
 *             MultipleNetworkInterfacesConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterNetworkConfigMultipleNetworkInterfacesConfigArgs
 *             {
 *                 Enabled = true,
 *             },
 *             SrIovConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterNetworkConfigSrIovConfigArgs
 *             {
 *                 Enabled = true,
 *             },
 *         },
 *         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",
 *                         },
 *                     },
 *                     Taints = new[]
 *                     {
 *                         new Gcp.GkeOnPrem.Inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaintArgs
 *                         {
 *                             Key = "test-key",
 *                             Value = "test-value",
 *                             Effect = "NO_EXECUTE",
 *                         },
 *                     },
 *                 },
 *             },
 *             ApiServerArgs = new[]
 *             {
 *                 new Gcp.GkeOnPrem.Inputs.BareMetalClusterControlPlaneApiServerArgArgs
 *                 {
 *                     Argument = "test-argument",
 *                     Value = "test-value",
 *                 },
 *             },
 *         },
 *         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",
 *             },
 *             BgpLbConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerBgpLbConfigArgs
 *             {
 *                 Asn = 123456,
 *                 BgpPeerConfigs = new[]
 *                 {
 *                     new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgs
 *                     {
 *                         Asn = 123457,
 *                         IpAddress = "10.0.0.1",
 *                         ControlPlaneNodes = new[]
 *                         {
 *                             "test-node",
 *                         },
 *                     },
 *                 },
 *                 AddressPools = new[]
 *                 {
 *                     new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgs
 *                     {
 *                         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",
 *                         },
 *                     },
 *                 },
 *                 LoadBalancerNodePoolConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigArgs
 *                 {
 *                     NodePoolConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigArgs
 *                     {
 *                         Labels = null,
 *                         OperatingSystem = "LINUX",
 *                         NodeConfigs = new[]
 *                         {
 *                             new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigNodeConfigArgs
 *                             {
 *                                 Labels = null,
 *                                 NodeIp = "10.200.0.9",
 *                             },
 *                         },
 *                         Taints = new[]
 *                         {
 *                             new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigTaintArgs
 *                             {
 *                                 Key = "test-key",
 *                                 Value = "test-value",
 *                                 Effect = "NO_EXECUTE",
 *                             },
 *                         },
 *                         KubeletConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigKubeletConfigArgs
 *                         {
 *                             RegistryPullQps = 10,
 *                             RegistryBurst = 12,
 *                             SerializeImagePullsDisabled = true,
 *                         },
 *                     },
 *                 },
 *             },
 *         },
 *         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]",
 *                     },
 *                 },
 *             },
 *         },
 *         Proxy = new Gcp.GkeOnPrem.Inputs.BareMetalClusterProxyArgs
 *         {
 *             Uri = "http://test-domain/test",
 *             NoProxies = new[]
 *             {
 *                 "127.0.0.1",
 *             },
 *         },
 *         ClusterOperations = new Gcp.GkeOnPrem.Inputs.BareMetalClusterClusterOperationsArgs
 *         {
 *             EnableApplicationLogs = true,
 *         },
 *         MaintenanceConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterMaintenanceConfigArgs
 *         {
 *             MaintenanceAddressCidrBlocks = new[]
 *             {
 *                 "192.168.0.1/20",
 *             },
 *         },
 *         NodeConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterNodeConfigArgs
 *         {
 *             MaxPodsPerNode = 10,
 *             ContainerRuntime = "CONTAINERD",
 *         },
 *         NodeAccessConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterNodeAccessConfigArgs
 *         {
 *             LoginUser = "[email protected]",
 *         },
 *         OsEnvironmentConfig = new Gcp.GkeOnPrem.Inputs.BareMetalClusterOsEnvironmentConfigArgs
 *         {
 *             PackageRepoExcluded = true,
 *         },
 *     });
 * });
 * ```
 * ```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, "cluster-bgplb", &gkeonprem.BareMetalClusterArgs{
 * 			Name:                   pulumi.String("cluster-bgplb"),
 * 			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"),
 * 					},
 * 				},
 * 				AdvancedNetworking: pulumi.Bool(true),
 * 				MultipleNetworkInterfacesConfig: &gkeonprem.BareMetalClusterNetworkConfigMultipleNetworkInterfacesConfigArgs{
 * 					Enabled: pulumi.Bool(true),
 * 				},
 * 				SrIovConfig: &gkeonprem.BareMetalClusterNetworkConfigSrIovConfigArgs{
 * 					Enabled: pulumi.Bool(true),
 * 				},
 * 			},
 * 			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"),
 * 							},
 * 						},
 * 						Taints: gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaintArray{
 * 							&gkeonprem.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaintArgs{
 * 								Key:    pulumi.String("test-key"),
 * 								Value:  pulumi.String("test-value"),
 * 								Effect: pulumi.String("NO_EXECUTE"),
 * 							},
 * 						},
 * 					},
 * 				},
 * 				ApiServerArgs: gkeonprem.BareMetalClusterControlPlaneApiServerArgArray{
 * 					&gkeonprem.BareMetalClusterControlPlaneApiServerArgArgs{
 * 						Argument: pulumi.String("test-argument"),
 * 						Value:    pulumi.String("test-value"),
 * 					},
 * 				},
 * 			},
 * 			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"),
 * 				},
 * 				BgpLbConfig: &gkeonprem.BareMetalClusterLoadBalancerBgpLbConfigArgs{
 * 					Asn: pulumi.Int(123456),
 * 					BgpPeerConfigs: gkeonprem.BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArray{
 * 						&gkeonprem.BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgs{
 * 							Asn:       pulumi.Int(123457),
 * 							IpAddress: pulumi.String("10.0.0.1"),
 * 							ControlPlaneNodes: pulumi.StringArray{
 * 								pulumi.String("test-node"),
 * 							},
 * 						},
 * 					},
 * 					AddressPools: gkeonprem.BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArray{
 * 						&gkeonprem.BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgs{
 * 							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"),
 * 							},
 * 						},
 * 					},
 * 					LoadBalancerNodePoolConfig: &gkeonprem.BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigArgs{
 * 						NodePoolConfig: &gkeonprem.BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigArgs{
 * 							Labels:          nil,
 * 							OperatingSystem: pulumi.String("LINUX"),
 * 							NodeConfigs: gkeonprem.BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigNodeConfigArray{
 * 								&gkeonprem.BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigNodeConfigArgs{
 * 									Labels: nil,
 * 									NodeIp: pulumi.String("10.200.0.9"),
 * 								},
 * 							},
 * 							Taints: gkeonprem.BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigTaintArray{
 * 								&gkeonprem.BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigTaintArgs{
 * 									Key:    pulumi.String("test-key"),
 * 									Value:  pulumi.String("test-value"),
 * 									Effect: pulumi.String("NO_EXECUTE"),
 * 								},
 * 							},
 * 							KubeletConfig: &gkeonprem.BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigKubeletConfigArgs{
 * 								RegistryPullQps:             pulumi.Int(10),
 * 								RegistryBurst:               pulumi.Int(12),
 * 								SerializeImagePullsDisabled: pulumi.Bool(true),
 * 							},
 * 						},
 * 					},
 * 				},
 * 			},
 * 			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]"),
 * 						},
 * 					},
 * 				},
 * 			},
 * 			Proxy: &gkeonprem.BareMetalClusterProxyArgs{
 * 				Uri: pulumi.String("http://test-domain/test"),
 * 				NoProxies: pulumi.StringArray{
 * 					pulumi.String("127.0.0.1"),
 * 				},
 * 			},
 * 			ClusterOperations: &gkeonprem.BareMetalClusterClusterOperationsArgs{
 * 				EnableApplicationLogs: pulumi.Bool(true),
 * 			},
 * 			MaintenanceConfig: &gkeonprem.BareMetalClusterMaintenanceConfigArgs{
 * 				MaintenanceAddressCidrBlocks: pulumi.StringArray{
 * 					pulumi.String("192.168.0.1/20"),
 * 				},
 * 			},
 * 			NodeConfig: &gkeonprem.BareMetalClusterNodeConfigArgs{
 * 				MaxPodsPerNode:   pulumi.Int(10),
 * 				ContainerRuntime: pulumi.String("CONTAINERD"),
 * 			},
 * 			NodeAccessConfig: &gkeonprem.BareMetalClusterNodeAccessConfigArgs{
 * 				LoginUser: pulumi.String("[email protected]"),
 * 			},
 * 			OsEnvironmentConfig: &gkeonprem.BareMetalClusterOsEnvironmentConfigArgs{
 * 				PackageRepoExcluded: pulumi.Bool(true),
 * 			},
 * 		})
 * 		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.BareMetalClusterNetworkConfigMultipleNetworkInterfacesConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterNetworkConfigSrIovConfigArgs;
 * 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.BareMetalClusterLoadBalancerBgpLbConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigKubeletConfigArgs;
 * 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.inputs.BareMetalClusterProxyArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterClusterOperationsArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterMaintenanceConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterNodeConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterNodeAccessConfigArgs;
 * import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterOsEnvironmentConfigArgs;
 * 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 cluster_bgplb = new BareMetalCluster("cluster-bgplb", BareMetalClusterArgs.builder()
 *             .name("cluster-bgplb")
 *             .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())
 *                 .advancedNetworking(true)
 *                 .multipleNetworkInterfacesConfig(BareMetalClusterNetworkConfigMultipleNetworkInterfacesConfigArgs.builder()
 *                     .enabled(true)
 *                     .build())
 *                 .srIovConfig(BareMetalClusterNetworkConfigSrIovConfigArgs.builder()
 *                     .enabled(true)
 *                     .build())
 *                 .build())
 *             .controlPlane(BareMetalClusterControlPlaneArgs.builder()
 *                 .controlPlaneNodePoolConfig(BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs.builder()
 *                     .nodePoolConfig(BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs.builder()
 *                         .labels()
 *                         .operatingSystem("LINUX")
 *                         .nodeConfigs(BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs.builder()
 *                             .labels()
 *                             .nodeIp("10.200.0.9")
 *                             .build())
 *                         .taints(BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaintArgs.builder()
 *                             .key("test-key")
 *                             .value("test-value")
 *                             .effect("NO_EXECUTE")
 *                             .build())
 *                         .build())
 *                     .build())
 *                 .apiServerArgs(BareMetalClusterControlPlaneApiServerArgArgs.builder()
 *                     .argument("test-argument")
 *                     .value("test-value")
 *                     .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())
 *                 .bgpLbConfig(BareMetalClusterLoadBalancerBgpLbConfigArgs.builder()
 *                     .asn(123456)
 *                     .bgpPeerConfigs(BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgs.builder()
 *                         .asn(123457)
 *                         .ipAddress("10.0.0.1")
 *                         .controlPlaneNodes("test-node")
 *                         .build())
 *                     .addressPools(BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgs.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())
 *                     .loadBalancerNodePoolConfig(BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigArgs.builder()
 *                         .nodePoolConfig(BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigArgs.builder()
 *                             .labels()
 *                             .operatingSystem("LINUX")
 *                             .nodeConfigs(BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigNodeConfigArgs.builder()
 *                                 .labels()
 *                                 .nodeIp("10.200.0.9")
 *                                 .build())
 *                             .taints(BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigTaintArgs.builder()
 *                                 .key("test-key")
 *                                 .value("test-value")
 *                                 .effect("NO_EXECUTE")
 *                                 .build())
 *                             .kubeletConfig(BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigNodePoolConfigKubeletConfigArgs.builder()
 *                                 .registryPullQps(10)
 *                                 .registryBurst(12)
 *                                 .serializeImagePullsDisabled(true)
 *                                 .build())
 *                             .build())
 *                         .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())
 *             .proxy(BareMetalClusterProxyArgs.builder()
 *                 .uri("http://test-domain/test")
 *                 .noProxies("127.0.0.1")
 *                 .build())
 *             .clusterOperations(BareMetalClusterClusterOperationsArgs.builder()
 *                 .enableApplicationLogs(true)
 *                 .build())
 *             .maintenanceConfig(BareMetalClusterMaintenanceConfigArgs.builder()
 *                 .maintenanceAddressCidrBlocks("192.168.0.1/20")
 *                 .build())
 *             .nodeConfig(BareMetalClusterNodeConfigArgs.builder()
 *                 .maxPodsPerNode(10)
 *                 .containerRuntime("CONTAINERD")
 *                 .build())
 *             .nodeAccessConfig(BareMetalClusterNodeAccessConfigArgs.builder()
 *                 .loginUser("[email protected]")
 *                 .build())
 *             .osEnvironmentConfig(BareMetalClusterOsEnvironmentConfigArgs.builder()
 *                 .packageRepoExcluded(true)
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   cluster-bgplb:
 *     type: gcp:gkeonprem:BareMetalCluster
 *     properties:
 *       name: cluster-bgplb
 *       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
 *         advancedNetworking: true
 *         multipleNetworkInterfacesConfig:
 *           enabled: true
 *         srIovConfig:
 *           enabled: true
 *       controlPlane:
 *         controlPlaneNodePoolConfig:
 *           nodePoolConfig:
 *             labels: {}
 *             operatingSystem: LINUX
 *             nodeConfigs:
 *               - labels: {}
 *                 nodeIp: 10.200.0.9
 *             taints:
 *               - key: test-key
 *                 value: test-value
 *                 effect: NO_EXECUTE
 *         apiServerArgs:
 *           - argument: test-argument
 *             value: test-value
 *       loadBalancer:
 *         portConfig:
 *           controlPlaneLoadBalancerPort: 443
 *         vipConfig:
 *           controlPlaneVip: 10.200.0.13
 *           ingressVip: 10.200.0.14
 *         bgpLbConfig:
 *           asn: 123456
 *           bgpPeerConfigs:
 *             - asn: 123457
 *               ipAddress: 10.0.0.1
 *               controlPlaneNodes:
 *                 - test-node
 *           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
 *           loadBalancerNodePoolConfig:
 *             nodePoolConfig:
 *               labels: {}
 *               operatingSystem: LINUX
 *               nodeConfigs:
 *                 - labels: {}
 *                   nodeIp: 10.200.0.9
 *               taints:
 *                 - key: test-key
 *                   value: test-value
 *                   effect: NO_EXECUTE
 *               kubeletConfig:
 *                 registryPullQps: 10
 *                 registryBurst: 12
 *                 serializeImagePullsDisabled: true
 *       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]
 *       proxy:
 *         uri: http://test-domain/test
 *         noProxies:
 *           - 127.0.0.1
 *       clusterOperations:
 *         enableApplicationLogs: true
 *       maintenanceConfig:
 *         maintenanceAddressCidrBlocks:
 *           - 192.168.0.1/20
 *       nodeConfig:
 *         maxPodsPerNode: 10
 *         containerRuntime: CONTAINERD
 *       nodeAccessConfig:
 *         loginUser: [email protected]
 *       osEnvironmentConfig:
 *         packageRepoExcluded: true
 * ```
 * 
 * ## Import
 * BareMetalCluster can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{location}}/bareMetalClusters/{{name}}`
 * * `{{project}}/{{location}}/{{name}}`
 * * `{{location}}/{{name}}`
 * When using the `pulumi import` command, BareMetalCluster can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:gkeonprem/bareMetalCluster:BareMetalCluster default projects/{{project}}/locations/{{location}}/bareMetalClusters/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:gkeonprem/bareMetalCluster:BareMetalCluster default {{project}}/{{location}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:gkeonprem/bareMetalCluster:BareMetalCluster default {{location}}/{{name}}
 * ```
 */
public class BareMetalCluster internal constructor(
    override val javaResource: com.pulumi.gcp.gkeonprem.BareMetalCluster,
) : KotlinCustomResource(javaResource, BareMetalClusterMapper) {
    /**
     * The Admin Cluster this Bare Metal User Cluster belongs to.
     * This is the full resource name of the Admin Cluster's hub membership.
     */
    public val adminClusterMembership: Output
        get() = javaResource.adminClusterMembership().applyValue({ args0 -> args0 })

    /**
     * Annotations on the Bare Metal User Cluster. 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)
        })

    /**
     * A human readable description of this Bare Metal User Cluster.
     */
    public val bareMetalVersion: Output
        get() = javaResource.bareMetalVersion().applyValue({ args0 -> args0 })

    /**
     * Binary Authorization related configurations.
     */
    public val binaryAuthorization: Output?
        get() = javaResource.binaryAuthorization().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> bareMetalClusterBinaryAuthorizationToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * Specifies the User Cluster's observability infrastructure.
     */
    public val clusterOperations: Output?
        get() = javaResource.clusterOperations().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> bareMetalClusterClusterOperationsToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * Specifies the control plane configuration.
     * Structure is documented below.
     */
    public val controlPlane: Output
        get() = javaResource.controlPlane().applyValue({ args0 ->
            args0.let({ args0 ->
                bareMetalClusterControlPlaneToKotlin(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 })

    /**
     * (Output)
     * The description of the validation check.
     */
    public val description: Output?
        get() = javaResource.description().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()
        })

    /**
     * The IP address name of Bare Metal User Cluster's API server.
     */
    public val endpoint: Output
        get() = javaResource.endpoint().applyValue({ args0 -> args0 })

    /**
     * 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 })

    /**
     * Fleet related configuration.
     * Fleets are a Google Cloud concept for logically organizing clusters,
     * letting you use and manage multi-cluster capabilities and apply
     * consistent policies across your systems.
     * See [Anthos Fleets](https://cloud.google.com/anthos/multicluster-management/fleets) for
     * more details on Anthos multi-cluster capabilities using Fleets.
     * Structure is documented below.
     */
    public val fleets: Output>
        get() = javaResource.fleets().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    bareMetalClusterFleetToKotlin(args0)
                })
            })
        })

    /**
     * Specifies the load balancer configuration.
     * Structure is documented below.
     */
    public val loadBalancer: Output
        get() = javaResource.loadBalancer().applyValue({ args0 ->
            args0.let({ args0 ->
                bareMetalClusterLoadBalancerToKotlin(args0)
            })
        })

    /**
     * The object name of the Bare Metal Cluster custom resource on the
     * associated admin cluster. This field is used to support conflicting
     * names when enrolling existing clusters to the API. When used as a part of
     * cluster enrollment, this field will differ from the ID in the resource
     * name. For new clusters, this field will match the user provided cluster ID
     * and be visible in the last component of the resource name. It is not
     * modifiable.
     * All users should use this name to access their cluster using gkectl or
     * kubectl and should expect to see the local name when viewing admin
     * cluster controller logs.
     */
    public val localName: Output
        get() = javaResource.localName().applyValue({ args0 -> args0 })

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

    /**
     * Specifies the workload node configurations.
     */
    public val maintenanceConfig: Output?
        get() = javaResource.maintenanceConfig().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> bareMetalClusterMaintenanceConfigToKotlin(args0) })
            }).orElse(null)
        })

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

    /**
     * Network configuration.
     * Structure is documented below.
     */
    public val networkConfig: Output
        get() = javaResource.networkConfig().applyValue({ args0 ->
            args0.let({ args0 ->
                bareMetalClusterNetworkConfigToKotlin(args0)
            })
        })

    /**
     * Specifies the node access related settings for the bare metal user cluster.
     */
    public val nodeAccessConfig: Output?
        get() = javaResource.nodeAccessConfig().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> bareMetalClusterNodeAccessConfigToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * Specifies the workload node configurations.
     */
    public val nodeConfig: Output?
        get() = javaResource.nodeConfig().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    bareMetalClusterNodeConfigToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * OS environment related configurations.
     */
    public val osEnvironmentConfig: Output?
        get() = javaResource.osEnvironmentConfig().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> bareMetalClusterOsEnvironmentConfigToKotlin(args0) })
            }).orElse(null)
        })

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

    /**
     * Specifies the cluster proxy configuration.
     */
    public val proxy: Output?
        get() = javaResource.proxy().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    bareMetalClusterProxyToKotlin(args0)
                })
            }).orElse(null)
        })

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

    /**
     * Specifies the security related settings for the Bare Metal User Cluster.
     */
    public val securityConfig: Output?
        get() = javaResource.securityConfig().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> bareMetalClusterSecurityConfigToKotlin(args0) })
            }).orElse(null)
        })

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

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

    /**
     * Specifies the cluster storage configuration.
     * Structure is documented below.
     */
    public val storage: Output
        get() = javaResource.storage().applyValue({ args0 ->
            args0.let({ args0 ->
                bareMetalClusterStorageToKotlin(args0)
            })
        })

    /**
     * The unique identifier of the Bare Metal User Cluster.
     */
    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 })

    /**
     * The cluster upgrade policy.
     */
    public val upgradePolicy: Output?
        get() = javaResource.upgradePolicy().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> bareMetalClusterUpgradePolicyToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * Specifies the security related settings for the Bare Metal User Cluster.
     * Structure is documented below.
     */
    public val validationChecks: Output>
        get() = javaResource.validationChecks().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> bareMetalClusterValidationCheckToKotlin(args0) })
            })
        })
}

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy