Skip to content

Commit

Permalink
feat(fitness)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.
#### fitness:v1
The following keys were deleted:
- schemas.AggregateRequest.properties.filteredDataQualityStandard.enumDescriptions
- schemas.DataSource.properties.dataQualityStandard.enumDescriptions

The following keys were changed:
- auth.oauth2.scopes.https://www.googleapis.com/auth/fitness.reproductive_health.read.description
- auth.oauth2.scopes.https://www.googleapis.com/auth/fitness.reproductive_health.write.description
- schemas.AggregateRequest.properties.bucketByActivitySegment.description
- schemas.Dataset.properties.point.description
  • Loading branch information
JustinBeckwith committed Oct 5, 2020
1 parent 5f527aa commit 48e3869
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 31 deletions.
34 changes: 5 additions & 29 deletions discovery/fitness-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
"description": "See and add info about your oxygen saturation in Google Fit. I consent to Google sharing my oxygen saturation information with this app."
},
"https://www.googleapis.com/auth/fitness.reproductive_health.read": {
"description": "See info about your reproductive health in Google Fit. I consent to Google sharing my reporductive health information with this app."
"description": "See info about your reproductive health in Google Fit. I consent to Google sharing my reproductive health information with this app."
},
"https://www.googleapis.com/auth/fitness.reproductive_health.write": {
"description": "See and add info about your reproductive health in Google Fit. I consent to Google sharing my reporductive health information with this app."
"description": "See and add info about your reproductive health in Google Fit. I consent to Google sharing my reproductive health information with this app."
}
}
}
Expand Down Expand Up @@ -813,7 +813,7 @@
}
}
},
"revision": "20200820",
"revision": "20200929",
"rootUrl": "https://fitness.googleapis.com/",
"schemas": {
"AggregateBucket": {
Expand Down Expand Up @@ -899,7 +899,7 @@
},
"bucketByActivitySegment": {
"$ref": "BucketByActivity",
"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."
"description": "Specifies that data be aggregated each activity segment recorded 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",
Expand All @@ -925,18 +925,6 @@
},
"filteredDataQualityStandard": {
"description": "DO NOT POPULATE THIS FIELD. It is ignored.",
"enumDescriptions": [
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
],
"items": {
"enum": [
"dataQualityUnknown",
Expand Down Expand Up @@ -1171,18 +1159,6 @@
},
"dataQualityStandard": {
"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": [
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
],
"items": {
"enum": [
"dataQualityUnknown",
Expand Down Expand Up @@ -1390,7 +1366,7 @@
"fitness.users.dataSources.datasets.patch"
]
},
"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.",
"description": "A partial list of data points contained in the dataset, ordered by endTimeNanos. 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"
},
Expand Down
4 changes: 2 additions & 2 deletions src/apis/fitness/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export namespace fitness_v1 {
*/
aggregateBy?: Schema$AggregateBy[];
/**
* 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.
* Specifies that data be aggregated each activity segment recorded 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.
*/
bucketByActivitySegment?: Schema$BucketByActivity;
/**
Expand Down Expand Up @@ -316,7 +316,7 @@ export namespace fitness_v1 {
*/
nextPageToken?: string | null;
/**
* 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.
* A partial list of data points contained in the dataset, ordered by endTimeNanos. 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.
*/
point?: Schema$DataPoint[];
}
Expand Down

0 comments on commit 48e3869

Please sign in to comment.