gogol-iam-0.5.0: Google Identity and Access Management (IAM) 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.IAM.Projects.ServiceAccounts.Patch

Contents

Description

Patches a ServiceAccount. Currently, only the following fields are updatable: `display_name` and `description`. Only fields specified in the request are guaranteed to be returned in the response. Other fields in the response may be empty. Note: The field mask is required.

See: Identity and Access Management (IAM) API Reference for iam.projects.serviceAccounts.patch.

Synopsis

REST Resource

type ProjectsServiceAccountsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PatchServiceAccountRequest :> Patch '[JSON] ServiceAccount)))))))) Source #

A resource alias for iam.projects.serviceAccounts.patch method which the ProjectsServiceAccountsPatch request conforms to.

Creating a Request

projectsServiceAccountsPatch Source #

Creates a value of ProjectsServiceAccountsPatch with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ProjectsServiceAccountsPatch Source #

Patches a ServiceAccount. Currently, only the following fields are updatable: `display_name` and `description`. Only fields specified in the request are guaranteed to be returned in the response. Other fields in the response may be empty. Note: The field mask is required.

See: projectsServiceAccountsPatch smart constructor.

Instances
Eq ProjectsServiceAccountsPatch Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.Patch

Data ProjectsServiceAccountsPatch Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.Patch

Methods

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

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

toConstr :: ProjectsServiceAccountsPatch -> Constr #

dataTypeOf :: ProjectsServiceAccountsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsServiceAccountsPatch Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.Patch

Generic ProjectsServiceAccountsPatch Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.Patch

Associated Types

type Rep ProjectsServiceAccountsPatch :: Type -> Type #

GoogleRequest ProjectsServiceAccountsPatch Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.Patch

type Rep ProjectsServiceAccountsPatch Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.Patch

type Rep ProjectsServiceAccountsPatch = D1 (MetaData "ProjectsServiceAccountsPatch" "Network.Google.Resource.IAM.Projects.ServiceAccounts.Patch" "gogol-iam-0.5.0-AhgHzkqUbFwIp2TGTeE7eX" False) (C1 (MetaCons "ProjectsServiceAccountsPatch'" PrefixI True) ((S1 (MetaSel (Just "_psapXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_psapUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_psapAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_psapUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_psapPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PatchServiceAccountRequest)) :*: (S1 (MetaSel (Just "_psapName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_psapCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsServiceAccountsPatch Source # 
Instance details

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.Patch

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

Defined in Network.Google.Resource.IAM.Projects.ServiceAccounts.Patch

Request Lenses

psapUploadProtocol :: Lens' ProjectsServiceAccountsPatch (Maybe Text) Source #

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

psapUploadType :: Lens' ProjectsServiceAccountsPatch (Maybe Text) Source #

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

psapName :: Lens' ProjectsServiceAccountsPatch Text Source #

The resource name of the service account in the following format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Requests using `-` as a wildcard for the `PROJECT_ID` will infer the project from the `account` and the `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. In responses the resource name will always be in the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.