Class: Google::Apis::AndroidenterpriseV1::ProductPolicy

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

The policy for a product.

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

Returns a new instance of ProductPolicy



2202
2203
2204
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2202

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

Instance Attribute Details

#auto_install_policyGoogle::Apis::AndroidenterpriseV1::AutoInstallPolicy

The auto-install policy for the product. Corresponds to the JSON property autoInstallPolicy



2183
2184
2185
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2183

def auto_install_policy
  @auto_install_policy
end

#product_idString

The ID of the product. For example, "app:com.google.android.gm". Corresponds to the JSON property productId

Returns:

  • (String)


2188
2189
2190
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2188

def product_id
  @product_id
end

#track_idsArray<String>

Grants the device visibility to the specified product release track(s), identified by trackIds. The list of release tracks of a product can be obtained by calling Products.Get. Corresponds to the JSON property trackIds

Returns:

  • (Array<String>)


2195
2196
2197
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2195

def track_ids
  @track_ids
end

#tracksArray<String>

Deprecated. Use trackIds instead. Corresponds to the JSON property tracks

Returns:

  • (Array<String>)


2200
2201
2202
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2200

def tracks
  @tracks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2207
2208
2209
2210
2211
2212
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2207

def update!(**args)
  @auto_install_policy = args[:auto_install_policy] if args.key?(:auto_install_policy)
  @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