class Google::Apis::StorageV1::Channel
An notification channel used to watch for resource changes.
Attributes
The address where notifications are delivered for this channel. Corresponds to the JSON property `address` @return [String]
Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional. Corresponds to the JSON property `expiration` @return [Fixnum]
A UUID or similar unique string that identifies this channel. Corresponds to the JSON property `id` @return [String]
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]
Additional parameters controlling delivery channel behavior. Optional. Corresponds to the JSON property `params` @return [Hash<String,String>]
A Boolean value to indicate whether payload is wanted. Optional. Corresponds to the JSON property `payload` @return [Boolean]
A Boolean value to indicate whether payload is wanted. Optional. Corresponds to the JSON property `payload` @return [Boolean]
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]
A version-specific identifier for the watched resource. Corresponds to the JSON property `resourceUri` @return [String]
An arbitrary string delivered to the target address with each notification delivered over this channel. Optional. Corresponds to the JSON property `token` @return [String]
The type of delivery mechanism used for this channel. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/storage_v1/classes.rb, line 971 def initialize(**args) update!(**args) end
Public Instance Methods
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