Class: Google::Apis::AppsmarketV2::LicenseNotification

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/appsmarket_v2/classes.rb,
generated/google/apis/appsmarket_v2/representations.rb,
generated/google/apis/appsmarket_v2/representations.rb

Defined Under Namespace

Classes: Delete, Expiry, Provision, Reassignment

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

Returns a new instance of LicenseNotification



154
155
156
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 154

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

Instance Attribute Details

#application_idString

The ID of the application according to this notification. Corresponds to the JSON property applicationId

Returns:

  • (String)


112
113
114
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 112

def application_id
  @application_id
end

#customer_idString

The domain name of the customer corresponding to this notification. Corresponds to the JSON property customerId

Returns:

  • (String)


117
118
119
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 117

def customer_id
  @customer_id
end

#deletesArray<Google::Apis::AppsmarketV2::LicenseNotification::Delete>

The list of deletion notifications. Corresponds to the JSON property deletes



122
123
124
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 122

def deletes
  @deletes
end

#expiriesArray<Google::Apis::AppsmarketV2::LicenseNotification::Expiry>

The list of expiry notifications. Corresponds to the JSON property expiries



127
128
129
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 127

def expiries
  @expiries
end

#idString

The ID of the license notification. Corresponds to the JSON property id

Returns:

  • (String)


132
133
134
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 132

def id
  @id
end

#kindString

The type of API resource. This is always appsmarket#licenseNotification. Corresponds to the JSON property kind

Returns:

  • (String)


137
138
139
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 137

def kind
  @kind
end

#provisionsArray<Google::Apis::AppsmarketV2::LicenseNotification::Provision>

The list of provisioning notifications. Corresponds to the JSON property provisions



142
143
144
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 142

def provisions
  @provisions
end

#reassignmentsArray<Google::Apis::AppsmarketV2::LicenseNotification::Reassignment>

The list of reassignment notifications. Corresponds to the JSON property reassignments



147
148
149
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 147

def reassignments
  @reassignments
end

#timestampFixnum

The time the event occurred, measuring in milliseconds since the UNIX epoch. Corresponds to the JSON property timestamp

Returns:

  • (Fixnum)


152
153
154
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 152

def timestamp
  @timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



159
160
161
162
163
164
165
166
167
168
169
# File 'generated/google/apis/appsmarket_v2/classes.rb', line 159

def update!(**args)
  @application_id = args[:application_id] if args.key?(:application_id)
  @customer_id = args[:customer_id] if args.key?(:customer_id)
  @deletes = args[:deletes] if args.key?(:deletes)
  @expiries = args[:expiries] if args.key?(:expiries)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @provisions = args[:provisions] if args.key?(:provisions)
  @reassignments = args[:reassignments] if args.key?(:reassignments)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
end