# GKE Hub V1beta1 API - Class Google::Cloud::GkeHub::V1beta1::KubernetesResource (v0.21.0)

0.21.0 (latest) 0.20.1 0.19.0 0.18.1 0.17.0 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the GKE Hub V1beta1 API class Google::Cloud::GkeHub::V1beta1::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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #connect_resources

    def connect_resources() -> ::Array<::Google::Cloud::GkeHub::V1beta1::ResourceManifest>

**Returns**

- (::Array\<[::Google::Cloud::GkeHub::V1beta1::ResourceManifest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1beta1/latest/Google-Cloud-GkeHub-V1beta1-ResourceManifest)\>) --- 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.

### #membership_cr_manifest

    def membership_cr_manifest() -> ::String

**Returns**

- (::String) --- 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.

### #membership_cr_manifest=

    def membership_cr_manifest=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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.

### #membership_resources

    def membership_resources() -> ::Array<::Google::Cloud::GkeHub::V1beta1::ResourceManifest>

**Returns**

- (::Array\<[::Google::Cloud::GkeHub::V1beta1::ResourceManifest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1beta1/latest/Google-Cloud-GkeHub-V1beta1-ResourceManifest)\>) --- 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.

### #resource_options

    def resource_options() -> ::Google::Cloud::GkeHub::V1beta1::ResourceOptions

**Returns**

- ([::Google::Cloud::GkeHub::V1beta1::ResourceOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1beta1/latest/Google-Cloud-GkeHub-V1beta1-ResourceOptions)) --- Optional. Options for Kubernetes resource generation.

### #resource_options=

    def resource_options=(value) -> ::Google::Cloud::GkeHub::V1beta1::ResourceOptions

**Parameter**

- **value** ([::Google::Cloud::GkeHub::V1beta1::ResourceOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1beta1/latest/Google-Cloud-GkeHub-V1beta1-ResourceOptions)) --- Optional. Options for Kubernetes resource generation.
**Returns**

- ([::Google::Cloud::GkeHub::V1beta1::ResourceOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1beta1/latest/Google-Cloud-GkeHub-V1beta1-ResourceOptions)) --- Optional. Options for Kubernetes resource generation.