Reference documentation and code samples for the Eventarc V1 API class Google::Cloud::Eventarc::V1::GKE.
Represents a GKE destination.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#cluster
defcluster()->::String
Returns
(::String) — Required. The name of the cluster the GKE service is running in. The
cluster must be running in the same project as the trigger being created.
#cluster=
defcluster=(value)->::String
Parameter
value (::String) — Required. The name of the cluster the GKE service is running in. The
cluster must be running in the same project as the trigger being created.
Returns
(::String) — Required. The name of the cluster the GKE service is running in. The
cluster must be running in the same project as the trigger being created.
#location
deflocation()->::String
Returns
(::String) — Required. The name of the Google Compute Engine in which the cluster
resides, which can either be compute zone (for example, us-central1-a) for
the zonal clusters or region (for example, us-central1) for regional
clusters.
#location=
deflocation=(value)->::String
Parameter
value (::String) — Required. The name of the Google Compute Engine in which the cluster
resides, which can either be compute zone (for example, us-central1-a) for
the zonal clusters or region (for example, us-central1) for regional
clusters.
Returns
(::String) — Required. The name of the Google Compute Engine in which the cluster
resides, which can either be compute zone (for example, us-central1-a) for
the zonal clusters or region (for example, us-central1) for regional
clusters.
#namespace
defnamespace()->::String
Returns
(::String) — Required. The namespace the GKE service is running in.
#namespace=
defnamespace=(value)->::String
Parameter
value (::String) — Required. The namespace the GKE service is running in.
Returns
(::String) — Required. The namespace the GKE service is running in.
#path
defpath()->::String
Returns
(::String) — Optional. The relative path on the GKE service the events should be sent
to.
The value must conform to the definition of a URI path segment (section 3.3
of RFC2396). Examples: "/route", "route", "route/subroute".
#path=
defpath=(value)->::String
Parameter
value (::String) — Optional. The relative path on the GKE service the events should be sent
to.
The value must conform to the definition of a URI path segment (section 3.3
of RFC2396). Examples: "/route", "route", "route/subroute".
Returns
(::String) — Optional. The relative path on the GKE service the events should be sent
to.
The value must conform to the definition of a URI path segment (section 3.3
of RFC2396). Examples: "/route", "route", "route/subroute".
#service
defservice()->::String
Returns
(::String) — Required. Name of the GKE service.
#service=
defservice=(value)->::String
Parameter
value (::String) — Required. Name of the GKE service.
[[["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-08-28 UTC."],[],[],null,["# Eventarc V1 API - Class Google::Cloud::Eventarc::V1::GKE (v2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-GKE)\n- [2.0.1](/ruby/docs/reference/google-cloud-eventarc-v1/2.0.1/Google-Cloud-Eventarc-V1-GKE)\n- [1.3.0](/ruby/docs/reference/google-cloud-eventarc-v1/1.3.0/Google-Cloud-Eventarc-V1-GKE)\n- [1.2.0](/ruby/docs/reference/google-cloud-eventarc-v1/1.2.0/Google-Cloud-Eventarc-V1-GKE)\n- [1.1.0](/ruby/docs/reference/google-cloud-eventarc-v1/1.1.0/Google-Cloud-Eventarc-V1-GKE)\n- [1.0.1](/ruby/docs/reference/google-cloud-eventarc-v1/1.0.1/Google-Cloud-Eventarc-V1-GKE)\n- [0.10.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.10.0/Google-Cloud-Eventarc-V1-GKE)\n- [0.9.2](/ruby/docs/reference/google-cloud-eventarc-v1/0.9.2/Google-Cloud-Eventarc-V1-GKE)\n- [0.8.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.8.0/Google-Cloud-Eventarc-V1-GKE)\n- [0.7.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.7.0/Google-Cloud-Eventarc-V1-GKE)\n- [0.6.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.6.0/Google-Cloud-Eventarc-V1-GKE)\n- [0.5.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.5.0/Google-Cloud-Eventarc-V1-GKE)\n- [0.4.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.4.0/Google-Cloud-Eventarc-V1-GKE)\n- [0.3.0](/ruby/docs/reference/google-cloud-eventarc-v1/0.3.0/Google-Cloud-Eventarc-V1-GKE)\n- [0.2.1](/ruby/docs/reference/google-cloud-eventarc-v1/0.2.1/Google-Cloud-Eventarc-V1-GKE)\n- [0.1.4](/ruby/docs/reference/google-cloud-eventarc-v1/0.1.4/Google-Cloud-Eventarc-V1-GKE) \nReference documentation and code samples for the Eventarc V1 API class Google::Cloud::Eventarc::V1::GKE.\n\nRepresents a GKE destination. \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### #cluster\n\n def cluster() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.\n\n### #cluster=\n\n def cluster=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created. \n**Returns**\n\n- (::String) --- Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.\n\n### #location\n\n def location() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters.\n\n### #location=\n\n def location=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters. \n**Returns**\n\n- (::String) --- Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters.\n\n### #namespace\n\n def namespace() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The namespace the GKE service is running in.\n\n### #namespace=\n\n def namespace=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The namespace the GKE service is running in. \n**Returns**\n\n- (::String) --- Required. The namespace the GKE service is running in.\n\n### #path\n\n def path() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The relative path on the GKE service the events should be sent to.\n\n The value must conform to the definition of a URI path segment (section 3.3\n of RFC2396). Examples: \"/route\", \"route\", \"route/subroute\".\n\n### #path=\n\n def path=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The relative path on the GKE service the events should be sent to.\n\n\n The value must conform to the definition of a URI path segment (section 3.3\nof RFC2396). Examples: \"/route\", \"route\", \"route/subroute\". \n**Returns**\n\n- (::String) --- Optional. The relative path on the GKE service the events should be sent to.\n\n The value must conform to the definition of a URI path segment (section 3.3\n of RFC2396). Examples: \"/route\", \"route\", \"route/subroute\".\n\n### #service\n\n def service() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Name of the GKE service.\n\n### #service=\n\n def service=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Name of the GKE service. \n**Returns**\n\n- (::String) --- Required. Name of the GKE service."]]