Class: Google::Apis::AndroidenterpriseV1::StoreCluster

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

Definition of a Google Play for Work store cluster, a list of products displayed as part of a store page.

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) ⇒ StoreCluster

Returns a new instance of StoreCluster.



1990
1991
1992
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1990

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#idString

Unique ID of this cluster. Assigned by the server. Immutable once assigned. Corresponds to the JSON property id

Returns:

  • (String)


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

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " androidenterprise#storeCluster". Corresponds to the JSON property kind

Returns:

  • (String)


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

def kind
  @kind
end

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



1972
1973
1974
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1972

def name
  @name
end

#order_in_pageString

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

Returns:

  • (String)


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

def order_in_page
  @order_in_page
end

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

Returns:

  • (Array<String>)


1988
1989
1990
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1988

def product_id
  @product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1995
1996
1997
1998
1999
2000
2001
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1995

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