Class: Google::Apis::AndroidenterpriseV1::StoreLayout

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidenterprise_v1/classes.rb,
generated/google/apis/androidenterprise_v1/representations.rb,
generated/google/apis/androidenterprise_v1/representations.rb

Overview

General setting for the Google Play for Work store layout, currently only specifying the page to display the first time the store is opened.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StoreLayout

Returns a new instance of StoreLayout.


2035
2036
2037
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2035

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#homepage_idString

The ID of the store page to be used as the homepage. The homepage will be used as the first page shown in the Google Play for Work store. If a homepage has not been set, the Play store shown on devices will be empty. Not specifying a homepage on a store layout effectively empties the store. If there exists at least one page, this field must be set to the ID of a valid page. Corresponds to the JSON property homepageId

Returns:

  • (String)

2017
2018
2019
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2017

def homepage_id
  @homepage_id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " androidenterprise#storeLayout". Corresponds to the JSON property kind

Returns:

  • (String)

2023
2024
2025
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2023

def kind
  @kind
end

#store_layout_typeString

Sets a store layout type. If set to "custom", "homepageId" must be specified. If set to "basic", the layout will consist of all approved apps accessible by the user, split in pages of 100 each; in this case, "homepageId" must not be specified. The "basic" setting takes precedence over any existing collections setup for this enterprise (if any). Should the enterprise use collectionViewers for controlling access rights, these will still be respected. Corresponds to the JSON property storeLayoutType

Returns:

  • (String)

2033
2034
2035
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2033

def store_layout_type
  @store_layout_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2040
2041
2042
2043
2044
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2040

def update!(**args)
  @homepage_id = args[:homepage_id] if args.key?(:homepage_id)
  @kind = args[:kind] if args.key?(:kind)
  @store_layout_type = args[:store_layout_type] if args.key?(:store_layout_type)
end