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

Inherits:
Object
  • Object
show all
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

The policy for a product.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductPolicy

Returns a new instance of ProductPolicy.



2211
2212
2213
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2211

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



2170
2171
2172
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2170

def auto_install_policy
  @auto_install_policy
end

#auto_update_modeString

The auto-update mode for the product. Corresponds to the JSON property autoUpdateMode

Returns:

  • (String)


2175
2176
2177
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2175

def auto_update_mode
  @auto_update_mode
end

An authentication URL configuration for the authenticator app of an identity provider. This helps to launch the identity provider's authenticator app during the authentication happening in a private app using Android WebView. Authenticator app should already be the default handler for the authentication url on the device. Corresponds to the JSON property enterpriseAuthenticationAppLinkConfigs



2185
2186
2187
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2185

def enterprise_authentication_app_link_configs
  @enterprise_authentication_app_link_configs
end

#managed_configurationGoogle::Apis::AndroidenterpriseV1::ManagedConfiguration

A managed configuration resource contains the set of managed properties defined by the app developer in the app's managed configurations schema, as well as any configuration variables defined for the user. Corresponds to the JSON property managedConfiguration



2192
2193
2194
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2192

def managed_configuration
  @managed_configuration
end

#product_idString

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

Returns:

  • (String)


2197
2198
2199
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2197

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


2204
2205
2206
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2204

def track_ids
  @track_ids
end

#tracksArray<String>

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

Returns:

  • (Array<String>)


2209
2210
2211
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2209

def tracks
  @tracks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2216
2217
2218
2219
2220
2221
2222
2223
2224
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2216

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