Skip to content

Commit

Permalink
feat(chromeuxreport): update the API
Browse files Browse the repository at this point in the history
#### chromeuxreport:v1

The following keys were added:
- schemas.CollectionPeriod.description
- schemas.CollectionPeriod.id
- schemas.CollectionPeriod.properties.firstDate.$ref
- schemas.CollectionPeriod.properties.firstDate.description
- schemas.CollectionPeriod.properties.lastDate.$ref
- schemas.CollectionPeriod.properties.lastDate.description
- schemas.CollectionPeriod.type
- schemas.Date.description
- schemas.Date.id
- schemas.Date.properties.day.description
- schemas.Date.properties.day.format
- schemas.Date.properties.day.type
- schemas.Date.properties.month.description
- schemas.Date.properties.month.format
- schemas.Date.properties.month.type
- schemas.Date.properties.year.description
- schemas.Date.properties.year.format
- schemas.Date.properties.year.type
- schemas.Date.type
- schemas.Record.properties.collectionPeriod.$ref
- schemas.Record.properties.collectionPeriod.description
  • Loading branch information
yoshi-automation authored and sofisl committed Sep 21, 2022
1 parent 3cedef6 commit 4819291
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 2 deletions.
43 changes: 42 additions & 1 deletion discovery/chromeuxreport-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
}
}
},
"revision": "20220504",
"revision": "20220919",
"rootUrl": "https://chromeuxreport.googleapis.com/",
"schemas": {
"Bin": {
Expand All @@ -139,6 +139,43 @@
},
"type": "object"
},
"CollectionPeriod": {
"description": "The collection period is a date range which includes the `first` and `last` day.",
"id": "CollectionPeriod",
"properties": {
"firstDate": {
"$ref": "Date",
"description": "The first day in the collection period, inclusive."
},
"lastDate": {
"$ref": "Date",
"description": "The last day in the collection period, inclusive."
}
},
"type": "object"
},
"Date": {
"description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp",
"id": "Date",
"properties": {
"day": {
"description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.",
"format": "int32",
"type": "integer"
},
"month": {
"description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
"format": "int32",
"type": "integer"
},
"year": {
"description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"Key": {
"description": "Key defines all the dimensions that identify this record as unique.",
"id": "Key",
Expand Down Expand Up @@ -264,6 +301,10 @@
"description": "Record is a single Chrome UX report data record. It contains use experience statistics for a single url pattern and set of dimensions.",
"id": "Record",
"properties": {
"collectionPeriod": {
"$ref": "CollectionPeriod",
"description": "The collection period indicates when the data reflected in this record was collected."
},
"key": {
"$ref": "Key",
"description": "Key defines all of the unique querying parameters needed to look up a user experience record."
Expand Down
2 changes: 1 addition & 1 deletion src/apis/chromeuxreport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"webpack": "webpack"
},
"dependencies": {
"googleapis-common": "^5.0.1"
"googleapis-common": "^6.0.3"
},
"devDependencies": {
"@microsoft/api-documenter": "^7.8.10",
Expand Down
34 changes: 34 additions & 0 deletions src/apis/chromeuxreport/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,36 @@ export namespace chromeuxreport_v1 {
*/
start?: any | null;
}
/**
* The collection period is a date range which includes the `first` and `last` day.
*/
export interface Schema$CollectionPeriod {
/**
* The first day in the collection period, inclusive.
*/
firstDate?: Schema$Date;
/**
* The last day in the collection period, inclusive.
*/
lastDate?: Schema$Date;
}
/**
* Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
*/
export interface Schema$Date {
/**
* Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
*/
day?: number | null;
/**
* Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
*/
month?: number | null;
/**
* Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
*/
year?: number | null;
}
/**
* Key defines all the dimensions that identify this record as unique.
*/
Expand Down Expand Up @@ -226,6 +256,10 @@ export namespace chromeuxreport_v1 {
* Record is a single Chrome UX report data record. It contains use experience statistics for a single url pattern and set of dimensions.
*/
export interface Schema$Record {
/**
* The collection period indicates when the data reflected in this record was collected.
*/
collectionPeriod?: Schema$CollectionPeriod;
/**
* Key defines all of the unique querying parameters needed to look up a user experience record.
*/
Expand Down

0 comments on commit 4819291

Please sign in to comment.