Class: Google::Apis::HealthcareV1beta1::AttributeDefinition

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

A client-defined consent attribute.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AttributeDefinition

Returns a new instance of AttributeDefinition.



436
437
438
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 436

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

Instance Attribute Details

#allowed_valuesArray<String>

Required. Possible values for the attribute. The number of allowed values must not exceed 500. An empty list is invalid. The list can only be expanded after creation. Corresponds to the JSON property allowedValues

Returns:

  • (Array<String>)


402
403
404
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 402

def allowed_values
  @allowed_values
end

#categoryString

Required. The category of the attribute. The value of this field cannot be changed after creation. Corresponds to the JSON property category

Returns:

  • (String)


408
409
410
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 408

def category
  @category
end

Optional. Default values of the attribute in Consents. If no default values are specified, it defaults to an empty value. Corresponds to the JSON property consentDefaultValues

Returns:

  • (Array<String>)


414
415
416
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 414

def consent_default_values
  @consent_default_values
end

#data_mapping_default_valueString

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

Returns:

  • (String)


421
422
423
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 421

def data_mapping_default_value
  @data_mapping_default_value
end

#descriptionString

Optional. A description of the attribute. Corresponds to the JSON property description

Returns:

  • (String)


426
427
428
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 426

def description
  @description
end

#nameString

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 propertyname`

Returns:

  • (String)


434
435
436
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 434

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



441
442
443
444
445
446
447
448
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 441

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