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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/x509_issuer_type.rb')
-rw-r--r--app/graphql/types/x509_issuer_type.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/app/graphql/types/x509_issuer_type.rb b/app/graphql/types/x509_issuer_type.rb
new file mode 100644
index 00000000000..a5759e48ee0
--- /dev/null
+++ b/app/graphql/types/x509_issuer_type.rb
@@ -0,0 +1,29 @@
+# frozen_string_literal: true
+
+# rubocop:disable Graphql/AuthorizeTypes
+
+module Types
+ class X509IssuerType < Types::BaseObject
+ graphql_name 'X509Issuer'
+ description 'Issuer of an X.509 certificate.'
+
+ field :created_at, Types::TimeType, null: true,
+ description: 'Timestamp of when the issuer was created.'
+
+ field :crl_url, GraphQL::Types::String, null: true,
+ description: 'Certificate revokation list of the issuer.'
+
+ field :id, GraphQL::Types::ID, null: true, description: 'ID of the issuer.'
+
+ field :subject, GraphQL::Types::String, null: true, description: 'Subject of the issuer.'
+
+ field :subject_key_identifier, GraphQL::Types::String,
+ null: true,
+ description: 'Subject key identifier of the issuer.'
+
+ field :updated_at, Types::TimeType, null: true,
+ description: 'Timestamp of when the issuer was last updated.'
+ end
+end
+
+# rubocop:enable Graphql/AuthorizeTypes