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 |
Creates a new company entity.
See: Cloud Talent Solution API Reference for jobs.projects.companies.create
.
Synopsis
- type ProjectsCompaniesCreateResource = "v3p1beta1" :> (Capture "parent" Text :> ("companies" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateCompanyRequest :> Post '[JSON] Company)))))))))
- projectsCompaniesCreate :: Text -> CreateCompanyRequest -> ProjectsCompaniesCreate
- data ProjectsCompaniesCreate
- pccParent :: Lens' ProjectsCompaniesCreate Text
- pccXgafv :: Lens' ProjectsCompaniesCreate (Maybe Xgafv)
- pccUploadProtocol :: Lens' ProjectsCompaniesCreate (Maybe Text)
- pccAccessToken :: Lens' ProjectsCompaniesCreate (Maybe Text)
- pccUploadType :: Lens' ProjectsCompaniesCreate (Maybe Text)
- pccPayload :: Lens' ProjectsCompaniesCreate CreateCompanyRequest
- pccCallback :: Lens' ProjectsCompaniesCreate (Maybe Text)
REST Resource
type ProjectsCompaniesCreateResource = "v3p1beta1" :> (Capture "parent" Text :> ("companies" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateCompanyRequest :> Post '[JSON] Company))))))))) Source #
A resource alias for jobs.projects.companies.create
method which the
ProjectsCompaniesCreate
request conforms to.
Creating a Request
projectsCompaniesCreate Source #
Creates a value of ProjectsCompaniesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsCompaniesCreate Source #
Creates a new company entity.
See: projectsCompaniesCreate
smart constructor.
Instances
Request Lenses
pccParent :: Lens' ProjectsCompaniesCreate Text Source #
Required. Resource name of the project under which the company is created. The format is "projects/{project_id}", for example, "projects/api-test-project".
pccUploadProtocol :: Lens' ProjectsCompaniesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pccAccessToken :: Lens' ProjectsCompaniesCreate (Maybe Text) Source #
OAuth access token.
pccUploadType :: Lens' ProjectsCompaniesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pccPayload :: Lens' ProjectsCompaniesCreate CreateCompanyRequest Source #
Multipart request metadata.
pccCallback :: Lens' ProjectsCompaniesCreate (Maybe Text) Source #
JSONP