class Google::Apis::HealthcareV1::Consent

Represents a user's consent.

Attributes

expire_time[RW]

Timestamp in UTC of when this Consent is considered expired. Corresponds to the JSON property `expireTime` @return [String]

metadata[RW]

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` @return [Hash<String,String>]

name[RW]

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 property `name` @return [String]

policies[RW]

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` @return [Array<Google::Apis::HealthcareV1::GoogleCloudHealthcareV1ConsentPolicy>]

revision_create_time[RW]

Output only. The timestamp that the revision was created. Corresponds to the JSON property `revisionCreateTime` @return [String]

revision_id[RW]

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 property `revisionId` @return [String]

state[RW]

Required. Indicates the current state of this Consent. Corresponds to the JSON property `state` @return [String]

ttl[RW]

Input only. The time to live for this Consent from when it is created. Corresponds to the JSON property `ttl` @return [String]

user_id[RW]

Required. User's UUID provided by the client. Corresponds to the JSON property `userId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/healthcare_v1/classes.rb, line 548
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/healthcare_v1/classes.rb, line 553
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