module Google::Iam::Credentials::V1::IAMCredentials::Paths

Path helper methods for the IAMCredentials API.

Public Instance Methods

service_account_path(project:, service_account: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified ServiceAccount resource string.

The resource will be in the following format:

`projects/{project}/serviceAccounts/{service_account}`

@param project [String] @param service_account [String]

@return [::String]

# File lib/google/iam/credentials/v1/iam_credentials/paths.rb, line 38
def service_account_path project:, service_account:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/serviceAccounts/#{service_account}"
end