Class: Google::Apis::AndroidenterpriseV1::ProductPolicy
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::ProductPolicy
- 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
The policy for a product.
Instance Attribute Summary collapse
-
#product_id ⇒ String
The ID of the product.
-
#track_ids ⇒ Array<String>
Grants visibility to the specified track(s) of the product to the device.
-
#tracks ⇒ Array<String>
Grants visibility to the specified track(s) of the product to the device.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductPolicy
constructor
A new instance of ProductPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ProductPolicy
Returns a new instance of ProductPolicy
2112 2113 2114 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2112 def initialize(**args) update!(**args) end |
Instance Attribute Details
#product_id ⇒ String
The ID of the product. For example, "app:com.google.android.gm".
Corresponds to the JSON property productId
2085 2086 2087 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2085 def product_id @product_id end |
#track_ids ⇒ Array<String>
Grants visibility to the specified track(s) of the product to the device. The
existing track ids can be obtained by calling Products.Get.
Corresponds to the JSON property trackIds
2091 2092 2093 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2091 def track_ids @track_ids end |
#tracks ⇒ Array<String>
Grants visibility to the specified track(s) of the product to the device. The
track available to the device is based on the following order of preference:
alpha, beta, production. For example, if an app has a prod version, a beta
version and an alpha version and the enterprise has been granted visibility to
both the alpha and beta tracks, if tracks is "beta", "production" then the
beta version of the app is made available to the device. If there are no app
versions in the specified track adding the "alpha" and "beta" values to the
list of tracks will have no effect. Note that the enterprise requires access
to alpha and/or beta tracks before users can be granted visibility to apps in
those tracks.
The allowed sets are: `(considered equivalent to"production")"
production""beta", "production""alpha", "beta", "production"The order
of elements is not relevant. Any other set of tracks will be rejected with an
error.
This is deprecated. Use track_ids instead.
Corresponds to the JSON propertytracks`
2110 2111 2112 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2110 def tracks @tracks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2117 2118 2119 2120 2121 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2117 def update!(**args) @product_id = args[:product_id] if args.key?(:product_id) @track_ids = args[:track_ids] if args.key?(:track_ids) @tracks = args[:tracks] if args.key?(:tracks) end |