Class: Google::Apis::HealthcareV1beta1::ApplyAdminConsentsRequest
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::ApplyAdminConsentsRequest
- 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
-
#new_consents_list ⇒ Google::Apis::HealthcareV1beta1::AdminConsents
List of admin Consent resources to be applied.
-
#validate_only ⇒ Boolean
(also: #validate_only?)
If true, the method only validates Consent resources to make sure they are supported.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApplyAdminConsentsRequest
constructor
A new instance of ApplyAdminConsentsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_list ⇒ Google::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 end |
#validate_only ⇒ Boolean 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
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 |