Class: Api::V2::PooledPlateCreationResource
- Inherits:
-
BaseResource
- Object
- JSONAPI::Resource
- BaseResource
- Api::V2::PooledPlateCreationResource
- Defined in:
- app/resources/api/v2/pooled_plate_creation_resource.rb
Overview
Access this resource via the /api/v2/pooled_plate_creation/
endpoint.
This resource cannot be modified after creation: its endpoint will not accept PATCH
requests.
Provides a JSON:API representation of PooledPlateCreation.
This resource represents the creation of a pooled plate from one or more parent plates.
For more information about JSON:API, see the JSON:API Specifications or the JSONAPI::Resources package for Sequencescape's implementation of the JSON:API standard.
Instance Attribute Summary collapse
-
#child ⇒ PlateResource
readonly
The plate that was created from the pooling process.
-
#child_purpose_uuid ⇒ Void
writeonly
The UUID of the child purpose, which determines the type of plate being created.
-
#parent_uuids ⇒ Void
writeonly
deprecated
Deprecated.
Use the
parents
relationship instead. -
#parents ⇒ Array<LabwareResource>
The labware used as the source for the pooled plate.
-
#user ⇒ UserResource
The user who initiated the pooled plate creation.
-
#user_uuid ⇒ Object
writeonly
Getters and Setters.
-
#uuid ⇒ String
readonly
This uniquely identifies the pooled plate creation event.
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
#child ⇒ PlateResource (readonly)
The plate that was created from the pooling process.
116 |
# File 'app/resources/api/v2/pooled_plate_creation_resource.rb', line 116 has_one :child, class_name: 'Plate', readonly: true |
#child_purpose_uuid=(value) ⇒ Void (writeonly)
deprecate this attribute in favour of the child_purpose
relationship.
The UUID of the child purpose, which determines the type of plate being created.
66 |
# File 'app/resources/api/v2/pooled_plate_creation_resource.rb', line 66 attribute :child_purpose_uuid, writeonly: true |
#parent_uuids=(value) ⇒ Void (writeonly)
Use the parents
relationship instead.
This is declared for convenience where parents are not available to set as a relationship. This attribute is optional if the parents
relationship is explicitly set. If both parent_uuids
and parents
are provided, parents
takes precedence.
76 |
# File 'app/resources/api/v2/pooled_plate_creation_resource.rb', line 76 attribute :parent_uuids, writeonly: true |
#parents ⇒ Array<LabwareResource>
The labware used as the source for the pooled plate. If both parent_uuids
and parents
are provided, parents
takes precedence.
122 |
# File 'app/resources/api/v2/pooled_plate_creation_resource.rb', line 122 has_many :parents, class_name: 'Labware' |
#user ⇒ UserResource
The user who initiated the pooled plate creation. If both user_uuid
and user
are provided, user
takes precedence.
128 |
# File 'app/resources/api/v2/pooled_plate_creation_resource.rb', line 128 has_one :user |
#user_uuid=(value) ⇒ Object (writeonly)
Getters and Setters
86 |
# File 'app/resources/api/v2/pooled_plate_creation_resource.rb', line 86 attribute :user_uuid, writeonly: true |
#uuid ⇒ String (readonly)
This identifier is automatically assigned upon creation and cannot be modified.
Returns This uniquely identifies the pooled plate creation event.
91 |
# File 'app/resources/api/v2/pooled_plate_creation_resource.rb', line 91 attribute :uuid, readonly: true |