Skip to content

Commit

Permalink
New resource: azurerm_media_content_key_policy (#9971)
Browse files Browse the repository at this point in the history
Hi there introducing the support for new resource azurerm_media_content_key_policy. This PR resolves #9863

Checked:

 Update Documentation
 Add new Acceptance Test and verified that the tests pass successfully
 Check linting
  • Loading branch information
jcanizalez authored Jan 21, 2021
1 parent 212c7ca commit f0ae466
Show file tree
Hide file tree
Showing 11 changed files with 2,136 additions and 3 deletions.
5 changes: 5 additions & 0 deletions azurerm/internal/services/media/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type Client struct {
StreamingEndpointsClient *media.StreamingEndpointsClient
JobsClient *media.JobsClient
StreamingLocatorsClient *media.StreamingLocatorsClient
ContentKeyPoliciesClient *media.ContentKeyPoliciesClient
}

func NewClient(o *common.ClientOptions) *Client {
Expand All @@ -33,12 +34,16 @@ func NewClient(o *common.ClientOptions) *Client {
StreamingLocatorsClient := media.NewStreamingLocatorsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&StreamingLocatorsClient.Client, o.ResourceManagerAuthorizer)

ContentKeyPoliciesClient := media.NewContentKeyPoliciesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&ContentKeyPoliciesClient.Client, o.ResourceManagerAuthorizer)

return &Client{
ServicesClient: &ServicesClient,
AssetsClient: &AssetsClient,
TransformsClient: &TransformsClient,
StreamingEndpointsClient: &StreamingEndpointsClient,
JobsClient: &JobsClient,
StreamingLocatorsClient: &StreamingLocatorsClient,
ContentKeyPoliciesClient: &ContentKeyPoliciesClient,
}
}
Loading

0 comments on commit f0ae466

Please sign in to comment.