Class: Google::Apis::HealthcareV1beta1::CheckDataAccessResponse

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

Checks if a particular data_id of a User data mapping in the given Consent store is consented for a given use.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CheckDataAccessResponse

Returns a new instance of CheckDataAccessResponse.



621
622
623
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 621

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

Instance Attribute Details

The resource names of all evaluated Consents mapped to their evaluation. Corresponds to the JSON property consentDetails



613
614
615
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 613

def consent_details
  @consent_details
end

#consentedBoolean Also known as: consented?

Whether the requested data is consented for the given use. Corresponds to the JSON property consented

Returns:

  • (Boolean)


618
619
620
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 618

def consented
  @consented
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



626
627
628
629
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 626

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