Class: Google::Apis::AndroidenterpriseV1::ProductApprovalEvent

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

An event generated when a product's approval status is changed.

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

Returns a new instance of ProductApprovalEvent.



2191
2192
2193
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2191

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

Instance Attribute Details

#approvedString

Whether the product was approved or unapproved. This field will always be present. Corresponds to the JSON property approved

Returns:

  • (String)


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

def approved
  @approved
end

#product_idString

The id of the product (e.g. "app:com.google.android.gm") for which the approval status has changed. This field will always be present. Corresponds to the JSON property productId

Returns:

  • (String)


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

def product_id
  @product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @approved = args[:approved] if args.key?(:approved)
  @product_id = args[:product_id] if args.key?(:product_id)
end