class CustomersChromePrinters extends Resource (View source)

The "printers" collection of methods.

Typical usage is:

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

Methods

batchCreatePrinters(string $parent, BatchCreatePrintersRequest $postBody, array $optParams = [])

Creates printers under given Organization Unit.

batchDeletePrinters(string $parent, BatchDeletePrintersRequest $postBody, array $optParams = [])

Deletes printers in batch. (printers.batchDeletePrinters)

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

Creates a printer under given Organization Unit. (printers.create)

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

Deletes a Printer. (printers.delete)

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

Returns a Printer resource (printer's config). (printers.get)

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

List printers configs. (printers.listCustomersChromePrinters)

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

Lists the supported printer models. (printers.listPrinterModels)

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

Updates a Printer resource. (printers.patch)

Details

BatchCreatePrintersResponse batchCreatePrinters(string $parent, BatchCreatePrintersRequest $postBody, array $optParams = [])

Creates printers under given Organization Unit.

(printers.batchCreatePrinters)

Parameters

string $parent

Required. The name of the customer. Format: customers/{customer_id}

BatchCreatePrintersRequest $postBody
array $optParams

Optional parameters.

Return Value

BatchCreatePrintersResponse

Exceptions

Exception

BatchDeletePrintersResponse batchDeletePrinters(string $parent, BatchDeletePrintersRequest $postBody, array $optParams = [])

Deletes printers in batch. (printers.batchDeletePrinters)

Parameters

string $parent

Required. The name of the customer. Format: customers/{customer_id}

BatchDeletePrintersRequest $postBody
array $optParams

Optional parameters.

Return Value

BatchDeletePrintersResponse

Exceptions

Exception

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

Creates a printer under given Organization Unit. (printers.create)

Parameters

string $parent

Required. The name of the customer. Format: customers/{customer_id}

Printer $postBody
array $optParams

Optional parameters.

Return Value

Printer

Exceptions

Exception

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

Deletes a Printer. (printers.delete)

Parameters

string $name

Required. The name of the printer to be updated. Format: customers/{customer_id}/chrome/printers/{printer_id}

array $optParams

Optional parameters.

Return Value

AdminEmpty

Exceptions

Exception

Printer get(string $name, array $optParams = [])

Returns a Printer resource (printer's config). (printers.get)

Parameters

string $name

Required. The name of the printer to retrieve. Format: customers/{customer_id}/chrome/printers/{printer_id}

array $optParams

Optional parameters.

Return Value

Printer

Exceptions

Exception

ListPrintersResponse listCustomersChromePrinters(string $parent, array $optParams = [])

List printers configs. (printers.listCustomersChromePrinters)

Parameters

string $parent

Required. The name of the customer who owns this collection of printers. Format: customers/{customer_id}

array $optParams

Optional parameters.

Return Value

ListPrintersResponse

Exceptions

Exception

ListPrinterModelsResponse listPrinterModels(string $parent, array $optParams = [])

Lists the supported printer models. (printers.listPrinterModels)

Parameters

string $parent

Required. The name of the customer who owns this collection of printers. Format: customers/{customer_id}

array $optParams

Optional parameters.

Return Value

ListPrinterModelsResponse

Exceptions

Exception

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

Updates a Printer resource. (printers.patch)

Parameters

string $name

The resource name of the Printer object, in the format customers/{customer-id}/printers/{printer-id} (During printer creation leave empty)

Printer $postBody
array $optParams

Optional parameters.

Return Value

Printer

Exceptions

Exception