# prov.mandate.policies

prov.mandate.policies in the Python SDK: 9 methods. The mandate.policies methods.

## Methods

### [get](https://provenanceauth.com/docs/sdks/python/mandate-policies/get.md)

```python
prov.mandate.policies.get(domain: Optional[str] = …) -> Any
```

### [set](https://provenanceauth.com/docs/sdks/python/mandate-policies/set.md)

```python
prov.mandate.policies.set(document: dict, note: Optional[str] = …, domain: Optional[str] = …) -> Any
```

### [reset](https://provenanceauth.com/docs/sdks/python/mandate-policies/reset.md)

```python
prov.mandate.policies.reset(domain: Optional[str] = …) -> Any
```

### [list_versions](https://provenanceauth.com/docs/sdks/python/mandate-policies/list-versions.md)

```python
prov.mandate.policies.list_versions(domain: Optional[str] = …, draft_group: Optional[str] = …) -> Any
```

### [get_version](https://provenanceauth.com/docs/sdks/python/mandate-policies/get-version.md)

```python
prov.mandate.policies.get_version(version: int, domain: Optional[str] = …) -> Any
```

### [create_draft](https://provenanceauth.com/docs/sdks/python/mandate-policies/create-draft.md)

```python
prov.mandate.policies.create_draft(document: dict, note: Optional[str] = …, domain: Optional[str] = …, idempotency_key: Optional[str] = …) -> Any
```

S5: save a draft version, checked as a publish is; nothing goes live until `publish_version`.

### [publish_version](https://provenanceauth.com/docs/sdks/python/mandate-policies/publish-version.md)

```python
prov.mandate.policies.publish_version(version: int, trial_days: Optional[int] = …, domain: Optional[str] = …, idempotency_key: Optional[str] = …) -> Any
```

S5: make a saved version live now, or (`trial_days`, 1 to 30, Pro and up) run it as a trial first.

### [simulate](https://provenanceauth.com/docs/sdks/python/mandate-policies/simulate.md)

```python
prov.mandate.policies.simulate(facts: dict, document: Optional[dict] = …) -> Any
```

Calls `POST /v1/mandate/policies/simulate`.

### [simulate_risk](https://provenanceauth.com/docs/sdks/python/mandate-policies/simulate-risk.md)

```python
prov.mandate.policies.simulate_risk(**body: Any = …) -> Any
```

Calls `POST /v1/attest/risk_policies/simulate`.
