Class ProjectsResource.CompaniesResource
The "companies" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudTalentSolution.v3
Assembly: Google.Apis.CloudTalentSolution.v3.dll
Syntax
public class ProjectsResource.CompaniesResource
Constructors
CompaniesResource(IClientService)
Constructs a new resource.
Declaration
public CompaniesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(CreateCompanyRequest, string)
Creates a new company entity.
Declaration
public virtual ProjectsResource.CompaniesResource.CreateRequest Create(CreateCompanyRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
CreateCompanyRequest | body | The body of the request. |
string | parent | Required. Resource name of the project under which the company is created. The format is "projects/{project_id}", for example, "projects/api-test-project". |
Returns
Type | Description |
---|---|
ProjectsResource.CompaniesResource.CreateRequest |
Delete(string)
Deletes specified company. Prerequisite: The company has no jobs associated with it.
Declaration
public virtual ProjectsResource.CompaniesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the company to be deleted. The format is "projects/{project_id}/companies/{company_id}", for example, "projects/api-test-project/companies/foo". |
Returns
Type | Description |
---|---|
ProjectsResource.CompaniesResource.DeleteRequest |
Get(string)
Retrieves specified company.
Declaration
public virtual ProjectsResource.CompaniesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the company to be retrieved. The format is "projects/{project_id}/companies/{company_id}", for example, "projects/api-test-project/companies/foo". |
Returns
Type | Description |
---|---|
ProjectsResource.CompaniesResource.GetRequest |
List(string)
Lists all companies associated with the service account.
Declaration
public virtual ProjectsResource.CompaniesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Resource name of the project under which the company is created. The format is "projects/{project_id}", for example, "projects/api-test-project". |
Returns
Type | Description |
---|---|
ProjectsResource.CompaniesResource.ListRequest |
Patch(UpdateCompanyRequest, string)
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.
Declaration
public virtual ProjectsResource.CompaniesResource.PatchRequest Patch(UpdateCompanyRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
UpdateCompanyRequest | body | The body of the request. |
string | name | 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". |
Returns
Type | Description |
---|---|
ProjectsResource.CompaniesResource.PatchRequest |