{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.CodeArtifact.Types.PackageVersionDescription where
import Amazonka.CodeArtifact.Types.LicenseInfo
import Amazonka.CodeArtifact.Types.PackageFormat
import Amazonka.CodeArtifact.Types.PackageVersionStatus
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data PackageVersionDescription = PackageVersionDescription'
{
PackageVersionDescription -> Maybe Text
summary :: Prelude.Maybe Prelude.Text,
PackageVersionDescription -> Maybe Text
homePage :: Prelude.Maybe Prelude.Text,
PackageVersionDescription -> Maybe PackageVersionStatus
status :: Prelude.Maybe PackageVersionStatus,
PackageVersionDescription -> Maybe Text
sourceCodeRepository :: Prelude.Maybe Prelude.Text,
PackageVersionDescription -> Maybe Text
packageName :: Prelude.Maybe Prelude.Text,
PackageVersionDescription -> Maybe POSIX
publishedTime :: Prelude.Maybe Core.POSIX,
PackageVersionDescription -> Maybe PackageFormat
format :: Prelude.Maybe PackageFormat,
PackageVersionDescription -> Maybe Text
namespace :: Prelude.Maybe Prelude.Text,
PackageVersionDescription -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
PackageVersionDescription -> Maybe Text
displayName :: Prelude.Maybe Prelude.Text,
PackageVersionDescription -> Maybe [LicenseInfo]
licenses :: Prelude.Maybe [LicenseInfo],
PackageVersionDescription -> Maybe Text
revision :: Prelude.Maybe Prelude.Text
}
deriving (PackageVersionDescription -> PackageVersionDescription -> Bool
(PackageVersionDescription -> PackageVersionDescription -> Bool)
-> (PackageVersionDescription -> PackageVersionDescription -> Bool)
-> Eq PackageVersionDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PackageVersionDescription -> PackageVersionDescription -> Bool
$c/= :: PackageVersionDescription -> PackageVersionDescription -> Bool
== :: PackageVersionDescription -> PackageVersionDescription -> Bool
$c== :: PackageVersionDescription -> PackageVersionDescription -> Bool
Prelude.Eq, ReadPrec [PackageVersionDescription]
ReadPrec PackageVersionDescription
Int -> ReadS PackageVersionDescription
ReadS [PackageVersionDescription]
(Int -> ReadS PackageVersionDescription)
-> ReadS [PackageVersionDescription]
-> ReadPrec PackageVersionDescription
-> ReadPrec [PackageVersionDescription]
-> Read PackageVersionDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PackageVersionDescription]
$creadListPrec :: ReadPrec [PackageVersionDescription]
readPrec :: ReadPrec PackageVersionDescription
$creadPrec :: ReadPrec PackageVersionDescription
readList :: ReadS [PackageVersionDescription]
$creadList :: ReadS [PackageVersionDescription]
readsPrec :: Int -> ReadS PackageVersionDescription
$creadsPrec :: Int -> ReadS PackageVersionDescription
Prelude.Read, Int -> PackageVersionDescription -> ShowS
[PackageVersionDescription] -> ShowS
PackageVersionDescription -> String
(Int -> PackageVersionDescription -> ShowS)
-> (PackageVersionDescription -> String)
-> ([PackageVersionDescription] -> ShowS)
-> Show PackageVersionDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PackageVersionDescription] -> ShowS
$cshowList :: [PackageVersionDescription] -> ShowS
show :: PackageVersionDescription -> String
$cshow :: PackageVersionDescription -> String
showsPrec :: Int -> PackageVersionDescription -> ShowS
$cshowsPrec :: Int -> PackageVersionDescription -> ShowS
Prelude.Show, (forall x.
PackageVersionDescription -> Rep PackageVersionDescription x)
-> (forall x.
Rep PackageVersionDescription x -> PackageVersionDescription)
-> Generic PackageVersionDescription
forall x.
Rep PackageVersionDescription x -> PackageVersionDescription
forall x.
PackageVersionDescription -> Rep PackageVersionDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PackageVersionDescription x -> PackageVersionDescription
$cfrom :: forall x.
PackageVersionDescription -> Rep PackageVersionDescription x
Prelude.Generic)
newPackageVersionDescription ::
PackageVersionDescription
newPackageVersionDescription :: PackageVersionDescription
newPackageVersionDescription =
PackageVersionDescription' :: Maybe Text
-> Maybe Text
-> Maybe PackageVersionStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe PackageFormat
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription
PackageVersionDescription'
{ $sel:summary:PackageVersionDescription' :: Maybe Text
summary =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:homePage:PackageVersionDescription' :: Maybe Text
homePage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:PackageVersionDescription' :: Maybe PackageVersionStatus
status = Maybe PackageVersionStatus
forall a. Maybe a
Prelude.Nothing,
$sel:sourceCodeRepository:PackageVersionDescription' :: Maybe Text
sourceCodeRepository = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:packageName:PackageVersionDescription' :: Maybe Text
packageName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:publishedTime:PackageVersionDescription' :: Maybe POSIX
publishedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:format:PackageVersionDescription' :: Maybe PackageFormat
format = Maybe PackageFormat
forall a. Maybe a
Prelude.Nothing,
$sel:namespace:PackageVersionDescription' :: Maybe Text
namespace = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:PackageVersionDescription' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:displayName:PackageVersionDescription' :: Maybe Text
displayName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:licenses:PackageVersionDescription' :: Maybe [LicenseInfo]
licenses = Maybe [LicenseInfo]
forall a. Maybe a
Prelude.Nothing,
$sel:revision:PackageVersionDescription' :: Maybe Text
revision = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
packageVersionDescription_summary :: Lens.Lens' PackageVersionDescription (Prelude.Maybe Prelude.Text)
packageVersionDescription_summary :: (Maybe Text -> f (Maybe Text))
-> PackageVersionDescription -> f PackageVersionDescription
packageVersionDescription_summary = (PackageVersionDescription -> Maybe Text)
-> (PackageVersionDescription
-> Maybe Text -> PackageVersionDescription)
-> Lens
PackageVersionDescription
PackageVersionDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PackageVersionDescription' {Maybe Text
summary :: Maybe Text
$sel:summary:PackageVersionDescription' :: PackageVersionDescription -> Maybe Text
summary} -> Maybe Text
summary) (\s :: PackageVersionDescription
s@PackageVersionDescription' {} Maybe Text
a -> PackageVersionDescription
s {$sel:summary:PackageVersionDescription' :: Maybe Text
summary = Maybe Text
a} :: PackageVersionDescription)
packageVersionDescription_homePage :: Lens.Lens' PackageVersionDescription (Prelude.Maybe Prelude.Text)
packageVersionDescription_homePage :: (Maybe Text -> f (Maybe Text))
-> PackageVersionDescription -> f PackageVersionDescription
packageVersionDescription_homePage = (PackageVersionDescription -> Maybe Text)
-> (PackageVersionDescription
-> Maybe Text -> PackageVersionDescription)
-> Lens
PackageVersionDescription
PackageVersionDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PackageVersionDescription' {Maybe Text
homePage :: Maybe Text
$sel:homePage:PackageVersionDescription' :: PackageVersionDescription -> Maybe Text
homePage} -> Maybe Text
homePage) (\s :: PackageVersionDescription
s@PackageVersionDescription' {} Maybe Text
a -> PackageVersionDescription
s {$sel:homePage:PackageVersionDescription' :: Maybe Text
homePage = Maybe Text
a} :: PackageVersionDescription)
packageVersionDescription_status :: Lens.Lens' PackageVersionDescription (Prelude.Maybe PackageVersionStatus)
packageVersionDescription_status :: (Maybe PackageVersionStatus -> f (Maybe PackageVersionStatus))
-> PackageVersionDescription -> f PackageVersionDescription
packageVersionDescription_status = (PackageVersionDescription -> Maybe PackageVersionStatus)
-> (PackageVersionDescription
-> Maybe PackageVersionStatus -> PackageVersionDescription)
-> Lens
PackageVersionDescription
PackageVersionDescription
(Maybe PackageVersionStatus)
(Maybe PackageVersionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PackageVersionDescription' {Maybe PackageVersionStatus
status :: Maybe PackageVersionStatus
$sel:status:PackageVersionDescription' :: PackageVersionDescription -> Maybe PackageVersionStatus
status} -> Maybe PackageVersionStatus
status) (\s :: PackageVersionDescription
s@PackageVersionDescription' {} Maybe PackageVersionStatus
a -> PackageVersionDescription
s {$sel:status:PackageVersionDescription' :: Maybe PackageVersionStatus
status = Maybe PackageVersionStatus
a} :: PackageVersionDescription)
packageVersionDescription_sourceCodeRepository :: Lens.Lens' PackageVersionDescription (Prelude.Maybe Prelude.Text)
packageVersionDescription_sourceCodeRepository :: (Maybe Text -> f (Maybe Text))
-> PackageVersionDescription -> f PackageVersionDescription
packageVersionDescription_sourceCodeRepository = (PackageVersionDescription -> Maybe Text)
-> (PackageVersionDescription
-> Maybe Text -> PackageVersionDescription)
-> Lens
PackageVersionDescription
PackageVersionDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PackageVersionDescription' {Maybe Text
sourceCodeRepository :: Maybe Text
$sel:sourceCodeRepository:PackageVersionDescription' :: PackageVersionDescription -> Maybe Text
sourceCodeRepository} -> Maybe Text
sourceCodeRepository) (\s :: PackageVersionDescription
s@PackageVersionDescription' {} Maybe Text
a -> PackageVersionDescription
s {$sel:sourceCodeRepository:PackageVersionDescription' :: Maybe Text
sourceCodeRepository = Maybe Text
a} :: PackageVersionDescription)
packageVersionDescription_packageName :: Lens.Lens' PackageVersionDescription (Prelude.Maybe Prelude.Text)
packageVersionDescription_packageName :: (Maybe Text -> f (Maybe Text))
-> PackageVersionDescription -> f PackageVersionDescription
packageVersionDescription_packageName = (PackageVersionDescription -> Maybe Text)
-> (PackageVersionDescription
-> Maybe Text -> PackageVersionDescription)
-> Lens
PackageVersionDescription
PackageVersionDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PackageVersionDescription' {Maybe Text
packageName :: Maybe Text
$sel:packageName:PackageVersionDescription' :: PackageVersionDescription -> Maybe Text
packageName} -> Maybe Text
packageName) (\s :: PackageVersionDescription
s@PackageVersionDescription' {} Maybe Text
a -> PackageVersionDescription
s {$sel:packageName:PackageVersionDescription' :: Maybe Text
packageName = Maybe Text
a} :: PackageVersionDescription)
packageVersionDescription_publishedTime :: Lens.Lens' PackageVersionDescription (Prelude.Maybe Prelude.UTCTime)
packageVersionDescription_publishedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PackageVersionDescription -> f PackageVersionDescription
packageVersionDescription_publishedTime = (PackageVersionDescription -> Maybe POSIX)
-> (PackageVersionDescription
-> Maybe POSIX -> PackageVersionDescription)
-> Lens
PackageVersionDescription
PackageVersionDescription
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PackageVersionDescription' {Maybe POSIX
publishedTime :: Maybe POSIX
$sel:publishedTime:PackageVersionDescription' :: PackageVersionDescription -> Maybe POSIX
publishedTime} -> Maybe POSIX
publishedTime) (\s :: PackageVersionDescription
s@PackageVersionDescription' {} Maybe POSIX
a -> PackageVersionDescription
s {$sel:publishedTime:PackageVersionDescription' :: Maybe POSIX
publishedTime = Maybe POSIX
a} :: PackageVersionDescription) ((Maybe POSIX -> f (Maybe POSIX))
-> PackageVersionDescription -> f PackageVersionDescription)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PackageVersionDescription
-> f PackageVersionDescription
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
packageVersionDescription_format :: Lens.Lens' PackageVersionDescription (Prelude.Maybe PackageFormat)
packageVersionDescription_format :: (Maybe PackageFormat -> f (Maybe PackageFormat))
-> PackageVersionDescription -> f PackageVersionDescription
packageVersionDescription_format = (PackageVersionDescription -> Maybe PackageFormat)
-> (PackageVersionDescription
-> Maybe PackageFormat -> PackageVersionDescription)
-> Lens
PackageVersionDescription
PackageVersionDescription
(Maybe PackageFormat)
(Maybe PackageFormat)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PackageVersionDescription' {Maybe PackageFormat
format :: Maybe PackageFormat
$sel:format:PackageVersionDescription' :: PackageVersionDescription -> Maybe PackageFormat
format} -> Maybe PackageFormat
format) (\s :: PackageVersionDescription
s@PackageVersionDescription' {} Maybe PackageFormat
a -> PackageVersionDescription
s {$sel:format:PackageVersionDescription' :: Maybe PackageFormat
format = Maybe PackageFormat
a} :: PackageVersionDescription)
packageVersionDescription_namespace :: Lens.Lens' PackageVersionDescription (Prelude.Maybe Prelude.Text)
packageVersionDescription_namespace :: (Maybe Text -> f (Maybe Text))
-> PackageVersionDescription -> f PackageVersionDescription
packageVersionDescription_namespace = (PackageVersionDescription -> Maybe Text)
-> (PackageVersionDescription
-> Maybe Text -> PackageVersionDescription)
-> Lens
PackageVersionDescription
PackageVersionDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PackageVersionDescription' {Maybe Text
namespace :: Maybe Text
$sel:namespace:PackageVersionDescription' :: PackageVersionDescription -> Maybe Text
namespace} -> Maybe Text
namespace) (\s :: PackageVersionDescription
s@PackageVersionDescription' {} Maybe Text
a -> PackageVersionDescription
s {$sel:namespace:PackageVersionDescription' :: Maybe Text
namespace = Maybe Text
a} :: PackageVersionDescription)
packageVersionDescription_version :: Lens.Lens' PackageVersionDescription (Prelude.Maybe Prelude.Text)
packageVersionDescription_version :: (Maybe Text -> f (Maybe Text))
-> PackageVersionDescription -> f PackageVersionDescription
packageVersionDescription_version = (PackageVersionDescription -> Maybe Text)
-> (PackageVersionDescription
-> Maybe Text -> PackageVersionDescription)
-> Lens
PackageVersionDescription
PackageVersionDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PackageVersionDescription' {Maybe Text
version :: Maybe Text
$sel:version:PackageVersionDescription' :: PackageVersionDescription -> Maybe Text
version} -> Maybe Text
version) (\s :: PackageVersionDescription
s@PackageVersionDescription' {} Maybe Text
a -> PackageVersionDescription
s {$sel:version:PackageVersionDescription' :: Maybe Text
version = Maybe Text
a} :: PackageVersionDescription)
packageVersionDescription_displayName :: Lens.Lens' PackageVersionDescription (Prelude.Maybe Prelude.Text)
packageVersionDescription_displayName :: (Maybe Text -> f (Maybe Text))
-> PackageVersionDescription -> f PackageVersionDescription
packageVersionDescription_displayName = (PackageVersionDescription -> Maybe Text)
-> (PackageVersionDescription
-> Maybe Text -> PackageVersionDescription)
-> Lens
PackageVersionDescription
PackageVersionDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PackageVersionDescription' {Maybe Text
displayName :: Maybe Text
$sel:displayName:PackageVersionDescription' :: PackageVersionDescription -> Maybe Text
displayName} -> Maybe Text
displayName) (\s :: PackageVersionDescription
s@PackageVersionDescription' {} Maybe Text
a -> PackageVersionDescription
s {$sel:displayName:PackageVersionDescription' :: Maybe Text
displayName = Maybe Text
a} :: PackageVersionDescription)
packageVersionDescription_licenses :: Lens.Lens' PackageVersionDescription (Prelude.Maybe [LicenseInfo])
packageVersionDescription_licenses :: (Maybe [LicenseInfo] -> f (Maybe [LicenseInfo]))
-> PackageVersionDescription -> f PackageVersionDescription
packageVersionDescription_licenses = (PackageVersionDescription -> Maybe [LicenseInfo])
-> (PackageVersionDescription
-> Maybe [LicenseInfo] -> PackageVersionDescription)
-> Lens
PackageVersionDescription
PackageVersionDescription
(Maybe [LicenseInfo])
(Maybe [LicenseInfo])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PackageVersionDescription' {Maybe [LicenseInfo]
licenses :: Maybe [LicenseInfo]
$sel:licenses:PackageVersionDescription' :: PackageVersionDescription -> Maybe [LicenseInfo]
licenses} -> Maybe [LicenseInfo]
licenses) (\s :: PackageVersionDescription
s@PackageVersionDescription' {} Maybe [LicenseInfo]
a -> PackageVersionDescription
s {$sel:licenses:PackageVersionDescription' :: Maybe [LicenseInfo]
licenses = Maybe [LicenseInfo]
a} :: PackageVersionDescription) ((Maybe [LicenseInfo] -> f (Maybe [LicenseInfo]))
-> PackageVersionDescription -> f PackageVersionDescription)
-> ((Maybe [LicenseInfo] -> f (Maybe [LicenseInfo]))
-> Maybe [LicenseInfo] -> f (Maybe [LicenseInfo]))
-> (Maybe [LicenseInfo] -> f (Maybe [LicenseInfo]))
-> PackageVersionDescription
-> f PackageVersionDescription
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [LicenseInfo] [LicenseInfo] [LicenseInfo] [LicenseInfo]
-> Iso
(Maybe [LicenseInfo])
(Maybe [LicenseInfo])
(Maybe [LicenseInfo])
(Maybe [LicenseInfo])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [LicenseInfo] [LicenseInfo] [LicenseInfo] [LicenseInfo]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
packageVersionDescription_revision :: Lens.Lens' PackageVersionDescription (Prelude.Maybe Prelude.Text)
packageVersionDescription_revision :: (Maybe Text -> f (Maybe Text))
-> PackageVersionDescription -> f PackageVersionDescription
packageVersionDescription_revision = (PackageVersionDescription -> Maybe Text)
-> (PackageVersionDescription
-> Maybe Text -> PackageVersionDescription)
-> Lens
PackageVersionDescription
PackageVersionDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PackageVersionDescription' {Maybe Text
revision :: Maybe Text
$sel:revision:PackageVersionDescription' :: PackageVersionDescription -> Maybe Text
revision} -> Maybe Text
revision) (\s :: PackageVersionDescription
s@PackageVersionDescription' {} Maybe Text
a -> PackageVersionDescription
s {$sel:revision:PackageVersionDescription' :: Maybe Text
revision = Maybe Text
a} :: PackageVersionDescription)
instance Core.FromJSON PackageVersionDescription where
parseJSON :: Value -> Parser PackageVersionDescription
parseJSON =
String
-> (Object -> Parser PackageVersionDescription)
-> Value
-> Parser PackageVersionDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"PackageVersionDescription"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe PackageVersionStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe PackageFormat
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription
PackageVersionDescription'
(Maybe Text
-> Maybe Text
-> Maybe PackageVersionStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe PackageFormat
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe PackageVersionStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe PackageFormat
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"summary")
Parser
(Maybe Text
-> Maybe PackageVersionStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe PackageFormat
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe PackageVersionStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe PackageFormat
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"homePage")
Parser
(Maybe PackageVersionStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe PackageFormat
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
-> Parser (Maybe PackageVersionStatus)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe PackageFormat
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe PackageVersionStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"status")
Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe PackageFormat
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe PackageFormat
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"sourceCodeRepository")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe PackageFormat
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe PackageFormat
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"packageName")
Parser
(Maybe POSIX
-> Maybe PackageFormat
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
-> Parser (Maybe POSIX)
-> Parser
(Maybe PackageFormat
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"publishedTime")
Parser
(Maybe PackageFormat
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
-> Parser (Maybe PackageFormat)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe PackageFormat)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"format")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"namespace")
Parser
(Maybe Text
-> Maybe Text
-> Maybe [LicenseInfo]
-> Maybe Text
-> PackageVersionDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe [LicenseInfo] -> Maybe Text -> PackageVersionDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"version")
Parser
(Maybe Text
-> Maybe [LicenseInfo] -> Maybe Text -> PackageVersionDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe [LicenseInfo] -> Maybe Text -> PackageVersionDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"displayName")
Parser
(Maybe [LicenseInfo] -> Maybe Text -> PackageVersionDescription)
-> Parser (Maybe [LicenseInfo])
-> Parser (Maybe Text -> PackageVersionDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [LicenseInfo]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"licenses" Parser (Maybe (Maybe [LicenseInfo]))
-> Maybe [LicenseInfo] -> Parser (Maybe [LicenseInfo])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [LicenseInfo]
forall a. Monoid a => a
Prelude.mempty)
Parser (Maybe Text -> PackageVersionDescription)
-> Parser (Maybe Text) -> Parser PackageVersionDescription
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"revision")
)
instance Prelude.Hashable PackageVersionDescription
instance Prelude.NFData PackageVersionDescription