Class: Google::Apis::AndroidenterpriseV1::StoreCluster
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::StoreCluster
- 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
Definition of a managed Google Play store cluster, a list of products displayed as part of a store page.
Instance Attribute Summary collapse
-
#id ⇒ String
Unique ID of this cluster.
-
#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.
Constructor Details
#initialize(**args) ⇒ StoreCluster
Returns a new instance of StoreCluster.
2673 2674 2675 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2673 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
2648 2649 2650 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2648 def id @id 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
2655 2656 2657 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2655 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
2665 2666 2667 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2665 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
2671 2672 2673 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2671 def product_id @product_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2678 2679 2680 2681 2682 2683 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2678 def update!(**args) @id = args[:id] if args.key?(:id) @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 |