Class UsersResource.DataSourcesResource.UpdateRequest
Updates the specified data source. The dataStreamId, dataType, type, dataStreamName, and device properties with the exception of version, cannot be modified. Data sources are identified by their dataStreamId.
Inheritance
UsersResource.DataSourcesResource.UpdateRequest
Inherited Members
Namespace: Google.Apis.Fitness.v1
Assembly: Google.Apis.Fitness.v1.dll
Syntax
public class UsersResource.DataSourcesResource.UpdateRequest : FitnessBaseServiceRequest<DataSource>, IClientServiceRequest<DataSource>, IClientServiceRequest
Constructors
UpdateRequest(IClientService, DataSource, string, string)
Constructs a new Update request.
Declaration
public UpdateRequest(IClientService service, DataSource body, string userId, string dataSourceId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| DataSource | body | |
| string | userId | |
| string | dataSourceId |
Properties
DataSourceId
The data stream ID of the data source to update.
Declaration
[RequestParameter("dataSourceId", RequestParameterType.Path)]
public virtual string DataSourceId { 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.DataSource>.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.DataSource>.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.DataSource>.RestPath
UserId
Update the data source 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.DataSource>.GetBody()
InitParameters()
Initializes Update parameter list.
Declaration
protected override void InitParameters()