Welcome to mirror list, hosted at ThFree Co, Russian Federation.

x509_certificate_type.rb « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 806aa441af707315b3232b756f53507937078f99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# frozen_string_literal: true

# rubocop:disable Graphql/AuthorizeTypes

module Types
  class X509CertificateType < Types::BaseObject
    graphql_name 'X509Certificate'
    description 'Represents an X.509 certificate.'

    field :certificate_status, GraphQL::Types::String,
                               null: false,
                               description: 'Indicates if the certificate is good or revoked.'

    field :created_at, Types::TimeType, null: false,
                                        description: 'Timestamp of when the certificate was saved.'

    field :email, GraphQL::Types::String, null: false,
                                          description: 'Email associated with the cerificate.'

    field :id, GraphQL::Types::ID, null: false, description: 'ID of the certificate.'

    field :serial_number, GraphQL::Types::String, null: false,
                                                  description: 'Serial number of the certificate.'

    field :subject, GraphQL::Types::String, null: false, description: 'Subject of the certificate.'

    field :subject_key_identifier, GraphQL::Types::String,
                                   null: false,
                                   description: 'Subject key identifier of the certificate.'

    field :updated_at, Types::TimeType, null: false,
                                        description: 'Timestamp of when the certificate was last updated.'

    field :x509_issuer, Types::X509IssuerType, null: false,
                                               description: 'Issuer of the certificate.'
  end
end

# rubocop:enable Graphql/AuthorizeTypes