-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vmware - regen embedded sdk (#14133)
- Loading branch information
Showing
47 changed files
with
3,546 additions
and
1,073 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
internal/services/vmware/sdk/2020-03-20/authorizations/constants.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,34 @@ | ||
package authorizations | ||
|
||
import "strings" | ||
|
||
type ExpressRouteAuthorizationProvisioningState string | ||
|
||
const ( | ||
ExpressRouteAuthorizationProvisioningStateFailed ExpressRouteAuthorizationProvisioningState = "Failed" | ||
ExpressRouteAuthorizationProvisioningStateSucceeded ExpressRouteAuthorizationProvisioningState = "Succeeded" | ||
ExpressRouteAuthorizationProvisioningStateUpdating ExpressRouteAuthorizationProvisioningState = "Updating" | ||
) | ||
|
||
func PossibleValuesForExpressRouteAuthorizationProvisioningState() []string { | ||
return []string{ | ||
string(ExpressRouteAuthorizationProvisioningStateFailed), | ||
string(ExpressRouteAuthorizationProvisioningStateSucceeded), | ||
string(ExpressRouteAuthorizationProvisioningStateUpdating), | ||
} | ||
} | ||
|
||
func parseExpressRouteAuthorizationProvisioningState(input string) (*ExpressRouteAuthorizationProvisioningState, error) { | ||
vals := map[string]ExpressRouteAuthorizationProvisioningState{ | ||
"failed": ExpressRouteAuthorizationProvisioningStateFailed, | ||
"succeeded": ExpressRouteAuthorizationProvisioningStateSucceeded, | ||
"updating": ExpressRouteAuthorizationProvisioningStateUpdating, | ||
} | ||
if v, ok := vals[strings.ToLower(input)]; ok { | ||
return &v, nil | ||
} | ||
|
||
// otherwise presume it's an undefined value and best-effort it | ||
out := ExpressRouteAuthorizationProvisioningState(input) | ||
return &out, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.