Class: Google::Apis::HealthcareV1::CheckDataAccessResponse

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

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.



468
469
470
# File 'lib/google/apis/healthcare_v1/classes.rb', line 468

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



460
461
462
# File 'lib/google/apis/healthcare_v1/classes.rb', line 460

def consent_details
  @consent_details
end

#consentedBoolean Also known as: consented?

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

Returns:

  • (Boolean)


465
466
467
# File 'lib/google/apis/healthcare_v1/classes.rb', line 465

def consented
  @consented
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



473
474
475
476
# File 'lib/google/apis/healthcare_v1/classes.rb', line 473

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