Class CompaniesResource.PatchRequest
Updates the 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.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudTalentSolution.v2
Assembly: Google.Apis.CloudTalentSolution.v2.dll
Syntax
public class PatchRequest : CloudTalentSolutionBaseServiceRequest<Company>, IClientServiceRequest<Company>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Company, String)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Company body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Company | body | |
System.String | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Name
Required during company update. The resource name for a company. This is generated by the service when a company is created, for example, "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd".
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
UpdateCompanyFields
Optional but strongly recommended to be provided for the best service experience. If update_company_fields is provided, only the specified fields in company are updated. Otherwise all the fields are updated. A field mask to specify the company fields to update. Valid values are: * displayName * website * imageUrl * companySize * distributorBillingCompanyId * companyInfoSources * careerPageLink * hiringAgency * hqLocation * eeoText * keywordSearchableCustomAttributes * title (deprecated) * keywordSearchableCustomFields (deprecated)
Declaration
[RequestParameter("updateCompanyFields", RequestParameterType.Query)]
public virtual object UpdateCompanyFields { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
System.Object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()