Class: Google::Apis::HealthcareV1beta1::ApplyAdminConsentsRequest

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

Request to apply the admin Consent resources for the specified FHIR store.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApplyAdminConsentsRequest

Returns a new instance of ApplyAdminConsentsRequest.



450
451
452
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 450

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

Instance Attribute Details

#new_consents_listGoogle::Apis::HealthcareV1beta1::AdminConsents

List of admin Consent resources to be applied. Corresponds to the JSON property newConsentsList



433
434
435
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 433

def new_consents_list
  @new_consents_list
end

#validate_onlyBoolean Also known as: validate_only?

If true, the method only validates Consent resources to make sure they are supported. Otherwise, the method applies the aggregate consent information to update the enforcement model and reindex the FHIR resources. If all Consent resources can be applied successfully, the ApplyAdminConsentsResponse is returned containing the following fields: * consent_apply_success to indicate the number of Consent resources applied. * affected_resources to indicate the number of resources that might have had their consent access changed. If, however, one or more Consent resources are unsupported or cannot be applied, the method fails and ApplyAdminConsentsErrorDetail is is returned with details about the unsupported Consent resources. Corresponds to the JSON property validateOnly

Returns:

  • (Boolean)


447
448
449
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 447

def validate_only
  @validate_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



455
456
457
458
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 455

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