[JCLOUDS-1130] Cloudstack fixed projectid parameter in listUsageRecords. Cloudstack's listUsageRecords response doesn't use camelcase so the projectid parameter was incorrect. Updated from projectId to projectid.
Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/743bac2e Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/743bac2e Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/743bac2e Branch: refs/heads/2.0.x Commit: 743bac2ed49b6911d6bcc21a4675fa4d72e6ef98 Parents: de08412 Author: John McDonnell <[email protected]> Authored: Wed Apr 12 21:47:17 2017 +0100 Committer: Ignasi Barrera <[email protected]> Committed: Tue Apr 18 16:02:25 2017 +0200 ---------------------------------------------------------------------- .../src/main/java/org/jclouds/cloudstack/domain/UsageRecord.java | 2 +- apis/cloudstack/src/test/resources/listusagerecordsresponse.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds/blob/743bac2e/apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/UsageRecord.java ---------------------------------------------------------------------- diff --git a/apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/UsageRecord.java b/apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/UsageRecord.java index fb0dda6..30039c1 100644 --- a/apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/UsageRecord.java +++ b/apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/UsageRecord.java @@ -368,7 +368,7 @@ public class UsageRecord { @ConstructorProperties({ "usageid", "description", "accountid", "account", "domainid", "startdate", "enddate", "assigndate", "releasedate", "zoneid", "virtualmachineid", "name", "offeringid", "templateid", "ipaddress", "issourcenat", "rawusage", "usage", - "size", "type", "usagetype", "project", "projectId" + "size", "type", "usagetype", "project", "projectid" }) protected UsageRecord(String id, @Nullable String description, @Nullable String accountId, @Nullable String accountName, @Nullable String domainId, @Nullable Date startDate, @Nullable Date endDate, @Nullable Date assignDate, http://git-wip-us.apache.org/repos/asf/jclouds/blob/743bac2e/apis/cloudstack/src/test/resources/listusagerecordsresponse.json ---------------------------------------------------------------------- diff --git a/apis/cloudstack/src/test/resources/listusagerecordsresponse.json b/apis/cloudstack/src/test/resources/listusagerecordsresponse.json index 73823b4..d1bc292 100644 --- a/apis/cloudstack/src/test/resources/listusagerecordsresponse.json +++ b/apis/cloudstack/src/test/resources/listusagerecordsresponse.json @@ -1 +1 @@ -{ "listusagerecordsresponse" : { "count":1 ,"usagerecord" : [ {"account":"admin","accountid":2,"domainid":1,"zoneid":1,"description":"Template Id:203 Size:3117171712","usage":"24 Hrs","usagetype":7,"rawusage":"24","templateid":0,"usageid":203,"size":3117171712,"project":"project1","projectId":1,"startdate":"2011-12-15'T'00:00:00+00:00","enddate":"2011-12-15'T'23:59:59+00:00"} ] } } \ No newline at end of file +{ "listusagerecordsresponse" : { "count":1 ,"usagerecord" : [ {"account":"admin","accountid":2,"domainid":1,"zoneid":1,"description":"Template Id:203 Size:3117171712","usage":"24 Hrs","usagetype":7,"rawusage":"24","templateid":0,"usageid":203,"size":3117171712,"project":"project1","projectid":1,"startdate":"2011-12-15'T'00:00:00+00:00","enddate":"2011-12-15'T'23:59:59+00:00"} ] } } \ No newline at end of file
