module Stratosphere.IoTSiteWise.Asset (
module Exports, Asset(..), mkAsset
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoTSiteWise.Asset.AssetHierarchyProperty as Exports
import {-# SOURCE #-} Stratosphere.IoTSiteWise.Asset.AssetPropertyProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Asset
=
Asset {Asset -> ()
haddock_workaround_ :: (),
Asset -> Maybe (Value Text)
assetDescription :: (Prelude.Maybe (Value Prelude.Text)),
Asset -> Maybe (Value Text)
assetExternalId :: (Prelude.Maybe (Value Prelude.Text)),
Asset -> Maybe [AssetHierarchyProperty]
assetHierarchies :: (Prelude.Maybe [AssetHierarchyProperty]),
Asset -> Value Text
assetModelId :: (Value Prelude.Text),
Asset -> Value Text
assetName :: (Value Prelude.Text),
Asset -> Maybe [AssetPropertyProperty]
assetProperties :: (Prelude.Maybe [AssetPropertyProperty]),
Asset -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (Asset -> Asset -> Bool
(Asset -> Asset -> Bool) -> (Asset -> Asset -> Bool) -> Eq Asset
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Asset -> Asset -> Bool
== :: Asset -> Asset -> Bool
$c/= :: Asset -> Asset -> Bool
/= :: Asset -> Asset -> Bool
Prelude.Eq, Int -> Asset -> ShowS
[Asset] -> ShowS
Asset -> String
(Int -> Asset -> ShowS)
-> (Asset -> String) -> ([Asset] -> ShowS) -> Show Asset
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Asset -> ShowS
showsPrec :: Int -> Asset -> ShowS
$cshow :: Asset -> String
show :: Asset -> String
$cshowList :: [Asset] -> ShowS
showList :: [Asset] -> ShowS
Prelude.Show)
mkAsset :: Value Prelude.Text -> Value Prelude.Text -> Asset
mkAsset :: Value Text -> Value Text -> Asset
mkAsset Value Text
assetModelId Value Text
assetName
= Asset
{haddock_workaround_ :: ()
haddock_workaround_ = (), assetModelId :: Value Text
assetModelId = Value Text
assetModelId,
assetName :: Value Text
assetName = Value Text
assetName, assetDescription :: Maybe (Value Text)
assetDescription = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
assetExternalId :: Maybe (Value Text)
assetExternalId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetHierarchies = Maybe [AssetHierarchyProperty]
forall a. Maybe a
Prelude.Nothing,
assetProperties :: Maybe [AssetPropertyProperty]
assetProperties = Maybe [AssetPropertyProperty]
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Asset where
toResourceProperties :: Asset -> ResourceProperties
toResourceProperties Asset {Maybe [Tag]
Maybe [AssetHierarchyProperty]
Maybe [AssetPropertyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Asset -> ()
assetDescription :: Asset -> Maybe (Value Text)
assetExternalId :: Asset -> Maybe (Value Text)
assetHierarchies :: Asset -> Maybe [AssetHierarchyProperty]
assetModelId :: Asset -> Value Text
assetName :: Asset -> Value Text
assetProperties :: Asset -> Maybe [AssetPropertyProperty]
tags :: Asset -> Maybe [Tag]
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTSiteWise::Asset", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"AssetModelId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
assetModelId,
Key
"AssetName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
assetName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AssetDescription" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
assetDescription,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AssetExternalId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
assetExternalId,
Key -> [AssetHierarchyProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AssetHierarchies" ([AssetHierarchyProperty] -> (Key, Value))
-> Maybe [AssetHierarchyProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AssetHierarchyProperty]
assetHierarchies,
Key -> [AssetPropertyProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AssetProperties" ([AssetPropertyProperty] -> (Key, Value))
-> Maybe [AssetPropertyProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AssetPropertyProperty]
assetProperties,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON Asset where
toJSON :: Asset -> Value
toJSON Asset {Maybe [Tag]
Maybe [AssetHierarchyProperty]
Maybe [AssetPropertyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Asset -> ()
assetDescription :: Asset -> Maybe (Value Text)
assetExternalId :: Asset -> Maybe (Value Text)
assetHierarchies :: Asset -> Maybe [AssetHierarchyProperty]
assetModelId :: Asset -> Value Text
assetName :: Asset -> Value Text
assetProperties :: Asset -> Maybe [AssetPropertyProperty]
tags :: Asset -> Maybe [Tag]
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"AssetModelId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
assetModelId,
Key
"AssetName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
assetName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AssetDescription" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
assetDescription,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AssetExternalId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
assetExternalId,
Key -> [AssetHierarchyProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AssetHierarchies" ([AssetHierarchyProperty] -> (Key, Value))
-> Maybe [AssetHierarchyProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AssetHierarchyProperty]
assetHierarchies,
Key -> [AssetPropertyProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AssetProperties" ([AssetPropertyProperty] -> (Key, Value))
-> Maybe [AssetPropertyProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AssetPropertyProperty]
assetProperties,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "AssetDescription" Asset where
type PropertyType "AssetDescription" Asset = Value Prelude.Text
set :: PropertyType "AssetDescription" Asset -> Asset -> Asset
set PropertyType "AssetDescription" Asset
newValue Asset {Maybe [Tag]
Maybe [AssetHierarchyProperty]
Maybe [AssetPropertyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Asset -> ()
assetDescription :: Asset -> Maybe (Value Text)
assetExternalId :: Asset -> Maybe (Value Text)
assetHierarchies :: Asset -> Maybe [AssetHierarchyProperty]
assetModelId :: Asset -> Value Text
assetName :: Asset -> Value Text
assetProperties :: Asset -> Maybe [AssetPropertyProperty]
tags :: Asset -> Maybe [Tag]
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
..}
= Asset {assetDescription :: Maybe (Value Text)
assetDescription = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AssetDescription" Asset
Value Text
newValue, Maybe [Tag]
Maybe [AssetHierarchyProperty]
Maybe [AssetPropertyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
..}
instance Property "AssetExternalId" Asset where
type PropertyType "AssetExternalId" Asset = Value Prelude.Text
set :: PropertyType "AssetExternalId" Asset -> Asset -> Asset
set PropertyType "AssetExternalId" Asset
newValue Asset {Maybe [Tag]
Maybe [AssetHierarchyProperty]
Maybe [AssetPropertyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Asset -> ()
assetDescription :: Asset -> Maybe (Value Text)
assetExternalId :: Asset -> Maybe (Value Text)
assetHierarchies :: Asset -> Maybe [AssetHierarchyProperty]
assetModelId :: Asset -> Value Text
assetName :: Asset -> Value Text
assetProperties :: Asset -> Maybe [AssetPropertyProperty]
tags :: Asset -> Maybe [Tag]
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
..}
= Asset {assetExternalId :: Maybe (Value Text)
assetExternalId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AssetExternalId" Asset
Value Text
newValue, Maybe [Tag]
Maybe [AssetHierarchyProperty]
Maybe [AssetPropertyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
..}
instance Property "AssetHierarchies" Asset where
type PropertyType "AssetHierarchies" Asset = [AssetHierarchyProperty]
set :: PropertyType "AssetHierarchies" Asset -> Asset -> Asset
set PropertyType "AssetHierarchies" Asset
newValue Asset {Maybe [Tag]
Maybe [AssetHierarchyProperty]
Maybe [AssetPropertyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Asset -> ()
assetDescription :: Asset -> Maybe (Value Text)
assetExternalId :: Asset -> Maybe (Value Text)
assetHierarchies :: Asset -> Maybe [AssetHierarchyProperty]
assetModelId :: Asset -> Value Text
assetName :: Asset -> Value Text
assetProperties :: Asset -> Maybe [AssetPropertyProperty]
tags :: Asset -> Maybe [Tag]
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
..}
= Asset {assetHierarchies :: Maybe [AssetHierarchyProperty]
assetHierarchies = [AssetHierarchyProperty] -> Maybe [AssetHierarchyProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [AssetHierarchyProperty]
PropertyType "AssetHierarchies" Asset
newValue, Maybe [Tag]
Maybe [AssetPropertyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
..}
instance Property "AssetModelId" Asset where
type PropertyType "AssetModelId" Asset = Value Prelude.Text
set :: PropertyType "AssetModelId" Asset -> Asset -> Asset
set PropertyType "AssetModelId" Asset
newValue Asset {Maybe [Tag]
Maybe [AssetHierarchyProperty]
Maybe [AssetPropertyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Asset -> ()
assetDescription :: Asset -> Maybe (Value Text)
assetExternalId :: Asset -> Maybe (Value Text)
assetHierarchies :: Asset -> Maybe [AssetHierarchyProperty]
assetModelId :: Asset -> Value Text
assetName :: Asset -> Value Text
assetProperties :: Asset -> Maybe [AssetPropertyProperty]
tags :: Asset -> Maybe [Tag]
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
..} = Asset {assetModelId :: Value Text
assetModelId = PropertyType "AssetModelId" Asset
Value Text
newValue, Maybe [Tag]
Maybe [AssetHierarchyProperty]
Maybe [AssetPropertyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
..}
instance Property "AssetName" Asset where
type PropertyType "AssetName" Asset = Value Prelude.Text
set :: PropertyType "AssetName" Asset -> Asset -> Asset
set PropertyType "AssetName" Asset
newValue Asset {Maybe [Tag]
Maybe [AssetHierarchyProperty]
Maybe [AssetPropertyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Asset -> ()
assetDescription :: Asset -> Maybe (Value Text)
assetExternalId :: Asset -> Maybe (Value Text)
assetHierarchies :: Asset -> Maybe [AssetHierarchyProperty]
assetModelId :: Asset -> Value Text
assetName :: Asset -> Value Text
assetProperties :: Asset -> Maybe [AssetPropertyProperty]
tags :: Asset -> Maybe [Tag]
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
..} = Asset {assetName :: Value Text
assetName = PropertyType "AssetName" Asset
Value Text
newValue, Maybe [Tag]
Maybe [AssetHierarchyProperty]
Maybe [AssetPropertyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
..}
instance Property "AssetProperties" Asset where
type PropertyType "AssetProperties" Asset = [AssetPropertyProperty]
set :: PropertyType "AssetProperties" Asset -> Asset -> Asset
set PropertyType "AssetProperties" Asset
newValue Asset {Maybe [Tag]
Maybe [AssetHierarchyProperty]
Maybe [AssetPropertyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Asset -> ()
assetDescription :: Asset -> Maybe (Value Text)
assetExternalId :: Asset -> Maybe (Value Text)
assetHierarchies :: Asset -> Maybe [AssetHierarchyProperty]
assetModelId :: Asset -> Value Text
assetName :: Asset -> Value Text
assetProperties :: Asset -> Maybe [AssetPropertyProperty]
tags :: Asset -> Maybe [Tag]
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
..}
= Asset {assetProperties :: Maybe [AssetPropertyProperty]
assetProperties = [AssetPropertyProperty] -> Maybe [AssetPropertyProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [AssetPropertyProperty]
PropertyType "AssetProperties" Asset
newValue, Maybe [Tag]
Maybe [AssetHierarchyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" Asset where
type PropertyType "Tags" Asset = [Tag]
set :: PropertyType "Tags" Asset -> Asset -> Asset
set PropertyType "Tags" Asset
newValue Asset {Maybe [Tag]
Maybe [AssetHierarchyProperty]
Maybe [AssetPropertyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Asset -> ()
assetDescription :: Asset -> Maybe (Value Text)
assetExternalId :: Asset -> Maybe (Value Text)
assetHierarchies :: Asset -> Maybe [AssetHierarchyProperty]
assetModelId :: Asset -> Value Text
assetName :: Asset -> Value Text
assetProperties :: Asset -> Maybe [AssetPropertyProperty]
tags :: Asset -> Maybe [Tag]
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
tags :: Maybe [Tag]
..} = Asset {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" Asset
newValue, Maybe [AssetHierarchyProperty]
Maybe [AssetPropertyProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
haddock_workaround_ :: ()
assetDescription :: Maybe (Value Text)
assetExternalId :: Maybe (Value Text)
assetHierarchies :: Maybe [AssetHierarchyProperty]
assetModelId :: Value Text
assetName :: Value Text
assetProperties :: Maybe [AssetPropertyProperty]
..}