Module: Google::Cloud::AIPlatform::V1::ModelGardenService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/ai_platform/v1/model_garden_service/paths.rb
Overview
Path helper methods for the ModelGardenService API.
Instance Method Summary collapse
-
#publisher_model_path(publisher:, model:) ⇒ ::String
Create a fully-qualified PublisherModel resource string.
Instance Method Details
#publisher_model_path(publisher:, model:) ⇒ ::String
Create a fully-qualified PublisherModel resource string.
The resource will be in the following format:
publishers/{publisher}/models/{model}
38 39 40 41 42 |
# File 'lib/google/cloud/ai_platform/v1/model_garden_service/paths.rb', line 38 def publisher_model_path publisher:, model: raise ::ArgumentError, "publisher cannot contain /" if publisher.to_s.include? "/" "publishers/#{publisher}/models/#{model}" end |