Module: Google::Cloud::RecommendationEngine::V1beta1::PredictionApiKeyRegistry::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/paths.rb
Overview
Path helper methods for the PredictionApiKeyRegistry API.
Instance Method Summary collapse
-
#event_store_path(project:, location:, catalog:, event_store:) ⇒ ::String
Create a fully-qualified EventStore resource string.
-
#prediction_api_key_registration_path(project:, location:, catalog:, event_store:, prediction_api_key_registration:) ⇒ ::String
Create a fully-qualified PredictionApiKeyRegistration resource string.
Instance Method Details
#event_store_path(project:, location:, catalog:, event_store:) ⇒ ::String
Create a fully-qualified EventStore resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store}
40 41 42 43 44 45 46 |
# File 'lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/paths.rb', line 40 def event_store_path project:, location:, catalog:, event_store: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "catalog cannot contain /" if catalog.to_s.include? "/" "projects/#{project}/locations/#{location}/catalogs/#{catalog}/eventStores/#{event_store}" end |
#prediction_api_key_registration_path(project:, location:, catalog:, event_store:, prediction_api_key_registration:) ⇒ ::String
Create a fully-qualified PredictionApiKeyRegistration resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store}/predictionApiKeyRegistrations/{prediction_api_key_registration}
62 63 64 65 66 67 68 69 |
# File 'lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/paths.rb', line 62 def prediction_api_key_registration_path project:, location:, catalog:, event_store:, prediction_api_key_registration: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "catalog cannot contain /" if catalog.to_s.include? "/" raise ::ArgumentError, "event_store cannot contain /" if event_store.to_s.include? "/" "projects/#{project}/locations/#{location}/catalogs/#{catalog}/eventStores/#{event_store}/predictionApiKeyRegistrations/#{prediction_api_key_registration}" end |