Method: admin.directory.v1.customers.chrome.printers.patch
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Memperbarui resource Printer
.
Permintaan HTTP
PATCH https://admin.googleapis.com/admin/directory/v1/{printer.name=customers/*/chrome/printers/*}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
printer.name |
string
ID. Nama resource objek Printer, dalam format customers/{customer-id}/printers/{printer-id} (Selama pembuatan printer, biarkan kosong)
|
Parameter kueri
Parameter |
updateMask |
string (FieldMask format)
Daftar kolom yang akan diperbarui. Perhatikan bahwa beberapa kolom bersifat hanya baca dan tidak dapat diperbarui. Nilai untuk kolom yang tidak ditentukan akan ditambal. Ini adalah daftar dipisahkan koma yang berisi nama-nama kolom yang sepenuhnya memenuhi syarat. Contoh: "user.displayName,photo" .
|
clearMask |
string (FieldMask format)
Daftar kolom yang akan dihapus. Perhatikan bahwa beberapa kolom bersifat hanya baca dan tidak dapat diperbarui. Nilai untuk kolom yang tidak ditentukan akan ditambal. Ini adalah daftar dipisahkan koma yang berisi nama-nama kolom yang sepenuhnya memenuhi syarat. Contoh: "user.displayName,photo" .
|
Isi permintaan
Isi permintaan memuat instance Printer
.
Isi respons
Jika berhasil, isi respons memuat instance Printer
.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/admin.chrome.printers
Untuk mengetahui informasi selengkapnya, lihat Panduan otorisasi.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-24 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-24 UTC."],[],[],null,["# Method: admin.directory.v1.customers.chrome.printers.patch\n\nUpdates a `Printer` resource.\n\n### HTTP request\n\n`PATCH https://admin.googleapis.com/admin/directory/v1/{printer.name=customers/*/chrome/printers/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `printer.name` | `string` Identifier. The resource name of the Printer object, in the format customers/{customer-id}/printers/{printer-id} (During printer creation leave empty) |\n\n### Query parameters\n\n| Parameters ||\n|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` 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 is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n| `clearMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` 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. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n\n### Request body\n\nThe request body contains an instance of [Printer](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers#Printer).\n\n### Response body\n\nIf successful, the response body contains an instance of [Printer](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers#Printer).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/admin.chrome.printers`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]