1.4.0 (latest) 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class ServiceProjectAttachment : IMessage<ServiceProjectAttachment>, IEquatable<ServiceProjectAttachment>, IDeepCloneable<ServiceProjectAttachment>, IBufferMessage, IMessage

Reference documentation and code samples for the App Hub v1 API class 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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ServiceProjectAttachment

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ServiceProjectAttachment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.ServiceProjectAttachment.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ServiceProjectAttachment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.ServiceProjectAttachment.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ServiceProjectAttachment](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.ServiceProjectAttachment.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AppHub.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.md.txt)

## Assembly

Google.Cloud.AppHub.V1.dll

## Constructors

### ServiceProjectAttachment()

    public ServiceProjectAttachment()

### ServiceProjectAttachment(ServiceProjectAttachment)

    public ServiceProjectAttachment(ServiceProjectAttachment other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ServiceProjectAttachment` |

## Properties

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. Create time.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Timestamp` |   |

### Name

    public string Name { get; set; }

Identifier. The resource name of a ServiceProjectAttachment. Format:
`"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}."`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ServiceProject

    public string ServiceProject { get; set; }

Required. 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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ServiceProjectAsProjectName

    public ProjectName ServiceProjectAsProjectName { get; set; }

[ProjectName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.md.txt)-typed view over the [ServiceProject](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.ServiceProjectAttachment.md.txt#Google_Cloud_AppHub_V1_ServiceProjectAttachment_ServiceProject) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ProjectName` |   |

### ServiceProjectAttachmentName

    public ServiceProjectAttachmentName ServiceProjectAttachmentName { get; set; }

[ServiceProjectAttachmentName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.ServiceProjectAttachmentName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.ServiceProjectAttachment.md.txt#Google_Cloud_AppHub_V1_ServiceProjectAttachment_Name) resource name
property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ServiceProjectAttachmentName` |   |

### State

    public ServiceProjectAttachment.Types.State State { get; set; }

Output only. ServiceProjectAttachment state.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ServiceProjectAttachmentTypesState` |   |

### Uid

    public string Uid { get; set; }

Output only. A globally unique identifier (in UUID4 format) for the
`ServiceProjectAttachment`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |