NAME

Google::Cloud::Apphub::V1::Workload - Compiled Protocol Buffers messages for google/cloud/apphub/v1/workload.proto

SYNOPSIS

use Google::Cloud::Apphub::V1::Workload;

my $msg = Google::Cloud::Apphub::V1::Workload::Workload->new({
    name => $name,
    display_name => $display_name,
    description => $description,
    workload_reference => $workload_reference,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/apphub/v1/workload.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::Apphub::V1::Workload::Workload

Workload is an App Hub data model that contains a discovered workload, which represents a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The resource name of the Workload. Format: `"projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}"`

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

    Type: String

    Optional. User-defined name for the Workload. Can have a maximum length of 63 characters.

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

    Type: String

    Optional. User-defined description of a Workload. Can have a maximum length of 2048 characters.

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

    Type: Message (Google::Cloud::Apphub::V1::Workload::WorkloadReference)

    Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.

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

    Type: Message (Google::Cloud::Apphub::V1::Workload::WorkloadProperties)

    Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.

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

    Type: String

    Required. Immutable. The resource name of the original discovered workload.

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

    Type: Message (Google::Cloud::Apphub::V1::Attributes::Attributes)

    Optional. Consumer provided attributes.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Create time.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Update time.

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

    Type: String

    Output only. A universally unique identifier (UUID) for the `Workload` in the UUID4 format.

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

    Type: Enum (Google::Cloud::Apphub::V1::Workload::State)

    Output only. Workload state.

Enum: Workload::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • ACTIVE => 2

  • DELETING => 3

  • DETACHED => 4

Google::Cloud::Apphub::V1::Workload::WorkloadReference

Reference of an underlying compute resource represented by the Workload.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The underlying compute resource uri.

Google::Cloud::Apphub::V1::Workload::WorkloadProperties

Properties of an underlying compute resource represented by the Workload.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The service project identifier that the underlying cloud resource resides in. Empty for non-cloud resources.

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

    Type: String

    Output only. The location that the underlying compute resource resides in (for example, us-west1).

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

    Type: String

    Output only. The location that the underlying compute resource resides in if it is zonal (for example, us-west1-a).

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

    Type: Message (Google::Cloud::Apphub::V1::Properties::FunctionalType)

    Output only. The type of the workload.

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

    Type: Message (Google::Cloud::Apphub::V1::Workload::WorkloadProperties::ExtendedMetadataEntry)

    Output only. Additional metadata specific to the resource type. The key is a string that identifies the type of metadata and the value is the metadata contents specific to that type. Key format: `apphub.googleapis.com/{metadataType}`

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

    Type: Message (Google::Cloud::Apphub::V1::Properties::Identity)

    Output only. The identity associated with the workload.

Google::Cloud::Apphub::V1::Workload::DiscoveredWorkload

DiscoveredWorkload is a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality. A discovered workload can be registered to an App Hub Workload.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The resource name of the discovered workload. Format: `"projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"`

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

    Type: Message (Google::Cloud::Apphub::V1::Workload::WorkloadReference)

    Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.

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

    Type: Message (Google::Cloud::Apphub::V1::Workload::WorkloadProperties)

    Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Apphub::V1::Workload::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.