Class: Google::Apis::BooksV1::Notification

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

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

Returns a new instance of Notification.



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

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

Instance Attribute Details

#bodyString

Corresponds to the JSON property body

Returns:

  • (String)


2137
2138
2139
# File 'generated/google/apis/books_v1/classes.rb', line 2137

def body
  @body
end

#crm_experiment_idsArray<Fixnum>

The list of crm experiment ids. Corresponds to the JSON property crmExperimentIds

Returns:

  • (Array<Fixnum>)


2142
2143
2144
# File 'generated/google/apis/books_v1/classes.rb', line 2142

def crm_experiment_ids
  @crm_experiment_ids
end

#doc_idString

Corresponds to the JSON property doc_id

Returns:

  • (String)


2147
2148
2149
# File 'generated/google/apis/books_v1/classes.rb', line 2147

def doc_id
  @doc_id
end

#doc_typeString

Corresponds to the JSON property doc_type

Returns:

  • (String)


2152
2153
2154
# File 'generated/google/apis/books_v1/classes.rb', line 2152

def doc_type
  @doc_type
end

#dont_show_notificationBoolean Also known as: dont_show_notification?

Corresponds to the JSON property dont_show_notification

Returns:

  • (Boolean)


2157
2158
2159
# File 'generated/google/apis/books_v1/classes.rb', line 2157

def dont_show_notification
  @dont_show_notification
end

#icon_urlString

Corresponds to the JSON property iconUrl

Returns:

  • (String)


2163
2164
2165
# File 'generated/google/apis/books_v1/classes.rb', line 2163

def icon_url
  @icon_url
end

#is_document_matureBoolean Also known as: is_document_mature?

Corresponds to the JSON property is_document_mature

Returns:

  • (Boolean)


2168
2169
2170
# File 'generated/google/apis/books_v1/classes.rb', line 2168

def is_document_mature
  @is_document_mature
end

#kindString

Resource type. Corresponds to the JSON property kind

Returns:

  • (String)


2174
2175
2176
# File 'generated/google/apis/books_v1/classes.rb', line 2174

def kind
  @kind
end

#notification_groupString

Corresponds to the JSON property notificationGroup

Returns:

  • (String)


2179
2180
2181
# File 'generated/google/apis/books_v1/classes.rb', line 2179

def notification_group
  @notification_group
end

#notification_typeString

Corresponds to the JSON property notification_type

Returns:

  • (String)


2184
2185
2186
# File 'generated/google/apis/books_v1/classes.rb', line 2184

def notification_type
  @notification_type
end

#pcampaign_idString

Corresponds to the JSON property pcampaign_id

Returns:

  • (String)


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

def pcampaign_id
  @pcampaign_id
end

#reasonString

Corresponds to the JSON property reason

Returns:

  • (String)


2194
2195
2196
# File 'generated/google/apis/books_v1/classes.rb', line 2194

def reason
  @reason
end

#show_notification_settings_actionBoolean Also known as: show_notification_settings_action?

Corresponds to the JSON property show_notification_settings_action

Returns:

  • (Boolean)


2199
2200
2201
# File 'generated/google/apis/books_v1/classes.rb', line 2199

def show_notification_settings_action
  @show_notification_settings_action
end

#target_urlString

Corresponds to the JSON property targetUrl

Returns:

  • (String)


2205
2206
2207
# File 'generated/google/apis/books_v1/classes.rb', line 2205

def target_url
  @target_url
end

#time_to_expire_msFixnum

Corresponds to the JSON property timeToExpireMs

Returns:

  • (Fixnum)


2210
2211
2212
# File 'generated/google/apis/books_v1/classes.rb', line 2210

def time_to_expire_ms
  @time_to_expire_ms
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)


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

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
# File 'generated/google/apis/books_v1/classes.rb', line 2222

def update!(**args)
  @body = args[:body] if args.key?(:body)
  @crm_experiment_ids = args[:crm_experiment_ids] if args.key?(:crm_experiment_ids)
  @doc_id = args[:doc_id] if args.key?(:doc_id)
  @doc_type = args[:doc_type] if args.key?(:doc_type)
  @dont_show_notification = args[:dont_show_notification] if args.key?(:dont_show_notification)
  @icon_url = args[:icon_url] if args.key?(:icon_url)
  @is_document_mature = args[:is_document_mature] if args.key?(:is_document_mature)
  @kind = args[:kind] if args.key?(:kind)
  @notification_group = args[:notification_group] if args.key?(:notification_group)
  @notification_type = args[:notification_type] if args.key?(:notification_type)
  @pcampaign_id = args[:pcampaign_id] if args.key?(:pcampaign_id)
  @reason = args[:reason] if args.key?(:reason)
  @show_notification_settings_action = args[:show_notification_settings_action] if args.key?(:show_notification_settings_action)
  @target_url = args[:target_url] if args.key?(:target_url)
  @time_to_expire_ms = args[:time_to_expire_ms] if args.key?(:time_to_expire_ms)
  @title = args[:title] if args.key?(:title)
end