class AccountsLabels extends Resource (View source)

The "labels" collection of methods.

Typical usage is:

 $cssService = new Google\Service\Css(...);
 $labels = $cssService->accounts_labels;

Methods

create(string $parent, AccountLabel $postBody, array $optParams = [])

Creates a new label, not assigned to any account. (labels.create)

delete(string $name, array $optParams = [])

Deletes a label and removes it from all accounts to which it was assigned.

listAccountsLabels(string $parent, array $optParams = [])

Lists the labels assigned to an account. (labels.listAccountsLabels)

patch(string $name, AccountLabel $postBody, array $optParams = [])

Updates a label. (labels.patch)

Details

AccountLabel create(string $parent, AccountLabel $postBody, array $optParams = [])

Creates a new label, not assigned to any account. (labels.create)

Parameters

string $parent

Required. The parent account. Format: accounts/{account}

AccountLabel $postBody
array $optParams

Optional parameters.

Return Value

AccountLabel

Exceptions

Exception

CssEmpty delete(string $name, array $optParams = [])

Deletes a label and removes it from all accounts to which it was assigned.

(labels.delete)

Parameters

string $name

Required. The name of the label to delete. Format: accounts/{account}/labels/{label}

array $optParams

Optional parameters.

Return Value

CssEmpty

Exceptions

Exception

ListAccountLabelsResponse listAccountsLabels(string $parent, array $optParams = [])

Lists the labels assigned to an account. (labels.listAccountsLabels)

Parameters

string $parent

Required. The parent account. Format: accounts/{account}

array $optParams

Optional parameters.

Return Value

ListAccountLabelsResponse

Exceptions

Exception

AccountLabel patch(string $name, AccountLabel $postBody, array $optParams = [])

Updates a label. (labels.patch)

Parameters

string $name

The resource name of the label. Format: accounts/{account}/labels/{label}

AccountLabel $postBody
array $optParams

Optional parameters.

Return Value

AccountLabel

Exceptions

Exception