gogol-remotebuildexecution-0.4.0: Google Remote Build Execution SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.RemoteBuildExecution.ActionResults.Update

Contents

Description

Upload a new execution result. This method is intended for servers which implement the distributed cache independently of the Execution API. As a result, it is OPTIONAL for servers to implement. In order to allow the server to perform access control based on the type of action, and to assist with client debugging, the client MUST first upload the Action that produced the result, along with its Command, into the `ContentAddressableStorage`. Errors: * `UNIMPLEMENTED`: This method is not supported by the server. * `RESOURCE_EXHAUSTED`: There is insufficient storage space to add the entry to the cache.

See: Remote Build Execution API Reference for remotebuildexecution.actionResults.update.

Synopsis

REST Resource

type ActionResultsUpdateResource = "v2" :> (Capture "instanceName" Text :> ("actionResults" :> (Capture "hash" Text :> (Capture "sizeBytes" (Textual Int64) :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "resultsCachePolicy.priority" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BuildBazelRemoteExecutionV2ActionResult :> Put '[JSON] BuildBazelRemoteExecutionV2ActionResult)))))))))))) Source #

A resource alias for remotebuildexecution.actionResults.update method which the ActionResultsUpdate request conforms to.

Creating a Request

data ActionResultsUpdate Source #

Upload a new execution result. This method is intended for servers which implement the distributed cache independently of the Execution API. As a result, it is OPTIONAL for servers to implement. In order to allow the server to perform access control based on the type of action, and to assist with client debugging, the client MUST first upload the Action that produced the result, along with its Command, into the `ContentAddressableStorage`. Errors: * `UNIMPLEMENTED`: This method is not supported by the server. * `RESOURCE_EXHAUSTED`: There is insufficient storage space to add the entry to the cache.

See: actionResultsUpdate smart constructor.

Instances
Eq ActionResultsUpdate Source # 
Instance details

Defined in Network.Google.Resource.RemoteBuildExecution.ActionResults.Update

Data ActionResultsUpdate Source # 
Instance details

Defined in Network.Google.Resource.RemoteBuildExecution.ActionResults.Update

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ActionResultsUpdate -> c ActionResultsUpdate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ActionResultsUpdate #

toConstr :: ActionResultsUpdate -> Constr #

dataTypeOf :: ActionResultsUpdate -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ActionResultsUpdate) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ActionResultsUpdate) #

gmapT :: (forall b. Data b => b -> b) -> ActionResultsUpdate -> ActionResultsUpdate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ActionResultsUpdate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ActionResultsUpdate -> r #

gmapQ :: (forall d. Data d => d -> u) -> ActionResultsUpdate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ActionResultsUpdate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ActionResultsUpdate -> m ActionResultsUpdate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ActionResultsUpdate -> m ActionResultsUpdate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ActionResultsUpdate -> m ActionResultsUpdate #

Show ActionResultsUpdate Source # 
Instance details

Defined in Network.Google.Resource.RemoteBuildExecution.ActionResults.Update

Generic ActionResultsUpdate Source # 
Instance details

Defined in Network.Google.Resource.RemoteBuildExecution.ActionResults.Update

Associated Types

type Rep ActionResultsUpdate :: Type -> Type #

GoogleRequest ActionResultsUpdate Source # 
Instance details

Defined in Network.Google.Resource.RemoteBuildExecution.ActionResults.Update

Associated Types

type Rs ActionResultsUpdate :: Type #

type Scopes ActionResultsUpdate :: [Symbol] #

type Rep ActionResultsUpdate Source # 
Instance details

Defined in Network.Google.Resource.RemoteBuildExecution.ActionResults.Update

type Rep ActionResultsUpdate = D1 (MetaData "ActionResultsUpdate" "Network.Google.Resource.RemoteBuildExecution.ActionResults.Update" "gogol-remotebuildexecution-0.4.0-1u4iV8qHDo9Hqh7sKQIjr5" False) (C1 (MetaCons "ActionResultsUpdate'" PrefixI True) (((S1 (MetaSel (Just "_aruSizeBytes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int64)) :*: S1 (MetaSel (Just "_aruXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv))) :*: (S1 (MetaSel (Just "_aruHash") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_aruUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_aruAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_aruUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_aruPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 BuildBazelRemoteExecutionV2ActionResult)) :*: (S1 (MetaSel (Just "_aruResultsCachePolicyPriority") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: (S1 (MetaSel (Just "_aruInstanceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_aruCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes ActionResultsUpdate Source # 
Instance details

Defined in Network.Google.Resource.RemoteBuildExecution.ActionResults.Update

type Scopes ActionResultsUpdate = "https://www.googleapis.com/auth/cloud-platform" ': ([] :: [Symbol])
type Rs ActionResultsUpdate Source # 
Instance details

Defined in Network.Google.Resource.RemoteBuildExecution.ActionResults.Update

Request Lenses

aruSizeBytes :: Lens' ActionResultsUpdate Int64 Source #

The size of the blob, in bytes.

aruHash :: Lens' ActionResultsUpdate Text Source #

The hash. In the case of SHA-256, it will always be a lowercase hex string exactly 64 characters long.

aruUploadProtocol :: Lens' ActionResultsUpdate (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

aruUploadType :: Lens' ActionResultsUpdate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

aruResultsCachePolicyPriority :: Lens' ActionResultsUpdate (Maybe Int32) Source #

The priority (relative importance) of this content in the overall cache. Generally, a lower value means a longer retention time or other advantage, but the interpretation of a given value is server-dependent. A priority of 0 means a *default* value, decided by the server. The particular semantics of this field is up to the server. In particular, every server will have their own supported range of priorities, and will decide how these map into retention/eviction policy.

aruInstanceName :: Lens' ActionResultsUpdate Text Source #

The instance of the execution system to operate against. A server may support multiple instances of the execution system (with their own workers, storage, caches, etc.). The server MAY require use of this field to select between them in an implementation-defined fashion, otherwise it can be omitted.