public class CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents extends Object
Constructor and Description |
---|
Consents() |
Modifier and Type | Method and Description |
---|---|
CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.Activate |
activate(String name,
ActivateConsentRequest content)
Activates the latest revision of the specified Consent by committing a new revision with `state`
updated to `ACTIVE`.
|
CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.Create |
create(String parent,
Consent content)
Creates a new Consent in the parent consent store.
|
CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.Delete |
delete(String name)
Deletes the Consent and its revisions.
|
CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.DeleteRevision |
deleteRevision(String name)
Deletes the specified revision of a Consent.
|
CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.Get |
get(String name)
Gets the specified revision of a Consent, or the latest revision if `revision_id` is not
specified in the resource name.
|
CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.List |
list(String parent)
Lists the Consent in the given consent store, returning each Consent's latest revision.
|
CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.ListRevisions |
listRevisions(String name)
Lists the revisions of the specified Consent in reverse chronological order.
|
CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.Patch |
patch(String name,
Consent content)
Updates the latest revision of the specified Consent by committing a new revision with the
changes.
|
CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.Reject |
reject(String name,
RejectConsentRequest content)
Rejects the latest revision of the specified Consent by committing a new revision with `state`
updated to `REJECTED`.
|
CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.Revoke |
revoke(String name,
RevokeConsentRequest content)
Revokes the latest revision of the specified Consent by committing a new revision with `state`
updated to `REVOKED`.
|
public CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.Activate activate(String name, ActivateConsentRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The resource name of the Consent to activate, of the form `projects/{project_id}/locations
/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id
}`. An INVALID_ARGUMENT error occurs if `revision_id` is specified in the name.content
- the ActivateConsentRequest
IOException
public CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.Create create(String parent, Consent content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. Name of the consent store.content
- the Consent
IOException
public CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The resource name of the Consent to delete, of the form `projects/{project_id}/locations/{
location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`
. An INVALID_ARGUMENT error occurs if `revision_id` is specified in the name.IOException
public CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.DeleteRevision deleteRevision(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The resource name of the Consent revision to delete, of the form `projects/{project_id}/lo
cations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{con
sent_id}@{revision_id}`. An INVALID_ARGUMENT error occurs if `revision_id` is not
specified in the name.IOException
public CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The resource name of the Consent to retrieve, of the form `projects/{project_id}/locations
/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id
}`. In order to retrieve a previous revision of the Consent, also provide the revision ID:
`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consen
t_store_id}/consents/{consent_id}@{revision_id}`IOException
public CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.parent
- Required. Name of the consent store to retrieve Consents from.IOException
public CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.ListRevisions listRevisions(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The resource name of the Consent to retrieve revisions for.IOException
public CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.Patch patch(String name, Consent content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Identifier. Resource name of the Consent, of the form `projects/{project_id}/locations/{location_id}
/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`. Cannot be
changed after creation.content
- the Consent
IOException
public CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.Reject reject(String name, RejectConsentRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The resource name of the Consent to reject, of the form `projects/{project_id}/locations/{
location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`
. An INVALID_ARGUMENT error occurs if `revision_id` is specified in the name.content
- the RejectConsentRequest
IOException
public CloudHealthcare.Projects.Locations.Datasets.ConsentStores.Consents.Revoke revoke(String name, RevokeConsentRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The resource name of the Consent to revoke, of the form `projects/{project_id}/locations/{
location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}`
. An INVALID_ARGUMENT error occurs if `revision_id` is specified in the name.content
- the RevokeConsentRequest
IOException
Copyright © 2011–2024 Google. All rights reserved.