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

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StoreLayout

Returns a new instance of StoreLayout.



2756
2757
2758
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2756

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 is the first page shown in the managed Google Play Store. Not specifying a homepage is equivalent to setting the store layout type to "basic". Corresponds to the JSON property homepageId

Returns:

  • (String)


2746
2747
2748
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2746

def homepage_id
  @homepage_id
end

#store_layout_typeString

The store layout type. By default, this value is set to "basic" if the homepageId field is not set, and to "custom" otherwise. If set to "basic", the layout will consist of all approved apps that have been whitelisted for the user. Corresponds to the JSON property storeLayoutType

Returns:

  • (String)


2754
2755
2756
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2754

def store_layout_type
  @store_layout_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2761
2762
2763
2764
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2761

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