Method: Wavefront::Validators#wf_serviceaccount_id?
- Defined in:
- lib/wavefront-sdk/validators.rb
#wf_serviceaccount_id?(id) ⇒ Boolean
Ensure the given argument is a valid service account ID
551 552 553 554 555 |
# File 'lib/wavefront-sdk/validators.rb', line 551 def wf_serviceaccount_id?(id) return true if id.is_a?(String) && id.start_with?('sa::') raise Wavefront::Exception::InvalidServiceAccountId, id end |