Module: Google::Cloud::Shell::V1::CloudShellService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/shell/v1/cloud_shell_service/paths.rb
Overview
Path helper methods for the CloudShellService API.
Instance Method Summary collapse
-
#environment_path(user:, environment:) ⇒ ::String
Create a fully-qualified Environment resource string.
Instance Method Details
#environment_path(user:, environment:) ⇒ ::String
Create a fully-qualified Environment resource string.
The resource will be in the following format:
users/{user}/environments/{environment}
38 39 40 41 42 |
# File 'lib/google/cloud/shell/v1/cloud_shell_service/paths.rb', line 38 def environment_path user:, environment: raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/" "users/#{user}/environments/#{environment}" end |