Class: Google::Apis::HealthcareV1::RevokeConsentRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/healthcare_v1/classes.rb,
lib/google/apis/healthcare_v1/representations.rb,
lib/google/apis/healthcare_v1/representations.rb
more...

Overview

Revokes the latest revision of the specified Consent by committing a new revision with state updated to REVOKED. If the latest revision of the given Consent is in the REVOKED state, no new revision is committed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RevokeConsentRequest

Returns a new instance of RevokeConsentRequest.

[View source]

4941
4942
4943
# File 'lib/google/apis/healthcare_v1/classes.rb', line 4941

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

Optional. The resource name of the Consent artifact that contains proof of the user's revocation of the Consent, of the form projects/project_id/locations/ location_id/datasets/dataset_id/consentStores/consent_store_id/ consentArtifacts/consent_artifact_id`. Corresponds to the JSON propertyconsentArtifact`

Returns:

  • (String)

4939
4940
4941
# File 'lib/google/apis/healthcare_v1/classes.rb', line 4939

def consent_artifact
  @consent_artifact
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

4946
4947
4948
# File 'lib/google/apis/healthcare_v1/classes.rb', line 4946

def update!(**args)
  @consent_artifact = args[:consent_artifact] if args.key?(:consent_artifact)
end