NAME

Google::Cloud::Batch::V1alpha::Volume - Compiled Protocol Buffers messages for google/cloud/batch/v1alpha/volume.proto

SYNOPSIS

use Google::Cloud::Batch::V1alpha::Volume;

my $msg = Google::Cloud::Batch::V1alpha::Volume::Volume->new({
    nfs => $nfs,
    pd => $pd,
    gcs => $gcs,
    device_name => $device_name,
});

# Read or update a field
my $val = $msg->nfs();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Batch::V1alpha::Volume::Volume->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/batch/v1alpha/volume.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Batch::V1alpha::Volume::Volume

Volume describes a volume and parameters for it to be mounted to a VM.

Inherits from Protobuf::Message.

Accessors

  • $msg->nfs() / $msg->nfs($value)

    Type: Message (Google::Cloud::Batch::V1alpha::Volume::NFS)

    A Network File System (NFS) volume. For example, a Filestore file share.

  • $msg->pd() / $msg->pd($value)

    Type: Message (Google::Cloud::Batch::V1alpha::Volume::PD)

    Deprecated: please use device_name instead.

  • $msg->gcs() / $msg->gcs($value)

    Type: Message (Google::Cloud::Batch::V1alpha::Volume::GCS)

    A Google Cloud Storage (GCS) volume.

  • $msg->device_name() / $msg->device_name($value)

    Type: String

    Device name of an attached disk volume, which should align with a device_name specified by job.allocation_policy.instances[0].policy.disks[i].device_name or defined by the given instance template in job.allocation_policy.instances[0].instance_template.

  • $msg->mount_path() / $msg->mount_path($value)

    Type: String

    The mount path for the volume, e.g. /mnt/disks/share.

  • $msg->mount_options() / $msg->mount_options($value)

    Type: String

    Mount options vary based on the type of storage volume:

    * For a Cloud Storage bucket, all the mount options provided by the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli) are supported. * For an existing persistent disk, all mount options provided by the [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html) except writing are supported. This is due to restrictions of [multi-writer mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). * For any other disk or a Network File System (NFS), all the mount options provided by the `mount` command are supported.

Google::Cloud::Batch::V1alpha::Volume::NFS

Represents an NFS volume.

Inherits from Protobuf::Message.

Accessors

  • $msg->server() / $msg->server($value)

    Type: String

    The IP address of the NFS.

  • $msg->remote_path() / $msg->remote_path($value)

    Type: String

    Remote source path exported from the NFS, e.g., "/share".

Google::Cloud::Batch::V1alpha::Volume::PD

Deprecated: please use device_name instead.

Inherits from Protobuf::Message.

Accessors

  • $msg->disk() / $msg->disk($value)

    Type: String

    PD disk name, e.g. pd-1.

  • $msg->device() / $msg->device($value)

    Type: String

    PD device name, e.g. persistent-disk-1.

  • $msg->existing() / $msg->existing($value)

    Type: Bool

    Whether this is an existing PD. Default is false. If false, i.e., new PD, we will format it into ext4 and mount to the given path. If true, i.e., existing PD, it should be in ext4 format and we will mount it to the given path.

Google::Cloud::Batch::V1alpha::Volume::GCS

Represents a Google Cloud Storage volume.

Inherits from Protobuf::Message.

Accessors

  • $msg->remote_path() / $msg->remote_path($value)

    Type: String

    Remote path, either a bucket name or a subdirectory of a bucket, e.g.: bucket_name, bucket_name/subdirectory/

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Batch::V1alpha::Volume::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.