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.



1948
1949
1950
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1948

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)


1940
1941
1942
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1940

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)


1946
1947
1948
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1946

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1953
1954
1955
1956
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1953

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