Class: Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent

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 whenever a product's availability changes.

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

Returns a new instance of ProductAvailabilityChangeEvent.



2217
2218
2219
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2217

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

Instance Attribute Details

#availability_statusString

The new state of the product. This field will always be present. Corresponds to the JSON property availabilityStatus

Returns:

  • (String)


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

def availability_status
  @availability_status
end

#product_idString

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

Returns:

  • (String)


2215
2216
2217
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2215

def product_id
  @product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2222
2223
2224
2225
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2222

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