Module: Google::Cloud::DiscoveryEngine::V1::UserLicenseService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/discovery_engine/v1/user_license_service/paths.rb
Overview
Path helper methods for the UserLicenseService API.
Instance Method Summary collapse
-
#license_config_path(project:, location:, license_config:) ⇒ ::String
Create a fully-qualified LicenseConfig resource string.
-
#user_store_path(project:, location:, user_store:) ⇒ ::String
Create a fully-qualified UserStore resource string.
Instance Method Details
#license_config_path(project:, location:, license_config:) ⇒ ::String
Create a fully-qualified LicenseConfig resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/licenseConfigs/{license_config}
39 40 41 42 43 44 |
# File 'lib/google/cloud/discovery_engine/v1/user_license_service/paths.rb', line 39 def license_config_path project:, location:, license_config: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/licenseConfigs/#{license_config}" end |
#user_store_path(project:, location:, user_store:) ⇒ ::String
Create a fully-qualified UserStore resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/userStores/{user_store}
58 59 60 61 62 63 |
# File 'lib/google/cloud/discovery_engine/v1/user_license_service/paths.rb', line 58 def user_store_path project:, location:, user_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}/userStores/#{user_store}" end |