Class: Google::Apis::HealthcareV1beta1::Consent

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

Represents a user's consent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Consent

Returns a new instance of Consent.



1224
1225
1226
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1224

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

Instance Attribute Details

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`. Corresponds to the JSON propertyconsentArtifact`

Returns:

  • (String)


1165
1166
1167
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1165

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)


1170
1171
1172
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1170

def expire_time
  @expire_time
end

#metadataHash<String,String>

Optional. User-supplied key-value pairs used to organize Consent resources. Metadata keys must: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - begin with a letter - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes Metadata values must be: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes No more than 64 metadata entries can be associated with a given consent. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


1182
1183
1184
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1182

def 
  @metadata
end

#nameString

Identifier. Resource name of the Consent, of the form projects/project_id/ locations/location_id/datasets/dataset_id/consentStores/consent_store_id/ consents/consent_id`. Cannot be changed after creation. Corresponds to the JSON propertyname`

Returns:

  • (String)


1189
1190
1191
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1189

def name
  @name
end

#policiesArray<Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1ConsentPolicy>

Optional. Represents a user's consent in terms of the resources that can be accessed and under what conditions. Corresponds to the JSON property policies



1195
1196
1197
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1195

def policies
  @policies
end

#revision_create_timeString

Output only. The timestamp that the revision was created. Corresponds to the JSON property revisionCreateTime

Returns:

  • (String)


1200
1201
1202
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1200

def revision_create_time
  @revision_create_time
end

#revision_idString

Output only. The revision ID of the Consent. The format is an 8-character hexadecimal string. Refer to a specific revision of a Consent by appending @ revision_id`to the Consent's resource name. Corresponds to the JSON propertyrevisionId`

Returns:

  • (String)


1207
1208
1209
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1207

def revision_id
  @revision_id
end

#stateString

Required. Indicates the current state of this Consent. Corresponds to the JSON property state

Returns:

  • (String)


1212
1213
1214
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1212

def state
  @state
end

#ttlString

Input only. The time to live for this Consent from when it is created. Corresponds to the JSON property ttl

Returns:

  • (String)


1217
1218
1219
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1217

def ttl
  @ttl
end

#user_idString

Required. User's UUID provided by the client. Corresponds to the JSON property userId

Returns:

  • (String)


1222
1223
1224
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1222

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1229

def update!(**args)
  @consent_artifact = args[:consent_artifact] if args.key?(:consent_artifact)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @metadata = args[:metadata] if args.key?(:metadata)
  @name = args[:name] if args.key?(:name)
  @policies = args[:policies] if args.key?(:policies)
  @revision_create_time = args[:revision_create_time] if args.key?(:revision_create_time)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
  @state = args[:state] if args.key?(:state)
  @ttl = args[:ttl] if args.key?(:ttl)
  @user_id = args[:user_id] if args.key?(:user_id)
end