Class CasesResource.PatchRequest
Update the specified case. Only a subset of fields can be updated. Here is an example of calling this endpoint using cURL:
shell case="projects/some-project/cases/43595344" curl \ --request PATCH \ --header
"Authorization: Bearer $(gcloud auth print-access-token)" \ --header "Content-Type: application/json" \
--data '{ "priority": "P1" }' \ "https://cloudsupport.googleapis.com/v2/$case?updateMask=priority"
Inheritance
Inherited Members
Namespace: Google.Apis.CloudSupport.v2beta
Assembly: Google.Apis.CloudSupport.v2beta.dll
Syntax
public class CasesResource.PatchRequest : CloudSupportBaseServiceRequest<Case>, IClientServiceRequest<Case>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Case, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Case body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Case | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
The resource name for the case.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UpdateMask
A list of attributes of the case object that should be updated as part of this request. Supported values
are priority
, display_name
, and subscriber_email_addresses
. If no fields are specified, all
supported fields are updated. WARNING: If you do not provide a field mask, then you might accidentally
clear some fields. For example, if you leave the field mask empty and do not provide a value for
subscriber_email_addresses
, then subscriber_email_addresses
is updated to empty.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()