Class: Google::Apis::DisplayvideoV3::AssignedInventorySource

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

Overview

An assignment between a targetable inventory source and an inventory source group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AssignedInventorySource

Returns a new instance of AssignedInventorySource.



1127
1128
1129
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1127

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

Instance Attribute Details

#assigned_inventory_source_idFixnum

Output only. The unique ID of the assigned inventory source. The ID is only unique within a given inventory source group. It may be reused in other contexts. Corresponds to the JSON property assignedInventorySourceId

Returns:

  • (Fixnum)


1115
1116
1117
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1115

def assigned_inventory_source_id
  @assigned_inventory_source_id
end

#inventory_source_idString

Required. The ID of the inventory source entity being targeted. Corresponds to the JSON property inventorySourceId

Returns:

  • (String)


1120
1121
1122
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1120

def inventory_source_id
  @inventory_source_id
end

#nameString

Output only. The resource name of the assigned inventory source. Corresponds to the JSON property name

Returns:

  • (String)


1125
1126
1127
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1125

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1132
1133
1134
1135
1136
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1132

def update!(**args)
  @assigned_inventory_source_id = args[:assigned_inventory_source_id] if args.key?(:assigned_inventory_source_id)
  @inventory_source_id = args[:inventory_source_id] if args.key?(:inventory_source_id)
  @name = args[:name] if args.key?(:name)
end