Class: Google::Apis::HealthcareV1::ApplyAdminConsentsRequest
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1::ApplyAdminConsentsRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1/classes.rb,
lib/google/apis/healthcare_v1/representations.rb,
lib/google/apis/healthcare_v1/representations.rb more...
Overview
Request to apply the admin Consent resources for the specified FHIR store.
Instance Attribute Summary collapse
-
#new_consents_list ⇒ Google::Apis::HealthcareV1::AdminConsents
List of admin Consent resources to be applied.
-
#validate_only ⇒ Boolean
(also: #validate_only?)
Optional.
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.
238 239 240 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 238 def initialize(**args) update!(**args) end |
Instance Attribute Details
#new_consents_list ⇒ Google::Apis::HealthcareV1::AdminConsents
List of admin Consent resources to be applied.
Corresponds to the JSON property newConsentsList
220 221 222 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 220 def @new_consents_list end |
#validate_only ⇒ Boolean Also known as: validate_only?
Optional. 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
235 236 237 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 235 def validate_only @validate_only end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
243 244 245 246 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 243 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 |