Class: Google::Apis::HealthcareV1beta1::ActivateConsentRequest
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::ActivateConsentRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/healthcare_v1beta1/classes.rb,
generated/google/apis/healthcare_v1beta1/representations.rb,
generated/google/apis/healthcare_v1beta1/representations.rb
Overview
Activates the latest revision of the specified Consent by committing a new
revision with state
updated to ACTIVE
. If the latest revision of the given
consent is in the ACTIVE
state, no new revision is committed.
Instance Attribute Summary collapse
-
#consent_artifact ⇒ String
Required.
-
#expire_time ⇒ String
Timestamp in UTC of when this consent is considered expired.
-
#ttl ⇒ String
The time to live for this consent from when it is marked as active.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActivateConsentRequest
constructor
A new instance of ActivateConsentRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ActivateConsentRequest
Returns a new instance of ActivateConsentRequest.
50 51 52 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 50 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consent_artifact ⇒ String
Required. The resource name of the consent artifact that contains proof of the
end user's consent, of the form projects/
project_id/locations/
location_id/
datasets/
dataset_id/consentStores/
consent_store_id/consentArtifacts/
consent_artifact_id`. If the draft consent had a consent artifact, this
consent artifact overwrites it.
Corresponds to the JSON property
consentArtifact`
38 39 40 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 38 def @consent_artifact end |
#expire_time ⇒ String
Timestamp in UTC of when this consent is considered expired.
Corresponds to the JSON property expireTime
43 44 45 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 43 def expire_time @expire_time end |
#ttl ⇒ String
The time to live for this consent from when it is marked as active.
Corresponds to the JSON property ttl
48 49 50 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 48 def ttl @ttl end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
55 56 57 58 59 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 55 def update!(**args) @consent_artifact = args[:consent_artifact] if args.key?(:consent_artifact) @expire_time = args[:expire_time] if args.key?(:expire_time) @ttl = args[:ttl] if args.key?(:ttl) end |