-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql -- https://github.com/dillonkearns/elm-graphql module Github.Object.OrganizationIdentityProvider exposing (ExternalIdentitiesOptionalArguments, digestMethod, externalIdentities, id, idpCertificate, issuer, organization, signatureMethod, ssoUrl) import Github.InputObject import Github.Interface import Github.Object import Github.Scalar import Github.ScalarCodecs import Github.Union import Graphql.Internal.Builder.Argument as Argument exposing (Argument) import Graphql.Internal.Builder.Object as Object import Graphql.Internal.Encode as Encode exposing (Value) import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) import Graphql.OptionalArgument exposing (OptionalArgument(..)) import Graphql.SelectionSet exposing (SelectionSet) import Json.Decode as Decode {-| The digest algorithm used to sign SAML requests for the Identity Provider. -} digestMethod : SelectionSet (Maybe Github.ScalarCodecs.Uri) Github.Object.OrganizationIdentityProvider digestMethod = Object.selectionForField "(Maybe ScalarCodecs.Uri)" "digestMethod" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecUri |> .decoder |> Decode.nullable) type alias ExternalIdentitiesOptionalArguments = { first : OptionalArgument Int , after : OptionalArgument String , last : OptionalArgument Int , before : OptionalArgument String } {-| External Identities provisioned by this Identity Provider - first - Returns the first _n_ elements from the list. - after - Returns the elements in the list that come after the specified global ID. - last - Returns the last _n_ elements from the list. - before - Returns the elements in the list that come before the specified global ID. -} externalIdentities : (ExternalIdentitiesOptionalArguments -> ExternalIdentitiesOptionalArguments) -> SelectionSet decodesTo Github.Object.ExternalIdentityConnection -> SelectionSet decodesTo Github.Object.OrganizationIdentityProvider externalIdentities fillInOptionals object_ = let filledInOptionals = fillInOptionals { first = Absent, after = Absent, last = Absent, before = Absent } optionalArgs = [ Argument.optional "first" filledInOptionals.first Encode.int, Argument.optional "after" filledInOptionals.after Encode.string, Argument.optional "last" filledInOptionals.last Encode.int, Argument.optional "before" filledInOptionals.before Encode.string ] |> List.filterMap identity in Object.selectionForCompositeField "externalIdentities" optionalArgs object_ identity id : SelectionSet Github.ScalarCodecs.Id Github.Object.OrganizationIdentityProvider id = Object.selectionForField "ScalarCodecs.Id" "id" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecId |> .decoder) {-| The x509 certificate used by the Identity Provder to sign assertions and responses. -} idpCertificate : SelectionSet (Maybe Github.ScalarCodecs.X509Certificate) Github.Object.OrganizationIdentityProvider idpCertificate = Object.selectionForField "(Maybe ScalarCodecs.X509Certificate)" "idpCertificate" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecX509Certificate |> .decoder |> Decode.nullable) {-| The Issuer Entity ID for the SAML Identity Provider -} issuer : SelectionSet (Maybe String) Github.Object.OrganizationIdentityProvider issuer = Object.selectionForField "(Maybe String)" "issuer" [] (Decode.string |> Decode.nullable) {-| Organization this Identity Provider belongs to -} organization : SelectionSet decodesTo Github.Object.Organization -> SelectionSet (Maybe decodesTo) Github.Object.OrganizationIdentityProvider organization object_ = Object.selectionForCompositeField "organization" [] object_ (identity >> Decode.nullable) {-| The signature algorithm used to sign SAML requests for the Identity Provider. -} signatureMethod : SelectionSet (Maybe Github.ScalarCodecs.Uri) Github.Object.OrganizationIdentityProvider signatureMethod = Object.selectionForField "(Maybe ScalarCodecs.Uri)" "signatureMethod" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecUri |> .decoder |> Decode.nullable) {-| The URL endpoint for the Identity Provider's SAML SSO. -} ssoUrl : SelectionSet (Maybe Github.ScalarCodecs.Uri) Github.Object.OrganizationIdentityProvider ssoUrl = Object.selectionForField "(Maybe ScalarCodecs.Uri)" "ssoUrl" [] (Github.ScalarCodecs.codecs |> Github.Scalar.unwrapCodecs |> .codecUri |> .decoder |> Decode.nullable)