DepartmentsClient Interface

public interface DepartmentsClient

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

Method Details

get

public abstract DepartmentInner get(String billingAccountName, String departmentName)

Gets a department by ID. The operation is supported only for billing accounts with agreement type Enterprise Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
departmentName - The name of the department.

Returns:

a department by ID.

getWithResponse

public abstract Response<DepartmentInner> getWithResponse(String billingAccountName, String departmentName, Context context)

Gets a department by ID. The operation is supported only for billing accounts with agreement type Enterprise Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
departmentName - The name of the department.
context - The context to associate with this operation.

Returns:

a department by ID along with Response<T>.

listByBillingAccount

public abstract PagedIterable<DepartmentInner> listByBillingAccount(String billingAccountName)

Lists the departments that a user has access to. The operation is supported only for billing accounts with agreement type Enterprise Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.

Returns:

a container for a list of resources as paginated response with PagedIterable<T>.

listByBillingAccount

public abstract PagedIterable<DepartmentInner> listByBillingAccount(String billingAccountName, String filter, String orderBy, Long top, Long skip, String search, Context context)

Lists the departments that a user has access to. The operation is supported only for billing accounts with agreement type Enterprise Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
filter - The filter query option allows clients to filter a collection of resources that are addressed by a request URL.
orderBy - The orderby query option allows clients to request resources in a particular order.
top - The top query option requests the number of items in the queried collection to be included in the result. The maximum supported value for top is 50.
skip - The skip query option requests the number of items in the queried collection that are to be skipped and not included in the result.
search - The search query option allows clients to request items within a collection matching a free-text search expression. search is only supported for string fields.
context - The context to associate with this operation.

Returns:

a container for a list of resources as paginated response with PagedIterable<T>.

Applies to