Class: Google::Apis::AndroidenterpriseV1::StoreLayout
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::StoreLayout
- 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
-
#homepage_id ⇒ String
The ID of the store page to be used as the homepage.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#store_layout_type ⇒ String
Sets a store layout type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StoreLayout
constructor
A new instance of StoreLayout.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_id ⇒ String
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
2017 2018 2019 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2017 def homepage_id @homepage_id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
androidenterprise#storeLayout".
Corresponds to the JSON property kind
2023 2024 2025 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2023 def kind @kind end |
#store_layout_type ⇒ String
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
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 |