Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type of day/month response attribute in custom metrics usage #170

Merged
merged 2 commits into from
Jun 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.4.1.dev8",
"regenerated": "2021-06-04 09:05:19.498956",
"spec_repo_commit": "b3fffea"
"regenerated": "2021-06-07 08:19:41.644637",
"spec_repo_commit": "9151896"
},
"v2": {
"apigentools_version": "1.4.1.dev8",
"regenerated": "2021-06-04 09:06:11.110083",
"spec_repo_commit": "b3fffea"
"regenerated": "2021-06-07 08:20:32.192507",
"spec_repo_commit": "9151896"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@ export class UsageTopAvgMetricsMetadata {
/**
* The day value from the user request that contains the returned usage data. (If day was used the request)
*/
'day'?: Object;
'day'?: Date;
/**
* The month value from the user request that contains the returned usage data. (If month was used the request)
*/
'month'?: Object;
'month'?: Date;
'pagination'?: UsageAttributionPagination;

static readonly discriminator: string | undefined = undefined;

static readonly attributeTypeMap: {[key: string]: {baseName: string, type: string, format: string}} = {
"day": {
"baseName": "day",
"type": "Object",
"format": ""
"type": "Date",
"format": "date-time"
},
"month": {
"baseName": "month",
"type": "Object",
"format": ""
"type": "Date",
"format": "date-time"
},
"pagination": {
"baseName": "pagination",
Expand All @@ -53,9 +53,9 @@ export class UsageTopAvgMetricsMetadata {
static deserialize(data: {[key: string]: any}): UsageTopAvgMetricsMetadata {
let res = new UsageTopAvgMetricsMetadata();

res.day = ObjectSerializer.deserialize(data.day, "Object", "")
res.day = ObjectSerializer.deserialize(data.day, "Date", "date-time")

res.month = ObjectSerializer.deserialize(data.month, "Object", "")
res.month = ObjectSerializer.deserialize(data.month, "Date", "date-time")

res.pagination = ObjectSerializer.deserialize(data.pagination, "UsageAttributionPagination", "")

Expand All @@ -71,9 +71,9 @@ export class UsageTopAvgMetricsMetadata {
throw new TypeError(`${key} attribute not in schema`);
}
}
res.day = ObjectSerializer.serialize(data.day, "Object", "")
res.day = ObjectSerializer.serialize(data.day, "Date", "date-time")

res.month = ObjectSerializer.serialize(data.month, "Object", "")
res.month = ObjectSerializer.serialize(data.month, "Date", "date-time")

res.pagination = ObjectSerializer.serialize(data.pagination, "UsageAttributionPagination", "")

Expand Down