Module: Google::Cloud::AIPlatform::V1::FeatureOnlineStoreService::Paths

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

Overview

Path helper methods for the FeatureOnlineStoreService API.

Instance Method Summary collapse

Instance Method Details

#feature_view_path(project:, location:, feature_online_store:, feature_view:) ⇒ ::String

Create a fully-qualified FeatureView resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}

Parameters:

  • project (String)
  • location (String)
  • feature_online_store (String)
  • feature_view (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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

def feature_view_path project:, location:, feature_online_store:, feature_view:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "feature_online_store cannot contain /" if feature_online_store.to_s.include? "/"

  "projects/#{project}/locations/#{location}/featureOnlineStores/#{feature_online_store}/featureViews/#{feature_view}"
end