Class: Google::Apis::AndroidenterpriseV1::StoreCluster
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::StoreCluster
- 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
Definition of a Google Play for Work store cluster, a list of products displayed as part of a store page.
Instance Attribute Summary collapse
-
#id ⇒ String
Unique ID of this cluster.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#name ⇒ Array<Google::Apis::AndroidenterpriseV1::LocalizedText>
Ordered list of localized strings giving the name of this page.
-
#order_in_page ⇒ String
String (US-ASCII only) used to determine order of this cluster within the parent page's elements.
-
#product_id ⇒ Array<String>
List of products in the order they are displayed in the cluster.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StoreCluster
constructor
A new instance of StoreCluster.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ StoreCluster
Returns a new instance of StoreCluster.
1913 1914 1915 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1913 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
Unique ID of this cluster. Assigned by the server. Immutable once assigned.
Corresponds to the JSON property id
1882 1883 1884 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1882 def id @id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
androidenterprise#storeCluster".
Corresponds to the JSON property kind
1888 1889 1890 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1888 def kind @kind end |
#name ⇒ Array<Google::Apis::AndroidenterpriseV1::LocalizedText>
Ordered list of localized strings giving the name of this page. The text
displayed is the one that best matches the user locale, or the first entry if
there is no good match. There needs to be at least one entry.
Corresponds to the JSON property name
1895 1896 1897 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1895 def name @name end |
#order_in_page ⇒ String
String (US-ASCII only) used to determine order of this cluster within the
parent page's elements. Page elements are sorted in lexicographic order of
this field. Duplicated values are allowed, but ordering between elements with
duplicate order is undefined.
The value of this field is never visible to a user, it is used solely for the
purpose of defining an ordering. Maximum length is 256 characters.
Corresponds to the JSON property orderInPage
1905 1906 1907 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1905 def order_in_page @order_in_page end |
#product_id ⇒ Array<String>
List of products in the order they are displayed in the cluster. There should
not be duplicates within a cluster.
Corresponds to the JSON property productId
1911 1912 1913 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1911 def product_id @product_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1918 1919 1920 1921 1922 1923 1924 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1918 def update!(**args) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @order_in_page = args[:order_in_page] if args.key?(:order_in_page) @product_id = args[:product_id] if args.key?(:product_id) end |