2.15.0 (latest) 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Artifact Registry v1 API class UpstreamPolicy.

Artifact policy configuration for the repository contents.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[UpstreamPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.UpstreamPolicy.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpstreamPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.UpstreamPolicy.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[UpstreamPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.UpstreamPolicy.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.ArtifactRegistry.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.md.txt)

## Assembly

Google.Cloud.ArtifactRegistry.V1.dll

## Constructors

### UpstreamPolicy()

    public UpstreamPolicy()

### UpstreamPolicy(UpstreamPolicy)

    public UpstreamPolicy(UpstreamPolicy other)

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

## Properties

### Id

    public string Id { get; set; }

The user-provided ID of the upstream policy.

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

### Priority

    public int Priority { get; set; }

Entries with a greater priority value take precedence in the pull order.

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

### Repository

    public string Repository { get; set; }

A reference to the repository resource, for example:
`projects/p1/locations/us-central1/repositories/repo1`.

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

### RepositoryAsRepositoryName

    public RepositoryName RepositoryAsRepositoryName { get; set; }

[RepositoryName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.RepositoryName.md.txt)-typed view over the [Repository](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ArtifactRegistry.V1/latest/Google.Cloud.ArtifactRegistry.V1.UpstreamPolicy.md.txt#Google_Cloud_ArtifactRegistry_V1_UpstreamPolicy_Repository) resource name property.

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