# Policy Simulator V1 API - Class Google::Cloud::PolicySimulator::V1::AccessStateDiff (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::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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #access_change

    def access_change() -> ::Google::Cloud::PolicySimulator::V1::AccessStateDiff::AccessChangeType

**Returns**

- ([::Google::Cloud::PolicySimulator::V1::AccessStateDiff::AccessChangeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessStateDiff-AccessChangeType)) --- How the principal's access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies.

### #access_change=

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

**Parameter**

- **value** ([::Google::Cloud::PolicySimulator::V1::AccessStateDiff::AccessChangeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessStateDiff-AccessChangeType)) --- How the principal's access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies.
**Returns**

- ([::Google::Cloud::PolicySimulator::V1::AccessStateDiff::AccessChangeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-AccessStateDiff-AccessChangeType)) --- How the principal's access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies.

### #baseline

    def baseline() -> ::Google::Cloud::PolicySimulator::V1::ExplainedAccess

**Returns**

- ([::Google::Cloud::PolicySimulator::V1::ExplainedAccess](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-ExplainedAccess)) --- The results of evaluating the access tuple under the current (baseline) policies.


  If 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)") couldn't
  be fully evaluated, this field explains why.

### #baseline=

    def baseline=(value) -> ::Google::Cloud::PolicySimulator::V1::ExplainedAccess

**Parameter**

- **value** ([::Google::Cloud::PolicySimulator::V1::ExplainedAccess](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-ExplainedAccess)) --- The results of evaluating the access tuple under the current (baseline) policies.


  If 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)") couldn't
  be fully evaluated, this field explains why.
**Returns**

- ([::Google::Cloud::PolicySimulator::V1::ExplainedAccess](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-ExplainedAccess)) --- The results of evaluating the access tuple under the current (baseline) policies.


  If 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)") couldn't
  be fully evaluated, this field explains why.

### #simulated

    def simulated() -> ::Google::Cloud::PolicySimulator::V1::ExplainedAccess

**Returns**

- ([::Google::Cloud::PolicySimulator::V1::ExplainedAccess](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-ExplainedAccess)) --- The results of evaluating the access tuple under the proposed (simulated) policies.


  If the AccessState couldn't be fully evaluated, this field explains why.

### #simulated=

    def simulated=(value) -> ::Google::Cloud::PolicySimulator::V1::ExplainedAccess

**Parameter**

- **value** ([::Google::Cloud::PolicySimulator::V1::ExplainedAccess](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-ExplainedAccess)) --- The results of evaluating the access tuple under the proposed (simulated) policies.


  If the AccessState couldn't be fully evaluated, this field explains why.
**Returns**

- ([::Google::Cloud::PolicySimulator::V1::ExplainedAccess](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-ExplainedAccess)) --- The results of evaluating the access tuple under the proposed (simulated) policies.


  If the AccessState couldn't be fully evaluated, this field explains why.