Class: Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaChangeHistoryChange

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

Overview

A description of a change to a single Google Analytics resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1betaChangeHistoryChange

Returns a new instance of GoogleAnalyticsAdminV1betaChangeHistoryChange.



206
207
208
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 206

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

Instance Attribute Details

#actionString

The type of action that changed this resource. Corresponds to the JSON property action

Returns:

  • (String)


187
188
189
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 187

def action
  @action
end

#resourceString

Resource name of the resource whose changes are described by this entry. Corresponds to the JSON property resource

Returns:

  • (String)


192
193
194
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 192

def resource
  @resource
end

#resource_after_changeGoogle::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource

A snapshot of a resource as before or after the result of a change in change history. Corresponds to the JSON property resourceAfterChange



198
199
200
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 198

def resource_after_change
  @resource_after_change
end

#resource_before_changeGoogle::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource

A snapshot of a resource as before or after the result of a change in change history. Corresponds to the JSON property resourceBeforeChange



204
205
206
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 204

def resource_before_change
  @resource_before_change
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



211
212
213
214
215
216
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 211

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @resource = args[:resource] if args.key?(:resource)
  @resource_after_change = args[:resource_after_change] if args.key?(:resource_after_change)
  @resource_before_change = args[:resource_before_change] if args.key?(:resource_before_change)
end