Reference documentation and code samples for the Google Analytics Admin V1alpha Client class ChangeHistoryChange.
A description of a change to a single Google Analytics resource.
Generated from protobuf message google.analytics.admin.v1alpha.ChangeHistoryChange
Namespace
Google \ Analytics \ Admin \ V1alphaMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ resource |
string
Resource name of the resource whose changes are described by this entry. |
↳ action |
int
The type of action that changed this resource. |
↳ resource_before_change |
ChangeHistoryChange\ChangeHistoryResource
Resource contents from before the change was made. If this resource was created in this change, this field will be missing. |
↳ resource_after_change |
ChangeHistoryChange\ChangeHistoryResource
Resource contents from after the change was made. If this resource was deleted in this change, this field will be missing. |
getResource
Resource name of the resource whose changes are described by this entry.
Returns | |
---|---|
Type | Description |
string |
setResource
Resource name of the resource whose changes are described by this entry.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAction
The type of action that changed this resource.
Returns | |
---|---|
Type | Description |
int |
setAction
The type of action that changed this resource.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getResourceBeforeChange
Resource contents from before the change was made. If this resource was created in this change, this field will be missing.
Returns | |
---|---|
Type | Description |
ChangeHistoryChange\ChangeHistoryResource|null |
hasResourceBeforeChange
clearResourceBeforeChange
setResourceBeforeChange
Resource contents from before the change was made. If this resource was created in this change, this field will be missing.
Parameter | |
---|---|
Name | Description |
var |
ChangeHistoryChange\ChangeHistoryResource
|
Returns | |
---|---|
Type | Description |
$this |
getResourceAfterChange
Resource contents from after the change was made. If this resource was deleted in this change, this field will be missing.
Returns | |
---|---|
Type | Description |
ChangeHistoryChange\ChangeHistoryResource|null |
hasResourceAfterChange
clearResourceAfterChange
setResourceAfterChange
Resource contents from after the change was made. If this resource was deleted in this change, this field will be missing.
Parameter | |
---|---|
Name | Description |
var |
ChangeHistoryChange\ChangeHistoryResource
|
Returns | |
---|---|
Type | Description |
$this |