Reference documentation and code samples for the GKE Hub V1 API class Google::Cloud::GkeHub::V1::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.
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
defmembership_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=
defmembership_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.
(::Array<::Google::Cloud::GkeHub::V1::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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# GKE Hub V1 API - Class Google::Cloud::GkeHub::V1::KubernetesResource (v2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-V1-KubernetesResource)\n- [2.0.1](/ruby/docs/reference/google-cloud-gke_hub-v1/2.0.1/Google-Cloud-GkeHub-V1-KubernetesResource)\n- [1.2.0](/ruby/docs/reference/google-cloud-gke_hub-v1/1.2.0/Google-Cloud-GkeHub-V1-KubernetesResource)\n- [1.1.0](/ruby/docs/reference/google-cloud-gke_hub-v1/1.1.0/Google-Cloud-GkeHub-V1-KubernetesResource)\n- [1.0.1](/ruby/docs/reference/google-cloud-gke_hub-v1/1.0.1/Google-Cloud-GkeHub-V1-KubernetesResource)\n- [0.10.0](/ruby/docs/reference/google-cloud-gke_hub-v1/0.10.0/Google-Cloud-GkeHub-V1-KubernetesResource)\n- [0.9.0](/ruby/docs/reference/google-cloud-gke_hub-v1/0.9.0/Google-Cloud-GkeHub-V1-KubernetesResource)\n- [0.8.2](/ruby/docs/reference/google-cloud-gke_hub-v1/0.8.2/Google-Cloud-GkeHub-V1-KubernetesResource)\n- [0.7.0](/ruby/docs/reference/google-cloud-gke_hub-v1/0.7.0/Google-Cloud-GkeHub-V1-KubernetesResource)\n- [0.6.0](/ruby/docs/reference/google-cloud-gke_hub-v1/0.6.0/Google-Cloud-GkeHub-V1-KubernetesResource)\n- [0.5.0](/ruby/docs/reference/google-cloud-gke_hub-v1/0.5.0/Google-Cloud-GkeHub-V1-KubernetesResource)\n- [0.4.0](/ruby/docs/reference/google-cloud-gke_hub-v1/0.4.0/Google-Cloud-GkeHub-V1-KubernetesResource)\n- [0.3.0](/ruby/docs/reference/google-cloud-gke_hub-v1/0.3.0/Google-Cloud-GkeHub-V1-KubernetesResource)\n- [0.2.0](/ruby/docs/reference/google-cloud-gke_hub-v1/0.2.0/Google-Cloud-GkeHub-V1-KubernetesResource)\n- [0.1.2](/ruby/docs/reference/google-cloud-gke_hub-v1/0.1.2/Google-Cloud-GkeHub-V1-KubernetesResource) \nReference documentation and code samples for the GKE Hub V1 API class Google::Cloud::GkeHub::V1::KubernetesResource.\n\nKubernetesResource contains the YAML manifests and configuration for\nMembership Kubernetes resources in the cluster. After CreateMembership or\nUpdateMembership, these resources should be re-applied in the cluster. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #connect_resources\n\n def connect_resources() -\u003e ::Array\u003c::Google::Cloud::GkeHub::V1::ResourceManifest\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::GkeHub::V1::ResourceManifest](./Google-Cloud-GkeHub-V1-ResourceManifest)\\\u003e) --- Output only. The Kubernetes resources for installing the GKE Connect agent\n\n\n This field is only populated in the Membership returned from a successful\n long-running operation from CreateMembership or UpdateMembership. It is not\n populated during normal GetMembership or ListMemberships requests. To get\n the resource manifest after the initial registration, the caller should\n make a UpdateMembership call with an empty field mask.\n\n### #membership_cr_manifest\n\n def membership_cr_manifest() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Input only. The YAML representation of the Membership CR. This field is ignored for GKE clusters where Hub can read the CR directly.\n\n Callers should provide the CR that is currently present in the cluster\n during CreateMembership or UpdateMembership, or leave this field empty if\n none exists. The CR manifest is used to validate the cluster has not been\n registered with another Membership.\n\n### #membership_cr_manifest=\n\n def membership_cr_manifest=(value) -\u003e ::String\n\n**Parameter**\n\n- **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.\n\n\n Callers should provide the CR that is currently present in the cluster\n during CreateMembership or UpdateMembership, or leave this field empty if\n none exists. The CR manifest is used to validate the cluster has not been\nregistered with another Membership. \n**Returns**\n\n- (::String) --- Input only. The YAML representation of the Membership CR. This field is ignored for GKE clusters where Hub can read the CR directly.\n\n Callers should provide the CR that is currently present in the cluster\n during CreateMembership or UpdateMembership, or leave this field empty if\n none exists. The CR manifest is used to validate the cluster has not been\n registered with another Membership.\n\n### #membership_resources\n\n def membership_resources() -\u003e ::Array\u003c::Google::Cloud::GkeHub::V1::ResourceManifest\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::GkeHub::V1::ResourceManifest](./Google-Cloud-GkeHub-V1-ResourceManifest)\\\u003e) --- Output only. Additional Kubernetes resources that need to be applied to the cluster after Membership creation, and after every update.\n\n\n This field is only populated in the Membership returned from a successful\n long-running operation from CreateMembership or UpdateMembership. It is not\n populated during normal GetMembership or ListMemberships requests. To get\n the resource manifest after the initial registration, the caller should\n make a UpdateMembership call with an empty field mask.\n\n### #resource_options\n\n def resource_options() -\u003e ::Google::Cloud::GkeHub::V1::ResourceOptions\n\n**Returns**\n\n- ([::Google::Cloud::GkeHub::V1::ResourceOptions](./Google-Cloud-GkeHub-V1-ResourceOptions)) --- Optional. Options for Kubernetes resource generation.\n\n### #resource_options=\n\n def resource_options=(value) -\u003e ::Google::Cloud::GkeHub::V1::ResourceOptions\n\n**Parameter**\n\n- **value** ([::Google::Cloud::GkeHub::V1::ResourceOptions](./Google-Cloud-GkeHub-V1-ResourceOptions)) --- Optional. Options for Kubernetes resource generation. \n**Returns**\n\n- ([::Google::Cloud::GkeHub::V1::ResourceOptions](./Google-Cloud-GkeHub-V1-ResourceOptions)) --- Optional. Options for Kubernetes resource generation."]]