Skip to content

GCP.AndroidEnterprise reference

Source: src/GCP/AndroidEnterprise/Storelayoutcluster.ts

A managed Google Play store cluster (storelayoutclusters).

Store clusters have no labels field and their names are shown to device users, so Alchemy tracks a cluster by its recorded id only (list finds clusters from older releases that carried a name marker). enterpriseId, pageId, and clusterId are identity — changing any replaces the cluster. Names, products, and order update in place.

Storelayoutcluster: Creating a Store Cluster

Section titled “Storelayoutcluster: Creating a Store Cluster”

Generated name

const cluster = yield* GCP.AndroidEnterprise.Storelayoutcluster("Apps", {
enterpriseId: page.enterpriseId,
pageId: page.pageId,
});

Explicit name and products

const cluster = yield* GCP.AndroidEnterprise.Storelayoutcluster("Apps", {
enterpriseId: page.enterpriseId,
pageId: page.pageId,
name: [{ locale: "en-US", text: "Work apps" }],
productId: ["app:com.google.android.gm"],
});

Storelayoutcluster: Updating a Store Cluster

Section titled “Storelayoutcluster: Updating a Store Cluster”

Re-declare the same logical id with changed props; the engine keeps the physical resource and updates it in place.

const cluster = yield* GCP.AndroidEnterprise.Storelayoutcluster("Apps", {
enterpriseId: page.enterpriseId,
pageId: page.pageId,
name: [{ locale: "en-US", text: "Featured apps" }],
});

Source: src/GCP/AndroidEnterprise/Storelayoutpage.ts

A managed Google Play store page (storelayoutpages).

Store pages have no labels field and their names are shown to device users, so Alchemy tracks a page by its recorded id only (list finds pages from older releases that carried a name marker). enterpriseId and pageId are identity — changing either replaces the page. Names and links update in place.

Generated name

const page = yield* GCP.AndroidEnterprise.Storelayoutpage("Home", {
enterpriseId: "123456789",
});

Explicit localized name

const page = yield* GCP.AndroidEnterprise.Storelayoutpage("Home", {
enterpriseId: "123456789",
name: [{ locale: "en-US", text: "Home" }],
});

Re-declare the same logical id with changed props; the engine keeps the physical resource and updates it in place.

const page = yield* GCP.AndroidEnterprise.Storelayoutpage("Home", {
enterpriseId: "123456789",
name: [{ locale: "en-US", text: "Featured" }],
});

Source: src/GCP/AndroidEnterprise/Webapp.ts

A managed Google Play web app (webapps).

Web apps have no labels field and their title is shown to users, so Alchemy tracks an app by its recorded id only (list finds apps from older releases that carried a title marker). enterpriseId and webAppId are identity — changing either replaces the app. Title, start URL, display mode, icons, and publish state update in place.

Standalone HTTPS app

const app = yield* GCP.AndroidEnterprise.Webapp("Portal", {
enterpriseId: "123456789",
startUrl: "https://intranet.example.com/",
title: "Portal",
});

Minimal UI for an HTTP URL

const app = yield* GCP.AndroidEnterprise.Webapp("Legacy", {
enterpriseId: "123456789",
startUrl: "http://intranet.example.com/",
displayMode: "minimalUi",
title: "Legacy portal",
});

Re-declare the same logical id with changed props; the engine keeps the physical resource and updates it in place.

const app = yield* GCP.AndroidEnterprise.Webapp("Portal", {
enterpriseId: "123456789",
startUrl: "https://intranet.example.com/",
title: "Employee portal",
});