fix: do not require remoteOrgID for remote connection creation (#451)

This commit is contained in:
Dane Strandboge
2022-10-28 11:16:53 -05:00
committed by GitHub
parent 121864a550
commit 3285a03e9e
52 changed files with 2942 additions and 587 deletions

View File

@ -21,10 +21,11 @@ type ScriptLanguage string
// List of ScriptLanguage
const (
SCRIPTLANGUAGE_FLUX ScriptLanguage = "flux"
SCRIPTLANGUAGE_SQL ScriptLanguage = "sql"
)
func ScriptLanguageValues() []ScriptLanguage {
return []ScriptLanguage{"flux"}
return []ScriptLanguage{"flux", "sql"}
}
func (v *ScriptLanguage) UnmarshalJSON(src []byte) error {
@ -34,7 +35,7 @@ func (v *ScriptLanguage) UnmarshalJSON(src []byte) error {
return err
}
enumTypeValue := ScriptLanguage(value)
for _, existing := range []ScriptLanguage{"flux"} {
for _, existing := range []ScriptLanguage{"flux", "sql"} {
if existing == enumTypeValue {
*v = enumTypeValue
return nil