Class: Types::Ci::PipelineBaseField

Inherits:
BaseField
  • Object
show all
Defined in:
app/graphql/types/ci/pipeline_base_field.rb

Overview

rubocop: disable GraphQL/GraphqlName – Not a type rubocop: disable Graphql/AuthorizeTypes – Not a type

Constant Summary

Constants inherited from BaseField

BaseField::DEFAULT_COMPLEXITY

Constants included from Gitlab::Graphql::Authorize::AuthorizeResource

Gitlab::Graphql::Authorize::AuthorizeResource::ConfigurationError, Gitlab::Graphql::Authorize::AuthorizeResource::RESOURCE_ACCESS_ERROR

Instance Attribute Summary

Attributes inherited from BaseField

#doc_reference, #skip_type_authorization

Instance Method Summary collapse

Methods inherited from BaseField

#authorized?, #base_complexity, #calls_gitaly?, #complexity_for, #constant_complexity?, #may_call_gitaly?, #requires_argument?

Methods included from Gitlab::Graphql::Authorize::AuthorizeResource

#authorize!, #authorized_find!, #authorized_resource?, #find_object, #raise_resource_not_available_error!

Methods included from Gitlab::Graphql::Deprecations

#visible?

Constructor Details

#initialize(**kwargs, &block) ⇒ PipelineBaseField

Returns a new instance of PipelineBaseField.



8
9
10
11
12
# File 'app/graphql/types/ci/pipeline_base_field.rb', line 8

def initialize(**kwargs, &block)
  kwargs[:authorize] = :read_pipeline

  super
end