Class: Google::Apis::DfareportingV3_3::ChangeLog

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v3_3/classes.rb,
generated/google/apis/dfareporting_v3_3/representations.rb,
generated/google/apis/dfareporting_v3_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.



1851
1852
1853
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1851

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

Instance Attribute Details

#account_idFixnum

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

Returns:

  • (Fixnum)


1780
1781
1782
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1780

def 
  @account_id
end

#actionString

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

Returns:

  • (String)


1785
1786
1787
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1785

def action
  @action
end

#change_timeDateTime

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

Returns:

  • (DateTime)


1790
1791
1792
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1790

def change_time
  @change_time
end

#field_nameString

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

Returns:

  • (String)


1795
1796
1797
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1795

def field_name
  @field_name
end

#idFixnum

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

Returns:

  • (Fixnum)


1800
1801
1802
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1800

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)


1806
1807
1808
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1806

def kind
  @kind
end

#new_valueString

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

Returns:

  • (String)


1811
1812
1813
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1811

def new_value
  @new_value
end

#object_id_propFixnum

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:

  • (Fixnum)


1817
1818
1819
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1817

def object_id_prop
  @object_id_prop
end

#object_typeString

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

Returns:

  • (String)


1822
1823
1824
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1822

def object_type
  @object_type
end

#old_valueString

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

Returns:

  • (String)


1827
1828
1829
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1827

def old_value
  @old_value
end

#subaccount_idFixnum

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

Returns:

  • (Fixnum)


1832
1833
1834
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1832

def subaccount_id
  @subaccount_id
end

#transaction_idFixnum

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:

  • (Fixnum)


1839
1840
1841
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1839

def transaction_id
  @transaction_id
end

#user_profile_idFixnum

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

Returns:

  • (Fixnum)


1844
1845
1846
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1844

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)


1849
1850
1851
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1849

def 
  @user_profile_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 1856

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)
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
  @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