forked from hashicorp/terraform-provider-azurerm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
videoanalyzer: updating to the latest embedded sdk
- Loading branch information
1 parent
cfa47b7
commit ef67b84
Showing
21 changed files
with
230 additions
and
30 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
18 changes: 18 additions & 0 deletions
18
...s/videoanalyzer/sdk/2021-05-01-preview/videoanalyzer/model_edgemoduleprovisioningtoken.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,6 +1,24 @@ | ||
package videoanalyzer | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/hashicorp/go-azure-helpers/lang/dates" | ||
) | ||
|
||
type EdgeModuleProvisioningToken struct { | ||
ExpirationDate *string `json:"expirationDate,omitempty"` | ||
Token *string `json:"token,omitempty"` | ||
} | ||
|
||
func (o EdgeModuleProvisioningToken) GetExpirationDateAsTime() (*time.Time, error) { | ||
if o.ExpirationDate == nil { | ||
return nil, nil | ||
} | ||
return dates.ParseAsFormat(o.ExpirationDate, "2006-01-02T15:04:05Z07:00") | ||
} | ||
|
||
func (o EdgeModuleProvisioningToken) SetExpirationDateAsTime(input time.Time) { | ||
formatted := input.Format("2006-01-02T15:04:05Z07:00") | ||
o.ExpirationDate = &formatted | ||
} |
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
15 changes: 15 additions & 0 deletions
15
...es/videoanalyzer/sdk/2021-05-01-preview/videoanalyzer/model_listprovisioningtokeninput.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,5 +1,20 @@ | ||
package videoanalyzer | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/hashicorp/go-azure-helpers/lang/dates" | ||
) | ||
|
||
type ListProvisioningTokenInput struct { | ||
ExpirationDate string `json:"expirationDate"` | ||
} | ||
|
||
func (o ListProvisioningTokenInput) GetExpirationDateAsTime() (*time.Time, error) { | ||
return dates.ParseAsFormat(&o.ExpirationDate, "2006-01-02T15:04:05Z07:00") | ||
} | ||
|
||
func (o ListProvisioningTokenInput) SetExpirationDateAsTime(input time.Time) { | ||
formatted := input.Format("2006-01-02T15:04:05Z07:00") | ||
o.ExpirationDate = formatted | ||
} |
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
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.