Class: Google::Apis::HealthcareV1::ActivateConsentRequest

Inherits:
Object
  • Object
show all
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

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. A FAILED_PRECONDITION error occurs if the latest revision of the given consent is in the REJECTED or REVOKED state.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActivateConsentRequest

Returns a new instance of ActivateConsentRequest.

[View source]

75
76
77
# File 'lib/google/apis/healthcare_v1/classes.rb', line 75

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

Required. The resource name of the Consent artifact that contains documentation of the 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 propertyconsentArtifact`

Returns:

  • (String)

63
64
65
# File 'lib/google/apis/healthcare_v1/classes.rb', line 63

def consent_artifact
  @consent_artifact
end

#expire_timeString

Timestamp in UTC of when this Consent is considered expired. Corresponds to the JSON property expireTime

Returns:

  • (String)

68
69
70
# File 'lib/google/apis/healthcare_v1/classes.rb', line 68

def expire_time
  @expire_time
end

#ttlString

The time to live for this Consent from when it is marked as active. Corresponds to the JSON property ttl

Returns:

  • (String)

73
74
75
# File 'lib/google/apis/healthcare_v1/classes.rb', line 73

def ttl
  @ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

80
81
82
83
84
# File 'lib/google/apis/healthcare_v1/classes.rb', line 80

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