{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.ECRPublic.CompleteLayerUpload
(
CompleteLayerUpload (..),
newCompleteLayerUpload,
completeLayerUpload_registryId,
completeLayerUpload_repositoryName,
completeLayerUpload_uploadId,
completeLayerUpload_layerDigests,
CompleteLayerUploadResponse (..),
newCompleteLayerUploadResponse,
completeLayerUploadResponse_registryId,
completeLayerUploadResponse_layerDigest,
completeLayerUploadResponse_repositoryName,
completeLayerUploadResponse_uploadId,
completeLayerUploadResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ECRPublic.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CompleteLayerUpload = CompleteLayerUpload'
{
CompleteLayerUpload -> Maybe Text
registryId :: Prelude.Maybe Prelude.Text,
CompleteLayerUpload -> Text
repositoryName :: Prelude.Text,
CompleteLayerUpload -> Text
uploadId :: Prelude.Text,
CompleteLayerUpload -> NonEmpty Text
layerDigests :: Prelude.NonEmpty Prelude.Text
}
deriving (CompleteLayerUpload -> CompleteLayerUpload -> Bool
(CompleteLayerUpload -> CompleteLayerUpload -> Bool)
-> (CompleteLayerUpload -> CompleteLayerUpload -> Bool)
-> Eq CompleteLayerUpload
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CompleteLayerUpload -> CompleteLayerUpload -> Bool
$c/= :: CompleteLayerUpload -> CompleteLayerUpload -> Bool
== :: CompleteLayerUpload -> CompleteLayerUpload -> Bool
$c== :: CompleteLayerUpload -> CompleteLayerUpload -> Bool
Prelude.Eq, ReadPrec [CompleteLayerUpload]
ReadPrec CompleteLayerUpload
Int -> ReadS CompleteLayerUpload
ReadS [CompleteLayerUpload]
(Int -> ReadS CompleteLayerUpload)
-> ReadS [CompleteLayerUpload]
-> ReadPrec CompleteLayerUpload
-> ReadPrec [CompleteLayerUpload]
-> Read CompleteLayerUpload
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CompleteLayerUpload]
$creadListPrec :: ReadPrec [CompleteLayerUpload]
readPrec :: ReadPrec CompleteLayerUpload
$creadPrec :: ReadPrec CompleteLayerUpload
readList :: ReadS [CompleteLayerUpload]
$creadList :: ReadS [CompleteLayerUpload]
readsPrec :: Int -> ReadS CompleteLayerUpload
$creadsPrec :: Int -> ReadS CompleteLayerUpload
Prelude.Read, Int -> CompleteLayerUpload -> ShowS
[CompleteLayerUpload] -> ShowS
CompleteLayerUpload -> String
(Int -> CompleteLayerUpload -> ShowS)
-> (CompleteLayerUpload -> String)
-> ([CompleteLayerUpload] -> ShowS)
-> Show CompleteLayerUpload
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CompleteLayerUpload] -> ShowS
$cshowList :: [CompleteLayerUpload] -> ShowS
show :: CompleteLayerUpload -> String
$cshow :: CompleteLayerUpload -> String
showsPrec :: Int -> CompleteLayerUpload -> ShowS
$cshowsPrec :: Int -> CompleteLayerUpload -> ShowS
Prelude.Show, (forall x. CompleteLayerUpload -> Rep CompleteLayerUpload x)
-> (forall x. Rep CompleteLayerUpload x -> CompleteLayerUpload)
-> Generic CompleteLayerUpload
forall x. Rep CompleteLayerUpload x -> CompleteLayerUpload
forall x. CompleteLayerUpload -> Rep CompleteLayerUpload x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CompleteLayerUpload x -> CompleteLayerUpload
$cfrom :: forall x. CompleteLayerUpload -> Rep CompleteLayerUpload x
Prelude.Generic)
newCompleteLayerUpload ::
Prelude.Text ->
Prelude.Text ->
Prelude.NonEmpty Prelude.Text ->
CompleteLayerUpload
newCompleteLayerUpload :: Text -> Text -> NonEmpty Text -> CompleteLayerUpload
newCompleteLayerUpload
Text
pRepositoryName_
Text
pUploadId_
NonEmpty Text
pLayerDigests_ =
CompleteLayerUpload' :: Maybe Text -> Text -> Text -> NonEmpty Text -> CompleteLayerUpload
CompleteLayerUpload'
{ $sel:registryId:CompleteLayerUpload' :: Maybe Text
registryId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:CompleteLayerUpload' :: Text
repositoryName = Text
pRepositoryName_,
$sel:uploadId:CompleteLayerUpload' :: Text
uploadId = Text
pUploadId_,
$sel:layerDigests:CompleteLayerUpload' :: NonEmpty Text
layerDigests = Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pLayerDigests_
}
completeLayerUpload_registryId :: Lens.Lens' CompleteLayerUpload (Prelude.Maybe Prelude.Text)
completeLayerUpload_registryId :: (Maybe Text -> f (Maybe Text))
-> CompleteLayerUpload -> f CompleteLayerUpload
completeLayerUpload_registryId = (CompleteLayerUpload -> Maybe Text)
-> (CompleteLayerUpload -> Maybe Text -> CompleteLayerUpload)
-> Lens
CompleteLayerUpload CompleteLayerUpload (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteLayerUpload' {Maybe Text
registryId :: Maybe Text
$sel:registryId:CompleteLayerUpload' :: CompleteLayerUpload -> Maybe Text
registryId} -> Maybe Text
registryId) (\s :: CompleteLayerUpload
s@CompleteLayerUpload' {} Maybe Text
a -> CompleteLayerUpload
s {$sel:registryId:CompleteLayerUpload' :: Maybe Text
registryId = Maybe Text
a} :: CompleteLayerUpload)
completeLayerUpload_repositoryName :: Lens.Lens' CompleteLayerUpload Prelude.Text
completeLayerUpload_repositoryName :: (Text -> f Text) -> CompleteLayerUpload -> f CompleteLayerUpload
completeLayerUpload_repositoryName = (CompleteLayerUpload -> Text)
-> (CompleteLayerUpload -> Text -> CompleteLayerUpload)
-> Lens CompleteLayerUpload CompleteLayerUpload Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteLayerUpload' {Text
repositoryName :: Text
$sel:repositoryName:CompleteLayerUpload' :: CompleteLayerUpload -> Text
repositoryName} -> Text
repositoryName) (\s :: CompleteLayerUpload
s@CompleteLayerUpload' {} Text
a -> CompleteLayerUpload
s {$sel:repositoryName:CompleteLayerUpload' :: Text
repositoryName = Text
a} :: CompleteLayerUpload)
completeLayerUpload_uploadId :: Lens.Lens' CompleteLayerUpload Prelude.Text
completeLayerUpload_uploadId :: (Text -> f Text) -> CompleteLayerUpload -> f CompleteLayerUpload
completeLayerUpload_uploadId = (CompleteLayerUpload -> Text)
-> (CompleteLayerUpload -> Text -> CompleteLayerUpload)
-> Lens CompleteLayerUpload CompleteLayerUpload Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteLayerUpload' {Text
uploadId :: Text
$sel:uploadId:CompleteLayerUpload' :: CompleteLayerUpload -> Text
uploadId} -> Text
uploadId) (\s :: CompleteLayerUpload
s@CompleteLayerUpload' {} Text
a -> CompleteLayerUpload
s {$sel:uploadId:CompleteLayerUpload' :: Text
uploadId = Text
a} :: CompleteLayerUpload)
completeLayerUpload_layerDigests :: Lens.Lens' CompleteLayerUpload (Prelude.NonEmpty Prelude.Text)
completeLayerUpload_layerDigests :: (NonEmpty Text -> f (NonEmpty Text))
-> CompleteLayerUpload -> f CompleteLayerUpload
completeLayerUpload_layerDigests = (CompleteLayerUpload -> NonEmpty Text)
-> (CompleteLayerUpload -> NonEmpty Text -> CompleteLayerUpload)
-> Lens
CompleteLayerUpload
CompleteLayerUpload
(NonEmpty Text)
(NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteLayerUpload' {NonEmpty Text
layerDigests :: NonEmpty Text
$sel:layerDigests:CompleteLayerUpload' :: CompleteLayerUpload -> NonEmpty Text
layerDigests} -> NonEmpty Text
layerDigests) (\s :: CompleteLayerUpload
s@CompleteLayerUpload' {} NonEmpty Text
a -> CompleteLayerUpload
s {$sel:layerDigests:CompleteLayerUpload' :: NonEmpty Text
layerDigests = NonEmpty Text
a} :: CompleteLayerUpload) ((NonEmpty Text -> f (NonEmpty Text))
-> CompleteLayerUpload -> f CompleteLayerUpload)
-> ((NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> CompleteLayerUpload
-> f CompleteLayerUpload
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest CompleteLayerUpload where
type
AWSResponse CompleteLayerUpload =
CompleteLayerUploadResponse
request :: CompleteLayerUpload -> Request CompleteLayerUpload
request = Service -> CompleteLayerUpload -> Request CompleteLayerUpload
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CompleteLayerUpload
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CompleteLayerUpload)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CompleteLayerUpload))
-> Logger
-> Service
-> Proxy CompleteLayerUpload
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CompleteLayerUpload)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CompleteLayerUploadResponse
CompleteLayerUploadResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CompleteLayerUploadResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> CompleteLayerUploadResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"registryId")
Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> CompleteLayerUploadResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> CompleteLayerUploadResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"layerDigest")
Either
String
(Maybe Text -> Maybe Text -> Int -> CompleteLayerUploadResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> CompleteLayerUploadResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"repositoryName")
Either String (Maybe Text -> Int -> CompleteLayerUploadResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CompleteLayerUploadResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"uploadId")
Either String (Int -> CompleteLayerUploadResponse)
-> Either String Int -> Either String CompleteLayerUploadResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable CompleteLayerUpload
instance Prelude.NFData CompleteLayerUpload
instance Core.ToHeaders CompleteLayerUpload where
toHeaders :: CompleteLayerUpload -> ResponseHeaders
toHeaders =
ResponseHeaders -> CompleteLayerUpload -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"SpencerFrontendService.CompleteLayerUpload" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON CompleteLayerUpload where
toJSON :: CompleteLayerUpload -> Value
toJSON CompleteLayerUpload' {Maybe Text
NonEmpty Text
Text
layerDigests :: NonEmpty Text
uploadId :: Text
repositoryName :: Text
registryId :: Maybe Text
$sel:layerDigests:CompleteLayerUpload' :: CompleteLayerUpload -> NonEmpty Text
$sel:uploadId:CompleteLayerUpload' :: CompleteLayerUpload -> Text
$sel:repositoryName:CompleteLayerUpload' :: CompleteLayerUpload -> Text
$sel:registryId:CompleteLayerUpload' :: CompleteLayerUpload -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"registryId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
registryId,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"repositoryName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
repositoryName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"uploadId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
uploadId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"layerDigests" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
layerDigests)
]
)
instance Core.ToPath CompleteLayerUpload where
toPath :: CompleteLayerUpload -> ByteString
toPath = ByteString -> CompleteLayerUpload -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CompleteLayerUpload where
toQuery :: CompleteLayerUpload -> QueryString
toQuery = QueryString -> CompleteLayerUpload -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CompleteLayerUploadResponse = CompleteLayerUploadResponse'
{
CompleteLayerUploadResponse -> Maybe Text
registryId :: Prelude.Maybe Prelude.Text,
CompleteLayerUploadResponse -> Maybe Text
layerDigest :: Prelude.Maybe Prelude.Text,
CompleteLayerUploadResponse -> Maybe Text
repositoryName :: Prelude.Maybe Prelude.Text,
CompleteLayerUploadResponse -> Maybe Text
uploadId :: Prelude.Maybe Prelude.Text,
CompleteLayerUploadResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CompleteLayerUploadResponse -> CompleteLayerUploadResponse -> Bool
(CompleteLayerUploadResponse
-> CompleteLayerUploadResponse -> Bool)
-> (CompleteLayerUploadResponse
-> CompleteLayerUploadResponse -> Bool)
-> Eq CompleteLayerUploadResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CompleteLayerUploadResponse -> CompleteLayerUploadResponse -> Bool
$c/= :: CompleteLayerUploadResponse -> CompleteLayerUploadResponse -> Bool
== :: CompleteLayerUploadResponse -> CompleteLayerUploadResponse -> Bool
$c== :: CompleteLayerUploadResponse -> CompleteLayerUploadResponse -> Bool
Prelude.Eq, ReadPrec [CompleteLayerUploadResponse]
ReadPrec CompleteLayerUploadResponse
Int -> ReadS CompleteLayerUploadResponse
ReadS [CompleteLayerUploadResponse]
(Int -> ReadS CompleteLayerUploadResponse)
-> ReadS [CompleteLayerUploadResponse]
-> ReadPrec CompleteLayerUploadResponse
-> ReadPrec [CompleteLayerUploadResponse]
-> Read CompleteLayerUploadResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CompleteLayerUploadResponse]
$creadListPrec :: ReadPrec [CompleteLayerUploadResponse]
readPrec :: ReadPrec CompleteLayerUploadResponse
$creadPrec :: ReadPrec CompleteLayerUploadResponse
readList :: ReadS [CompleteLayerUploadResponse]
$creadList :: ReadS [CompleteLayerUploadResponse]
readsPrec :: Int -> ReadS CompleteLayerUploadResponse
$creadsPrec :: Int -> ReadS CompleteLayerUploadResponse
Prelude.Read, Int -> CompleteLayerUploadResponse -> ShowS
[CompleteLayerUploadResponse] -> ShowS
CompleteLayerUploadResponse -> String
(Int -> CompleteLayerUploadResponse -> ShowS)
-> (CompleteLayerUploadResponse -> String)
-> ([CompleteLayerUploadResponse] -> ShowS)
-> Show CompleteLayerUploadResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CompleteLayerUploadResponse] -> ShowS
$cshowList :: [CompleteLayerUploadResponse] -> ShowS
show :: CompleteLayerUploadResponse -> String
$cshow :: CompleteLayerUploadResponse -> String
showsPrec :: Int -> CompleteLayerUploadResponse -> ShowS
$cshowsPrec :: Int -> CompleteLayerUploadResponse -> ShowS
Prelude.Show, (forall x.
CompleteLayerUploadResponse -> Rep CompleteLayerUploadResponse x)
-> (forall x.
Rep CompleteLayerUploadResponse x -> CompleteLayerUploadResponse)
-> Generic CompleteLayerUploadResponse
forall x.
Rep CompleteLayerUploadResponse x -> CompleteLayerUploadResponse
forall x.
CompleteLayerUploadResponse -> Rep CompleteLayerUploadResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CompleteLayerUploadResponse x -> CompleteLayerUploadResponse
$cfrom :: forall x.
CompleteLayerUploadResponse -> Rep CompleteLayerUploadResponse x
Prelude.Generic)
newCompleteLayerUploadResponse ::
Prelude.Int ->
CompleteLayerUploadResponse
newCompleteLayerUploadResponse :: Int -> CompleteLayerUploadResponse
newCompleteLayerUploadResponse Int
pHttpStatus_ =
CompleteLayerUploadResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CompleteLayerUploadResponse
CompleteLayerUploadResponse'
{ $sel:registryId:CompleteLayerUploadResponse' :: Maybe Text
registryId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:layerDigest:CompleteLayerUploadResponse' :: Maybe Text
layerDigest = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:CompleteLayerUploadResponse' :: Maybe Text
repositoryName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:uploadId:CompleteLayerUploadResponse' :: Maybe Text
uploadId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CompleteLayerUploadResponse' :: Int
httpStatus = Int
pHttpStatus_
}
completeLayerUploadResponse_registryId :: Lens.Lens' CompleteLayerUploadResponse (Prelude.Maybe Prelude.Text)
completeLayerUploadResponse_registryId :: (Maybe Text -> f (Maybe Text))
-> CompleteLayerUploadResponse -> f CompleteLayerUploadResponse
completeLayerUploadResponse_registryId = (CompleteLayerUploadResponse -> Maybe Text)
-> (CompleteLayerUploadResponse
-> Maybe Text -> CompleteLayerUploadResponse)
-> Lens
CompleteLayerUploadResponse
CompleteLayerUploadResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteLayerUploadResponse' {Maybe Text
registryId :: Maybe Text
$sel:registryId:CompleteLayerUploadResponse' :: CompleteLayerUploadResponse -> Maybe Text
registryId} -> Maybe Text
registryId) (\s :: CompleteLayerUploadResponse
s@CompleteLayerUploadResponse' {} Maybe Text
a -> CompleteLayerUploadResponse
s {$sel:registryId:CompleteLayerUploadResponse' :: Maybe Text
registryId = Maybe Text
a} :: CompleteLayerUploadResponse)
completeLayerUploadResponse_layerDigest :: Lens.Lens' CompleteLayerUploadResponse (Prelude.Maybe Prelude.Text)
completeLayerUploadResponse_layerDigest :: (Maybe Text -> f (Maybe Text))
-> CompleteLayerUploadResponse -> f CompleteLayerUploadResponse
completeLayerUploadResponse_layerDigest = (CompleteLayerUploadResponse -> Maybe Text)
-> (CompleteLayerUploadResponse
-> Maybe Text -> CompleteLayerUploadResponse)
-> Lens
CompleteLayerUploadResponse
CompleteLayerUploadResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteLayerUploadResponse' {Maybe Text
layerDigest :: Maybe Text
$sel:layerDigest:CompleteLayerUploadResponse' :: CompleteLayerUploadResponse -> Maybe Text
layerDigest} -> Maybe Text
layerDigest) (\s :: CompleteLayerUploadResponse
s@CompleteLayerUploadResponse' {} Maybe Text
a -> CompleteLayerUploadResponse
s {$sel:layerDigest:CompleteLayerUploadResponse' :: Maybe Text
layerDigest = Maybe Text
a} :: CompleteLayerUploadResponse)
completeLayerUploadResponse_repositoryName :: Lens.Lens' CompleteLayerUploadResponse (Prelude.Maybe Prelude.Text)
completeLayerUploadResponse_repositoryName :: (Maybe Text -> f (Maybe Text))
-> CompleteLayerUploadResponse -> f CompleteLayerUploadResponse
completeLayerUploadResponse_repositoryName = (CompleteLayerUploadResponse -> Maybe Text)
-> (CompleteLayerUploadResponse
-> Maybe Text -> CompleteLayerUploadResponse)
-> Lens
CompleteLayerUploadResponse
CompleteLayerUploadResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteLayerUploadResponse' {Maybe Text
repositoryName :: Maybe Text
$sel:repositoryName:CompleteLayerUploadResponse' :: CompleteLayerUploadResponse -> Maybe Text
repositoryName} -> Maybe Text
repositoryName) (\s :: CompleteLayerUploadResponse
s@CompleteLayerUploadResponse' {} Maybe Text
a -> CompleteLayerUploadResponse
s {$sel:repositoryName:CompleteLayerUploadResponse' :: Maybe Text
repositoryName = Maybe Text
a} :: CompleteLayerUploadResponse)
completeLayerUploadResponse_uploadId :: Lens.Lens' CompleteLayerUploadResponse (Prelude.Maybe Prelude.Text)
completeLayerUploadResponse_uploadId :: (Maybe Text -> f (Maybe Text))
-> CompleteLayerUploadResponse -> f CompleteLayerUploadResponse
completeLayerUploadResponse_uploadId = (CompleteLayerUploadResponse -> Maybe Text)
-> (CompleteLayerUploadResponse
-> Maybe Text -> CompleteLayerUploadResponse)
-> Lens
CompleteLayerUploadResponse
CompleteLayerUploadResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteLayerUploadResponse' {Maybe Text
uploadId :: Maybe Text
$sel:uploadId:CompleteLayerUploadResponse' :: CompleteLayerUploadResponse -> Maybe Text
uploadId} -> Maybe Text
uploadId) (\s :: CompleteLayerUploadResponse
s@CompleteLayerUploadResponse' {} Maybe Text
a -> CompleteLayerUploadResponse
s {$sel:uploadId:CompleteLayerUploadResponse' :: Maybe Text
uploadId = Maybe Text
a} :: CompleteLayerUploadResponse)
completeLayerUploadResponse_httpStatus :: Lens.Lens' CompleteLayerUploadResponse Prelude.Int
completeLayerUploadResponse_httpStatus :: (Int -> f Int)
-> CompleteLayerUploadResponse -> f CompleteLayerUploadResponse
completeLayerUploadResponse_httpStatus = (CompleteLayerUploadResponse -> Int)
-> (CompleteLayerUploadResponse
-> Int -> CompleteLayerUploadResponse)
-> Lens
CompleteLayerUploadResponse CompleteLayerUploadResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteLayerUploadResponse' {Int
httpStatus :: Int
$sel:httpStatus:CompleteLayerUploadResponse' :: CompleteLayerUploadResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CompleteLayerUploadResponse
s@CompleteLayerUploadResponse' {} Int
a -> CompleteLayerUploadResponse
s {$sel:httpStatus:CompleteLayerUploadResponse' :: Int
httpStatus = Int
a} :: CompleteLayerUploadResponse)
instance Prelude.NFData CompleteLayerUploadResponse