Module: Google::Cloud::ApigeeConnect::V1::ConnectionService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/apigee_connect/v1/connection_service/paths.rb
Overview
Path helper methods for the ConnectionService API.
Instance Method Summary collapse
-
#endpoint_path(project:, endpoint:) ⇒ ::String
Create a fully-qualified Endpoint resource string.
Instance Method Details
#endpoint_path(project:, endpoint:) ⇒ ::String
Create a fully-qualified Endpoint resource string.
The resource will be in the following format:
projects/{project}/endpoints/{endpoint}
38 39 40 41 42 |
# File 'lib/google/cloud/apigee_connect/v1/connection_service/paths.rb', line 38 def endpoint_path project:, endpoint: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/endpoints/#{endpoint}" end |