@maxim_mazurok/gapi.client.firebasestorage-v1beta
Advanced tools
Comparing version 0.0.20241025 to 0.0.20241111
127
index.d.ts
@@ -12,3 +12,3 @@ /* Type definitions for non-npm package Cloud Storage for Firebase API v1beta 0.0 */ | ||
// Generated from: https://firebasestorage.googleapis.com/$discovery/rest?version=v1beta | ||
// Revision: 20241025 | ||
// Revision: 20241111 | ||
@@ -37,2 +37,12 @@ /// <reference types="gapi.client" /> | ||
} | ||
interface DefaultBucket { | ||
/** Output only. Underlying bucket resource. */ | ||
bucket?: Bucket; | ||
/** Immutable. Location of the default bucket. */ | ||
location?: string; | ||
/** Resource name of the default bucket. */ | ||
name?: string; | ||
/** Immutable. Storage class of the default bucket. Supported values are available at https://cloud.google.com/storage/docs/storage-classes#classes. */ | ||
storageClass?: string; | ||
} | ||
interface Empty {} | ||
@@ -238,4 +248,119 @@ interface GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata { | ||
} | ||
interface DefaultBucketResource { | ||
/** Creates a Spark tier-eligible Cloud Storage bucket and links it to your Firebase project. If the default bucket already exists, this method will re-link it to your Firebase project. See https://firebase.google.com/pricing for pricing details. */ | ||
create(request: { | ||
/** V1 error format. */ | ||
'$.xgafv'?: string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
/** JSONP */ | ||
callback?: string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ | ||
key?: string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
/** Required. The parent resource where the default bucket will be created, `projects/{project_id_or_number}`. */ | ||
parent: string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ | ||
quotaUser?: string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
/** Request body */ | ||
resource: DefaultBucket; | ||
}): Request<DefaultBucket>; | ||
create( | ||
request: { | ||
/** V1 error format. */ | ||
'$.xgafv'?: string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
/** JSONP */ | ||
callback?: string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ | ||
key?: string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
/** Required. The parent resource where the default bucket will be created, `projects/{project_id_or_number}`. */ | ||
parent: string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ | ||
quotaUser?: string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
}, | ||
body: DefaultBucket | ||
): Request<DefaultBucket>; | ||
} | ||
interface ProjectsResource { | ||
/** Unlinks and deletes the default bucket. */ | ||
deleteDefaultBucket(request?: { | ||
/** V1 error format. */ | ||
'$.xgafv'?: string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
/** JSONP */ | ||
callback?: string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ | ||
key?: string; | ||
/** Required. The name of the default bucket to delete, `projects/{project_id_or_number}/defaultBucket`. */ | ||
name: string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ | ||
quotaUser?: string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
}): Request<{}>; | ||
/** Gets the default bucket. */ | ||
getDefaultBucket(request?: { | ||
/** V1 error format. */ | ||
'$.xgafv'?: string; | ||
/** OAuth access token. */ | ||
access_token?: string; | ||
/** Data format for response. */ | ||
alt?: string; | ||
/** JSONP */ | ||
callback?: string; | ||
/** Selector specifying which fields to include in a partial response. */ | ||
fields?: string; | ||
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ | ||
key?: string; | ||
/** Required. The name of the default bucket to retrieve, `projects/{project_id_or_number}/defaultBucket`. */ | ||
name: string; | ||
/** OAuth 2.0 token for the current user. */ | ||
oauth_token?: string; | ||
/** Returns response with indentations and line breaks. */ | ||
prettyPrint?: boolean; | ||
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ | ||
quotaUser?: string; | ||
/** Upload protocol for media (e.g. "raw", "multipart"). */ | ||
upload_protocol?: string; | ||
/** Legacy upload protocol for media (e.g. "media", "multipart"). */ | ||
uploadType?: string; | ||
}): Request<DefaultBucket>; | ||
buckets: BucketsResource; | ||
defaultBucket: DefaultBucketResource; | ||
} | ||
@@ -242,0 +367,0 @@ |
{ | ||
"name": "@maxim_mazurok/gapi.client.firebasestorage-v1beta", | ||
"version": "0.0.20241025", | ||
"version": "0.0.20241111", | ||
"description": "TypeScript typings for Cloud Storage for Firebase API v1beta", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -75,3 +75,11 @@ # TypeScript typings for Cloud Storage for Firebase API v1beta | ||
```typescript | ||
/* | ||
Unlinks and deletes the default bucket. | ||
*/ | ||
await gapi.client.firebasestorage.projects.deleteDefaultBucket({name: 'name'}); | ||
/* | ||
Gets the default bucket. | ||
*/ | ||
await gapi.client.firebasestorage.projects.getDefaultBucket({name: 'name'}); | ||
``` |
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
20847
362
85