@maxim_mazurok/gapi.client.storage-v1
Advanced tools
Comparing version 0.0.20231111 to 0.0.20231117
{ | ||
"name": "@maxim_mazurok/gapi.client.storage-v1", | ||
"version": "0.0.20231111", | ||
"version": "0.0.20231117", | ||
"description": "TypeScript typings for Cloud Storage JSON API v1", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git" | ||
}, | ||
"license": "MIT", | ||
"author": { | ||
"name": "Maxim Mazurok", | ||
"email": "maxim@mazurok.com", | ||
"name": "Maxim Mazurok", | ||
"url": "https://maxim.mazurok.com" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git" | ||
}, | ||
"types": "index.d.ts", | ||
@@ -16,0 +16,0 @@ "dependencies": { |
299
readme.md
@@ -28,6 +28,9 @@ # TypeScript typings for Cloud Storage JSON API v1 | ||
```typescript | ||
gapi.client.load('https://storage.googleapis.com/$discovery/rest?version=v1', () => { | ||
// now we can use: | ||
// gapi.client.storage | ||
}); | ||
gapi.client.load( | ||
'https://storage.googleapis.com/$discovery/rest?version=v1', | ||
() => { | ||
// now we can use: | ||
// gapi.client.storage | ||
} | ||
); | ||
``` | ||
@@ -49,29 +52,30 @@ | ||
scope = [ | ||
// View and manage your data across Google Cloud Platform services | ||
'https://www.googleapis.com/auth/cloud-platform', | ||
// View and manage your data across Google Cloud Platform services | ||
'https://www.googleapis.com/auth/cloud-platform', | ||
// View your data across Google Cloud Platform services | ||
'https://www.googleapis.com/auth/cloud-platform.read-only', | ||
// View your data across Google Cloud Platform services | ||
'https://www.googleapis.com/auth/cloud-platform.read-only', | ||
// Manage your data and permissions in Google Cloud Storage | ||
'https://www.googleapis.com/auth/devstorage.full_control', | ||
// Manage your data and permissions in Google Cloud Storage | ||
'https://www.googleapis.com/auth/devstorage.full_control', | ||
// View your data in Google Cloud Storage | ||
'https://www.googleapis.com/auth/devstorage.read_only', | ||
// View your data in Google Cloud Storage | ||
'https://www.googleapis.com/auth/devstorage.read_only', | ||
// Manage your data in Google Cloud Storage | ||
'https://www.googleapis.com/auth/devstorage.read_write', | ||
], | ||
immediate = true; | ||
// Manage your data in Google Cloud Storage | ||
'https://www.googleapis.com/auth/devstorage.read_write', | ||
], | ||
immediate = true; | ||
// ... | ||
gapi.auth.authorize( | ||
{ client_id: client_id, scope: scope, immediate: immediate }, | ||
{client_id: client_id, scope: scope, immediate: immediate}, | ||
authResult => { | ||
if (authResult && !authResult.error) { | ||
/* handle successful authorization */ | ||
/* handle successful authorization */ | ||
} else { | ||
/* handle authorization error */ | ||
/* handle authorization error */ | ||
} | ||
}); | ||
} | ||
); | ||
``` | ||
@@ -82,7 +86,9 @@ | ||
```typescript | ||
/* | ||
Disables an Anywhere Cache instance. | ||
*/ | ||
await gapi.client.storage.anywhereCaches.disable({ anywhereCacheId: "anywhereCacheId", bucket: "bucket", }); | ||
await gapi.client.storage.anywhereCaches.disable({ | ||
anywhereCacheId: 'anywhereCacheId', | ||
bucket: 'bucket', | ||
}); | ||
@@ -92,3 +98,6 @@ /* | ||
*/ | ||
await gapi.client.storage.anywhereCaches.get({ anywhereCacheId: "anywhereCacheId", bucket: "bucket", }); | ||
await gapi.client.storage.anywhereCaches.get({ | ||
anywhereCacheId: 'anywhereCacheId', | ||
bucket: 'bucket', | ||
}); | ||
@@ -98,3 +107,3 @@ /* | ||
*/ | ||
await gapi.client.storage.anywhereCaches.insert({ bucket: "bucket", }); | ||
await gapi.client.storage.anywhereCaches.insert({bucket: 'bucket'}); | ||
@@ -104,3 +113,3 @@ /* | ||
*/ | ||
await gapi.client.storage.anywhereCaches.list({ bucket: "bucket", }); | ||
await gapi.client.storage.anywhereCaches.list({bucket: 'bucket'}); | ||
@@ -110,3 +119,6 @@ /* | ||
*/ | ||
await gapi.client.storage.anywhereCaches.pause({ anywhereCacheId: "anywhereCacheId", bucket: "bucket", }); | ||
await gapi.client.storage.anywhereCaches.pause({ | ||
anywhereCacheId: 'anywhereCacheId', | ||
bucket: 'bucket', | ||
}); | ||
@@ -116,3 +128,6 @@ /* | ||
*/ | ||
await gapi.client.storage.anywhereCaches.resume({ anywhereCacheId: "anywhereCacheId", bucket: "bucket", }); | ||
await gapi.client.storage.anywhereCaches.resume({ | ||
anywhereCacheId: 'anywhereCacheId', | ||
bucket: 'bucket', | ||
}); | ||
@@ -122,3 +137,6 @@ /* | ||
*/ | ||
await gapi.client.storage.anywhereCaches.update({ anywhereCacheId: "anywhereCacheId", bucket: "bucket", }); | ||
await gapi.client.storage.anywhereCaches.update({ | ||
anywhereCacheId: 'anywhereCacheId', | ||
bucket: 'bucket', | ||
}); | ||
@@ -128,3 +146,6 @@ /* | ||
*/ | ||
await gapi.client.storage.bucketAccessControls.delete({ bucket: "bucket", entity: "entity", }); | ||
await gapi.client.storage.bucketAccessControls.delete({ | ||
bucket: 'bucket', | ||
entity: 'entity', | ||
}); | ||
@@ -134,3 +155,6 @@ /* | ||
*/ | ||
await gapi.client.storage.bucketAccessControls.get({ bucket: "bucket", entity: "entity", }); | ||
await gapi.client.storage.bucketAccessControls.get({ | ||
bucket: 'bucket', | ||
entity: 'entity', | ||
}); | ||
@@ -140,3 +164,3 @@ /* | ||
*/ | ||
await gapi.client.storage.bucketAccessControls.insert({ bucket: "bucket", }); | ||
await gapi.client.storage.bucketAccessControls.insert({bucket: 'bucket'}); | ||
@@ -146,3 +170,3 @@ /* | ||
*/ | ||
await gapi.client.storage.bucketAccessControls.list({ bucket: "bucket", }); | ||
await gapi.client.storage.bucketAccessControls.list({bucket: 'bucket'}); | ||
@@ -152,3 +176,6 @@ /* | ||
*/ | ||
await gapi.client.storage.bucketAccessControls.patch({ bucket: "bucket", entity: "entity", }); | ||
await gapi.client.storage.bucketAccessControls.patch({ | ||
bucket: 'bucket', | ||
entity: 'entity', | ||
}); | ||
@@ -158,3 +185,6 @@ /* | ||
*/ | ||
await gapi.client.storage.bucketAccessControls.update({ bucket: "bucket", entity: "entity", }); | ||
await gapi.client.storage.bucketAccessControls.update({ | ||
bucket: 'bucket', | ||
entity: 'entity', | ||
}); | ||
@@ -164,3 +194,3 @@ /* | ||
*/ | ||
await gapi.client.storage.buckets.delete({ bucket: "bucket", }); | ||
await gapi.client.storage.buckets.delete({bucket: 'bucket'}); | ||
@@ -170,3 +200,3 @@ /* | ||
*/ | ||
await gapi.client.storage.buckets.get({ bucket: "bucket", }); | ||
await gapi.client.storage.buckets.get({bucket: 'bucket'}); | ||
@@ -176,3 +206,3 @@ /* | ||
*/ | ||
await gapi.client.storage.buckets.getIamPolicy({ bucket: "bucket", }); | ||
await gapi.client.storage.buckets.getIamPolicy({bucket: 'bucket'}); | ||
@@ -182,3 +212,3 @@ /* | ||
*/ | ||
await gapi.client.storage.buckets.insert({ project: "project", }); | ||
await gapi.client.storage.buckets.insert({project: 'project'}); | ||
@@ -188,3 +218,3 @@ /* | ||
*/ | ||
await gapi.client.storage.buckets.list({ project: "project", }); | ||
await gapi.client.storage.buckets.list({project: 'project'}); | ||
@@ -194,3 +224,6 @@ /* | ||
*/ | ||
await gapi.client.storage.buckets.lockRetentionPolicy({ bucket: "bucket", ifMetagenerationMatch: "ifMetagenerationMatch", }); | ||
await gapi.client.storage.buckets.lockRetentionPolicy({ | ||
bucket: 'bucket', | ||
ifMetagenerationMatch: 'ifMetagenerationMatch', | ||
}); | ||
@@ -200,3 +233,3 @@ /* | ||
*/ | ||
await gapi.client.storage.buckets.patch({ bucket: "bucket", }); | ||
await gapi.client.storage.buckets.patch({bucket: 'bucket'}); | ||
@@ -206,3 +239,3 @@ /* | ||
*/ | ||
await gapi.client.storage.buckets.setIamPolicy({ bucket: "bucket", }); | ||
await gapi.client.storage.buckets.setIamPolicy({bucket: 'bucket'}); | ||
@@ -212,3 +245,6 @@ /* | ||
*/ | ||
await gapi.client.storage.buckets.testIamPermissions({ bucket: "bucket", permissions: "permissions", }); | ||
await gapi.client.storage.buckets.testIamPermissions({ | ||
bucket: 'bucket', | ||
permissions: 'permissions', | ||
}); | ||
@@ -218,3 +254,3 @@ /* | ||
*/ | ||
await gapi.client.storage.buckets.update({ bucket: "bucket", }); | ||
await gapi.client.storage.buckets.update({bucket: 'bucket'}); | ||
@@ -224,3 +260,3 @@ /* | ||
*/ | ||
await gapi.client.storage.channels.stop({ }); | ||
await gapi.client.storage.channels.stop({}); | ||
@@ -230,3 +266,6 @@ /* | ||
*/ | ||
await gapi.client.storage.defaultObjectAccessControls.delete({ bucket: "bucket", entity: "entity", }); | ||
await gapi.client.storage.defaultObjectAccessControls.delete({ | ||
bucket: 'bucket', | ||
entity: 'entity', | ||
}); | ||
@@ -236,3 +275,6 @@ /* | ||
*/ | ||
await gapi.client.storage.defaultObjectAccessControls.get({ bucket: "bucket", entity: "entity", }); | ||
await gapi.client.storage.defaultObjectAccessControls.get({ | ||
bucket: 'bucket', | ||
entity: 'entity', | ||
}); | ||
@@ -242,3 +284,5 @@ /* | ||
*/ | ||
await gapi.client.storage.defaultObjectAccessControls.insert({ bucket: "bucket", }); | ||
await gapi.client.storage.defaultObjectAccessControls.insert({ | ||
bucket: 'bucket', | ||
}); | ||
@@ -248,3 +292,3 @@ /* | ||
*/ | ||
await gapi.client.storage.defaultObjectAccessControls.list({ bucket: "bucket", }); | ||
await gapi.client.storage.defaultObjectAccessControls.list({bucket: 'bucket'}); | ||
@@ -254,3 +298,6 @@ /* | ||
*/ | ||
await gapi.client.storage.defaultObjectAccessControls.patch({ bucket: "bucket", entity: "entity", }); | ||
await gapi.client.storage.defaultObjectAccessControls.patch({ | ||
bucket: 'bucket', | ||
entity: 'entity', | ||
}); | ||
@@ -260,3 +307,6 @@ /* | ||
*/ | ||
await gapi.client.storage.defaultObjectAccessControls.update({ bucket: "bucket", entity: "entity", }); | ||
await gapi.client.storage.defaultObjectAccessControls.update({ | ||
bucket: 'bucket', | ||
entity: 'entity', | ||
}); | ||
@@ -266,3 +316,6 @@ /* | ||
*/ | ||
await gapi.client.storage.managedFolders.delete({ bucket: "bucket", managedFolder: "managedFolder", }); | ||
await gapi.client.storage.managedFolders.delete({ | ||
bucket: 'bucket', | ||
managedFolder: 'managedFolder', | ||
}); | ||
@@ -272,3 +325,6 @@ /* | ||
*/ | ||
await gapi.client.storage.managedFolders.get({ bucket: "bucket", managedFolder: "managedFolder", }); | ||
await gapi.client.storage.managedFolders.get({ | ||
bucket: 'bucket', | ||
managedFolder: 'managedFolder', | ||
}); | ||
@@ -278,3 +334,6 @@ /* | ||
*/ | ||
await gapi.client.storage.managedFolders.getIamPolicy({ bucket: "bucket", managedFolder: "managedFolder", }); | ||
await gapi.client.storage.managedFolders.getIamPolicy({ | ||
bucket: 'bucket', | ||
managedFolder: 'managedFolder', | ||
}); | ||
@@ -284,3 +343,3 @@ /* | ||
*/ | ||
await gapi.client.storage.managedFolders.insert({ bucket: "bucket", }); | ||
await gapi.client.storage.managedFolders.insert({bucket: 'bucket'}); | ||
@@ -290,3 +349,3 @@ /* | ||
*/ | ||
await gapi.client.storage.managedFolders.list({ bucket: "bucket", }); | ||
await gapi.client.storage.managedFolders.list({bucket: 'bucket'}); | ||
@@ -296,3 +355,6 @@ /* | ||
*/ | ||
await gapi.client.storage.managedFolders.setIamPolicy({ bucket: "bucket", managedFolder: "managedFolder", }); | ||
await gapi.client.storage.managedFolders.setIamPolicy({ | ||
bucket: 'bucket', | ||
managedFolder: 'managedFolder', | ||
}); | ||
@@ -302,3 +364,7 @@ /* | ||
*/ | ||
await gapi.client.storage.managedFolders.testIamPermissions({ bucket: "bucket", managedFolder: "managedFolder", permissions: "permissions", }); | ||
await gapi.client.storage.managedFolders.testIamPermissions({ | ||
bucket: 'bucket', | ||
managedFolder: 'managedFolder', | ||
permissions: 'permissions', | ||
}); | ||
@@ -308,3 +374,6 @@ /* | ||
*/ | ||
await gapi.client.storage.notifications.delete({ bucket: "bucket", notification: "notification", }); | ||
await gapi.client.storage.notifications.delete({ | ||
bucket: 'bucket', | ||
notification: 'notification', | ||
}); | ||
@@ -314,3 +383,6 @@ /* | ||
*/ | ||
await gapi.client.storage.notifications.get({ bucket: "bucket", notification: "notification", }); | ||
await gapi.client.storage.notifications.get({ | ||
bucket: 'bucket', | ||
notification: 'notification', | ||
}); | ||
@@ -320,3 +392,3 @@ /* | ||
*/ | ||
await gapi.client.storage.notifications.insert({ bucket: "bucket", }); | ||
await gapi.client.storage.notifications.insert({bucket: 'bucket'}); | ||
@@ -326,3 +398,3 @@ /* | ||
*/ | ||
await gapi.client.storage.notifications.list({ bucket: "bucket", }); | ||
await gapi.client.storage.notifications.list({bucket: 'bucket'}); | ||
@@ -332,3 +404,7 @@ /* | ||
*/ | ||
await gapi.client.storage.objectAccessControls.delete({ bucket: "bucket", entity: "entity", object: "object", }); | ||
await gapi.client.storage.objectAccessControls.delete({ | ||
bucket: 'bucket', | ||
entity: 'entity', | ||
object: 'object', | ||
}); | ||
@@ -338,3 +414,7 @@ /* | ||
*/ | ||
await gapi.client.storage.objectAccessControls.get({ bucket: "bucket", entity: "entity", object: "object", }); | ||
await gapi.client.storage.objectAccessControls.get({ | ||
bucket: 'bucket', | ||
entity: 'entity', | ||
object: 'object', | ||
}); | ||
@@ -344,3 +424,6 @@ /* | ||
*/ | ||
await gapi.client.storage.objectAccessControls.insert({ bucket: "bucket", object: "object", }); | ||
await gapi.client.storage.objectAccessControls.insert({ | ||
bucket: 'bucket', | ||
object: 'object', | ||
}); | ||
@@ -350,3 +433,6 @@ /* | ||
*/ | ||
await gapi.client.storage.objectAccessControls.list({ bucket: "bucket", object: "object", }); | ||
await gapi.client.storage.objectAccessControls.list({ | ||
bucket: 'bucket', | ||
object: 'object', | ||
}); | ||
@@ -356,3 +442,7 @@ /* | ||
*/ | ||
await gapi.client.storage.objectAccessControls.patch({ bucket: "bucket", entity: "entity", object: "object", }); | ||
await gapi.client.storage.objectAccessControls.patch({ | ||
bucket: 'bucket', | ||
entity: 'entity', | ||
object: 'object', | ||
}); | ||
@@ -362,3 +452,7 @@ /* | ||
*/ | ||
await gapi.client.storage.objectAccessControls.update({ bucket: "bucket", entity: "entity", object: "object", }); | ||
await gapi.client.storage.objectAccessControls.update({ | ||
bucket: 'bucket', | ||
entity: 'entity', | ||
object: 'object', | ||
}); | ||
@@ -368,3 +462,3 @@ /* | ||
*/ | ||
await gapi.client.storage.objects.bulkRestore({ bucket: "bucket", }); | ||
await gapi.client.storage.objects.bulkRestore({bucket: 'bucket'}); | ||
@@ -374,3 +468,6 @@ /* | ||
*/ | ||
await gapi.client.storage.objects.compose({ destinationBucket: "destinationBucket", destinationObject: "destinationObject", }); | ||
await gapi.client.storage.objects.compose({ | ||
destinationBucket: 'destinationBucket', | ||
destinationObject: 'destinationObject', | ||
}); | ||
@@ -380,3 +477,8 @@ /* | ||
*/ | ||
await gapi.client.storage.objects.copy({ destinationBucket: "destinationBucket", destinationObject: "destinationObject", sourceBucket: "sourceBucket", sourceObject: "sourceObject", }); | ||
await gapi.client.storage.objects.copy({ | ||
destinationBucket: 'destinationBucket', | ||
destinationObject: 'destinationObject', | ||
sourceBucket: 'sourceBucket', | ||
sourceObject: 'sourceObject', | ||
}); | ||
@@ -386,3 +488,3 @@ /* | ||
*/ | ||
await gapi.client.storage.objects.delete({ bucket: "bucket", object: "object", }); | ||
await gapi.client.storage.objects.delete({bucket: 'bucket', object: 'object'}); | ||
@@ -392,3 +494,3 @@ /* | ||
*/ | ||
await gapi.client.storage.objects.get({ bucket: "bucket", object: "object", }); | ||
await gapi.client.storage.objects.get({bucket: 'bucket', object: 'object'}); | ||
@@ -398,3 +500,6 @@ /* | ||
*/ | ||
await gapi.client.storage.objects.getIamPolicy({ bucket: "bucket", object: "object", }); | ||
await gapi.client.storage.objects.getIamPolicy({ | ||
bucket: 'bucket', | ||
object: 'object', | ||
}); | ||
@@ -404,3 +509,3 @@ /* | ||
*/ | ||
await gapi.client.storage.objects.insert({ bucket: "bucket", }); | ||
await gapi.client.storage.objects.insert({bucket: 'bucket'}); | ||
@@ -410,3 +515,3 @@ /* | ||
*/ | ||
await gapi.client.storage.objects.list({ bucket: "bucket", }); | ||
await gapi.client.storage.objects.list({bucket: 'bucket'}); | ||
@@ -416,3 +521,3 @@ /* | ||
*/ | ||
await gapi.client.storage.objects.patch({ bucket: "bucket", object: "object", }); | ||
await gapi.client.storage.objects.patch({bucket: 'bucket', object: 'object'}); | ||
@@ -422,3 +527,7 @@ /* | ||
*/ | ||
await gapi.client.storage.objects.restore({ bucket: "bucket", generation: "generation", object: "object", }); | ||
await gapi.client.storage.objects.restore({ | ||
bucket: 'bucket', | ||
generation: 'generation', | ||
object: 'object', | ||
}); | ||
@@ -428,3 +537,8 @@ /* | ||
*/ | ||
await gapi.client.storage.objects.rewrite({ destinationBucket: "destinationBucket", destinationObject: "destinationObject", sourceBucket: "sourceBucket", sourceObject: "sourceObject", }); | ||
await gapi.client.storage.objects.rewrite({ | ||
destinationBucket: 'destinationBucket', | ||
destinationObject: 'destinationObject', | ||
sourceBucket: 'sourceBucket', | ||
sourceObject: 'sourceObject', | ||
}); | ||
@@ -434,3 +548,6 @@ /* | ||
*/ | ||
await gapi.client.storage.objects.setIamPolicy({ bucket: "bucket", object: "object", }); | ||
await gapi.client.storage.objects.setIamPolicy({ | ||
bucket: 'bucket', | ||
object: 'object', | ||
}); | ||
@@ -440,3 +557,7 @@ /* | ||
*/ | ||
await gapi.client.storage.objects.testIamPermissions({ bucket: "bucket", object: "object", permissions: "permissions", }); | ||
await gapi.client.storage.objects.testIamPermissions({ | ||
bucket: 'bucket', | ||
object: 'object', | ||
permissions: 'permissions', | ||
}); | ||
@@ -446,3 +567,3 @@ /* | ||
*/ | ||
await gapi.client.storage.objects.update({ bucket: "bucket", object: "object", }); | ||
await gapi.client.storage.objects.update({bucket: 'bucket', object: 'object'}); | ||
@@ -452,3 +573,3 @@ /* | ||
*/ | ||
await gapi.client.storage.objects.watchAll({ bucket: "bucket", }); | ||
await gapi.client.storage.objects.watchAll({bucket: 'bucket'}); | ||
@@ -458,3 +579,6 @@ /* | ||
*/ | ||
await gapi.client.storage.buckets.operations.cancel({ bucket: "bucket", operationId: "operationId", }); | ||
await gapi.client.storage.buckets.operations.cancel({ | ||
bucket: 'bucket', | ||
operationId: 'operationId', | ||
}); | ||
@@ -464,3 +588,6 @@ /* | ||
*/ | ||
await gapi.client.storage.buckets.operations.get({ bucket: "bucket", operationId: "operationId", }); | ||
await gapi.client.storage.buckets.operations.get({ | ||
bucket: 'bucket', | ||
operationId: 'operationId', | ||
}); | ||
@@ -470,3 +597,3 @@ /* | ||
*/ | ||
await gapi.client.storage.buckets.operations.list({ bucket: "bucket", }); | ||
await gapi.client.storage.buckets.operations.list({bucket: 'bucket'}); | ||
``` |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
533
240981
3
3844