class Google::Apis::StorageV1::Channel

An notification channel used to watch for resource changes.

Attributes

address[RW]

The address where notifications are delivered for this channel. Corresponds to the JSON property `address` @return [String]

expiration[RW]

Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional. Corresponds to the JSON property `expiration` @return [Fixnum]

id[RW]

A UUID or similar unique string that identifies this channel. Corresponds to the JSON property `id` @return [String]

kind[RW]

Identifies this as a notification channel used to watch for changes to a resource, which is “api#channel”. Corresponds to the JSON property `kind` @return [String]

params[RW]

Additional parameters controlling delivery channel behavior. Optional. Corresponds to the JSON property `params` @return [Hash<String,String>]

payload[RW]

A Boolean value to indicate whether payload is wanted. Optional. Corresponds to the JSON property `payload` @return [Boolean]

payload?[RW]

A Boolean value to indicate whether payload is wanted. Optional. Corresponds to the JSON property `payload` @return [Boolean]

resource_id[RW]

An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. Corresponds to the JSON property `resourceId` @return [String]

resource_uri[RW]

A version-specific identifier for the watched resource. Corresponds to the JSON property `resourceUri` @return [String]

token[RW]

An arbitrary string delivered to the target address with each notification delivered over this channel. Optional. Corresponds to the JSON property `token` @return [String]

type[RW]

The type of delivery mechanism used for this channel. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/storage_v1/classes.rb, line 971
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/storage_v1/classes.rb, line 976
def update!(**args)
  @address = args[:address] if args.key?(:address)
  @expiration = args[:expiration] if args.key?(:expiration)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @params = args[:params] if args.key?(:params)
  @payload = args[:payload] if args.key?(:payload)
  @resource_id = args[:resource_id] if args.key?(:resource_id)
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
  @token = args[:token] if args.key?(:token)
  @type = args[:type] if args.key?(:type)
end