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.



422
423
424
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 422

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



405
406
407
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 405

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)


419
420
421
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 419

def validate_only
  @validate_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



427
428
429
430
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 427

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