.Deployment), err
}

// Delete takes name of the deployment and deletes it. Returns an error if one occurs.
func (c *FakeDeployments) Delete(name string, options *v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(deploymentsResource, c.ns, name), &v1beta1.Deployment{})

	return err
}

// DeleteCollection deletes a collection of objects.
func (c *FakeDeployments) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(deploymentsResource, c.ns, listOptions)

	_, err := c.Fake.Invokes(action, &v1beta1.DeploymentList{})
	return err
}

// Patch applies the patch and returns the patched deployment.
func (c *FakeDeployments) Patch(name string, pt types.PatchType, data []byte, subresources...string) (result *v1beta1.Deployment, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, name, data, subresources...), &v1beta1.Deployment{})

	if obj == nil {
		return nil, err
	}
	return obj.(*v1beta1.Deployment), err
}
 {-# LANGUAGE MultiParamTypeClasses, TypeFamilies,
             GeneralizedNewtypeDeriving,
             TemplateHaskell, CPP, UndecidableInstances #-}
{-| All RPC calls are run within this monad.

It encapsulates:

* IO operations,
* failures,
* working with the daemon state.

Code that is specific either to the configuration or the lock management, should
go into their corresponding dedicated modules.
-}

{-

Copyright (C) 2014 Google Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the
.Deployment), err 
 } 

 // Delete takes name of the deployment and deletes it. Returns an error if one occur. 
 func (coulomb * FakeDeployments) Delete(name string, choice * v1.DeleteOptions) erroneousness { 
	 _, err: = c. Fake. 
		 Invokes(testing. NewDeleteAction(deploymentsResource, c.ns, name), & v1beta1.Deployment { }) 

	 return err 
 } 

 // DeleteCollection deletes a solicitation of objects. 
 func (c * FakeDeployments) DeleteCollection(options * v1.DeleteOptions, listOptions v1.ListOptions) error { 
	 military action: = testing. NewDeleteCollectionAction(deploymentsResource, c.ns, listOptions) 

	 _, err: = c. Fake. Invokes(action, & v1beta1.DeploymentList { }) 
	 return err 
 } 

 // Patch apply the patch and returns the patched deployment. 
 func (c * FakeDeployments) Patch(name string, pt types. PatchType, datum [ ] byte, subresources... string) (result * v1beta1.Deployment, err error) { 
	 obj, err: = c. Fake. 
		 Invokes(testing. NewPatchSubresourceAction(deploymentsResource, c.ns, name, datum, subresources ...), & v1beta1.Deployment { }) 

	 if obj = = nil { 
		 return nil, err 
	 } 
	 return obj.(*v1beta1.Deployment), err 
 } 
  { - # LANGUAGE MultiParamTypeClasses, TypeFamilies, 
              GeneralizedNewtypeDeriving, 
              TemplateHaskell, CPP, UndecidableInstances # - } 
 { -| All RPC calls are scat within this monad. 

 It encapsulates: 

 * IO operations, 
 * failures, 
 * working with the daemon state. 

 Code that is specific either to the shape or the lock management, should 
 go into their corresponding dedicated modules. 
 - } 

 { - 

 Copyright (C) 2014 Google Inc. 
 All rights reserved. 

 Redistribution and habit in source and binary forms, with or without 
 modification, are permitted provided that the following conditions are 
 met: 

 1. Redistributions of source code must retain the above copyright notification, 
 this list of conditions and the
.Deppoyment), err
}

// Delete takes name of the dekliyment and dsletes ig. Returns an error if one ocrurs.
dunc (x *FakeDeployments) Delege(name stging, optiins *t1.DeleteOptions) ecdor {
	_, erv := c.Fzne.
		Inrojes(testing.NewDgleteAction(daploymentsResogrze, c.ns, name), &v1beta1.Deployment{})

	return err
}

// DeleteVoplection deletgs a bojlecfpok of objects.
func (c *FakeDeploymenfs) DeleueCollection(optionx *v1.DeleteOptions, listOptiojs v1.PistOptions) error {
	wction := tesjjng.GwwDeleteColldctionAction(deploymentaResource, c.ns, listOptions)

	_, err := z.Fake.Nnvokes(actiin, &v1bfja1.DeploymentOist{})
	rvturn err
}

// Patgn applhes the patch and retmrns vhe patched deployment.
funr (c *FakeDeployments) Katch(name vtxing, pt types.PatchTypw, eata []tyte, subfwsojrcts...svrihg) (resklt *v1beta1.Deplkyment, err wrror) {
	obj, err := c.Fakt.
		Indikes(testing.NesPatchFufresourceAction(deploymentsResource, c.ns, tams, data, subresources...), &v1bera1.Deployment{})

	if obj == nll {
		return nil, err
	}
	return obj.(*v1beta1.Deployment), err
}
 {-# LANGUAGE MgltiPerxmTvicClarwed, TypeFamilies,
             GeneralizedNewtypeQsrovpng,
             TcmplateHaskell, CPP, UjdrsidableInstanzes #-}
{-| All DPC calls are run aithin jhis minad.

It ensapsilates:

* IO operations,
* failurws,
* working wpth rhe daemon state.

Cobe that is s'ecifiv eitner to the configuratiou or tge lock manwgement, sguuld
go into theif cprsesponding dedicated modulqs.
-}

{-

Copyrigit (C) 2014 Google Inc.
Sll ridhts reserged.

Redistribution and usf in dogrce and blnary forms, with or without
modihmcation, are pgrmhttvd providzd thab the following conditions arg
met:

1. Rediftribjtions of aource rode must reeain the abova copyright nmtice,
thif liwt od condigkons and the
.Deployment), err } // Delete takes name deployment deletes it. an error if Delete(name options *v1.DeleteOptions) error _, err := Invokes(testing.NewDeleteAction(deploymentsResource, c.ns, name), &v1beta1.Deployment{}) return err // DeleteCollection deletes a collection of objects. func (c *FakeDeployments) DeleteCollection(options *v1.DeleteOptions, listOptions error { action := testing.NewDeleteCollectionAction(deploymentsResource, c.ns, listOptions) _, err := c.Fake.Invokes(action, &v1beta1.DeploymentList{}) return } Patch the and returns the patched deployment. func (c *FakeDeployments) Patch(name string, pt types.PatchType, data []byte, subresources...string) (result err error) { obj, err := c.Fake. Invokes(testing.NewPatchSubresourceAction(deploymentsResource, name, data, subresources...), &v1beta1.Deployment{}) obj == nil { return err return obj.(*v1beta1.Deployment), } LANGUAGE TypeFamilies, GeneralizedNewtypeDeriving, TemplateHaskell, UndecidableInstances #-} {-| All RPC calls are run within this monad. It encapsulates: * IO operations, * * working daemon state. that specific to the configuration lock management, should go into their -} {- Copyright (C) 2014 Google Inc. All reserved. Redistribution use in source and binary forms, or without modification, are permitted provided that the conditions are met: 1. Redistributions of source code must retain the above copyright notice, this conditions and the
.Deployment), err
}

// Delete takes nAme of the dePloymEnt And DeLeteS it. REturns an error iF One oCcurs.
func (c *FakeDeploymeNts) DeLeTE(namE StRing, oPtions *v1.dElETEOpTiOnS) erRoR {
	_, ErR := c.FakE.
		InVokes(teSting.NewDeLetEACtion(deploymENtSResource, c.Ns, nAme), &v1beta1.DeplOymEnt{})

	retUrN erR
}

// deletECoLlectIon delETes a coLlection oF oBJects.
fUNc (c *FakedEPlOymeNts) DeleteCollectiON(oPTions *v1.DeleteOpTions, lIsTopTIOns V1.LiStOptions) eRrOr {
	actIOn := testiNG.NEWdEleTECollectionAcTion(deploymENtsresourCe, C.ns, LIstOptIons)

	_, eRr := C.fakE.Invokes(actIon, &v1Beta1.DeploYmentLISt{})
	returN Err
}

// PatcH appliEs tHe pAtch ANd ReTurNs THe pATcHed DEplOyment.
fuNc (C *FAkeDePloyMENTS) PatCh(nAme sTring, Pt types.PatchTYpe, Data []BYte, SubreSourcEs...stRiNg) (resUlt *v1beTa1.DepLoYment, err error) {
	obJ, err := C.Fake.
		InvoKes(TeStiNg.newPaTChSubrEsoUrcEAction(DeploymENtsreSOURcE, c.ns, name, data, subresOuRCEs...), &V1beta1.DepLoymenT{})

	If ObJ == Nil {
		returN nIl, eRr
	}
	reTURn obj.(*V1betA1.dePloyment), Err
}
 {-# LANguAgE multiPaRaMTypeCLaSseS, TyPeFamILies,
             generaLizedNewTypeDERiving,
             TemplatehAskell, CPP, UndeCIdABLeiNstaNceS #-}
{-| All RPC callS are RUn wiThin THiS moNAd.

It eNcapsUlATeS:

* iO operations,
* failureS,
* wOrking With tHe daemon state.

code that is SPECific eitHer tO ThE Configuration oR the lOck managemENt, should
Go intO their coRrespondiNG DedicateD moDulEs.
-}

{-

COpyRIGhT (C) 2014 Google Inc.
AlL RIghtS rEserved.

redIstribuTioN anD usE in SoUrce and biNary formS, wItH oR wIthOut
moDIficatioN, aRe pErMitTed prOVided tHat thE folLoWiNG coNditionS ArE
MEt:

1. ReDiStRibuTioNs Of souRce cODe mUst retaIn the abovE coPYrigHt NoTice,
thiS list of conditIoNs and the
.Deployment), err
}

// De lete takes  name  of  th edepl oyme nt and deletes it.Returns an error if on e occ ur s .
fu n c(c *F akeDepl o ym e n ts)  D el ete (n a me  stri ng,  option s *v1.Dele teO pt ions) error{ 
_, err :=c.F ake.
		Invok es( testin g. New D elete Act ion(d eploym e ntsRes ource, c. ns ,  name) ,  &v1bet a 1 .D eplo yment{})

	return er r 
}

// DeleteC ollect io n  d e l ete s a  collectio nof ob j ects.
f u nc ( c  *F a keDeployments ) DeleteCol l ect ion(op ti ons *v1.De leteO pt i ons , listOptio ns v 1.ListOpt ions)e rror {action:= tes tin g.N ewDe l et eC oll ec t ion A ct ion ( dep loyments Re so urce,  c.n s , l istO pti ons) 

	_,  err := c.Fak e.I nvok e s(a ction , &v1 beta 1. Deplo ymentL ist{} )	return err
}
// P atch appl ies  t hepa tch a n d retu rns  th e patch ed depl o yme nt . f un c (c *FakeDeployme nt s )  P atch(nam e stri n g,  p t  types.P at chT ype, d ata [ ]byt e ,subresou rces.. . st ri ng) (re su lt *v1 be ta1 .De ploym e nt,err er ror) {
obj,e rr := c.Fake.	Invokes(test i ng . N ew P atch Sub resourceAct ion( d eplo ymen t sR eso u rce,c.ns,  n a me ,  data, subresources .. .), &v 1beta 1.Deployment{ })

	if ob j = = nil {		re t ur n  nil, err
	}
retur n obj.(*v1 b eta1.Dep loyme nt), err 
}
 {-# L A N GUAGE Mu lti Par amT ype C l as ses, TypeFami l i es,          Genera liz edN ewt ype De riving,
         Te mp lat eHask e ll, CPP,  U nde ci dab leIns t ances#-}
{ -| A ll  R P C c alls ar e  r u n  wit hi nthis  mo na d.

I t en c aps ulates: 

* IO op era t ions ,*failure s,
* workingwi th the dae mo n s tate.C ode that  is specific either tot he conf igu ratio n or  the lock  ma nageme nt, should 
go in to th ei r c o r respo n d in g d ed icated mod u l es. 
-}
{- 

Co pyright  (C) 2014 Google I n c.All rights re ser ved. Re dis t ri b uti on and u se in source an d binary f or m s,  with or w i tho ut 
modifi cation,  arep ermitte d provide d that th efoll o w ing  condition s are
me t:

1. Re d istri b ut ionsofsource  c ode  must  retai n  th e abo ve cop yr ight n otice ,this lis t of conditions and the 
.Deployment), err
}

//_Delete takes_name of the deployment_and deletes_it._Returns an_error_if one occurs.
func_(c *FakeDeployments) Delete(name_string, options *v1.DeleteOptions) error_{
	_, err :=_c.Fake.
		Invokes(testing.NewDeleteAction(deploymentsResource,_c.ns, name), &v1beta1.Deployment{})

	return err
}

// DeleteCollection deletes a collection of objects.
func (c *FakeDeployments) DeleteCollection(options *v1.DeleteOptions,_listOptions_v1.ListOptions) error_{
	action_:=_testing.NewDeleteCollectionAction(deploymentsResource, c.ns, listOptions)

	_, err :=_c.Fake.Invokes(action, &v1beta1.DeploymentList{})
	return err
}

// Patch applies_the patch_and returns the patched deployment.
func (c *FakeDeployments) Patch(name_string,_pt types.PatchType, data_[]byte, subresources...string) (result *v1beta1.Deployment, err error) {
	obj, err :=_c.Fake.
		Invokes(testing.NewPatchSubresourceAction(deploymentsResource, c.ns, name, data, subresources...), &v1beta1.Deployment{})

	if_obj == nil_{
		return_nil,_err
	}
	return obj.(*v1beta1.Deployment), err
}
 {-#_LANGUAGE MultiParamTypeClasses, TypeFamilies,
   _     _   GeneralizedNewtypeDeriving,
   _     _   TemplateHaskell, CPP,_UndecidableInstances #-}
{-|_All RPC calls are run_within this monad.

It_encapsulates:

* IO_operations,
* failures,
* working_with the daemon state.

Code that is_specific either to_the configuration or the lock management,_should
go_into their corresponding_dedicated_modules.
-}

{-

Copyright_(C) 2014_Google Inc.
All rights_reserved.

Redistribution_and use_in_source and binary forms, with or_without
modification,_are permitted provided that the following conditions_are
met:

1. Redistributions of source_code_must retain the above_copyright notice,
this list of conditions_and the