From 4ad7b11b9c2c718b3c20a49f18184443c80d822a Mon Sep 17 00:00:00 2001 From: leslitagordita Date: Fri, 30 Oct 2020 16:56:26 -0400 Subject: [PATCH 1/2] Add GET /object-storage/transfer/ --- openapi.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index b75247485..9fe61bc20 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -11850,6 +11850,46 @@ paths: source: > linode-cli object-storage ssl-delete \ us-east-1 example-bucket + /object-storage/transfer: + get: + operationId: getObjectStorageTransfer + x-linode-cli-skip: true + servers: + - url: https://api.linode.com/v4 + summary: Object Storage Transfer View + description: | + The amount of outbound data transfer used by your account's Object Storage buckets. + Object Storage adds 1 terabyte of outbound data transfer to your data transfer pool. + See the [Object Storage Pricing and Limitations](/docs/guides/pricing-and-limitations/) + guide for details on Object Storage transfer quotas. + + tags: + - Object Storage + security: + - personalAccessToken: [] + - oauth: + - object_storage:read_write + responses: + '200': + description: A paginated list of buckets you own. + content: + application/json: + schema: + properties: + used: + type: integer + description: > + The amount of outbound data transfer used by your account's Object Storage buckets, + in GB, for the current month’s billing cycle. + example: 12956600198 + readOnly: true + default: + $ref: '#/components/responses/ErrorResponse' + x-code-samples: + - lang: Shell + source: > + curl -H "Authorization: Bearer $TOKEN" \ + https://api.linode.com/v4/object-storage/transfer/ /profile: x-linode-cli-command: profile get: From ac7b8ed063d04647f84031c11d7553fe86744bcd Mon Sep 17 00:00:00 2001 From: leslitagordita Date: Mon, 2 Nov 2020 12:00:48 -0500 Subject: [PATCH 2/2] Update oauth scope and description --- openapi.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 9fe61bc20..a67951ff1 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -11868,10 +11868,11 @@ paths: security: - personalAccessToken: [] - oauth: - - object_storage:read_write + - object_storage:read_only responses: '200': - description: A paginated list of buckets you own. + description: > + Returns the amount of outbound data transfer used by your account's Object Storage buckets. content: application/json: schema: