diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Databases/Usage/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Usage/Get.php similarity index 87% rename from src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Databases/Usage/Get.php rename to src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Usage/Get.php index abb6b7a501..378c935dca 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Databases/Usage/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Usage/Get.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_GET) ->setHttpPath('/v1/tablesdb/:databaseId/usage') - ->desc('Get database usage stats') + ->desc('Get TablesDB usage stats') ->groups(['api', 'database', 'usage']) - ->label('scope', 'collections.read') + ->label('scope', 'tables.read') ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', [ new Method( namespace: 'tablesdb', group: null, name: 'getDatabaseUsage', - description: '/docs/references/tablesdb/get-database-usage.md', + description: '/docs/references/tablesdb/get-usage.md', auth: [AuthType::ADMIN], responses: [ new SDKResponse( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Databases/Usage/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Usage/XList.php similarity index 86% rename from src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Databases/Usage/XList.php rename to src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Usage/XList.php index 95189011c1..7956096fca 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Databases/Usage/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Usage/XList.php @@ -1,6 +1,6 @@ setHttpMethod(self::HTTP_REQUEST_METHOD_GET) ->setHttpPath('/v1/tablesdb/usage') - ->desc('Get databases usage stats') + ->desc('Get TablesDB usage stats') ->groups(['api', 'database', 'usage']) - ->label('scope', 'collections.read') + ->label('scope', 'tables.read') ->label('resourceType', RESOURCE_TYPE_DATABASES) ->label('sdk', [ new Method( namespace: 'tablesdb', group: null, name: 'listDatabaseUsage', - description: '/docs/references/tablesdb/list-database-usage.md', + description: '/docs/references/tablesdb/list-usage.md', auth: [AuthType::ADMIN], responses: [ new SDKResponse(