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

com.pulumi.gcp.compute.kotlin.RegionDiskArgs.kt Maven / Gradle / Ivy

Go to download

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

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

package com.pulumi.gcp.compute.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.RegionDiskArgs.builder
import com.pulumi.gcp.compute.kotlin.inputs.RegionDiskAsyncPrimaryDiskArgs
import com.pulumi.gcp.compute.kotlin.inputs.RegionDiskAsyncPrimaryDiskArgsBuilder
import com.pulumi.gcp.compute.kotlin.inputs.RegionDiskDiskEncryptionKeyArgs
import com.pulumi.gcp.compute.kotlin.inputs.RegionDiskDiskEncryptionKeyArgsBuilder
import com.pulumi.gcp.compute.kotlin.inputs.RegionDiskGuestOsFeatureArgs
import com.pulumi.gcp.compute.kotlin.inputs.RegionDiskGuestOsFeatureArgsBuilder
import com.pulumi.gcp.compute.kotlin.inputs.RegionDiskSourceSnapshotEncryptionKeyArgs
import com.pulumi.gcp.compute.kotlin.inputs.RegionDiskSourceSnapshotEncryptionKeyArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Deprecated
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Persistent disks are durable storage devices that function similarly to
 * the physical disks in a desktop or a server. Compute Engine manages the
 * hardware behind these devices to ensure data redundancy and optimize
 * performance for you. Persistent disks are available as either standard
 * hard disk drives (HDD) or solid-state drives (SSD).
 * Persistent disks are located independently from your virtual machine
 * instances, so you can detach or move persistent disks to keep your data
 * even after you delete your instances. Persistent disk performance scales
 * automatically with size, so you can resize your existing persistent disks
 * or add more persistent disks to an instance to meet your performance and
 * storage space requirements.
 * Add a persistent disk to your instance when you need reliable and
 * affordable storage with consistent performance characteristics.
 * To get more information about RegionDisk, see:
 * * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/regionDisks)
 * * How-to Guides
 *     * [Adding or Resizing Regional Persistent Disks](https://cloud.google.com/compute/docs/disks/regional-persistent-disk)
 * ## Example Usage
 * ### Region Disk Basic
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const disk = new gcp.compute.Disk("disk", {
 *     name: "my-disk",
 *     image: "debian-cloud/debian-11",
 *     size: 50,
 *     type: "pd-ssd",
 *     zone: "us-central1-a",
 * });
 * const snapdisk = new gcp.compute.Snapshot("snapdisk", {
 *     name: "my-snapshot",
 *     sourceDisk: disk.name,
 *     zone: "us-central1-a",
 * });
 * const regiondisk = new gcp.compute.RegionDisk("regiondisk", {
 *     name: "my-region-disk",
 *     snapshot: snapdisk.id,
 *     type: "pd-ssd",
 *     region: "us-central1",
 *     physicalBlockSizeBytes: 4096,
 *     replicaZones: [
 *         "us-central1-a",
 *         "us-central1-f",
 *     ],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * disk = gcp.compute.Disk("disk",
 *     name="my-disk",
 *     image="debian-cloud/debian-11",
 *     size=50,
 *     type="pd-ssd",
 *     zone="us-central1-a")
 * snapdisk = gcp.compute.Snapshot("snapdisk",
 *     name="my-snapshot",
 *     source_disk=disk.name,
 *     zone="us-central1-a")
 * regiondisk = gcp.compute.RegionDisk("regiondisk",
 *     name="my-region-disk",
 *     snapshot=snapdisk.id,
 *     type="pd-ssd",
 *     region="us-central1",
 *     physical_block_size_bytes=4096,
 *     replica_zones=[
 *         "us-central1-a",
 *         "us-central1-f",
 *     ])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var disk = new Gcp.Compute.Disk("disk", new()
 *     {
 *         Name = "my-disk",
 *         Image = "debian-cloud/debian-11",
 *         Size = 50,
 *         Type = "pd-ssd",
 *         Zone = "us-central1-a",
 *     });
 *     var snapdisk = new Gcp.Compute.Snapshot("snapdisk", new()
 *     {
 *         Name = "my-snapshot",
 *         SourceDisk = disk.Name,
 *         Zone = "us-central1-a",
 *     });
 *     var regiondisk = new Gcp.Compute.RegionDisk("regiondisk", new()
 *     {
 *         Name = "my-region-disk",
 *         Snapshot = snapdisk.Id,
 *         Type = "pd-ssd",
 *         Region = "us-central1",
 *         PhysicalBlockSizeBytes = 4096,
 *         ReplicaZones = new[]
 *         {
 *             "us-central1-a",
 *             "us-central1-f",
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		disk, err := compute.NewDisk(ctx, "disk", &compute.DiskArgs{
 * 			Name:  pulumi.String("my-disk"),
 * 			Image: pulumi.String("debian-cloud/debian-11"),
 * 			Size:  pulumi.Int(50),
 * 			Type:  pulumi.String("pd-ssd"),
 * 			Zone:  pulumi.String("us-central1-a"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		snapdisk, err := compute.NewSnapshot(ctx, "snapdisk", &compute.SnapshotArgs{
 * 			Name:       pulumi.String("my-snapshot"),
 * 			SourceDisk: disk.Name,
 * 			Zone:       pulumi.String("us-central1-a"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = compute.NewRegionDisk(ctx, "regiondisk", &compute.RegionDiskArgs{
 * 			Name:                   pulumi.String("my-region-disk"),
 * 			Snapshot:               snapdisk.ID(),
 * 			Type:                   pulumi.String("pd-ssd"),
 * 			Region:                 pulumi.String("us-central1"),
 * 			PhysicalBlockSizeBytes: pulumi.Int(4096),
 * 			ReplicaZones: pulumi.StringArray{
 * 				pulumi.String("us-central1-a"),
 * 				pulumi.String("us-central1-f"),
 * 			},
 * 		})
 * 		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.Disk;
 * import com.pulumi.gcp.compute.DiskArgs;
 * import com.pulumi.gcp.compute.Snapshot;
 * import com.pulumi.gcp.compute.SnapshotArgs;
 * import com.pulumi.gcp.compute.RegionDisk;
 * import com.pulumi.gcp.compute.RegionDiskArgs;
 * 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 disk = new Disk("disk", DiskArgs.builder()
 *             .name("my-disk")
 *             .image("debian-cloud/debian-11")
 *             .size(50)
 *             .type("pd-ssd")
 *             .zone("us-central1-a")
 *             .build());
 *         var snapdisk = new Snapshot("snapdisk", SnapshotArgs.builder()
 *             .name("my-snapshot")
 *             .sourceDisk(disk.name())
 *             .zone("us-central1-a")
 *             .build());
 *         var regiondisk = new RegionDisk("regiondisk", RegionDiskArgs.builder()
 *             .name("my-region-disk")
 *             .snapshot(snapdisk.id())
 *             .type("pd-ssd")
 *             .region("us-central1")
 *             .physicalBlockSizeBytes(4096)
 *             .replicaZones(
 *                 "us-central1-a",
 *                 "us-central1-f")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   regiondisk:
 *     type: gcp:compute:RegionDisk
 *     properties:
 *       name: my-region-disk
 *       snapshot: ${snapdisk.id}
 *       type: pd-ssd
 *       region: us-central1
 *       physicalBlockSizeBytes: 4096
 *       replicaZones:
 *         - us-central1-a
 *         - us-central1-f
 *   disk:
 *     type: gcp:compute:Disk
 *     properties:
 *       name: my-disk
 *       image: debian-cloud/debian-11
 *       size: 50
 *       type: pd-ssd
 *       zone: us-central1-a
 *   snapdisk:
 *     type: gcp:compute:Snapshot
 *     properties:
 *       name: my-snapshot
 *       sourceDisk: ${disk.name}
 *       zone: us-central1-a
 * ```
 * 
 * ### Region Disk Async
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const primary = new gcp.compute.RegionDisk("primary", {
 *     name: "primary-region-disk",
 *     type: "pd-ssd",
 *     region: "us-central1",
 *     physicalBlockSizeBytes: 4096,
 *     replicaZones: [
 *         "us-central1-a",
 *         "us-central1-f",
 *     ],
 * });
 * const secondary = new gcp.compute.RegionDisk("secondary", {
 *     name: "secondary-region-disk",
 *     type: "pd-ssd",
 *     region: "us-east1",
 *     physicalBlockSizeBytes: 4096,
 *     asyncPrimaryDisk: {
 *         disk: primary.id,
 *     },
 *     replicaZones: [
 *         "us-east1-b",
 *         "us-east1-c",
 *     ],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * primary = gcp.compute.RegionDisk("primary",
 *     name="primary-region-disk",
 *     type="pd-ssd",
 *     region="us-central1",
 *     physical_block_size_bytes=4096,
 *     replica_zones=[
 *         "us-central1-a",
 *         "us-central1-f",
 *     ])
 * secondary = gcp.compute.RegionDisk("secondary",
 *     name="secondary-region-disk",
 *     type="pd-ssd",
 *     region="us-east1",
 *     physical_block_size_bytes=4096,
 *     async_primary_disk=gcp.compute.RegionDiskAsyncPrimaryDiskArgs(
 *         disk=primary.id,
 *     ),
 *     replica_zones=[
 *         "us-east1-b",
 *         "us-east1-c",
 *     ])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var primary = new Gcp.Compute.RegionDisk("primary", new()
 *     {
 *         Name = "primary-region-disk",
 *         Type = "pd-ssd",
 *         Region = "us-central1",
 *         PhysicalBlockSizeBytes = 4096,
 *         ReplicaZones = new[]
 *         {
 *             "us-central1-a",
 *             "us-central1-f",
 *         },
 *     });
 *     var secondary = new Gcp.Compute.RegionDisk("secondary", new()
 *     {
 *         Name = "secondary-region-disk",
 *         Type = "pd-ssd",
 *         Region = "us-east1",
 *         PhysicalBlockSizeBytes = 4096,
 *         AsyncPrimaryDisk = new Gcp.Compute.Inputs.RegionDiskAsyncPrimaryDiskArgs
 *         {
 *             Disk = primary.Id,
 *         },
 *         ReplicaZones = new[]
 *         {
 *             "us-east1-b",
 *             "us-east1-c",
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		primary, err := compute.NewRegionDisk(ctx, "primary", &compute.RegionDiskArgs{
 * 			Name:                   pulumi.String("primary-region-disk"),
 * 			Type:                   pulumi.String("pd-ssd"),
 * 			Region:                 pulumi.String("us-central1"),
 * 			PhysicalBlockSizeBytes: pulumi.Int(4096),
 * 			ReplicaZones: pulumi.StringArray{
 * 				pulumi.String("us-central1-a"),
 * 				pulumi.String("us-central1-f"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = compute.NewRegionDisk(ctx, "secondary", &compute.RegionDiskArgs{
 * 			Name:                   pulumi.String("secondary-region-disk"),
 * 			Type:                   pulumi.String("pd-ssd"),
 * 			Region:                 pulumi.String("us-east1"),
 * 			PhysicalBlockSizeBytes: pulumi.Int(4096),
 * 			AsyncPrimaryDisk: &compute.RegionDiskAsyncPrimaryDiskArgs{
 * 				Disk: primary.ID(),
 * 			},
 * 			ReplicaZones: pulumi.StringArray{
 * 				pulumi.String("us-east1-b"),
 * 				pulumi.String("us-east1-c"),
 * 			},
 * 		})
 * 		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.RegionDisk;
 * import com.pulumi.gcp.compute.RegionDiskArgs;
 * import com.pulumi.gcp.compute.inputs.RegionDiskAsyncPrimaryDiskArgs;
 * 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 primary = new RegionDisk("primary", RegionDiskArgs.builder()
 *             .name("primary-region-disk")
 *             .type("pd-ssd")
 *             .region("us-central1")
 *             .physicalBlockSizeBytes(4096)
 *             .replicaZones(
 *                 "us-central1-a",
 *                 "us-central1-f")
 *             .build());
 *         var secondary = new RegionDisk("secondary", RegionDiskArgs.builder()
 *             .name("secondary-region-disk")
 *             .type("pd-ssd")
 *             .region("us-east1")
 *             .physicalBlockSizeBytes(4096)
 *             .asyncPrimaryDisk(RegionDiskAsyncPrimaryDiskArgs.builder()
 *                 .disk(primary.id())
 *                 .build())
 *             .replicaZones(
 *                 "us-east1-b",
 *                 "us-east1-c")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   primary:
 *     type: gcp:compute:RegionDisk
 *     properties:
 *       name: primary-region-disk
 *       type: pd-ssd
 *       region: us-central1
 *       physicalBlockSizeBytes: 4096
 *       replicaZones:
 *         - us-central1-a
 *         - us-central1-f
 *   secondary:
 *     type: gcp:compute:RegionDisk
 *     properties:
 *       name: secondary-region-disk
 *       type: pd-ssd
 *       region: us-east1
 *       physicalBlockSizeBytes: 4096
 *       asyncPrimaryDisk:
 *         disk: ${primary.id}
 *       replicaZones:
 *         - us-east1-b
 *         - us-east1-c
 * ```
 * 
 * ### Region Disk Features
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const regiondisk = new gcp.compute.RegionDisk("regiondisk", {
 *     name: "my-region-features-disk",
 *     type: "pd-ssd",
 *     region: "us-central1",
 *     physicalBlockSizeBytes: 4096,
 *     guestOsFeatures: [
 *         {
 *             type: "SECURE_BOOT",
 *         },
 *         {
 *             type: "MULTI_IP_SUBNET",
 *         },
 *         {
 *             type: "WINDOWS",
 *         },
 *     ],
 *     licenses: ["https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-core"],
 *     replicaZones: [
 *         "us-central1-a",
 *         "us-central1-f",
 *     ],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * regiondisk = gcp.compute.RegionDisk("regiondisk",
 *     name="my-region-features-disk",
 *     type="pd-ssd",
 *     region="us-central1",
 *     physical_block_size_bytes=4096,
 *     guest_os_features=[
 *         gcp.compute.RegionDiskGuestOsFeatureArgs(
 *             type="SECURE_BOOT",
 *         ),
 *         gcp.compute.RegionDiskGuestOsFeatureArgs(
 *             type="MULTI_IP_SUBNET",
 *         ),
 *         gcp.compute.RegionDiskGuestOsFeatureArgs(
 *             type="WINDOWS",
 *         ),
 *     ],
 *     licenses=["https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-core"],
 *     replica_zones=[
 *         "us-central1-a",
 *         "us-central1-f",
 *     ])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var regiondisk = new Gcp.Compute.RegionDisk("regiondisk", new()
 *     {
 *         Name = "my-region-features-disk",
 *         Type = "pd-ssd",
 *         Region = "us-central1",
 *         PhysicalBlockSizeBytes = 4096,
 *         GuestOsFeatures = new[]
 *         {
 *             new Gcp.Compute.Inputs.RegionDiskGuestOsFeatureArgs
 *             {
 *                 Type = "SECURE_BOOT",
 *             },
 *             new Gcp.Compute.Inputs.RegionDiskGuestOsFeatureArgs
 *             {
 *                 Type = "MULTI_IP_SUBNET",
 *             },
 *             new Gcp.Compute.Inputs.RegionDiskGuestOsFeatureArgs
 *             {
 *                 Type = "WINDOWS",
 *             },
 *         },
 *         Licenses = new[]
 *         {
 *             "https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-core",
 *         },
 *         ReplicaZones = new[]
 *         {
 *             "us-central1-a",
 *             "us-central1-f",
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := compute.NewRegionDisk(ctx, "regiondisk", &compute.RegionDiskArgs{
 * 			Name:                   pulumi.String("my-region-features-disk"),
 * 			Type:                   pulumi.String("pd-ssd"),
 * 			Region:                 pulumi.String("us-central1"),
 * 			PhysicalBlockSizeBytes: pulumi.Int(4096),
 * 			GuestOsFeatures: compute.RegionDiskGuestOsFeatureArray{
 * 				&compute.RegionDiskGuestOsFeatureArgs{
 * 					Type: pulumi.String("SECURE_BOOT"),
 * 				},
 * 				&compute.RegionDiskGuestOsFeatureArgs{
 * 					Type: pulumi.String("MULTI_IP_SUBNET"),
 * 				},
 * 				&compute.RegionDiskGuestOsFeatureArgs{
 * 					Type: pulumi.String("WINDOWS"),
 * 				},
 * 			},
 * 			Licenses: pulumi.StringArray{
 * 				pulumi.String("https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-core"),
 * 			},
 * 			ReplicaZones: pulumi.StringArray{
 * 				pulumi.String("us-central1-a"),
 * 				pulumi.String("us-central1-f"),
 * 			},
 * 		})
 * 		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.RegionDisk;
 * import com.pulumi.gcp.compute.RegionDiskArgs;
 * import com.pulumi.gcp.compute.inputs.RegionDiskGuestOsFeatureArgs;
 * 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 regiondisk = new RegionDisk("regiondisk", RegionDiskArgs.builder()
 *             .name("my-region-features-disk")
 *             .type("pd-ssd")
 *             .region("us-central1")
 *             .physicalBlockSizeBytes(4096)
 *             .guestOsFeatures(
 *                 RegionDiskGuestOsFeatureArgs.builder()
 *                     .type("SECURE_BOOT")
 *                     .build(),
 *                 RegionDiskGuestOsFeatureArgs.builder()
 *                     .type("MULTI_IP_SUBNET")
 *                     .build(),
 *                 RegionDiskGuestOsFeatureArgs.builder()
 *                     .type("WINDOWS")
 *                     .build())
 *             .licenses("https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-core")
 *             .replicaZones(
 *                 "us-central1-a",
 *                 "us-central1-f")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   regiondisk:
 *     type: gcp:compute:RegionDisk
 *     properties:
 *       name: my-region-features-disk
 *       type: pd-ssd
 *       region: us-central1
 *       physicalBlockSizeBytes: 4096
 *       guestOsFeatures:
 *         - type: SECURE_BOOT
 *         - type: MULTI_IP_SUBNET
 *         - type: WINDOWS
 *       licenses:
 *         - https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-core
 *       replicaZones:
 *         - us-central1-a
 *         - us-central1-f
 * ```
 * 
 * ## Import
 * RegionDisk can be imported using any of these accepted formats:
 * * `projects/{{project}}/regions/{{region}}/disks/{{name}}`
 * * `{{project}}/{{region}}/{{name}}`
 * * `{{region}}/{{name}}`
 * * `{{name}}`
 * When using the `pulumi import` command, RegionDisk can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:compute/regionDisk:RegionDisk default projects/{{project}}/regions/{{region}}/disks/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:compute/regionDisk:RegionDisk default {{project}}/{{region}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:compute/regionDisk:RegionDisk default {{region}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:compute/regionDisk:RegionDisk default {{name}}
 * ```
 * @property asyncPrimaryDisk A nested object resource
 * Structure is documented below.
 * @property description An optional description of this resource. Provide this property when
 * you create the resource.
 * @property diskEncryptionKey Encrypts the disk using a customer-supplied encryption key.
 * After you encrypt a disk with a customer-supplied key, you must
 * provide the same key if you use the disk later (e.g. to create a disk
 * snapshot or an image, or to attach the disk to a virtual machine).
 * Customer-supplied encryption keys do not protect access to metadata of
 * the disk.
 * If you do not provide an encryption key when creating the disk, then
 * the disk will be encrypted using an automatically generated key and
 * you do not need to provide a key to use the disk later.
 * Structure is documented below.
 * @property guestOsFeatures A list of features to enable on the guest operating system.
 * Applicable only for bootable disks.
 * Structure is documented below.
 * @property interface Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI.
 * > **Warning:** `interface` is deprecated and will be removed in a future major release. This field is no longer used and can be safely removed from your configurations; disk interfaces are automatically determined on attachment.
 * @property labels Labels to apply to this disk.  A list of key->value pairs.
 * **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 licenses Any applicable license URI.
 * @property name Name of the resource. Provided by the client when the resource is
 * created. The name must be 1-63 characters long, and comply with
 * RFC1035. Specifically, the name must be 1-63 characters long and match
 * the regular expression `a-z?` which means the
 * first character must be a lowercase letter, and all following
 * characters must be a dash, lowercase letter, or digit, except the last
 * character, which cannot be a dash.
 * @property physicalBlockSizeBytes Physical block size of the persistent disk, in bytes. If not present
 * in a request, a default value is used. Currently supported sizes
 * are 4096 and 16384, other sizes may be added in the future.
 * If an unsupported value is requested, the error message will list
 * the supported values for the caller's project.
 * @property project The ID of the project in which the resource belongs.
 * If it is not provided, the provider project is used.
 * @property region A reference to the region where the disk resides.
 * @property replicaZones URLs of the zones where the disk should be replicated to.
 * - - -
 * @property size Size of the persistent disk, specified in GB. You can specify this
 * field when creating a persistent disk using the sourceImage or
 * sourceSnapshot parameter, or specify it alone to create an empty
 * persistent disk.
 * If you specify this field along with sourceImage or sourceSnapshot,
 * the value of sizeGb must not be less than the size of the sourceImage
 * or the size of the snapshot.
 * @property snapshot The source snapshot used to create this disk. You can provide this as
 * a partial or full URL to the resource. For example, the following are
 * valid values:
 * * `https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot`
 * * `projects/project/global/snapshots/snapshot`
 * * `global/snapshots/snapshot`
 * @property sourceDisk The source disk used to create this disk. You can provide this as a partial or full URL to the resource.
 * For example, the following are valid values:
 * * https://www.googleapis.com/compute/v1/projects/{project}/zones/{zone}/disks/{disk}
 * * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/disks/{disk}
 * * projects/{project}/zones/{zone}/disks/{disk}
 * * projects/{project}/regions/{region}/disks/{disk}
 * * zones/{zone}/disks/{disk}
 * * regions/{region}/disks/{disk}
 * @property sourceSnapshotEncryptionKey The customer-supplied encryption key of the source snapshot. Required
 * if the source snapshot is protected by a customer-supplied encryption
 * key.
 * Structure is documented below.
 * @property type URL of the disk type resource describing which disk type to use to
 * create the disk. Provide this when creating the disk.
 */
public data class RegionDiskArgs(
    public val asyncPrimaryDisk: Output? = null,
    public val description: Output? = null,
    public val diskEncryptionKey: Output? = null,
    public val guestOsFeatures: Output>? = null,
    @Deprecated(
        message = """
  `interface` is deprecated and will be removed in a future major release. This field is no longer
      used and can be safely removed from your configurations; disk interfaces are automatically
      determined on attachment.
  """,
    )
    public val `interface`: Output? = null,
    public val labels: Output>? = null,
    public val licenses: Output>? = null,
    public val name: Output? = null,
    public val physicalBlockSizeBytes: Output? = null,
    public val project: Output? = null,
    public val region: Output? = null,
    public val replicaZones: Output>? = null,
    public val size: Output? = null,
    public val snapshot: Output? = null,
    public val sourceDisk: Output? = null,
    public val sourceSnapshotEncryptionKey: Output? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.RegionDiskArgs =
        com.pulumi.gcp.compute.RegionDiskArgs.builder()
            .asyncPrimaryDisk(asyncPrimaryDisk?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .diskEncryptionKey(diskEncryptionKey?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .guestOsFeatures(
                guestOsFeatures?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .interface_(`interface`?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .licenses(licenses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .physicalBlockSizeBytes(physicalBlockSizeBytes?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .region(region?.applyValue({ args0 -> args0 }))
            .replicaZones(replicaZones?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .size(size?.applyValue({ args0 -> args0 }))
            .snapshot(snapshot?.applyValue({ args0 -> args0 }))
            .sourceDisk(sourceDisk?.applyValue({ args0 -> args0 }))
            .sourceSnapshotEncryptionKey(
                sourceSnapshotEncryptionKey?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegionDiskArgs].
 */
@PulumiTagMarker
public class RegionDiskArgsBuilder internal constructor() {
    private var asyncPrimaryDisk: Output? = null

    private var description: Output? = null

    private var diskEncryptionKey: Output? = null

    private var guestOsFeatures: Output>? = null

    private var `interface`: Output? = null

    private var labels: Output>? = null

    private var licenses: Output>? = null

    private var name: Output? = null

    private var physicalBlockSizeBytes: Output? = null

    private var project: Output? = null

    private var region: Output? = null

    private var replicaZones: Output>? = null

    private var size: Output? = null

    private var snapshot: Output? = null

    private var sourceDisk: Output? = null

    private var sourceSnapshotEncryptionKey: Output? = null

    private var type: Output? = null

    /**
     * @param value A nested object resource
     * Structure is documented below.
     */
    @JvmName("opreqqmqjrylgtwk")
    public suspend fun asyncPrimaryDisk(`value`: Output) {
        this.asyncPrimaryDisk = value
    }

    /**
     * @param value An optional description of this resource. Provide this property when
     * you create the resource.
     */
    @JvmName("dghijlxmbuffotkr")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Encrypts the disk using a customer-supplied encryption key.
     * After you encrypt a disk with a customer-supplied key, you must
     * provide the same key if you use the disk later (e.g. to create a disk
     * snapshot or an image, or to attach the disk to a virtual machine).
     * Customer-supplied encryption keys do not protect access to metadata of
     * the disk.
     * If you do not provide an encryption key when creating the disk, then
     * the disk will be encrypted using an automatically generated key and
     * you do not need to provide a key to use the disk later.
     * Structure is documented below.
     */
    @JvmName("ltyvveyjttvudegg")
    public suspend fun diskEncryptionKey(`value`: Output) {
        this.diskEncryptionKey = value
    }

    /**
     * @param value A list of features to enable on the guest operating system.
     * Applicable only for bootable disks.
     * Structure is documented below.
     */
    @JvmName("uotcfqapbgabnyia")
    public suspend fun guestOsFeatures(`value`: Output>) {
        this.guestOsFeatures = value
    }

    @JvmName("umhyoaclhbypnyrf")
    public suspend fun guestOsFeatures(vararg values: Output) {
        this.guestOsFeatures = Output.all(values.asList())
    }

    /**
     * @param values A list of features to enable on the guest operating system.
     * Applicable only for bootable disks.
     * Structure is documented below.
     */
    @JvmName("bemnlwjvflkwfkhr")
    public suspend fun guestOsFeatures(values: List>) {
        this.guestOsFeatures = Output.all(values)
    }

    /**
     * @param value Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI.
     * > **Warning:** `interface` is deprecated and will be removed in a future major release. This field is no longer used and can be safely removed from your configurations; disk interfaces are automatically determined on attachment.
     */
    @Deprecated(
        message = """
  `interface` is deprecated and will be removed in a future major release. This field is no longer
      used and can be safely removed from your configurations; disk interfaces are automatically
      determined on attachment.
  """,
    )
    @JvmName("tdpwtqtksihqtcuu")
    public suspend fun `interface`(`value`: Output) {
        this.`interface` = value
    }

    /**
     * @param value Labels to apply to this disk.  A list of key->value pairs.
     * **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("fnwdpmxhksddclvk")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value Any applicable license URI.
     */
    @JvmName("aqmjnijkgqkdrhfh")
    public suspend fun licenses(`value`: Output>) {
        this.licenses = value
    }

    @JvmName("tbotleuypxetlmfu")
    public suspend fun licenses(vararg values: Output) {
        this.licenses = Output.all(values.asList())
    }

    /**
     * @param values Any applicable license URI.
     */
    @JvmName("xwgohrgksfkahdmq")
    public suspend fun licenses(values: List>) {
        this.licenses = Output.all(values)
    }

    /**
     * @param value Name of the resource. Provided by the client when the resource is
     * created. The name must be 1-63 characters long, and comply with
     * RFC1035. Specifically, the name must be 1-63 characters long and match
     * the regular expression `a-z?` which means the
     * first character must be a lowercase letter, and all following
     * characters must be a dash, lowercase letter, or digit, except the last
     * character, which cannot be a dash.
     */
    @JvmName("pddgunojfgbstlwe")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Physical block size of the persistent disk, in bytes. If not present
     * in a request, a default value is used. Currently supported sizes
     * are 4096 and 16384, other sizes may be added in the future.
     * If an unsupported value is requested, the error message will list
     * the supported values for the caller's project.
     */
    @JvmName("yochikvwhqdnfjdk")
    public suspend fun physicalBlockSizeBytes(`value`: Output) {
        this.physicalBlockSizeBytes = value
    }

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

    /**
     * @param value A reference to the region where the disk resides.
     */
    @JvmName("fykbyhbjlqaemmim")
    public suspend fun region(`value`: Output) {
        this.region = value
    }

    /**
     * @param value URLs of the zones where the disk should be replicated to.
     * - - -
     */
    @JvmName("qknibvjhrxvxjquq")
    public suspend fun replicaZones(`value`: Output>) {
        this.replicaZones = value
    }

    @JvmName("ebahkmvwbediotgg")
    public suspend fun replicaZones(vararg values: Output) {
        this.replicaZones = Output.all(values.asList())
    }

    /**
     * @param values URLs of the zones where the disk should be replicated to.
     * - - -
     */
    @JvmName("oanhfuhdxchqwonb")
    public suspend fun replicaZones(values: List>) {
        this.replicaZones = Output.all(values)
    }

    /**
     * @param value Size of the persistent disk, specified in GB. You can specify this
     * field when creating a persistent disk using the sourceImage or
     * sourceSnapshot parameter, or specify it alone to create an empty
     * persistent disk.
     * If you specify this field along with sourceImage or sourceSnapshot,
     * the value of sizeGb must not be less than the size of the sourceImage
     * or the size of the snapshot.
     */
    @JvmName("ovcawftqcvmlaimm")
    public suspend fun size(`value`: Output) {
        this.size = value
    }

    /**
     * @param value The source snapshot used to create this disk. You can provide this as
     * a partial or full URL to the resource. For example, the following are
     * valid values:
     * * `https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot`
     * * `projects/project/global/snapshots/snapshot`
     * * `global/snapshots/snapshot`
     */
    @JvmName("peiirteijuenxjiy")
    public suspend fun snapshot(`value`: Output) {
        this.snapshot = value
    }

    /**
     * @param value The source disk used to create this disk. You can provide this as a partial or full URL to the resource.
     * For example, the following are valid values:
     * * https://www.googleapis.com/compute/v1/projects/{project}/zones/{zone}/disks/{disk}
     * * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/disks/{disk}
     * * projects/{project}/zones/{zone}/disks/{disk}
     * * projects/{project}/regions/{region}/disks/{disk}
     * * zones/{zone}/disks/{disk}
     * * regions/{region}/disks/{disk}
     */
    @JvmName("pwhdvdwceycevswf")
    public suspend fun sourceDisk(`value`: Output) {
        this.sourceDisk = value
    }

    /**
     * @param value The customer-supplied encryption key of the source snapshot. Required
     * if the source snapshot is protected by a customer-supplied encryption
     * key.
     * Structure is documented below.
     */
    @JvmName("qdrmsewsiotrlwnb")
    public suspend fun sourceSnapshotEncryptionKey(`value`: Output) {
        this.sourceSnapshotEncryptionKey = value
    }

    /**
     * @param value URL of the disk type resource describing which disk type to use to
     * create the disk. Provide this when creating the disk.
     */
    @JvmName("coshgumbmfavoesd")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value A nested object resource
     * Structure is documented below.
     */
    @JvmName("pqfgsfrtnxiwuhte")
    public suspend fun asyncPrimaryDisk(`value`: RegionDiskAsyncPrimaryDiskArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.asyncPrimaryDisk = mapped
    }

    /**
     * @param argument A nested object resource
     * Structure is documented below.
     */
    @JvmName("xungnfeigyarywod")
    public suspend fun asyncPrimaryDisk(argument: suspend RegionDiskAsyncPrimaryDiskArgsBuilder.() -> Unit) {
        val toBeMapped = RegionDiskAsyncPrimaryDiskArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.asyncPrimaryDisk = mapped
    }

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

    /**
     * @param value Encrypts the disk using a customer-supplied encryption key.
     * After you encrypt a disk with a customer-supplied key, you must
     * provide the same key if you use the disk later (e.g. to create a disk
     * snapshot or an image, or to attach the disk to a virtual machine).
     * Customer-supplied encryption keys do not protect access to metadata of
     * the disk.
     * If you do not provide an encryption key when creating the disk, then
     * the disk will be encrypted using an automatically generated key and
     * you do not need to provide a key to use the disk later.
     * Structure is documented below.
     */
    @JvmName("wgeymgtqaebvydcy")
    public suspend fun diskEncryptionKey(`value`: RegionDiskDiskEncryptionKeyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskEncryptionKey = mapped
    }

    /**
     * @param argument Encrypts the disk using a customer-supplied encryption key.
     * After you encrypt a disk with a customer-supplied key, you must
     * provide the same key if you use the disk later (e.g. to create a disk
     * snapshot or an image, or to attach the disk to a virtual machine).
     * Customer-supplied encryption keys do not protect access to metadata of
     * the disk.
     * If you do not provide an encryption key when creating the disk, then
     * the disk will be encrypted using an automatically generated key and
     * you do not need to provide a key to use the disk later.
     * Structure is documented below.
     */
    @JvmName("jfsqqtpunsoimxst")
    public suspend fun diskEncryptionKey(argument: suspend RegionDiskDiskEncryptionKeyArgsBuilder.() -> Unit) {
        val toBeMapped = RegionDiskDiskEncryptionKeyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.diskEncryptionKey = mapped
    }

    /**
     * @param value A list of features to enable on the guest operating system.
     * Applicable only for bootable disks.
     * Structure is documented below.
     */
    @JvmName("hkabmjhoanylvoty")
    public suspend fun guestOsFeatures(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.guestOsFeatures = mapped
    }

    /**
     * @param argument A list of features to enable on the guest operating system.
     * Applicable only for bootable disks.
     * Structure is documented below.
     */
    @JvmName("eqbajeqlaucutjmm")
    public suspend fun guestOsFeatures(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            RegionDiskGuestOsFeatureArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.guestOsFeatures = mapped
    }

    /**
     * @param argument A list of features to enable on the guest operating system.
     * Applicable only for bootable disks.
     * Structure is documented below.
     */
    @JvmName("kneoecffvlanikvp")
    public suspend fun guestOsFeatures(vararg argument: suspend RegionDiskGuestOsFeatureArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            RegionDiskGuestOsFeatureArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.guestOsFeatures = mapped
    }

    /**
     * @param argument A list of features to enable on the guest operating system.
     * Applicable only for bootable disks.
     * Structure is documented below.
     */
    @JvmName("ntqjukthewhlglxp")
    public suspend fun guestOsFeatures(argument: suspend RegionDiskGuestOsFeatureArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            RegionDiskGuestOsFeatureArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.guestOsFeatures = mapped
    }

    /**
     * @param values A list of features to enable on the guest operating system.
     * Applicable only for bootable disks.
     * Structure is documented below.
     */
    @JvmName("trtxhwsavafqccfe")
    public suspend fun guestOsFeatures(vararg values: RegionDiskGuestOsFeatureArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.guestOsFeatures = mapped
    }

    /**
     * @param value Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI.
     * > **Warning:** `interface` is deprecated and will be removed in a future major release. This field is no longer used and can be safely removed from your configurations; disk interfaces are automatically determined on attachment.
     */
    @Deprecated(
        message = """
  `interface` is deprecated and will be removed in a future major release. This field is no longer
      used and can be safely removed from your configurations; disk interfaces are automatically
      determined on attachment.
  """,
    )
    @JvmName("xgekvohprjvolalu")
    public suspend fun `interface`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`interface` = mapped
    }

    /**
     * @param value Labels to apply to this disk.  A list of key->value pairs.
     * **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("nxcdrhgnphfkaynr")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values Labels to apply to this disk.  A list of key->value pairs.
     * **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("kftkywrvsbsyxbjv")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value Any applicable license URI.
     */
    @JvmName("hmiosevablujnxje")
    public suspend fun licenses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.licenses = mapped
    }

    /**
     * @param values Any applicable license URI.
     */
    @JvmName("pjixfkvdtmmxvkph")
    public suspend fun licenses(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.licenses = mapped
    }

    /**
     * @param value Name of the resource. Provided by the client when the resource is
     * created. The name must be 1-63 characters long, and comply with
     * RFC1035. Specifically, the name must be 1-63 characters long and match
     * the regular expression `a-z?` which means the
     * first character must be a lowercase letter, and all following
     * characters must be a dash, lowercase letter, or digit, except the last
     * character, which cannot be a dash.
     */
    @JvmName("qtrqyumktpafbcwh")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Physical block size of the persistent disk, in bytes. If not present
     * in a request, a default value is used. Currently supported sizes
     * are 4096 and 16384, other sizes may be added in the future.
     * If an unsupported value is requested, the error message will list
     * the supported values for the caller's project.
     */
    @JvmName("dnhiivfnjcagxohb")
    public suspend fun physicalBlockSizeBytes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.physicalBlockSizeBytes = mapped
    }

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

    /**
     * @param value A reference to the region where the disk resides.
     */
    @JvmName("wagwudbxeigshpxa")
    public suspend fun region(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.region = mapped
    }

    /**
     * @param value URLs of the zones where the disk should be replicated to.
     * - - -
     */
    @JvmName("hcaharuobsviepbq")
    public suspend fun replicaZones(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.replicaZones = mapped
    }

    /**
     * @param values URLs of the zones where the disk should be replicated to.
     * - - -
     */
    @JvmName("dwdejgicgwpyifwy")
    public suspend fun replicaZones(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.replicaZones = mapped
    }

    /**
     * @param value Size of the persistent disk, specified in GB. You can specify this
     * field when creating a persistent disk using the sourceImage or
     * sourceSnapshot parameter, or specify it alone to create an empty
     * persistent disk.
     * If you specify this field along with sourceImage or sourceSnapshot,
     * the value of sizeGb must not be less than the size of the sourceImage
     * or the size of the snapshot.
     */
    @JvmName("ivgkkypyyukbjdgj")
    public suspend fun size(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.size = mapped
    }

    /**
     * @param value The source snapshot used to create this disk. You can provide this as
     * a partial or full URL to the resource. For example, the following are
     * valid values:
     * * `https://www.googleapis.com/compute/v1/projects/project/global/snapshots/snapshot`
     * * `projects/project/global/snapshots/snapshot`
     * * `global/snapshots/snapshot`
     */
    @JvmName("siqyfqxdahreiohx")
    public suspend fun snapshot(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.snapshot = mapped
    }

    /**
     * @param value The source disk used to create this disk. You can provide this as a partial or full URL to the resource.
     * For example, the following are valid values:
     * * https://www.googleapis.com/compute/v1/projects/{project}/zones/{zone}/disks/{disk}
     * * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/disks/{disk}
     * * projects/{project}/zones/{zone}/disks/{disk}
     * * projects/{project}/regions/{region}/disks/{disk}
     * * zones/{zone}/disks/{disk}
     * * regions/{region}/disks/{disk}
     */
    @JvmName("dauyjrjqxjqxthml")
    public suspend fun sourceDisk(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceDisk = mapped
    }

    /**
     * @param value The customer-supplied encryption key of the source snapshot. Required
     * if the source snapshot is protected by a customer-supplied encryption
     * key.
     * Structure is documented below.
     */
    @JvmName("evigymdihtiactes")
    public suspend fun sourceSnapshotEncryptionKey(`value`: RegionDiskSourceSnapshotEncryptionKeyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceSnapshotEncryptionKey = mapped
    }

    /**
     * @param argument The customer-supplied encryption key of the source snapshot. Required
     * if the source snapshot is protected by a customer-supplied encryption
     * key.
     * Structure is documented below.
     */
    @JvmName("mwrypinojqdbwlcv")
    public suspend fun sourceSnapshotEncryptionKey(argument: suspend RegionDiskSourceSnapshotEncryptionKeyArgsBuilder.() -> Unit) {
        val toBeMapped = RegionDiskSourceSnapshotEncryptionKeyArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sourceSnapshotEncryptionKey = mapped
    }

    /**
     * @param value URL of the disk type resource describing which disk type to use to
     * create the disk. Provide this when creating the disk.
     */
    @JvmName("gvqtkmpoymoqopfs")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): RegionDiskArgs = RegionDiskArgs(
        asyncPrimaryDisk = asyncPrimaryDisk,
        description = description,
        diskEncryptionKey = diskEncryptionKey,
        guestOsFeatures = guestOsFeatures,
        `interface` = `interface`,
        labels = labels,
        licenses = licenses,
        name = name,
        physicalBlockSizeBytes = physicalBlockSizeBytes,
        project = project,
        region = region,
        replicaZones = replicaZones,
        size = size,
        snapshot = snapshot,
        sourceDisk = sourceDisk,
        sourceSnapshotEncryptionKey = sourceSnapshotEncryptionKey,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy