firebasestorage
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package firebasestorage provides access to the Cloud Storage for Firebase API.
For product documentation, see:https://firebase.google.com/docs/storage
Library status¶
These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.
When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.
Creating a client¶
Usage example:
import "google.golang.org/api/firebasestorage/v1beta"...ctx := context.Background()firebasestorageService, err := firebasestorage.NewService(ctx)
In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
By default, all available scopes (see "Constants") are used to authenticate.To restrict scopes, usegoogle.golang.org/api/option.WithScopes:
firebasestorageService, err := firebasestorage.NewService(ctx, option.WithScopes(firebasestorage.FirebaseScope))
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:
firebasestorageService, err := firebasestorage.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)firebasestorageService, err := firebasestorage.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type AddFirebaseRequest
- type Bucket
- type DefaultBucket
- type Empty
- type ListBucketsResponse
- type ProjectsBucketsAddFirebaseCall
- func (c *ProjectsBucketsAddFirebaseCall) Context(ctx context.Context) *ProjectsBucketsAddFirebaseCall
- func (c *ProjectsBucketsAddFirebaseCall) Do(opts ...googleapi.CallOption) (*Bucket, error)
- func (c *ProjectsBucketsAddFirebaseCall) Fields(s ...googleapi.Field) *ProjectsBucketsAddFirebaseCall
- func (c *ProjectsBucketsAddFirebaseCall) Header() http.Header
- type ProjectsBucketsGetCall
- func (c *ProjectsBucketsGetCall) Context(ctx context.Context) *ProjectsBucketsGetCall
- func (c *ProjectsBucketsGetCall) Do(opts ...googleapi.CallOption) (*Bucket, error)
- func (c *ProjectsBucketsGetCall) Fields(s ...googleapi.Field) *ProjectsBucketsGetCall
- func (c *ProjectsBucketsGetCall) Header() http.Header
- func (c *ProjectsBucketsGetCall) IfNoneMatch(entityTag string) *ProjectsBucketsGetCall
- type ProjectsBucketsListCall
- func (c *ProjectsBucketsListCall) Context(ctx context.Context) *ProjectsBucketsListCall
- func (c *ProjectsBucketsListCall) Do(opts ...googleapi.CallOption) (*ListBucketsResponse, error)
- func (c *ProjectsBucketsListCall) Fields(s ...googleapi.Field) *ProjectsBucketsListCall
- func (c *ProjectsBucketsListCall) Header() http.Header
- func (c *ProjectsBucketsListCall) IfNoneMatch(entityTag string) *ProjectsBucketsListCall
- func (c *ProjectsBucketsListCall) PageSize(pageSize int64) *ProjectsBucketsListCall
- func (c *ProjectsBucketsListCall) PageToken(pageToken string) *ProjectsBucketsListCall
- func (c *ProjectsBucketsListCall) Pages(ctx context.Context, f func(*ListBucketsResponse) error) error
- type ProjectsBucketsRemoveFirebaseCall
- func (c *ProjectsBucketsRemoveFirebaseCall) Context(ctx context.Context) *ProjectsBucketsRemoveFirebaseCall
- func (c *ProjectsBucketsRemoveFirebaseCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsBucketsRemoveFirebaseCall) Fields(s ...googleapi.Field) *ProjectsBucketsRemoveFirebaseCall
- func (c *ProjectsBucketsRemoveFirebaseCall) Header() http.Header
- type ProjectsBucketsService
- func (r *ProjectsBucketsService) AddFirebase(bucket string, addfirebaserequest *AddFirebaseRequest) *ProjectsBucketsAddFirebaseCall
- func (r *ProjectsBucketsService) Get(name string) *ProjectsBucketsGetCall
- func (r *ProjectsBucketsService) List(parent string) *ProjectsBucketsListCall
- func (r *ProjectsBucketsService) RemoveFirebase(bucket string, removefirebaserequest *RemoveFirebaseRequest) *ProjectsBucketsRemoveFirebaseCall
- type ProjectsDefaultBucketCreateCall
- func (c *ProjectsDefaultBucketCreateCall) Context(ctx context.Context) *ProjectsDefaultBucketCreateCall
- func (c *ProjectsDefaultBucketCreateCall) Do(opts ...googleapi.CallOption) (*DefaultBucket, error)
- func (c *ProjectsDefaultBucketCreateCall) Fields(s ...googleapi.Field) *ProjectsDefaultBucketCreateCall
- func (c *ProjectsDefaultBucketCreateCall) Header() http.Header
- type ProjectsDefaultBucketService
- type ProjectsDeleteDefaultBucketCall
- func (c *ProjectsDeleteDefaultBucketCall) Context(ctx context.Context) *ProjectsDeleteDefaultBucketCall
- func (c *ProjectsDeleteDefaultBucketCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsDeleteDefaultBucketCall) Fields(s ...googleapi.Field) *ProjectsDeleteDefaultBucketCall
- func (c *ProjectsDeleteDefaultBucketCall) Header() http.Header
- type ProjectsGetDefaultBucketCall
- func (c *ProjectsGetDefaultBucketCall) Context(ctx context.Context) *ProjectsGetDefaultBucketCall
- func (c *ProjectsGetDefaultBucketCall) Do(opts ...googleapi.CallOption) (*DefaultBucket, error)
- func (c *ProjectsGetDefaultBucketCall) Fields(s ...googleapi.Field) *ProjectsGetDefaultBucketCall
- func (c *ProjectsGetDefaultBucketCall) Header() http.Header
- func (c *ProjectsGetDefaultBucketCall) IfNoneMatch(entityTag string) *ProjectsGetDefaultBucketCall
- type ProjectsService
- type RemoveFirebaseRequest
- type Service
Constants¶
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"// View and administer all your Firebase data and settingsFirebaseScope = "https://www.googleapis.com/auth/firebase")
OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeAddFirebaseRequest¶
type AddFirebaseRequest struct {}AddFirebaseRequest: The request used to link a Google Cloud Storage bucketto a Firebase project.
typeBucket¶
type Bucket struct {// Name: Output only. Resource name of the bucket.Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Bucket: A storage bucket and its relation to a parent Firebase project.
func (Bucket)MarshalJSON¶
typeDefaultBucket¶added inv0.207.0
type DefaultBucket struct {// Bucket: Output only. Underlying bucket resource.Bucket *Bucket `json:"bucket,omitempty"`// Location: Immutable. Location of the default bucket.Locationstring `json:"location,omitempty"`// Name: Identifier. Resource name of the default bucket.Namestring `json:"name,omitempty"`// StorageClass: Immutable. Storage class of the default bucket. Supported// values are available at//https://cloud.google.com/storage/docs/storage-classes#classes.StorageClassstring `json:"storageClass,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Bucket") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}DefaultBucket: Spark tier-eligible Cloud Storage bucket. One per project.This resource exists if the underlying Cloud Storage bucket exists and it islinked to your Firebase project. Seehttps://firebase.google.com/pricing forpricing details.
func (DefaultBucket)MarshalJSON¶added inv0.207.0
func (sDefaultBucket) MarshalJSON() ([]byte,error)
typeEmpty¶
type Empty struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}Empty: A generic empty message that you can re-use to avoid definingduplicated empty messages in your APIs. A typical example is to use it asthe request or the response type of an API method. For instance: service Foo{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
typeListBucketsResponse¶
type ListBucketsResponse struct {// Buckets: The list of linked buckets.Buckets []*Bucket `json:"buckets,omitempty"`// NextPageToken: A token that can be sent as `page_token` to retrieve the next// page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Buckets") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Buckets") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ListBucketsResponse: The response returned by `ListBuckets`.
func (ListBucketsResponse)MarshalJSON¶
func (sListBucketsResponse) MarshalJSON() ([]byte,error)
typeProjectsBucketsAddFirebaseCall¶
type ProjectsBucketsAddFirebaseCall struct {// contains filtered or unexported fields}func (*ProjectsBucketsAddFirebaseCall)Context¶
func (c *ProjectsBucketsAddFirebaseCall) Context(ctxcontext.Context) *ProjectsBucketsAddFirebaseCall
Context sets the context to be used in this call's Do method.
func (*ProjectsBucketsAddFirebaseCall)Do¶
func (c *ProjectsBucketsAddFirebaseCall) Do(opts ...googleapi.CallOption) (*Bucket,error)
Do executes the "firebasestorage.projects.buckets.addFirebase" call.Any non-2xx status code is an error. Response headers are in either*Bucket.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsBucketsAddFirebaseCall)Fields¶
func (c *ProjectsBucketsAddFirebaseCall) Fields(s ...googleapi.Field) *ProjectsBucketsAddFirebaseCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsBucketsAddFirebaseCall)Header¶
func (c *ProjectsBucketsAddFirebaseCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsBucketsGetCall¶
type ProjectsBucketsGetCall struct {// contains filtered or unexported fields}func (*ProjectsBucketsGetCall)Context¶
func (c *ProjectsBucketsGetCall) Context(ctxcontext.Context) *ProjectsBucketsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsBucketsGetCall)Do¶
func (c *ProjectsBucketsGetCall) Do(opts ...googleapi.CallOption) (*Bucket,error)
Do executes the "firebasestorage.projects.buckets.get" call.Any non-2xx status code is an error. Response headers are in either*Bucket.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsBucketsGetCall)Fields¶
func (c *ProjectsBucketsGetCall) Fields(s ...googleapi.Field) *ProjectsBucketsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsBucketsGetCall)Header¶
func (c *ProjectsBucketsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsBucketsGetCall)IfNoneMatch¶
func (c *ProjectsBucketsGetCall) IfNoneMatch(entityTagstring) *ProjectsBucketsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsBucketsListCall¶
type ProjectsBucketsListCall struct {// contains filtered or unexported fields}func (*ProjectsBucketsListCall)Context¶
func (c *ProjectsBucketsListCall) Context(ctxcontext.Context) *ProjectsBucketsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsBucketsListCall)Do¶
func (c *ProjectsBucketsListCall) Do(opts ...googleapi.CallOption) (*ListBucketsResponse,error)
Do executes the "firebasestorage.projects.buckets.list" call.Any non-2xx status code is an error. Response headers are in either*ListBucketsResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsBucketsListCall)Fields¶
func (c *ProjectsBucketsListCall) Fields(s ...googleapi.Field) *ProjectsBucketsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsBucketsListCall)Header¶
func (c *ProjectsBucketsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsBucketsListCall)IfNoneMatch¶
func (c *ProjectsBucketsListCall) IfNoneMatch(entityTagstring) *ProjectsBucketsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProjectsBucketsListCall)PageSize¶
func (c *ProjectsBucketsListCall) PageSize(pageSizeint64) *ProjectsBucketsListCall
PageSize sets the optional parameter "pageSize": The maximum number ofbuckets to return. If not set, the server will use a reasonable default.
func (*ProjectsBucketsListCall)PageToken¶
func (c *ProjectsBucketsListCall) PageToken(pageTokenstring) *ProjectsBucketsListCall
PageToken sets the optional parameter "pageToken": A page token, receivedfrom a previous `ListBuckets` call. Provide this to retrieve the subsequentpage. When paginating, all other parameters provided to `ListBuckets` mustmatch the call that provided the page token.
func (*ProjectsBucketsListCall)Pages¶
func (c *ProjectsBucketsListCall) Pages(ctxcontext.Context, f func(*ListBucketsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeProjectsBucketsRemoveFirebaseCall¶
type ProjectsBucketsRemoveFirebaseCall struct {// contains filtered or unexported fields}func (*ProjectsBucketsRemoveFirebaseCall)Context¶
func (c *ProjectsBucketsRemoveFirebaseCall) Context(ctxcontext.Context) *ProjectsBucketsRemoveFirebaseCall
Context sets the context to be used in this call's Do method.
func (*ProjectsBucketsRemoveFirebaseCall)Do¶
func (c *ProjectsBucketsRemoveFirebaseCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "firebasestorage.projects.buckets.removeFirebase" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsBucketsRemoveFirebaseCall)Fields¶
func (c *ProjectsBucketsRemoveFirebaseCall) Fields(s ...googleapi.Field) *ProjectsBucketsRemoveFirebaseCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsBucketsRemoveFirebaseCall)Header¶
func (c *ProjectsBucketsRemoveFirebaseCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsBucketsService¶
type ProjectsBucketsService struct {// contains filtered or unexported fields}funcNewProjectsBucketsService¶
func NewProjectsBucketsService(s *Service) *ProjectsBucketsService
func (*ProjectsBucketsService)AddFirebase¶
func (r *ProjectsBucketsService) AddFirebase(bucketstring, addfirebaserequest *AddFirebaseRequest) *ProjectsBucketsAddFirebaseCall
AddFirebase: Links a Google Cloud Storage bucket to a Firebase project.
- bucket: Resource name of the bucket, mirrors the ID of the underlyingGoogle Cloud Storage bucket,`projects/{project_id_or_number}/buckets/{bucket_id}`.
func (*ProjectsBucketsService)Get¶
func (r *ProjectsBucketsService) Get(namestring) *ProjectsBucketsGetCall
Get: Gets a single linked storage bucket.
- name: Resource name of the bucket, mirrors the ID of the underlying GoogleCloud Storage bucket,`projects/{project_id_or_number}/buckets/{bucket_id}`.
func (*ProjectsBucketsService)List¶
func (r *ProjectsBucketsService) List(parentstring) *ProjectsBucketsListCall
List: Lists the linked storage buckets for a project.
- parent: Resource name of the parent Firebase project,`projects/{project_id_or_number}`.
func (*ProjectsBucketsService)RemoveFirebase¶
func (r *ProjectsBucketsService) RemoveFirebase(bucketstring, removefirebaserequest *RemoveFirebaseRequest) *ProjectsBucketsRemoveFirebaseCall
RemoveFirebase: Unlinks a linked Google Cloud Storage bucket from a Firebaseproject.
- bucket: Resource name of the bucket, mirrors the ID of the underlyingGoogle Cloud Storage bucket,`projects/{project_id_or_number}/buckets/{bucket_id}`.
typeProjectsDefaultBucketCreateCall¶added inv0.207.0
type ProjectsDefaultBucketCreateCall struct {// contains filtered or unexported fields}func (*ProjectsDefaultBucketCreateCall)Context¶added inv0.207.0
func (c *ProjectsDefaultBucketCreateCall) Context(ctxcontext.Context) *ProjectsDefaultBucketCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsDefaultBucketCreateCall)Do¶added inv0.207.0
func (c *ProjectsDefaultBucketCreateCall) Do(opts ...googleapi.CallOption) (*DefaultBucket,error)
Do executes the "firebasestorage.projects.defaultBucket.create" call.Any non-2xx status code is an error. Response headers are in either*DefaultBucket.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsDefaultBucketCreateCall)Fields¶added inv0.207.0
func (c *ProjectsDefaultBucketCreateCall) Fields(s ...googleapi.Field) *ProjectsDefaultBucketCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsDefaultBucketCreateCall)Header¶added inv0.207.0
func (c *ProjectsDefaultBucketCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsDefaultBucketService¶added inv0.207.0
type ProjectsDefaultBucketService struct {// contains filtered or unexported fields}funcNewProjectsDefaultBucketService¶added inv0.207.0
func NewProjectsDefaultBucketService(s *Service) *ProjectsDefaultBucketService
func (*ProjectsDefaultBucketService)Create¶added inv0.207.0
func (r *ProjectsDefaultBucketService) Create(parentstring, defaultbucket *DefaultBucket) *ProjectsDefaultBucketCreateCall
Create: Creates a Spark tier-eligible Cloud Storage bucket and links it toyour Firebase project. If the default bucket already exists, this methodwill re-link it to your Firebase project. Seehttps://firebase.google.com/pricing for pricing details.
- parent: The parent resource where the default bucket will be created,`projects/{project_id_or_number}`.
typeProjectsDeleteDefaultBucketCall¶added inv0.207.0
type ProjectsDeleteDefaultBucketCall struct {// contains filtered or unexported fields}func (*ProjectsDeleteDefaultBucketCall)Context¶added inv0.207.0
func (c *ProjectsDeleteDefaultBucketCall) Context(ctxcontext.Context) *ProjectsDeleteDefaultBucketCall
Context sets the context to be used in this call's Do method.
func (*ProjectsDeleteDefaultBucketCall)Do¶added inv0.207.0
func (c *ProjectsDeleteDefaultBucketCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "firebasestorage.projects.deleteDefaultBucket" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsDeleteDefaultBucketCall)Fields¶added inv0.207.0
func (c *ProjectsDeleteDefaultBucketCall) Fields(s ...googleapi.Field) *ProjectsDeleteDefaultBucketCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsDeleteDefaultBucketCall)Header¶added inv0.207.0
func (c *ProjectsDeleteDefaultBucketCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsGetDefaultBucketCall¶added inv0.207.0
type ProjectsGetDefaultBucketCall struct {// contains filtered or unexported fields}func (*ProjectsGetDefaultBucketCall)Context¶added inv0.207.0
func (c *ProjectsGetDefaultBucketCall) Context(ctxcontext.Context) *ProjectsGetDefaultBucketCall
Context sets the context to be used in this call's Do method.
func (*ProjectsGetDefaultBucketCall)Do¶added inv0.207.0
func (c *ProjectsGetDefaultBucketCall) Do(opts ...googleapi.CallOption) (*DefaultBucket,error)
Do executes the "firebasestorage.projects.getDefaultBucket" call.Any non-2xx status code is an error. Response headers are in either*DefaultBucket.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProjectsGetDefaultBucketCall)Fields¶added inv0.207.0
func (c *ProjectsGetDefaultBucketCall) Fields(s ...googleapi.Field) *ProjectsGetDefaultBucketCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsGetDefaultBucketCall)Header¶added inv0.207.0
func (c *ProjectsGetDefaultBucketCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsGetDefaultBucketCall)IfNoneMatch¶added inv0.207.0
func (c *ProjectsGetDefaultBucketCall) IfNoneMatch(entityTagstring) *ProjectsGetDefaultBucketCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProjectsService¶
type ProjectsService struct {Buckets *ProjectsBucketsServiceDefaultBucket *ProjectsDefaultBucketService// contains filtered or unexported fields}funcNewProjectsService¶
func NewProjectsService(s *Service) *ProjectsService
func (*ProjectsService)DeleteDefaultBucket¶added inv0.207.0
func (r *ProjectsService) DeleteDefaultBucket(namestring) *ProjectsDeleteDefaultBucketCall
DeleteDefaultBucket: Unlinks and deletes the default bucket.
- name: The name of the default bucket to delete,`projects/{project_id_or_number}/defaultBucket`.
func (*ProjectsService)GetDefaultBucket¶added inv0.207.0
func (r *ProjectsService) GetDefaultBucket(namestring) *ProjectsGetDefaultBucketCall
GetDefaultBucket: Gets the default bucket.
- name: The name of the default bucket to retrieve,`projects/{project_id_or_number}/defaultBucket`.
typeRemoveFirebaseRequest¶
type RemoveFirebaseRequest struct {}RemoveFirebaseRequest: The request used to unlink a Google Cloud Storagebucket from a Firebase project.
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentProjects *ProjectsService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶
NewService creates a new Service.