@@ -24,12 +24,13 @@ import Network.Google.Prelude
2424--
2525-- /See:/ 'buildStep' smart constructor.
2626data BuildStep = BuildStep'
27− { _bsDir :: !(Maybe Text)
28− , _bsArgs :: !(Maybe [Text])
29− , _bsEnv :: !(Maybe [Text])
30− , _bsWaitFor :: !(Maybe [Text])
31− , _bsName :: !(Maybe Text)
32− , _bsId :: !(Maybe Text)
27+ { _bsDir :: !(Maybe Text)
28+ , _bsArgs :: !(Maybe [Text])
29+ , _bsEnv :: !(Maybe [Text])
30+ , _bsEntrypoint :: !(Maybe Text)
31+ , _bsWaitFor :: !(Maybe [Text])
32+ , _bsName :: !(Maybe Text)
33+ , _bsId :: !(Maybe Text)
3334 } deriving (Eq,Show,Data,Typeable,Generic)
3435
3536-- | Creates a value of 'BuildStep' with the minimum fields required to make a request.
@@ -42,6 +43,8 @@ data BuildStep = BuildStep'
4243--
4344-- * 'bsEnv'
4445--
46+-- * 'bsEntrypoint'
47+--
4548-- * 'bsWaitFor'
4649--
4750-- * 'bsName'
@@ -54,6 +57,7 @@ buildStep =
5457 { _bsDir = Nothing
5558 , _bsArgs = Nothing
5659 , _bsEnv = Nothing
60+ , _bsEntrypoint = Nothing
5761 , _bsWaitFor = Nothing
5862 , _bsName = Nothing
5963 , _bsId = Nothing
@@ -82,6 +86,12 @@ bsEnv
8286 = lens _bsEnv (\ s a -> s{_bsEnv = a}) . _Default .
8387 _Coerce
8488
89+-- | Optional entrypoint to be used instead of the build step image\'s
90+-- default If unset, the image\'s default will be used.
91+bsEntrypoint :: Lens' BuildStep (Maybe Text)
92+bsEntrypoint
93+ = lens _bsEntrypoint (\ s a -> s{_bsEntrypoint = a})
94+
8595-- | The ID(s) of the step(s) that this build step depends on. This build
8696-- step will not start until all the build steps in wait_for have completed
8797-- successfully. If wait_for is empty, this build step will start when all
@@ -120,6 +130,7 @@ instance FromJSON BuildStep where
120130 BuildStep' <$>
121131 (o .:? "dir") <*> (o .:? "args" .!= mempty) <*>
122132 (o .:? "env" .!= mempty)
133+ <*> (o .:? "entrypoint")
123134 <*> (o .:? "waitFor" .!= mempty)
124135 <*> (o .:? "name")
125136 <*> (o .:? "id"))
@@ -129,7 +140,9 @@ instance ToJSON BuildStep where
129140 = object
130141 (catMaybes
131142 [("dir" .=) <$> _bsDir, ("args" .=) <$> _bsArgs,
132− ("env" .=) <$> _bsEnv, ("waitFor" .=) <$> _bsWaitFor,
143+ ("env" .=) <$> _bsEnv,
144+ ("entrypoint" .=) <$> _bsEntrypoint,
145+ ("waitFor" .=) <$> _bsWaitFor,
133146 ("name" .=) <$> _bsName, ("id" .=) <$> _bsId])
134147
135148-- | Provenance of the source. Ways to find the original source, or verify
@@ -404,11 +417,32 @@ instance ToJSON ListOperationsResponse where
404417 [("nextPageToken" .=) <$> _lorNextPageToken,
405418 ("operations" .=) <$> _lorOperations])
406419
420+-- | The request message for Operations.CancelOperation.
421+--
422+-- /See:/ 'cancelOperationRequest' smart constructor.
423+data CancelOperationRequest =
424+ CancelOperationRequest'
425+ deriving (Eq,Show,Data,Typeable,Generic)
426+
427+-- | Creates a value of 'CancelOperationRequest' with the minimum fields required to make a request.
428+--
429+cancelOperationRequest
430+ :: CancelOperationRequest
431+cancelOperationRequest = CancelOperationRequest'
432+
433+instance FromJSON CancelOperationRequest where
434+ parseJSON
435+ = withObject "CancelOperationRequest"
436+ (\ o -> pure CancelOperationRequest')
437+
438+instance ToJSON CancelOperationRequest where
439+ toJSON = const emptyObject
440+
407441-- | Container message for hash values.
408442--
409443-- /See:/ 'hash' smart constructor.
410444data Hash = Hash'
411− { _hValue :: !(Maybe Base64)
445+ { _hValue :: !(Maybe Bytes)
412446 , _hType :: !(Maybe HashType)
413447 } deriving (Eq,Show,Data,Typeable,Generic)
414448
@@ -431,7 +465,7 @@ hash =
431465hValue :: Lens' Hash (Maybe ByteString)
432466hValue
433467 = lens _hValue (\ s a -> s{_hValue = a}) .
434− mapping _Base64
468+ mapping _Bytes
435469
436470-- | The type of hash that was performed.
437471hType :: Lens' Hash (Maybe HashType)
@@ -757,6 +791,7 @@ data Build = Build'
757791 , _bId :: !(Maybe Text)
758792 , _bOptions :: !(Maybe BuildOptions)
759793 , _bProjectId :: !(Maybe Text)
794+ , _bBuildTriggerId :: !(Maybe Text)
760795 , _bTimeout :: !(Maybe Duration)
761796 , _bFinishTime :: !(Maybe DateTime')
762797 , _bCreateTime :: !(Maybe DateTime')
@@ -792,6 +827,8 @@ data Build = Build'
792827--
793828-- * 'bProjectId'
794829--
830+-- * 'bBuildTriggerId'
831+--
795832-- * 'bTimeout'
796833--
797834-- * 'bFinishTime'
@@ -814,6 +851,7 @@ build =
814851 , _bId = Nothing
815852 , _bOptions = Nothing
816853 , _bProjectId = Nothing
854+ , _bBuildTriggerId = Nothing
817855 , _bTimeout = Nothing
818856 , _bFinishTime = Nothing
819857 , _bCreateTime = Nothing
@@ -891,6 +929,13 @@ bProjectId :: Lens' Build (Maybe Text)
891929bProjectId
892930 = lens _bProjectId (\ s a -> s{_bProjectId = a})
893931
932+-- | The ID of the BuildTrigger that triggered this build, if it was
933+-- triggered automatically. \'OutputOnly
934+bBuildTriggerId :: Lens' Build (Maybe Text)
935+bBuildTriggerId
936+ = lens _bBuildTriggerId
937+ (\ s a -> s{_bBuildTriggerId = a})
938+
894939-- | Amount of time that this build should be allowed to run, to second
895940-- granularity. If this amount of time elapses, work on the build will
896941-- cease and the build status will be TIMEOUT. Default time is ten minutes.
@@ -899,13 +944,15 @@ bTimeout
899944 = lens _bTimeout (\ s a -> s{_bTimeout = a}) .
900945 mapping _Duration
901946
902−-- | Time at which execution of the build was finished. \'OutputOnly
947+-- | Time at which execution of the build was finished. The difference
948+-- between finish_time and start_time is the duration of the build\'s
949+-- execution. \'OutputOnly
903950bFinishTime :: Lens' Build (Maybe UTCTime)
904951bFinishTime
905952 = lens _bFinishTime (\ s a -> s{_bFinishTime = a}) .
906953 mapping _DateTime
907954
908−-- | Time at which the build was created. \'OutputOnly
955+-- | Time at which the request to create the build was received. \'OutputOnly
909956bCreateTime :: Lens' Build (Maybe UTCTime)
910957bCreateTime
911958 = lens _bCreateTime (\ s a -> s{_bCreateTime = a}) .
@@ -928,6 +975,7 @@ instance FromJSON Build where
928975 <*> (o .:? "id")
929976 <*> (o .:? "options")
930977 <*> (o .:? "projectId")
978+ <*> (o .:? "buildTriggerId")
931979 <*> (o .:? "timeout")
932980 <*> (o .:? "finishTime")
933981 <*> (o .:? "createTime"))
@@ -948,6 +996,7 @@ instance ToJSON Build where
948996 ("source" .=) <$> _bSource, ("id" .=) <$> _bId,
949997 ("options" .=) <$> _bOptions,
950998 ("projectId" .=) <$> _bProjectId,
999+ ("buildTriggerId" .=) <$> _bBuildTriggerId,
9511000 ("timeout" .=) <$> _bTimeout,
9521001 ("finishTime" .=) <$> _bFinishTime,
9531002 ("createTime" .=) <$> _bCreateTime])