GCP.AndroidDeviceProvisioning reference
CustomersConfiguration
Section titled “CustomersConfiguration”Source:
src/GCP/AndroidDeviceProvisioning/CustomersConfiguration.ts
A zero-touch enrollment configuration
(customers/{customer}/configurations/{configuration}).
Configurations have no labels field, so Alchemy stamps ownership into
configurationName for list / nuke. Parent customer and
configuration id are identity — changing either replaces the
configuration. Contact fields, DPC, extras, default flag, custom
message, and reset timeout update in place. Create requires a
zero-touch customer the caller can administer.
CustomersConfiguration: Creating a Configuration
Section titled “CustomersConfiguration: Creating a Configuration”Named sales profile
const config = yield* GCP.AndroidDeviceProvisioning.CustomersConfiguration( "Sales", { parent: "customers/123456789", dpcResourcePath: "customers/123456789/dpcs/abc", companyName: "Acme", contactEmail: "it@example.com", contactPhone: "+1 555 0100", configurationName: "Sales team", },);Default configuration for new devices
const config = yield* GCP.AndroidDeviceProvisioning.CustomersConfiguration( "Default", { parent: customer, dpcResourcePath: dpc, companyName: "Acme", contactEmail: "it@example.com", contactPhone: "+1 555 0100", isDefault: true, },);CustomersConfiguration: Updating a Configuration
Section titled “CustomersConfiguration: Updating a Configuration”Re-declare the same logical id with changed props; the engine keeps the physical resource and updates it in place.
const config = yield* GCP.AndroidDeviceProvisioning.CustomersConfiguration( "Sales", { parent: customer, dpcResourcePath: dpc, contactEmail: "help@example.com", contactPhone: "+1 555 0100", configurationName: "Field sales", },);