# Policy Simulator V1 API - Class Google::Cloud::PolicySimulator::V1::ReplayDiff (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.4.0 0.3.2 0.2.0 0.1.1 Reference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::ReplayDiff.

The difference between the results of evaluating an access tuple under
the current (baseline) policies and under the proposed (simulated) policies.
This difference explains how a principal's access could change if the
proposed policies were applied.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #access_diff

    def access_diff() -> ::Google::Cloud::PolicySimulator::V1::AccessStateDiff

**Returns**

- ([::Google::Cloud::PolicySimulator::V1::AccessStateDiff](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessStateDiff)) --- A summary and comparison of the principal's access under the current (baseline) policies and the proposed (simulated) policies for a single access tuple.


  The evaluation of the principal's access is reported in the
  [AccessState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState "Google::Cloud::PolicySimulator::V1::AccessState (module)") field.

### #access_diff=

    def access_diff=(value) -> ::Google::Cloud::PolicySimulator::V1::AccessStateDiff

**Parameter**

- **value** ([::Google::Cloud::PolicySimulator::V1::AccessStateDiff](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessStateDiff)) --- A summary and comparison of the principal's access under the current (baseline) policies and the proposed (simulated) policies for a single access tuple.


  The evaluation of the principal's access is reported in the
  [AccessState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState "Google::Cloud::PolicySimulator::V1::AccessState (module)") field.
**Returns**

- ([::Google::Cloud::PolicySimulator::V1::AccessStateDiff](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessStateDiff)) --- A summary and comparison of the principal's access under the current (baseline) policies and the proposed (simulated) policies for a single access tuple.


  The evaluation of the principal's access is reported in the
  [AccessState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessState "Google::Cloud::PolicySimulator::V1::AccessState (module)") field.