Class UsersResource.DataTypesResource.DataPointsResource.PatchRequest
Updates a single identifiable data point. If a data point with the specified name is not found,
the request will fail.
Inheritance
Inherited Members
Namespace: Google.Apis.GoogleHealthAPI.v4
Assembly: Google.Apis.GoogleHealthAPI.v4.dll
Syntax
public class UsersResource.DataTypesResource.DataPointsResource.PatchRequest : GoogleHealthAPIBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
PatchRequest(IClientService, DataPoint, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, DataPoint body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| DataPoint | 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
Identifier. Data point name, only supported for the subset of identifiable data types. For the
majority of the data types, individual data points do not need to be identified and this field
would be empty. Format: users/{user}/dataTypes/{data_type}/dataPoints/{data_point} Example:
users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef The {user} ID
is a system-generated identifier, as described in Identity.health_user_id. The {data_type} ID
corresponds to the kebab-case version of the field names in the DataPoint data union field, e.g.
total-calories for the total_calories field. The {data_point} ID can be client-provided or
system-generated. If client-provided, it must be a string of 4-63 characters, containing only
lowercase letters, numbers, and hyphens.
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
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()