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 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

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



1977
1978
1979
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1977

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 managed Google Play 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)


1958
1959
1960
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1958

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)


1964
1965
1966
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1964

def kind
  @kind
end

#store_layout_typeString

The store layout type. By default, this value is set to "basic". 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)


1975
1976
1977
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1975

def store_layout_type
  @store_layout_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1982
1983
1984
1985
1986
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1982

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