Skip to content

Commit

Permalink
New Resource azurerm_media_services_account_filter (#19964)
Browse files Browse the repository at this point in the history
  • Loading branch information
teowa authored Jan 12, 2023
1 parent b0b3db6 commit ba979a0
Show file tree
Hide file tree
Showing 7 changed files with 870 additions and 9 deletions.
1 change: 1 addition & 0 deletions internal/provider/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func SupportedTypedServices() []sdk.TypedServiceRegistration {
labservice.Registration{},
loadbalancer.Registration{},
loganalytics.Registration{},
media.Registration{},
monitor.Registration{},
mssql.Registration{},
network.Registration{},
Expand Down
8 changes: 0 additions & 8 deletions internal/services/media/media_asset_filter_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ import (
"github.com/hashicorp/terraform-provider-azurerm/utils"
)

// define constants based on docs https://docs.microsoft.com/en-us/azure/media-services/latest/filters-concept
const incrementsInASecond = 10000000

const (
nanoSecondsInAIncrement = 100
milliSecondsInASecond = 1000
)

func resourceMediaAssetFilter() *pluginsdk.Resource {
return &pluginsdk.Resource{
Create: resourceMediaAssetFilterCreateUpdate,
Expand Down
9 changes: 9 additions & 0 deletions internal/services/media/media_filter.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package media

// define constants based on docs https://docs.microsoft.com/en-us/azure/media-services/latest/filters-concept
const incrementsInASecond = 10000000

const (
nanoSecondsInAIncrement = 100
milliSecondsInASecond = 1000
)
Loading

0 comments on commit ba979a0

Please sign in to comment.