Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel

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

Overview

SlackChannel contains the Slack channel ID and the time range to import.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel

Returns a new instance of GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel.



32047
32048
32049
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32047

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

Instance Attribute Details

#channel_idString

Required. The Slack channel ID. Corresponds to the JSON property channelId

Returns:

  • (String)


32035
32036
32037
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32035

def channel_id
  @channel_id
end

#end_timeString

Optional. The ending timestamp for messages to import. Corresponds to the JSON property endTime

Returns:

  • (String)


32040
32041
32042
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32040

def end_time
  @end_time
end

#start_timeString

Optional. The starting timestamp for messages to import. Corresponds to the JSON property startTime

Returns:

  • (String)


32045
32046
32047
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32045

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32052
32053
32054
32055
32056
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32052

def update!(**args)
  @channel_id = args[:channel_id] if args.key?(:channel_id)
  @end_time = args[:end_time] if args.key?(:end_time)
  @start_time = args[:start_time] if args.key?(:start_time)
end