Reference documentation and code samples for the Google Cloud Gke Hub V1 Client 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.
Generated from protobuf messagegoogle.cloud.gkehub.v1.KubernetesResource
Namespace
Google \ Cloud \ GkeHub \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ membership_cr_manifest
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.
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.
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.
Optional. Options for Kubernetes resource generation.
getMembershipCrManifest
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
Type
Description
string
setMembershipCrManifest
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.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMembershipResources
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.
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.
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.
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.
[[["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,["# Google Cloud Gke Hub V1 Client - Class KubernetesResource (1.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.6 (latest)](/php/docs/reference/cloud-gke-hub/latest/V1.KubernetesResource)\n- [1.0.5](/php/docs/reference/cloud-gke-hub/1.0.5/V1.KubernetesResource)\n- [0.10.0](/php/docs/reference/cloud-gke-hub/0.10.0/V1.KubernetesResource)\n- [0.9.5](/php/docs/reference/cloud-gke-hub/0.9.5/V1.KubernetesResource)\n- [0.8.2](/php/docs/reference/cloud-gke-hub/0.8.2/V1.KubernetesResource)\n- [0.7.1](/php/docs/reference/cloud-gke-hub/0.7.1/V1.KubernetesResource)\n- [0.6.3](/php/docs/reference/cloud-gke-hub/0.6.3/V1.KubernetesResource)\n- [0.5.6](/php/docs/reference/cloud-gke-hub/0.5.6/V1.KubernetesResource) \nReference documentation and code samples for the Google Cloud Gke Hub V1 Client class 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\nGenerated from protobuf message `google.cloud.gkehub.v1.KubernetesResource`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ GkeHub \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getMembershipCrManifest\n\nInput only. The YAML representation of the Membership CR. This field is\nignored for GKE clusters where Hub can read the CR directly.\n\nCallers should provide the CR that is currently present in the cluster\nduring CreateMembership or UpdateMembership, or leave this field empty if\nnone exists. The CR manifest is used to validate the cluster has not been\nregistered with another Membership.\n\n### setMembershipCrManifest\n\nInput only. The YAML representation of the Membership CR. This field is\nignored for GKE clusters where Hub can read the CR directly.\n\nCallers should provide the CR that is currently present in the cluster\nduring CreateMembership or UpdateMembership, or leave this field empty if\nnone exists. The CR manifest is used to validate the cluster has not been\nregistered with another Membership.\n\n### getMembershipResources\n\nOutput only. Additional Kubernetes resources that need to be applied to the\ncluster after Membership creation, and after every update.\n\nThis field is only populated in the Membership returned from a successful\nlong-running operation from CreateMembership or UpdateMembership. It is not\npopulated during normal GetMembership or ListMemberships requests. To get\nthe resource manifest after the initial registration, the caller should\nmake a UpdateMembership call with an empty field mask.\n\n### setMembershipResources\n\nOutput only. Additional Kubernetes resources that need to be applied to the\ncluster after Membership creation, and after every update.\n\nThis field is only populated in the Membership returned from a successful\nlong-running operation from CreateMembership or UpdateMembership. It is not\npopulated during normal GetMembership or ListMemberships requests. To get\nthe resource manifest after the initial registration, the caller should\nmake a UpdateMembership call with an empty field mask.\n\n### getConnectResources\n\nOutput only. The Kubernetes resources for installing the GKE Connect agent\nThis field is only populated in the Membership returned from a successful\nlong-running operation from CreateMembership or UpdateMembership. It is not\npopulated during normal GetMembership or ListMemberships requests. To get\nthe resource manifest after the initial registration, the caller should\nmake a UpdateMembership call with an empty field mask.\n\n### setConnectResources\n\nOutput only. The Kubernetes resources for installing the GKE Connect agent\nThis field is only populated in the Membership returned from a successful\nlong-running operation from CreateMembership or UpdateMembership. It is not\npopulated during normal GetMembership or ListMemberships requests. To get\nthe resource manifest after the initial registration, the caller should\nmake a UpdateMembership call with an empty field mask.\n\n### getResourceOptions\n\nOptional. Options for Kubernetes resource generation.\n\n### hasResourceOptions\n\n### clearResourceOptions\n\n### setResourceOptions\n\nOptional. Options for Kubernetes resource generation."]]