Interface ContentKeyPoliciesClient
public interface ContentKeyPoliciesClient
An instance of this class provides access to all the operations defined in ContentKeyPoliciesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters) Create or update an Content Key Policycom.azure.core.http.rest.Response<ContentKeyPolicyInner>
createOrUpdateWithResponse
(String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters, com.azure.core.util.Context context) Create or update an Content Key Policyvoid
Delete a Content Key Policycom.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String accountName, String contentKeyPolicyName, com.azure.core.util.Context context) Delete a Content Key PolicyGet a Content Key PolicygetPolicyPropertiesWithSecrets
(String resourceGroupName, String accountName, String contentKeyPolicyName) Get a Content Key Policy with secretscom.azure.core.http.rest.Response<ContentKeyPolicyPropertiesInner>
getPolicyPropertiesWithSecretsWithResponse
(String resourceGroupName, String accountName, String contentKeyPolicyName, com.azure.core.util.Context context) Get a Content Key Policy with secretscom.azure.core.http.rest.Response<ContentKeyPolicyInner>
getWithResponse
(String resourceGroupName, String accountName, String contentKeyPolicyName, com.azure.core.util.Context context) Get a Content Key Policycom.azure.core.http.rest.PagedIterable<ContentKeyPolicyInner>
List Content Key Policiescom.azure.core.http.rest.PagedIterable<ContentKeyPolicyInner>
list
(String resourceGroupName, String accountName, String filter, Integer top, String orderby, com.azure.core.util.Context context) List Content Key Policiesupdate
(String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters) Update a Content Key Policycom.azure.core.http.rest.Response<ContentKeyPolicyInner>
updateWithResponse
(String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters, com.azure.core.util.Context context) Update a Content Key Policy
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<ContentKeyPolicyInner> list(String resourceGroupName, String accountName) List Content Key PoliciesLists the Content Key Policies in the account.
- Parameters:
resourceGroupName
- The name of the resource group within the Azure subscription.accountName
- The Media Services account name.- Returns:
- a collection of ContentKeyPolicy items as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<ContentKeyPolicyInner> list(String resourceGroupName, String accountName, String filter, Integer top, String orderby, com.azure.core.util.Context context) List Content Key PoliciesLists the Content Key Policies in the account.
- Parameters:
resourceGroupName
- The name of the resource group within the Azure subscription.accountName
- The Media Services account name.filter
- Restricts the set of items returned.top
- Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n.orderby
- Specifies the key by which the result collection should be ordered.context
- The context to associate with this operation.- Returns:
- a collection of ContentKeyPolicy items as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<ContentKeyPolicyInner> getWithResponse(String resourceGroupName, String accountName, String contentKeyPolicyName, com.azure.core.util.Context context) Get a Content Key PolicyGet the details of a Content Key Policy in the Media Services account.
- Parameters:
resourceGroupName
- The name of the resource group within the Azure subscription.accountName
- The Media Services account name.contentKeyPolicyName
- The Content Key Policy name.context
- The context to associate with this operation.- Returns:
- the details of a Content Key Policy in the Media Services account along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
ContentKeyPolicyInner get(String resourceGroupName, String accountName, String contentKeyPolicyName) Get a Content Key PolicyGet the details of a Content Key Policy in the Media Services account.
- Parameters:
resourceGroupName
- The name of the resource group within the Azure subscription.accountName
- The Media Services account name.contentKeyPolicyName
- The Content Key Policy name.- Returns:
- the details of a Content Key Policy in the Media Services account.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<ContentKeyPolicyInner> createOrUpdateWithResponse(String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters, com.azure.core.util.Context context) Create or update an Content Key PolicyCreate or update a Content Key Policy in the Media Services account.
- Parameters:
resourceGroupName
- The name of the resource group within the Azure subscription.accountName
- The Media Services account name.contentKeyPolicyName
- The Content Key Policy name.parameters
- The request parameters.context
- The context to associate with this operation.- Returns:
- a Content Key Policy resource along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
ContentKeyPolicyInner createOrUpdate(String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters) Create or update an Content Key PolicyCreate or update a Content Key Policy in the Media Services account.
- Parameters:
resourceGroupName
- The name of the resource group within the Azure subscription.accountName
- The Media Services account name.contentKeyPolicyName
- The Content Key Policy name.parameters
- The request parameters.- Returns:
- a Content Key Policy resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String accountName, String contentKeyPolicyName, com.azure.core.util.Context context) Delete a Content Key PolicyDeletes a Content Key Policy in the Media Services account.
- Parameters:
resourceGroupName
- The name of the resource group within the Azure subscription.accountName
- The Media Services account name.contentKeyPolicyName
- The Content Key Policy name.context
- The context to associate with this operation.- Returns:
- the
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete a Content Key PolicyDeletes a Content Key Policy in the Media Services account.
- Parameters:
resourceGroupName
- The name of the resource group within the Azure subscription.accountName
- The Media Services account name.contentKeyPolicyName
- The Content Key Policy name.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponse
com.azure.core.http.rest.Response<ContentKeyPolicyInner> updateWithResponse(String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters, com.azure.core.util.Context context) Update a Content Key PolicyUpdates an existing Content Key Policy in the Media Services account.
- Parameters:
resourceGroupName
- The name of the resource group within the Azure subscription.accountName
- The Media Services account name.contentKeyPolicyName
- The Content Key Policy name.parameters
- The request parameters.context
- The context to associate with this operation.- Returns:
- a Content Key Policy resource along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
ContentKeyPolicyInner update(String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters) Update a Content Key PolicyUpdates an existing Content Key Policy in the Media Services account.
- Parameters:
resourceGroupName
- The name of the resource group within the Azure subscription.accountName
- The Media Services account name.contentKeyPolicyName
- The Content Key Policy name.parameters
- The request parameters.- Returns:
- a Content Key Policy resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getPolicyPropertiesWithSecretsWithResponse
com.azure.core.http.rest.Response<ContentKeyPolicyPropertiesInner> getPolicyPropertiesWithSecretsWithResponse(String resourceGroupName, String accountName, String contentKeyPolicyName, com.azure.core.util.Context context) Get a Content Key Policy with secretsGet a Content Key Policy including secret values.
- Parameters:
resourceGroupName
- The name of the resource group within the Azure subscription.accountName
- The Media Services account name.contentKeyPolicyName
- The Content Key Policy name.context
- The context to associate with this operation.- Returns:
- a Content Key Policy including secret values along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getPolicyPropertiesWithSecrets
ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets(String resourceGroupName, String accountName, String contentKeyPolicyName) Get a Content Key Policy with secretsGet a Content Key Policy including secret values.
- Parameters:
resourceGroupName
- The name of the resource group within the Azure subscription.accountName
- The Media Services account name.contentKeyPolicyName
- The Content Key Policy name.- Returns:
- a Content Key Policy including secret values.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-