Class: Google::Apis::DisplayvideoV1::ManualTrigger

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

Overview

A single manual trigger in Display & Video 360.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ManualTrigger

Returns a new instance of ManualTrigger.



6447
6448
6449
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 6447

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

Instance Attribute Details

#activation_duration_minutesFixnum

Required. The maximum duration of each activation in minutes. Must be between 1 and 360 inclusive. After this duration, the trigger will be automatically deactivated. Corresponds to the JSON property activationDurationMinutes

Returns:

  • (Fixnum)


6412
6413
6414
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 6412

def activation_duration_minutes
  @activation_duration_minutes
end

#advertiser_idFixnum

Required. Immutable. The unique ID of the advertiser that the manual trigger belongs to. Corresponds to the JSON property advertiserId

Returns:

  • (Fixnum)


6418
6419
6420
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 6418

def advertiser_id
  @advertiser_id
end

#display_nameString

Required. The display name of the manual trigger. Must be UTF-8 encoded with a maximum size of 240 bytes. Corresponds to the JSON property displayName

Returns:

  • (String)


6424
6425
6426
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 6424

def display_name
  @display_name
end

#latest_activation_timeString

Output only. The timestamp of the trigger's latest activation. Corresponds to the JSON property latestActivationTime

Returns:

  • (String)


6429
6430
6431
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 6429

def latest_activation_time
  @latest_activation_time
end

#nameString

Output only. The resource name of the manual trigger. Corresponds to the JSON property name

Returns:

  • (String)


6434
6435
6436
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 6434

def name
  @name
end

#stateString

Output only. The state of the manual trigger. Will be set to the INACTIVE state upon creation. Corresponds to the JSON property state

Returns:

  • (String)


6440
6441
6442
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 6440

def state
  @state
end

#trigger_idFixnum

Output only. The unique ID of the manual trigger. Corresponds to the JSON property triggerId

Returns:

  • (Fixnum)


6445
6446
6447
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 6445

def trigger_id
  @trigger_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6452
6453
6454
6455
6456
6457
6458
6459
6460
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 6452

def update!(**args)
  @activation_duration_minutes = args[:activation_duration_minutes] if args.key?(:activation_duration_minutes)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @display_name = args[:display_name] if args.key?(:display_name)
  @latest_activation_time = args[:latest_activation_time] if args.key?(:latest_activation_time)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @trigger_id = args[:trigger_id] if args.key?(:trigger_id)
end