# ApplyConsentsResponse

Response when all Consent resources in scope were processed and all affected resources were reindexed successfully. This structure is included in the `https://docs.cloud.google.com/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.operations#Operation.FIELDS.response` when the operation finishes successfully.

| JSON representation |
|---|
| ``` { "consentApplySuccess": string, "consentApplyFailure": string, "affectedResources": string, "failedResources": string } ``` |

| Fields ||
|---|---|
| `consentApplySuccess` | `string (https://developers.google.com/discovery/v1/type-format format)` If `validateOnly = false` in `ApplyConsentsRequest`, this counter is the number of Consent resources that were successfully applied. Otherwise, it is the number of Consent resources that are supported. |
| `consentApplyFailure` | `string (https://developers.google.com/discovery/v1/type-format format)` If `validateOnly = false` in `ApplyConsentsRequest`, this counter is the number of Consent resources that were failed to apply. Otherwise, it is the number of Consent resources that are not supported or invalid. |
| `affectedResources` | `string (https://developers.google.com/discovery/v1/type-format format)` The number of resources (including the Consent resources) that may have consensual access change. |
| `failedResources` | `string (https://developers.google.com/discovery/v1/type-format format)` The number of resources (including the Consent resources) that \[ApplyConsents\]\[\] failed to re-index. |