.. raw:: html
Product Validation
==================
.. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted
Product Validation stores data related to partner validation of their product. Lists affinity to Red Hat products and its versions the product claims to support.
.. tab-set::
.. tab-item:: Fields
.. div::
:name: ``product_listing``
``product_listing`` | :doc:`/scalars/ObjectID` :bdg-danger:`required`
.. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted
Product Listing Identifier.
.. div::
:name: ``redhat_affinity``
``redhat_affinity`` | List[:doc:`/objects/RedHatProductAffinity`] :bdg-danger:`required`
.. dropdown:: List parameters
:animate: fade-in
``min_items`` | 1
.. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted
List of Red Hat products and its versions partner product claims to support.
.. div::
:name: ``product_listing_published``
``product_listing_published`` | :doc:`/scalars/Boolean` :bdg-primary-line:`read-only`
.. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted
Indicates if the linked Product Listing is published and is used to control external access to Product Validations. Field is populated from Product Listing `published` field on create/update and updated on Product Listing change.
.. div::
:name: ``partner_validated``
``partner_validated`` | :doc:`/scalars/Boolean` :bdg-primary-line:`read-only`
.. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted
Indicates if the linked Product Listing is eligible to be featured in the Catalog as partner validated. Is set by Red Hat SME.
.. div::
:name: ``_id``
``_id`` | :doc:`/scalars/ObjectID` :bdg-primary-line:`read-only`
.. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted
MongoDB unique _id
.. div::
:name: ``org_id``
``org_id`` | Integer :bdg-primary-line:`read-only`
.. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted
Red Hat Org ID / account_id from Red Hat SSO. Also corresponds to company_org_id in Red Hat Connect.
.. div::
:name: ``creation_date``
``creation_date`` | :doc:`/scalars/DateTime` :bdg-primary-line:`read-only`
.. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted
The date when the entry was created. Value is created automatically on creation.
.. div::
:name: ``last_update_date``
``last_update_date`` | :doc:`/scalars/DateTime` :bdg-primary-line:`read-only`
.. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted
The date when the entry was last updated.
.. tab-item:: Indexes
.. div::
:name: ``productValidation_org_id``
``productValidation_org_id``
.. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted
Fields
- ``org_id: ASC``
.. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted
Description
| This index is used to find product validation by org id.
|
.. div::
:name: ``productValidation_product_listing``
``productValidation_product_listing``
.. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted
Fields
- ``product_listing: ASC``
.. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted
Description
| This index is used to find product validation by product listing id.
|
.. div::
:name: ``productValidation_partner_validated_product_listing_published``
``productValidation_partner_validated_product_listing_published``
.. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted
Fields
- ``partner_validated: DESC``
- ``product_listing_published: DESC``
.. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted
Description
| This index is used to moderate read access to the collection and is used in all external queries
|
.. tab-item:: Usage
.. dropdown:: Endpoints
:animate: fade-in
- :doc:`POST - /product-validations `
- :doc:`PATCH - /product-validations/id/{identifier} `
- :doc:`PUT - /product-validations/id/{identifier} `
- :doc:`GET - /product-validations `
- :doc:`GET - /product-validations/id/{identifier} `
- :doc:`GET - /product-listings/id/{identifier}/product-validations `
.. dropdown:: Queries and Mutations
:animate: fade-in
- :doc:`get_product_validation `
- :doc:`find_product_validations `
- :doc:`find_product_validations_by_product_listing_id `
- :doc:`create_product_validation `
- :doc:`update_product_validation `
- :doc:`replace_product_validation `