NAME
Google::Cloud::Apphub::V1::ServiceProjectAttachment - Compiled Protocol Buffers messages for google/cloud/apphub/v1/service_project_attachment.proto
SYNOPSIS
use Google::Cloud::Apphub::V1::ServiceProjectAttachment;
my $msg = Google::Cloud::Apphub::V1::ServiceProjectAttachment::ServiceProjectAttachment->new({
name => $name,
service_project => $service_project,
create_time => $create_time,
uid => $uid,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Apphub::V1::ServiceProjectAttachment::ServiceProjectAttachment->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/apphub/v1/service_project_attachment.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::ServiceProjectAttachment::ServiceProjectAttachment
ServiceProjectAttachment represents an attachment from a service project to a host project. Service projects contain the underlying cloud infrastructure resources, and expose these resources to the host project through a ServiceProjectAttachment. With the attachments, the host project can provide an aggregated view of resources across all service projects.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of a ServiceProjectAttachment. Format: `"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}."`
$msg->service_project()/$msg->service_project($value)Type:
StringRequired. Immutable. Service project name in the format: `"projects/abc"` or `"projects/123"`. As input, project name with either project id or number are accepted. As output, this field will contain project number.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Create time.
$msg->uid()/$msg->uid($value)Type:
StringOutput only. A globally unique identifier (in UUID4 format) for the `ServiceProjectAttachment`.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Apphub::V1::ServiceProjectAttachment::State)Output only. ServiceProjectAttachment state.
Enum: ServiceProjectAttachment::State
STATE_UNSPECIFIED=>0CREATING=>1ACTIVE=>2DELETING=>3
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Apphub::V1::ServiceProjectAttachment::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.