Class: Google::Apis::HealthcareV1beta1::CheckDataAccessRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/healthcare_v1beta1/classes.rb,
lib/google/apis/healthcare_v1beta1/representations.rb,
lib/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) ⇒ CheckDataAccessRequest

Returns a new instance of CheckDataAccessRequest.



1042
1043
1044
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1042

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

Instance Attribute Details

List of resource names of Consent resources. Corresponds to the JSON property consentList



1023
1024
1025
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1023

def consent_list
  @consent_list
end

#data_idString

Required. The unique identifier of the resource to check access for. This identifier must correspond to a User data mapping in the given consent store. Corresponds to the JSON property dataId

Returns:

  • (String)


1029
1030
1031
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1029

def data_id
  @data_id
end

#request_attributesHash<String,String>

The values of request attributes associated with this access request. Corresponds to the JSON property requestAttributes

Returns:

  • (Hash<String,String>)


1034
1035
1036
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1034

def request_attributes
  @request_attributes
end

#response_viewString

Optional. The view for CheckDataAccessResponse. If unspecified, defaults to BASIC and returns consented as TRUE or FALSE. Corresponds to the JSON property responseView

Returns:

  • (String)


1040
1041
1042
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1040

def response_view
  @response_view
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1047
1048
1049
1050
1051
1052
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1047

def update!(**args)
  @consent_list = args[:consent_list] if args.key?(:consent_list)
  @data_id = args[:data_id] if args.key?(:data_id)
  @request_attributes = args[:request_attributes] if args.key?(:request_attributes)
  @response_view = args[:response_view] if args.key?(:response_view)
end