Class: Api::V2::TagLayoutResource
- Inherits:
-
BaseResource
- Object
- JSONAPI::Resource
- BaseResource
- Api::V2::TagLayoutResource
- Defined in:
- app/resources/api/v2/tag_layout_resource.rb
Overview
This documentation does not yet include a detailed description of what this resource represents.
This documentation does not yet include detailed descriptions for relationships, attributes and filters.
This documentation does not yet include any example usage of the API via cURL or similar.
This resource cannot be modified after creation: its endpoint will not accept PATCH
requests.
Access this resource via the /api/v2/tag_layouts/
endpoint.
Provides a JSON:API representation of TagLayout.
For more information about JSON:API see the JSON:API Specifications or look at the JSONAPI::Resources package for Sequencescape’s implementation of the JSON:API standard.
Instance Attribute Summary collapse
-
#direction ⇒ String
The name of the algorithm defining the direction of the tag layout.
-
#enforce_uniqueness ⇒ Object
writeonly
A flag indicating whether to set
enforce_uniqueness
on TagLayout::TemplateSubmissions when a template is used to create the TagLayout. -
#initial_tag ⇒ Integer
An offset for the tag set indicating which tag to start with in the layout.
-
#plate ⇒ Api::V2::PlateResource
Setting this relationship alongside the
plate_uuid
attribute will override the attribute value. -
#plate_uuid ⇒ Void
writeonly
deprecated
Deprecated.
Use the
plate
relationship instead. -
#substitutions ⇒ Hash
A hash of substitutions to be applied to the tag layout.
-
#tag2_group ⇒ Api::V2::TagGroupResource
Setting this relationship alongside the
tag2_group_uuid
attribute will override the attribute value. -
#tag2_group_uuid ⇒ Void
writeonly
deprecated
Deprecated.
Use the
tag2_group
relationship instead. -
#tag_group ⇒ Api::V2::TagGroupResource
Setting this relationship alongside the
tag_group_uuid
attribute will override the attribute value. -
#tag_group_uuid ⇒ Void
writeonly
deprecated
Deprecated.
Use the
tag_group
relationship instead. - #tag_layout_template_uuid ⇒ Object writeonly
-
#tags_per_well ⇒ Integer
The number of tags in each well.
-
#user ⇒ Api::V2::UserResource
Setting this relationship alongside the
user_uuid
attribute will override the attribute value. -
#user_uuid ⇒ Void
writeonly
deprecated
Deprecated.
Use the
user
relationship instead. -
#uuid ⇒ String
readonly
The UUID of the state change.
-
#walking_by ⇒ String
The name of the algorithm defining the way of walking through the tag layout.
Method Summary
Methods inherited from BaseResource
apply_includes, creatable_fields, default_includes, #fetchable_fields, inclusions, resolve_relationship_names_to_relations, updatable_fields
Instance Attribute Details
#direction ⇒ String
This attribute is required.
The name of the algorithm defining the direction of the tag layout.
26 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 26 attribute :direction |
#enforce_uniqueness=(value) ⇒ Object (writeonly)
A flag indicating whether to set enforce_uniqueness
on TagLayout::TemplateSubmissions when a template is used to create the TagLayout.
32 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 32 attribute :enforce_uniqueness, writeonly: true |
#initial_tag ⇒ Integer
An offset for the tag set indicating which tag to start with in the layout.
42 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 42 attribute :initial_tag |
#plate ⇒ Api::V2::PlateResource
This relationship is required.
Setting this relationship alongside the plate_uuid
attribute will override the attribute value.
147 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 147 has_one :plate |
#plate_uuid=(value) ⇒ Void (writeonly)
Use the plate
relationship instead.
This is declared for convenience where the Plate is not available to set as a relationship. Setting this attribute alongside the plate
relationship will prefer the relationship value.
51 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 51 attribute :plate_uuid, writeonly: true |
#substitutions ⇒ Hash
A hash of substitutions to be applied to the tag layout.
60 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 60 attribute :substitutions |
#tag2_group ⇒ Api::V2::TagGroupResource
Setting this relationship alongside the tag2_group_uuid
attribute will override the attribute value. A relationship for the secondary tag group associated with the tag layout template. This is used during dual indexing, but will not be found during single indexing.
161 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 161 has_one :tag2_group, class_name: 'TagGroup' |
#tag2_group_uuid=(value) ⇒ Void (writeonly)
Use the tag2_group
relationship instead.
This is declared for convenience where the second TagGroup is not available to set as a relationship. Setting this attribute alongside the tag2_group
relationship will prefer the relationship value.
91 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 91 attribute :tag2_group_uuid, writeonly: true |
#tag_group ⇒ Api::V2::TagGroupResource
This relationship is required.
Setting this relationship alongside the tag_group_uuid
attribute will override the attribute value. A relationship for the primary tag group associated with the tag layout template.
154 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 154 has_one :tag_group |
#tag_group_uuid=(value) ⇒ Void (writeonly)
Use the tag_group
relationship instead.
This is declared for convenience where the TagGroup is not available to set as a relationship. Setting this attribute alongside the tag_group
relationship will prefer the relationship value.
78 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 78 attribute :tag_group_uuid, writeonly: true |
#tag_layout_template_uuid=(value) ⇒ Object (writeonly)
101 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 101 attribute :tag_layout_template_uuid, writeonly: true |
#tags_per_well ⇒ Integer
The number of tags in each well. This is only used and/or returned by specific tag layout #walking_by algorithms. At other times, this value will be nil
.
114 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 114 attribute :tags_per_well |
#user ⇒ Api::V2::UserResource
This relationship is required.
Setting this relationship alongside the user_uuid
attribute will override the attribute value.
167 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 167 has_one :user |
#user_uuid=(value) ⇒ Void (writeonly)
Use the user
relationship instead.
This is declared for convenience where the User is not available to set as a relationship. Setting this attribute alongside the user
relationship will prefer the relationship value.
123 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 123 attribute :user_uuid, writeonly: true |
#uuid ⇒ String (readonly)
Returns The UUID of the state change.
131 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 131 attribute :uuid, readonly: true |
#walking_by ⇒ String
This attribute is required.
The name of the algorithm defining the way of walking through the tag layout.
137 |
# File 'app/resources/api/v2/tag_layout_resource.rb', line 137 attribute :walking_by |