class Schemas extends Resource (View source)

The "schemas" collection of methods.

Typical usage is:

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

Methods

delete(string $customerId, string $schemaKey, array $optParams = [])

Deletes a schema. (schemas.delete)

get(string $customerId, string $schemaKey, array $optParams = [])

Retrieves a schema. (schemas.get)

insert(string $customerId, Schema $postBody, array $optParams = [])

Creates a schema. (schemas.insert)

listSchemas(string $customerId, array $optParams = [])

Retrieves all schemas for a customer. (schemas.listSchemas)

patch(string $customerId, string $schemaKey, Schema $postBody, array $optParams = [])

Patches a schema. (schemas.patch)

update(string $customerId, string $schemaKey, Schema $postBody, array $optParams = [])

Updates a schema. (schemas.update)

Details

delete(string $customerId, string $schemaKey, array $optParams = [])

Deletes a schema. (schemas.delete)

Parameters

string $customerId

Immutable ID of the Google Workspace account.

string $schemaKey

Name or immutable ID of the schema.

array $optParams

Optional parameters.

Exceptions

Exception

Schema get(string $customerId, string $schemaKey, array $optParams = [])

Retrieves a schema. (schemas.get)

Parameters

string $customerId

The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of domain. You can also use the my_customer alias to represent your account's customerId. The customerId is also returned as part of the Users resource. You must provide either the customer or the domain parameter.

string $schemaKey

Name or immutable ID of the schema.

array $optParams

Optional parameters.

Return Value

Schema

Exceptions

Exception

Schema insert(string $customerId, Schema $postBody, array $optParams = [])

Creates a schema. (schemas.insert)

Parameters

string $customerId

Immutable ID of the Google Workspace account.

Schema $postBody
array $optParams

Optional parameters.

Return Value

Schema

Exceptions

Exception

Schemas listSchemas(string $customerId, array $optParams = [])

Retrieves all schemas for a customer. (schemas.listSchemas)

Parameters

string $customerId

The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of domain. You can also use the my_customer alias to represent your account's customerId. The customerId is also returned as part of the Users resource. You must provide either the customer or the domain parameter.

array $optParams

Optional parameters.

Return Value

Schemas

Exceptions

Exception

Schema patch(string $customerId, string $schemaKey, Schema $postBody, array $optParams = [])

Patches a schema. (schemas.patch)

Parameters

string $customerId

Immutable ID of the Google Workspace account.

string $schemaKey

Name or immutable ID of the schema.

Schema $postBody
array $optParams

Optional parameters.

Return Value

Schema

Exceptions

Exception

Schema update(string $customerId, string $schemaKey, Schema $postBody, array $optParams = [])

Updates a schema. (schemas.update)

Parameters

string $customerId

Immutable ID of the Google Workspace account.

string $schemaKey

Name or immutable ID of the schema.

Schema $postBody
array $optParams

Optional parameters.

Return Value

Schema

Exceptions

Exception