Class UsersResource.DataSourcesResource.DatasetsResource.PatchRequest
Adds data points to a dataset. The dataset need not be previously created. All points within the given dataset will be returned with subsquent calls to retrieve this dataset. Data points can belong to more than one dataset. This method does not use patch semantics: the data points provided are merely inserted, with no existing data replaced.
Inheritance
UsersResource.DataSourcesResource.DatasetsResource.PatchRequest
Inherited Members
Namespace: Google.Apis.Fitness.v1
Assembly: Google.Apis.Fitness.v1.dll
Syntax
public class UsersResource.DataSourcesResource.DatasetsResource.PatchRequest : FitnessBaseServiceRequest<Dataset>, IClientServiceRequest<Dataset>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Dataset, string, string, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Dataset body, string userId, string dataSourceId, string datasetId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Dataset | body | |
string | userId | |
string | dataSourceId | |
string | datasetId |
Properties
DataSourceId
The data stream ID of the data source that created the dataset.
Declaration
[RequestParameter("dataSourceId", RequestParameterType.Path)]
public virtual string DataSourceId { get; }
Property Value
Type | Description |
---|---|
string |
DatasetId
This field is not used, and can be safely omitted.
Declaration
[RequestParameter("datasetId", RequestParameterType.Path)]
public virtual string DatasetId { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Fitness.v1.Data.Dataset>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Fitness.v1.Data.Dataset>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Fitness.v1.Data.Dataset>.RestPath
UserId
Patch a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.
Declaration
[RequestParameter("userId", RequestParameterType.Path)]
public virtual string UserId { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Fitness.v1.Data.Dataset>.GetBody()
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()