class Google::Apis::HealthcareV1::ConsentArtifact

Documentation of a user's consent.

Attributes

guardian_signature[RW]

User signature. Corresponds to the JSON property `guardianSignature` @return [Google::Apis::HealthcareV1::Signature]

metadata[RW]

Optional. Metadata associated with the Consent artifact. For example, the consent locale or user agent version. Corresponds to the JSON property `metadata` @return [Hash<String,String>]

name[RW]

Resource name of the Consent artifact, of the form `projects/`project_id`/ locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/ consentArtifacts/`consent_artifact_id“. Cannot be changed after creation. Corresponds to the JSON property `name` @return [String]

user_id[RW]

Required. User's UUID provided by the client. Corresponds to the JSON property `userId` @return [String]

user_signature[RW]

User signature. Corresponds to the JSON property `userSignature` @return [Google::Apis::HealthcareV1::Signature]

witness_signature[RW]

User signature. Corresponds to the JSON property `witnessSignature` @return [Google::Apis::HealthcareV1::Signature]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/healthcare_v1/classes.rb, line 616
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/healthcare_v1/classes.rb, line 621
def update!(**args)
  @consent_content_screenshots = args[:consent_content_screenshots] if args.key?(:consent_content_screenshots)
  @consent_content_version = args[:consent_content_version] if args.key?(:consent_content_version)
  @guardian_signature = args[:guardian_signature] if args.key?(:guardian_signature)
  @metadata = args[:metadata] if args.key?(:metadata)
  @name = args[:name] if args.key?(:name)
  @user_id = args[:user_id] if args.key?(:user_id)
  @user_signature = args[:user_signature] if args.key?(:user_signature)
  @witness_signature = args[:witness_signature] if args.key?(:witness_signature)
end