class ResourcesFeatures extends Resource (View source)

The "features" collection of methods.

Typical usage is:

 $adminService = new Google\Service\Directory(...);
 $features = $adminService->resources_features;

Methods

delete(string $customer, string $featureKey, array $optParams = [])

Deletes a feature. (features.delete)

get(string $customer, string $featureKey, array $optParams = [])

Retrieves a feature. (features.get)

insert(string $customer, Feature $postBody, array $optParams = [])

Inserts a feature. (features.insert)

listResourcesFeatures(string $customer, array $optParams = [])

Retrieves a list of features for an account. (features.listResourcesFeatures)

patch(string $customer, string $featureKey, Feature $postBody, array $optParams = [])

Patches a feature. (features.patch)

rename(string $customer, string $oldName, FeatureRename $postBody, array $optParams = [])

Renames a feature. (features.rename)

update(string $customer, string $featureKey, Feature $postBody, array $optParams = [])

Updates a feature. (features.update)

Details

delete(string $customer, string $featureKey, array $optParams = [])

Deletes a feature. (features.delete)

Parameters

string $customer

The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.

string $featureKey

The unique ID of the feature to delete.

array $optParams

Optional parameters.

Exceptions

Exception

Feature get(string $customer, string $featureKey, array $optParams = [])

Retrieves a feature. (features.get)

Parameters

string $customer

The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.

string $featureKey

The unique ID of the feature to retrieve.

array $optParams

Optional parameters.

Return Value

Feature

Exceptions

Exception

Feature insert(string $customer, Feature $postBody, array $optParams = [])

Inserts a feature. (features.insert)

Parameters

string $customer

The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.

Feature $postBody
array $optParams

Optional parameters.

Return Value

Feature

Exceptions

Exception

Features listResourcesFeatures(string $customer, array $optParams = [])

Retrieves a list of features for an account. (features.listResourcesFeatures)

Parameters

string $customer

The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.

array $optParams

Optional parameters.

Return Value

Features

Exceptions

Exception

Feature patch(string $customer, string $featureKey, Feature $postBody, array $optParams = [])

Patches a feature. (features.patch)

Parameters

string $customer

The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.

string $featureKey

The unique ID of the feature to update.

Feature $postBody
array $optParams

Optional parameters.

Return Value

Feature

Exceptions

Exception

rename(string $customer, string $oldName, FeatureRename $postBody, array $optParams = [])

Renames a feature. (features.rename)

Parameters

string $customer

The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.

string $oldName

The unique ID of the feature to rename.

FeatureRename $postBody
array $optParams

Optional parameters.

Exceptions

Exception

Feature update(string $customer, string $featureKey, Feature $postBody, array $optParams = [])

Updates a feature. (features.update)

Parameters

string $customer

The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.

string $featureKey

The unique ID of the feature to update.

Feature $postBody
array $optParams

Optional parameters.

Return Value

Feature

Exceptions

Exception