Class: Google::Apis::HealthcareV1beta1::AttributeDefinition
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::AttributeDefinition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/healthcare_v1beta1/classes.rb,
generated/google/apis/healthcare_v1beta1/representations.rb,
generated/google/apis/healthcare_v1beta1/representations.rb
Overview
A client-defined consent attribute.
Instance Attribute Summary collapse
-
#allowed_values ⇒ Array<String>
Required.
-
#category ⇒ String
Required.
-
#consent_default_values ⇒ Array<String>
Default values of the attribute in consents.
-
#data_mapping_default_value ⇒ String
Default value of the attribute in user data mappings.
-
#description ⇒ String
A description of the attribute.
-
#name ⇒ String
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``.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AttributeDefinition
constructor
A new instance of AttributeDefinition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AttributeDefinition
Returns a new instance of AttributeDefinition.
351 352 353 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 351 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_values ⇒ Array<String>
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
318 319 320 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 318 def allowed_values @allowed_values end |
#category ⇒ String
Required. The category of the attribute. The value of this field cannot be
changed after creation.
Corresponds to the JSON property category
324 325 326 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 324 def category @category end |
#consent_default_values ⇒ Array<String>
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
330 331 332 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 330 def @consent_default_values end |
#data_mapping_default_value ⇒ String
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
337 338 339 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 337 def data_mapping_default_value @data_mapping_default_value end |
#description ⇒ String
A description of the attribute.
Corresponds to the JSON property description
342 343 344 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 342 def description @description end |
#name ⇒ String
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`.
Corresponds to the JSON property
name`
349 350 351 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 349 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
356 357 358 359 360 361 362 363 |
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 356 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 |