Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Updates specified company. Company names can't be updated. To update a company name, delete the company and all jobs associated with it, and only then re-create them.
See: Cloud Talent Solution API Reference for jobs.projects.companies.patch
.
Synopsis
- type ProjectsCompaniesPatchResource = "v3p1beta1" :> (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] UpdateCompanyRequest :> Patch '[JSON] Company))))))))
- projectsCompaniesPatch :: UpdateCompanyRequest -> Text -> ProjectsCompaniesPatch
- data ProjectsCompaniesPatch
- pcpXgafv :: Lens' ProjectsCompaniesPatch (Maybe Xgafv)
- pcpUploadProtocol :: Lens' ProjectsCompaniesPatch (Maybe Text)
- pcpAccessToken :: Lens' ProjectsCompaniesPatch (Maybe Text)
- pcpUploadType :: Lens' ProjectsCompaniesPatch (Maybe Text)
- pcpPayload :: Lens' ProjectsCompaniesPatch UpdateCompanyRequest
- pcpName :: Lens' ProjectsCompaniesPatch Text
- pcpCallback :: Lens' ProjectsCompaniesPatch (Maybe Text)
REST Resource
type ProjectsCompaniesPatchResource = "v3p1beta1" :> (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] UpdateCompanyRequest :> Patch '[JSON] Company)))))))) Source #
A resource alias for jobs.projects.companies.patch
method which the
ProjectsCompaniesPatch
request conforms to.
Creating a Request
projectsCompaniesPatch Source #
Creates a value of ProjectsCompaniesPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsCompaniesPatch Source #
Updates specified company. Company names can't be updated. To update a company name, delete the company and all jobs associated with it, and only then re-create them.
See: projectsCompaniesPatch
smart constructor.
Instances
Request Lenses
pcpUploadProtocol :: Lens' ProjectsCompaniesPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pcpAccessToken :: Lens' ProjectsCompaniesPatch (Maybe Text) Source #
OAuth access token.
pcpUploadType :: Lens' ProjectsCompaniesPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pcpPayload :: Lens' ProjectsCompaniesPatch UpdateCompanyRequest Source #
Multipart request metadata.
pcpName :: Lens' ProjectsCompaniesPatch Text Source #
Required during company update. The resource name for a company. This is generated by the service when a company is created. The format is "projects/{project_id}/companies/{company_id}", for example, "projects/api-test-project/companies/foo".
pcpCallback :: Lens' ProjectsCompaniesPatch (Maybe Text) Source #
JSONP