Skip to content

Commit

Permalink
examples: rgw: add boto3 extensions for GetUsage S3 API
Browse files Browse the repository at this point in the history
This allows for boto3 & aws cli to use the GetUsageStats api to get usage by a
user

Signed-off-by: Abhishek Lekshmanan <[email protected]>
  • Loading branch information
theanalyst committed Feb 4, 2020
1 parent 97fffb1 commit 1ca532d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions examples/boto3/service-2.sdk-extras.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
"input":{"shape":"DeleteBucketNotificationConfigurationRequest"},
"documentationUrl":"https://docs.ceph.com/docs/master/radosgw/s3/bucketops/#delete-notification",
"documentation":"<p>Deletes the notification configuration from the bucket.</p>"
},
"GetUsageStats":{
"name":"GetUsageStats",
"http":{
"method":"GET",
"requestUri":"/?usage",
"responseCode":200
},
"output": {"shape": "GetUsageStatsOutput"},
"documentationUrl":"https://docs.ceph.com/docs/master/radosgw/s3/",
"documentation":"<p>Get usage stats for the user</p>"
}
},
"shapes": {
Expand Down Expand Up @@ -139,6 +150,26 @@
},
"documentation":"<p>A container for object tags filtering rules.</p>"
}
"GetUsageStatsOutput": {
"type": "structure",
"members": {
"Summary": {
"shape":"UsageStatsSummary",
"documentation": "<p/>"
}
}
},
"UsageStatsSummary": {
"type": "structure",
"members": {
"TotalBytes":{"shape":"TotalBytes"},
"TotalBytesRounded":{"shape":"TotalBytesRounded"},
"TotalEntries":{"shape":"TotalEntries"}
}
},
"TotalBytesRounded":{"type":"integer"},
"TotalBytes":{"type":"integer"},
"TotalEntries":{"type":"integer"}
},
"documentation":"<p/>"
}
Expand Down

0 comments on commit 1ca532d

Please sign in to comment.