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

CreateOrgPolicyViolationsPreviewOperationMetadata is metadata about an
OrgPolicyViolationsPreview generations operation.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #request_time

    def request_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Protobuf-Timestamp)) --- Time when the request was received.

### #request_time=

    def request_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Protobuf-Timestamp)) --- Time when the request was received.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Protobuf-Timestamp)) --- Time when the request was received.

### #resources_found

    def resources_found() -> ::Integer

**Returns**

- (::Integer) --- Total number of resources that need scanning. Should equal resource_scanned + resources_pending

### #resources_found=

    def resources_found=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Total number of resources that need scanning. Should equal resource_scanned + resources_pending
**Returns**

- (::Integer) --- Total number of resources that need scanning. Should equal resource_scanned + resources_pending

### #resources_pending

    def resources_pending() -> ::Integer

**Returns**

- (::Integer) --- Number of resources still to scan.

### #resources_pending=

    def resources_pending=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Number of resources still to scan.
**Returns**

- (::Integer) --- Number of resources still to scan.

### #resources_scanned

    def resources_scanned() -> ::Integer

**Returns**

- (::Integer) --- Number of resources already scanned.

### #resources_scanned=

    def resources_scanned=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Number of resources already scanned.
**Returns**

- (::Integer) --- Number of resources already scanned.

### #start_time

    def start_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Protobuf-Timestamp)) --- Time when the request started processing, i.e., when the state was set to RUNNING.

### #start_time=

    def start_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Protobuf-Timestamp)) --- Time when the request started processing, i.e., when the state was set to RUNNING.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Protobuf-Timestamp)) --- Time when the request started processing, i.e., when the state was set to RUNNING.

### #state

    def state() -> ::Google::Cloud::PolicySimulator::V1::PreviewState

**Returns**

- ([::Google::Cloud::PolicySimulator::V1::PreviewState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-PreviewState)) --- Output only. The current state of the operation.