Module: Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Paths

Extended by:
Paths
Included in:
Client, Paths, Rest::Client
Defined in:
lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/paths.rb

Overview

Path helper methods for the FeaturestoreOnlineServingService API.

Instance Method Summary collapse

Instance Method Details

#entity_type_path(project:, location:, featurestore:, entity_type:) ⇒ ::String

Create a fully-qualified EntityType resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}

Parameters:

  • project (String)
  • location (String)
  • featurestore (String)
  • entity_type (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


40
41
42
43
44
45
46
# File 'lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/paths.rb', line 40

def entity_type_path project:, location:, featurestore:, entity_type:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "featurestore cannot contain /" if featurestore.to_s.include? "/"

  "projects/#{project}/locations/#{location}/featurestores/#{featurestore}/entityTypes/#{entity_type}"
end