ProjectsLocationsDatasetsConsentStoresConsents
class ProjectsLocationsDatasetsConsentStoresConsents extends Resource (View source)
The "consents" collection of methods.
Typical usage is:
$healthcareService = new Google\Service\CloudHealthcare(...);
$consents = $healthcareService->projects_locations_datasets_consentStores_consents;
Methods
Activates the latest revision of the specified Consent by committing a new
revision with state
updated to ACTIVE
. If the latest revision of the
specified Consent is in the ACTIVE
state, no new revision is committed. A
FAILED_PRECONDITION error occurs if the latest revision of the specified
Consent is in the REJECTED
or REVOKED
state. (consents.activate)
Deletes the Consent and its revisions. To keep a record of the Consent but mark it inactive, see [RevokeConsent]. To delete a revision of a Consent, see [DeleteConsentRevision]. This operation does not delete the related Consent artifact. (consents.delete)
Deletes the specified revision of a Consent. An INVALID_ARGUMENT error occurs if the specified revision is the latest revision. (consents.deleteRevision)
Gets the specified revision of a Consent, or the latest revision if
revision_id
is not specified in the resource name. (consents.get)
Lists the Consent in the given consent store, returning each Consent's latest revision. (consents.listProjectsLocationsDatasetsConsentStoresConsents)
Lists the revisions of the specified Consent in reverse chronological order.
Rejects the latest revision of the specified Consent by committing a new
revision with state
updated to REJECTED
. If the latest revision of the
specified Consent is in the REJECTED
state, no new revision is committed. A
FAILED_PRECONDITION error occurs if the latest revision of the specified
Consent is in the ACTIVE
or REVOKED
state. (consents.reject)
Revokes the latest revision of the specified Consent by committing a new
revision with state
updated to REVOKED
. If the latest revision of the
specified Consent is in the REVOKED
state, no new revision is committed. A
FAILED_PRECONDITION error occurs if the latest revision of the given consent
is in DRAFT
or REJECTED
state. (consents.revoke)
Details
Consent
activate(string $name, ActivateConsentRequest $postBody, array $optParams = [])
Activates the latest revision of the specified Consent by committing a new
revision with state
updated to ACTIVE
. If the latest revision of the
specified Consent is in the ACTIVE
state, no new revision is committed. A
FAILED_PRECONDITION error occurs if the latest revision of the specified
Consent is in the REJECTED
or REVOKED
state. (consents.activate)
Consent
create(string $parent, Consent $postBody, array $optParams = [])
Creates a new Consent in the parent consent store. (consents.create)
HealthcareEmpty
delete(string $name, array $optParams = [])
Deletes the Consent and its revisions. To keep a record of the Consent but mark it inactive, see [RevokeConsent]. To delete a revision of a Consent, see [DeleteConsentRevision]. This operation does not delete the related Consent artifact. (consents.delete)
HealthcareEmpty
deleteRevision(string $name, array $optParams = [])
Deletes the specified revision of a Consent. An INVALID_ARGUMENT error occurs if the specified revision is the latest revision. (consents.deleteRevision)
Consent
get(string $name, array $optParams = [])
Gets the specified revision of a Consent, or the latest revision if
revision_id
is not specified in the resource name. (consents.get)
ListConsentsResponse
listProjectsLocationsDatasetsConsentStoresConsents(string $parent, array $optParams = [])
Lists the Consent in the given consent store, returning each Consent's latest revision. (consents.listProjectsLocationsDatasetsConsentStoresConsents)
ListConsentRevisionsResponse
listRevisions(string $name, array $optParams = [])
Lists the revisions of the specified Consent in reverse chronological order.
(consents.listRevisions)
Consent
patch(string $name, Consent $postBody, array $optParams = [])
Updates the latest revision of the specified Consent by committing a new
revision with the changes. A FAILED_PRECONDITION error occurs if the latest
revision of the specified Consent is in the REJECTED
or REVOKED
state.
(consents.patch)
Consent
reject(string $name, RejectConsentRequest $postBody, array $optParams = [])
Rejects the latest revision of the specified Consent by committing a new
revision with state
updated to REJECTED
. If the latest revision of the
specified Consent is in the REJECTED
state, no new revision is committed. A
FAILED_PRECONDITION error occurs if the latest revision of the specified
Consent is in the ACTIVE
or REVOKED
state. (consents.reject)
Consent
revoke(string $name, RevokeConsentRequest $postBody, array $optParams = [])
Revokes the latest revision of the specified Consent by committing a new
revision with state
updated to REVOKED
. If the latest revision of the
specified Consent is in the REVOKED
state, no new revision is committed. A
FAILED_PRECONDITION error occurs if the latest revision of the given consent
is in DRAFT
or REJECTED
state. (consents.revoke)