Class: Google::Apis::DfareportingV2_3::ChangeLog

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

Overview

Describes a change that a user has made to a resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ChangeLog

Returns a new instance of ChangeLog



1751
1752
1753
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1751

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

Instance Attribute Details

#account_idString

Account ID of the modified object. Corresponds to the JSON property accountId

Returns:

  • (String)


1680
1681
1682
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1680

def 
  @account_id
end

#actionString

Action which caused the change. Corresponds to the JSON property action

Returns:

  • (String)


1685
1686
1687
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1685

def action
  @action
end

#change_timeDateTime

Time when the object was modified. Corresponds to the JSON property changeTime

Returns:

  • (DateTime)


1690
1691
1692
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1690

def change_time
  @change_time
end

#field_nameString

Field name of the object which changed. Corresponds to the JSON property fieldName

Returns:

  • (String)


1695
1696
1697
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1695

def field_name
  @field_name
end

#idString

ID of this change log. Corresponds to the JSON property id

Returns:

  • (String)


1700
1701
1702
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1700

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#changeLog". Corresponds to the JSON property kind

Returns:

  • (String)


1706
1707
1708
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1706

def kind
  @kind
end

#new_valueString

New value of the object field. Corresponds to the JSON property newValue

Returns:

  • (String)


1711
1712
1713
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1711

def new_value
  @new_value
end

#obj_idString

ID of the object of this change log. The object could be a campaign, placement, ad, or other type. Corresponds to the JSON property objectId

Returns:

  • (String)


1717
1718
1719
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1717

def obj_id
  @obj_id
end

#object_typeString

Object type of the change log. Corresponds to the JSON property objectType

Returns:

  • (String)


1722
1723
1724
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1722

def object_type
  @object_type
end

#old_valueString

Old value of the object field. Corresponds to the JSON property oldValue

Returns:

  • (String)


1727
1728
1729
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1727

def old_value
  @old_value
end

#subaccount_idString

Subaccount ID of the modified object. Corresponds to the JSON property subaccountId

Returns:

  • (String)


1732
1733
1734
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1732

def subaccount_id
  @subaccount_id
end

#transaction_idString

Transaction ID of this change log. When a single API call results in many changes, each change will have a separate ID in the change log but will share the same transactionId. Corresponds to the JSON property transactionId

Returns:

  • (String)


1739
1740
1741
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1739

def transaction_id
  @transaction_id
end

#user_profile_idString

ID of the user who modified the object. Corresponds to the JSON property userProfileId

Returns:

  • (String)


1744
1745
1746
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1744

def 
  @user_profile_id
end

#user_profile_nameString

User profile name of the user who modified the object. Corresponds to the JSON property userProfileName

Returns:

  • (String)


1749
1750
1751
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1749

def 
  @user_profile_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 1756

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @action = args[:action] if args.key?(:action)
  @change_time = args[:change_time] if args.key?(:change_time)
  @field_name = args[:field_name] if args.key?(:field_name)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @new_value = args[:new_value] if args.key?(:new_value)
  @obj_id = args[:obj_id] if args.key?(:obj_id)
  @object_type = args[:object_type] if args.key?(:object_type)
  @old_value = args[:old_value] if args.key?(:old_value)
  @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id)
  @transaction_id = args[:transaction_id] if args.key?(:transaction_id)
  @user_profile_id = args[:user_profile_id] if args.key?(:user_profile_id)
  @user_profile_name = args[:user_profile_name] if args.key?(:user_profile_name)
end