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.
422 423 424 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 422 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
405 406 407 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 405 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
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 |