Struct gsuite_api::customers::Customers [−][src]
pub struct Customers { pub client: Client, }
Fields
client: Client
Implementations
This function performs a GET
to the /admin/directory/v1/customers/{customerKey}
endpoint.
Retrieves a customer.
Parameters:
customer_key: &str
– Id of the customer to be retrieved.
This function performs a PUT
to the /admin/directory/v1/customers/{customerKey}
endpoint.
Updates a customer.
Parameters:
customer_key: &str
– Id of the customer to be updated.
This function performs a PATCH
to the /admin/directory/v1/customers/{customerKey}
endpoint.
Patches a customer.
Parameters:
customer_key: &str
– Id of the customer to be updated.
This function performs a GET
to the /admin/directory/v1/{name}
endpoint.
Returns a Printer
resource (printer’s config).
Parameters:
name: &str
– Required. The name of the printer to retrieve. Format: customers/{customer_id}/chrome/printers/{printer_id}.
This function performs a DELETE
to the /admin/directory/v1/{name}
endpoint.
Deletes a Printer
.
Parameters:
name: &str
– Required. The name of the printer to be updated. Format: customers/{customer_id}/chrome/printers/{printer_id}.
This function performs a PATCH
to the /admin/directory/v1/{name}
endpoint.
Updates a Printer
resource.
Parameters:
name: &str
– The resource name of the Printer object, in the format customers/{customer-id}/printers/{printer-id} (During printer creation leave empty).clear_mask: &str
– The list of fields to be cleared. Note, some of the fields are read only and cannot be updated. Values for not specified fields will be patched.update_mask: &str
– The list of fields to be updated. Note, some of the fields are read only and cannot be updated. Values for not specified fields will be patched.
This function performs a GET
to the /admin/directory/v1/{parent}/chrome/printers
endpoint.
List printers configs.
Parameters:
parent: &str
– Required. The name of the customer who owns this collection of printers. Format: customers/{customer_id}.filter: &str
– Search query. Search syntax is shared between this api and Admin Console printers pages.org_unit_id: &str
– Organization Unit that we want to list the printers for. When org_unit is not present in the request then all printers of the customer are returned (or filtered). When org_unit is present in the request then only printers available to this OU will be returned (owned or inherited). You may see if printer is owned or inherited for this OU by looking at Printer.org_unit_id.page_size: i64
– The maximum number of objects to return. The service may return fewer than this value.page_token: &str
– A page token, received from a previous call.
This function performs a GET
to the /admin/directory/v1/{parent}/chrome/printers
endpoint.
As opposed to admin_chrome_printers_list
, this function returns all the pages of the request at once.
List printers configs.
This function performs a POST
to the /admin/directory/v1/{parent}/chrome/printers
endpoint.
Creates a printer under given Organization Unit.
Parameters:
parent: &str
– Required. The name of the customer. Format: customers/{customer_id}.
pub async fn admin_chrome_printers_batch_create(
&self,
parent: &str,
body: &BatchCreatePrintersRequest
) -> Result<BatchCreatePrintersResponse>
pub async fn admin_chrome_printers_batch_create(
&self,
parent: &str,
body: &BatchCreatePrintersRequest
) -> Result<BatchCreatePrintersResponse>
This function performs a POST
to the /admin/directory/v1/{parent}/chrome/printers:batchCreatePrinters
endpoint.
Creates printers under given Organization Unit.
Parameters:
parent: &str
– Required. The name of the customer. Format: customers/{customer_id}.
pub async fn admin_chrome_printers_batch_delete(
&self,
parent: &str,
body: &BatchDeletePrintersRequest
) -> Result<BatchDeletePrintersResponse>
pub async fn admin_chrome_printers_batch_delete(
&self,
parent: &str,
body: &BatchDeletePrintersRequest
) -> Result<BatchDeletePrintersResponse>
This function performs a POST
to the /admin/directory/v1/{parent}/chrome/printers:batchDeletePrinters
endpoint.
Deletes printers in batch.
Parameters:
parent: &str
– Required. The name of the customer. Format: customers/{customer_id}.
pub async fn admin_chrome_printers_list_printer_models(
&self,
parent: &str,
filter: &str,
page_size: i64,
page_token: &str
) -> Result<Vec<PrinterModel>>
pub async fn admin_chrome_printers_list_printer_models(
&self,
parent: &str,
filter: &str,
page_size: i64,
page_token: &str
) -> Result<Vec<PrinterModel>>
This function performs a GET
to the /admin/directory/v1/{parent}/chrome/printers:listPrinterModels
endpoint.
Lists the supported printer models.
Parameters:
parent: &str
– Required. The name of the customer who owns this collection of printers. Format: customers/{customer_id}.filter: &str
– Filer to list only models by a given manufacturer in format: “manufacturer:Brother”. Search syntax is shared between this api and Admin Console printers pages.page_size: i64
– The maximum number of objects to return. The service may return fewer than this value.page_token: &str
– A page token, received from a previous call.
pub async fn admin_chrome_printers_list_all_printer_models(
&self,
parent: &str,
filter: &str
) -> Result<Vec<PrinterModel>>
pub async fn admin_chrome_printers_list_all_printer_models(
&self,
parent: &str,
filter: &str
) -> Result<Vec<PrinterModel>>
This function performs a GET
to the /admin/directory/v1/{parent}/chrome/printers:listPrinterModels
endpoint.
As opposed to admin_chrome_printers_list_printer_models
, this function returns all the pages of the request at once.
Lists the supported printer models.