Module: Google::Cloud::BinaryAuthorization::V1beta1::BinauthzManagementService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/cloud/binary_authorization/v1beta1/binauthz_management_service/paths.rb
Overview
Path helper methods for the BinauthzManagementService API.
Instance Method Summary collapse
-
#attestor_path(project:, attestor:) ⇒ ::String
Create a fully-qualified Attestor resource string.
-
#policy_path(project:) ⇒ ::String
Create a fully-qualified Policy resource string.
-
#project_path(project:) ⇒ ::String
Create a fully-qualified Project resource string.
Instance Method Details
#attestor_path(project:, attestor:) ⇒ ::String
Create a fully-qualified Attestor resource string.
The resource will be in the following format:
projects/{project}/attestors/{attestor}
38 39 40 41 42 |
# File 'lib/google/cloud/binary_authorization/v1beta1/binauthz_management_service/paths.rb', line 38 def attestor_path project:, attestor: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/attestors/#{attestor}" end |
#policy_path(project:) ⇒ ::String
Create a fully-qualified Policy resource string.
The resource will be in the following format:
projects/{project}/policy
54 55 56 |
# File 'lib/google/cloud/binary_authorization/v1beta1/binauthz_management_service/paths.rb', line 54 def policy_path project: "projects/#{project}/policy" end |
#project_path(project:) ⇒ ::String
Create a fully-qualified Project resource string.
The resource will be in the following format:
projects/{project}
68 69 70 |
# File 'lib/google/cloud/binary_authorization/v1beta1/binauthz_management_service/paths.rb', line 68 def project_path project: "projects/#{project}" end |