diff --git a/discovery/fitness-v1.json b/discovery/fitness-v1.json index 0bbd9e9f64..c78d36a695 100644 --- a/discovery/fitness-v1.json +++ b/discovery/fitness-v1.json @@ -59,9 +59,9 @@ } } }, - "basePath": "", - "baseUrl": "https://www.googleapis.com/", - "batchPath": "batch/fitness/v1", + "basePath": "/fitness/v1/users/", + "baseUrl": "https://fitness.googleapis.com/fitness/v1/users/", + "batchPath": "batch", "description": "The Fitness API for managing users' fitness tracking data.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/fit/rest/v1/get-started", @@ -71,7 +71,7 @@ }, "id": "fitness:v1", "kind": "discovery#restDescription", - "mtlsRootUrl": "https://www.mtls.googleapis.com/", + "mtlsRootUrl": "https://fitness.mtls.googleapis.com/", "name": "fitness", "ownerDomain": "google.com", "ownerName": "Google", @@ -159,8 +159,8 @@ "dataSources": { "methods": { "create": { - "description": "Creates a new data source that is unique across all data sources belonging\nto this user.\n\nA data source is a unique source of sensor data. Data sources can expose\nraw data coming from hardware sensors on local or companion devices. They\ncan also expose derived data, created by transforming or merging other data\nsources. Multiple data sources can exist for the same data type. Every data\npoint in every dataset inserted into or read from the Fitness API has an\nassociated data source.\n\nEach data source produces a unique stream of dataset updates, with a\nunique data source identifier. Not all changes to data source affect the\ndata stream ID, so that data collected by updated versions of the same\napplication/device can still be considered to belong to the same data\nsource.\n\nData sources are identified using a string generated by the server, based\non the contents of the source being created. The dataStreamId\nfield should not be set when invoking this method. It\nwill be automatically generated by the server with the correct format. If\na dataStreamId is set, it must match the format that the\nserver would generate. This format is a combination of some fields from the\ndata source, and has a specific order. If it doesn't match, the request\nwill fail with an error.\n\nSpecifying a DataType which is not a known type (beginning with\n\"com.google.\") will create a DataSource with a custom data type.\nCustom data types are only readable by the application that created them.\nCustom data types are deprecated; use standard data types\ninstead.\n\nIn addition to the data source fields included in the data source ID, the\ndeveloper project number that is authenticated when creating the data\nsource is included. This developer project number is obfuscated when read\nby any other developer reading public data types.", - "flatPath": "fitness/v1/users/{userId}/dataSources", + "description": "Creates a new data source that is unique across all data sources belonging to this user. A data source is a unique source of sensor data. Data sources can expose raw data coming from hardware sensors on local or companion devices. They can also expose derived data, created by transforming or merging other data sources. Multiple data sources can exist for the same data type. Every data point in every dataset inserted into or read from the Fitness API has an associated data source. Each data source produces a unique stream of dataset updates, with a unique data source identifier. Not all changes to data source affect the data stream ID, so that data collected by updated versions of the same application/device can still be considered to belong to the same data source. Data sources are identified using a string generated by the server, based on the contents of the source being created. The dataStreamId field should not be set when invoking this method. It will be automatically generated by the server with the correct format. If a dataStreamId is set, it must match the format that the server would generate. This format is a combination of some fields from the data source, and has a specific order. If it doesn't match, the request will fail with an error. Specifying a DataType which is not a known type (beginning with \"com.google.\") will create a DataSource with a *custom data type*. Custom data types are only readable by the application that created them. Custom data types are *deprecated*; use standard data types instead. In addition to the data source fields included in the data source ID, the developer project number that is authenticated when creating the data source is included. This developer project number is obfuscated when read by any other developer reading public data types.", + "flatPath": "{userId}/dataSources", "httpMethod": "POST", "id": "fitness.users.dataSources.create", "parameterOrder": [ @@ -168,13 +168,13 @@ ], "parameters": { "userId": { - "description": "Create the data source for the person identified. Use me to\nindicate the authenticated user. Only me is supported at this\ntime.", + "description": "Create the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.", "location": "path", "required": true, "type": "string" } }, - "path": "fitness/v1/users/{userId}/dataSources", + "path": "{userId}/dataSources", "request": { "$ref": "DataSource" }, @@ -194,8 +194,8 @@ ] }, "delete": { - "description": "Deletes the specified data source. The request will fail if the data\nsource contains any data points.", - "flatPath": "fitness/v1/users/{userId}/dataSources/{dataSourceId}", + "description": "Deletes the specified data source. The request will fail if the data source contains any data points.", + "flatPath": "{userId}/dataSources/{dataSourceId}", "httpMethod": "DELETE", "id": "fitness.users.dataSources.delete", "parameterOrder": [ @@ -210,13 +210,13 @@ "type": "string" }, "userId": { - "description": "Retrieve a data source for the person identified. Use me to\nindicate the authenticated user. Only me is supported at this\ntime.", + "description": "Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.", "location": "path", "required": true, "type": "string" } }, - "path": "fitness/v1/users/{userId}/dataSources/{dataSourceId}", + "path": "{userId}/dataSources/{dataSourceId}", "response": { "$ref": "DataSource" }, @@ -234,7 +234,7 @@ }, "get": { "description": "Returns the specified data source.", - "flatPath": "fitness/v1/users/{userId}/dataSources/{dataSourceId}", + "flatPath": "{userId}/dataSources/{dataSourceId}", "httpMethod": "GET", "id": "fitness.users.dataSources.get", "parameterOrder": [ @@ -249,13 +249,13 @@ "type": "string" }, "userId": { - "description": "Retrieve a data source for the person identified. Use me to\nindicate the authenticated user. Only me is supported at this\ntime.", + "description": "Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.", "location": "path", "required": true, "type": "string" } }, - "path": "fitness/v1/users/{userId}/dataSources/{dataSourceId}", + "path": "{userId}/dataSources/{dataSourceId}", "response": { "$ref": "DataSource" }, @@ -281,8 +281,8 @@ ] }, "list": { - "description": "Lists all data sources that are visible to the developer, using the OAuth\nscopes provided. The list is not exhaustive; the user may have private\ndata sources that are only visible to other developers, or calls using\nother scopes.", - "flatPath": "fitness/v1/users/{userId}/dataSources", + "description": "Lists all data sources that are visible to the developer, using the OAuth scopes provided. The list is not exhaustive; the user may have private data sources that are only visible to other developers, or calls using other scopes.", + "flatPath": "{userId}/dataSources", "httpMethod": "GET", "id": "fitness.users.dataSources.list", "parameterOrder": [ @@ -290,19 +290,19 @@ ], "parameters": { "dataTypeName": { - "description": "The names of data types to include in the list. If not specified, all\ndata sources will be returned.", + "description": "The names of data types to include in the list. If not specified, all data sources will be returned.", "location": "query", "repeated": true, "type": "string" }, "userId": { - "description": "List data sources for the person identified. Use me to\nindicate the authenticated user. Only me is supported at this\ntime.", + "description": "List data sources for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.", "location": "path", "required": true, "type": "string" } }, - "path": "fitness/v1/users/{userId}/dataSources", + "path": "{userId}/dataSources", "response": { "$ref": "ListDataSourcesResponse" }, @@ -328,8 +328,8 @@ ] }, "update": { - "description": "Updates the specified data source. The dataStreamId,\ndataType, type, dataStreamName, and\ndevice properties with the exception of version,\ncannot be modified.\n\nData sources are identified by their dataStreamId.", - "flatPath": "fitness/v1/users/{userId}/dataSources/{dataSourceId}", + "description": "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.", + "flatPath": "{userId}/dataSources/{dataSourceId}", "httpMethod": "PUT", "id": "fitness.users.dataSources.update", "parameterOrder": [ @@ -344,13 +344,13 @@ "type": "string" }, "userId": { - "description": "Update the data source for the person identified. Use me to\nindicate the authenticated user. Only me is supported at this\ntime.", + "description": "Update the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.", "location": "path", "required": true, "type": "string" } }, - "path": "fitness/v1/users/{userId}/dataSources/{dataSourceId}", + "path": "{userId}/dataSources/{dataSourceId}", "request": { "$ref": "DataSource" }, @@ -375,7 +375,7 @@ "methods": { "list": { "description": "Queries for user's data point changes for a particular data source.", - "flatPath": "fitness/v1/users/{userId}/dataSources/{dataSourceId}/dataPointChanges", + "flatPath": "{userId}/dataSources/{dataSourceId}/dataPointChanges", "httpMethod": "GET", "id": "fitness.users.dataSources.dataPointChanges.list", "parameterOrder": [ @@ -390,24 +390,24 @@ "type": "string" }, "limit": { - "description": "If specified, no more than this many data point changes will be included\nin the response.", + "description": "If specified, no more than this many data point changes will be included in the response.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The continuation token, which is used to page through large result sets.\nTo get the next page of results, set this parameter to the value of\nnextPageToken from the previous response.", + "description": "The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.", "location": "query", "type": "string" }, "userId": { - "description": "List data points for the person identified. Use me to indicate\nthe authenticated user. Only me is supported at this time.", + "description": "List data points for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.", "location": "path", "required": true, "type": "string" } }, - "path": "fitness/v1/users/{userId}/dataSources/{dataSourceId}/dataPointChanges", + "path": "{userId}/dataSources/{dataSourceId}/dataPointChanges", "response": { "$ref": "ListDataPointChangesResponse" }, @@ -437,8 +437,8 @@ "datasets": { "methods": { "delete": { - "description": "Performs an inclusive delete of all data points whose start and end times\nhave any overlap with the time range specified by the dataset ID. For most\ndata types, the entire data point will be deleted. For data types where the\ntime span represents a consistent value (such as\ncom.google.activity.segment), and a data point straddles\neither end point of the dataset, only the overlapping portion of the data\npoint will be deleted.", - "flatPath": "fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}", + "description": "Performs an inclusive delete of all data points whose start and end times have any overlap with the time range specified by the dataset ID. For most data types, the entire data point will be deleted. For data types where the time span represents a consistent value (such as com.google.activity.segment), and a data point straddles either end point of the dataset, only the overlapping portion of the data point will be deleted.", + "flatPath": "{userId}/dataSources/{dataSourceId}/datasets/{datasetId}", "httpMethod": "DELETE", "id": "fitness.users.dataSources.datasets.delete", "parameterOrder": [ @@ -460,7 +460,7 @@ "type": "string" }, "datasetId": { - "description": "Dataset identifier that is a composite of the minimum data point start time\nand maximum data point end time represented as nanoseconds from the epoch.\nThe ID is formatted like: \"startTime-endTime\"\nwhere startTime and endTime are 64 bit integers.", + "description": "Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: \"startTime-endTime\" where startTime and endTime are 64 bit integers.", "location": "path", "required": true, "type": "string" @@ -472,13 +472,13 @@ "type": "string" }, "userId": { - "description": "Delete a dataset for the person identified. Use me to indicate\nthe authenticated user. Only me is supported at this time.", + "description": "Delete a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.", "location": "path", "required": true, "type": "string" } }, - "path": "fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}", + "path": "{userId}/dataSources/{dataSourceId}/datasets/{datasetId}", "scopes": [ "https://www.googleapis.com/auth/fitness.activity.write", "https://www.googleapis.com/auth/fitness.blood_glucose.write", @@ -492,8 +492,8 @@ ] }, "get": { - "description": "Returns a dataset containing all data points whose start and end times\noverlap with the specified range of the dataset minimum start time and\nmaximum end time. Specifically, any data point whose start time is less\nthan or equal to the dataset end time and whose end time is greater than or\nequal to the dataset start time.", - "flatPath": "fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}", + "description": "Returns a dataset containing all data points whose start and end times overlap with the specified range of the dataset minimum start time and maximum end time. Specifically, any data point whose start time is less than or equal to the dataset end time and whose end time is greater than or equal to the dataset start time.", + "flatPath": "{userId}/dataSources/{dataSourceId}/datasets/{datasetId}", "httpMethod": "GET", "id": "fitness.users.dataSources.datasets.get", "parameterOrder": [ @@ -509,30 +509,30 @@ "type": "string" }, "datasetId": { - "description": "Dataset identifier that is a composite of the minimum data point start time\nand maximum data point end time represented as nanoseconds from the epoch.\nThe ID is formatted like: \"startTime-endTime\"\nwhere startTime and endTime are 64 bit integers.", + "description": "Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: \"startTime-endTime\" where startTime and endTime are 64 bit integers.", "location": "path", "required": true, "type": "string" }, "limit": { - "description": "If specified, no more than this many data points will be included in the\ndataset. If there are more data points in the dataset, nextPageToken\nwill be set in the dataset response.", + "description": "If specified, no more than this many data points will be included in the dataset. If there are more data points in the dataset, nextPageToken will be set in the dataset response.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The continuation token, which is used to page through large datasets.\nTo get the next page of a dataset, set this parameter to the value of\nnextPageToken from the previous response. Each subsequent\ncall will yield a partial dataset with data point end timestamps that are\nstrictly smaller than those in the previous partial response.", + "description": "The continuation token, which is used to page through large datasets. To get the next page of a dataset, set this parameter to the value of nextPageToken from the previous response. Each subsequent call will yield a partial dataset with data point end timestamps that are strictly smaller than those in the previous partial response.", "location": "query", "type": "string" }, "userId": { - "description": "Retrieve a dataset for the person identified. Use me to\nindicate the authenticated user. Only me is supported at this\ntime.", + "description": "Retrieve a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.", "location": "path", "required": true, "type": "string" } }, - "path": "fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}", + "path": "{userId}/dataSources/{dataSourceId}/datasets/{datasetId}", "response": { "$ref": "Dataset" }, @@ -558,8 +558,8 @@ ] }, "patch": { - "description": "Adds data points to a dataset. The dataset need not be previously created.\nAll points within the given dataset will be returned with subsquent calls\nto retrieve this dataset. Data points can belong to more than one dataset.\nThis method does not use patch semantics.", - "flatPath": "fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}", + "description": "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.", + "flatPath": "{userId}/dataSources/{dataSourceId}/datasets/{datasetId}", "httpMethod": "PATCH", "id": "fitness.users.dataSources.datasets.patch", "parameterOrder": [ @@ -569,7 +569,7 @@ ], "parameters": { "currentTimeMillis": { - "description": "The client's current time in milliseconds since epoch. Note that the\nminStartTimeNs and maxEndTimeNs properties in\nthe request body are in nanoseconds instead of milliseconds.", + "description": "The client's current time in milliseconds since epoch. Note that the minStartTimeNs and maxEndTimeNs properties in the request body are in nanoseconds instead of milliseconds.", "format": "int64", "location": "query", "type": "string" @@ -581,19 +581,19 @@ "type": "string" }, "datasetId": { - "description": "Dataset identifier that is a composite of the minimum data point start time\nand maximum data point end time represented as nanoseconds from the epoch.\nThe ID is formatted like: \"startTime-endTime\"\nwhere startTime and endTime are 64 bit integers.", + "description": "Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: \"startTime-endTime\" where startTime and endTime are 64 bit integers.", "location": "path", "required": true, "type": "string" }, "userId": { - "description": "Patch a dataset for the person identified. Use me to indicate\nthe authenticated user. Only me is supported at this time.", + "description": "Patch a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.", "location": "path", "required": true, "type": "string" } }, - "path": "fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}", + "path": "{userId}/dataSources/{dataSourceId}/datasets/{datasetId}", "request": { "$ref": "Dataset" }, @@ -619,8 +619,8 @@ "dataset": { "methods": { "aggregate": { - "description": "Aggregates data of a certain type or stream into buckets divided by a given\ntype of boundary. Multiple data sets of multiple types and from multiple\nsources can be aggregated into exactly one bucket type per request.", - "flatPath": "fitness/v1/users/{userId}/dataset:aggregate", + "description": "Aggregates data of a certain type or stream into buckets divided by a given type of boundary. Multiple data sets of multiple types and from multiple sources can be aggregated into exactly one bucket type per request.", + "flatPath": "{userId}/dataset:aggregate", "httpMethod": "POST", "id": "fitness.users.dataset.aggregate", "parameterOrder": [ @@ -628,13 +628,13 @@ ], "parameters": { "userId": { - "description": "Aggregate data for the person identified. Use me to indicate\nthe authenticated user. Only me is supported at this time.", + "description": "Aggregate data for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.", "location": "path", "required": true, "type": "string" } }, - "path": "fitness/v1/users/{userId}/dataset:aggregate", + "path": "{userId}/dataset:aggregate", "request": { "$ref": "AggregateRequest" }, @@ -668,7 +668,7 @@ "methods": { "delete": { "description": "Deletes a session specified by the given session ID.", - "flatPath": "fitness/v1/users/{userId}/sessions/{sessionId}", + "flatPath": "{userId}/sessions/{sessionId}", "httpMethod": "DELETE", "id": "fitness.users.sessions.delete", "parameterOrder": [ @@ -689,20 +689,20 @@ "type": "string" }, "userId": { - "description": "Delete a session for the person identified. Use me to indicate\nthe authenticated user. Only me is supported at this time.", + "description": "Delete a session for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.", "location": "path", "required": true, "type": "string" } }, - "path": "fitness/v1/users/{userId}/sessions/{sessionId}", + "path": "{userId}/sessions/{sessionId}", "scopes": [ "https://www.googleapis.com/auth/fitness.activity.write" ] }, "list": { "description": "Lists sessions previously created.", - "flatPath": "fitness/v1/users/{userId}/sessions", + "flatPath": "{userId}/sessions", "httpMethod": "GET", "id": "fitness.users.sessions.list", "parameterOrder": [ @@ -717,33 +717,33 @@ "type": "integer" }, "endTime": { - "description": "An RFC3339 timestamp.\nOnly sessions ending between the start and end times will be included in\nthe response. If this time is omitted but startTime is\nspecified, all sessions from startTime to the end of time will\nbe returned.", + "description": "An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but startTime is specified, all sessions from startTime to the end of time will be returned.", "location": "query", "type": "string" }, "includeDeleted": { - "description": "If true, and if both startTime and endTime are\nomitted, session deletions will be returned.", + "description": "If true, and if both startTime and endTime are omitted, session deletions will be returned.", "location": "query", "type": "boolean" }, "pageToken": { - "description": "The continuation token, which is used for incremental syncing.\nTo get the next batch of changes, set this parameter to the value of\nnextPageToken from the previous response. The page token is\nignored if either start or end time is specified. If none of start time,\nend time, and the page token is specified, sessions modified in the last\n30 days are returned.", + "description": "The continuation token, which is used for incremental syncing. To get the next batch of changes, set this parameter to the value of nextPageToken from the previous response. The page token is ignored if either start or end time is specified. If none of start time, end time, and the page token is specified, sessions modified in the last 30 days are returned.", "location": "query", "type": "string" }, "startTime": { - "description": "An RFC3339 timestamp.\nOnly sessions ending between the start and end times will be included in\nthe response. If this time is omitted but endTime is specified,\nall sessions from the start of time up to endTime will be\nreturned.", + "description": "An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but endTime is specified, all sessions from the start of time up to endTime will be returned.", "location": "query", "type": "string" }, "userId": { - "description": "List sessions for the person identified. Use me to indicate\nthe authenticated user. Only me is supported at this time.", + "description": "List sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.", "location": "path", "required": true, "type": "string" } }, - "path": "fitness/v1/users/{userId}/sessions", + "path": "{userId}/sessions", "response": { "$ref": "ListSessionsResponse" }, @@ -770,7 +770,7 @@ }, "update": { "description": "Updates or insert a given session.", - "flatPath": "fitness/v1/users/{userId}/sessions/{sessionId}", + "flatPath": "{userId}/sessions/{sessionId}", "httpMethod": "PUT", "id": "fitness.users.sessions.update", "parameterOrder": [ @@ -791,13 +791,13 @@ "type": "string" }, "userId": { - "description": "Create sessions for the person identified. Use me to indicate\nthe authenticated user. Only me is supported at this time.", + "description": "Create sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.", "location": "path", "required": true, "type": "string" } }, - "path": "fitness/v1/users/{userId}/sessions/{sessionId}", + "path": "{userId}/sessions/{sessionId}", "request": { "$ref": "Session" }, @@ -813,8 +813,8 @@ } } }, - "revision": "20200724", - "rootUrl": "https://www.googleapis.com/", + "revision": "20200820", + "rootUrl": "https://fitness.googleapis.com/", "schemas": { "AggregateBucket": { "id": "AggregateBucket", @@ -832,7 +832,7 @@ "type": "array" }, "endTimeMillis": { - "description": "The end time for the aggregated data, in milliseconds since epoch,\ninclusive.", + "description": "The end time for the aggregated data, in milliseconds since epoch, inclusive.", "format": "int64", "type": "string" }, @@ -841,12 +841,12 @@ "description": "Available for Bucket.Type.SESSION" }, "startTimeMillis": { - "description": "The start time for the aggregated data, in milliseconds since epoch,\ninclusive.", + "description": "The start time for the aggregated data, in milliseconds since epoch, inclusive.", "format": "int64", "type": "string" }, "type": { - "description": "The type of a bucket signifies how the data aggregation is performed in the\nbucket.", + "description": "The type of a bucket signifies how the data aggregation is performed in the bucket.", "enum": [ "unknown", "time", @@ -856,10 +856,10 @@ ], "enumDescriptions": [ "", - "Denotes that bucketing by time is requested. When this is specified, the\ntimeBucketDurationMillis field is used to determine how many buckets will\nbe returned.", - "Denotes that bucketing by session is requested. When this is specified,\nonly data that occurs within sessions that begin and end within the\ndataset time frame, is included in the results.", - "Denotes that bucketing by activity type is requested. When this is\nspecified, there will be one bucket for each unique activity type that\na user participated in, during the dataset time frame of interest.", - "Denotes that bucketing by individual activity segment is requested. This\nwill aggregate data by the time boundaries specified by each activity\nsegment occurring within the dataset time frame of interest." + "Denotes that bucketing by time is requested. When this is specified, the timeBucketDurationMillis field is used to determine how many buckets will be returned.", + "Denotes that bucketing by session is requested. When this is specified, only data that occurs within sessions that begin and end within the dataset time frame, is included in the results.", + "Denotes that bucketing by activity type is requested. When this is specified, there will be one bucket for each unique activity type that a user participated in, during the dataset time frame of interest.", + "Denotes that bucketing by individual activity segment is requested. This will aggregate data by the time boundaries specified by each activity segment occurring within the dataset time frame of interest." ], "type": "string" } @@ -871,11 +871,11 @@ "id": "AggregateBy", "properties": { "dataSourceId": { - "description": "A data source ID to aggregate. Only data from the specified data source ID\nwill be included in the aggregation. If specified, this data source must\nexist; the OAuth scopes in the supplied credentials must grant read access\nto this data type. The dataset in the response will have the same data\nsource ID. Note: Data can be aggregated by either the dataTypeName or the\ndataSourceId, not both.", + "description": "A data source ID to aggregate. Only data from the specified data source ID will be included in the aggregation. If specified, this data source must exist; the OAuth scopes in the supplied credentials must grant read access to this data type. The dataset in the response will have the same data source ID. Note: Data can be aggregated by either the dataTypeName or the dataSourceId, not both.", "type": "string" }, "dataTypeName": { - "description": "The data type to aggregate. All data sources providing this data type will\ncontribute data to the aggregation. The response will contain a single\ndataset for this data type name. The dataset will have a data source ID of\nderived::com.google.android.gms:aggregated.\nIf the user has no data for this data type, an empty data set will be\nreturned. Note: Data can be aggregated by either the dataTypeName or the\ndataSourceId, not both.", + "description": "The data type to aggregate. All data sources providing this data type will contribute data to the aggregation. The response will contain a single dataset for this data type name. The dataset will have a data source ID of derived::com.google.android.gms:aggregated. If the user has no data for this data type, an empty data set will be returned. Note: Data can be aggregated by either the dataTypeName or the dataSourceId, not both.", "type": "string" } }, @@ -891,7 +891,7 @@ "fitness.users.dataset.aggregate" ] }, - "description": "The specification of data to be aggregated. At least one aggregateBy spec\nmust be provided. All data that is specified will be aggregated using the\nsame bucketing criteria. There will be one dataset in the response for\nevery aggregateBy spec.", + "description": "The specification of data to be aggregated. At least one aggregateBy spec must be provided. All data that is specified will be aggregated using the same bucketing criteria. There will be one dataset in the response for every aggregateBy spec.", "items": { "$ref": "AggregateBy" }, @@ -899,19 +899,19 @@ }, "bucketByActivitySegment": { "$ref": "BucketByActivity", - "description": "Specifies that data be aggregated each activity segment recored for a user.\nSimilar to bucketByActivitySegment, but bucketing is done for each activity\nsegment rather than all segments of the same type. Mutually exclusive of\nother bucketing specifications." + "description": "Specifies that data be aggregated each activity segment recored for a user. Similar to bucketByActivitySegment, but bucketing is done for each activity segment rather than all segments of the same type. Mutually exclusive of other bucketing specifications." }, "bucketByActivityType": { "$ref": "BucketByActivity", - "description": "Specifies that data be aggregated by the type of activity being performed\nwhen the data was recorded. All data that was recorded during a certain\nactivity type (.for the given time range) will be aggregated into the same\nbucket. Data that was recorded while the user was not active will not be\nincluded in the response. Mutually exclusive of other bucketing\nspecifications." + "description": "Specifies that data be aggregated by the type of activity being performed when the data was recorded. All data that was recorded during a certain activity type (.for the given time range) will be aggregated into the same bucket. Data that was recorded while the user was not active will not be included in the response. Mutually exclusive of other bucketing specifications." }, "bucketBySession": { "$ref": "BucketBySession", - "description": "Specifies that data be aggregated by user sessions. Data that does not fall\nwithin the time range of a session will not be included in the response.\nMutually exclusive of other bucketing specifications." + "description": "Specifies that data be aggregated by user sessions. Data that does not fall within the time range of a session will not be included in the response. Mutually exclusive of other bucketing specifications." }, "bucketByTime": { "$ref": "BucketByTime", - "description": "Specifies that data be aggregated by a single time interval. Mutually\nexclusive of other bucketing specifications." + "description": "Specifies that data be aggregated by a single time interval. Mutually exclusive of other bucketing specifications." }, "endTimeMillis": { "annotations": { @@ -919,7 +919,7 @@ "fitness.users.dataset.aggregate" ] }, - "description": "The end of a window of time. Data that intersects with this time\nwindow will be aggregated. The time is in milliseconds since epoch,\ninclusive.", + "description": "The end of a window of time. Data that intersects with this time window will be aggregated. The time is in milliseconds since epoch, inclusive.", "format": "int64", "type": "string" }, @@ -950,6 +950,18 @@ "dataQualityBloodGlucoseIso151972003", "dataQualityBloodGlucoseIso151972013" ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], "type": "string" }, "type": "array" @@ -960,7 +972,7 @@ "fitness.users.dataset.aggregate" ] }, - "description": "The start of a window of time. Data that intersects with this time\nwindow will be aggregated. The time is in milliseconds since epoch,\ninclusive.", + "description": "The start of a window of time. Data that intersects with this time window will be aggregated. The time is in milliseconds since epoch, inclusive.", "format": "int64", "type": "string" } @@ -995,15 +1007,15 @@ "fitness.users.sessions.update" ] }, - "description": "The name of this application. This is required for REST clients, but we\ndo not enforce uniqueness of this name. It is provided as a matter of\nconvenience for other developers who would like to identify which REST\ncreated an Application or Data Source.", + "description": "The name of this application. This is required for REST clients, but we do not enforce uniqueness of this name. It is provided as a matter of convenience for other developers who would like to identify which REST created an Application or Data Source.", "type": "string" }, "packageName": { - "description": "Package name for this application. This is used as a unique\nidentifier when created by Android applications, but cannot be specified\nby REST clients. REST clients will have their developer project number\nreflected into the Data Source data stream IDs, instead of the packageName.", + "description": "Package name for this application. This is used as a unique identifier when created by Android applications, but cannot be specified by REST clients. REST clients will have their developer project number reflected into the Data Source data stream IDs, instead of the packageName.", "type": "string" }, "version": { - "description": "Version of the application. You should update this field whenever the\napplication changes in a way that affects the computation of the data.", + "description": "Version of the application. You should update this field whenever the application changes in a way that affects the computation of the data.", "type": "string" } }, @@ -1013,11 +1025,11 @@ "id": "BucketByActivity", "properties": { "activityDataSourceId": { - "description": "The default activity stream will be used if a specific activityDataSourceId\nis not specified.", + "description": "The default activity stream will be used if a specific activityDataSourceId is not specified.", "type": "string" }, "minDurationMillis": { - "description": "Specifies that only activity segments of duration longer than\nminDurationMillis are considered and used as a container for aggregated\ndata.", + "description": "Specifies that only activity segments of duration longer than minDurationMillis are considered and used as a container for aggregated data.", "format": "int64", "type": "string" } @@ -1028,7 +1040,7 @@ "id": "BucketBySession", "properties": { "minDurationMillis": { - "description": "Specifies that only sessions of duration longer than minDurationMillis are\nconsidered and used as a container for aggregated data.", + "description": "Specifies that only sessions of duration longer than minDurationMillis are considered and used as a container for aggregated data.", "format": "int64", "type": "string" } @@ -1039,7 +1051,7 @@ "id": "BucketByTime", "properties": { "durationMillis": { - "description": "Specifies that result buckets aggregate data by exactly durationMillis time\nframes. Time frames that contain no data will be included in the response\nwith an empty dataset.", + "description": "Specifies that result buckets aggregate data by exactly durationMillis time frames. Time frames that contain no data will be included in the response with an empty dataset.", "format": "int64", "type": "string" }, @@ -1077,7 +1089,7 @@ "type": "object" }, "DataPoint": { - "description": "Represents a single data point, generated by a particular data source. A\ndata point holds a value for each field, an end timestamp and an optional\nstart time. The exact semantics of each of these attributes are specified in\nthe documentation for the particular data type.\n\nA data point can represent an instantaneous measurement, reading or input\nobservation, as well as averages or aggregates over a time interval. Check\nthe data type documentation to determine which is the case for a particular\ndata type.\n\nData points always contain one value for each field of the data type.", + "description": "Represents a single data point, generated by a particular data source. A data point holds a value for each field, an end timestamp and an optional start time. The exact semantics of each of these attributes are specified in the documentation for the particular data type. A data point can represent an instantaneous measurement, reading or input observation, as well as averages or aggregates over a time interval. Check the data type documentation to determine which is the case for a particular data type. Data points always contain one value for each field of the data type.", "id": "DataPoint", "properties": { "computationTimeMillis": { @@ -1100,17 +1112,17 @@ "fitness.users.dataSources.datasets.patch" ] }, - "description": "The end time of the interval represented by this data point, in\nnanoseconds since epoch.", + "description": "The end time of the interval represented by this data point, in nanoseconds since epoch.", "format": "int64", "type": "string" }, "modifiedTimeMillis": { - "description": "Indicates the last time this data point was modified. Useful only in\ncontexts where we are listing the data changes, rather than representing\nthe current state of the data.", + "description": "Indicates the last time this data point was modified. Useful only in contexts where we are listing the data changes, rather than representing the current state of the data.", "format": "int64", "type": "string" }, "originDataSourceId": { - "description": "If the data point is contained in a dataset for a derived data source,\nthis field will be populated with the data source stream ID that created\nthe data point originally.\n\nWARNING: do not rely on this field for anything other than debugging. The\nvalue of this field, if it is set at all, is an implementation detail and\nis not guaranteed to remain consistent.", + "description": "If the data point is contained in a dataset for a derived data source, this field will be populated with the data source stream ID that created the data point originally. WARNING: do not rely on this field for anything other than debugging. The value of this field, if it is set at all, is an implementation detail and is not guaranteed to remain consistent.", "type": "string" }, "rawTimestampNanos": { @@ -1124,7 +1136,7 @@ "fitness.users.dataSources.datasets.patch" ] }, - "description": "The start time of the interval represented by this data point, in\nnanoseconds since epoch.", + "description": "The start time of the interval represented by this data point, in nanoseconds since epoch.", "format": "int64", "type": "string" }, @@ -1134,7 +1146,7 @@ "fitness.users.dataSources.datasets.patch" ] }, - "description": "Values of each data type field for the data point. It is expected that each\nvalue corresponding to a data type field will occur in the same order that\nthe field is listed with in the data type specified in a data source.\n\nOnly one of integer and floating point fields will be populated, depending\non the format enum value within data source's type field.", + "description": "Values of each data type field for the data point. It is expected that each value corresponding to a data type field will occur in the same order that the field is listed with in the data type specified in a data source. Only one of integer and floating point fields will be populated, depending on the format enum value within data source's type field.", "items": { "$ref": "Value" }, @@ -1144,7 +1156,7 @@ "type": "object" }, "DataSource": { - "description": "Definition of a unique source of sensor data. Data sources can expose raw\ndata coming from hardware sensors on local or companion devices. They can\nalso expose derived data, created by transforming or merging other data\nsources. Multiple data sources can exist for the same data type. Every data\npoint inserted into or read from this service has an associated data\nsource.\n\nThe data source contains enough information to uniquely identify its data,\nincluding the hardware device and the application that collected and/or\ntransformed the data. It also holds useful metadata, such as the hardware and\napplication versions, and the device type.\n\nEach data source produces a unique stream of data, with a unique identifier.\nNot all changes to data source affect the stream identifier, so that data\ncollected by updated versions of the same application/device can still be\nconsidered to belong to the same data stream.", + "description": "Definition of a unique source of sensor data. Data sources can expose raw data coming from hardware sensors on local or companion devices. They can also expose derived data, created by transforming or merging other data sources. Multiple data sources can exist for the same data type. Every data point inserted into or read from this service has an associated data source. The data source contains enough information to uniquely identify its data, including the hardware device and the application that collected and/or transformed the data. It also holds useful metadata, such as the hardware and application versions, and the device type. Each data source produces a unique stream of data, with a unique identifier. Not all changes to data source affect the stream identifier, so that data collected by updated versions of the same application/device can still be considered to belong to the same data stream.", "id": "DataSource", "properties": { "application": { @@ -1158,7 +1170,7 @@ "description": "Information about an application which feeds sensor data into the platform." }, "dataQualityStandard": { - "description": "DO NOT POPULATE THIS FIELD. It is never populated in responses from the\nplatform, and is ignored in queries. It will be removed in a future version\nentirely.", + "description": "DO NOT POPULATE THIS FIELD. It is never populated in responses from the platform, and is ignored in queries. It will be removed in a future version entirely.", "enumDescriptions": [ "", "", @@ -1184,6 +1196,18 @@ "dataQualityBloodGlucoseIso151972003", "dataQualityBloodGlucoseIso151972013" ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], "type": "string" }, "type": "array" @@ -1194,11 +1218,11 @@ "fitness.users.dataSources.update" ] }, - "description": "A unique identifier for the data stream produced by this data source. The\nidentifier includes:

\n\nNote that not all attributes of the data source are used as part of the\nstream identifier. In particular, the version of the hardware/the\napplication isn't used. This allows us to preserve the same stream through\nversion updates. This also means that two DataSource objects may represent\nthe same data stream even if they're not equal.\n\nThe exact format of the data stream ID created by an Android application\nis:\ntype:dataType.name:application.packageName:device.manufacturer:device.model:device.uid:dataStreamName\n\nThe exact format of the data stream ID created by a REST client is:\ntype:dataType.name:developer project\nnumber:device.manufacturer:device.model:device.uid:dataStreamName\n\nWhen any of the optional fields that make up the data stream ID are absent,\nthey will be omitted from the data stream ID. The minimum viable data\nstream ID would be:\ntype:dataType.name:developer project number\n\nFinally, the developer project number and device UID are obfuscated when\nread by any REST or Android client that did not create the data source.\nOnly the data source creator will see the developer project number in clear\nand normal form. This means a client will see a different set of\ndata_stream_ids than another client with different credentials.", + "description": "A unique identifier for the data stream produced by this data source. The identifier includes: - The physical device's manufacturer, model, and serial number (UID). - The application's package name or name. Package name is used when the data source was created by an Android application. The developer project number is used when the data source was created by a REST client. - The data source's type. - The data source's stream name. Note that not all attributes of the data source are used as part of the stream identifier. In particular, the version of the hardware/the application isn't used. This allows us to preserve the same stream through version updates. This also means that two DataSource objects may represent the same data stream even if they're not equal. The exact format of the data stream ID created by an Android application is: type:dataType.name:application.packageName:device.manufacturer:device.model:device.uid:dataStreamName The exact format of the data stream ID created by a REST client is: type:dataType.name:developer project number:device.manufacturer:device.model:device.uid:dataStreamName When any of the optional fields that make up the data stream ID are absent, they will be omitted from the data stream ID. The minimum viable data stream ID would be: type:dataType.name:developer project number Finally, the developer project number and device UID are obfuscated when read by any REST or Android client that did not create the data source. Only the data source creator will see the developer project number in clear and normal form. This means a client will see a different set of data_stream_ids than another client with different credentials.", "type": "string" }, "dataStreamName": { - "description": "The stream name uniquely identifies this particular data source among\nother data sources of the same type from the same underlying producer.\nSetting the stream name is optional, but should be done whenever an\napplication exposes two streams for the same data type, or when a device\nhas two equivalent sensors.", + "description": "The stream name uniquely identifies this particular data source among other data sources of the same type from the same underlying producer. Setting the stream name is optional, but should be done whenever an application exposes two streams for the same data type, or when a device has two equivalent sensors.", "type": "string" }, "dataType": { @@ -1209,7 +1233,7 @@ "fitness.users.dataSources.update" ] }, - "description": "The data type defines the schema for a stream of data being collected by,\ninserted into, or queried from the Fitness API." + "description": "The data type defines the schema for a stream of data being collected by, inserted into, or queried from the Fitness API." }, "device": { "$ref": "Device", @@ -1219,7 +1243,7 @@ "fitness.users.dataSources.update" ] }, - "description": "Representation of an integrated device (such as a phone or a wearable) that\ncan hold sensors." + "description": "Representation of an integrated device (such as a phone or a wearable) that can hold sensors." }, "name": { "description": "An end-user visible name for this data source.", @@ -1232,7 +1256,7 @@ "fitness.users.dataSources.update" ] }, - "description": "A constant describing the type of this data source. Indicates whether this\ndata source produces raw or derived data.", + "description": "A constant describing the type of this data source. Indicates whether this data source produces raw or derived data.", "enum": [ "raw", "derived" @@ -1269,14 +1293,14 @@ "fitness.users.dataSources.update" ] }, - "description": "Each data type has a unique, namespaced, name. All data types in the\ncom.google namespace are shared as part of the platform.", + "description": "Each data type has a unique, namespaced, name. All data types in the com.google namespace are shared as part of the platform.", "type": "string" } }, "type": "object" }, "DataTypeField": { - "description": "In case of multi-dimensional data (such as an accelerometer with x, y, and z\naxes) each field represents one dimension. Each data type field has a unique\nname which identifies it. The field also defines the format of the data (int,\nfloat, etc.).\n\nThis message is only instantiated in code and not used for wire comms or\nstored in any way.", + "description": "In case of multi-dimensional data (such as an accelerometer with x, y, and z axes) each field represents one dimension. Each data type field has a unique name which identifies it. The field also defines the format of the data (int, float, etc.). This message is only instantiated in code and not used for wire comms or stored in any way.", "id": "DataTypeField", "properties": { "format": { @@ -1314,7 +1338,7 @@ "fitness.users.dataSources.update" ] }, - "description": "Defines the name and format of data. Unlike data type names, field names\nare not namespaced, and only need to be unique within the data type.", + "description": "Defines the name and format of data. Unlike data type names, field names are not namespaced, and only need to be unique within the data type.", "type": "string" }, "optional": { @@ -1324,7 +1348,7 @@ "type": "object" }, "Dataset": { - "description": "A dataset represents a projection container for data points. They do not\ncarry any info of their own. Datasets represent a set of data points from a\nparticular data source. A data point can be found in more than one dataset.", + "description": "A dataset represents a projection container for data points. They do not carry any info of their own. Datasets represent a set of data points from a particular data source. A data point can be found in more than one dataset.", "id": "Dataset", "properties": { "dataSourceId": { @@ -1333,7 +1357,7 @@ "fitness.users.dataSources.datasets.patch" ] }, - "description": "The data stream ID of the data source that created the points in this\ndataset.", + "description": "The data stream ID of the data source that created the points in this dataset.", "type": "string" }, "maxEndTimeNs": { @@ -1342,7 +1366,7 @@ "fitness.users.dataSources.datasets.patch" ] }, - "description": "The largest end time of all data points in this possibly partial\nrepresentation of the dataset. Time is in nanoseconds from epoch. This\nshould also match the second part of the dataset identifier.", + "description": "The largest end time of all data points in this possibly partial representation of the dataset. Time is in nanoseconds from epoch. This should also match the second part of the dataset identifier.", "format": "int64", "type": "string" }, @@ -1352,12 +1376,12 @@ "fitness.users.dataSources.datasets.patch" ] }, - "description": "The smallest start time of all data points in this possibly partial\nrepresentation of the dataset. Time is in nanoseconds from epoch. This\nshould also match the first part of the dataset identifier.", + "description": "The smallest start time of all data points in this possibly partial representation of the dataset. Time is in nanoseconds from epoch. This should also match the first part of the dataset identifier.", "format": "int64", "type": "string" }, "nextPageToken": { - "description": "This token will be set when a dataset is received in response to a GET\nrequest and the dataset is too large to be included in a single response.\nProvide this value in a subsequent GET request to return the next page of\ndata points within this dataset.", + "description": "This token will be set when a dataset is received in response to a GET request and the dataset is too large to be included in a single response. Provide this value in a subsequent GET request to return the next page of data points within this dataset.", "type": "string" }, "point": { @@ -1366,7 +1390,7 @@ "fitness.users.dataSources.datasets.patch" ] }, - "description": "A partial list of data points contained in the dataset, ordered by largest\nendTimeNanos first. This list is considered complete when retrieving a\nsmall dataset and partial when patching a dataset or retrieving a dataset\nthat is too large to include in a single response.", + "description": "A partial list of data points contained in the dataset, ordered by largest endTimeNanos first. This list is considered complete when retrieving a small dataset and partial when patching a dataset or retrieving a dataset that is too large to include in a single response.", "items": { "$ref": "DataPoint" }, @@ -1376,7 +1400,7 @@ "type": "object" }, "Device": { - "description": "Representation of an integrated device (such as a phone or a wearable) that\ncan hold sensors. Each sensor is exposed as a data source.\n\nThe main purpose of the device information contained in this class is to\nidentify the hardware of a particular data source. This can be useful in\ndifferent ways, including:\n", + "description": "Representation of an integrated device (such as a phone or a wearable) that can hold sensors. Each sensor is exposed as a data source. The main purpose of the device information contained in this class is to identify the hardware of a particular data source. This can be useful in different ways, including: - Distinguishing two similar sensors on different devices (the step counter on two nexus 5 phones, for instance) - Display the source of data to the user (by using the device make / model) - Treat data differently depending on sensor type (accelerometers on a watch may give different patterns than those on a phone) - Build different analysis models for each device/version. ", "id": "Device", "properties": { "manufacturer": { @@ -1436,7 +1460,7 @@ "fitness.users.dataSources.update" ] }, - "description": "The serial number or other unique ID for the hardware. This field is\nobfuscated when read by any REST or Android client that did not create\nthe data source. Only the data source creator will see the uid field in\nclear and normal form.\n\nThe obfuscation preserves equality; that is, given two IDs, if id1 == id2,\nobfuscated(id1) == obfuscated(id2).", + "description": "The serial number or other unique ID for the hardware. This field is obfuscated when read by any REST or Android client that did not create the data source. Only the data source creator will see the uid field in clear and normal form. The obfuscation preserves equality; that is, given two IDs, if id1 == id2, obfuscated(id1) == obfuscated(id2).", "type": "string" }, "version": { @@ -1460,7 +1484,7 @@ "type": "string" }, "deletedDataPoint": { - "description": "Deleted data points for the user. Note, for modifications this should be\nparsed before handling insertions.", + "description": "Deleted data points for the user. Note, for modifications this should be parsed before handling insertions.", "items": { "$ref": "DataPoint" }, @@ -1474,7 +1498,7 @@ "type": "array" }, "nextPageToken": { - "description": "The continuation token, which is used to page through large result sets.\nProvide this value in a subsequent request to return the next page of\nresults.", + "description": "The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results.", "type": "string" } }, @@ -1497,22 +1521,22 @@ "id": "ListSessionsResponse", "properties": { "deletedSession": { - "description": "If includeDeleted is set to true in the request, and\nstartTime and endTime are omitted, this will include\nsessions which were deleted since the last sync.", + "description": "If includeDeleted is set to true in the request, and startTime and endTime are omitted, this will include sessions which were deleted since the last sync.", "items": { "$ref": "Session" }, "type": "array" }, "hasMoreData": { - "description": "Flag to indicate server has more data to transfer.\nDO NOT USE THIS FIELD. It is never populated in responses from the server.", + "description": "Flag to indicate server has more data to transfer. DO NOT USE THIS FIELD. It is never populated in responses from the server.", "type": "boolean" }, "nextPageToken": { - "description": "The sync token which is used to sync further changes. This will only be\nprovided if both startTime and endTime are omitted\nfrom the request.", + "description": "The sync token which is used to sync further changes. This will only be provided if both startTime and endTime are omitted from the request.", "type": "string" }, "session": { - "description": "Sessions with an end time that is between startTime and\nendTime of the request.", + "description": "Sessions with an end time that is between startTime and endTime of the request.", "items": { "$ref": "Session" }, @@ -1522,7 +1546,7 @@ "type": "object" }, "MapValue": { - "description": "Holder object for the value of an entry in a map field of a data point.\n\nA map value supports a subset of the formats that the regular Value supports.", + "description": "Holder object for the value of an entry in a map field of a data point. A map value supports a subset of the formats that the regular Value supports.", "id": "MapValue", "properties": { "fpVal": { @@ -1534,11 +1558,11 @@ "type": "object" }, "Session": { - "description": "Sessions contain metadata, such as a user-friendly name and time interval\ninformation.", + "description": "Sessions contain metadata, such as a user-friendly name and time interval information.", "id": "Session", "properties": { "activeTimeMillis": { - "description": "Session active time. While start_time_millis and end_time_millis define\nthe full session time, the active time can be shorter and specified by\nactive_time_millis.\nIf the inactive time during the session is known, it should also be\ninserted via a com.google.activity.segment data point with a STILL\nactivity value", + "description": "Session active time. While start_time_millis and end_time_millis define the full session time, the active time can be shorter and specified by active_time_millis. If the inactive time during the session is known, it should also be inserted via a com.google.activity.segment data point with a STILL activity value", "format": "int64", "type": "string" }, @@ -1581,7 +1605,7 @@ "fitness.users.sessions.update" ] }, - "description": "A client-generated identifier that is unique across all sessions owned by\nthis particular user.", + "description": "A client-generated identifier that is unique across all sessions owned by this particular user.", "type": "string" }, "modifiedTimeMillis": { @@ -1612,7 +1636,7 @@ "type": "object" }, "Value": { - "description": "Holder object for the value of a single field in a data point.\n\nA field value has a particular format and is only ever set to one of an\ninteger or a floating point value.", + "description": "Holder object for the value of a single field in a data point. A field value has a particular format and is only ever set to one of an integer or a floating point value.", "id": "Value", "properties": { "fpVal": { @@ -1626,14 +1650,14 @@ "type": "integer" }, "mapVal": { - "description": "Map value. The valid key space and units for the corresponding value\nof each entry should be documented as part of the data type definition.\nKeys should be kept small whenever possible. Data streams with large keys\nand high data frequency may be down sampled.", + "description": "Map value. The valid key space and units for the corresponding value of each entry should be documented as part of the data type definition. Keys should be kept small whenever possible. Data streams with large keys and high data frequency may be down sampled.", "items": { "$ref": "ValueMapValEntry" }, "type": "array" }, "stringVal": { - "description": "String value. When this is set, other values must not be set.\nStrings should be kept small whenever possible. Data streams with large\nstring values and high data frequency may be down sampled.", + "description": "String value. When this is set, other values must not be set. Strings should be kept small whenever possible. Data streams with large string values and high data frequency may be down sampled.", "type": "string" } }, @@ -1652,7 +1676,7 @@ "type": "object" } }, - "servicePath": "", + "servicePath": "fitness/v1/users/", "title": "Fitness API", "version": "v1" } \ No newline at end of file diff --git a/src/apis/fitness/v1.ts b/src/apis/fitness/v1.ts index a547eeb28b..058bd4cb9f 100644 --- a/src/apis/fitness/v1.ts +++ b/src/apis/fitness/v1.ts @@ -162,7 +162,7 @@ export namespace fitness_v1 { */ dataSourceId?: string | null; /** - * The data type to aggregate. All data sources providing this data type will contribute data to the aggregation. The response will contain a single dataset for this data type name. The dataset will have a data source ID of derived:<output data type name>:com.google.android.gms:aggregated. If the user has no data for this data type, an empty data set will be returned. Note: Data can be aggregated by either the dataTypeName or the dataSourceId, not both. + * The data type to aggregate. All data sources providing this data type will contribute data to the aggregation. The response will contain a single dataset for this data type name. The dataset will have a data source ID of derived::com.google.android.gms:aggregated. If the user has no data for this data type, an empty data set will be returned. Note: Data can be aggregated by either the dataTypeName or the dataSourceId, not both. */ dataTypeName?: string | null; } @@ -259,7 +259,7 @@ export namespace fitness_v1 { value?: number | null; } /** - * Represents a single data point, generated by a particular data source. A data point holds a value for each field, an end timestamp and an optional start time. The exact semantics of each of these attributes are specified in the documentation for the particular data type. A data point can represent an instantaneous measurement, reading or input observation, as well as averages or aggregates over a time interval. Check the data type documentation to determine which is the case for a particular data type. Data points always contain one value for each field of the data type. + * Represents a single data point, generated by a particular data source. A data point holds a value for each field, an end timestamp and an optional start time. The exact semantics of each of these attributes are specified in the documentation for the particular data type. A data point can represent an instantaneous measurement, reading or input observation, as well as averages or aggregates over a time interval. Check the data type documentation to determine which is the case for a particular data type. Data points always contain one value for each field of the data type. */ export interface Schema$DataPoint { /** @@ -279,7 +279,7 @@ export namespace fitness_v1 { */ modifiedTimeMillis?: string | null; /** - * If the data point is contained in a dataset for a derived data source, this field will be populated with the data source stream ID that created the data point originally. WARNING: do not rely on this field for anything other than debugging. The value of this field, if it is set at all, is an implementation detail and is not guaranteed to remain consistent. + * If the data point is contained in a dataset for a derived data source, this field will be populated with the data source stream ID that created the data point originally. WARNING: do not rely on this field for anything other than debugging. The value of this field, if it is set at all, is an implementation detail and is not guaranteed to remain consistent. */ originDataSourceId?: string | null; /** @@ -291,7 +291,7 @@ export namespace fitness_v1 { */ startTimeNanos?: string | null; /** - * Values of each data type field for the data point. It is expected that each value corresponding to a data type field will occur in the same order that the field is listed with in the data type specified in a data source. Only one of integer and floating point fields will be populated, depending on the format enum value within data source's type field. + * Values of each data type field for the data point. It is expected that each value corresponding to a data type field will occur in the same order that the field is listed with in the data type specified in a data source. Only one of integer and floating point fields will be populated, depending on the format enum value within data source's type field. */ value?: Schema$Value[]; } @@ -321,7 +321,7 @@ export namespace fitness_v1 { point?: Schema$DataPoint[]; } /** - * Definition of a unique source of sensor data. Data sources can expose raw data coming from hardware sensors on local or companion devices. They can also expose derived data, created by transforming or merging other data sources. Multiple data sources can exist for the same data type. Every data point inserted into or read from this service has an associated data source. The data source contains enough information to uniquely identify its data, including the hardware device and the application that collected and/or transformed the data. It also holds useful metadata, such as the hardware and application versions, and the device type. Each data source produces a unique stream of data, with a unique identifier. Not all changes to data source affect the stream identifier, so that data collected by updated versions of the same application/device can still be considered to belong to the same data stream. + * Definition of a unique source of sensor data. Data sources can expose raw data coming from hardware sensors on local or companion devices. They can also expose derived data, created by transforming or merging other data sources. Multiple data sources can exist for the same data type. Every data point inserted into or read from this service has an associated data source. The data source contains enough information to uniquely identify its data, including the hardware device and the application that collected and/or transformed the data. It also holds useful metadata, such as the hardware and application versions, and the device type. Each data source produces a unique stream of data, with a unique identifier. Not all changes to data source affect the stream identifier, so that data collected by updated versions of the same application/device can still be considered to belong to the same data stream. */ export interface Schema$DataSource { /** @@ -333,7 +333,7 @@ export namespace fitness_v1 { */ dataQualityStandard?: string[] | null; /** - * A unique identifier for the data stream produced by this data source. The identifier includes:<br/><br/> <ul> <li>The physical device's manufacturer, model, and serial number (UID).</li> <li>The application's package name or name. Package name is used when the data source was created by an Android application. The developer project number is used when the data source was created by a REST client.</li> <li>The data source's type.</li> <li>The data source's stream name.</li> </ul> Note that not all attributes of the data source are used as part of the stream identifier. In particular, the version of the hardware/the application isn't used. This allows us to preserve the same stream through version updates. This also means that two DataSource objects may represent the same data stream even if they're not equal. The exact format of the data stream ID created by an Android application is: <var>type:dataType.name<wbr/>:application.packageName<wbr/>:device.manufacturer<wbr/>:device.model<wbr/>:device.uid<wbr/>:dataStreamName</var> The exact format of the data stream ID created by a REST client is: <var>type:dataType.name<wbr/>:developer project number<wbr/>:device.manufacturer<wbr/>:device.model:device.uid<wbr/>:dataStreamName</var> When any of the optional fields that make up the data stream ID are absent, they will be omitted from the data stream ID. The minimum viable data stream ID would be: type:dataType.name:developer project number Finally, the developer project number and device UID are obfuscated when read by any REST or Android client that did not create the data source. Only the data source creator will see the developer project number in clear and normal form. This means a client will see a different set of data_stream_ids than another client with different credentials. + * A unique identifier for the data stream produced by this data source. The identifier includes: - The physical device's manufacturer, model, and serial number (UID). - The application's package name or name. Package name is used when the data source was created by an Android application. The developer project number is used when the data source was created by a REST client. - The data source's type. - The data source's stream name. Note that not all attributes of the data source are used as part of the stream identifier. In particular, the version of the hardware/the application isn't used. This allows us to preserve the same stream through version updates. This also means that two DataSource objects may represent the same data stream even if they're not equal. The exact format of the data stream ID created by an Android application is: type:dataType.name:application.packageName:device.manufacturer:device.model:device.uid:dataStreamName The exact format of the data stream ID created by a REST client is: type:dataType.name:developer project number:device.manufacturer:device.model:device.uid:dataStreamName When any of the optional fields that make up the data stream ID are absent, they will be omitted from the data stream ID. The minimum viable data stream ID would be: type:dataType.name:developer project number Finally, the developer project number and device UID are obfuscated when read by any REST or Android client that did not create the data source. Only the data source creator will see the developer project number in clear and normal form. This means a client will see a different set of data_stream_ids than another client with different credentials. */ dataStreamId?: string | null; /** @@ -368,7 +368,7 @@ export namespace fitness_v1 { name?: string | null; } /** - * In case of multi-dimensional data (such as an accelerometer with x, y, and z axes) each field represents one dimension. Each data type field has a unique name which identifies it. The field also defines the format of the data (int, float, etc.). This message is only instantiated in code and not used for wire comms or stored in any way. + * In case of multi-dimensional data (such as an accelerometer with x, y, and z axes) each field represents one dimension. Each data type field has a unique name which identifies it. The field also defines the format of the data (int, float, etc.). This message is only instantiated in code and not used for wire comms or stored in any way. */ export interface Schema$DataTypeField { /** @@ -382,7 +382,7 @@ export namespace fitness_v1 { optional?: boolean | null; } /** - * Representation of an integrated device (such as a phone or a wearable) that can hold sensors. Each sensor is exposed as a data source. The main purpose of the device information contained in this class is to identify the hardware of a particular data source. This can be useful in different ways, including: <ul> <li>Distinguishing two similar sensors on different devices (the step counter on two nexus 5 phones, for instance) <li>Display the source of data to the user (by using the device make / model) <li>Treat data differently depending on sensor type (accelerometers on a watch may give different patterns than those on a phone) <li>Build different analysis models for each device/version. </ul> + * Representation of an integrated device (such as a phone or a wearable) that can hold sensors. Each sensor is exposed as a data source. The main purpose of the device information contained in this class is to identify the hardware of a particular data source. This can be useful in different ways, including: - Distinguishing two similar sensors on different devices (the step counter on two nexus 5 phones, for instance) - Display the source of data to the user (by using the device make / model) - Treat data differently depending on sensor type (accelerometers on a watch may give different patterns than those on a phone) - Build different analysis models for each device/version. */ export interface Schema$Device { /** @@ -398,7 +398,7 @@ export namespace fitness_v1 { */ type?: string | null; /** - * The serial number or other unique ID for the hardware. This field is obfuscated when read by any REST or Android client that did not create the data source. Only the data source creator will see the uid field in clear and normal form. The obfuscation preserves equality; that is, given two IDs, if id1 == id2, obfuscated(id1) == obfuscated(id2). + * The serial number or other unique ID for the hardware. This field is obfuscated when read by any REST or Android client that did not create the data source. Only the data source creator will see the uid field in clear and normal form. The obfuscation preserves equality; that is, given two IDs, if id1 == id2, obfuscated(id1) == obfuscated(id2). */ uid?: string | null; /** @@ -432,7 +432,7 @@ export namespace fitness_v1 { } export interface Schema$ListSessionsResponse { /** - * If <code>includeDeleted</code> is set to true in the request, and <var>startTime</var> and <var>endTime</var> are omitted, this will include sessions which were deleted since the last sync. + * If includeDeleted is set to true in the request, and startTime and endTime are omitted, this will include sessions which were deleted since the last sync. */ deletedSession?: Schema$Session[]; /** @@ -440,16 +440,16 @@ export namespace fitness_v1 { */ hasMoreData?: boolean | null; /** - * The sync token which is used to sync further changes. This will only be provided if both <var>startTime</var> and <var>endTime</var> are omitted from the request. + * The sync token which is used to sync further changes. This will only be provided if both startTime and endTime are omitted from the request. */ nextPageToken?: string | null; /** - * Sessions with an end time that is between <var>startTime</var> and <var>endTime</var> of the request. + * Sessions with an end time that is between startTime and endTime of the request. */ session?: Schema$Session[]; } /** - * Holder object for the value of an entry in a map field of a data point. A map value supports a subset of the formats that the regular Value supports. + * Holder object for the value of an entry in a map field of a data point. A map value supports a subset of the formats that the regular Value supports. */ export interface Schema$MapValue { /** @@ -499,7 +499,7 @@ export namespace fitness_v1 { startTimeMillis?: string | null; } /** - * Holder object for the value of a single field in a data point. A field value has a particular format and is only ever set to one of an integer or a floating point value. + * Holder object for the value of a single field in a data point. A field value has a particular format and is only ever set to one of an integer or a floating point value. */ export interface Schema$Value { /** @@ -511,11 +511,11 @@ export namespace fitness_v1 { */ intVal?: number | null; /** - * Map value. The valid key space and units for the corresponding value of each entry should be documented as part of the data type definition. Keys should be kept small whenever possible. Data streams with large keys and high data frequency may be down sampled. + * Map value. The valid key space and units for the corresponding value of each entry should be documented as part of the data type definition. Keys should be kept small whenever possible. Data streams with large keys and high data frequency may be down sampled. */ mapVal?: Schema$ValueMapValEntry[]; /** - * String value. When this is set, other values must not be set. Strings should be kept small whenever possible. Data streams with large string values and high data frequency may be down sampled. + * String value. When this is set, other values must not be set. Strings should be kept small whenever possible. Data streams with large string values and high data frequency may be down sampled. */ stringVal?: string | null; } @@ -589,8 +589,7 @@ export namespace fitness_v1 { * * // Do the magic * const res = await fitness.users.dataset.aggregate({ - * // Aggregate data for the person identified. Use me to indicate - * // the authenticated user. Only me is supported at this time. + * // Aggregate data for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * userId: 'placeholder-value', * * // Request body metadata @@ -625,7 +624,7 @@ export namespace fitness_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.userId Aggregate data for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * @param {string} params.userId Aggregate data for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * @param {().AggregateRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -686,7 +685,7 @@ export namespace fitness_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign( { @@ -716,7 +715,7 @@ export namespace fitness_v1 { export interface Params$Resource$Users$Dataset$Aggregate extends StandardParameters { /** - * Aggregate data for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * Aggregate data for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. */ userId?: string; @@ -740,7 +739,7 @@ export namespace fitness_v1 { /** * fitness.users.dataSources.create - * @desc Creates a new data source that is unique across all data sources belonging to this user. A data source is a unique source of sensor data. Data sources can expose raw data coming from hardware sensors on local or companion devices. They can also expose derived data, created by transforming or merging other data sources. Multiple data sources can exist for the same data type. Every data point in every dataset inserted into or read from the Fitness API has an associated data source. Each data source produces a unique stream of dataset updates, with a unique data source identifier. Not all changes to data source affect the data stream ID, so that data collected by updated versions of the same application/device can still be considered to belong to the same data source. Data sources are identified using a string generated by the server, based on the contents of the source being created. The dataStreamId field should not be set when invoking this method. It will be automatically generated by the server with the correct format. If a dataStreamId is set, it must match the format that the server would generate. This format is a combination of some fields from the data source, and has a specific order. If it doesn't match, the request will fail with an error. Specifying a DataType which is not a known type (beginning with "com.google.") will create a DataSource with a custom data type. Custom data types are only readable by the application that created them. Custom data types are deprecated; use standard data types instead. In addition to the data source fields included in the data source ID, the developer project number that is authenticated when creating the data source is included. This developer project number is obfuscated when read by any other developer reading public data types. + * @desc Creates a new data source that is unique across all data sources belonging to this user. A data source is a unique source of sensor data. Data sources can expose raw data coming from hardware sensors on local or companion devices. They can also expose derived data, created by transforming or merging other data sources. Multiple data sources can exist for the same data type. Every data point in every dataset inserted into or read from the Fitness API has an associated data source. Each data source produces a unique stream of dataset updates, with a unique data source identifier. Not all changes to data source affect the data stream ID, so that data collected by updated versions of the same application/device can still be considered to belong to the same data source. Data sources are identified using a string generated by the server, based on the contents of the source being created. The dataStreamId field should not be set when invoking this method. It will be automatically generated by the server with the correct format. If a dataStreamId is set, it must match the format that the server would generate. This format is a combination of some fields from the data source, and has a specific order. If it doesn't match, the request will fail with an error. Specifying a DataType which is not a known type (beginning with "com.google.") will create a DataSource with a *custom data type*. Custom data types are only readable by the application that created them. Custom data types are *deprecated*; use standard data types instead. In addition to the data source fields included in the data source ID, the developer project number that is authenticated when creating the data source is included. This developer project number is obfuscated when read by any other developer reading public data types. * @example * // Before running the sample: * // - Enable the API at: @@ -775,9 +774,7 @@ export namespace fitness_v1 { * * // Do the magic * const res = await fitness.users.dataSources.create({ - * // Create the data source for the person identified. Use me to - * // indicate the authenticated user. Only me is supported at this - * // time. + * // Create the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * userId: 'placeholder-value', * * // Request body metadata @@ -819,7 +816,7 @@ export namespace fitness_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.userId Create the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * @param {string} params.userId Create the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * @param {().DataSource} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -877,7 +874,7 @@ export namespace fitness_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign( { @@ -943,9 +940,7 @@ export namespace fitness_v1 { * const res = await fitness.users.dataSources.delete({ * // The data stream ID of the data source to delete. * dataSourceId: 'placeholder-value', - * // Retrieve a data source for the person identified. Use me to - * // indicate the authenticated user. Only me is supported at this - * // time. + * // Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * userId: 'placeholder-value', * }); * console.log(res.data); @@ -973,7 +968,7 @@ export namespace fitness_v1 { * * @param {object} params Parameters for request * @param {string} params.dataSourceId The data stream ID of the data source to delete. - * @param {string} params.userId Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * @param {string} params.userId Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -1030,7 +1025,7 @@ export namespace fitness_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign( { @@ -1104,9 +1099,7 @@ export namespace fitness_v1 { * const res = await fitness.users.dataSources.get({ * // The data stream ID of the data source to retrieve. * dataSourceId: 'placeholder-value', - * // Retrieve a data source for the person identified. Use me to - * // indicate the authenticated user. Only me is supported at this - * // time. + * // Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * userId: 'placeholder-value', * }); * console.log(res.data); @@ -1134,7 +1127,7 @@ export namespace fitness_v1 { * * @param {object} params Parameters for request * @param {string} params.dataSourceId The data stream ID of the data source to retrieve. - * @param {string} params.userId Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * @param {string} params.userId Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -1191,7 +1184,7 @@ export namespace fitness_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign( { @@ -1263,12 +1256,9 @@ export namespace fitness_v1 { * * // Do the magic * const res = await fitness.users.dataSources.list({ - * // The names of data types to include in the list. If not specified, all - * // data sources will be returned. + * // The names of data types to include in the list. If not specified, all data sources will be returned. * dataTypeName: 'placeholder-value', - * // List data sources for the person identified. Use me to - * // indicate the authenticated user. Only me is supported at this - * // time. + * // List data sources for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * userId: 'placeholder-value', * }); * console.log(res.data); @@ -1289,7 +1279,7 @@ export namespace fitness_v1 { * * @param {object} params Parameters for request * @param {string=} params.dataTypeName The names of data types to include in the list. If not specified, all data sources will be returned. - * @param {string} params.userId List data sources for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * @param {string} params.userId List data sources for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -1351,7 +1341,7 @@ export namespace fitness_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign( { @@ -1380,7 +1370,7 @@ export namespace fitness_v1 { /** * fitness.users.dataSources.update - * @desc 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. + * @desc 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. * @example * // Before running the sample: * // - Enable the API at: @@ -1417,9 +1407,7 @@ export namespace fitness_v1 { * const res = await fitness.users.dataSources.update({ * // The data stream ID of the data source to update. * dataSourceId: 'placeholder-value', - * // Update the data source for the person identified. Use me to - * // indicate the authenticated user. Only me is supported at this - * // time. + * // Update the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * userId: 'placeholder-value', * * // Request body metadata @@ -1462,7 +1450,7 @@ export namespace fitness_v1 { * * @param {object} params Parameters for request * @param {string} params.dataSourceId The data stream ID of the data source to update. - * @param {string} params.userId Update the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * @param {string} params.userId Update the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * @param {().DataSource} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -1520,7 +1508,7 @@ export namespace fitness_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign( { @@ -1550,7 +1538,7 @@ export namespace fitness_v1 { export interface Params$Resource$Users$Datasources$Create extends StandardParameters { /** - * Create the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * Create the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. */ userId?: string; @@ -1566,7 +1554,7 @@ export namespace fitness_v1 { */ dataSourceId?: string; /** - * Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. */ userId?: string; } @@ -1577,7 +1565,7 @@ export namespace fitness_v1 { */ dataSourceId?: string; /** - * Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. */ userId?: string; } @@ -1588,7 +1576,7 @@ export namespace fitness_v1 { */ dataTypeName?: string[]; /** - * List data sources for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * List data sources for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. */ userId?: string; } @@ -1599,7 +1587,7 @@ export namespace fitness_v1 { */ dataSourceId?: string; /** - * Update the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * Update the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. */ userId?: string; @@ -1663,15 +1651,11 @@ export namespace fitness_v1 { * const res = await fitness.users.dataSources.dataPointChanges.list({ * // The data stream ID of the data source that created the dataset. * dataSourceId: 'placeholder-value', - * // If specified, no more than this many data point changes will be included - * // in the response. + * // If specified, no more than this many data point changes will be included in the response. * limit: 'placeholder-value', - * // The continuation token, which is used to page through large result sets. - * // To get the next page of results, set this parameter to the value of - * // nextPageToken from the previous response. + * // The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response. * pageToken: 'placeholder-value', - * // List data points for the person identified. Use me to indicate - * // the authenticated user. Only me is supported at this time. + * // List data points for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * userId: 'placeholder-value', * }); * console.log(res.data); @@ -1696,8 +1680,8 @@ export namespace fitness_v1 { * @param {object} params Parameters for request * @param {string} params.dataSourceId The data stream ID of the data source that created the dataset. * @param {integer=} params.limit If specified, no more than this many data point changes will be included in the response. - * @param {string=} params.pageToken The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response. - * @param {string} params.userId List data points for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * @param {string=} params.pageToken The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response. + * @param {string} params.userId List data points for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -1761,7 +1745,7 @@ export namespace fitness_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign( { @@ -1802,11 +1786,11 @@ export namespace fitness_v1 { */ limit?: number; /** - * The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response. + * The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response. */ pageToken?: string; /** - * List data points for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * List data points for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. */ userId?: string; } @@ -1819,7 +1803,7 @@ export namespace fitness_v1 { /** * fitness.users.dataSources.datasets.delete - * @desc Performs an inclusive delete of all data points whose start and end times have any overlap with the time range specified by the dataset ID. For most data types, the entire data point will be deleted. For data types where the time span represents a consistent value (such as com.google.activity.segment), and a data point straddles either end point of the dataset, only the overlapping portion of the data point will be deleted. + * @desc Performs an inclusive delete of all data points whose start and end times have any overlap with the time range specified by the dataset ID. For most data types, the entire data point will be deleted. For data types where the time span represents a consistent value (such as com.google.activity.segment), and a data point straddles either end point of the dataset, only the overlapping portion of the data point will be deleted. * @example * // Before running the sample: * // - Enable the API at: @@ -1856,17 +1840,13 @@ export namespace fitness_v1 { * const res = await fitness.users.dataSources.datasets.delete({ * // The client's current time in milliseconds since epoch. * currentTimeMillis: 'placeholder-value', - * // Dataset identifier that is a composite of the minimum data point start time - * // and maximum data point end time represented as nanoseconds from the epoch. - * // The ID is formatted like: "startTime-endTime" - * // where startTime and endTime are 64 bit integers. + * // Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. * datasetId: 'placeholder-value', * // The data stream ID of the data source that created the dataset. * dataSourceId: 'placeholder-value', * // When the operation was performed on the client. * modifiedTimeMillis: 'placeholder-value', - * // Delete a dataset for the person identified. Use me to indicate - * // the authenticated user. Only me is supported at this time. + * // Delete a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * userId: 'placeholder-value', * }); * console.log(res.data); @@ -1882,10 +1862,10 @@ export namespace fitness_v1 { * * @param {object} params Parameters for request * @param {string=} params.currentTimeMillis The client's current time in milliseconds since epoch. - * @param {string} params.datasetId Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. + * @param {string} params.datasetId Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. * @param {string} params.dataSourceId The data stream ID of the data source that created the dataset. * @param {string=} params.modifiedTimeMillis When the operation was performed on the client. - * @param {string} params.userId Delete a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * @param {string} params.userId Delete a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -1940,7 +1920,7 @@ export namespace fitness_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign( { @@ -2013,26 +1993,15 @@ export namespace fitness_v1 { * * // Do the magic * const res = await fitness.users.dataSources.datasets.get({ - * // Dataset identifier that is a composite of the minimum data point start time - * // and maximum data point end time represented as nanoseconds from the epoch. - * // The ID is formatted like: "startTime-endTime" - * // where startTime and endTime are 64 bit integers. + * // Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. * datasetId: 'placeholder-value', * // The data stream ID of the data source that created the dataset. * dataSourceId: 'placeholder-value', - * // If specified, no more than this many data points will be included in the - * // dataset. If there are more data points in the dataset, nextPageToken - * // will be set in the dataset response. + * // If specified, no more than this many data points will be included in the dataset. If there are more data points in the dataset, nextPageToken will be set in the dataset response. * limit: 'placeholder-value', - * // The continuation token, which is used to page through large datasets. - * // To get the next page of a dataset, set this parameter to the value of - * // nextPageToken from the previous response. Each subsequent - * // call will yield a partial dataset with data point end timestamps that are - * // strictly smaller than those in the previous partial response. + * // The continuation token, which is used to page through large datasets. To get the next page of a dataset, set this parameter to the value of nextPageToken from the previous response. Each subsequent call will yield a partial dataset with data point end timestamps that are strictly smaller than those in the previous partial response. * pageToken: 'placeholder-value', - * // Retrieve a dataset for the person identified. Use me to - * // indicate the authenticated user. Only me is supported at this - * // time. + * // Retrieve a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * userId: 'placeholder-value', * }); * console.log(res.data); @@ -2056,11 +2025,11 @@ export namespace fitness_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.datasetId Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. + * @param {string} params.datasetId Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. * @param {string} params.dataSourceId The data stream ID of the data source that created the dataset. * @param {integer=} params.limit If specified, no more than this many data points will be included in the dataset. If there are more data points in the dataset, nextPageToken will be set in the dataset response. - * @param {string=} params.pageToken The continuation token, which is used to page through large datasets. To get the next page of a dataset, set this parameter to the value of nextPageToken from the previous response. Each subsequent call will yield a partial dataset with data point end timestamps that are strictly smaller than those in the previous partial response. - * @param {string} params.userId Retrieve a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * @param {string=} params.pageToken The continuation token, which is used to page through large datasets. To get the next page of a dataset, set this parameter to the value of nextPageToken from the previous response. Each subsequent call will yield a partial dataset with data point end timestamps that are strictly smaller than those in the previous partial response. + * @param {string} params.userId Retrieve a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -2117,7 +2086,7 @@ export namespace fitness_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign( { @@ -2181,19 +2150,13 @@ export namespace fitness_v1 { * * // Do the magic * const res = await fitness.users.dataSources.datasets.patch({ - * // The client's current time in milliseconds since epoch. Note that the - * // minStartTimeNs and maxEndTimeNs properties in - * // the request body are in nanoseconds instead of milliseconds. + * // The client's current time in milliseconds since epoch. Note that the minStartTimeNs and maxEndTimeNs properties in the request body are in nanoseconds instead of milliseconds. * currentTimeMillis: 'placeholder-value', - * // Dataset identifier that is a composite of the minimum data point start time - * // and maximum data point end time represented as nanoseconds from the epoch. - * // The ID is formatted like: "startTime-endTime" - * // where startTime and endTime are 64 bit integers. + * // Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. * datasetId: 'placeholder-value', * // The data stream ID of the data source that created the dataset. * dataSourceId: 'placeholder-value', - * // Patch a dataset for the person identified. Use me to indicate - * // the authenticated user. Only me is supported at this time. + * // Patch a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * userId: 'placeholder-value', * * // Request body metadata @@ -2229,10 +2192,10 @@ export namespace fitness_v1 { * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.currentTimeMillis The client's current time in milliseconds since epoch. Note that the minStartTimeNs and maxEndTimeNs properties in the request body are in nanoseconds instead of milliseconds. - * @param {string} params.datasetId Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. + * @param {string=} params.currentTimeMillis The client's current time in milliseconds since epoch. Note that the minStartTimeNs and maxEndTimeNs properties in the request body are in nanoseconds instead of milliseconds. + * @param {string} params.datasetId Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. * @param {string} params.dataSourceId The data stream ID of the data source that created the dataset. - * @param {string} params.userId Patch a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * @param {string} params.userId Patch a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * @param {().Dataset} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -2290,7 +2253,7 @@ export namespace fitness_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign( { @@ -2325,7 +2288,7 @@ export namespace fitness_v1 { */ currentTimeMillis?: string; /** - * Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. + * Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. */ datasetId?: string; /** @@ -2337,14 +2300,14 @@ export namespace fitness_v1 { */ modifiedTimeMillis?: string; /** - * Delete a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * Delete a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. */ userId?: string; } export interface Params$Resource$Users$Datasources$Datasets$Get extends StandardParameters { /** - * Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. + * Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. */ datasetId?: string; /** @@ -2356,22 +2319,22 @@ export namespace fitness_v1 { */ limit?: number; /** - * The continuation token, which is used to page through large datasets. To get the next page of a dataset, set this parameter to the value of nextPageToken from the previous response. Each subsequent call will yield a partial dataset with data point end timestamps that are strictly smaller than those in the previous partial response. + * The continuation token, which is used to page through large datasets. To get the next page of a dataset, set this parameter to the value of nextPageToken from the previous response. Each subsequent call will yield a partial dataset with data point end timestamps that are strictly smaller than those in the previous partial response. */ pageToken?: string; /** - * Retrieve a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * Retrieve a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. */ userId?: string; } export interface Params$Resource$Users$Datasources$Datasets$Patch extends StandardParameters { /** - * The client's current time in milliseconds since epoch. Note that the minStartTimeNs and maxEndTimeNs properties in the request body are in nanoseconds instead of milliseconds. + * The client's current time in milliseconds since epoch. Note that the minStartTimeNs and maxEndTimeNs properties in the request body are in nanoseconds instead of milliseconds. */ currentTimeMillis?: string; /** - * Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. + * Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers. */ datasetId?: string; /** @@ -2379,7 +2342,7 @@ export namespace fitness_v1 { */ dataSourceId?: string; /** - * Patch a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * Patch a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. */ userId?: string; @@ -2426,8 +2389,7 @@ export namespace fitness_v1 { * currentTimeMillis: 'placeholder-value', * // The ID of the session to be deleted. * sessionId: 'placeholder-value', - * // Delete a session for the person identified. Use me to indicate - * // the authenticated user. Only me is supported at this time. + * // Delete a session for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * userId: 'placeholder-value', * }); * console.log(res.data); @@ -2444,7 +2406,7 @@ export namespace fitness_v1 { * @param {object} params Parameters for request * @param {string=} params.currentTimeMillis The client's current time in milliseconds since epoch. * @param {string} params.sessionId The ID of the session to be deleted. - * @param {string} params.userId Delete a session for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * @param {string} params.userId Delete a session for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -2499,7 +2461,7 @@ export namespace fitness_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign( { @@ -2573,30 +2535,15 @@ export namespace fitness_v1 { * const res = await fitness.users.sessions.list({ * // If non-empty, only sessions with these activity types should be returned. * activityType: 'placeholder-value', - * // An RFC3339 timestamp. - * // Only sessions ending between the start and end times will be included in - * // the response. If this time is omitted but startTime is - * // specified, all sessions from startTime to the end of time will - * // be returned. + * // An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but startTime is specified, all sessions from startTime to the end of time will be returned. * endTime: 'placeholder-value', - * // If true, and if both startTime and endTime are - * // omitted, session deletions will be returned. + * // If true, and if both startTime and endTime are omitted, session deletions will be returned. * includeDeleted: 'placeholder-value', - * // The continuation token, which is used for incremental syncing. - * // To get the next batch of changes, set this parameter to the value of - * // nextPageToken from the previous response. The page token is - * // ignored if either start or end time is specified. If none of start time, - * // end time, and the page token is specified, sessions modified in the last - * // 30 days are returned. + * // The continuation token, which is used for incremental syncing. To get the next batch of changes, set this parameter to the value of nextPageToken from the previous response. The page token is ignored if either start or end time is specified. If none of start time, end time, and the page token is specified, sessions modified in the last 30 days are returned. * pageToken: 'placeholder-value', - * // An RFC3339 timestamp. - * // Only sessions ending between the start and end times will be included in - * // the response. If this time is omitted but endTime is specified, - * // all sessions from the start of time up to endTime will be - * // returned. + * // An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but endTime is specified, all sessions from the start of time up to endTime will be returned. * startTime: 'placeholder-value', - * // List sessions for the person identified. Use me to indicate - * // the authenticated user. Only me is supported at this time. + * // List sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * userId: 'placeholder-value', * }); * console.log(res.data); @@ -2620,11 +2567,11 @@ export namespace fitness_v1 { * * @param {object} params Parameters for request * @param {integer=} params.activityType If non-empty, only sessions with these activity types should be returned. - * @param {string=} params.endTime An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but startTime is specified, all sessions from startTime to the end of time will be returned. - * @param {boolean=} params.includeDeleted If true, and if both startTime and endTime are omitted, session deletions will be returned. - * @param {string=} params.pageToken The continuation token, which is used for incremental syncing. To get the next batch of changes, set this parameter to the value of nextPageToken from the previous response. The page token is ignored if either start or end time is specified. If none of start time, end time, and the page token is specified, sessions modified in the last 30 days are returned. - * @param {string=} params.startTime An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but endTime is specified, all sessions from the start of time up to endTime will be returned. - * @param {string} params.userId List sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * @param {string=} params.endTime An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but startTime is specified, all sessions from startTime to the end of time will be returned. + * @param {boolean=} params.includeDeleted If true, and if both startTime and endTime are omitted, session deletions will be returned. + * @param {string=} params.pageToken The continuation token, which is used for incremental syncing. To get the next batch of changes, set this parameter to the value of nextPageToken from the previous response. The page token is ignored if either start or end time is specified. If none of start time, end time, and the page token is specified, sessions modified in the last 30 days are returned. + * @param {string=} params.startTime An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but endTime is specified, all sessions from the start of time up to endTime will be returned. + * @param {string} params.userId List sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -2686,7 +2633,7 @@ export namespace fitness_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign( { @@ -2744,8 +2691,7 @@ export namespace fitness_v1 { * currentTimeMillis: 'placeholder-value', * // The ID of the session to be created. * sessionId: 'placeholder-value', - * // Create sessions for the person identified. Use me to indicate - * // the authenticated user. Only me is supported at this time. + * // Create sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * userId: 'placeholder-value', * * // Request body metadata @@ -2791,7 +2737,7 @@ export namespace fitness_v1 { * @param {object} params Parameters for request * @param {string=} params.currentTimeMillis The client's current time in milliseconds since epoch. * @param {string} params.sessionId The ID of the session to be created. - * @param {string} params.userId Create sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * @param {string} params.userId Create sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. * @param {().Session} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. @@ -2849,7 +2795,7 @@ export namespace fitness_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = options.rootUrl || 'https://fitness.googleapis.com/'; const parameters = { options: Object.assign( { @@ -2887,7 +2833,7 @@ export namespace fitness_v1 { */ sessionId?: string; /** - * Delete a session for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * Delete a session for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. */ userId?: string; } @@ -2898,23 +2844,23 @@ export namespace fitness_v1 { */ activityType?: number[]; /** - * An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but startTime is specified, all sessions from startTime to the end of time will be returned. + * An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but startTime is specified, all sessions from startTime to the end of time will be returned. */ endTime?: string; /** - * If true, and if both startTime and endTime are omitted, session deletions will be returned. + * If true, and if both startTime and endTime are omitted, session deletions will be returned. */ includeDeleted?: boolean; /** - * The continuation token, which is used for incremental syncing. To get the next batch of changes, set this parameter to the value of nextPageToken from the previous response. The page token is ignored if either start or end time is specified. If none of start time, end time, and the page token is specified, sessions modified in the last 30 days are returned. + * The continuation token, which is used for incremental syncing. To get the next batch of changes, set this parameter to the value of nextPageToken from the previous response. The page token is ignored if either start or end time is specified. If none of start time, end time, and the page token is specified, sessions modified in the last 30 days are returned. */ pageToken?: string; /** - * An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but endTime is specified, all sessions from the start of time up to endTime will be returned. + * An RFC3339 timestamp. Only sessions ending between the start and end times will be included in the response. If this time is omitted but endTime is specified, all sessions from the start of time up to endTime will be returned. */ startTime?: string; /** - * List sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * List sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. */ userId?: string; } @@ -2929,7 +2875,7 @@ export namespace fitness_v1 { */ sessionId?: string; /** - * Create sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. + * Create sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time. */ userId?: string;