Class: Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent
 
- 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
- 
  
    
      #availability_status  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The new state of the product. 
- 
  
    
      #product_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The id of the product (e.g. "app:com.google.android.gm") for which the product availability changed. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ProductAvailabilityChangeEvent 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ProductAvailabilityChangeEvent. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ProductAvailabilityChangeEvent
Returns a new instance of ProductAvailabilityChangeEvent
| 1876 1877 1878 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1876 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#availability_status ⇒ String
The new state of the product. This field will always be present.
Corresponds to the JSON property availabilityStatus
| 1868 1869 1870 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1868 def availability_status @availability_status end | 
#product_id ⇒ String
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
| 1874 1875 1876 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1874 def product_id @product_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1881 1882 1883 1884 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1881 def update!(**args) @availability_status = args[:availability_status] if args.key?(:availability_status) @product_id = args[:product_id] if args.key?(:product_id) end |