Managed Service for Apache Kafka V1 API - Module Google::Cloud::ManagedKafka::V1::ManagedKafka::Paths (v0.2.0)

Reference documentation and code samples for the Managed Service for Apache Kafka V1 API module Google::Cloud::ManagedKafka::V1::ManagedKafka::Paths.

Path helper methods for the ManagedKafka API.

Methods

#cluster_path

def cluster_path(project:, location:, cluster:) -> ::String

Create a fully-qualified Cluster resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/clusters/{cluster}

Parameters
  • project (String)
  • location (String)
  • cluster (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#consumer_group_path

def consumer_group_path(project:, location:, cluster:, consumer_group:) -> ::String

Create a fully-qualified ConsumerGroup resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/clusters/{cluster}/consumerGroups/{consumer_group}

Parameters
  • project (String)
  • location (String)
  • cluster (String)
  • consumer_group (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#crypto_key_path

def crypto_key_path(project:, location:, key_ring:, crypto_key:) -> ::String

Create a fully-qualified CryptoKey resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}

Parameters
  • project (String)
  • location (String)
  • key_ring (String)
  • crypto_key (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#location_path

def location_path(project:, location:) -> ::String

Create a fully-qualified Location resource string.

The resource will be in the following format:

projects/{project}/locations/{location}

Parameters
  • project (String)
  • location (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#topic_path

def topic_path(project:, location:, cluster:, topic:) -> ::String

Create a fully-qualified Topic resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}

Parameters
  • project (String)
  • location (String)
  • cluster (String)
  • topic (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)