class

GoogleDrive::Channel

Inherits OpenApi::Json / OpenApi::Validatable / JSON::Serializable::Unmapped / JSON::Serializable / Reference / Object

An notification channel used to watch for resource changes.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, address : String | Nil = nil, expiration : String | Nil = nil, id : String | Nil = nil, kind : String | Nil = "api#channel", params : Hash(String, String) | Nil = nil, payload : Bool | Nil = nil, resource_id : String | Nil = nil, resource_uri : String | Nil = nil, token : String | Nil = nil, _type : String | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

_type

The type of delivery mechanism used for this channel. Valid values are "web_hook" (or "webhook"). Both values refer to a channel where Http requests are used to deliver messages.

Source
_type=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] _type Object to be assigned

Source
address

The address where notifications are delivered for this channel.

Source
address=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] address Object to be assigned

Source
expiration

Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.

Source
expiration=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] expiration Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

id

A UUID or similar unique string that identifies this channel.

Source
id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned

Source
kind

Identifies this as a notification channel used to watch for changes to a resource, which is "api#channel".

Source
kind=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] kind Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
params

Additional parameters controlling delivery channel behavior. Optional.

Source
params=(new_value : Hash(String, String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] params Object to be assigned

Source
payload

A Boolean value to indicate whether payload is wanted. Optional.

Source
payload=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] payload Object to be assigned

Source
resource_id

An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.

Source
resource_id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] resource_id Object to be assigned

Source
resource_uri

A version-specific identifier for the watched resource.

Source
resource_uri=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] resource_uri Object to be assigned

Source
token

An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.

Source
token=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] token Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source