# Google Play EMM API . storelayoutclusters

## Instance Methods

Deletes a cluster.

Retrieves details of a cluster.

Inserts a new cluster in a page.

Retrieves the details of all clusters on the specified page.

Updates a cluster. This method supports patch semantics.

Updates a cluster.

### Method Details

`delete(enterpriseId, pageId, clusterId)`

    Deletes a cluster.

    Args:
      enterpriseId: string, The ID of the enterprise. (required)
      pageId: string, The ID of the page. (required)
      clusterId: string, The ID of the cluster. (required)

`get(enterpriseId, pageId, clusterId)`

    Retrieves details of a cluster.

    Args:
      enterpriseId: string, The ID of the enterprise. (required)
      pageId: string, The ID of the page. (required)
      clusterId: string, The ID of the cluster. (required)

    Returns:
      An object of the form:

        { # Definition of a Google Play for Work store cluster, a list of products displayed as part of a store page.
          "kind": "androidenterprise#storeCluster", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#storeCluster".
          "orderInPage": "A String", # String (US-ASCII only) used to determine order of this cluster within the parent page's elements. Page elements are sorted in lexicographic order of this field. Duplicated values are allowed, but ordering between elements with duplicate order is undefined.
              #
              # The value of this field is never visible to a user, it is used solely for the purpose of defining an ordering. Maximum length is 256 characters.
          "productId": [ # List of products in the order they are displayed in the cluster. There should not be duplicates within a cluster.
            "A String",
          ],
          "id": "A String", # Unique ID of this cluster. Assigned by the server. Immutable once assigned.
          "name": [ # Ordered list of localized strings giving the name of this page. The text displayed is the one that best matches the user locale, or the first entry if there is no good match. There needs to be at least one entry.
            { # A localized string with its locale.
              "locale": "A String", # The BCP47 tag for a locale. (e.g. "en-US", "de").
              "text": "A String", # The text localized in the associated locale.
            },
          ],
        }

`insert(enterpriseId, pageId, body)`

    Inserts a new cluster in a page.

    Args:
      enterpriseId: string, The ID of the enterprise. (required)
      pageId: string, The ID of the page. (required)
      body: object, The request body. (required)
        The object takes the form of:

    { # Definition of a Google Play for Work store cluster, a list of products displayed as part of a store page.
        "kind": "androidenterprise#storeCluster", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#storeCluster".
        "orderInPage": "A String", # String (US-ASCII only) used to determine order of this cluster within the parent page's elements. Page elements are sorted in lexicographic order of this field. Duplicated values are allowed, but ordering between elements with duplicate order is undefined.
            #
            # The value of this field is never visible to a user, it is used solely for the purpose of defining an ordering. Maximum length is 256 characters.
        "productId": [ # List of products in the order they are displayed in the cluster. There should not be duplicates within a cluster.
          "A String",
        ],
        "id": "A String", # Unique ID of this cluster. Assigned by the server. Immutable once assigned.
        "name": [ # Ordered list of localized strings giving the name of this page. The text displayed is the one that best matches the user locale, or the first entry if there is no good match. There needs to be at least one entry.
          { # A localized string with its locale.
            "locale": "A String", # The BCP47 tag for a locale. (e.g. "en-US", "de").
            "text": "A String", # The text localized in the associated locale.
          },
        ],
      }

    Returns:
      An object of the form:

        { # Definition of a Google Play for Work store cluster, a list of products displayed as part of a store page.
          "kind": "androidenterprise#storeCluster", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#storeCluster".
          "orderInPage": "A String", # String (US-ASCII only) used to determine order of this cluster within the parent page's elements. Page elements are sorted in lexicographic order of this field. Duplicated values are allowed, but ordering between elements with duplicate order is undefined.
              #
              # The value of this field is never visible to a user, it is used solely for the purpose of defining an ordering. Maximum length is 256 characters.
          "productId": [ # List of products in the order they are displayed in the cluster. There should not be duplicates within a cluster.
            "A String",
          ],
          "id": "A String", # Unique ID of this cluster. Assigned by the server. Immutable once assigned.
          "name": [ # Ordered list of localized strings giving the name of this page. The text displayed is the one that best matches the user locale, or the first entry if there is no good match. There needs to be at least one entry.
            { # A localized string with its locale.
              "locale": "A String", # The BCP47 tag for a locale. (e.g. "en-US", "de").
              "text": "A String", # The text localized in the associated locale.
            },
          ],
        }

`list(enterpriseId, pageId)`

    Retrieves the details of all clusters on the specified page.

    Args:
      enterpriseId: string, The ID of the enterprise. (required)
      pageId: string, The ID of the page. (required)

    Returns:
      An object of the form:

        { # The store page resources for the enterprise.
        "cluster": [ # A store cluster of an enterprise.
          { # Definition of a Google Play for Work store cluster, a list of products displayed as part of a store page.
              "kind": "androidenterprise#storeCluster", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#storeCluster".
              "orderInPage": "A String", # String (US-ASCII only) used to determine order of this cluster within the parent page's elements. Page elements are sorted in lexicographic order of this field. Duplicated values are allowed, but ordering between elements with duplicate order is undefined.
                  #
                  # The value of this field is never visible to a user, it is used solely for the purpose of defining an ordering. Maximum length is 256 characters.
              "productId": [ # List of products in the order they are displayed in the cluster. There should not be duplicates within a cluster.
                "A String",
              ],
              "id": "A String", # Unique ID of this cluster. Assigned by the server. Immutable once assigned.
              "name": [ # Ordered list of localized strings giving the name of this page. The text displayed is the one that best matches the user locale, or the first entry if there is no good match. There needs to be at least one entry.
                { # A localized string with its locale.
                  "locale": "A String", # The BCP47 tag for a locale. (e.g. "en-US", "de").
                  "text": "A String", # The text localized in the associated locale.
                },
              ],
            },
        ],
        "kind": "androidenterprise#storeLayoutClustersListResponse", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#storeLayoutClustersListResponse".
      }

`patch(enterpriseId, pageId, clusterId, body)`

    Updates a cluster. This method supports patch semantics.

    Args:
      enterpriseId: string, The ID of the enterprise. (required)
      pageId: string, The ID of the page. (required)
      clusterId: string, The ID of the cluster. (required)
      body: object, The request body. (required)
        The object takes the form of:

    { # Definition of a Google Play for Work store cluster, a list of products displayed as part of a store page.
        "kind": "androidenterprise#storeCluster", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#storeCluster".
        "orderInPage": "A String", # String (US-ASCII only) used to determine order of this cluster within the parent page's elements. Page elements are sorted in lexicographic order of this field. Duplicated values are allowed, but ordering between elements with duplicate order is undefined.
            #
            # The value of this field is never visible to a user, it is used solely for the purpose of defining an ordering. Maximum length is 256 characters.
        "productId": [ # List of products in the order they are displayed in the cluster. There should not be duplicates within a cluster.
          "A String",
        ],
        "id": "A String", # Unique ID of this cluster. Assigned by the server. Immutable once assigned.
        "name": [ # Ordered list of localized strings giving the name of this page. The text displayed is the one that best matches the user locale, or the first entry if there is no good match. There needs to be at least one entry.
          { # A localized string with its locale.
            "locale": "A String", # The BCP47 tag for a locale. (e.g. "en-US", "de").
            "text": "A String", # The text localized in the associated locale.
          },
        ],
      }

    Returns:
      An object of the form:

        { # Definition of a Google Play for Work store cluster, a list of products displayed as part of a store page.
          "kind": "androidenterprise#storeCluster", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#storeCluster".
          "orderInPage": "A String", # String (US-ASCII only) used to determine order of this cluster within the parent page's elements. Page elements are sorted in lexicographic order of this field. Duplicated values are allowed, but ordering between elements with duplicate order is undefined.
              #
              # The value of this field is never visible to a user, it is used solely for the purpose of defining an ordering. Maximum length is 256 characters.
          "productId": [ # List of products in the order they are displayed in the cluster. There should not be duplicates within a cluster.
            "A String",
          ],
          "id": "A String", # Unique ID of this cluster. Assigned by the server. Immutable once assigned.
          "name": [ # Ordered list of localized strings giving the name of this page. The text displayed is the one that best matches the user locale, or the first entry if there is no good match. There needs to be at least one entry.
            { # A localized string with its locale.
              "locale": "A String", # The BCP47 tag for a locale. (e.g. "en-US", "de").
              "text": "A String", # The text localized in the associated locale.
            },
          ],
        }

`update(enterpriseId, pageId, clusterId, body)`

    Updates a cluster.

    Args:
      enterpriseId: string, The ID of the enterprise. (required)
      pageId: string, The ID of the page. (required)
      clusterId: string, The ID of the cluster. (required)
      body: object, The request body. (required)
        The object takes the form of:

    { # Definition of a Google Play for Work store cluster, a list of products displayed as part of a store page.
        "kind": "androidenterprise#storeCluster", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#storeCluster".
        "orderInPage": "A String", # String (US-ASCII only) used to determine order of this cluster within the parent page's elements. Page elements are sorted in lexicographic order of this field. Duplicated values are allowed, but ordering between elements with duplicate order is undefined.
            #
            # The value of this field is never visible to a user, it is used solely for the purpose of defining an ordering. Maximum length is 256 characters.
        "productId": [ # List of products in the order they are displayed in the cluster. There should not be duplicates within a cluster.
          "A String",
        ],
        "id": "A String", # Unique ID of this cluster. Assigned by the server. Immutable once assigned.
        "name": [ # Ordered list of localized strings giving the name of this page. The text displayed is the one that best matches the user locale, or the first entry if there is no good match. There needs to be at least one entry.
          { # A localized string with its locale.
            "locale": "A String", # The BCP47 tag for a locale. (e.g. "en-US", "de").
            "text": "A String", # The text localized in the associated locale.
          },
        ],
      }

    Returns:
      An object of the form:

        { # Definition of a Google Play for Work store cluster, a list of products displayed as part of a store page.
          "kind": "androidenterprise#storeCluster", # Identifies what kind of resource this is. Value: the fixed string "androidenterprise#storeCluster".
          "orderInPage": "A String", # String (US-ASCII only) used to determine order of this cluster within the parent page's elements. Page elements are sorted in lexicographic order of this field. Duplicated values are allowed, but ordering between elements with duplicate order is undefined.
              #
              # The value of this field is never visible to a user, it is used solely for the purpose of defining an ordering. Maximum length is 256 characters.
          "productId": [ # List of products in the order they are displayed in the cluster. There should not be duplicates within a cluster.
            "A String",
          ],
          "id": "A String", # Unique ID of this cluster. Assigned by the server. Immutable once assigned.
          "name": [ # Ordered list of localized strings giving the name of this page. The text displayed is the one that best matches the user locale, or the first entry if there is no good match. There needs to be at least one entry.
            { # A localized string with its locale.
              "locale": "A String", # The BCP47 tag for a locale. (e.g. "en-US", "de").
              "text": "A String", # The text localized in the associated locale.
            },
          ],
        }