Class: Google::Apis::AndroidenterpriseV1::Product

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

A Products resource represents an app in the Google Play Store that is available to at least some users in the enterprise. (Some apps are restricted to a single enterprise, and no information about them is made available outside that enterprise.) The information provided for each product (localized name, icon, link to the full Google Play details page) is intended to allow a basic representation of the product within an EMM user interface.

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

Returns a new instance of Product.



1567
1568
1569
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1567

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

Instance Attribute Details

#app_versionArray<Google::Apis::AndroidenterpriseV1::AppVersion>

App versions currently available for this product. The returned list contains only public versions. Alpha and beta versions are not included. Corresponds to the JSON property appVersion



1496
1497
1498
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1496

def app_version
  @app_version
end

#author_nameString

The name of the author of the product (e.g. the app developer). Corresponds to the JSON property authorName

Returns:

  • (String)


1501
1502
1503
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1501

def author_name
  @author_name
end

#details_urlString

A link to the (consumer) Google Play details page for the product. Corresponds to the JSON property detailsUrl

Returns:

  • (String)


1506
1507
1508
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1506

def details_url
  @details_url
end

#distribution_channelString

How and to whom the package is made available. The value publicGoogleHosted means that the package is available through the Play Store and not restricted to a specific enterprise. The value privateGoogleHosted means that the package is a private app (restricted to an enterprise) but hosted by Google. The value privateSelfHosted means that the package is a private app (restricted to an enterprise) and is privately hosted. Corresponds to the JSON property distributionChannel

Returns:

  • (String)


1516
1517
1518
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1516

def distribution_channel
  @distribution_channel
end

#icon_urlString

A link to an image that can be used as an icon for the product. This image is suitable for use at up to 512px x 512px. Corresponds to the JSON property iconUrl

Returns:

  • (String)


1522
1523
1524
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1522

def icon_url
  @icon_url
end

#kindString

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

Returns:

  • (String)


1528
1529
1530
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1528

def kind
  @kind
end

#product_idString

A string of the form app:. For example, app:com.google.android. gm represents the Gmail app. Corresponds to the JSON property productId

Returns:

  • (String)


1534
1535
1536
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1534

def product_id
  @product_id
end

#product_pricingString

Whether this product is free, free with in-app purchases, or paid. If the pricing is unknown, this means the product is not generally available anymore ( even though it might still be available to people who own it). Corresponds to the JSON property productPricing

Returns:

  • (String)


1541
1542
1543
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1541

def product_pricing
  @product_pricing
end

#requires_container_appBoolean Also known as: requires_container_app?

Whether this app can only be installed on devices using the Android for Work container app. Corresponds to the JSON property requiresContainerApp

Returns:

  • (Boolean)


1547
1548
1549
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1547

def requires_container_app
  @requires_container_app
end

#small_icon_urlString

A link to a smaller image that can be used as an icon for the product. This image is suitable for use at up to 128px x 128px. Corresponds to the JSON property smallIconUrl

Returns:

  • (String)


1554
1555
1556
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1554

def small_icon_url
  @small_icon_url
end

#titleString

The name of the product. Corresponds to the JSON property title

Returns:

  • (String)


1559
1560
1561
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1559

def title
  @title
end

#work_details_urlString

A link to the Google Play for Work details page for the product, for use by an Enterprise administrator. Corresponds to the JSON property workDetailsUrl

Returns:

  • (String)


1565
1566
1567
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1565

def work_details_url
  @work_details_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1572

def update!(**args)
  @app_version = args[:app_version] if args.key?(:app_version)
  @author_name = args[:author_name] if args.key?(:author_name)
  @details_url = args[:details_url] if args.key?(:details_url)
  @distribution_channel = args[:distribution_channel] if args.key?(:distribution_channel)
  @icon_url = args[:icon_url] if args.key?(:icon_url)
  @kind = args[:kind] if args.key?(:kind)
  @product_id = args[:product_id] if args.key?(:product_id)
  @product_pricing = args[:product_pricing] if args.key?(:product_pricing)
  @requires_container_app = args[:requires_container_app] if args.key?(:requires_container_app)
  @small_icon_url = args[:small_icon_url] if args.key?(:small_icon_url)
  @title = args[:title] if args.key?(:title)
  @work_details_url = args[:work_details_url] if args.key?(:work_details_url)
end