.. raw:: html Certification Project Artifact ============================== .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Contains the logs from the preflight test results from operator pipelines project .. tab-set:: .. tab-item:: Fields .. div:: :name: ``content`` ``content`` | :doc:`/scalars/Base64EncodedString` :bdg-danger:`required` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Base64 encoded the cert project artifact content. .. div:: :name: ``content_type`` ``content_type`` | String :bdg-danger:`required` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted The content type associated with the content type. .. div:: :name: ``filename`` ``filename`` | String :bdg-danger:`required` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted The file name associated with the content test results. .. div:: :name: ``file_size`` ``file_size`` | :doc:`/scalars/Int64` :bdg-danger:`required` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted File size in bytes. .. div:: :name: ``cert_project`` ``cert_project`` | :doc:`/scalars/ObjectID` :bdg-primary-line:`read-only` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Cert Project Identifier. .. div:: :name: ``version`` ``version`` | String .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Content version. .. div:: :name: ``operator_package_name`` ``operator_package_name`` | String .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted The operator package name of the cert project artifact. .. div:: :name: ``certification_hash`` ``certification_hash`` | String .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted The cert project hashed content. .. div:: :name: ``image_id`` ``image_id`` | :doc:`/scalars/ObjectID` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Identifier of container image collection. .. div:: :name: ``pull_request_url`` ``pull_request_url`` | :doc:`/scalars/URI` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted URL to the Github pull request associated with with cert project. .. 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: ``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. .. 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. .. tab-item:: Links .. div:: :name: ``cert_project`` ``cert_project`` | :doc:`/endpoints/RESTGetCertProjectById` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted URI to this certification project. .. div:: :name: ``container_image`` ``container_image`` | :doc:`/endpoints/RESTGetImage` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted URI to the container image being tagged. .. tab-item:: Indexes .. div:: :name: ``cert_project_1_filename_1_org_id_1`` ``cert_project_1_filename_1_org_id_1`` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Fields - ``cert_project: ASC`` - ``filename: ASC`` - ``org_id: ASC`` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Description | Index for certProjectArtifacts based on the cert_project, filename and org_id fields | .. div:: :name: ``image_id_1`` ``image_id_1`` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Fields - ``image_id: ASC`` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Description | Index for certProjectArtifact based on the image_id field | .. tab-item:: Edges .. div:: :name: ``edges.cert_project`` ``edges.cert_project`` | :doc:`CertificationProject` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Edge to related certification project. .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Parent arguments: ['cert_project'] .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Uses GQL query: get_certification_project .. dropdown:: Example queries :animate: fade-in .. raw:: html
                {
                    get_cert_project_artifact(id: "6304c560cbb2b2d2d4053b8e") {
                        error {
                            detail
                            status
                        }
                        data {
                            _id
                            edges {
                                cert_project {
                                    error {
                                        status
                                        detail
                                    }
                                    data {
                                        _id
                                    }
                                }
                            }
                        }
                    }
                }
                
                {
                    get_cert_project_artifacts(id: "6304c560cbb2b2d2d4053b8e", sort_by: [{ field: "creation_date", order: DESC }], page: 0, page_size: 50) {
                        error {
                            detail
                            status
                        }
                        total # omit for better performance
                        page_size
                        page
                        data {
                            _id
                            edges {
                                cert_project {
                                    error {
                                        status
                                        detail
                                    }
                                    data {
                                        _id
                                    }
                                }
                            }
                        }
                    }
                }
                
                {
                    get_certification_artifacts_by_image_id(id: "6304c560cbb2b2d2d4053b8e", sort_by: [{ field: "creation_date", order: DESC }], page: 0, page_size: 50) {
                        error {
                            detail
                            status
                        }
                        total # omit for better performance
                        page_size
                        page
                        data {
                            _id
                            edges {
                                cert_project {
                                    error {
                                        status
                                        detail
                                    }
                                    data {
                                        _id
                                    }
                                }
                            }
                        }
                    }
                }
                
.. div:: :name: ``edges.container_image`` ``edges.container_image`` | :doc:`ContainerImage` .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Edge to related container image. .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Parent arguments: ['image_id'] .. div:: sd-font-weight-light sd-fs-6 sd-font-italic sd-text-muted Uses GQL query: get_image .. dropdown:: Example queries :animate: fade-in .. raw:: html
                {
                    get_cert_project_artifact(id: "6304c560cbb2b2d2d4053b8e") {
                        error {
                            detail
                            status
                        }
                        data {
                            _id
                            edges {
                                container_image {
                                    error {
                                        status
                                        detail
                                    }
                                    data {
                                        _id
                                    }
                                }
                            }
                        }
                    }
                }
                
                {
                    get_cert_project_artifacts(id: "6304c560cbb2b2d2d4053b8e", sort_by: [{ field: "creation_date", order: DESC }], page: 0, page_size: 50) {
                        error {
                            detail
                            status
                        }
                        total # omit for better performance
                        page_size
                        page
                        data {
                            _id
                            edges {
                                container_image {
                                    error {
                                        status
                                        detail
                                    }
                                    data {
                                        _id
                                    }
                                }
                            }
                        }
                    }
                }
                
                {
                    get_certification_artifacts_by_image_id(id: "6304c560cbb2b2d2d4053b8e", sort_by: [{ field: "creation_date", order: DESC }], page: 0, page_size: 50) {
                        error {
                            detail
                            status
                        }
                        total # omit for better performance
                        page_size
                        page
                        data {
                            _id
                            edges {
                                container_image {
                                    error {
                                        status
                                        detail
                                    }
                                    data {
                                        _id
                                    }
                                }
                            }
                        }
                    }
                }
                
.. tab-item:: Usage .. dropdown:: Endpoints :animate: fade-in - :doc:`GET - /projects/certification/artifacts/id/{identifier} ` - :doc:`GET - /projects/certification/id/{identifier}/artifacts ` - :doc:`GET - /images/id/{identifier}/artifacts ` - :doc:`POST - /projects/certification/id/{identifier}/artifacts ` .. dropdown:: Queries and Mutations :animate: fade-in - :doc:`get_cert_project_artifact ` - :doc:`get_cert_project_artifacts ` - :doc:`get_certification_artifacts_by_image_id ` - :doc:`create_certification_project_artifact `