Module: Google::Cloud::OsConfig::V1::OsConfigService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/os_config/v1/os_config_service/paths.rb
Overview
Path helper methods for the OsConfigService API.
Instance Method Summary collapse
-
#patch_deployment_path(project:, patch_deployment:) ⇒ ::String
Create a fully-qualified PatchDeployment resource string.
-
#patch_job_path(project:, patch_job:) ⇒ ::String
Create a fully-qualified PatchJob resource string.
-
#project_path(project:) ⇒ ::String
Create a fully-qualified Project resource string.
Instance Method Details
#patch_deployment_path(project:, patch_deployment:) ⇒ ::String
Create a fully-qualified PatchDeployment resource string.
The resource will be in the following format:
projects/{project}/patchDeployments/{patch_deployment}
38 39 40 41 42 |
# File 'lib/google/cloud/os_config/v1/os_config_service/paths.rb', line 38 def patch_deployment_path project:, patch_deployment: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/patchDeployments/#{patch_deployment}" end |
#patch_job_path(project:, patch_job:) ⇒ ::String
Create a fully-qualified PatchJob resource string.
The resource will be in the following format:
projects/{project}/patchJobs/{patch_job}
55 56 57 58 59 |
# File 'lib/google/cloud/os_config/v1/os_config_service/paths.rb', line 55 def patch_job_path project:, patch_job: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/patchJobs/#{patch_job}" end |
#project_path(project:) ⇒ ::String
Create a fully-qualified Project resource string.
The resource will be in the following format:
projects/{project}
71 72 73 |
# File 'lib/google/cloud/os_config/v1/os_config_service/paths.rb', line 71 def project_path project: "projects/#{project}" end |