class Google::Apis::HealthcareV1::AttributeDefinition

A client-defined consent attribute.

Attributes

allowed_values[RW]

Required. Possible values for the attribute. The number of allowed values must not exceed 100. An empty list is invalid. The list can only be expanded after creation. Corresponds to the JSON property `allowedValues` @return [Array<String>]

category[RW]

Required. The category of the attribute. The value of this field cannot be changed after creation. Corresponds to the JSON property `category` @return [String]

data_mapping_default_value[RW]

Optional. Default value of the attribute in User data mappings. If no default value is specified, it defaults to an empty value. This field is only applicable to attributes of the category `RESOURCE`. Corresponds to the JSON property `dataMappingDefaultValue` @return [String]

description[RW]

Optional. A description of the attribute. Corresponds to the JSON property `description` @return [String]

name[RW]

Resource name of the Attribute definition, of the form `projects/`project_id`/ locations/`location_id`/datasets/`dataset_id`/consentStores/`consent_store_id`/ attributeDefinitions/`attribute_definition_id“. Cannot be changed after creation. Corresponds to the JSON property `name` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/healthcare_v1/classes.rb, line 223
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 228
def update!(**args)
  @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
  @category = args[:category] if args.key?(:category)
  @consent_default_values = args[:consent_default_values] if args.key?(:consent_default_values)
  @data_mapping_default_value = args[:data_mapping_default_value] if args.key?(:data_mapping_default_value)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
end