module Google::Iam::V1beta::WorkloadIdentityPools::Paths
Path helper methods for the WorkloadIdentityPools
API.
Public Instance Methods
Create a fully-qualified Project resource string.
The resource will be in the following format:
`projects/{project}`
@param project [String]
@return [::String]
# File lib/google/iam/v1beta/workload_identity_pools/paths.rb, line 36 def project_path project: "projects/#{project}" end
Create a fully-qualified WorkloadIdentityPool
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/workloadIdentityPools/{workload_identity_pool}`
@param project [String] @param location [String] @param workload_identity_pool [String]
@return [::String]
# File lib/google/iam/v1beta/workload_identity_pools/paths.rb, line 52 def workload_identity_pool_path project:, location:, workload_identity_pool: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/workloadIdentityPools/#{workload_identity_pool}" end
Create a fully-qualified WorkloadIdentityPoolProvider
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/workloadIdentityPools/{workload_identity_pool}/providers/{workload_identity_pool_provider}`
@param project [String] @param location [String] @param workload_identity_pool [String] @param workload_identity_pool_provider [String]
@return [::String]
# File lib/google/iam/v1beta/workload_identity_pools/paths.rb, line 72 def workload_identity_pool_provider_path project:, location:, workload_identity_pool:, workload_identity_pool_provider: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "workload_identity_pool cannot contain /" if workload_identity_pool.to_s.include? "/" "projects/#{project}/locations/#{location}/workloadIdentityPools/#{workload_identity_pool}/providers/#{workload_identity_pool_provider}" end