PoliciesClient Interface

public interface PoliciesClient

An instance of this class provides access to all the operations defined in PoliciesClient.

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<BillingAccountPolicyInner>,BillingAccountPolicyInner> beginCreateOrUpdateByBillingAccount(String billingAccountName, BillingAccountPolicyInner parameters)

Update the policies for a billing account of Enterprise Agreement type.

abstract SyncPoller<PollResult<BillingAccountPolicyInner>,BillingAccountPolicyInner> beginCreateOrUpdateByBillingAccount(String billingAccountName, BillingAccountPolicyInner parameters, Context context)

Update the policies for a billing account of Enterprise Agreement type.

abstract SyncPoller<PollResult<BillingProfilePolicyInner>,BillingProfilePolicyInner> beginCreateOrUpdateByBillingProfile(String billingAccountName, String billingProfileName, BillingProfilePolicyInner parameters)

Updates the policies for a billing profile.

abstract SyncPoller<PollResult<BillingProfilePolicyInner>,BillingProfilePolicyInner> beginCreateOrUpdateByBillingProfile(String billingAccountName, String billingProfileName, BillingProfilePolicyInner parameters, Context context)

Updates the policies for a billing profile.

abstract SyncPoller<PollResult<CustomerPolicyInner>,CustomerPolicyInner> beginCreateOrUpdateByCustomer(String billingAccountName, String billingProfileName, String customerName, CustomerPolicyInner parameters)

Updates the policies for a customer.

abstract SyncPoller<PollResult<CustomerPolicyInner>,CustomerPolicyInner> beginCreateOrUpdateByCustomer(String billingAccountName, String billingProfileName, String customerName, CustomerPolicyInner parameters, Context context)

Updates the policies for a customer.

abstract SyncPoller<PollResult<CustomerPolicyInner>,CustomerPolicyInner> beginCreateOrUpdateByCustomerAtBillingAccount(String billingAccountName, String customerName, CustomerPolicyInner parameters)

Updates the policies for a customer at billing account scope.

abstract SyncPoller<PollResult<CustomerPolicyInner>,CustomerPolicyInner> beginCreateOrUpdateByCustomerAtBillingAccount(String billingAccountName, String customerName, CustomerPolicyInner parameters, Context context)

Updates the policies for a customer at billing account scope.

abstract BillingAccountPolicyInner createOrUpdateByBillingAccount(String billingAccountName, BillingAccountPolicyInner parameters)

Update the policies for a billing account of Enterprise Agreement type.

abstract BillingAccountPolicyInner createOrUpdateByBillingAccount(String billingAccountName, BillingAccountPolicyInner parameters, Context context)

Update the policies for a billing account of Enterprise Agreement type.

abstract BillingProfilePolicyInner createOrUpdateByBillingProfile(String billingAccountName, String billingProfileName, BillingProfilePolicyInner parameters)

Updates the policies for a billing profile.

abstract BillingProfilePolicyInner createOrUpdateByBillingProfile(String billingAccountName, String billingProfileName, BillingProfilePolicyInner parameters, Context context)

Updates the policies for a billing profile.

abstract CustomerPolicyInner createOrUpdateByCustomer(String billingAccountName, String billingProfileName, String customerName, CustomerPolicyInner parameters)

Updates the policies for a customer.

abstract CustomerPolicyInner createOrUpdateByCustomer(String billingAccountName, String billingProfileName, String customerName, CustomerPolicyInner parameters, Context context)

Updates the policies for a customer.

abstract CustomerPolicyInner createOrUpdateByCustomerAtBillingAccount(String billingAccountName, String customerName, CustomerPolicyInner parameters)

Updates the policies for a customer at billing account scope.

abstract CustomerPolicyInner createOrUpdateByCustomerAtBillingAccount(String billingAccountName, String customerName, CustomerPolicyInner parameters, Context context)

Updates the policies for a customer at billing account scope.

abstract BillingAccountPolicyInner getByBillingAccount(String billingAccountName)

Get the policies for a billing account of Enterprise Agreement type.

abstract Response<BillingAccountPolicyInner> getByBillingAccountWithResponse(String billingAccountName, Context context)

Get the policies for a billing account of Enterprise Agreement type.

abstract BillingProfilePolicyInner getByBillingProfile(String billingAccountName, String billingProfileName)

Lists the policies for a billing profile.

abstract Response<BillingProfilePolicyInner> getByBillingProfileWithResponse(String billingAccountName, String billingProfileName, Context context)

Lists the policies for a billing profile.

abstract CustomerPolicyInner getByCustomer(String billingAccountName, String billingProfileName, String customerName, ServiceDefinedResourceName policyName)

Lists the policies for a customer.

abstract CustomerPolicyInner getByCustomerAtBillingAccount(String billingAccountName, String customerName)

Lists the policies for a customer at billing account scope.

abstract Response<CustomerPolicyInner> getByCustomerAtBillingAccountWithResponse(String billingAccountName, String customerName, Context context)

Lists the policies for a customer at billing account scope.

abstract Response<CustomerPolicyInner> getByCustomerWithResponse(String billingAccountName, String billingProfileName, String customerName, ServiceDefinedResourceName policyName, Context context)

Lists the policies for a customer.

abstract SubscriptionPolicyInner getBySubscription()

Lists the policies that are managed by the Billing Admin for the defined subscriptions.

abstract Response<SubscriptionPolicyInner> getBySubscriptionWithResponse(Context context)

Lists the policies that are managed by the Billing Admin for the defined subscriptions.

Method Details

beginCreateOrUpdateByBillingAccount

public abstract SyncPoller<PollResult<BillingAccountPolicyInner>,BillingAccountPolicyInner> beginCreateOrUpdateByBillingAccount(String billingAccountName, BillingAccountPolicyInner parameters)

Update the policies for a billing account of Enterprise Agreement type.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
parameters - A policy at billing account scope.

Returns:

the SyncPoller<T,U> for polling of a policy at billing account scope.

beginCreateOrUpdateByBillingAccount

public abstract SyncPoller<PollResult<BillingAccountPolicyInner>,BillingAccountPolicyInner> beginCreateOrUpdateByBillingAccount(String billingAccountName, BillingAccountPolicyInner parameters, Context context)

Update the policies for a billing account of Enterprise Agreement type.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
parameters - A policy at billing account scope.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of a policy at billing account scope.

beginCreateOrUpdateByBillingProfile

public abstract SyncPoller<PollResult<BillingProfilePolicyInner>,BillingProfilePolicyInner> beginCreateOrUpdateByBillingProfile(String billingAccountName, String billingProfileName, BillingProfilePolicyInner parameters)

Updates the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
parameters - A policy at billing profile scope.

Returns:

the SyncPoller<T,U> for polling of a policy at billing profile scope.

beginCreateOrUpdateByBillingProfile

public abstract SyncPoller<PollResult<BillingProfilePolicyInner>,BillingProfilePolicyInner> beginCreateOrUpdateByBillingProfile(String billingAccountName, String billingProfileName, BillingProfilePolicyInner parameters, Context context)

Updates the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
parameters - A policy at billing profile scope.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of a policy at billing profile scope.

beginCreateOrUpdateByCustomer

public abstract SyncPoller<PollResult<CustomerPolicyInner>,CustomerPolicyInner> beginCreateOrUpdateByCustomer(String billingAccountName, String billingProfileName, String customerName, CustomerPolicyInner parameters)

Updates the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
customerName - The ID that uniquely identifies a customer.
parameters - A policy at customer scope.

Returns:

the SyncPoller<T,U> for polling of a policy at customer scope.

beginCreateOrUpdateByCustomer

public abstract SyncPoller<PollResult<CustomerPolicyInner>,CustomerPolicyInner> beginCreateOrUpdateByCustomer(String billingAccountName, String billingProfileName, String customerName, CustomerPolicyInner parameters, Context context)

Updates the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
customerName - The ID that uniquely identifies a customer.
parameters - A policy at customer scope.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of a policy at customer scope.

beginCreateOrUpdateByCustomerAtBillingAccount

public abstract SyncPoller<PollResult<CustomerPolicyInner>,CustomerPolicyInner> beginCreateOrUpdateByCustomerAtBillingAccount(String billingAccountName, String customerName, CustomerPolicyInner parameters)

Updates the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
customerName - The ID that uniquely identifies a customer.
parameters - A policy at customer scope.

Returns:

the SyncPoller<T,U> for polling of a policy at customer scope.

beginCreateOrUpdateByCustomerAtBillingAccount

public abstract SyncPoller<PollResult<CustomerPolicyInner>,CustomerPolicyInner> beginCreateOrUpdateByCustomerAtBillingAccount(String billingAccountName, String customerName, CustomerPolicyInner parameters, Context context)

Updates the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
customerName - The ID that uniquely identifies a customer.
parameters - A policy at customer scope.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of a policy at customer scope.

createOrUpdateByBillingAccount

public abstract BillingAccountPolicyInner createOrUpdateByBillingAccount(String billingAccountName, BillingAccountPolicyInner parameters)

Update the policies for a billing account of Enterprise Agreement type.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
parameters - A policy at billing account scope.

Returns:

a policy at billing account scope.

createOrUpdateByBillingAccount

public abstract BillingAccountPolicyInner createOrUpdateByBillingAccount(String billingAccountName, BillingAccountPolicyInner parameters, Context context)

Update the policies for a billing account of Enterprise Agreement type.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
parameters - A policy at billing account scope.
context - The context to associate with this operation.

Returns:

a policy at billing account scope.

createOrUpdateByBillingProfile

public abstract BillingProfilePolicyInner createOrUpdateByBillingProfile(String billingAccountName, String billingProfileName, BillingProfilePolicyInner parameters)

Updates the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
parameters - A policy at billing profile scope.

Returns:

a policy at billing profile scope.

createOrUpdateByBillingProfile

public abstract BillingProfilePolicyInner createOrUpdateByBillingProfile(String billingAccountName, String billingProfileName, BillingProfilePolicyInner parameters, Context context)

Updates the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
parameters - A policy at billing profile scope.
context - The context to associate with this operation.

Returns:

a policy at billing profile scope.

createOrUpdateByCustomer

public abstract CustomerPolicyInner createOrUpdateByCustomer(String billingAccountName, String billingProfileName, String customerName, CustomerPolicyInner parameters)

Updates the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
customerName - The ID that uniquely identifies a customer.
parameters - A policy at customer scope.

Returns:

a policy at customer scope.

createOrUpdateByCustomer

public abstract CustomerPolicyInner createOrUpdateByCustomer(String billingAccountName, String billingProfileName, String customerName, CustomerPolicyInner parameters, Context context)

Updates the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
customerName - The ID that uniquely identifies a customer.
parameters - A policy at customer scope.
context - The context to associate with this operation.

Returns:

a policy at customer scope.

createOrUpdateByCustomerAtBillingAccount

public abstract CustomerPolicyInner createOrUpdateByCustomerAtBillingAccount(String billingAccountName, String customerName, CustomerPolicyInner parameters)

Updates the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
customerName - The ID that uniquely identifies a customer.
parameters - A policy at customer scope.

Returns:

a policy at customer scope.

createOrUpdateByCustomerAtBillingAccount

public abstract CustomerPolicyInner createOrUpdateByCustomerAtBillingAccount(String billingAccountName, String customerName, CustomerPolicyInner parameters, Context context)

Updates the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
customerName - The ID that uniquely identifies a customer.
parameters - A policy at customer scope.
context - The context to associate with this operation.

Returns:

a policy at customer scope.

getByBillingAccount

public abstract BillingAccountPolicyInner getByBillingAccount(String billingAccountName)

Get the policies for a billing account of Enterprise Agreement type.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.

Returns:

the policies for a billing account of Enterprise Agreement type.

getByBillingAccountWithResponse

public abstract Response<BillingAccountPolicyInner> getByBillingAccountWithResponse(String billingAccountName, Context context)

Get the policies for a billing account of Enterprise Agreement type.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
context - The context to associate with this operation.

Returns:

the policies for a billing account of Enterprise Agreement type along with Response<T>.

getByBillingProfile

public abstract BillingProfilePolicyInner getByBillingProfile(String billingAccountName, String billingProfileName)

Lists the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.

Returns:

a policy at billing profile scope.

getByBillingProfileWithResponse

public abstract Response<BillingProfilePolicyInner> getByBillingProfileWithResponse(String billingAccountName, String billingProfileName, Context context)

Lists the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
context - The context to associate with this operation.

Returns:

a policy at billing profile scope along with Response<T>.

getByCustomer

public abstract CustomerPolicyInner getByCustomer(String billingAccountName, String billingProfileName, String customerName, ServiceDefinedResourceName policyName)

Lists the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
customerName - The ID that uniquely identifies a customer.
policyName - Service-defined resource names such as 'default' which are reserved resource names.

Returns:

a policy at customer scope.

getByCustomerAtBillingAccount

public abstract CustomerPolicyInner getByCustomerAtBillingAccount(String billingAccountName, String customerName)

Lists the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
customerName - The ID that uniquely identifies a customer.

Returns:

a policy at customer scope.

getByCustomerAtBillingAccountWithResponse

public abstract Response<CustomerPolicyInner> getByCustomerAtBillingAccountWithResponse(String billingAccountName, String customerName, Context context)

Lists the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
customerName - The ID that uniquely identifies a customer.
context - The context to associate with this operation.

Returns:

a policy at customer scope along with Response<T>.

getByCustomerWithResponse

public abstract Response<CustomerPolicyInner> getByCustomerWithResponse(String billingAccountName, String billingProfileName, String customerName, ServiceDefinedResourceName policyName, Context context)

Lists the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
customerName - The ID that uniquely identifies a customer.
policyName - Service-defined resource names such as 'default' which are reserved resource names.
context - The context to associate with this operation.

Returns:

a policy at customer scope along with Response<T>.

getBySubscription

public abstract SubscriptionPolicyInner getBySubscription()

Lists the policies that are managed by the Billing Admin for the defined subscriptions. This is supported for Microsoft Online Services Program, Microsoft Customer Agreement and Microsoft Partner Agreement.

Returns:

a policy at subscription scope.

getBySubscriptionWithResponse

public abstract Response<SubscriptionPolicyInner> getBySubscriptionWithResponse(Context context)

Lists the policies that are managed by the Billing Admin for the defined subscriptions. This is supported for Microsoft Online Services Program, Microsoft Customer Agreement and Microsoft Partner Agreement.

Parameters:

context - The context to associate with this operation.

Returns:

a policy at subscription scope along with Response<T>.

Applies to