Class: Google::Apis::HealthcareV1beta1::ConsentArtifact

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

Overview

Proof of an end user's consent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConsentArtifact

Returns a new instance of ConsentArtifact.



786
787
788
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 786

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

Instance Attribute Details

Screenshots of the consent content. Corresponds to the JSON property consentContentScreenshots



746
747
748
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 746

def consent_content_screenshots
  @consent_content_screenshots
end

An string indicating the version of the consent content. Corresponds to the JSON property consentContentVersion

Returns:

  • (String)


751
752
753
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 751

def consent_content_version
  @consent_content_version
end

#guardian_signatureGoogle::Apis::HealthcareV1beta1::Signature

User signature. Corresponds to the JSON property guardianSignature



756
757
758
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 756

def guardian_signature
  @guardian_signature
end

#metadataHash<String,String>

Metadata associated with the consent artifact. For example, the consent locale or user agent version. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


762
763
764
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 762

def 
  @metadata
end

#nameString

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`. Corresponds to the JSON propertyname`

Returns:

  • (String)


769
770
771
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 769

def name
  @name
end

#user_idString

Required. User's UUID provided by the client. Corresponds to the JSON property userId

Returns:

  • (String)


774
775
776
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 774

def user_id
  @user_id
end

#user_signatureGoogle::Apis::HealthcareV1beta1::Signature

User signature. Corresponds to the JSON property userSignature



779
780
781
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 779

def user_signature
  @user_signature
end

#witness_signatureGoogle::Apis::HealthcareV1beta1::Signature

User signature. Corresponds to the JSON property witnessSignature



784
785
786
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 784

def witness_signature
  @witness_signature
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



791
792
793
794
795
796
797
798
799
800
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 791

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