# GKE Hub v1beta1 API - Class KubernetesResource (2.0.0-beta09)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta09 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.KubernetesResource)
- [2.0.0-beta08](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/2.0.0-beta08/Google.Cloud.GkeHub.V1Beta1.KubernetesResource)
- [1.0.0-beta04](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/1.0.0-beta04/Google.Cloud.GkeHub.V1Beta1.KubernetesResource)

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

Reference documentation and code samples for the GKE Hub v1beta1 API class KubernetesResource.

KubernetesResource contains the YAML manifests and configuration for
Membership Kubernetes resources in the cluster. After CreateMembership or
UpdateMembership, these resources should be re-applied in the cluster.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[KubernetesResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.KubernetesResource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[KubernetesResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.KubernetesResource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[KubernetesResource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.KubernetesResource), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## 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.GkeHub.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1)

## Assembly

Google.Cloud.GkeHub.V1Beta1.dll

## Constructors

### KubernetesResource()

    public KubernetesResource()

### KubernetesResource(KubernetesResource)

    public KubernetesResource(KubernetesResource other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.KubernetesResource` |

## Properties

### ConnectResources

    public RepeatedField<ResourceManifest> ConnectResources { get; }

Output only. The Kubernetes resources for installing the GKE Connect agent

This field is only populated in the Membership returned from a successful
long-running operation from CreateMembership or UpdateMembership. It is not
populated during normal GetMembership or ListMemberships requests. To get
the resource manifest after the initial registration, the caller should
make a UpdateMembership call with an empty field mask.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.ResourceManifest` |   |

### MembershipCrManifest

    public string MembershipCrManifest { get; set; }

Input only. The YAML representation of the Membership CR. This field is
ignored for GKE clusters where Hub can read the CR directly.

Callers should provide the CR that is currently present in the cluster
during CreateMembership or UpdateMembership, or leave this field empty if
none exists. The CR manifest is used to validate the cluster has not been
registered with another Membership.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### MembershipResources

    public RepeatedField<ResourceManifest> MembershipResources { get; }

Output only. Additional Kubernetes resources that need to be applied to the
cluster after Membership creation, and after every update.

This field is only populated in the Membership returned from a successful
long-running operation from CreateMembership or UpdateMembership. It is not
populated during normal GetMembership or ListMemberships requests. To get
the resource manifest after the initial registration, the caller should
make a UpdateMembership call with an empty field mask.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.ResourceManifest` |   |

### ResourceOptions

    public ResourceOptions ResourceOptions { get; set; }

Optional. Options for Kubernetes resource generation.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.ResourceOptions` |   |