NAME

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

SYNOPSIS

use Google::Cloud::Batch::V1::Volume;

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

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/batch/v1/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::V1::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::V1::Volume::NFS)

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

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

    Type: Message (Google::Cloud::Batch::V1::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::V1::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::V1::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::V1::Volume::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.