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

com.pulumi.gcp.netapp.kotlin.StoragePoolArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.netapp.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.netapp.StoragePoolArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * ## Example Usage
 * ### Storage Pool Create
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * // Create a network or use datasource to reference existing network
 * const peeringNetwork = new gcp.compute.Network("peering_network", {name: "test-network"});
 * // Reserve a CIDR for NetApp Volumes to use
 * // When using shared-VPCs, this resource needs to be created in host project
 * const privateIpAlloc = new gcp.compute.GlobalAddress("private_ip_alloc", {
 *     name: "test-address",
 *     purpose: "VPC_PEERING",
 *     addressType: "INTERNAL",
 *     prefixLength: 16,
 *     network: peeringNetwork.id,
 * });
 * // Create a Private Service Access connection
 * // When using shared-VPCs, this resource needs to be created in host project
 * const _default = new gcp.servicenetworking.Connection("default", {
 *     network: peeringNetwork.id,
 *     service: "netapp.servicenetworking.goog",
 *     reservedPeeringRanges: [privateIpAlloc.name],
 * });
 * // Modify the PSA Connection to allow import/export of custom routes
 * // When using shared-VPCs, this resource needs to be created in host project
 * const routeUpdates = new gcp.compute.NetworkPeeringRoutesConfig("route_updates", {
 *     peering: _default.peering,
 *     network: peeringNetwork.name,
 *     importCustomRoutes: true,
 *     exportCustomRoutes: true,
 * });
 * // Create a storage pool
 * // Create this resource in the project which is expected to own the volumes
 * const testPool = new gcp.netapp.StoragePool("test_pool", {
 *     name: "test-pool",
 *     location: "us-central1",
 *     serviceLevel: "PREMIUM",
 *     capacityGib: "2048",
 *     network: peeringNetwork.id,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * # Create a network or use datasource to reference existing network
 * peering_network = gcp.compute.Network("peering_network", name="test-network")
 * # Reserve a CIDR for NetApp Volumes to use
 * # When using shared-VPCs, this resource needs to be created in host project
 * private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
 *     name="test-address",
 *     purpose="VPC_PEERING",
 *     address_type="INTERNAL",
 *     prefix_length=16,
 *     network=peering_network.id)
 * # Create a Private Service Access connection
 * # When using shared-VPCs, this resource needs to be created in host project
 * default = gcp.servicenetworking.Connection("default",
 *     network=peering_network.id,
 *     service="netapp.servicenetworking.goog",
 *     reserved_peering_ranges=[private_ip_alloc.name])
 * # Modify the PSA Connection to allow import/export of custom routes
 * # When using shared-VPCs, this resource needs to be created in host project
 * route_updates = gcp.compute.NetworkPeeringRoutesConfig("route_updates",
 *     peering=default.peering,
 *     network=peering_network.name,
 *     import_custom_routes=True,
 *     export_custom_routes=True)
 * # Create a storage pool
 * # Create this resource in the project which is expected to own the volumes
 * test_pool = gcp.netapp.StoragePool("test_pool",
 *     name="test-pool",
 *     location="us-central1",
 *     service_level="PREMIUM",
 *     capacity_gib="2048",
 *     network=peering_network.id)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     // Create a network or use datasource to reference existing network
 *     var peeringNetwork = new Gcp.Compute.Network("peering_network", new()
 *     {
 *         Name = "test-network",
 *     });
 *     // Reserve a CIDR for NetApp Volumes to use
 *     // When using shared-VPCs, this resource needs to be created in host project
 *     var privateIpAlloc = new Gcp.Compute.GlobalAddress("private_ip_alloc", new()
 *     {
 *         Name = "test-address",
 *         Purpose = "VPC_PEERING",
 *         AddressType = "INTERNAL",
 *         PrefixLength = 16,
 *         Network = peeringNetwork.Id,
 *     });
 *     // Create a Private Service Access connection
 *     // When using shared-VPCs, this resource needs to be created in host project
 *     var @default = new Gcp.ServiceNetworking.Connection("default", new()
 *     {
 *         Network = peeringNetwork.Id,
 *         Service = "netapp.servicenetworking.goog",
 *         ReservedPeeringRanges = new[]
 *         {
 *             privateIpAlloc.Name,
 *         },
 *     });
 *     // Modify the PSA Connection to allow import/export of custom routes
 *     // When using shared-VPCs, this resource needs to be created in host project
 *     var routeUpdates = new Gcp.Compute.NetworkPeeringRoutesConfig("route_updates", new()
 *     {
 *         Peering = @default.Peering,
 *         Network = peeringNetwork.Name,
 *         ImportCustomRoutes = true,
 *         ExportCustomRoutes = true,
 *     });
 *     // Create a storage pool
 *     // Create this resource in the project which is expected to own the volumes
 *     var testPool = new Gcp.Netapp.StoragePool("test_pool", new()
 *     {
 *         Name = "test-pool",
 *         Location = "us-central1",
 *         ServiceLevel = "PREMIUM",
 *         CapacityGib = "2048",
 *         Network = peeringNetwork.Id,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/netapp"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/servicenetworking"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		// Create a network or use datasource to reference existing network
 * 		peeringNetwork, err := compute.NewNetwork(ctx, "peering_network", &compute.NetworkArgs{
 * 			Name: pulumi.String("test-network"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		// Reserve a CIDR for NetApp Volumes to use
 * 		// When using shared-VPCs, this resource needs to be created in host project
 * 		privateIpAlloc, err := compute.NewGlobalAddress(ctx, "private_ip_alloc", &compute.GlobalAddressArgs{
 * 			Name:         pulumi.String("test-address"),
 * 			Purpose:      pulumi.String("VPC_PEERING"),
 * 			AddressType:  pulumi.String("INTERNAL"),
 * 			PrefixLength: pulumi.Int(16),
 * 			Network:      peeringNetwork.ID(),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		// Create a Private Service Access connection
 * 		// When using shared-VPCs, this resource needs to be created in host project
 * 		_, err = servicenetworking.NewConnection(ctx, "default", &servicenetworking.ConnectionArgs{
 * 			Network: peeringNetwork.ID(),
 * 			Service: pulumi.String("netapp.servicenetworking.goog"),
 * 			ReservedPeeringRanges: pulumi.StringArray{
 * 				privateIpAlloc.Name,
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		// Modify the PSA Connection to allow import/export of custom routes
 * 		// When using shared-VPCs, this resource needs to be created in host project
 * 		_, err = compute.NewNetworkPeeringRoutesConfig(ctx, "route_updates", &compute.NetworkPeeringRoutesConfigArgs{
 * 			Peering:            _default.Peering,
 * 			Network:            peeringNetwork.Name,
 * 			ImportCustomRoutes: pulumi.Bool(true),
 * 			ExportCustomRoutes: pulumi.Bool(true),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		// Create a storage pool
 * 		// Create this resource in the project which is expected to own the volumes
 * 		_, err = netapp.NewStoragePool(ctx, "test_pool", &netapp.StoragePoolArgs{
 * 			Name:         pulumi.String("test-pool"),
 * 			Location:     pulumi.String("us-central1"),
 * 			ServiceLevel: pulumi.String("PREMIUM"),
 * 			CapacityGib:  pulumi.String("2048"),
 * 			Network:      peeringNetwork.ID(),
 * 		})
 * 		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.compute.Network;
 * import com.pulumi.gcp.compute.NetworkArgs;
 * import com.pulumi.gcp.compute.GlobalAddress;
 * import com.pulumi.gcp.compute.GlobalAddressArgs;
 * import com.pulumi.gcp.servicenetworking.Connection;
 * import com.pulumi.gcp.servicenetworking.ConnectionArgs;
 * import com.pulumi.gcp.compute.NetworkPeeringRoutesConfig;
 * import com.pulumi.gcp.compute.NetworkPeeringRoutesConfigArgs;
 * import com.pulumi.gcp.netapp.StoragePool;
 * import com.pulumi.gcp.netapp.StoragePoolArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         // Create a network or use datasource to reference existing network
 *         var peeringNetwork = new Network("peeringNetwork", NetworkArgs.builder()
 *             .name("test-network")
 *             .build());
 *         // Reserve a CIDR for NetApp Volumes to use
 *         // When using shared-VPCs, this resource needs to be created in host project
 *         var privateIpAlloc = new GlobalAddress("privateIpAlloc", GlobalAddressArgs.builder()
 *             .name("test-address")
 *             .purpose("VPC_PEERING")
 *             .addressType("INTERNAL")
 *             .prefixLength(16)
 *             .network(peeringNetwork.id())
 *             .build());
 *         // Create a Private Service Access connection
 *         // When using shared-VPCs, this resource needs to be created in host project
 *         var default_ = new Connection("default", ConnectionArgs.builder()
 *             .network(peeringNetwork.id())
 *             .service("netapp.servicenetworking.goog")
 *             .reservedPeeringRanges(privateIpAlloc.name())
 *             .build());
 *         // Modify the PSA Connection to allow import/export of custom routes
 *         // When using shared-VPCs, this resource needs to be created in host project
 *         var routeUpdates = new NetworkPeeringRoutesConfig("routeUpdates", NetworkPeeringRoutesConfigArgs.builder()
 *             .peering(default_.peering())
 *             .network(peeringNetwork.name())
 *             .importCustomRoutes(true)
 *             .exportCustomRoutes(true)
 *             .build());
 *         // Create a storage pool
 *         // Create this resource in the project which is expected to own the volumes
 *         var testPool = new StoragePool("testPool", StoragePoolArgs.builder()
 *             .name("test-pool")
 *             .location("us-central1")
 *             .serviceLevel("PREMIUM")
 *             .capacityGib("2048")
 *             .network(peeringNetwork.id())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   # Create a network or use datasource to reference existing network
 *   peeringNetwork:
 *     type: gcp:compute:Network
 *     name: peering_network
 *     properties:
 *       name: test-network
 *   # Reserve a CIDR for NetApp Volumes to use
 *   # When using shared-VPCs, this resource needs to be created in host project
 *   privateIpAlloc:
 *     type: gcp:compute:GlobalAddress
 *     name: private_ip_alloc
 *     properties:
 *       name: test-address
 *       purpose: VPC_PEERING
 *       addressType: INTERNAL
 *       prefixLength: 16
 *       network: ${peeringNetwork.id}
 *   # Create a Private Service Access connection
 *   # When using shared-VPCs, this resource needs to be created in host project
 *   default:
 *     type: gcp:servicenetworking:Connection
 *     properties:
 *       network: ${peeringNetwork.id}
 *       service: netapp.servicenetworking.goog
 *       reservedPeeringRanges:
 *         - ${privateIpAlloc.name}
 *   # Modify the PSA Connection to allow import/export of custom routes
 *   # When using shared-VPCs, this resource needs to be created in host project
 *   routeUpdates:
 *     type: gcp:compute:NetworkPeeringRoutesConfig
 *     name: route_updates
 *     properties:
 *       peering: ${default.peering}
 *       network: ${peeringNetwork.name}
 *       importCustomRoutes: true
 *       exportCustomRoutes: true
 *   # Create a storage pool
 *   # Create this resource in the project which is expected to own the volumes
 *   testPool:
 *     type: gcp:netapp:StoragePool
 *     name: test_pool
 *     properties:
 *       name: test-pool
 *       location: us-central1
 *       serviceLevel: PREMIUM
 *       capacityGib: '2048'
 *       network: ${peeringNetwork.id}
 * ```
 * 
 * ## Import
 * storagePool can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{location}}/storagePools/{{name}}`
 * * `{{project}}/{{location}}/{{name}}`
 * * `{{location}}/{{name}}`
 * When using the `pulumi import` command, storagePool can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:netapp/storagePool:StoragePool default projects/{{project}}/locations/{{location}}/storagePools/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:netapp/storagePool:StoragePool default {{project}}/{{location}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:netapp/storagePool:StoragePool default {{location}}/{{name}}
 * ```
 * @property activeDirectory Specifies the Active Directory policy to be used. Format: `projects/{{project}}/locations/{{location}}/activeDirectories/{{name}}`.
 * The policy needs to be in the same location as the storage pool.
 * @property capacityGib Capacity of the storage pool (in GiB).
 * @property description An optional description of this resource.
 * @property kmsConfig Specifies the CMEK policy to be used for volume encryption. Format: `projects/{{project}}/locations/{{location}}/kmsConfigs/{{name}}`.
 * The policy needs to be in the same location as the storage pool.
 * @property labels Labels as key value pairs. Example: `{ "owner": "Bob", "department": "finance", "purpose": "testing" }`.
 * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
 * Please refer to the field `effective_labels` for all of the labels present on the resource.
 * @property ldapEnabled When enabled, the volumes uses Active Directory as LDAP name service for UID/GID lookups. Required to enable extended group support for NFSv3,
 * using security identifiers for NFSv4.1 or principal names for kerberized NFSv4.1.
 * @property location Name of the location. For zonal Flex pools specify a zone name, in all other cases a region name.
 * @property name The resource name of the storage pool. Needs to be unique per location/region.
 * - - -
 * @property network VPC network name with format: `projects/{{project}}/global/networks/{{network}}`
 * @property project The ID of the project in which the resource belongs.
 * If it is not provided, the provider project is used.
 * @property replicaZone Specifies the replica zone for regional Flex pools. `zone` and `replica_zone` values can be swapped to initiate a
 * [zone switch](https://cloud.google.com/netapp/volumes/docs/configure-and-use/storage-pools/edit-or-delete-storage-pool#switch_active_and_replica_zones).
 * @property serviceLevel Service level of the storage pool.
 * Possible values are: `PREMIUM`, `EXTREME`, `STANDARD`, `FLEX`.
 * @property zone Specifies the active zone for regional Flex pools. `zone` and `replica_zone` values can be swapped to initiate a
 * [zone switch](https://cloud.google.com/netapp/volumes/docs/configure-and-use/storage-pools/edit-or-delete-storage-pool#switch_active_and_replica_zones).
 * If you want to create a zonal Flex pool, specify a zone name for `location` and omit `zone`.
 */
public data class StoragePoolArgs(
    public val activeDirectory: Output? = null,
    public val capacityGib: Output? = null,
    public val description: Output? = null,
    public val kmsConfig: Output? = null,
    public val labels: Output>? = null,
    public val ldapEnabled: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val network: Output? = null,
    public val project: Output? = null,
    public val replicaZone: Output? = null,
    public val serviceLevel: Output? = null,
    public val zone: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.netapp.StoragePoolArgs =
        com.pulumi.gcp.netapp.StoragePoolArgs.builder()
            .activeDirectory(activeDirectory?.applyValue({ args0 -> args0 }))
            .capacityGib(capacityGib?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .kmsConfig(kmsConfig?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .ldapEnabled(ldapEnabled?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .network(network?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .replicaZone(replicaZone?.applyValue({ args0 -> args0 }))
            .serviceLevel(serviceLevel?.applyValue({ args0 -> args0 }))
            .zone(zone?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [StoragePoolArgs].
 */
@PulumiTagMarker
public class StoragePoolArgsBuilder internal constructor() {
    private var activeDirectory: Output? = null

    private var capacityGib: Output? = null

    private var description: Output? = null

    private var kmsConfig: Output? = null

    private var labels: Output>? = null

    private var ldapEnabled: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var network: Output? = null

    private var project: Output? = null

    private var replicaZone: Output? = null

    private var serviceLevel: Output? = null

    private var zone: Output? = null

    /**
     * @param value Specifies the Active Directory policy to be used. Format: `projects/{{project}}/locations/{{location}}/activeDirectories/{{name}}`.
     * The policy needs to be in the same location as the storage pool.
     */
    @JvmName("lhnmacoxloysfbqo")
    public suspend fun activeDirectory(`value`: Output) {
        this.activeDirectory = value
    }

    /**
     * @param value Capacity of the storage pool (in GiB).
     */
    @JvmName("rgqhnrfbrmpnhunu")
    public suspend fun capacityGib(`value`: Output) {
        this.capacityGib = value
    }

    /**
     * @param value An optional description of this resource.
     */
    @JvmName("abixogpdwqltwpwg")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Specifies the CMEK policy to be used for volume encryption. Format: `projects/{{project}}/locations/{{location}}/kmsConfigs/{{name}}`.
     * The policy needs to be in the same location as the storage pool.
     */
    @JvmName("eagneopwgshrstyg")
    public suspend fun kmsConfig(`value`: Output) {
        this.kmsConfig = value
    }

    /**
     * @param value Labels as key value pairs. Example: `{ "owner": "Bob", "department": "finance", "purpose": "testing" }`.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effective_labels` for all of the labels present on the resource.
     */
    @JvmName("owwnklpectvekupx")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value When enabled, the volumes uses Active Directory as LDAP name service for UID/GID lookups. Required to enable extended group support for NFSv3,
     * using security identifiers for NFSv4.1 or principal names for kerberized NFSv4.1.
     */
    @JvmName("cnjakwvbgdvoesxv")
    public suspend fun ldapEnabled(`value`: Output) {
        this.ldapEnabled = value
    }

    /**
     * @param value Name of the location. For zonal Flex pools specify a zone name, in all other cases a region name.
     */
    @JvmName("xcpmdgywamdapefs")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The resource name of the storage pool. Needs to be unique per location/region.
     * - - -
     */
    @JvmName("otmrqqfdilvckbxx")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value VPC network name with format: `projects/{{project}}/global/networks/{{network}}`
     */
    @JvmName("jgagygwfjextlccw")
    public suspend fun network(`value`: Output) {
        this.network = value
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("mhoreuqhinwhqnun")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value Specifies the replica zone for regional Flex pools. `zone` and `replica_zone` values can be swapped to initiate a
     * [zone switch](https://cloud.google.com/netapp/volumes/docs/configure-and-use/storage-pools/edit-or-delete-storage-pool#switch_active_and_replica_zones).
     */
    @JvmName("nuowfbrtpsodvias")
    public suspend fun replicaZone(`value`: Output) {
        this.replicaZone = value
    }

    /**
     * @param value Service level of the storage pool.
     * Possible values are: `PREMIUM`, `EXTREME`, `STANDARD`, `FLEX`.
     */
    @JvmName("dykobixsfgeaespr")
    public suspend fun serviceLevel(`value`: Output) {
        this.serviceLevel = value
    }

    /**
     * @param value Specifies the active zone for regional Flex pools. `zone` and `replica_zone` values can be swapped to initiate a
     * [zone switch](https://cloud.google.com/netapp/volumes/docs/configure-and-use/storage-pools/edit-or-delete-storage-pool#switch_active_and_replica_zones).
     * If you want to create a zonal Flex pool, specify a zone name for `location` and omit `zone`.
     */
    @JvmName("iiadahjjquhcbbeq")
    public suspend fun zone(`value`: Output) {
        this.zone = value
    }

    /**
     * @param value Specifies the Active Directory policy to be used. Format: `projects/{{project}}/locations/{{location}}/activeDirectories/{{name}}`.
     * The policy needs to be in the same location as the storage pool.
     */
    @JvmName("myugddbimxvcsevq")
    public suspend fun activeDirectory(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.activeDirectory = mapped
    }

    /**
     * @param value Capacity of the storage pool (in GiB).
     */
    @JvmName("hoqcoqncldtqukte")
    public suspend fun capacityGib(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capacityGib = mapped
    }

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

    /**
     * @param value Specifies the CMEK policy to be used for volume encryption. Format: `projects/{{project}}/locations/{{location}}/kmsConfigs/{{name}}`.
     * The policy needs to be in the same location as the storage pool.
     */
    @JvmName("jvjwvfddrsgtkcca")
    public suspend fun kmsConfig(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsConfig = mapped
    }

    /**
     * @param value Labels as key value pairs. Example: `{ "owner": "Bob", "department": "finance", "purpose": "testing" }`.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effective_labels` for all of the labels present on the resource.
     */
    @JvmName("luekkqopniotnnxm")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values Labels as key value pairs. Example: `{ "owner": "Bob", "department": "finance", "purpose": "testing" }`.
     * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
     * Please refer to the field `effective_labels` for all of the labels present on the resource.
     */
    @JvmName("asyybvfnrjkkwjmg")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value When enabled, the volumes uses Active Directory as LDAP name service for UID/GID lookups. Required to enable extended group support for NFSv3,
     * using security identifiers for NFSv4.1 or principal names for kerberized NFSv4.1.
     */
    @JvmName("xxyhdukfodolyuvm")
    public suspend fun ldapEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ldapEnabled = mapped
    }

    /**
     * @param value Name of the location. For zonal Flex pools specify a zone name, in all other cases a region name.
     */
    @JvmName("khkwmvynfgxteilf")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The resource name of the storage pool. Needs to be unique per location/region.
     * - - -
     */
    @JvmName("ebairvwkosqricgg")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value VPC network name with format: `projects/{{project}}/global/networks/{{network}}`
     */
    @JvmName("nhtgwdflueccarsi")
    public suspend fun network(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.network = mapped
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("togxwwtahdgrxpmk")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value Specifies the replica zone for regional Flex pools. `zone` and `replica_zone` values can be swapped to initiate a
     * [zone switch](https://cloud.google.com/netapp/volumes/docs/configure-and-use/storage-pools/edit-or-delete-storage-pool#switch_active_and_replica_zones).
     */
    @JvmName("ysfnddiihrohmxdr")
    public suspend fun replicaZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.replicaZone = mapped
    }

    /**
     * @param value Service level of the storage pool.
     * Possible values are: `PREMIUM`, `EXTREME`, `STANDARD`, `FLEX`.
     */
    @JvmName("gowhwxjouwqpaotj")
    public suspend fun serviceLevel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceLevel = mapped
    }

    /**
     * @param value Specifies the active zone for regional Flex pools. `zone` and `replica_zone` values can be swapped to initiate a
     * [zone switch](https://cloud.google.com/netapp/volumes/docs/configure-and-use/storage-pools/edit-or-delete-storage-pool#switch_active_and_replica_zones).
     * If you want to create a zonal Flex pool, specify a zone name for `location` and omit `zone`.
     */
    @JvmName("cwlmtxvkbljcqese")
    public suspend fun zone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zone = mapped
    }

    internal fun build(): StoragePoolArgs = StoragePoolArgs(
        activeDirectory = activeDirectory,
        capacityGib = capacityGib,
        description = description,
        kmsConfig = kmsConfig,
        labels = labels,
        ldapEnabled = ldapEnabled,
        location = location,
        name = name,
        network = network,
        project = project,
        replicaZone = replicaZone,
        serviceLevel = serviceLevel,
        zone = zone,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy