code: func (r Resource) Valid() (err error) {
  	switch r {
  	case AuthorizationsResource: // 0
  	case BucketsResource: // 1
  	case DashboardsResource: // 2
  	case OrgsResource: // 3
  	case TasksResource: // 4
  	case TelegrafsResource: // 5
  	case SourcesResource: // 6
  	case UsersResource: //7
  	default:
  		err = ErrInvalidResource
  	}
  
  	return err
  }
docs: // Valid checks if the resource is a member of the Resource enum.