Module: Google::Cloud::AIPlatform::V1::FeatureOnlineStoreAdminService::Paths

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

Overview

Path helper methods for the FeatureOnlineStoreAdminService API.

Instance Method Summary collapse

Instance Method Details

#feature_online_store_path(project:, location:, feature_online_store:) ⇒ ::String

Create a fully-qualified FeatureOnlineStore resource string.

The resource will be in the following format:

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

Parameters:

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

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


39
40
41
42
43
44
# File 'lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/paths.rb', line 39

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

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

#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)


59
60
61
62
63
64
65
# File 'lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/paths.rb', line 59

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

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

Create a fully-qualified FeatureViewSync resource string.

The resource will be in the following format:

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

Parameters:

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

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


80
81
82
83
84
85
86
# File 'lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/paths.rb', line 80

def feature_view_sync_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}/featureViewSyncs/feature_view_sync"
end

#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)


99
100
101
102
103
# File 'lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/paths.rb', line 99

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

  "projects/#{project}/locations/#{location}"
end